gcc/gcc/testsuite/gcc.dg/i386-local2.c

24 lines
425 B
C

/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -funit-at-a-time -fomit-frame-pointer" } */
/* { dg-final { scan-assembler-not "sub\[^\\n\]*sp" } } */
static __attribute__ ((noinline)) q ();
int a;
/* This function should not require any stack manipulation
for preferred stack bounday. */
void
e ()
{
if (a)
{
e ();
a--;
}
q ();
}
static __attribute__ ((noinline)) q ()
{
}