This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23345] Assembler message: symbol is already defined
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2005 22:00:22 -0000
- Subject: [Bug c++/23345] Assembler message: symbol is already defined
- References: <20050811220006.23345.kreckel@ginac.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-12 22:00 -------
(In reply to comment #5)
> Okay then, but would adding __attribute__((visibility("hidden"))) to the game
> prevent the function from being cloned? It doesn't seem to help! I don't see
> any reason why the ABI calls for a clone of that function if its visibility is
> declared hidden.
Because constructors are cloned as needed by the IA64 C++ ABI.
visibility hidden only goes across shared library boundaries and not function boundaries.
When more optimizations are added to gcc, you will end up the same thing on any and all targets.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23345