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?


Hi,

let's ask Silvius, but...
> I am wondering whether there is anything that we may need to do to enable
> _GLIBCXX_PROFILE on non-Linux platforms, specifically FreeBSD?
>
> On my GCC tester, I am seeing something like the following for both 
> complex and simple programs:
>
>   % .../g++ -D_GLIBCXX_PROFILE x.cc
>   /var/tmp//ccDvxnqv.o(.gnu.linkonce.t._ZN13__gnu_profile6__turnENS_12__state_typeE+0x1f): 
>   In function `__gnu_profile::__turn(__gnu_profile::__state_type)':
>   : undefined reference to `__sync_val_compare_and_swap_4'
>   
If, as I believe it's the case, profile-mode is completely header-based
(no .cc files) the above issue should be trivial to solve, just pass a
-march providing the builtins, I think i586 should be enough for such
32-bit x86 targets. I don't think the issue is really with FreeBSD vs
Linux, has to do with the CPU, the usual obnoxious issue with the atomic
builtins...

Paolo.


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