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]

Re: [patch] Disable execute/20030209-1.c on H8.


Hi Jeff,

> Go ahead and use STACK_SIZE.  In theory we should have a separate variable
> for data size, but we don't...

Something like this?

Kazu Hirata

2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>

	* gcc.c-torture/execute/20030209-1.c: Disable the test if
	STACK_SIZE is too small.

Index: 20030209-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/20030209-1.c,v
retrieving revision 1.1
diff -u -r1.1 20030209-1.c
--- 20030209-1.c	9 Feb 2003 19:18:54 -0000	1.1
+++ 20030209-1.c	10 Feb 2003 22:18:24 -0000
@@ -1,3 +1,10 @@
+#ifdef STACK_SIZE
+#if STACK_SIZE >= 8*100*100
+#define OK
+#endif
+#endif
+
+#ifdef OK
 double x[100][100];
 int main ()
 {
@@ -9,3 +16,10 @@
     abort ();
   exit (0);
 }
+#else
+int
+main ()
+{
+  exit (0);
+}
+#endif


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