summaryrefslogtreecommitdiff
path: root/gcc/tree-dump.c
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-10 08:20:37 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-10 08:20:37 +0000
commit121f3051bd4184274fc0bb0f727eab019a65fd98 (patch)
treee470b384aebdcae27074d3368738711eddd6bf03 /gcc/tree-dump.c
parent8001abc8ca9e5ecdb5eeff380bd893053808b051 (diff)
downloadgcc-121f3051bd4184274fc0bb0f727eab019a65fd98.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87281 138bc75d-0d04-0410-961f-82ee72b054a4
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 c09fc531a55..5c08132bfb1 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);
}