This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Skip gcc.dg/sh4a-fpun.c for VxWorks kernels


This patch skips gcc.dg/sh4a-fpun.c for VxWorks kernels as it relies
on functions that the kernel doesn't provide.  (The test works fine
on RTPs, and I checked that it still runs for them.)

Tested on sh-wrs-vxworks.  Approved by NathanS and applied.

Richard


gcc/testsuite/
	* gcc.dg/sh4a-fprun.c: Skip for VxWorks kernels.

Index: gcc/testsuite/gcc.dg/sh4a-fprun.c
===================================================================
--- gcc/testsuite/gcc.dg/sh4a-fprun.c	2007-07-04 02:07:24.000000000 -0700
+++ gcc/testsuite/gcc.dg/sh4a-fprun.c	2007-07-04 02:08:17.000000000 -0700
@@ -1,5 +1,7 @@
 /* Verify that fsca and fssra yield reasonable results.  */
-/* { dg-do run { target "sh*-*-*" } } */
+/* This test calls the sinf and cosf library functions for targets other
+   than sh4a, but the VxWorks kernel doesn't have those functions.  */
+/* { dg-do run { target { "sh*-*-*" && { ! vxworks_kernel } } } } */
 /* { dg-options "-O -ffast-math" } */
 
 #include <math.h>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]