diff options
author | Nick Clifton <nickc@redhat.com> | 2004-12-10 14:03:45 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2004-12-10 14:03:45 +0000 |
commit | 5542b23d7bab7f0cdf4b74fe3750e5d4acafac7f (patch) | |
tree | f5656b72289776a45ea4df63d95e8649c1f015fe /gcc/config/mn10300/mn10300.c | |
parent | d5f60056f02a4f2bb7201f05224de907c9c234c4 (diff) | |
download | gcc-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.c | 1 |
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; |