Libgcc now supports -mcall-ms2sysv-xlogues on FreeBSD/x86.
Libgcc now provides the necessary symbols for `-mcall-ms2sysv-xlogues` on FreeBSD/x86, fixing linker errors in ABI tests.
This commit resolves linker errors encountered when using -mcall-ms2sysv-xlogues on FreeBSD/x86. The missing symbols, previously available in libgcc.a for i386/t-msabi, are now included for FreeBSD/x86 as well. The resms64*.h and savms64*.h files are updated to include .note.GNU-stack on FreeBSD. This change enables successful linking of ABI tests and ensures proper functionality with the specified flag.
In Details
The patch adds i386/t-msabi to the tmake_file for FreeBSD/x86 and x86_64 in config.host, providing the missing __sse_savms64f_12 and other symbols in libgcc.a. It also adds .note.GNU-stack to resms64*.h and savms64*.h files for FreeBSD. This resolves linker errors in the gcc.target/x86_64/abi/ms-sysv tests when using -mcall-ms2sysv-xlogues.
For Context
Libgcc is a support library for GCC, providing essential functions for compiled code. The -mcall-ms2sysv-xlogues flag affects the calling convention used by the compiler on x86 platforms, influencing how functions pass arguments and manage the stack. This commit ensures that the necessary support code for this calling convention is available on FreeBSD, resolving linker errors and ensuring correct program execution.