This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug target/20199] -fvisibility-inlines-hidden broken on powerpc64-linux


------- 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


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