http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53673
Niall Douglas <s_gccbugzilla at nedprod dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |libstdc++
--- Comment #8 from Niall Douglas <s_gccbugzilla at nedprod dot com> 2012-06-16
14:19:18 UTC ---
(In reply to comment #7)
> (In reply to comment #6)
> > Technically, you could add it to the top of <stddef.h> or whatever is a
> > guaranteed included library header:
>
> libstdc++'s <bits/c++config.h> would be the right place and as part of the std
> lib the symbol should probably be named __glibcxx_blah
>
> I think you'd also need an actual definition or nothing will be emitted for
> the
> declaration alone:
>
> #if __GXX_WEAK__
> #if __cplusplus == 201103L
> extern "C" void __glibcxx_std_cxx11() __attribute__((weak));
> extern "C" void __glibcxx_std_cxx11() { }
> #else if __cplusplus == 199711L
> extern "C" void __glibcxx_std_cxx98() __attribute__((weak));
> extern "C" void __glibcxx_std_cxx98() { }
> #else
> #warning Unknown C++ standard version
> #endif
> #endif
Do I take this as your support of the above patch to bits/c++config.h? Or do
you still feel it unnecessary?
Niall