From 9b3e897d2b6f2c5fdd211a729b37d565865328d9 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 10 Sep 2004 08:20:37 +0000 Subject: cgraph.h (cgraph_dump_file): Do not declare. 2004-09-10 Paolo Bonzini * cgraph.h (cgraph_dump_file): Do not declare. * cgraphunit.c (cgraph_dump_file): Declare as static. (init_cgraph): New. * toplev.c (cgraph_dump_file): Do not declare. (compile_file): Call init_cgraph. * tree-dump.c (dump_files): Add IPA dump file, remove XML dump of call graph. (get_dump_file_name): Support IPA dump file naming scheme. * tree.h (enum tree_dump_index): Add IPA dump file, remove XML dump of call graph. * doc/invoke.texi (Debugging Options): Document the new options. From-SVN: r87281 --- gcc/cgraphunit.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index d0048a8..bc14983 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -163,6 +163,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA cgraph_decide_inlining implements heuristics taking whole callgraph into account, while cgraph_decide_inlining_incrementally considers only one function at a time and is used in non-unit-at-a-time mode. */ + #include "config.h" #include "system.h" #include "coretypes.h" @@ -209,6 +210,8 @@ static int overall_insns; record_calls_1. */ static htab_t visited_nodes; +static FILE *cgraph_dump_file; + /* Determine if function DECL is needed. That is, visible to something either outside this translation unit, something magic in the system configury, or (if not doing unit-at-a-time) to something we havn't @@ -1866,3 +1869,9 @@ cgraph_build_static_cdtor (char which, tree body, int priority) fn (XEXP (DECL_RTL (decl), 0), priority); } } + +void +init_cgraph (void) +{ + cgraph_dump_file = dump_begin (TDI_cgraph, NULL); +} -- cgit v1.1