Allow cgraph nodes to change name

Nathan Sidwell nathan@codesourcery.com
Thu Aug 21 08:51:00 GMT 2003


Zack Weinberg wrote:
> Geoff Keating <geoffk@geoffk.org> writes:

>>>From: "Zack Weinberg" <zack@codesourcery.com>

>>>Er, DECL nodes are supposed to be unique for each function, aren't they?
>>
>>Not really, I believe:
> 
> [...]
> 
> Currently true, yes.  But this causes problems in other areas, notably
> targets where external symbol references have to be called out as such
> in assembly... hence my "supposed to be."
in C++ you can have the following

namespace N {
   extern "C" void Foo (int = 5);
};

namespace M {
   extern "C" void Foo (int = 7);
};

those Foo's are the same C function, but have different default parameters!

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 Gcc-patches mailing list