From 7100c1f253908708185aa9878bb147cef986279e Mon Sep 17 00:00:00 2001 From: Eric Gallager Date: Wed, 7 Sep 2016 15:05:56 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++ gcc/config/i386/i386.c | 60 ++++++++++++++++++------------------ gcc/config/i386/x86-tune.def | 6 ++-- gcc/opts.c | 4 +-- 4 files changed, 42 insertions(+), 35 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c39b35175a7..752fac022d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-09-07 Eric Gallager + + * 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. + 2016-09-07 Wilco Dijkstra * config/aarch64/aarch64.c (aarch64_legitimize_address): diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 016082941da..1190dabd388 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2162,45 +2162,45 @@ const struct processor_costs *ix86_tune_cost = &pentium_cost; const struct processor_costs *ix86_cost = &pentium_cost; /* Processor feature/optimization bitmasks. */ -#define m_386 (1<