summaryrefslogtreecommitdiff
path: root/gcc/config/i386/linux.h
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-10 17:53:01 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-10 17:53:01 +0000
commit072e2fb8787b9ae9b44052f5cc74e3b25c98ba36 (patch)
treebc5fff1f53e3cfe22ef306e0d84c9217534d0dbd /gcc/config/i386/linux.h
parent967ec51b5fc7fdf807e3d3f57289ff568392301a (diff)
downloadgcc-072e2fb8787b9ae9b44052f5cc74e3b25c98ba36.tar.gz
2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file. (x86_64-*-linux*): Likewise. * config/i386/crtfastmath.c: New file. * config/i386/t-crtfm: Likewise. * config/i386/linux.h (ENDFILE_SPEC): New. * config/i386/linux64.h (ENDFILE_SPEC): Likewise. * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/linux.h')
-rw-r--r--gcc/config/i386/linux.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h
index 082cc958e07..f85a9ef6cbb 100644
--- a/gcc/config/i386/linux.h
+++ b/gcc/config/i386/linux.h
@@ -121,6 +121,12 @@ Boston, MA 02110-1301, USA. */
%{!dynamic-linker:-dynamic-linker %(dynamic_linker)}} \
%{static:-static}}}"
+/* Similar to standard Linux, but adding -ffast-math support. */
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC \
+ "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
+ %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
+
/* A C statement (sans semicolon) to output to the stdio stream
FILE the assembler definition of uninitialized global DECL named
NAME whose size is SIZE bytes and alignment is ALIGN bytes.