aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/genrecog.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2df70f0..b2f7e19 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 7c9298d..0d8be8f 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;