summaryrefslogtreecommitdiff
path: root/gcc/config/sol2.h
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-01 14:49:21 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-01 14:49:21 +0000
commit43ae76031e46dc0677c05c19c8b0b6511858c11a (patch)
treed7520fe6e5eedb89d325c57d414d7f0b8c05f189 /gcc/config/sol2.h
parentf0d9a62626898c188fced052efe2639b617a8729 (diff)
downloadgcc-43ae76031e46dc0677c05c19c8b0b6511858c11a.tar.gz
gcc:
* config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]: Include <signal.h>, <ucontext.h>. (sigill_caught): Define. (sigill_hdlr): New function. (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE insns can be executed. * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc. * config/sparc/sol2.h (ENDFILE_SPEC): Remove. libgcc: * config.host (i[34567]86-*-solaris2*): Add i386/t-crtfm to tmake_file. Add crtfastmath.o to extra_parts. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sol2.h')
-rw-r--r--gcc/config/sol2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index cf7574830f0..3d539d7ec5b 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -141,7 +141,9 @@ along with GCC; see the file COPYING3. If not see
%{p|pg:-ldl} -lc}"
#undef ENDFILE_SPEC
-#define ENDFILE_SPEC "crtend.o%s crtn.o%s"
+#define ENDFILE_SPEC \
+ "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
+ crtend.o%s crtn.o%s"
/* We don't use the standard svr4 STARTFILE_SPEC because it's wrong for us. */
#undef STARTFILE_SPEC