summaryrefslogtreecommitdiffstats
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-23 16:41:12 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-23 16:41:12 +0000
commit3eaf50a4c7db88c2168171d9d804f64d5bed13d5 (patch)
tree3f85798dacd6012a8cc02dc68f10cb4cc26f1b8f /gcc/flags.h
parent8be93a1c4ec38a588aa34164f0f5c4bea75f1906 (diff)
downloadppe42-gcc-3eaf50a4c7db88c2168171d9d804f64d5bed13d5.tar.gz
ppe42-gcc-3eaf50a4c7db88c2168171d9d804f64d5bed13d5.zip
Ulrich Drepper <drepper@cygnus.com>
* Makefile.in (OBJS): Add graph.o (graph.o): New dependency list. * flags.h: Declare dump_for_graph and define graph_dump_types type. * print-rtl.c (dump_for_graph): Define new variable. (print_rtx): Rewrite to allow use in graph dumping functions. * toplev.c: Declare print_rtl_graph_with_bb, clean_graph_dump_file, finish_graph_dump_file. Define graph_dump_format. (compile_file): If graph dumping is enabled also clear these files. Finish graph dump files. (rest_of_compilation): Also dump graph information if enabled. (main): Recognize -dv to enabled VCG based graph dumping. * graph.c: New file. Graph dumping functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23813 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 7c853d0b259..f25b0ba282e 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -502,3 +502,14 @@ extern int current_function_is_thunk;
/* Value of the -G xx switch, and whether it was passed or not. */
extern int g_switch_value;
extern int g_switch_set;
+
+/* Nonzero if we dump in VCG format, not plain text. */
+extern int dump_for_graph;
+
+/* Selection of the graph form. */
+enum graph_dump_types
+{
+ no_graph = 0,
+ vcg
+};
+extern enum graph_dump_types graph_dump_format;
OpenPOWER on IntegriCloud