This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] Show addresses of cgraph nodes
On Sat, Dec 20, 2008 at 08:58, Jan Hubicka <hubicka@ucw.cz> wrote:
> Perhaps it is cleaner to add cgraph_by_uid function that will walk the
> list and return proper node instead of adding more stuff into debug
> output...
Or maybe have the graph nodes in some table indexed by node ID? Much
like the CFG.
> But at the moment there is none, interestingly I never needed such
> functionality for some reason :)
I was wading through 3 screens worth of debug_cgraph() output from
cc1plus and something similar in lto1, in both places I needed to get
at a specific node by name. Showing the address of the node seemed
the easiest at the time.
If you don't think that's a good idea, I could implement
cgraph_by_uid. Let me know.
Diego.