Commit 03414545 by Kaz Kojima

re PR target/23832 (libjava build failure on sh64)

	PR target/23832
	* recog.c (peephole2_optimize): Increment peep2_current_count
	only when the slot is empty.

From-SVN: r105827
parent ad238e4f
2005-10-23 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/23832
* recog.c (peephole2_optimize): Increment peep2_current_count
only when the slot is empty.
2005-10-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2005-10-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR ada/23957 PR ada/23957
......
...@@ -3091,7 +3091,8 @@ peephole2_optimize (FILE *dump_file ATTRIBUTE_UNUSED) ...@@ -3091,7 +3091,8 @@ peephole2_optimize (FILE *dump_file ATTRIBUTE_UNUSED)
/* Record this insn. */ /* Record this insn. */
if (--peep2_current < 0) if (--peep2_current < 0)
peep2_current = MAX_INSNS_PER_PEEP2; peep2_current = MAX_INSNS_PER_PEEP2;
if (peep2_current_count < MAX_INSNS_PER_PEEP2) if (peep2_current_count < MAX_INSNS_PER_PEEP2
&& peep2_insn_data[peep2_current].insn == NULL_RTX)
peep2_current_count++; peep2_current_count++;
peep2_insn_data[peep2_current].insn = insn; peep2_insn_data[peep2_current].insn = insn;
propagate_one_insn (pbi, insn); propagate_one_insn (pbi, insn);
...@@ -3253,7 +3254,8 @@ peephole2_optimize (FILE *dump_file ATTRIBUTE_UNUSED) ...@@ -3253,7 +3254,8 @@ peephole2_optimize (FILE *dump_file ATTRIBUTE_UNUSED)
{ {
if (--i < 0) if (--i < 0)
i = MAX_INSNS_PER_PEEP2; i = MAX_INSNS_PER_PEEP2;
if (peep2_current_count < MAX_INSNS_PER_PEEP2) if (peep2_current_count < MAX_INSNS_PER_PEEP2
&& peep2_insn_data[i].insn == NULL_RTX)
peep2_current_count++; peep2_current_count++;
peep2_insn_data[i].insn = x; peep2_insn_data[i].insn = x;
propagate_one_insn (pbi, x); propagate_one_insn (pbi, x);
......
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