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

login
register
mail settings
Submitter Sandra Loosemore
Date July 18, 2012, 2 a.m.
Message ID <500618CC.3070707@codesourcery.com>
Download mbox | patch
Permalink /patch/171587/
State New
Headers show

Comments

Sandra Loosemore - July 18, 2012, 2 a.m.
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.
Mike Stump - July 18, 2012, 4:21 p.m.
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.

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