From patchwork Thu Nov 15 21:53:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 199427 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9FB4C2C0419 for ; Fri, 16 Nov 2012 08:55:03 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1353621303; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Date:To:Subject:User-Agent: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id: From:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=LSka6Dm pY+qKUNh4phdy2U/lSa0=; b=fLPy8PTXOlF45Cfh+zKqvmc7yt9CSgPjjWygDqC yEz/2vNA+9zC0ZnJ+6evJpIuj0Y7i+N5l75WC7wVqDXG7V9esIZ29ooqaY4rV8J6 c9lsbZBnF5pxPaw8I7eL4yGxAh+ksHfIm6fHCEio6WY2vJSiOp0g16qHel6kMFkH 8zPM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Received:Received:Date:To:Subject:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:From:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=gdqRWLOHrFEcPK5mb9NYovTelV3nybZgljx6wgr7OKaG/hotJhRZaWvWR9MSlI pQornr9A/OEE7/m02pswSGNt9XZc3IgL6jhpSAsno9Zaklcrfmb2ptgT6SQsgIev ctPXgNgcGqUyaFysOUjJCzBpR5qRA9qwzxUjKluIq6YVc=; Received: (qmail 10274 invoked by alias); 15 Nov 2012 21:54:05 -0000 Received: (qmail 10217 invoked by uid 22791); 15 Nov 2012 21:54:04 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-wi0-f201.google.com (HELO mail-wi0-f201.google.com) (209.85.212.201) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Nov 2012 21:53:56 +0000 Received: by mail-wi0-f201.google.com with SMTP id hm2so137577wib.2 for ; Thu, 15 Nov 2012 13:53:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:to:subject:user-agent:mime-version:content-type :content-transfer-encoding:message-id:from:x-gm-message-state; bh=sHh07MaF/zRsV0rT4x2LkJ6o9vzF5EYWI786hDlwpWM=; b=GXDFC6vfrtSgyUJh91PO1B/NYjq8VyEqj6Y/hMTtHzG1qYZLzVvNiZjrmvO8wZCEYn DkKfxcFeus7FRqy75OTdvfz9lS26oIiTRAfM5lX6uuxHlHnkHrhqtW4vXRM4C5wmK64/ n77QENV5A5xWEDUouiY3qHhRl6zQGf2+QjIf6qBFYRC5YafDlFa4OMq2nAtdW6gAEdAW 8c/AdsyQGMDkLjJOtQPfUI4zPHi8+Tl8wSANI6bs6X+QgGjilqtFIPe2w59GTgmEm/KF RygT+fY677VVLNPj6GnpogJ3iFQrEdKPdpKn56aRJClFbf9K7sMHDk3U8/KIwDLF6Pt8 FDjQ== Received: by 10.14.199.6 with SMTP id w6mr3314821een.0.1353016435175; Thu, 15 Nov 2012 13:53:55 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id z47si4118390eel.0.2012.11.15.13.53.55 (version=TLSv1/SSLv3 cipher=AES128-SHA); Thu, 15 Nov 2012 13:53:55 -0800 (PST) Received: from torture.tor.corp.google.com (torture.tor.corp.google.com [172.30.222.16]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id DA67F200306; Thu, 15 Nov 2012 13:53:54 -0800 (PST) Received: by torture.tor.corp.google.com (Postfix, from userid 54752) id 34686C0916; Thu, 15 Nov 2012 16:53:53 -0500 (EST) Date: Thu, 15 Nov 2012 16:53:53 -0500 To: bernds@codesourcery.com, gcc-patches@gcc.gnu.org Subject: VEC re-write [patch 12/25] User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Message-Id: <20121115215354.34686C0916@torture.tor.corp.google.com> From: dnovillo@google.com (Diego Novillo) X-Gm-Message-State: ALoCoQnlSgXn0ywmxZG/k6G1TLKIULyR6Ni4Riynq55JXTawPedgPCYR1J+mT8gMviWpCsgvLUx2kOpwP9MDvJy5zKlDnp4zdKwjuOzG3XWagIu/YPqe0COZUcasCAb6ZVXFI+TB7eliV3r4M6DOedtbo+Lk2Y2Oikaimcqng/wZ+ne4fFOsyZtVkUUC16OefE5mDpwNHAIm X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/bfin/bfin.c: Use new vec API in vec.h. diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 2c01cf7..f2d8473 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -3480,8 +3480,8 @@ hwloop_optimize (hwloop_info loop) insn = BB_END (loop->incoming_src); /* If we have to insert the LSETUP before a jump, count that jump in the length. */ - if (VEC_length (edge, loop->incoming) > 1 - || !(VEC_last (edge, loop->incoming)->flags & EDGE_FALLTHRU)) + if (vec_safe_length (loop->incoming) > 1 + || !(loop->incoming->last ()->flags & EDGE_FALLTHRU)) { gcc_assert (JUMP_P (insn)); insn = PREV_INSN (insn); @@ -3749,8 +3749,8 @@ hwloop_optimize (hwloop_info loop) if (loop->incoming_src) { rtx prev = BB_END (loop->incoming_src); - if (VEC_length (edge, loop->incoming) > 1 - || !(VEC_last (edge, loop->incoming)->flags & EDGE_FALLTHRU)) + if (vec_safe_length (loop->incoming) > 1 + || !(loop->incoming->last ()->flags & EDGE_FALLTHRU)) { gcc_assert (JUMP_P (prev)); prev = PREV_INSN (prev);