public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* 4.0.2 RC2 Solaris 10 x86: configure, x86-64, and atomicity.h
@ 2005-09-22 16:21 Andrew Morrow
  0 siblings, 0 replies; only message in thread
From: Andrew Morrow @ 2005-09-22 16:21 UTC (permalink / raw)
  To: gcc-help

On a Solaris 10 Opteron machine, I can let configure guess the target
as i386-pc-solaris2.10, and bootstrap works fine. I get a very nice
multilib install that can generate x86-64 targets. However, libstdc++
ends up with a poor version of bits/atomicity.h, specifically
libstdc++/config/cpu/i386/atomicity.h. That implementation uses a
mutex to simulate atomic integers. For performance reasons I need
libstdc++ to use the config/cpu/i486/atomicity.h that uses the "lock"
mnemonic.

If I try to configure with i[456]86-pc-solaris2.10, bootstrap fails
when compiling 64 bit targets, and informs me that the CPU I have
selected does not support the x86-64 instruction set. If I try to
configure with arguments like opteron-pc-solaris2.10,
x86-64-pc-solaris2.10, amd64-pc-solaris2.10, etc., these fail to
configure at all.

Is there configure target that will let libstdc++ choose the better
implementation for atomicity.h and also succeed when building the 64
bit targets?

Thanks

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-22 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-22 16:21 4.0.2 RC2 Solaris 10 x86: configure, x86-64, and atomicity.h Andrew Morrow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).