aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-06-27 11:13:53 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-06-27 11:13:53 +0200
commitf6b3ca5a1a04285c61283122e96c84563691d161 (patch)
tree724db2e4012e6ea190ddc221da0ae94e1d605332 /gcc/dumpfile.c
parent58b45c4f3f5e83f3e3b7249eddd679c2c576e02e (diff)
downloadgcc-f6b3ca5a1a04285c61283122e96c84563691d161.zip
gcc-f6b3ca5a1a04285c61283122e96c84563691d161.tar.gz
gcc-f6b3ca5a1a04285c61283122e96c84563691d161.tar.bz2
predict.c (test_prediction_value_range): Use -1U instead of -1 to avoid narrowing conversion warning.
* predict.c (test_prediction_value_range): Use -1U instead of -1 to avoid narrowing conversion warning. * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast to avoid narrowing conversion warning. * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of -1. * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1. From-SVN: r249683
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r--gcc/dumpfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c
index 6c55f05..c3dd126 100644
--- a/gcc/dumpfile.c
+++ b/gcc/dumpfile.c
@@ -110,9 +110,9 @@ static const struct dump_option_value_info dump_options[] =
{"missed", MSG_MISSED_OPTIMIZATION},
{"note", MSG_NOTE},
{"optall", MSG_ALL},
- {"all", ~(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_RAW | TDF_SLIM | TDF_LINENO | TDF_GRAPH
+ | TDF_STMTADDR | TDF_RHS_ONLY | TDF_NOUID
+ | TDF_ENUMERATE_LOCALS | TDF_SCEV | TDF_GIMPLE))},
{NULL, 0}
};