OSDN Git Service

(legitimate_address_p): Reject address whose index is itself the sum of two
[pf3gnuchains/gcc-fork.git] / gcc / config / mn10300 / mn10300.c
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
+             && GET_CODE (XEXP (index, 0)) != PLUS
              && (! flag_pic
                  || legitimate_pic_operand_p (index)))
            return TRUE;