[gcc r17-2329] libgcc: Support -mcall-ms2sysv-xlogues on NetBSD/x86

Rainer Orth via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:1646ca5c7323d6ddce15a3fc859adc212c919e0a

commit r17-2329-g1646ca5c7323d6ddce15a3fc859adc212c919e0a
Author: Rainer Orth <[email protected]>
Date:   Sat Jul 11 10:31:50 2026 +0200

    libgcc: Support -mcall-ms2sysv-xlogues on NetBSD/x86
    
    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.
    
    2026-07-05  Rainer Orth  <[email protected]>
    
            libgcc:
            * config.host <i[34567]86-*-netbsdelf*> (tmake_file): Add
            i386/t-msabi.
            <x86_64-*-netbsd*>: Likewise.

Diff:
---
 libgcc/config.host | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libgcc/config.host b/libgcc/config.host
index 7ac322289cb8..319d6cfe0eff 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -774,10 +774,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*)
 	;;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.