From owner-freebsd-current@FreeBSD.ORG Sun Jan 18 14:17:25 2004 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 8D5AB16A4CE for ; Sun, 18 Jan 2004 14:17:25 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C54543D54 for ; Sun, 18 Jan 2004 14:17:24 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.10/8.12.9) with ESMTP id i0IMHJip076249; Sun, 18 Jan 2004 14:17:19 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.10/8.12.10/Submit) id i0IMHI5p076248; Sun, 18 Jan 2004 14:17:18 -0800 (PST) (envelope-from obrien) Date: Sun, 18 Jan 2004 14:17:18 -0800 From: "David O'Brien" To: Dag-Erling Sm?rgrav , current@freebsd.org Message-ID: <20040118221718.GE65333@dragon.nuxi.com> Mail-Followup-To: David O'Brien , Dag-Erling Sm?rgrav , current@freebsd.org References: <2198.148.121.98.106.1074170436.squirrel@mail.carebears.mine.nu> <20040116095217.GG59417@starjuice.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040116095217.GG59417@starjuice.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.2-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Subject: Re: compiling world with optimization X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2004 22:17:25 -0000 On Fri, Jan 16, 2004 at 11:52:17AM +0200, Sheldon Hearn wrote: > On (2004/01/15 16:43), Dag-Erling Sm?rgrav wrote: > > > > I dont know if you care, but buildworld will fail with some > > > optimizations. > > > > No, we don't care. See /usr/share/examples/etc/make.conf: > > > > # CFLAGS controls the compiler settings used when compiling C code. > > # Note that optimization settings above -O (-O2, ...) are not recommended > > # or supported for compiling the world or the kernel > > It's true that most of us don't care. However, I remember some folks > (kan and obrien?) saying that they have an interest in seeing these > fixed in the gcc distribution. > > Have I misremembered? Yep. In my opinion -O2 bad code production bugs are due to bugs in FreeBSD code that breaks standards (alias bugs, etc..) or has bugs in the inline assembly. This is no long a GCC problem -- if it is give me a test case and I'll see it gets fixed.