This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/47333] [4.6/4.7 regression] g++.dg/lto/20091219 FAILs on Solaris 2 with SUN as
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Jan 2012 17:46:27 +0000
- Subject: [Bug target/47333] [4.6/4.7 regression] g++.dg/lto/20091219 FAILs on Solaris 2 with SUN as
- Auto-submitted: auto-generated
- References: <bug-47333-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47333
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-05 17:46:27 UTC ---
Indeed, with #c3 testcase I can reproduce it after #undef HAVE_GAS_WEAKREF in
auto-host.h.
When assembler doesn't support weakrefs, gcc performs what the assembler does,
i.e. transparently uses the weakref arg symbols instead of the weakref symbols,
and if there is any direct reference to the weakref arg symbol in the source
doesn't make it .weak, if there are none, makes it .weak.
Without -flto this seems to work fine, with -flto it doesn't.