summaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-07-25 10:04:15 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-07-25 08:04:15 +0000
commitde6c8d7f72822c579ff07382d74ecb5c142a49b2 (patch)
tree584a3db305a8b733822346c1270c3b39d101b691 /gcc/dumpfile.c
parent5a0e12709d4e679976d7e6cbb822de2ae8c074d8 (diff)
downloadgcc-de6c8d7f72822c579ff07382d74ecb5c142a49b2.tar.gz
Limit dump_flag enum values range (PR middle-end/86645).
2018-07-25 Martin Liska <mliska@suse.cz> PR middle-end/86645 * dumpfile.c: And excluded values with TDF_ALL_VALUES. * dumpfile.h (enum dump_flag): Defince TDF_ALL_VALUES. From-SVN: r262960
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r--gcc/dumpfile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index 6c9920c6bd2..176c9b846d7 100644
--- a/gcc/dumpfile.c
+++ b/gcc/dumpfile.c
@@ -150,9 +150,10 @@ static const kv_pair<dump_flags_t> dump_options[] =
{"missed", MSG_MISSED_OPTIMIZATION},
{"note", MSG_NOTE},
{"optall", MSG_ALL},
- {"all", dump_flags_t (~(TDF_RAW | TDF_SLIM | TDF_LINENO | TDF_GRAPH
- | TDF_STMTADDR | TDF_RHS_ONLY | TDF_NOUID
- | TDF_ENUMERATE_LOCALS | TDF_SCEV | TDF_GIMPLE))},
+ {"all", dump_flags_t (TDF_ALL_VALUES
+ & ~(TDF_RAW | TDF_SLIM | TDF_LINENO | TDF_GRAPH
+ | TDF_STMTADDR | TDF_RHS_ONLY | TDF_NOUID
+ | TDF_ENUMERATE_LOCALS | TDF_SCEV | TDF_GIMPLE))},
{NULL, TDF_NONE}
};