This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cross from alpha to arm
- To: egcs at cygnus dot com
- Subject: cross from alpha to arm
- From: Stephen Williams <steve at icarus dot icarus dot com>
- Date: Wed, 15 Oct 1997 09:15:25 +0800
This very simple patch allows egcs to successfully build libgcc for the
arm from a Linux/alpha host. I can't say if it fixes the root of the problem,
but it certainly gets me over the immediate hurdle. This seems to be the
only place left where 64bit host --> 32bit arm is confused.
*** egcs-971008/gcc/config/arm/arm.c Mon Aug 11 08:57:24 1997
--- ../egcs-971008/gcc/config/arm/arm.c Tue Oct 14 18:31:16 1997
***************
*** 407,412 ****
--- 407,416 ----
{
unsigned HOST_WIDE_INT mask = ~0xFF;
+ #if HOST_BITS_PER_WIDE_INT > 32
+ if (i & 0xffffffff00000000LL) return FALSE;
+ #endif
+
/* Fast return for 0 and powers of 2 */
if ((i & (i - 1)) == 0)
return TRUE;