summaryrefslogtreecommitdiff
path: root/gcc/tree-pass.h
diff options
context:
space:
mode:
authorsimartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-24 20:52:16 +0000
committersimartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-24 20:52:16 +0000
commitb4c018995f8b4be4e77c61e16244c0a9ad29e7cb (patch)
tree8114578ec066c8fc958ebd7608cf29fdaca0d26e /gcc/tree-pass.h
parentc7addd8cb1e57b2c404c48c43a027360a96cb185 (diff)
downloadgcc-b4c018995f8b4be4e77c61e16244c0a9ad29e7cb.tar.gz
2007-04-24 Simon Martin <simartin@users.sourceforge.net>
PR diagnostic/25923 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a diagnostic message is being built. * tree-pretty-print.c (dump_generic_node): Only write the formatted text into BUFFER's stream if we are not building a diagnostic message. * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to dump_generic_node. * Makefile.in (toplev.o): Depend on tree-pass.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r--gcc/tree-pass.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index 1b92f8c9807..c22e15e8a9d 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -71,6 +71,9 @@ enum tree_dump_index
#define TDF_MEMSYMS (1 << 14) /* display memory symbols in expr.
Implies TDF_VOPS. */
+#define TDF_DIAGNOSTIC (1 << 15) /* A dump to be put in a diagnostic
+ message. */
+
extern char *get_dump_file_name (enum tree_dump_index);
extern int dump_enabled_p (enum tree_dump_index);
extern int dump_initialized_p (enum tree_dump_index);