diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2024-03-13 14:34:14 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2024-04-09 17:59:22 +0100 |
commit | 07aa48b1115524f6d89c6189ed6f61c6e0bebcc8 (patch) | |
tree | 186a3a72429885551b705a44d74125c8a6a7d6d3 /sysdeps/aarch64/configure | |
parent | c3ac827c811ac6563d147d83adfeb9362e41ba99 (diff) | |
download | glibc-07aa48b1115524f6d89c6189ed6f61c6e0bebcc8.tar.gz glibc-07aa48b1115524f6d89c6189ed6f61c6e0bebcc8.tar.xz glibc-07aa48b1115524f6d89c6189ed6f61c6e0bebcc8.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> (cherry picked from commit 73c26018ed0ecd9c807bb363cc2c2ab4aca66a82)
Diffstat (limited to 'sysdeps/aarch64/configure')
-rwxr-xr-x[-rw-r--r--] | sysdeps/aarch64/configure | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index 276a2d1dc4..af47ca78f3 100644..100755 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -312,9 +312,10 @@ if ${libc_cv_aarch64_sve_asm+:} false; then : $as_echo_n "(cached) " >&6 else 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=$? |