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]

[testsuite] Cap VLEN in gcc.c-torture/execute/20011008-3.c


Hi,

gcc.c-torture/execute/20011008-3.c has these lines:

#ifndef STACK_SIZE
#define	VLEN	1235
#else
#define VLEN (STACK_SIZE/10)
#endif

which means that VLEN is _not_ capped if STACK_SIZE is defined, which goes 
against the very purpose of STACK_SIZE in the testing framework.

Fixed thusly, tested on x86_64-suse-linux, OK for the mainline?


2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.c-torture/execute/20011008-3.c: Cap VLEN with STACK_SIZE too.


-- 
Eric Botcazou
Index: gcc.c-torture/execute/20011008-3.c
===================================================================
--- gcc.c-torture/execute/20011008-3.c	(revision 196816)
+++ gcc.c-torture/execute/20011008-3.c	(working copy)
@@ -81,10 +81,10 @@ __db_txnlist_lsnadd(int val, DB_TXNLIST
    return val;
 }
 
-#ifndef STACK_SIZE
-#define	VLEN	1235
-#else
+#if defined (STACK_SIZE) && STACK_SIZE < 12350
 #define VLEN (STACK_SIZE/10)
+#else
+#define VLEN 1235
 #endif
 
 int main (void)

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