From owner-freebsd-current Sat Mar 22 10:28:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FA8E37B401; Sat, 22 Mar 2003 10:28:50 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F76F43F75; Sat, 22 Mar 2003 10:28:49 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.8/8.12.7) with ESMTP id h2MISlgF081649; Sat, 22 Mar 2003 10:28:47 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.8/8.12.8/Submit) id h2MISkNF081648; Sat, 22 Mar 2003 10:28:46 -0800 (PST) Date: Sat, 22 Mar 2003 10:28:46 -0800 From: Steve Kargl To: David Schultz Cc: Till Riedel , freebsd-current@FreeBSD.ORG Subject: Re: libm problem Message-ID: <20030322182846.GA81615@troutmask.apl.washington.edu> References: <20030318173051.GA2322@f111.hadiko.de> <20030319131317.GA670@HAL9000.homeunix.com> <20030321235237.GA8097@f111.hadiko.de> <20030322111233.F4471@gamplex.bde.org> <20030322005435.GA8393@f111.hadiko.de> <20030322051443.GA13854@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030322051443.GA13854@HAL9000.homeunix.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Mar 21, 2003 at 09:14:43PM -0800, David Schultz wrote: > Thus spake Till Riedel : > > 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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message