diff options
author | Richard Henderson <rth@redhat.com> | 2011-06-03 10:36:21 -0700 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2011-06-03 17:36:21 +0000 |
commit | 1b7a0148f070deb07455f06a15ff13834c92f17b (patch) | |
tree | 03fddddad6b605215bb09601e9cb08a3577d7380 /gcc | |
parent | 737346fa2420aaa838ad95995d9007f1599ff18b (diff) | |
download | gcc-1b7a0148f070deb07455f06a15ff13834c92f17b.zip gcc-1b7a0148f070deb07455f06a15ff13834c92f17b.tar.gz gcc-1b7a0148f070deb07455f06a15ff13834c92f17b.tar.bz2 |
gcc:
* config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
(sigill_hdlr): Correct insn, insn size.
(set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
gcc/testsuite:
* lib/target-supports.exp (check_sse_os_support_available): Use
movaps.
libgfortran.
* config/fpu-387.h [__sun__ && __svr4__] (sigill_hdlr): Correct
insn, insn size.
(has_sse) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
From-SVN: r174609
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/i386/crtfastmath.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 2 |
4 files changed, 18 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05c1dd0..9feb8fd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-06-03 Richard Henderson <rth@redhat.com> + Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__] + (sigill_hdlr): Correct insn, insn size. + (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps. + 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6 diff --git a/gcc/config/i386/crtfastmath.c b/gcc/config/i386/crtfastmath.c index a80e2ed..7abe500 100644 --- a/gcc/config/i386/crtfastmath.c +++ b/gcc/config/i386/crtfastmath.c @@ -30,7 +30,7 @@ #include "cpuid.h" #endif -#if !defined __x86_64 && defined __sun__ && defined __svr4__ +#if !defined __x86_64__ && defined __sun__ && defined __svr4__ #include <signal.h> #include <ucontext.h> @@ -43,9 +43,9 @@ sigill_hdlr (int sig __attribute((unused)), { sigill_caught = 1; /* Set PC to the instruction after the faulting one to skip over it, - otherwise we enter an infinite loop. 4 is the size of the stmxcsr + otherwise we enter an infinite loop. 3 is the size of the movaps instruction. */ - ucp->uc_mcontext.gregs[EIP] += 4; + ucp->uc_mcontext.gregs[EIP] += 3; setcontext (ucp); } #endif @@ -83,7 +83,7 @@ set_fast_math (void) /* We need a single SSE instruction here so the handler can safely skip over it. */ - __asm__ volatile ("movss %xmm2,%xmm1"); + __asm__ volatile ("movaps %xmm0,%xmm0"); sigaction (SIGILL, &oact, NULL); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0883052..4eeb347 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-06-03 Richard Henderson <rth@redhat.com> + Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * lib/target-supports.exp (check_sse_os_support_available): Use + movaps. + 2011-06-03 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/headers.m: Do not include objc-list.h. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 53990f6..37dd6b8 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1059,7 +1059,7 @@ proc check_sse_os_support_available { } { check_runtime_nocache sse_os_support_available { int main () { - __asm__ volatile ("movss %xmm2,%xmm1"); + __asm__ volatile ("movaps %xmm0,%xmm0"); return 0; } } "-msse" |