[PATCH] Port -mpcXX to mingw32

Danny Smith dansmister@gmail.com
Fri Nov 23 11:54:00 GMT 2007


On Nov 22, 2007 7:58 PM, Zuxy Meng <zuxy.meng@gmail.com> wrote:
> Hi,
>
> Attached patch enables -mpcXX options on cygwin and MinGW32, similar to what has been done for crtfastmath.o
>
>
Hello Zuxy Meng

mingw32 has long used a similar method to control default startup FP
precision (see CRT_fp8.c and CRT_fp10.c in mingw runtime sources). These
are defined in terms of _fpreset() so that code using this MSVC specific
function still resets precision to startup value. It is also integrated
with C99 (fenv.h) FE_DFL_ENV macro and implementation specificic
FE_PC53_ENV and FE_PC64_ENV.

IMO. a patch that did something like this to STARTFILE_SPEC

+   %{mpc64:CRT_fp8.o%s} \
+   %{mpc80:CRT_fp10.o%s} \

might be more appropriate.

In any case this is not a regresssion, not even a bug-fix, so would wait
until after 4.3 branches\

Danny



More information about the Gcc-patches mailing list