_GLIBCXX_PROFILE on non-Linux?
Paolo Carlini
paolo.carlini@oracle.com
Sun Jan 17 21:39:00 GMT 2010
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.
More information about the Libstdc++
mailing list