20101011-1.c: Skip for MIPS unless running the Linux kernel.
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 31 Oct 2010 14:15:40 +0000 (14:15 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 31 Oct 2010 14:15:40 +0000 (14:15 +0000)
gcc/testsuite/
* gcc.c-torture/execute/20101011-1.c: Skip for MIPS unless running
the Linux kernel.

From-SVN: r166107

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20101011-1.c

index 3ae57c75d248e5e9e2b219e3fe9d5f42a14670f8..c3c75b2b9fd4c83b306998506821fe271a3eec6b 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * gcc.c-torture/execute/20101011-1.c: Skip for MIPS unless running
+       the Linux kernel.
+
 2010-10-30  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/44917
index 776a159f54cc5511f1409565205cce1b317ce86d..077940548e1963736d7bb430f5ce8d99542a1ee0 100644 (file)
 #elif defined (__sh__)
   /* On SH division by zero does not trap.  */
 # define DO_TEST 0
+#elif defined (__mips__) && !defined(__linux__)
+  /* MIPS divisions do trap by default, but libgloss targets do not
+     intercept the trap and raise a SIGFPE.  The same is probably
+     true of other bare-metal environments, so restrict the test to
+     systems that use the Linux kernel.  */
+# define DO_TEST 0
 #else
 # define DO_TEST 1
 #endif