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

Implement -mpc64 #37

@njsmith

Description

@njsmith

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.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions