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: PATCH - Minor changes to support 64bit int/32bit ABI for PPC



On Monday, November 10, 2003, at 11:07 AM, David Edelsohn wrote:


Fariborz Jahanian writes:

Fariborz> I see several places in rs6000.c of FSF branch where code is Fariborz> controlled by Fariborz> HOST_BITS_PER_WIDE_INT == 32. So, above policy must have Fariborz> been enacted post those changes.

	There are #if brackets testing HOST_BITS_PER_WIDE_INT to avoid
compiler warning when compiling in 32-bit mode for 32-bit target.

David

It seems to me that following code does not fall under above categorization.
But in any case, I will make my change APPLE LOCAL.


#if HOST_BITS_PER_WIDE_INT == 32
lshift_double (low, high, POINTER_SIZE - GET_MODE_BITSIZE (mode),
POINTER_SIZE, &low, &high, 0);
#else
low |= high << 32;
low <<= POINTER_SIZE - GET_MODE_BITSIZE (mode);
high = (HOST_WIDE_INT) low >> 32;
low &= 0xffffffff;
#endif





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