From owner-freebsd-current Sun Mar 23 9: 3:22 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 F22C837B404; Sun, 23 Mar 2003 09:03:20 -0800 (PST) Received: from mailgate.rz.uni-karlsruhe.de (mailgate.rz.uni-karlsruhe.de [129.13.64.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2C4143F75; Sun, 23 Mar 2003 09:03:19 -0800 (PST) (envelope-from till@f111.hadiko.de) Received: from f111.hadiko.de (hadif111.hadiko.uni-karlsruhe.de [172.20.42.141]) by mailgate.rz.uni-karlsruhe.de with esmtp (Exim 3.36 #1) id 18x8sP-0003eL-00; Sun, 23 Mar 2003 18:03:17 +0100 Received: from f111.hadiko.de (localhost [127.0.0.1]) by f111.hadiko.de (8.12.7/8.12.8) with ESMTP id h2NH2kYQ001952; Sun, 23 Mar 2003 17:02:46 GMT (envelope-from till@f111.hadiko.de) Received: (from till@localhost) by f111.hadiko.de (8.12.7/8.12.8/Submit) id h2NH2jNt001951; Sun, 23 Mar 2003 18:02:45 +0100 (CET) Date: Sun, 23 Mar 2003 18:02:45 +0100 From: Till Riedel To: Anti Cc: David Schultz , sgk@troutmask.apl.washington.edu, freebsd-current@FreeBSD.org Subject: Re: libm problem Message-ID: <20030323170244.GA1911@f111.hadiko.de> 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> <20030322182846.GA81615@troutmask.apl.washington.edu> <20030322123951.67271b29.fearow@attbi.com> <20030323074114.GA80906@HAL9000.homeunix.com> <20030323070808.0d3f63c0.fearow@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030323070808.0d3f63c0.fearow@attbi.com> User-Agent: Mutt/1.5.1i 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 Sun, Mar 23, 2003 at 07:08:08AM -0600, Anti wrote: > On Sat, 22 Mar 2003 23:41:14 -0800 > David Schultz wrote: > > > Thus spake Anti : > > > On Sat, 22 Mar 2003 10:28:46 -0800 > > > Steve Kargl wrote: > > > > > > > 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 why not +_CPUCFLAGS = -march=pentium4 -mno-sse2 > choose, and in the case of pentium4 producing broken code the > obvious fallback would be pentium3... above would be in fact the same because only the SSE2 code differs from march=pentium3 which in turn only defines SSE additionally (which probably generates the slower code compared to pentiumpro) as i see it. code generation for all x86 uses the same rules (i386.md) except that some rules only apply if TARGET_SSE2 is defined. till To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message