]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fpu-387.h (has_sse): Remove cw_sse, unused.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 26 Aug 2010 15:29:31 +0000 (15:29 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 26 Aug 2010 15:29:31 +0000 (15:29 +0000)
* config/fpu-387.h (has_sse): Remove cw_sse, unused.
Use fixed-length asm.

From-SVN: r163566

libgfortran/ChangeLog
libgfortran/config/fpu-387.h

index c79027adcb74c721218ffaeb3ff1b6c32b115c28..0e5da98f17daa48ba07b120c2e32761eaae62558 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * config/fpu-387.h (has_sse): Remove cw_sse, unused.
+       Use fixed-length asm.
+
 2010-08-23  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/45323
index 5fe51b2d20959b4acaaacf608d286bf5e66db978..2bd9efb55124619dd0a0043644836e7ce03141f2 100644 (file)
@@ -64,7 +64,6 @@ has_sse (void)
   if (edx & bit_SSE)
     {
       struct sigaction act, oact;
-      unsigned int cw_sse;
 
       act.sa_handler = sigill_hdlr;
       sigemptyset (&act.sa_mask);
@@ -72,7 +71,9 @@ has_sse (void)
       act.sa_flags = SA_SIGINFO;
       sigaction (SIGILL, &act, &oact);
 
-      asm volatile ("stmxcsr %0" : "=m" (cw_sse));
+      /* We need a single SSE instruction here so the handler can safely skip
+        over it.  */
+      __asm__ volatile ("movss %xmm2,%xmm1");
 
       sigaction (SIGILL, &oact, NULL);