]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: fix check for SVE support in assembler
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 13 Mar 2024 14:34:14 +0000 (14:34 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Tue, 9 Apr 2024 16:59:22 +0000 (17:59 +0100)
commit07aa48b1115524f6d89c6189ed6f61c6e0bebcc8
tree186a3a72429885551b705a44d74125c8a6a7d6d3
parentc3ac827c811ac6563d147d83adfeb9362e41ba99
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)
sysdeps/aarch64/configure [changed mode: 0644->0755]
sysdeps/aarch64/configure.ac