[PATCH] Allow decimal floats for mingw-w64

Dave Korn dave.korn.cygwin@gmail.com
Thu Sep 9 20:26:00 GMT 2010


On 07/09/2010 18:25, Kai Tietz wrote:
> 2010/9/7 Paolo Bonzini <bonzini@gnu>:
>> On 09/07/2010 06:12 PM, JonY wrote:
>>> Looks like most of the changes are in, the only parts needed changing was:
>>>
>>> Index: config/dfp.m4
>>> ===================================================================
>>> --- config/dfp.m4       (revision 163959)
>>> +++ config/dfp.m4       (working copy)
>>> @@ -20,7 +20,9 @@
>>>  ],
>>>  [
>>>    case $1 in
>>> -    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* |
>>> s390*-*-linux*)
>>> +    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* |
>>> s390*-*-linux* | \
>>> +    i?86*-*-mingw* | x86_64*-*-mingw* |\
>>> +    i?86*-*-cygwin* )
>>>        enable_decimal_float=yes
>>>        ;;
>>>      *)
>>>
>> This looks fine, thanks.  Dave/Kai?
>>
>> Paolo
>>
> 
> Yes, this is ok by me. 

  Me too, in principle.  The final piece of the puzzle AFAICT is that we still
need to enable libbid in libgcc by adding the t-dfprules make frag. I'm
testing the attached patch on Cygwin; I've attached an untested (but hopefully
correct) equivalent for MinGW.

  I can't apply this for Cygwin yet because it needs fenv.h support to build,
but MinGW should be OK (someone had still better test it though, I'm not set
up for testing on MinGW right now).

  (I've got a patch to contribute fenv support to Cygwin that's about 90%
done, and I'll apply the Cygwin patch once that's been sent upstream and
incorporated.)

  Until this is done, there will still be regressions in the testsuite owing
to link failures, but that's not a reason not to start enabling DFP by
default; the compiler side of it all works even if the libc side isn't
complete at the Cygwin end.

    cheers,
      DaveK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: enable-cygwin-libgcc-dfp.diff
Type: text/x-c
Size: 570 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100909/28854dd6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enable-mingw-libgcc-dfp.diff
Type: text/x-c
Size: 521 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100909/28854dd6/attachment-0001.bin>


More information about the Gcc-patches mailing list