Patchwork Yet another gcc.c-torture/execute/20101011-1.c DO_TEST 0

login
register
mail settings
Submitter Hans-Peter Nilsson
Date July 20, 2012, 10:25 p.m.
Message ID <201207202225.q6KMPTrJ022600@ignucius.se.axis.com>
Download mbox | patch
Permalink /patch/172381/
State New
Headers show

Comments

Hans-Peter Nilsson - July 20, 2012, 10:25 p.m.
The #elif defined ... #define DO_TEST 0 exceptions are accumulating.
Maybe the DO_TEST = 1 case should be the exception...
Committed.

gcc/testsuite:
	* gcc.c-torture/execute/20101011-1.c (DO_TEST): Define as 0 for CRIS.


brgds, H-P

Patch

Index: gcc.c-torture/execute/20101011-1.c
===================================================================
--- gcc.c-torture/execute/20101011-1.c	(revision 189727)
+++ gcc.c-torture/execute/20101011-1.c	(working copy)
@@ -36,6 +36,9 @@ 
   /* Attempting to trap division-by-zero in this way isn't likely to work on 
      bare-metal m68k systems.  */
 # define DO_TEST 0
+#elif defined (__CRIS__)
+  /* No SIGFPE for CRIS integer division.  */
+# define DO_TEST 0
 #else
 # define DO_TEST 1
 #endif