aarch64: Small config.gcc cleanups
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 29 Sep 2022 10:32:52 +0000 (11:32 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 29 Sep 2022 10:32:52 +0000 (11:32 +0100)
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
gcc/config/aarch64/aarch64-arches.def

index 7eb0787..555f257 100644 (file)
@@ -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/\+//'`
index e422028..ece96e2 100644 (file)
@@ -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)