diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/i386-local2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/i386-local2.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/i386-local2.c b/gcc/testsuite/gcc.dg/i386-local2.c new file mode 100644 index 00000000000..89ef87e4755 --- /dev/null +++ b/gcc/testsuite/gcc.dg/i386-local2.c @@ -0,0 +1,23 @@ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-O2 -funit-at-a-time -fomit-frame-pointer" } */ +/* { dg-final { scan-assembler-not "sub.*[re]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 () +{ +} |