re PR target/81313 (Bad stack realignment code with -mno-accumulate-outgoing-args)

PR target/81313
	* gcc.dg/stack-layout-dynamic-1.c (bar): Add 4 additional
	integer argumets to bypass x86_64 outgoing args optimization.

From-SVN: r250086
This commit is contained in:
Uros Bizjak 2017-07-09 23:01:42 +02:00
parent ba71a2a62c
commit 5920ba1553
2 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,10 @@
2017-06-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2017-07-09 Uros Bizjak <ubizjak@gmail.com>
PR target/81313
* gcc.dg/stack-layout-dynamic-1.c (bar): Add 4 additional
integer argumets to bypass x86_64 outgoing args optimization.
2017-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
* gfortran.dg/eoshift_4.f90: New test.
* gfortran.dg/eoshift_5.f90: New test.

View File

@ -1,15 +1,15 @@
/* Verify that run time aligned local variables are aloocated in the prologue
/* Verify that run time aligned local variables are allocated in the prologue
in one pass together with normal local variables. */
/* { dg-do compile } */
/* { dg-options "-O0 -fomit-frame-pointer" } */
/* { dg-require-effective-target ptr32plus } */
extern void bar (void *, void *, void *);
extern void bar (void *, void *, void *, void *, void *, void *, void *);
void foo (void)
{
int i;
int i, j, k, l, m;
__attribute__ ((aligned(65536))) char runtime_aligned_1[512];
__attribute__ ((aligned(32768))) char runtime_aligned_2[1024];
bar (&i, &runtime_aligned_1, &runtime_aligned_2);
bar (&i, &j, &k, &l, &m, &runtime_aligned_1, &runtime_aligned_2);
}
/* { dg-final { scan-assembler-not "cfi_def_cfa_register" } } */