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]

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


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*)
;;




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