From f3ffa342ea53803bf276207aab5b0b6b1c420b45 Mon Sep 17 00:00:00 2001 From: Dominique d'Humieres Date: Thu, 23 Feb 2017 13:19:05 +0100 Subject: [PATCH] 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') 2017-01-23 Dominique d'Humieres PR target/71017 * config/i386/cpuid.h: Fix another undefined behavior. From-SVN: r245680 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/cpuid.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 820f673ec32..d003ab1ad67 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-01-23 Dominique d'Humieres + + PR target/71017 + * config/i386/cpuid.h: Fix another undefined behavior. + 2017-02-23 Richard Biener PR tree-optimization/79683 diff --git a/gcc/config/i386/cpuid.h b/gcc/config/i386/cpuid.h index 41901c0f3a8..d451e977e55 100644 --- a/gcc/config/i386/cpuid.h +++ b/gcc/config/i386/cpuid.h @@ -63,7 +63,7 @@ #define bit_MMXEXT (1 << 22) #define bit_LM (1 << 29) #define bit_3DNOWP (1 << 30) -#define bit_3DNOW (1 << 31) +#define bit_3DNOW (1u << 31) /* %ebx */ #define bit_CLZERO (1 << 0) -- 2.30.2