From owner-cvs-src@FreeBSD.ORG Sun Jul 4 03:21:58 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A60E16A4CE; Sun, 4 Jul 2004 03:21:58 +0000 (GMT) Received: from VARK.homeunix.com (adsl-69-107-104-105.dsl.pltn13.pacbell.net [69.107.104.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AF2D43D1D; Sun, 4 Jul 2004 03:21:57 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i643LdNG093319; Sat, 3 Jul 2004 20:21:39 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i643Ld3B093318; Sat, 3 Jul 2004 20:21:39 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Sat, 3 Jul 2004 20:21:39 -0700 From: David Schultz To: Dag-Erling Smorgrav Message-ID: <20040704032139.GA93138@VARK.homeunix.com> Mail-Followup-To: Dag-Erling Smorgrav , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200407030941.i639fwt8078389@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407030941.i639fwt8078389@repoman.freebsd.org> cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/share/examples/etc make.conf X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 03:21:58 -0000 On Sat, Jul 03, 2004, Dag-Erling Smorgrav wrote: > des 2004-07-03 09:41:58 UTC > > FreeBSD src repository > > Modified files: > share/examples/etc make.conf > Log: > The -O2 bugs are in libalias(3), not ppp(8). FWIW, I've been compiling most things with -O2 for a while (to find -O2 bugs, not for speed) and haven't noticed many problems. The only significant one I know of is that -O2 breaks floating-point exceptions in libm because gcc doesn't support the FENV_ACCESS pragma. I think for some routines like rint(3), it may even give the wrong answer due to incorrect optimizations, but I'd have to check that again. AFAIK, the necessary functionality to make gcc's optimizer treat floating-point code in a sane manner isn't on the horizon, so maybe -O2 should be automatically turned off while compiling libm (and perhaps libalias as well). That would make it more easily justifiable to make -O2 the default at some future point.