From: Sandra Loosemore Date: Wed, 20 Jul 2011 15:26:57 +0000 (-0400) Subject: genrecog.c (make_insn_sequence): Correct position numbering when filtering out match_... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02aec184ceac620e40e15dbb78fa7d43d4a40972;p=gcc.git 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 --- 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;