This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] PR71017 - libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Dominique Dhumieres <dominiq at lps dot ens dot fr>, kyukhin at gcc dot gnu dot org
- Date: Mon, 9 Jan 2017 20:37:04 +0100
- Subject: Re: [Patch] PR71017 - libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
- Authentication-results: sourceware.org; auth=none
Hello!
> The following patch fixes errors of the kind
>
> libgcc/config/i386/cpuinfo.c:260:17: runtime error: left shift of 1 by 31 places cannot be
> represented in type ‘int'
>
> 2017-01-07 Dominique d'Humieres <dominiq@lps.ens.fr>
>
> PR target/71017
> * config/i386/cpuid.h: Fix undefined behavior.
> Is it OK for trunk/branches?
OK.
Thanks,
Uros.