From: Aldy Hernandez Date: Thu, 9 Aug 2001 11:31:23 +0000 (+0000) Subject: mips.c (mips_legitimate_address_p): Check for CONST_INT in last patch. X-Git-Tag: prereleases/libstdc++-3.0.95~2782 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77416b3d7e5690f212e2771a76c2485a5f381b6e;p=thirdparty%2Fgcc.git mips.c (mips_legitimate_address_p): Check for CONST_INT in last patch. * config/mips/mips.c (mips_legitimate_address_p): Check for CONST_INT in last patch. From-SVN: r44736 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6f285955a3cc..cc0043e47747 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-09 Aldy Hernandez + + * config/mips/mips.c (mips_legitimate_address_p): Check for + CONST_INT in last patch. + 2001-08-08 Anthony Green * java/class.c (emit_register_classes): Use assemble_jcr if diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index a2caf2ac7b41..879da3da73ed 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -1368,8 +1368,9 @@ mips_legitimate_address_p (mode, xinsn, strict) in "la x, foo(x)" yielding the wrong result for: (set (blah:DI) (plus x y)). */ && (!TARGET_64BIT - || trunc_int_for_mode (INTVAL (xplus1), - SImode) == INTVAL (xplus1)) + || (code1 == CONST_INT + && trunc_int_for_mode (INTVAL (xplus1), + SImode) == INTVAL (xplus1))) && !TARGET_MIPS16) return 1; }