Reduce stack size in gcc.dg/tree-ssa/ldist-27.c

2017-10-20  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/tree-ssa/ldist-27.c: Remove dg-require-stack-size.
	(main): Move s ...
	(s): ... here.

From-SVN: r253929
This commit is contained in:
Tom de Vries 2017-10-20 10:02:49 +00:00 committed by Tom de Vries
parent e8679fd52c
commit 424101ddcc
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2017-10-20 Tom de Vries <tom@codesourcery.com>
* gcc.dg/tree-ssa/ldist-27.c: Remove dg-require-stack-size.
(main): Move s ...
(s): ... here.
2017-10-20 Jakub Jelinek <jakub@redhat.com>
PR target/82158

View file

@ -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);
}