From aa4203e7344b980828998592db0d60f8bc77261e Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 6 Jun 2011 09:49:47 +0000 Subject: [PATCH] iris6.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc. 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 | 5 +++++ gcc/config/mips/iris6.h | 3 ++- libgcc/ChangeLog | 8 ++++++++ libgcc/config.host | 8 ++++---- libgcc/config/mips/t-crtfm | 3 --- 5 files changed, 19 insertions(+), 8 deletions(-) delete mode 100644 libgcc/config/mips/t-crtfm diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6e4895eeb0a..3897ba487b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-06-06 Rainer Orth + + * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if + -ffast-math etc. + 2011-06-06 Richard Henderson Georg-Johann Lay diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h index 1443d7bc3f1..6515dbfa781 100644 --- a/gcc/config/mips/iris6.h +++ b/gcc/config/mips/iris6.h @@ -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}}\ diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 4701c3d6179..a0d96c64641 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,11 @@ +2011-06-06 Rainer Orth + + * 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 * config.host (hppa*-*-linux*): Correct md_unwind_header name. diff --git a/libgcc/config.host b/libgcc/config.host index f0e28f844e3..24282e1aeb6 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -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 index fe2e06619b1..00000000000 --- a/libgcc/config/mips/t-crtfm +++ /dev/null @@ -1,3 +0,0 @@ -crtfastmath.o: $(gcc_srcdir)/config/mips/crtfastmath.c - $(gcc_compile) -c $(gcc_srcdir)/config/mips/crtfastmath.c - -- 2.30.2