From 02aec184ceac620e40e15dbb78fa7d43d4a40972 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Wed, 20 Jul 2011 11:26:57 -0400 Subject: [PATCH] genrecog.c (make_insn_sequence): Correct position numbering when filtering out match_scratch and match_dup. 2011-07-20 Sandra Loosemore gcc/ * genrecog.c (make_insn_sequence): Correct position numbering when filtering out match_scratch and match_dup. From-SVN: r176518 --- gcc/ChangeLog | 5 +++++ gcc/genrecog.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2df70f0aba5..b2f7e19c356 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-20 Sandra Loosemore + + * genrecog.c (make_insn_sequence): Correct position numbering + when filtering out match_scratch and match_dup. + 2011-07-20 Richard Guenther * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 7c9298dfc60..0d8be8f7607 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -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; -- 2.30.2