This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _GLIBCXX_PROFILE on non-Linux?


Gerald Pfeifer <gerald@pfeifer.com> writes:

> Silvius et al, this link-time error is quite confusing.  Is this a bug
> in the implementation (regular libstdc++ works on i386 just fine), or
> is it necessary for profiling mode?  If the latter, can we diagnose this
> condition at compile-time and then issue a nice #error ?

You can diagnose it at compile time via something like

#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
#ifdef __i386__
#error profiling mode requires -march=i486 or better
#else
#error arrgghhh
#endif
#endif

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]