combine.c:1670: warning: left shift count >= width of type

Alexandre Oliva aoliva@redhat.com
Tue Feb 13 02:19:00 GMT 2001


On Feb 13, 2001, Andreas Jaeger <aj@suse.de> wrote:

> is your change to combine really correct?  On i686-linux I get now:

> /cvs/gcc/gcc/combine.c: In function `try_combine':
> /cvs/gcc/gcc/combine.c:1670: warning: left shift count >= width of type

It's definitely wrong.  I hadn't considered the possibility of
HOST_BITS_PER_WIDE_INT == BITS_PER_WORD, and didn't notice the
warnings, and, out of (bad) luck, it would just work on x86.  Here's a
patch that fixes this problem.  Ok to install, if it completes
bootstrap?  Head and branch?



More information about the Gcc-bugs mailing list