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  <jul...@codesourcery.com>
            Sandra Loosemore <san...@codesroucery.com>

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

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

Reply via email to