This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
MIPS fix enable checking failure
- To: gcc-patches at gcc dot gnu dot org
- Subject: MIPS fix enable checking failure
- From: Graham Stott <grahams at redhat dot com>
- Date: Thu, 26 Jul 2001 21:08:45 +0100
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;
}
-------------------------------------------------------------------------------