This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH] skip gcc.dg/torture/fp-int-convert-float128*.c on cygwin
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: David Billinghurst <dbcygwin at gmail dot com>, Dave Korn <dave dot korn dot cygwin at googlemail dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Mon, 18 May 2009 18:12:01 +0200
- Subject: Re: PATCH] skip gcc.dg/torture/fp-int-convert-float128*.c on cygwin
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.