From: Richard Sandiford Date: Sun, 31 Oct 2010 14:15:40 +0000 (+0000) Subject: 20101011-1.c: Skip for MIPS unless running the Linux kernel. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b034e301bb14b789ba8fa7b45a7c36b7c967efb6;p=gcc.git 20101011-1.c: Skip for MIPS unless running the Linux kernel. gcc/testsuite/ * gcc.c-torture/execute/20101011-1.c: Skip for MIPS unless running the Linux kernel. From-SVN: r166107 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3ae57c75d24..c3c75b2b9fd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-10-31 Richard Sandiford + + * gcc.c-torture/execute/20101011-1.c: Skip for MIPS unless running + the Linux kernel. + 2010-10-30 Janus Weil PR fortran/44917 diff --git a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c index 776a159f54c..077940548e1 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c @@ -12,6 +12,12 @@ #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