OSDN Git Service

(legitimate_address_p): Reject address whose index is itself the sum of two
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Dec 2004 14:03:45 +0000 (14:03 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Dec 2004 14:03:45 +0000 (14:03 +0000)
other parts.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91991 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mn10300/mn10300.c

index 9503cf9..667977e 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-10  Nick Clifton  <nickc@redhat.com>
+
+       * config/mn10300/mn10300.c (legitimate_address_p): Reject address
+       whose index is itself the sum of two other parts.
+
 2004-12-10  Alan Modra  <amodra@bigpond.net.au>
 
        * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
 2004-12-10  Alan Modra  <amodra@bigpond.net.au>
 
        * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
index b0af9d9..6a26050 100644 (file)
@@ -1887,6 +1887,7 @@ legitimate_address_p (enum machine_mode mode, rtx x, int strict)
          if (GET_CODE (index) == CONST_INT)
            return TRUE;
          if (GET_CODE (index) == CONST
          if (GET_CODE (index) == CONST_INT)
            return TRUE;
          if (GET_CODE (index) == CONST
+             && GET_CODE (XEXP (index, 0)) != PLUS
              && (! flag_pic
                  || legitimate_pic_operand_p (index)))
            return TRUE;
              && (! flag_pic
                  || legitimate_pic_operand_p (index)))
            return TRUE;