From owner-freebsd-amd64@FreeBSD.ORG Sat Mar 5 04:30:03 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 A810116A4CE for ; Sat, 5 Mar 2005 04:30:03 +0000 (GMT) Received: from pandora.afflictions.org (asylum.afflictions.org [64.7.134.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id D54BE43D2F for ; Sat, 5 Mar 2005 04:30:02 +0000 (GMT) (envelope-from dgerow@afflictions.org) Received: from localhost (localhost [127.0.0.1]) by pandora.afflictions.org (Postfix) with ESMTP id 6BA0478C64 for ; Fri, 4 Mar 2005 23:30:52 -0500 (EST) Received: from pandora.afflictions.org ([127.0.0.1]) by localhost (pandora.afflictions.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32332-01 for ; Fri, 4 Mar 2005 23:30:49 -0500 (EST) Received: from dementia.afflictions.org (dementia.afflictions.org [172.19.206.56]) by pandora.afflictions.org (Postfix) with ESMTP id AF20778C62 for ; Fri, 4 Mar 2005 23:30:48 -0500 (EST) Received: by dementia.afflictions.org (Postfix, from userid 1001) id CFC0A28C61; Fri, 4 Mar 2005 23:30:07 -0500 (EST) Date: Fri, 4 Mar 2005 23:30:07 -0500 From: Damian Gerow To: freebsd-amd64@freebsd.org Message-ID: <20050305043006.GN83265@afflictions.org> Mail-Followup-To: freebsd-amd64@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG-Fingerprint: B3D7 D901 A53A 1A99 BFD6 E6DF 9F3B 742B C288 9CC9 User-Agent: Mutt/1.5.6i X-Virus-Scanned: amavisd-new at pandora.afflictions.org Subject: 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: Sat, 05 Mar 2005 04:30:03 -0000 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: /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. - Damian