The gcc.target/x86_64/abi/ms-sysv/ms-sysv.c tests FAIL on NetBSD/x86
with many undefined references to __sse_resms64f etc. The fix is
identical to
commit df09e09c0bad09421984e4f52344baf5d81a3570
Author: Rainer Orth <[email protected]>
Date: Fri May 29 16:24:40 2026 +0200
libgcc: Support -mcall-ms2sysv-xlogues on FreeBSD/x86
However, there's no need to emit .note.GNU-stack sections which are
unused on NetBSD, unlike FreeBSD.
Bootstrapped without regressions on amd64-pc-netbsd10.1 and
x86_64-pc-linux-gnu.
Committed to trunk as obvious.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2026-07-05 Rainer Orth <[email protected]>
libgcc:
* config.host <i[34567]86-*-netbsdelf*> (tmake_file): Add
i386/t-msabi.
<x86_64-*-netbsd*>: Likewise.
# HG changeset patch
# Parent 96d18ce0d7564791cda7f75ad5183db1375a851b
libgcc: Support -mcall-ms2sysv-xlogues on NetBSD/x86
diff --git a/libgcc/config.host b/libgcc/config.host
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -784,10 +784,10 @@ x86_64-*-freebsd*)
md_unwind_header=i386/freebsd-unwind.h
;;
i[34567]86-*-netbsdelf*)
- tmake_file="${tmake_file} i386/t-crtstuff"
+ tmake_file="${tmake_file} i386/t-crtstuff i386/t-msabi"
;;
x86_64-*-netbsd*)
- tmake_file="${tmake_file} i386/t-crtstuff"
+ tmake_file="${tmake_file} i386/t-crtstuff i386/t-msabi"
;;
i[34567]86-*-openbsd*)
;;