diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2004-09-10 08:20:37 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2004-09-10 08:20:37 +0000 |
commit | 9b3e897d2b6f2c5fdd211a729b37d565865328d9 (patch) | |
tree | e470b384aebdcae27074d3368738711eddd6bf03 /gcc/cgraphunit.c | |
parent | c3ee057915ca1abf5812cf7ea7efc6408e32c6b1 (diff) | |
download | gcc-9b3e897d2b6f2c5fdd211a729b37d565865328d9.zip gcc-9b3e897d2b6f2c5fdd211a729b37d565865328d9.tar.gz gcc-9b3e897d2b6f2c5fdd211a729b37d565865328d9.tar.bz2 |
cgraph.h (cgraph_dump_file): Do not declare.
2004-09-10 Paolo Bonzini <bonzini@gnu.org>
* 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
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 9 |
1 files changed, 9 insertions, 0 deletions
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); +} |