This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34115] atomic builtins not supported on i686?
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Nov 2007 23:53:06 -0000
- Subject: [Bug target/34115] atomic builtins not supported on i686?
- References: <bug-34115-14600@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from joseph at codesourcery dot com 2007-11-15 23:53 -------
Subject: Re: atomic builtins not supported on i686?
On Thu, 15 Nov 2007, pinskia at gcc dot gnu dot org wrote:
> Because the default arch for i686-linux-gnu is i386.
Which is a stupid inconsistency and arguably a bug. sparcv9-linux-gnu
defaults to -mcpu=v9 (where -mcpu means -march for SPARC), likewise
various other architectures; i686-linux-gnu should be consistent with
those other targets and default to -march=i686. libstdc++ will use
i486-specific code if you configure GCC for i[456]86, even when GCC itself
restricts itself to i386 code, making this default to i386 even less
useful; likewise glibc will use i486/i586/i686 code when configured for
those processors (and no longer supports i386).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34115