This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix powerpc64 g77


	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]