summaryrefslogtreecommitdiff
path: root/gcc/config/mn10300/mn10300.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-12-10 14:03:45 +0000
committerNick Clifton <nickc@gcc.gnu.org>2004-12-10 14:03:45 +0000
commit5542b23d7bab7f0cdf4b74fe3750e5d4acafac7f (patch)
treef5656b72289776a45ea4df63d95e8649c1f015fe /gcc/config/mn10300/mn10300.c
parentd5f60056f02a4f2bb7201f05224de907c9c234c4 (diff)
downloadgcc-5542b23d7bab7f0cdf4b74fe3750e5d4acafac7f.tar.gz
(legitimate_address_p): Reject address whose index is itself the sum of two
other parts. From-SVN: r91991
Diffstat (limited to 'gcc/config/mn10300/mn10300.c')
-rw-r--r--gcc/config/mn10300/mn10300.c1
1 files changed, 1 insertions, 0 deletions
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;