This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/71017] libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 19 Feb 2017 21:37:29 +0000
- Subject: [Bug target/71017] libgcc/config/i386/cpuinfo.c:346:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
- Auto-submitted: auto-generated
- References: <bug-71017-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71017
--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Dominique d'Humieres from comment #6)
> > It should be fixed now. Closing.
>
> I forgot to commit the fix to the 5 branch, done now. I also noticed that
> the same problem occurs with
>
> #define bit_3DNOW (1 << 31)
>
> but I don't know how to test the obvious fix. Is it OK to commit it
> nevertheless?
Yes. Please go ahead with the patch.