From patchwork Thu Nov 15 21:54:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 199431 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 9C16C2C04F2 for ; Fri, 16 Nov 2012 08:55:48 +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=1353621348; 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=W8ZK0z8 Dt104fjAhXcl6MUmefdE=; b=uppO6Lh0ERNL+J8yRhDAFml33FEcXJZBEr3Vqwr KT9Vrb6Y8WW66yoxlyxhMgNW+iE0stBaQrOAyO1hHAZ3lyeP6DqHSMTpEFt4k5sL +dfSNlLEYxNUYovqmNn68Hn9IQVU0Wqz7lMmyBTWoNDtCqeV0x2uY9HwFgTDEpZV jtFI= 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=DX+V3t+AWDpEzkRWZuMwE4q+491jiU5fnDBO24hqY3zUSuMvc49chwgEherW9M m/6BaDt3CtaAVsGClf7YizcYR1WbLMo0jJy7WjKzScGUt4Et9eMmopk6NI+DN5aj hcl4zP0Ge4JrNFSxBv6A6XUcvCBZZ1Rfd4MyTaAkWrA3Y=; Received: (qmail 10735 invoked by alias); 15 Nov 2012 21:54:17 -0000 Received: (qmail 10662 invoked by uid 22791); 15 Nov 2012 21:54:15 -0000 X-SWARE-Spam-Status: No, hits=-4.3 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-vc0-f201.google.com (HELO mail-vc0-f201.google.com) (209.85.220.201) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Nov 2012 21:54:07 +0000 Received: by mail-vc0-f201.google.com with SMTP id n11so230949vch.2 for ; Thu, 15 Nov 2012 13:54:06 -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=fjch3o+uhOzn2lhJlvqbshj7ghm73LzIQ8DqIqimyLM=; b=JPk6ISp0vJHug+MfMzGLOYBLjE1ftbyHAaKX2QPDt11CdmpfXHYRau8bjmtD37gd1T FioztvdTlg8zwaih7i2N60OLDx2jCcehWq0dknXjHP2PxQjYQ+3X3lsKwAFGLlJyIVUn CoiGzZ8om8VHnUYkToDoKgsJ72Iyd8IlDxOuSWCQP2gxdZ6FdZ35Kt6JRdgEWZ43aq1G b8xj/Q1DBOfNwgTxcucreu5Dt3BeLYFXjEX6ersoumam+Jpz+CGrq6XbvY4cZdOr+3om 0GarVikWoCJiQC7ERx6E4xQsXLxiQUAHVZIQnzjk14iipjJyFhWbAVZ1+fQss53VJYz5 1H6w== Received: by 10.236.129.106 with SMTP id g70mr1686767yhi.49.1353016446597; Thu, 15 Nov 2012 13:54:06 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id u20si730960anj.3.2012.11.15.13.54.06 (version=TLSv1/SSLv3 cipher=AES128-SHA); Thu, 15 Nov 2012 13:54:06 -0800 (PST) Received: from torture.tor.corp.google.com (torture.tor.corp.google.com [172.30.222.16]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 74BA5100320; Thu, 15 Nov 2012 13:54:06 -0800 (PST) Received: by torture.tor.corp.google.com (Postfix, from userid 54752) id 140CAC0916; Thu, 15 Nov 2012 16:54:06 -0500 (EST) Date: Thu, 15 Nov 2012 16:54:06 -0500 To: wilson@tuliptree.org, gcc-patches@gcc.gnu.org Subject: VEC re-write [patch 16/25] User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Message-Id: <20121115215406.140CAC0916@torture.tor.corp.google.com> From: dnovillo@google.com (Diego Novillo) X-Gm-Message-State: ALoCoQnTftdtyUouHMjFeCdJrbobQJsZN/AgeYz3cZzD2I+ZHdrNRt4FYlspTUWQEKFYGUkaPSb8KdjRVUxw2PKu1N8QnbbwQ9ZsBGU+4sRN1lSk1e01deivOtVTneIer1OEHai94b4IYd/LXkB0Ty/eL6iEnCj8519zR9+6IUPH/3dOCLgmNgJbczBvVbFvuuHBuWeZgJg3+9mIVnNB9p2yWex86S9Cbxy5eeSa4/5lUtKVfDX8SVg= 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/ia64/ia64.c: Use new vec API in vec.h. diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 66f85de..9a7528f 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -5937,21 +5937,22 @@ ia64_option_override (void) { unsigned int i; cl_deferred_option *opt; - VEC(cl_deferred_option,heap) *vec - = (VEC(cl_deferred_option,heap) *) ia64_deferred_options; + vec *v + = (vec *) ia64_deferred_options; - FOR_EACH_VEC_ELT (cl_deferred_option, vec, i, opt) - { - switch (opt->opt_index) - { - case OPT_mfixed_range_: - fix_range (opt->arg); - break; + if (v) + FOR_EACH_VEC_ELT (*v, i, opt) + { + switch (opt->opt_index) + { + case OPT_mfixed_range_: + fix_range (opt->arg); + break; - default: - gcc_unreachable (); - } - } + default: + gcc_unreachable (); + } + } if (TARGET_AUTO_PIC) target_flags |= MASK_CONST_GP;