From a601a53a620f8e595c096088825461d19e10964b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sat, 28 May 2011 07:38:07 +0000 Subject: [PATCH] re PR bootstrap/49195 (Error building libgcc for powerpc64 since r174305) gcc/ PR bootstrap/49195 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP for match_op_dup. From-SVN: r174378 --- gcc/ChangeLog | 6 ++++++ gcc/genrecog.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 416d08fe04f..83397fb2271 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-28 Richard Sandiford + + PR bootstrap/49195 + * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP + for match_op_dup. + 2011-05-27 Andrew Pinski PR middle-end/48981 diff --git a/gcc/genrecog.c b/gcc/genrecog.c index 08f63bd03ed..6d92444ae0a 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -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; -- 2.30.2