[gcc r14-12246] aarch64: Accept hyphenated extensions in --with-arch [PR123460]
Alice Carlotti
acarlotti@gcc.gnu.org
Fri Jan 16 19:17:27 GMT 2026
https://gcc.gnu.org/g:c8d48e21442febd5a3ebb8d78b83d1383e3daa8e
commit r14-12246-gc8d48e21442febd5a3ebb8d78b83d1383e3daa8e
Author: Alice Carlotti <alice.carlotti@arm.com>
Date: Wed Jan 7 18:55:46 2026 +0000
aarch64: Accept hyphenated extensions in --with-arch [PR123460]
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.
Diff:
---
gcc/config.gcc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config.gcc b/gcc/config.gcc
index a3566f5c77da..c267148bb211 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -4277,7 +4277,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
More information about the Gcc-cvs
mailing list