iris6.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 6 Jun 2011 09:49:47 +0000 (09:49 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 6 Jun 2011 09:49:47 +0000 (09:49 +0000)
gcc:
* config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
-ffast-math etc.

libgcc:
* config.host (mips-sgi-irix6.5*): Add t-crtfm to tmake_file.
Add crtfastmath.o to extra_parts.
(mips64*-*-linux*, mips*-*-linux*): Use t-crtfm instead of
mips/t-crtfm.
* config/mips/t-crtfm: Remove.

From-SVN: r174686

gcc/ChangeLog
gcc/config/mips/iris6.h
libgcc/ChangeLog
libgcc/config.host
libgcc/config/mips/t-crtfm [deleted file]

index 6e4895eeb0a581ac3f86fe9c7d43a82b98f35ad5..3897ba487b098296e39091b39e7614a793904fdc 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
+       -ffast-math etc.
+
 2011-06-06  Richard Henderson  <rth@redhat.com>
            Georg-Johann Lay  <avr@gjlay.de>
 
index 1443d7bc3f1269c64a45d33cc7de45c7add77988..6515dbfa78107dcb9bb5b0b9b65e151dd511fe14 100644 (file)
@@ -256,7 +256,8 @@ along with GCC; see the file COPYING3.  If not see
 
 #undef ENDFILE_SPEC
 #define ENDFILE_SPEC \
-  "crtend.o%s irix-crtn.o%s \
+  "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
+   crtend.o%s irix-crtn.o%s \
    %{!shared: \
      %{mabi=n32:%{mips4:/usr/lib32/mips4/crtn.o%s}\
        %{!mips4:/usr/lib32/mips3/crtn.o%s}}\
index 4701c3d6179e40c57738c5399c03f464ef0e49d8..a0d96c64641abb045be0e3143efdce3e399f5bd3 100644 (file)
@@ -1,3 +1,11 @@
+2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * config.host (mips-sgi-irix6.5*): Add t-crtfm to tmake_file.
+       Add crtfastmath.o to extra_parts.
+       (mips64*-*-linux*, mips*-*-linux*): Use t-crtfm instead of
+       mips/t-crtfm.
+       * config/mips/t-crtfm: Remove.
+
 2011-06-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * config.host (hppa*-*-linux*): Correct md_unwind_header name.
index f0e28f844e35524dbef639cd82e59868bfe84b7d..24282e1aeb687a0aad210a2c9dd4b53809122007 100644 (file)
@@ -438,19 +438,19 @@ microblaze*-*-*)
         tmake_file="microblaze/t-microblaze"
        ;;
 mips-sgi-irix6.5*)
-       tmake_file="mips/t-irix6 t-slibgcc mips/t-slibgcc-irix"
-       extra_parts="crtbegin.o crtend.o irix-crti.o irix-crtn.o"
+       tmake_file="mips/t-irix6 t-crtfm t-slibgcc mips/t-slibgcc-irix"
+       extra_parts="crtbegin.o crtend.o crtfastmath.o irix-crti.o irix-crtn.o"
        ;;
 mips*-*-netbsd*)                       # NetBSD/mips, either endian.
        ;;
 mips64*-*-linux*)
        extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="{$tmake_file} mips/t-crtfm"
+       tmake_file="{$tmake_file} t-crtfm"
        md_unwind_header=mips/linux-unwind.h
        ;;
 mips*-*-linux*)                                # Linux MIPS, either endian.
        extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="{$tmake_file} mips/t-crtfm"
+       tmake_file="{$tmake_file} t-crtfm"
        md_unwind_header=mips/linux-unwind.h
        ;;
 mips*-*-openbsd*)
diff --git a/libgcc/config/mips/t-crtfm b/libgcc/config/mips/t-crtfm
deleted file mode 100644 (file)
index fe2e066..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-crtfastmath.o: $(gcc_srcdir)/config/mips/crtfastmath.c
-       $(gcc_compile) -c $(gcc_srcdir)/config/mips/crtfastmath.c
-