From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9684 invoked by alias); 6 Aug 2014 17:21:24 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 7828 invoked by uid 89); 6 Aug 2014 17:21:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 06 Aug 2014 17:21:06 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s76HL2CC024823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Aug 2014 13:21:03 -0400 Received: from c64.redhat.com (vpn-239-139.phx2.redhat.com [10.3.239.139]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s76HJ2r2030913; Wed, 6 Aug 2014 13:21:01 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 206/236] jump.c: Use rtx_sequence Date: Wed, 06 Aug 2014 17:21:00 -0000 Message-Id: <1407345815-14551-207-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1407345815-14551-1-git-send-email-dmalcolm@redhat.com> References: <1407345815-14551-1-git-send-email-dmalcolm@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00548.txt.bz2 gcc/ * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce local "seq" with a checked cast, and use methods of rtx_sequence to clarify the code. --- gcc/jump.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/jump.c b/gcc/jump.c index 1aab9bb..d24e51f 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1107,9 +1107,12 @@ mark_jump_label_1 (rtx x, rtx insn, bool in_mem, bool is_target) break; case SEQUENCE: - for (i = 0; i < XVECLEN (x, 0); i++) - mark_jump_label (PATTERN (XVECEXP (x, 0, i)), - XVECEXP (x, 0, i), 0); + { + rtx_sequence *seq = as_a (x); + for (i = 0; i < seq->len (); i++) + mark_jump_label (PATTERN (seq->insn (i)), + seq->insn (i), 0); + } return; case SYMBOL_REF: -- 1.8.5.3