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