1 /* { dg-do compile } */
2 /* { dg-options "-fstack-usage" } */
4 /* This is aimed at testing basic support for -fstack-usage in the back-ends.
5 See the SPARC back-end for an example (grep flag_stack_usage in sparc.c).
6 Once it is implemented, adjust SIZE below so that the stack usage for the
7 function FOO is reported as 256 or 264 in the stack usage (.su) file.
8 Then check that this is the actual stack usage in the assembly file. */
12 #elif defined(__x86_64__)
14 #elif defined (__sparc__)
15 # if defined (__arch64__)
20 #elif defined(__hppa__)
22 #elif defined (__alpha__)
24 #elif defined (__ia64__)
26 #elif defined(__mips__)
28 #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \
29 || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
31 #elif defined (__AVR__)
44 /* { dg-final { scan-stack-usage "foo\t\(256|264\)\tstatic" } } */
45 /* { dg-final { cleanup-stack-usage } } */