[Mingw-w64-public] [PATCH v2 1/3] crt: Move trunc implementation to C file.

2025-04-02 Thread Jacek Caban
In preparation for using naked functions. --- mingw-w64-crt/Makefile.am | 4 ++-- mingw-w64-crt/include/internal.h | 8 mingw-w64-crt/math/arm64/{trunc.S => trunc.c} | 14 +- mingw-w64-crt/math/arm64/truncf.S | 16

[Mingw-w64-public] [PATCH v2 2/3] crt: Move nearbyint implementation to C file.

2025-04-02 Thread Jacek Caban
In preparation for using naked functions. --- mingw-w64-crt/Makefile.am | 6 +++--- mingw-w64-crt/math/arm64/nearbyint.S | 17 - mingw-w64-crt/math/arm64/nearbyint.c | 14 ++ mingw-w64-crt/math/arm64/nearbyintf.S | 17 - mingw-w64-crt/math

[Mingw-w64-public] [PATCH v2 3/3] crt: Use naked functions for ARM64 assembly functions.

2025-04-02 Thread Jacek Caban
On ARM64EC, function declarations have additional nuances: - Function names are mangled by prefixing them with "#" - An unmangled symbol is defined as a weak anti-dependency alias to the mangled symbol - An entry thunk is generated to convert from the x86_64 calling convention to the ARM64EC ca

[Mingw-w64-public] [PATCH 2/2] crt: Don't delete implicit intermediate .a/.def files after building

2025-04-02 Thread Martin Storsjö
Previously, GNU make would delete the implicit intermediate .a/.def files after building, see [1] for details. Not deleting them does inflate the size of the build directory a little bit, but only very marginally (from 201 to 213 MB for a build with GCC for x86_64). By keeping them around, they a

[Mingw-w64-public] [PATCH 1/2] crt: Respect automake silent rules

2025-04-02 Thread Martin Storsjö
If configuring mingw-w64-crt with the autoconf/automake config option --enable-silent-rules, the default automake rules will print e.g. " CC misc/lib64_libmsvcrt_extra_a-wctype.o" when compiling such a file. However, any custom makefile rules will still be printed as usual. Respect the --en

Re: [Mingw-w64-public] [PATCH 1/3] crt: Move trunc implementation to C file.

2025-04-02 Thread Martin Storsjö
On Wed, 2 Apr 2025, Jacek Caban wrote: On 1.04.2025 22:43, Martin Storsjö wrote: On Tue, 1 Apr 2025, Jacek Caban wrote: In preparation for using naked functions. --- For the commit message subject, perhaps you could squeeze in an "arm64" there too, as this only covers that function? That g

Re: [Mingw-w64-public] [PATCH 3/3] crt: Use naked functions for ARM64 assembly functions.

2025-04-02 Thread Jacek Caban
On 1.04.2025 22:55, Martin Storsjö wrote: On Tue, 1 Apr 2025, Jacek Caban wrote: On ARM64EC, function declarations have additional nuances: - Function names are mangled by prefixing them with "#" - An unmangled symbol is defined as a weak anti-dependency alias to the mangled  symbol - An entr

Re: [Mingw-w64-public] [PATCH 1/3] crt: Move trunc implementation to C file.

2025-04-02 Thread Jacek Caban
On 1.04.2025 22:43, Martin Storsjö wrote: On Tue, 1 Apr 2025, Jacek Caban wrote: In preparation for using naked functions. --- For the commit message subject, perhaps you could squeeze in an "arm64" there too, as this only covers that function? That goes for all of these patches. mingw-w