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: 150689 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp129181ljp; Fri, 9 Nov 2018 09:31:40 -0800 (PST) X-Google-Smtp-Source: AJdET5d/O+7KDTsyjjxWhSgMsPw6pfXM8orgsZk1KSziPCbP4LUFFLp9Oqw/QYyLDDTtTJ5+fwxv X-Received: by 2002:a17:902:8214:: with SMTP id x20-v6mr9417873pln.224.1541784699759; Fri, 09 Nov 2018 09:31:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541784699; cv=none; d=google.com; s=arc-20160816; b=RmN9jn/A7uZp2YQJ5ElZ0xgVb3yv5avDsAw9zfijCxO6xh3XvQjffNJysz0hDh6J+R 2Ja2eCd6YPIFn45risR/I83uNZHNN5bhhVMmRctXn5Zt0hDjBusKZQ7U5BHzHv+2x0r8 rC82GHXtmHm5/jy5gpd8atGvTP1LrGlfzEpAl0T6CakQUK39ZaMSsnbQnmp+BiOLrcqp l+KmsJT4+9jkH90Fs0pGzzjqW8m7RK1tsRnBivJpBlmP+34BOq6VVtL6U3/F2CebZDpw /r8cHrLKOgD6/Hzf0tGelEIAd6IkJ4TVV5op5GV38xGaXnCNE7CVmoDL+nyAc9MYwOsb iB7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:date:message-id:openpgp:subject:from:to :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=mzlKl1ztG5xeQEyKhkLv8M59pQz34AX9pyFHVRwrpCg=; b=gPVTsnuhkhAjwAlcSWNfsHpK/Nw5Emw+eh6mRObwWY5T2GK6Zbzlj0AfrNbJrQ+pv8 /pM12CGgUjDHhFcdo3j9vH0mdmQSP1lONv11auCndQwSH0FNFFmjQqo410XDY8L9382W mKIUuxOH34XBzu7MjctHZ/sNoI1eSOGxrp03jCbtcBVveFrWsAXderUWAn9qlCJMQD6b qoDM4Fu06uj07oMz4oTbxqMsU10nTPUPasNLncj7YROHcDIR955vAM81w41ODJqfAVQ8 ssyVl0URDa9PPmsQHoAqLrTZ99IuI0VDSreMQLc1KWHArYnrsz+pIgRagc16SRjVpYEu gtCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mQRkEq3o; spf=pass (google.com: domain of gcc-patches-return-489549-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-489549-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id d13-v6si6978346pgv.84.2018.11.09.09.31.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 09:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-489549-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mQRkEq3o; spf=pass (google.com: domain of gcc-patches-return-489549-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-489549-patch=linaro.org@gcc.gnu.org" 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=VDwi0dFTt/NAdhQaHr8YJyugdb852ZEZjxrV5qUqUL1mi1UhdC J/mqgapnmBPtNQbWqBgFBKKhYXUQ/FyAEgIp+JPEUAisPwqxNMGqhszB+L/yixFV bMe50OWjtgy7NPLUd9pEjpJ8MrfCwJ+Rdc7C6n3svkLZeVUaq5WGtTzrc= 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=mQRkEq3ohHza9NaC2egj clMCEele4yKswRPGl4r2Snj854lvnWf1hV1VOdNule/D2+WSlnMBOO9AoB2AlGGD V8YLECyZ+VLbpm2usODx+9udVrcIAVon/sB1aD1nsTKhohBoKpsLDQE+Ak6T2/Vz rnwGnab/o6vnm365oWwMulk= 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 }