From patchwork Thu Sep 29 10:40:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 1529 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f2ce:0:0:0:0:0 with SMTP id d14csp616646wrp; Thu, 29 Sep 2022 03:42:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6MBFng47jsFJLHv31nJ4UqGU7GGT44yVL3oywKTxEAC/2By3XAynUpInyevHAqhK1/m0PY X-Received: by 2002:a17:906:8a57:b0:781:9705:df89 with SMTP id gx23-20020a1709068a5700b007819705df89mr2215194ejc.266.1664448176639; Thu, 29 Sep 2022 03:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664448176; cv=none; d=google.com; s=arc-20160816; b=UkiiUJY6rgPyAJjYdvDbILh196+Rt83DWb9DyjZ/HM2INQ/hYg4m2TSCdBZ6O/I0aE zTcofcXGjqSetGIJ4/YuL0vr00dVxQn0v1LVd4FEwItIkSCro8sIDeTruZEXCUFRafSo 0SlGyC5TxPEVoL1WVrrs9QrKzSvv34ZnmdG6Gt7pBRM5xD7SzsGLpzn8pSHyX5F9Ls80 wNVHOPfpd9HdskpzONaf+8sY+fxJguicrQBrEVmfcrW6NxlJFbR7IJWmWRYs0SFqFTMA Rtlv+uaRm2fi60EwpjN6rXZhmsPEWmAOjcuz/wFtlUt8nXsll510iefOOIEa4PkzleGY 2uJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:in-reply-to:date:references:subject :mail-followup-to:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=vnwAQ/Kayao05qH8zH6HgmKg3uuC3RPm4659kgOXnM0=; b=hxmc2I6KYlnucWu79a7HhOsFhB7RcAGhUdufIgzDuySwZ3iPAkKwJjxZi1shW1LrNc RFUdaubkO1zcaH/71GTQhIMJ+a1V17iimk75Om0X2OdhGumqjF03A5OHf/YZ03y932gg VyO3KxoaTQIDUmyyEFrwjbpwrTWmBq1ZjFEKHM+0SrNX6Th8X14e2KppnwlBvnEePs2E Grmv94XUD20LS5CSzh0CuwjYyhbMyxw+54ZdZCWCLEvtd+6Cg25XAlUe1f166RQm68ob fkj/U+hKrGOQ9W3hg7iMKQwza5hQAyypKaXWeC7KCiyGQlydcF9Ugf4VRdeAbTLG9zuh zWew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=iFuUffvc; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q15-20020a056402518f00b00445d00730b3si8489556edd.416.2022.09.29.03.42.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 03:42:56 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=iFuUffvc; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 509F53856964 for ; Thu, 29 Sep 2022 10:41:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 509F53856964 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664448092; bh=vnwAQ/Kayao05qH8zH6HgmKg3uuC3RPm4659kgOXnM0=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=iFuUffvciB7QO0XkOoUqYDRFVe5+717iQTH61mdaqaxa30g7jcpLoe6yYcoiAv44X WeqesTB5a3SvAAeKESjdeO1ZN4ETuPqQ2UVOAhFqGcM2ly7CZD1KkeJFhb4kH8xw+b 6RVtWfWjEwyWk4ybNIQPuUYfV5zAavxkLw8YAzl4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id DFA05385802B for ; Thu, 29 Sep 2022 10:40:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DFA05385802B Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4425815BF for ; Thu, 29 Sep 2022 03:40:37 -0700 (PDT) Received: from localhost (e121540-lin.manchester.arm.com [10.32.98.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3DAD33F73B for ; Thu, 29 Sep 2022 03:40:30 -0700 (PDT) To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [PATCH 05/17] aarch64: Small config.gcc cleanups References: Date: Thu, 29 Sep 2022 11:40:28 +0100 In-Reply-To: (Richard Sandiford's message of "Thu, 29 Sep 2022 11:39:11 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Spam-Status: No, score=-46.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Sandiford via Gcc-patches From: Richard Sandiford Reply-To: Richard Sandiford Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745300411203080906?= X-GMAIL-MSGID: =?utf-8?q?1745300411203080906?= The aarch64-option-extensions.def parsing in config.gcc had some code left over from when it tried to parse the whole macro definition. Also, config.gcc now only looks at the first fields of the aarch64-arches.def entries. gcc/ * config.gcc: Remove dead aarch64-option-extensions.def code. * config/aarch64/aarch64-arches.def: Update comment. --- gcc/config.gcc | 8 -------- gcc/config/aarch64/aarch64-arches.def | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 7eb07870425..555f257c2e7 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4100,14 +4100,6 @@ case "${target}" in options_parsed="`$ac_cv_prog_CPP -D"$opt_macro" -x c \ ${srcdir}/config/aarch64/aarch64-option-extensions.def`" - # Match one element inside AARCH64_OPT_EXTENSION, we - # consume anything that's not a ,. - elem="[ ]*\([^,]\+\)[ ]*" - - # Repeat the pattern for the number of entries in the - # AARCH64_OPT_EXTENSION, currently 6 times. - sed_patt="^$elem,$elem,$elem,$elem,$elem,$elem" - while [ x"$ext_val" != x ] do ext_val=`echo $ext_val | sed -e 's/\+//'` diff --git a/gcc/config/aarch64/aarch64-arches.def b/gcc/config/aarch64/aarch64-arches.def index e422028224b..ece96e22a70 100644 --- a/gcc/config/aarch64/aarch64-arches.def +++ b/gcc/config/aarch64/aarch64-arches.def @@ -28,7 +28,7 @@ ARCH_REV is an integer specifying the architecture major revision. FLAGS are the flags implied by the architecture. Due to the assumptions about the positions of these fields in config.gcc, - the NAME should be kept as the first argument and FLAGS as the last. */ + NAME should be kept as the first argument. */ AARCH64_ARCH("armv8-a", generic, V8A, 8, AARCH64_FL_FOR_V8A) AARCH64_ARCH("armv8.1-a", generic, V8_1A, 8, AARCH64_FL_FOR_V8_1A)