From e5503743149af44c2a3a9ad3883809903b577728 Mon Sep 17 00:00:00 2001 From: Graham Stott Date: Wed, 8 Aug 2001 07:49:06 +0000 Subject: [PATCH] mips.c (mips_legitimate_address_p): Fix enable checking failure check for CONST_INT * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking failure check for CONST_INT From-SVN: r44708 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 338b7048e741..df59d7333b2f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-08 Graham Stott + + * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking + failure check for CONST_INT + 2001-08-08 Graham Stott * flow.c (back_edge_of_syntactic_loop_p): Add whitespace. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index be0033a9fb16..9614c95f31dc 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -1366,7 +1366,7 @@ mips_legitimate_address_p (mode, xinsn, strict) /* 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_64BIT || (code1 == CONST_INT && INTVAL (xplus1) > 0)) && !TARGET_MIPS16) return 1; }