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]

[PATCH][SH] Skip gcc.dg/pragma-isr-trapa2.c on soft-float


Hi,

This patch prevents test gcc.dg/pragma-isr-trapa2.c from running when it is not appropriate. The test requires an FPU to work properly.

OK?

Andrew
2009-03-25  Andrew Stubbs  <ams@codesourcery.com>

	gcc/testsuite/
	* gcc.dg/pragma-isr-trapa2.c: Skip test for FPU-less architectures.

---
 src/gcc-trunk-4.3/gcc/testsuite/gcc.dg/pragma-isr-trapa2.c |    2 ++
 1 files changed, 2 insertions(+)

Index: src/gcc-mainline/gcc/testsuite/gcc.dg/pragma-isr-trapa2.c
===================================================================
--- src/gcc-mainline/gcc/testsuite/gcc.dg/pragma-isr-trapa2.c.orig
+++ src/gcc-mainline/gcc/testsuite/gcc.dg/pragma-isr-trapa2.c
@@ -1,4 +1,6 @@
 /* { dg-do compile { target { { sh-*-* sh4*-*-* } && nonpic } } } */
+/* { dg-skip-if "FPU Required" { "sh*-*-*" } { "-m*nofpu*" } { "" } } */
+/* { dg-skip-if "FPU Required" { "sh*-*-*" } { "-m4al*" } { "" } } */
 /* { dg-options "-O -m4" } */
 
 extern void foo ();

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