aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-dump.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2004-09-10 08:20:37 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2004-09-10 08:20:37 +0000
commit9b3e897d2b6f2c5fdd211a729b37d565865328d9 (patch)
treee470b384aebdcae27074d3368738711eddd6bf03 /gcc/tree-dump.c
parentc3ee057915ca1abf5812cf7ea7efc6408e32c6b1 (diff)
downloadgcc-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/tree-dump.c')
-rw-r--r--gcc/tree-dump.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c
index c09fc53..5c08132 100644
--- a/gcc/tree-dump.c
+++ b/gcc/tree-dump.c
@@ -673,10 +673,11 @@ static struct dump_file_info dump_files[TDI_end] =
{".nested", "tree-nested", TDF_TREE, 0, 4, 0},
{".inlined", "tree-inlined", TDF_TREE, 0, 5, 0},
{".vcg", "tree-vcg", TDF_TREE, 0, 6, 0},
- /* FIXME -fdump-call-graph is broken. Set TDF_TREE when it is fixed. */
- {".xml", "call-graph", 0, 0, 7, 0},
{NULL, "tree-all", TDF_TREE, 0, 0, 0},
{NULL, "rtl-all", TDF_RTL, 0, 0, 0},
+ {NULL, "ipa-all", TDF_IPA, 0, 0, 0},
+
+ { ".cgraph", "ipa-cgraph", TDF_IPA, 0, 1, 0},
{ ".sibling", "rtl-sibling", TDF_RTL, 0, 1, 'i'},
{ ".eh", "rtl-eh", TDF_RTL, 0, 2, 'h'},
@@ -803,10 +804,21 @@ get_dump_file_name (enum tree_dump_index phase)
if (dfi->state == 0)
return NULL;
- if (dfi->num < 0
- || snprintf (dump_id, sizeof (dump_id), ".%s%02d",
- (dfi->flags & TDF_TREE) ? "t" : "", dfi->num) < 0)
+ if (dfi->num < 0)
dump_id[0] = '\0';
+ else
+ {
+ const char *template;
+ if (dfi->flags & TDF_TREE)
+ template = ".t%02d";
+ else if (dfi->flags & TDF_IPA)
+ template = ".i%02d";
+ else
+ template = ".%02d";
+
+ if (snprintf (dump_id, sizeof (dump_id), template, dfi->num) < 0)
+ dump_id[0] = '\0';
+ }
return concat (dump_base_name, dump_id, dfi->suffix, NULL);
}