From: Michael Matz Date: Thu, 5 May 2011 12:32:50 +0000 (+0000) Subject: elf.h (ENDFILE_SPEC): Add Ofast. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0691dde9e60b7d6446340fb658b5b5c138865f74;p=gcc.git elf.h (ENDFILE_SPEC): Add Ofast. * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast. * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast. * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast. * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast. * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast. * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast. * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast. * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast. * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast. * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast. * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast. * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast. * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast. * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast. * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast. * config/mips/linux.h (ENDFILE_SPEC): Add Ofast. From-SVN: r173429 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bcf5f1c8dcf..593f7905869 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,22 @@ +2011-05-05 Michael Matz + + * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast. + * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast. + * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast. + * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast. + * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast. + * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast. + * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast. + * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast. + * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast. + * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast. + * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast. + * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast. + * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast. + * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast. + * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast. + * config/mips/linux.h (ENDFILE_SPEC): Add Ofast. + 2011-05-05 Richard Guenther * expmed.c (expand_variable_shift): Rename to ... diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h index 78cafedb970..0293f26ee7c 100644 --- a/gcc/config/alpha/elf.h +++ b/gcc/config/alpha/elf.h @@ -397,7 +397,7 @@ do { \ #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" /* Select a format to encode pointers in exception handling data. CODE diff --git a/gcc/config/alpha/netbsd.h b/gcc/config/alpha/netbsd.h index df0bc41c4ff..65e899121d2 100644 --- a/gcc/config/alpha/netbsd.h +++ b/gcc/config/alpha/netbsd.h @@ -70,7 +70,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfm%O%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfm%O%s} \ %(netbsd_endfile_spec)" diff --git a/gcc/config/alpha/osf5.h b/gcc/config/alpha/osf5.h index 97a789f8610..7713b7ee045 100644 --- a/gcc/config/alpha/osf5.h +++ b/gcc/config/alpha/osf5.h @@ -102,7 +102,7 @@ along with GCC; see the file COPYING3. If not see "%{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}" #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" #define MD_STARTFILE_PREFIX "/usr/lib/cmplrs/cc/" diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 5f3062cf42e..cf17e1e1d89 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -36,7 +36,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}\ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}\ crtend.o%s" /* Normally, -lgcc is not needed since everything in it is in the DLL, but we diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h index ea350326a89..44a0d7b6a8d 100644 --- a/gcc/config/i386/darwin.h +++ b/gcc/config/i386/darwin.h @@ -129,7 +129,7 @@ extern int darwin_emit_branch_islands; #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ %{mpc32:crtprec32.o%s} \ %{mpc64:crtprec64.o%s} \ %{mpc80:crtprec80.o%s}" diff --git a/gcc/config/i386/gnu-user.h b/gcc/config/i386/gnu-user.h index b6e152e935d..98d0a25cbe3 100644 --- a/gcc/config/i386/gnu-user.h +++ b/gcc/config/i386/gnu-user.h @@ -108,7 +108,7 @@ along with GCC; see the file COPYING3. If not see /* Similar to standard GNU userspace, but adding -ffast-math support. */ #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ %{mpc32:crtprec32.o%s} \ %{mpc64:crtprec64.o%s} \ %{mpc80:crtprec80.o%s} \ diff --git a/gcc/config/i386/gnu-user64.h b/gcc/config/i386/gnu-user64.h index 8850b813e40..3ece0faa6df 100644 --- a/gcc/config/i386/gnu-user64.h +++ b/gcc/config/i386/gnu-user64.h @@ -81,7 +81,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see /* Similar to standard GNU userspace, but adding -ffast-math support. */ #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ %{mpc32:crtprec32.o%s} \ %{mpc64:crtprec64.o%s} \ %{mpc80:crtprec80.o%s} \ diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 3c8eee6143a..96122fca358 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -143,7 +143,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ crtend.o%s" /* Override startfile prefix defaults. */ diff --git a/gcc/config/ia64/linux.h b/gcc/config/ia64/linux.h index 2d75376ed1f..e6370ea3492 100644 --- a/gcc/config/ia64/linux.h +++ b/gcc/config/ia64/linux.h @@ -50,7 +50,7 @@ do { \ /* Similar to standard Linux, but adding -ffast-math support. */ #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" /* Define this for shared library support because it isn't in the main diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index 9c33590df66..aef37bd8f58 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -140,5 +140,5 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); /* Similar to standard Linux, but adding -ffast-math support. */ #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" diff --git a/gcc/config/sparc/freebsd.h b/gcc/config/sparc/freebsd.h index b88b4e9f673..ed83eed1228 100644 --- a/gcc/config/sparc/freebsd.h +++ b/gcc/config/sparc/freebsd.h @@ -166,7 +166,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \ FBSD_ENDFILE_SPEC /* We use GNU ld so undefine this so that attribute((init_priority)) works. */ diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index 81f0de89e02..f8e16dd6926 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -37,7 +37,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\ - %{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" + %{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" /* This is for -profile to use -lc_p instead of -lc. */ #undef CC1_SPEC diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index 5db05c1a4a8..27ff696f0f2 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -59,7 +59,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s\ - %{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" + %{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" /* The default code model. */ #undef SPARC_DEFAULT_CMODEL diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h index 8141e096fc1..73355ca8c45 100644 --- a/gcc/config/sparc/sol2.h +++ b/gcc/config/sparc/sol2.h @@ -119,7 +119,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ crtend.o%s crtn.o%s" /* Select a format to encode pointers in exception handling data. CODE diff --git a/gcc/config/sparc/sp-elf.h b/gcc/config/sparc/sp-elf.h index d39ca3eeb37..8549923739c 100644 --- a/gcc/config/sparc/sp-elf.h +++ b/gcc/config/sparc/sp-elf.h @@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ crtend.o%s crtn.o%s" /* Don't set the target flags, this is done by the linker script */ diff --git a/gcc/config/sparc/sp64-elf.h b/gcc/config/sparc/sp64-elf.h index 25a02402b07..0ee9d08cee0 100644 --- a/gcc/config/sparc/sp64-elf.h +++ b/gcc/config/sparc/sp64-elf.h @@ -60,7 +60,7 @@ crtbegin.o%s \ #undef ENDFILE_SPEC #define ENDFILE_SPEC \ - "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ + "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \ crtend.o%s" /* Use the default (for now). */