call graph - question ?

Jan Hubicka hubicka@ucw.cz
Thu Nov 25 13:35:00 GMT 2004


> HI,
>     I had doubt whether in unit-at-time mode call graph is built 
> incrementally or is it built only after all the funcitons have been 
> parsed (i.e. after cgraph_finalize_compilation unit functions is called). 
> In the latter case, where are all the function trees stored then ? 
> I presume that cgraph nodes are allotted to respective functions (and 
> trees stored there) and only call and return edges are fixed after all 
> funcitons are ready with
>  their trees.
> Could someone please clarify on this?

Yep, the nodes are produced as the functions are being finished and in
the cgraph_finalize_compilation_unit the edges are built and unused
bodies/nodes prunned out.

Honza
> 
> 
> Thanks and Regards.
> Virender



More information about the Gcc mailing list