diff mbox

[testsuite] Skip 20101011-1.c for bare-metal m68k

Message ID 500618CC.3070707@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore July 18, 2012, 2 a.m. UTC
Like the subject line says; this is consistent with the existing test to 
bail out for MIPS bare-metal.  OK for mainline?

-Sandra


2012-07-17  Julian Brown  <julian@codesourcery.com>
	    Sandra Loosemore <sandra@codesroucery.com>

	gcc/testsuite/
	* gcc.c-torture/execute/20101011-1.c: Skip on bare-metal m68k.

Comments

Mike Stump July 18, 2012, 4:21 p.m. UTC | #1
On Jul 17, 2012, at 7:00 PM, Sandra Loosemore wrote:
> Like the subject line says; this is consistent with the existing test to bail out for MIPS bare-metal.  OK for mainline?

Ok.
diff mbox

Patch

Index: gcc/testsuite/gcc.c-torture/execute/20101011-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/20101011-1.c	(revision 189595)
+++ gcc/testsuite/gcc.c-torture/execute/20101011-1.c	(working copy)
@@ -32,6 +32,10 @@ 
   /* Epiphany does not have hardware division, and the software implementation
      has truly undefined behaviour for division by 0.  */
 # define DO_TEST 0
+#elif defined (__m68k__) && !defined(__linux__)
+  /* Attempting to trap division-by-zero in this way isn't likely to work on 
+     bare-metal m68k systems.  */
+# define DO_TEST 0
 #else
 # define DO_TEST 1
 #endif