aboutsummaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2011-07-20 11:26:57 -0400
committerSandra Loosemore <sandra@gcc.gnu.org>2011-07-20 11:26:57 -0400
commit02aec184ceac620e40e15dbb78fa7d43d4a40972 (patch)
tree38ba59a8a25c0a9e2bf8340245d4044ec260ed8c /gcc/genrecog.c
parentf8ecf734ddb7fb486855929b16f84af55b346711 (diff)
downloadgcc-02aec184ceac620e40e15dbb78fa7d43d4a40972.zip
gcc-02aec184ceac620e40e15dbb78fa7d43d4a40972.tar.gz
gcc-02aec184ceac620e40e15dbb78fa7d43d4a40972.tar.bz2
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
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 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;