[Bug c++/12293] wrong mangled names for some "global constructors keyed to"

carlo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 30 21:52:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12293


carlo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From carlo at gcc dot gnu dot org  2003-09-30 20:09 -------
I looked at the source code that generates these symbols,
and apparently it IS on purpose.  I am still not convinced
that a disambiguation part is needed here because I under-
stand there is at most one _GLOBAL__I_ symbol per compilation
unit, but well - it is used, so instead I'll fix the demangler
to understand it.

The format of _GLOBAL__I_* symbols is apparently:

_GLOBAL__I_<first global symbol in compilation unit>

or if that doesn't exist

_GLOBAL__I_<first weak global symbol in compilation unit><disambiguation part>

or, if there is no weak symbol either

_GLOBAL__I_<disambiguation part>



More information about the Gcc-bugs mailing list