[ast-optimizer-branch] Call graph for C (2/5)

Diego Novillo dnovillo@redhat.com
Fri Mar 1 15:55:00 GMT 2002


On Thu, 28 Feb 2002, Sebastian Pop wrote:

> 2002-02-28  Sebastian Pop  <s.pop@laposte.net>
> 
> 	* Makefile.in : Add c-call-graph.o dependence.
> 	* c-call-graph.c : New file.
> 	* c-decl.c (c_expand_body): Add an entry point for call-graph.
> 	* tree-dump.c (dump_files): Add the flag dump-call-graph.
> 	* tree.h (tree_dump_index): Add TDI_xml.
> 
Installed.  Thanks.

> +/* Declarations to be moved in a .h file : which one ?  */
> +extern void print_call_graph PARAMS ((FILE*, tree));
> +extern void debug_call_graph PARAMS ((tree));
>
I've added these two to c-tree.h.

> +extern void construct_call_graph PARAMS ((output_buffer *, tree, HOST_WIDE_INT));
> +
This does not need to be exported.  It's only called from within
c-call-graph.c

Diego.



More information about the Gcc-patches mailing list