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] Testsuite remove requirement for signal.h



The attached patch removes the requirement for signal.h to be available for 4 tests in testsuite.


ieee/fp-cmp-* already use symbol SIGNAL_SUPPRESS to control use of signal (). The patch simply applies the same conditional to the #include <signal.h>

Test tree-ssa/ifc-20040816-1.c does not require <signal.h> in any case, so it is removed.

Ok for gcc 4.4 Head?


2008-05-17 Andy Hutchinson <hutchinsonandy@aim.com>


 * gcc.dg/tree-ssa/ifc-20040816-1.c : signal.h not required.
 * gcc.c-torture/execute/ieee/fp-cmp-1.c : Do not include signal.h if
 SIGNAL_SUPPRESS.
 * gcc.c-torture/execute/ieee/fp-cmp-2.c : Ditto.
 * gcc.c-torture/execute/ieee/fp-cmp-3.c : Ditto.




Index: gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.c (revision 135416)
+++ gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.c (working copy)
@@ -1,4 +1,6 @@
+#ifndef SIGNAL_SUPPRESS
 #include <signal.h>
+#endif
 
 double dnan = 1.0/0.0 - 1.0/0.0;
 double x = 1.0;
Index: gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-2.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-2.c (revision 135416)
+++ gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-2.c (working copy)
@@ -1,4 +1,6 @@
+#ifndef SIGNAL_SUPPRESS
 #include <signal.h>
+#endif
 
 float fnan = 1.0f/0.0f - 1.0f/0.0f;
 float x = 1.0f;
Index: gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-3.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-3.c (revision 135416)
+++ gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-3.c (working copy)
@@ -1,4 +1,6 @@
+#ifndef SIGNAL_SUPPRESS
 #include <signal.h>
+#endif
 
 long double dnan = 1.0l/0.0l - 1.0l/0.0l;
 long double x = 1.0l;
Index: gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-1.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-1.c  (revision 135416)
+++ gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-1.c  (working copy)
@@ -2,7 +2,6 @@
 /* { dg-options "-c -O2 -ftree-vectorize -fdump-tree-ifcvt-stats" { target *-*-* } } */
 
 #include <stdarg.h>
-#include <signal.h>
 
 #define N 16
 #define MAX 42

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