re PR rtl-optimization/11271 ([arm-elf] regex.c ICEs for thumb multilib)

PR target/11271
* reload.c (find_reloads_address): Handle any register in
(PLUS (PLUS (REG) (REG)) (CONST_INT).

From-SVN: r73136
This commit is contained in:
Richard Earnshaw 2003-10-31 11:37:20 +00:00 committed by Richard Earnshaw
parent c5d6d04a1e
commit b1f9e3147f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-10-31 Richard Earnshaw <rearnsha@arm.com>
PR target/11271
* reload.c (find_reloads_address): Handle any register in
(PLUS (PLUS (REG) (REG)) (CONST_INT).
2003-10-31 Richard Earnshaw <rearnsha@arm.com>
* ggc-page.c (ggc_pch_read): Wrap call to poison_pages in

View File

@ -4884,7 +4884,6 @@ find_reloads_address (enum machine_mode mode, rtx *memrefloc, rtx ad,
&& GET_CODE (XEXP (ad, 0)) == PLUS
&& GET_CODE (XEXP (XEXP (ad, 0), 0)) == REG
&& REGNO (XEXP (XEXP (ad, 0), 0)) < FIRST_PSEUDO_REGISTER
&& REG_MODE_OK_FOR_BASE_P (XEXP (XEXP (ad, 0), 0), mode)
&& ! maybe_memory_address_p (mode, ad, &XEXP (XEXP (ad, 0), 1)))
{
*loc = ad = gen_rtx_PLUS (GET_MODE (ad),
@ -4904,7 +4903,6 @@ find_reloads_address (enum machine_mode mode, rtx *memrefloc, rtx ad,
&& GET_CODE (XEXP (ad, 0)) == PLUS
&& GET_CODE (XEXP (XEXP (ad, 0), 1)) == REG
&& REGNO (XEXP (XEXP (ad, 0), 1)) < FIRST_PSEUDO_REGISTER
&& REG_MODE_OK_FOR_BASE_P (XEXP (XEXP (ad, 0), 1), mode)
&& ! maybe_memory_address_p (mode, ad, &XEXP (XEXP (ad, 0), 0)))
{
*loc = ad = gen_rtx_PLUS (GET_MODE (ad),