This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix powerpc64 g77
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc-patches at gcc dot gnu dot org, Alan Modra <amodra at bigpond dot net dot au>
- Date: Thu, 01 Aug 2002 13:30:40 -0400
- Subject: Re: Fix powerpc64 g77
- References: <m3n0s6hk9w.fsf@soliton.integrable-solutions.net>
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
David