From owner-freebsd-amd64@FreeBSD.ORG Tue Mar 8 08:57:14 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DA0016A4CE for ; Tue, 8 Mar 2005 08:57:14 +0000 (GMT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id F307743D3F for ; Tue, 8 Mar 2005 08:57:13 +0000 (GMT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id BF0792A8F1 for ; Tue, 8 Mar 2005 00:57:13 -0800 (PST) (envelope-from peter@wemm.org) Received: from peter-laptop.wemm.org (dhcp51.wemm.org [10.0.0.51]) by fw.wemm.org (Postfix) with ESMTP id 45026E2B5 for ; Tue, 8 Mar 2005 00:57:13 -0800 (PST) (envelope-from peter@wemm.org) Received: from peter-laptop.wemm.org (localhost [127.0.0.1]) by peter-laptop.wemm.org (8.13.3/8.13.3) with ESMTP id j288vCDm001343; Tue, 8 Mar 2005 00:57:12 -0800 (PST) (envelope-from peter@wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by peter-laptop.wemm.org (8.13.3/8.13.3/Submit) id j288vCag001342; Tue, 8 Mar 2005 00:57:12 -0800 (PST) (envelope-from peter@wemm.org) X-Authentication-Warning: peter-laptop.wemm.org: peter set sender to peter@wemm.org using -f From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Tue, 8 Mar 2005 00:57:11 -0800 User-Agent: KMail/1.7.2 References: <20050305043006.GN83265@afflictions.org> <20050308060910.GA32871@dragon.nuxi.com> <20050308064225.GL67164@afflictions.org> In-Reply-To: <20050308064225.GL67164@afflictions.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503080057.11835.peter@wemm.org> cc: Damian Gerow Subject: Re: Is -O2 supported for world? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 08:57:14 -0000 On Monday 07 March 2005 10:42 pm, Damian Gerow wrote: > Thus spake David O'Brien (obrien@freebsd.org) [08/03/05 01:36]: > : It is suppored w/in /usr/src. > > Thanks for the clarification. > > : > /usr/src/lib/libc/i386/sys/_amd64_get_fsbase.c: In function > : > `_amd64_get_fsbase': /usr/src/lib/libc/i386/sys/_amd64_get_fsbase.c:40: > : > warning: dereferencing type-punned pointer will break strict-aliasing > : > rules > : > > : > without -fno-strict-aliasing. Not that I have any serious desire to > : > run with -O2, just curious. > : > : -O2 isn't supported in /usr/ports without -fno-strict-aliasing also. > : There are a few ports that aren't happy being compiled with any form of > : -O2 (such as the old perl). > > That error message was within /usr/src. I generally tell people to avoid -O2 like the plague. -O2 causes way too many "strange" things to happen. And as Kris said, compiling /usr/src with -O2 will cause several key ports to break (such as perl5.6) - even if perl itself is compiled with plain -O. So yes, gcc -O2 *is* miscompiling /usr/src. -Peter