This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: _GLIBCXX_PROFILE on non-Linux?
On 01/19/2010 04:20 PM, Ian Lance Taylor wrote:
> You can diagnose it at compile time via something like
>
> #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
>
By the way, Ian, I didn't follow some rather recent developments in
libgcc, I suspect that on some targets even if
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is undefined, libgcc may actually
provide the builtins, thus such kind of compile-time check would be a
little too conservative, in general. Do you know anything about that?
Paolo.