]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/nolibc: always build sparc32 tests with -mcpu=v8
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 6 Jan 2026 10:39:55 +0000 (11:39 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 6 Jan 2026 11:30:16 +0000 (12:30 +0100)
commit6b6dbf3e4ecfd7d1086bd7cd8b31ca8e45d4dc1f
tree516c89aa9ef1c507a1e4aa772ac43620f0d6976c
parent57624b38ce99b906cbb191a1d536bb871ad2d8c2
selftests/nolibc: always build sparc32 tests with -mcpu=v8

Since LLVM commit 39e30508a7f6 ("[Driver][Sparc] Default to -mcpu=v9 for
32-bit Linux/sparc64 (#109278)"), clang defaults to -mcpu=v9 for 32-bit
SPARC builds. -mcpu=v9 generates instructions which are not recognized
by qemu-sparc and qemu-system-sparc.

Explicitly enforce -mcpu=v8 to generate compatible code.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260106-nolibc-sparc32-fix-v2-1-7c5cd6b175c2@weissschuh.net
tools/testing/selftests/nolibc/Makefile.nolibc