This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Description
As a todo-eventually item: gcc on other platforms supports -mpc32, -mpc64, -mpc80 to explicitly choose which precision mode to set the x87 FPU into. This is implemented by always shipping multiple .o files as part of the runtime library, and selecting between them using the specs file.
E.g., my Linux gcc's -dumpspecs has some code like: {mpc32:crtprec32.o%s} %{mpc64:crtprec64.o%s} %{mpc80:crtprec80.o%s}, and then there are crtprec32.o, crtprec64.o, crtprec80.o files in /usr/lib/gcc/..., so the correct one can be selected when running gcc.
The current patches in mingwpy that force the use of 64-bit precision mode can't go upstream as is, but if we implemented the standard gcc behaviour in mingw-w64 (at least the -mpc64 and -mpc80 options -- I doubt that anyone cares about -mpc32) then that could go upstream, and then instead of patching the makefiles we'd just have to arrange for our default to be -mpc64. (And possibly we could eventually roll that into some sort of -mmsvc option.)