gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 May 2011 07:38:07 +0000 (07:38 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 May 2011 07:38:07 +0000 (07:38 +0000)
PR bootstrap/49195
* genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
for match_op_dup.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174378 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/genrecog.c

index 416d08f..83397fb 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       PR bootstrap/49195
+       * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
+       for match_op_dup.
+
 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
 
        PR middle-end/48981
index 08f63bd..6d92444 100644 (file)
@@ -913,10 +913,10 @@ add_to_sequence (rtx pattern, struct decision_head *last,
       test = new_decision_test (DT_accept_op, &place);
       test->u.opno = XINT (pattern, 0);
 
-      subpos_ptr = &pos->xvecexp0s;
+      subpos_ptr = &pos->xexps;
       for (i = 0; i < (size_t) XVECLEN (pattern, 1); i++)
        {
-         subpos = next_position (subpos_ptr, pos, POS_XVECEXP0, i);
+         subpos = next_position (subpos_ptr, pos, POS_XEXP, i);
          sub = add_to_sequence (XVECEXP (pattern, 1, i),
                                 &sub->success, subpos, insn_type, 0);
          subpos_ptr = &subpos->next;