This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: revised x86_64-pc-mingw32 patch


Richard Henderson writes:
>The MSDN documentation doesn't mention XFmode arguments at all.

Not specifically, but since it's 10 bytes (ie. "not 1, 2, 4, or 8 bytes")
the documentation says that it should be passed by reference.  

>Are we mistaken in defining "long double" as XFmode? 

32-bit MinGW uses an 80-bit long double, so 64-bit MinGW should probably
as well.

>Should it in fact be DFmode, just like plain double?  Certainly the
>documented default 64-bit rounding mode in the fpcr makes an XFmode long
>double less than useful...

If you want to use long doubles with 32-bit MinGW you're expected to
link with CRT_fp10.o so that the 80-bit rounding mode becomes the default.

					Ross Ridge


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]