fix compilation on AUTO_INC_DEC targets
fix compilation on AUTO_INC_DEC targets * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links as an rtx. (try_combine) [AUTO_INC_DEC]: Declare a local link rtx. From-SVN: r171995
This commit is contained in:
parent
b71b43d913
commit
3fb7c0552c
2 changed files with 20 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
|
||||||
|
|
||||||
|
* combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
|
||||||
|
as an rtx.
|
||||||
|
(try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
|
||||||
|
|
||||||
2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
|
2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
|
||||||
|
|
||||||
PR middle-end/48441
|
PR middle-end/48441
|
||||||
|
|
|
@ -1139,6 +1139,8 @@ combine_instructions (rtx f, unsigned int nregs)
|
||||||
FOR_BB_INSNS (this_basic_block, insn)
|
FOR_BB_INSNS (this_basic_block, insn)
|
||||||
if (INSN_P (insn) && BLOCK_FOR_INSN (insn))
|
if (INSN_P (insn) && BLOCK_FOR_INSN (insn))
|
||||||
{
|
{
|
||||||
|
rtx links;
|
||||||
|
|
||||||
subst_low_luid = DF_INSN_LUID (insn);
|
subst_low_luid = DF_INSN_LUID (insn);
|
||||||
subst_insn = insn;
|
subst_insn = insn;
|
||||||
|
|
||||||
|
@ -2911,6 +2913,8 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
|
||||||
/* It's not the exception. */
|
/* It's not the exception. */
|
||||||
#endif
|
#endif
|
||||||
#ifdef AUTO_INC_DEC
|
#ifdef AUTO_INC_DEC
|
||||||
|
{
|
||||||
|
rtx link;
|
||||||
for (link = REG_NOTES (i3); link; link = XEXP (link, 1))
|
for (link = REG_NOTES (i3); link; link = XEXP (link, 1))
|
||||||
if (REG_NOTE_KIND (link) == REG_INC
|
if (REG_NOTE_KIND (link) == REG_INC
|
||||||
&& (reg_overlap_mentioned_p (XEXP (link, 0), PATTERN (i2))
|
&& (reg_overlap_mentioned_p (XEXP (link, 0), PATTERN (i2))
|
||||||
|
@ -2920,6 +2924,7 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p)
|
||||||
undo_all ();
|
undo_all ();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* See if the SETs in I1 or I2 need to be kept around in the merged
|
/* See if the SETs in I1 or I2 need to be kept around in the merged
|
||||||
|
|
Loading…
Add table
Reference in a new issue