From 2c99d614360c57cf409aa78136fe50851d0e7a9a Mon Sep 17 00:00:00 2001
From: Richard Sandiford <richard@codesourcery.com>
Date: Wed, 4 Jul 2007 09:15:53 +0000
Subject: [PATCH] sh4a-fprun.c: Skip for VxWorks kernels.

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

From-SVN: r126308
---
 gcc/testsuite/ChangeLog           | 4 ++++
 gcc/testsuite/gcc.dg/sh4a-fprun.c | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 71c389afc87d..0e355f34ffa1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-04  Richard Sandiford  <richard@codesourcery.com>
+
+	* gcc.dg/sh4a-fprun.c: Skip for VxWorks kernels.
+
 2007-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
 
 	PR fortran/31198
diff --git a/gcc/testsuite/gcc.dg/sh4a-fprun.c b/gcc/testsuite/gcc.dg/sh4a-fprun.c
index e9b1107528c0..40c2b05aabbe 100644
--- a/gcc/testsuite/gcc.dg/sh4a-fprun.c
+++ b/gcc/testsuite/gcc.dg/sh4a-fprun.c
@@ -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>
-- 
GitLab