This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/20199] -fvisibility-inlines-hidden broken on powerpc64-linux
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2005 23:53:40 -0000
- Subject: [Bug target/20199] -fvisibility-inlines-hidden broken on powerpc64-linux
- References: <20050224185234.20199.janis@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From janis at gcc dot gnu dot org 2005-02-25 23:53 -------
Ah, yes. I haven't come up with a testcase that doesn't use libstdc++,
but the following testcase fails without the patch referenced in
comment #28 and passes with it:
#pragma GCC visibility push(default)
#include <memory>
#pragma GCC visibility pop
void foo()
{
std::allocator<char> c2;
}
Command line: g++ -m64 -fvisibility-inlines-hidden -shared -o libx.C x.C
Without the #pragmas, this works with 20050223 mainline and binutils
when <char> is replaced by <int>; there are explicit instantiations in
libstdc++ for allocator<char> but not for allocator<int>. This is all
with -m64, with -m32 I haven't seen any problems at all.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20199