From 21c802250b9a3e69e6d9b4a61fa1245076af647b Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 26 Mar 2013 22:32:12 +0000 Subject: [PATCH] * gcc.c-torture/execute/20011008-3.c: Cap VLEN with STACK_SIZE too. From-SVN: r197125 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.c-torture/execute/20011008-3.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1f53a31a8f2..5b0544d41ef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2013-03-26 Eric Botcazou + + * gcc.c-torture/execute/20011008-3.c: Cap VLEN with STACK_SIZE too. + 2013-03-26 Paolo Carlini PR c++/55951 diff --git a/gcc/testsuite/gcc.c-torture/execute/20011008-3.c b/gcc/testsuite/gcc.c-torture/execute/20011008-3.c index 6d2a18f64a7..3244b0a97ae 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20011008-3.c +++ b/gcc/testsuite/gcc.c-torture/execute/20011008-3.c @@ -81,10 +81,10 @@ __db_txnlist_lsnadd(int val, DB_TXNLIST *elp, DB_LSN *lsnp, u_int32_t flags) 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)