From: Martin Liska Date: Wed, 25 Jul 2018 08:04:15 +0000 (+0200) Subject: Limit dump_flag enum values range (PR middle-end/86645). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de6c8d7f72822c579ff07382d74ecb5c142a49b2;p=gcc.git Limit dump_flag enum values range (PR middle-end/86645). 2018-07-25 Martin Liska 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fcbaefef6a4..3a2780455de 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-07-25 Martin Liska + + PR middle-end/86645 + * dumpfile.c: And excluded values with TDF_ALL_VALUES. + * dumpfile.h (enum dump_flag): Defince TDF_ALL_VALUES. + 2018-07-25 Martin Liska PR sanitizer/79635 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_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} }; diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index ad14acdfc9a..1dbe3b85b7c 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -146,7 +146,10 @@ enum dump_flag | MSG_NOTE), /* Dumping for -fcompare-debug. */ - TDF_COMPARE_DEBUG = (1 << 25) + TDF_COMPARE_DEBUG = (1 << 25), + + /* All values. */ + TDF_ALL_VALUES = (1 << 26) - 1 }; /* Dump flags type. */