From: Graham Stott Date: Wed, 8 Aug 2001 07:49:06 +0000 (+0000) Subject: mips.c (mips_legitimate_address_p): Fix enable checking failure check for CONST_INT X-Git-Tag: prereleases/libstdc++-3.0.95~2807 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5503743149af44c2a3a9ad3883809903b577728;p=thirdparty%2Fgcc.git 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 --- 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; }