PATCH] skip gcc.dg/torture/fp-int-convert-float128*.c on cygwin

David Billinghurst dbcygwin@gmail.com
Sat May 16 21:09:00 GMT 2009


Dave Korn wrote:
> Dave Korn wrote:
> 
>>   Ah, so maybe this is a consequence of newlib-vs-glibc then?  
> 
>   Nope, I think I'm wrong, we need to add a reference to
> config/i386/32/t-fprules-softfp in the list of tm frags in config.gcc; can we
> just do that without having to migrate libgcc first?
> 
>     cheers,
>       DaveK

Guided by google and following the example of i[34567]86-*-darwin*, the 
following patch bootstraps gcc and the two offending tests pass.  The 
full testsuite with g++ and gfortran will take a day or two.  Note that 
the libgcc/config.host part also applies to mingw, as this was the 
minimal change.  Obviously have to correct that.

Not sure if this is the right thing to do or a even good thing to do, 
but it seems to work.



Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc      (revision 147328)
+++ gcc/config.gcc      (working copy)
@@ -1260,7 +1260,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 147328)
+++ libgcc/config.host  (working copy)
@@ -325,7 +325,7 @@
         ;;
  i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
         extra_parts="crtbegin.o crtend.o crtfastmath.o"
-       tmake_file="i386/t-cygming i386/t-crtfm"
+       tmake_file="i386/t-cygming i386/t-crtfm t-softfp 
i386/32/t-fprules-softfp"
         ;;
  x86_64-*-mingw*)
         ;;




More information about the Gcc-patches mailing list