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 | |
parent | d5f60056f02a4f2bb7201f05224de907c9c234c4 (diff) | |
download | gcc-5542b23d7bab7f0cdf4b74fe3750e5d4acafac7f.zip gcc-5542b23d7bab7f0cdf4b74fe3750e5d4acafac7f.tar.gz gcc-5542b23d7bab7f0cdf4b74fe3750e5d4acafac7f.tar.bz2 |
(legitimate_address_p): Reject address whose index is itself the sum of two
other parts.
From-SVN: r91991
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mn10300/mn10300.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9503cf9..667977e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index b0af9d9..6a26050 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; |