Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Aug 2002 18:08:35 +0200
From:      Michael Nottebrock <michaelnottebrock@gmx.net>
To:        freebsd-current@FreeBSD.ORG
Cc:        Marc Recht <marc@informatik.uni-bremen.de>
Subject:   Re: Compiler error XFree86-Server
Message-ID:  <3D53E903.60302@gmx.net>
References:  <20020806230045.3EFF72DD@nebula.anchoragerescue.org> <3D5127D3.2030601@gmx.net> <20020809043953.GC980@dragon.nuxi.com> <3D534D0F.704@gmx.net> <20020809081355.754aca33.marc@informatik.uni-bremen.de> <20020809144713.GA3531@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------050107050907010503000107
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

David O'Brien wrote:
>>>I've got suggests that it's still present in all branches. I get the 
>>>impression that not too many people really use gcc3 with heavy 
>>>optimization on big stuff like XFree86 yet ... Of course, updating the 
>>
>>XFree86 works like a charm built with -march=athlon-xp .
> 
> 
> I do know that compiling XFree86 with a June 2002 GCC 3.1.1 prerelease
> works fine on AMD x86-64 running SuSE with -O2 and -march specifying the
> Hammer.

You might want to try the attached code-snippet I grabbed from the gcc 
GNATS. It manages to ICE 3.1 and 3.2 with a lot of optimizations, 
including pentium2/3/4 and athlon-* and is believed to trigger the same 
bug that borks XFree86 here.

Compile with gcc -O -march=<arch> -c clacrt.c


Regards,
-- 
Michael Nottebrock
"And the reasons? There are no reasons."

--------------050107050907010503000107
Content-Type: text/x-csrc;
 name="clacrt.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="clacrt.c"

void foo ()
 {
     struct { float x, y; } c, *cp;
     static float           z;
 
     while (1)
     {
         c.y = cp->y + cp->y;
         z   = c.y + 1.0;
     }
 }

--------------050107050907010503000107--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D53E903.60302>