From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1130) id C9A753858418; Thu, 29 Sep 2022 10:34:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9A753858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664447652; bh=SyEA66XPlzsBf7/3r9QYRN/y+5ZroBXod8mYqEG9O6U=; h=From:To:Subject:Date:From; b=X9tg/8G6kJjK1VnXPCwRwu+0Yacsj0zJcY+O7fGE4rdg4pO2mXEEpISVL4p1dntLj oVlSvutLBUEOlrQn0Rug2aKIay1CSxOxsiIcqzDb7WEcnzPfYUeqzpTDzKx7ybiH+7 Rq94R828o97JuGGZiC1Qi+edLNreHRh6VGlxf0eU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Sandiford To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2938] aarch64: Small config.gcc cleanups X-Act-Checkin: gcc X-Git-Author: Richard Sandiford X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 00c22ba69d8e738a4789b30165ff9c925c508fc1 X-Git-Newrev: 0af214b447529453b356e8e480d7d35b3e642f0e Message-Id: <20220929103412.C9A753858418@sourceware.org> Date: Thu, 29 Sep 2022 10:34:12 +0000 (GMT) List-Id: https://gcc.gnu.org/g:0af214b447529453b356e8e480d7d35b3e642f0e commit r13-2938-g0af214b447529453b356e8e480d7d35b3e642f0e Author: Richard Sandiford Date: Thu Sep 29 11:32:52 2022 +0100 aarch64: Small config.gcc cleanups 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. Diff: --- 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)