summaryrefslogtreecommitdiff
path: root/gcc/dumpfile.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-10 12:16:25 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-10 12:16:25 +0000
commita529e0a697f7cbc16f4d8ea9c2dad9b4b761d96c (patch)
tree6a7df3a589d21a6ba6474b3900a973ce1d7f31db /gcc/dumpfile.h
parent0e0a19c5dfa42b6b5fae4b60842e3f903d8e9bed (diff)
dumpfile.h (TDI_lang_all): New.
* dumpfile.h (TDI_lang_all): New. (TDF_KIND): New. Renumber others (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather than bits. * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add lang-all. (get_dump_file_name): Adjust suffix generation. (dump_enable_all): Use TDF_KIND. * doc/invoke.texi (-fdump-lang-all): Document. From-SVN: r247833
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r--gcc/dumpfile.h33
1 files changed, 20 insertions, 13 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h
index 053442318e6..df5203748a5 100644
--- a/gcc/dumpfile.h
+++ b/gcc/dumpfile.h
@@ -35,6 +35,8 @@ enum tree_dump_index
TDI_original, /* dump each function before optimizing it */
TDI_generic, /* dump each function after genericizing it */
TDI_nested, /* dump each function after unnesting it */
+
+ TDI_lang_all, /* enable all the language dumps. */
TDI_tree_all, /* enable all the GENERIC/GIMPLE dumps. */
TDI_rtl_all, /* enable all the RTL dumps. */
TDI_ipa_all, /* enable all the IPA dumps. */
@@ -47,21 +49,26 @@ enum tree_dump_index
the DUMP_OPTIONS array in dumpfile.c. The TDF_* flags coexist with
MSG_* flags (for -fopt-info) and the bit values must be chosen to
allow that. */
-#define TDF_ADDRESS (1 << 0) /* dump node addresses */
-#define TDF_SLIM (1 << 1) /* don't go wild following links */
-#define TDF_RAW (1 << 2) /* don't unparse the function */
-#define TDF_DETAILS (1 << 3) /* show more detailed info about
+#define TDF_LANG 0 /* is a lang-specific dump. */
+#define TDF_TREE 1 /* is a tree dump */
+#define TDF_RTL 2 /* is a RTL dump */
+#define TDF_IPA 3 /* is an IPA dump */
+#define TDF_KIND_MASK 3
+#define TDF_KIND(X) ((X) & TDF_KIND_MASK)
+
+/* Bit 2 unused, available for hire. */
+#define TDF_ADDRESS (1 << 3) /* dump node addresses */
+#define TDF_SLIM (1 << 4) /* don't go wild following links */
+#define TDF_RAW (1 << 5) /* don't unparse the function */
+#define TDF_DETAILS (1 << 6) /* show more detailed info about
each pass */
-#define TDF_STATS (1 << 4) /* dump various statistics about
+#define TDF_STATS (1 << 7) /* dump various statistics about
each pass */
-#define TDF_BLOCKS (1 << 5) /* display basic block boundaries */
-#define TDF_VOPS (1 << 6) /* display virtual operands */
-#define TDF_LINENO (1 << 7) /* display statement line numbers */
-#define TDF_UID (1 << 8) /* display decl UIDs */
-
-#define TDF_TREE (1 << 9) /* is a tree dump */
-#define TDF_RTL (1 << 10) /* is a RTL dump */
-#define TDF_IPA (1 << 11) /* is an IPA dump */
+#define TDF_BLOCKS (1 << 8) /* display basic block boundaries */
+#define TDF_VOPS (1 << 9) /* display virtual operands */
+#define TDF_LINENO (1 << 10) /* display statement line numbers */
+#define TDF_UID (1 << 11) /* display decl UIDs */
+
#define TDF_STMTADDR (1 << 12) /* Address of stmt. */
#define TDF_GRAPH (1 << 13) /* a graph dump is being emitted */