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]

MIPS fix enable checking failure


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;
        }
-------------------------------------------------------------------------------


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