From 5542b23d7bab7f0cdf4b74fe3750e5d4acafac7f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 10 Dec 2004 14:03:45 +0000 Subject: [PATCH] (legitimate_address_p): Reject address whose index is itself the sum of two other parts. From-SVN: r91991 --- gcc/ChangeLog | 5 +++++ gcc/config/mn10300/mn10300.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9503cf96f36..667977e4962 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-10 Nick Clifton + + * config/mn10300/mn10300.c (legitimate_address_p): Reject address + whose index is itself the sum of two other parts. + 2004-12-10 Alan Modra * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink. diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index b0af9d91d27..6a260502cf5 100644 --- a/gcc/config/mn10300/mn10300.c +++ b/gcc/config/mn10300/mn10300.c @@ -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; -- 2.30.2