This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Results from Intel4s C++ ABI Testsuite
- From: Richard Henderson <rth at redhat dot com>
- To: Nick Ing-Simmons <nick at ing-simmons dot net>
- Cc: mark at codesourcery dot com, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Goodman Joe <joe dot goodman at intel dot com>, Nathan Sidwell <nathan at codesourcery dot com>, Joe Buck <Joe dot Buck at synopsys dot com>, Andreas Jaeger <aj at suse dot de>
- Date: Sat, 20 Jul 2002 10:25:11 -0700
- Subject: Re: Results from Intel4s C++ ABI Testsuite
- References: <35210000.1026337826@warlock.codesourcery.com> <20020720090501.2922.1@bactrian.ni-s.u-net.com>
On Sat, Jul 20, 2002 at 10:05:01AM +0100, Nick Ing-Simmons wrote:
> It seems to me (as a casual reader who does not use C++ much),
> that the fact that "type safe linkage" is encoding the "name" of the
> type rather than the "type" is sub-optimal. If what was encoded
> was "unsigned integer of 32-bits" then the two size_t-s would match.
Unfurtunately, C++ allows a function to be overloaded based on
the type, and thus the mangling scheme must allow both f(int)
and f(long) to exist. Which would not be possible if the mangling
were done based on width.
r~