[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'

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Feb 19 21:37:00 GMT 2017


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.


More information about the Gcc-bugs mailing list