aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorEric Gallager <egall@gwmail.gwu.edu>2016-09-07 15:05:56 +0000
committerUros Bizjak <uros@gcc.gnu.org>2016-09-07 17:05:56 +0200
commit7100c1f253908708185aa9878bb147cef986279e (patch)
tree7eab280eeb6cf9e7f2f0736dd7b69614e10deae3 /gcc/opts.c
parentff0f3f1cb56ae7ee030fb9e66cdd583733a056b8 (diff)
downloadgcc-7100c1f253908708185aa9878bb147cef986279e.zip
gcc-7100c1f253908708185aa9878bb147cef986279e.tar.gz
gcc-7100c1f253908708185aa9878bb147cef986279e.tar.bz2
i386.c: Add 'U' suffix to processor feature bits to avoid -Wnarrowing warning.
* config/i386/i386.c: Add 'U' suffix to processor feature bits to avoid -Wnarrowing warning. * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks. * opts.c: Likewise for SANITIZER_OPT bitmasks. From-SVN: r240027
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index bc0570d..86b422a 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1471,9 +1471,9 @@ const struct sanitizer_opts_s sanitizer_opts[] =
SANITIZER_OPT (returns-nonnull-attribute, SANITIZE_RETURNS_NONNULL_ATTRIBUTE),
SANITIZER_OPT (object-size, SANITIZE_OBJECT_SIZE),
SANITIZER_OPT (vptr, SANITIZE_VPTR),
- SANITIZER_OPT (all, ~0),
+ SANITIZER_OPT (all, ~0U),
#undef SANITIZER_OPT
- { NULL, 0, 0 }
+ { NULL, 0U, 0UL }
};
/* Parse comma separated sanitizer suboptions from P for option SCODE,