re PR target/71017 (libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift...
authorDominique d'Humieres <dominiq@lps.ens.fr>
Mon, 9 Jan 2017 22:00:32 +0000 (23:00 +0100)
committerDominique d'Humieres <dominiq@gcc.gnu.org>
Mon, 9 Jan 2017 22:00:32 +0000 (23:00 +0100)
PR target/71017
* config/i386/cpuid.h: Fix undefined behavior.

From-SVN: r244248

gcc/ChangeLog
gcc/config/i386/cpuid.h

index ed75ea8eaf2532ad7bdac82e2acf64645a9cb058..4b2bd761dcc5a1a5425b4b9a4617ab25b0cfe5db 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
+
+       PR target/71017
+       * config/i386/cpuid.h: Fix undefined behavior.
+
 2017-01-04  Jeff Law  <law@redhat.com>
 
        PR tree-optimization/79007
index c23a49314444ed09880893bbcb3152e0c275173d..fdd7e15b6d11966754b5732f159235db35655d1d 100644 (file)
@@ -91,7 +91,7 @@
 #define bit_AVX512CD   (1 << 28)
 #define bit_SHA                (1 << 29)
 #define bit_AVX512BW   (1 << 30)
-#define bit_AVX512VL   (1 << 31)
+#define bit_AVX512VL   (1u << 31)
 
 /* %ecx */
 #define bit_PREFETCHWT1          (1 << 0)