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

Uros Bizjak ubizjak@gmail.com
Mon May 18 16:12:00 GMT 2009


Hello!

> 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"

I'm not familiar with cygwin details, but I think you need to put 
${host_address} instead of 32 to cover 64-bit targets.

Uros.



More information about the Gcc-patches mailing list