From 424101ddcc5bad4548a8ba15c7572158a5a08036 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 20 Oct 2017 10:02:49 +0000 Subject: [PATCH] Reduce stack size in gcc.dg/tree-ssa/ldist-27.c 2017-10-20 Tom de Vries * gcc.dg/tree-ssa/ldist-27.c: Remove dg-require-stack-size. (main): Move s ... (s): ... here. From-SVN: r253929 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/tree-ssa/ldist-27.c | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 35cc34e6cb2..fd7ce2eac32 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-10-20 Tom de Vries + + * gcc.dg/tree-ssa/ldist-27.c: Remove dg-require-stack-size. + (main): Move s ... + (s): ... here. + 2017-10-20 Jakub Jelinek PR target/82158 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ldist-27.c b/gcc/testsuite/gcc.dg/tree-ssa/ldist-27.c index cd9696e5b4d..b1fd024a942 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ldist-27.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ldist-27.c @@ -1,6 +1,5 @@ /* { dg-do run } */ /* { dg-options "-O3 -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */ -/* { dg-require-stack-size "(300 + 200 + 300 * 200) * 8" } */ #define M (300) #define N (200) @@ -12,7 +11,8 @@ struct st double c[M][N]; }; -int __attribute__ ((noinline)) foo (struct st *s) +int __attribute__ ((noinline)) +foo (struct st *s) { int i, j; for (i = 0; i != M;) @@ -30,9 +30,11 @@ L2: return 0; } -int main (void) +struct st s; + +int +main (void) { - struct st s; return foo (&s); } -- 2.30.2