summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@cygnus.com>1998-11-23 16:41:12 +0000
committerRichard Henderson <rth@gcc.gnu.org>1998-11-23 08:41:12 -0800
commit735a0e33561ffa94ba09d93322c374e665bcfb42 (patch)
tree3f85798dacd6012a8cc02dc68f10cb4cc26f1b8f /gcc/flags.h
parenta05e22b8146978b60f0a43cecaa3756fc7f81793 (diff)
downloadgcc-735a0e33561ffa94ba09d93322c374e665bcfb42.tar.gz
Ulrich Drepper <drepper@cygnus.com>
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. From-SVN: r23813
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;