MIPS fix enable checking failure
Graham Stott
grahams@redhat.com
Thu Jul 26 09:10:00 GMT 2001
All
The following patch fixes an enable-checking failure.
Tested mips-elf and an internal port.
Graham
ChangeLog
* config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
failure check for CONST_INT
-----------------------------------------------------------------------------
Index: mips.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.c,v
retrieving revision 1.131
diff -c -p -r1.131 mips.c
*** mips.c 2001/07/21 18:01:46 1.131
--- mips.c 2001/07/26 16:03:15
*************** mips_legitimate_address_p (mode, xinsn,
*** 1364,1370 ****
/* When assembling for machines with 64 bit registers,
the assembler will not sign-extend the constant "foo"
in "la x, foo(x)" */
! && (!TARGET_64BIT || (INTVAL (xplus1) > 0))
&& !TARGET_MIPS16)
return 1;
}
--- 1363,1369 ----
/* When assembling for machines with 64 bit registers,
the assembler will not sign-extend the constant "foo"
in "la x, foo(x)" */
! && (!TARGET_64BIT || (code1 == CONST_INT && INTVAL (xplus1) > 0))
&& !TARGET_MIPS16)
return 1;
}
-------------------------------------------------------------------------------
More information about the Gcc-patches
mailing list