Name Mangling changed from egcs 1.1.2 to gcc 2.95
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Mon Nov 1 09:41:00 GMT 1999
> I guess egcs 1.1.1 did the name-mangling compression before resolving
> typedefs, thus missing this case.
Ok, I could reproduce that behaviour here. Taking typedefs into
account for mangling was clearly wrong, so gcc 2.95 is right in this
respect.
> Unfortunately, the act of fixing that little bug has resulted in
> what basically amounts to a new name-mangling strategy. So you can
> no longer link together code compiled with gcc 2.95 with code
> compiled with egcs 1.1.2. It would be good if a
> backwards-compatibility flag could be added.
That won't happen. Please have a look at
http://egcs.cygnus.com/gcc-2.95/caveats.html
'Officially', there is no compatibility between 1.1.x and 2.95,
whatsoever (and there is a number of other changes that broke
compatibility).
So you either have to recompile everything for gcc 2.95, continue to
use egcs 1.1, or find some other (local) solution.
Regards,
Martin
More information about the Gcc-bugs
mailing list