From owner-freebsd-amd64@FreeBSD.ORG Tue Mar 8 06:09:13 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 B66AE16A4CE for ; Tue, 8 Mar 2005 06:09:13 +0000 (GMT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C4A243D2D for ; Tue, 8 Mar 2005 06:09:13 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.13.1/8.13.1) with ESMTP id j2869AoY034288 for ; Mon, 7 Mar 2005 22:09:10 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.13.3/8.13.1/Submit) id j2869ADu034287 for freebsd-amd64@freebsd.org; Mon, 7 Mar 2005 22:09:10 -0800 (PST) (envelope-from obrien) Date: Mon, 7 Mar 2005 22:09:10 -0800 From: "David O'Brien" To: freebsd-amd64@freebsd.org Message-ID: <20050308060910.GA32871@dragon.nuxi.com> References: <20050305043006.GN83265@afflictions.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050305043006.GN83265@afflictions.org> X-Operating-System: FreeBSD 6.0-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 User-Agent: Mutt/1.5.8i Subject: Re: Is -O2 supported for world? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-amd64@freebsd.org 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 06:09:13 -0000 On Fri, Mar 04, 2005 at 11:30:07PM -0500, Damian Gerow wrote: > I'm a little fuzzy on whether -O2 is supported for world or not: I seem to > remember on x86 it is, but the only references I've seen to amd64 were > speaking about ports. > > Is -O2 optimization supported in amd64? It most definitely doesn't work: It is suppored w/in /usr/src. > /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). -- -- David (obrien@FreeBSD.org)