genrecog.c (make_insn_sequence): Correct position numbering when filtering out match_scratch and match_dup.

2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* genrecog.c (make_insn_sequence): Correct position numbering
	when filtering out match_scratch and match_dup.

From-SVN: r176518
This commit is contained in:
Sandra Loosemore 2011-07-20 11:26:57 -04:00 committed by Sandra Loosemore
parent f8ecf734dd
commit 02aec184ce
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
* genrecog.c (make_insn_sequence): Correct position numbering
when filtering out match_scratch and match_dup.
2011-07-20 Richard Guenther <rguenther@suse.de>
* tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify

View File

@ -2345,7 +2345,7 @@ make_insn_sequence (rtx insn, enum routine_type type)
if (GET_CODE (tmp) != MATCH_SCRATCH && GET_CODE (tmp) != MATCH_DUP)
{
c_test_pos = next_position (pos_ptr, &root_pos,
POS_PEEP2_INSN, i);
POS_PEEP2_INSN, j);
XVECEXP (x, 0, j) = tmp;
j++;
pos_ptr = &c_test_pos->next;