summaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-20 15:26:57 +0000
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-20 15:26:57 +0000
commit6cfd42c4599adba49977f6a7eca168fb2494cc8b (patch)
tree38ba59a8a25c0a9e2bf8340245d4044ec260ed8c /gcc/genrecog.c
parent6f9714b3fe62c08b5d1bcf64483d5da074e0e22f (diff)
downloadgcc-6cfd42c4599adba49977f6a7eca168fb2494cc8b.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176518 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c2
1 files changed, 1 insertions, 1 deletions
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;