On Fri, Mar 21, 2003 at 09:14:43PM -0800, David Schultz wrote:
> Thus spake Till Riedel <[EMAIL PROTECTED]>:
> > I now know the thing that makes it break.
> > 
> > cc -O2 -pipe -mcpu=pentiumpro -c /usr/src/lib/msun/src/e_pow.c
> > works fine!
> > cc -O0 -pipe -march=pentium4 -c /usr/src/lib/msun/src/e_pow.c
> > ... works
> > but...
> > cc -O -pipe -march=pentium4 -c /usr/src/lib/msun/src/e_pow.c
> > breaks it. Hey its only gcc :-), nothing to worry about.
> > I think that 0 is nice number: so why don't optimize everithing to down it.
> > -O seems to minimize numbers not calculation time. Does anyone know the
> > flag to turn that off.
> 
> If you have the time and inclination, I suggest reporting this
> problem to the gcc folks.  For now, don't use Pentium 4
> optimizations.  Not only are they apparently broken, they also
> generate slower code than you get by optimizing for a PPro, or
> even a 386.
> 

Pentium 4 is definitely broken on 5.x.  Perhaps, we should remove
the footshooting.

--- bsd.cpu.mk.orig     Sat Mar 22 10:23:42 2003
+++ bsd.cpu.mk  Sat Mar 22 10:27:11 2003
@@ -62,7 +62,9 @@
 .  elif ${CPUTYPE} == "k5"
 _CPUCFLAGS = -march=pentium
 .  elif ${CPUTYPE} == "p4"
-_CPUCFLAGS = -march=pentium4
+# XXX gcc 3.2.2 appears to generate bad code on FreeBSD 5.x
+#_CPUCFLAGS = -march=pentium4
+_CPUCFLAGS = -march=pentiumpro
 .  elif ${CPUTYPE} == "p3"
 _CPUCFLAGS = -march=pentium3
 .  elif ${CPUTYPE} == "p2"




-- 
Steve

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to