diff options
author | Nick Clifton <nickc@redhat.com> | 2008-03-26 12:32:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2008-03-26 12:32:22 +0000 |
commit | 813ab1d7df3a0c7c2de2c8e5c30ce6be69e0a6dd (patch) | |
tree | 7c82d896d013d2a55acc1ef329554c4584551fb9 /gcc | |
parent | cf3135aaa1c0553f5e61128eea65fabbfb101eaf (diff) | |
download | gcc-813ab1d7df3a0c7c2de2c8e5c30ce6be69e0a6dd.zip gcc-813ab1d7df3a0c7c2de2c8e5c30ce6be69e0a6dd.tar.gz gcc-813ab1d7df3a0c7c2de2c8e5c30ce6be69e0a6dd.tar.bz2 |
re PR target/31232 (Problem while compiling gcc for xstormy16-elf)
PR target/31232
* config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
not allow INT+INT as a legitimate addressing mode.
From-SVN: r133598
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/stormy16/stormy16.c | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 571d9400..d31e6ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-03-26 Nick Clifton <nickc@redhat.com> + + PR target/31232 + * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do + not allow INT+INT as a legitimate addressing mode. + 2008-03-26 Richard Guenther <rguenther@suse.de> * tree-flow.h (widen_bitfield): Remove declaration. diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index a4c1746..078b367 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -629,7 +629,12 @@ xstormy16_legitimate_address_p (enum machine_mode mode ATTRIBUTE_UNUSED, if (GET_CODE (x) == PLUS && LEGITIMATE_ADDRESS_INTEGER_P (XEXP (x, 1), 0)) - x = XEXP (x, 0); + { + x = XEXP (x, 0); + /* PR 31232: Do not allow INT+INT as an address. */ + if (GET_CODE (x) == CONST_INT) + return 0; + } if ((GET_CODE (x) == PRE_MODIFY && GET_CODE (XEXP (XEXP (x, 1), 1)) == CONST_INT) |