From patchwork Fri Nov 9 17:30:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw (lists)" X-Patchwork-Id: 995678 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-489549-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="uoStQ5jt"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42s6dg095rz9s3Z for ; Sat, 10 Nov 2018 04:31:34 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=MBKUwnX3Yr25eRkAQEHv73GLwDfJXbcZ1ikZ5nnm12X1qVlQjQ BTjvKoQjAB+hpA8082Rqe3BNp8TH3XYV5XKwLdZqknncezJejZZWLNmO/L1C4vZc Z1wGyDEAu8OLC7T98afl32qnTC/bPdMQFfxG8JeKJtDdIhUYQr3+3ANw4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=byPlqeTDY+T9lOQdsZkak8r+rk4=; b=uoStQ5jtrTdE1ii93g1U nakGU/t7vzSh5LNBBPQVtXakwZ1jJ0T3SGIezphdGuNbsiNvBjKLb710HoIXHvAO fqBTYtaGZNWey0lzOmLyd08chiMlRQ+QTLXOfetxiS8/rpGPcPxw6Ms+EApA8mKe l9TXdSB9+NmZ6UOk3nARPz8= Received: (qmail 52415 invoked by alias); 9 Nov 2018 17:30:36 -0000 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 Received: (qmail 52210 invoked by uid 89); 9 Nov 2018 17:30:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=invisible, * X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Nov 2018 17:30:24 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 83448A78; Fri, 9 Nov 2018 09:30:22 -0800 (PST) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.206.194]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ECF003F718; Fri, 9 Nov 2018 09:30:21 -0800 (PST) To: gcc-patches From: "Richard Earnshaw (lists)" Subject: arm - minor cleanups for CPU alias support Openpgp: preference=signencrypt Message-ID: <3f853ffc-f7e3-68a6-3765-55447b72ce53@arm.com> Date: Fri, 9 Nov 2018 17:30:20 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 A couple of very minor issues with the new support for CPU aliases. * config/arm/parsecpu.awk (/alias/): Tighten invisible alias matching criteria. Remove unused array initializer. Committed. diff --git a/gcc/config/arm/parsecpu.awk b/gcc/config/arm/parsecpu.awk index ba2dee5fdcb..87411847ec6 100644 --- a/gcc/config/arm/parsecpu.awk +++ b/gcc/config/arm/parsecpu.awk @@ -684,7 +684,7 @@ BEGIN { for (n = 2; n <= alias_count; n++) { visible = "true" alias = $n - if (alias ~ /!.*/) { + if (alias ~ /^!.*/) { visible = "false" gsub(/^!/, "", alias) } @@ -700,7 +700,6 @@ BEGIN { } cpu_all_aliases[alias] = cpu_name } - cpu_has_alias[cpu_name] = 1 parse_ok = 1 }