This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Allow cgraph nodes to change name


Geoff Keating <geoffk@geoffk.org> writes:

>> From: "Zack Weinberg" <zack@codesourcery.com>
>> Cc: Geoff Keating <geoffk@geoffk.org>, gcc-patches@gcc.gnu.org
>> Date: Wed, 20 Aug 2003 12:25:06 -0700
>
>> Jan Hubicka <hubicka@ucw.cz> writes:
>> 
>> > Another alternative is that in fact I don't need the hashtables.
>> > Only what I use it for is to convert DECL nodes into cgraph nodes.  The
>> > problem is that cgraph nodes are unique for function while DECL nodes
>> > are not, but perhaps frontends already have some capability of tracking
>> > this down.  Do you think it would be possible to add a direct pointer
>> > into the nodes and track it down using it?
>> 
>> 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."

I am still working, slowly, on changes to C identifier binding that
will eventually get rid of the need to copy the DECL for that example.

zw


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