objdump : inaccurate demangling for foo(char* const)

Nathan Sidwell nathan@codesourcery.com
Fri Sep 19 08:34:00 GMT 2003


Daniel Jacobowitz wrote:
>>--------------------------------------
>>
>>So, is it inaccuracy or convention?
> 
> 
> Convention, I guess.
yes.

both foo1 (char *) and foo2 (char * const) have the same type - top
level cv qualifiers are ignored on parameters. If you called both
'foo' g++ would complain. The ABI's mangling mangles indistinguishable
functions in the same way (notice the return type is not mangled
either).

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk




More information about the Binutils mailing list