This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix powerpc64 g77
David Edelsohn <dje@watson.ibm.com> writes:
| The protected code is:
|
| #if HOST_BITS_PER_WIDE_INT == 32
| ...
| #else
| low |= high << 32;
| low <<= POINTER_SIZE - GET_MODE_BITSIZE (mode);
| high = (HOST_WIDE_INT) low >> 32;
| low &= 0xffffffff;
| #endif
|
| If the conditional used if() instead of #if (so that GCC always parsed
| both branches) and HOST_BITS_PER_WIDE_INT == 32, one would received the
| following GCC warnings:
|
| warning: left shift count >= width of type
| warning: right shift count >= width of type
If that does happen, then it is a bug (in the compiler).
-- Gaby