This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: objdump : inaccurate demangling for foo(char* const)


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]