From owner-svn-src-all@FreeBSD.ORG Sun Jan 1 02:04:43 2012 Return-Path: Delivered-To: svn-src-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80274106564A; Sun, 1 Jan 2012 02:04:43 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 430708FC13; Sun, 1 Jan 2012 02:04:43 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.5/8.14.2) with ESMTP id q0124gxl094656; Sat, 31 Dec 2011 21:04:42 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.5/8.14.2/Submit) id q0124g0R094655; Sat, 31 Dec 2011 21:04:42 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Sat, 31 Dec 2011 21:04:42 -0500 From: David Schultz To: Dimitry Andric Message-ID: <20120101020442.GA94452@zim.MIT.EDU> Mail-Followup-To: Dimitry Andric , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201112221503.pBMF3m0w021930@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201112221503.pBMF3m0w021930@svn.freebsd.org> Cc: svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG Subject: Re: svn commit: r228801 - head X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2012 02:04:43 -0000 On Thu, Dec 22, 2011, Dimitry Andric wrote: > Remove -mfancy-math from LIB32CPUFLAGS for amd64. It has been default > for our gcc since more than three years (see r181534, which is also in > stable/9 and stable/8). This flag used to be for the benefit of the old > in-kernel math emulator, which was removed more than eight years ago. Quite the opposite, actually. gcc/freebsd used to be hard-coded to use -mno-fancy-math-387 by default, which was really only appropriate for FPUless x86 chips back when FreeBSD supported them. The makefile setting overrides the old gcc default. The flag isn't "for the benefit of the in-kernel math emulator"; it's actually to reap the benefits of *not* having an in-kernel math emulator! Do you know if clang has the correct default here, or if it picked up trunk gcc's bogus default? It doesn't seem to support the flag to change the behavior, and it seems to default to -mno-fancy-math-387. (The flag should only affect things when -ffast-math is also specified.)