(C++) mangling vector types

Jason Merrill jason@redhat.com
Thu Nov 12 22:06:00 GMT 2009


On 11/12/2009 04:48 PM, Mark Mitchell wrote:
> So, do you consider ABIv3 there only as a theoretical conformance
> option?  In other words, not something we're going to make the default
> in any forseeable future?  (Those aren't meant to be rhetorical
> questions -- I'm just asking.)

That has been my thinking, but perhaps it does make sense to make that 
change with the C++0x library deployment; the impact should be pretty 
limited.

I'm surprised to see that EDG doesn't mimic this bug in G++ 
compatibility mode; in fact, they get mangle22.C wrong in a different 
way.  The symbol should be

_Z1g2CBIL_Z3foocEE

-fabi-version=2 gives

_Z1g2CBILZ3foocEE

and EDG 4.1 gives

_Z1g2CBIXL_Z3foocEEE

(extra X/E around the name even though it's an expr-primary).

Jason



More information about the Gcc mailing list