From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15786 invoked by alias); 10 Jun 2008 14:43:19 -0000 Received: (qmail 15774 invoked by uid 22791); 10 Jun 2008 14:43:18 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Jun 2008 14:43:00 +0000 Received: (qmail 3747 invoked from network); 10 Jun 2008 14:42:59 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Jun 2008 14:42:59 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.68) (envelope-from ) id 1K653p-0005Uq-VJ; Tue, 10 Jun 2008 14:42:57 +0000 Date: Tue, 10 Jun 2008 14:43:00 -0000 From: "Joseph S. Myers" To: "H.J. Lu" cc: Paolo Carlini , Luke Dalessandro , gcc@gcc.gnu.org Subject: Re: Using __sync_* builtins within libgcc code In-Reply-To: <20080610143850.GA3997@lucon.org> Message-ID: References: <484DF34C.5040005@cs.rochester.edu> <484E21D5.4020201@oracle.com> <484E7325.5050205@oracle.com> <20080610143850.GA3997@lucon.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg00236.txt.bz2 On Tue, 10 Jun 2008, H.J. Lu wrote: > On Tue, Jun 10, 2008 at 02:27:17PM +0200, Paolo Carlini wrote: > > Joseph S. Myers wrote: > >> I hold that it is a bug that i686-* tools default to -march=i386 instead > >> of -march=i686 (whereas e.g. sparcv9-* tools default to -mcpu=sparcv9, and > >> -mcpu means -march for SPARC). > > Seconded. > > > > What arch should be used for -m32 on x86-64? Personally, I think > it should be at least i686, if not SSE2. -march=x86-64, I'd say, if you're configuring as x86_64-* (so assuming those 32-bit features present on all 64-bit processors). Obviously, subject to override from --with-arch-32 or --with-arch. -- Joseph S. Myers joseph@codesourcery.com