diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-06-01 14:49:21 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-06-01 14:49:21 +0000 |
commit | 0699e415bc4e5ecac90580da110ee5fe14b60c38 (patch) | |
tree | d7520fe6e5eedb89d325c57d414d7f0b8c05f189 /gcc/config/sol2.h | |
parent | a3fab9c2a9166ec76f38deda7515231b680ddcc5 (diff) | |
download | gcc-0699e415bc4e5ecac90580da110ee5fe14b60c38.zip gcc-0699e415bc4e5ecac90580da110ee5fe14b60c38.tar.gz gcc-0699e415bc4e5ecac90580da110ee5fe14b60c38.tar.bz2 |
crtfastmath.c: Include <signal.h>, <ucontext.h>.
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.
From-SVN: r174532
Diffstat (limited to 'gcc/config/sol2.h')
-rw-r--r-- | gcc/config/sol2.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index cf75748..3d539d7 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 |