Commit 813ab1d7 by Nick Clifton Committed by Nick Clifton

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
parent cf3135aa
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> 2008-03-26 Richard Guenther <rguenther@suse.de>
* tree-flow.h (widen_bitfield): Remove declaration. * tree-flow.h (widen_bitfield): Remove declaration.
......
...@@ -629,7 +629,12 @@ xstormy16_legitimate_address_p (enum machine_mode mode ATTRIBUTE_UNUSED, ...@@ -629,7 +629,12 @@ xstormy16_legitimate_address_p (enum machine_mode mode ATTRIBUTE_UNUSED,
if (GET_CODE (x) == PLUS if (GET_CODE (x) == PLUS
&& LEGITIMATE_ADDRESS_INTEGER_P (XEXP (x, 1), 0)) && 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 if ((GET_CODE (x) == PRE_MODIFY
&& GET_CODE (XEXP (XEXP (x, 1), 1)) == CONST_INT) && GET_CODE (XEXP (XEXP (x, 1), 1)) == CONST_INT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment