Use default visibility to work around clang -fvisibility-inlines-hidden bug
authorFangrui Song <maskray@google.com>
Fri, 20 Jul 2018 11:24:55 +0000 (11:24 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 20 Jul 2018 11:24:55 +0000 (12:24 +0100)
commit2143168e072391eb097a9382ab8ad2ca70ce1d11
treed0f29467824c4ced0461b258660966332687c151
parentafa07bdd786dfd67ff9cd1deef3142b9821c26b5
Use default visibility to work around clang -fvisibility-inlines-hidden bug

Clang (including trunk and many older versions) incorrectly marks static
local variables (__tag) hidden when -fvisibility-inlines-hidden is used.
This can lead to multiple instances of __tag when shares objects are used.

2018-07-20  Fangrui Song  <maskray@google.com>

* include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Use
_GLIBCXX_VISIBILITY(default).

From-SVN: r262903
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h