From: Dominique d'Humieres Date: Mon, 9 Jan 2017 22:00:32 +0000 (+0100) Subject: re PR target/71017 (libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=852a63c540fff78a95e77a42c5f08d6a25ffc797;p=gcc.git re PR target/71017 (libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int') PR target/71017 * config/i386/cpuid.h: Fix undefined behavior. From-SVN: r244248 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed75ea8eaf2..4b2bd761dcc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-01-09 Dominique d'Humieres + + PR target/71017 + * config/i386/cpuid.h: Fix undefined behavior. + 2017-01-04 Jeff Law PR tree-optimization/79007 diff --git a/gcc/config/i386/cpuid.h b/gcc/config/i386/cpuid.h index c23a4931444..fdd7e15b6d1 100644 --- a/gcc/config/i386/cpuid.h +++ b/gcc/config/i386/cpuid.h @@ -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)