]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Accept hyphenated extensions in --with-arch [PR123460]
authorAlice Carlotti <alice.carlotti@arm.com>
Wed, 7 Jan 2026 18:55:46 +0000 (18:55 +0000)
committerAlice Carlotti <alice.carlotti@arm.com>
Fri, 16 Jan 2026 19:11:15 +0000 (19:11 +0000)
Add "-" to the list of valid characters in an extension name that is
used when removing the first extension from an extension string.

gcc/ChangeLog:

PR target/123460
* config.gcc: Accept hyphens in aarch64 --with-arch extensions.

gcc/config.gcc

index 30fcacba39273e45057970143526980ae61522c9..b671e11960be1ef634449947900b6c5d1c598e91 100644 (file)
@@ -4394,7 +4394,7 @@ case "${target}" in
                                  echo "Unknown extension used in --with-$which=$val" 1>&2
                                  exit 1
                                fi
-                               ext_val=`echo $ext_val | sed -E -e 's/[a-z0-9]+//'`
+                               ext_val=`echo $ext_val | sed -E -e 's/[a-z0-9-]+//'`
                          done
 
                          true