diff mbox

[testsuite] Tweak gcc.c-torture/execute/20101011-1.c

Message ID 20101029.131343.147113898.kkojima@rr.iij4u.or.jp
State New
Headers show

Commit Message

Kaz Kojima Oct. 29, 2010, 4:13 a.m. UTC
> The patch below adds the SH case to the recently added test
> gcc.c-torture/execute/20101011-1.c, because SH doesn't trap
> with integral division by zero.
> The second hunk of the patch changes #ifdef to #if to avoid
> an undeclared error for sigfpe which is seen on SH and
> powerpc-apple-darwin9.8.0.
> Ok for trunk?

I've committed the first hunk only as an SH specific patch
because the second hunk of the patch was committed as obvious
with

http://gcc.gnu.org/ml/gcc-patches/2010-10/msg02441.html

Regards,
	kaz
--
2010-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>

	* gcc.c-torture/execute/20101011-1.c: Skip on SH.
diff mbox

Patch

--- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/20101011-1.c	2010-10-25 12:47:18.000000000 +0900
+++ trunk/gcc/testsuite/gcc.c-torture/execute/20101011-1.c	2010-10-25 19:57:58.000000000 +0900
@@ -9,6 +9,9 @@ 
 #elif defined (__SPU__)
   /* On SPU division by zero does not trap.  */
 # define DO_TEST 0
+#elif defined (__sh__)
+  /* On SH division by zero does not trap.  */
+# define DO_TEST 0
 #else
 # define DO_TEST 1
 #endif