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]

[cygwin patch] Enable Support for __float128 (TFmode) IEEE quad type


This patch enables support for the __float128 (TFmode) IEEE quad type in
libgcc on cygwin.  It uses the same approach as for IA-32 on darwin.

With this patch the tests gcc.dg/torture/fp-int-convert-float128*.c pass
on cygwin.  Previously the tests failed to link.  See:
 - http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00959.html
 - http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01028.html

OK for trunk, then 4.4.

2009-05-21 David Billinghurst <billingd@gcc.gnu.org>

* config.gcc: Enable support for the __float128 (TFmode) for i?86-*-cygwin.

* config.host: Enable support for the __float128 (TFmode) for i?86-*-cygwin.


Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 147701) +++ gcc/config.gcc (working copy) @@ -1267,7 +1267,7 @@ else tmake_eh_file="i386/t-sjlj-eh" fi - tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming i386/t-cygwin" + tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming i386/t-cygwin i386/t-fprules-softfp soft-fp/t-softfp" target_gtfiles="\$(srcdir)/config/i386/winnt.c" extra_options="${extra_options} i386/cygming.opt" extra_objs="winnt.o winnt-stubs.o"

Index: libgcc/config.host
===================================================================
--- libgcc/config.host  (revision 147701)
+++ libgcc/config.host  (working copy)
@@ -323,8 +323,12 @@
        ;;
 i[34567]86-*-pe)
        ;;
-i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
+i[34567]86-*-cygwin*)
        extra_parts="crtbegin.o crtend.o crtfastmath.o"
+       tmake_file="i386/t-cygming i386/t-crtfm t-softfp i386/${host_address}/t-fprules-softfp"
+       ;;
+i[34567]86-*-mingw*)
+       extra_parts="crtbegin.o crtend.o crtfastmath.o"
        tmake_file="i386/t-cygming i386/t-crtfm"
        ;;
 x86_64-*-mingw*)


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