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
This commit is contained in:
Richard Sandiford 2010-10-31 14:15:40 +00:00 committed by Richard Sandiford
parent 0502fb85f3
commit b034e301bb
2 changed files with 11 additions and 0 deletions

View 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

View File

@ -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