aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/aarch64/configure
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2024-03-13 14:34:14 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2024-03-14 14:27:56 +0000
commit73c26018ed0ecd9c807bb363cc2c2ab4aca66a82 (patch)
tree3ffed8d805467423965228912339a251bceb7f76 /sysdeps/aarch64/configure
parent2367bf468ce43801de987dcd54b0f99ba9d62827 (diff)
downloadglibc-73c26018ed0ecd9c807bb363cc2c2ab4aca66a82.tar.xz
glibc-73c26018ed0ecd9c807bb363cc2c2ab4aca66a82.zip
aarch64: fix check for SVE support in assembler
Due to GCC bug 110901 -mcpu can override -march setting when compiling asm code and thus a compiler targetting a specific cpu can fail the configure check even when binutils gas supports SVE. The workaround is that explicit .arch directive overrides both -mcpu and -march, and since that's what the actual SVE memcpy uses the configure check should use that too even if the GCC issue is fixed independently. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/aarch64/configure')
-rwxr-xr-x[-rw-r--r--]sysdeps/aarch64/configure5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure
index ca57edce47..9606137e8d 100644..100755
--- a/sysdeps/aarch64/configure
+++ b/sysdeps/aarch64/configure
@@ -325,9 +325,10 @@ then :
printf %s "(cached) " >&6
else $as_nop
cat > conftest.s <<\EOF
- ptrue p0.b
+ .arch armv8.2-a+sve
+ ptrue p0.b
EOF
-if { ac_try='${CC-cc} -c -march=armv8.2-a+sve conftest.s 1>&5'
+if { ac_try='${CC-cc} -c conftest.s 1>&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5
ac_status=$?