From owner-freebsd-current@FreeBSD.ORG Tue May 20 12:12:30 2003 Return-Path: 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 DC85C37B404; Tue, 20 May 2003 12:12:29 -0700 (PDT) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DDDA43F75; Tue, 20 May 2003 12:12:28 -0700 (PDT) (envelope-from jlido@goof.com) Received: from zidane.cc.vt.edu (IDENT:mirapoint@zidane-lb.cc.vt.edu [10.1.1.13]) by lennier.cc.vt.edu (8.12.8/8.12.8) with ESMTP id h4KJCRqW489491; Tue, 20 May 2003 15:12:27 -0400 (EDT) Received: from hc652a885.dhcp.vt.edu (hc652a885.dhcp.vt.edu [198.82.168.133]) by zidane.cc.vt.edu (Mirapoint Messaging Server MOS 3.3.2-CR) with ESMTP id BKT60864; Tue, 20 May 2003 15:12:27 -0400 (EDT) From: Jon Lido To: David Schultz Date: Tue, 20 May 2003 15:12:27 -0400 User-Agent: KMail/1.5.1 References: <200305201025.30296.jlido@goof.com> <200305201216.10964.jlido@goof.com> <20030520180004.GA2372@HAL9000.homeunix.com> In-Reply-To: <20030520180004.GA2372@HAL9000.homeunix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305201512.27174.jlido@goof.com> cc: freebsd-current@FreeBSD.ORG Subject: Re: gcc/libm floating-point bug? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2003 19:12:30 -0000 On Tuesday 20 May 2003 02:00 pm, David Schultz wrote: > On Tue, May 20, 2003, Jon Lido wrote: > > Well, I do have a P4, and had built everything with -march=pentium4. > > However, rebuilding the kernel and modules with -march=pentium3 produces > > the same results. > > This isn't a kernel problem, so you need to rebuild libm and libc > without -march=pentium4. You really don't want to be using the > Pentium 4 optimizations in gcc 3.2 anyway; the generated code is > generally slower. gcc 3.3 has fixes for a number of the bugs, but > I don't know about the performance problems. Yes, this was the problem. I rebuilt world with -march=pentium3 and that did the trick. I'm not sure how CPUTYPE gets handled, but perhaps p4 should expand to -march=pentium3, if possible. There seems no point to generating slower, broken code. Once gcc 3.3 is part of the base system this could be put back. Thanks to everyone for their help! -Jon