1 /* Simple check that tail recursive call optimization is also
2 controlled by -foptimize-sibling-calls.
4 Copyright (C) 2006 Free Software Foundation Inc.
5 Original test by Hans-Peter Nilsson <hp@bitrange.com> */
7 /* On IA64 the call frame is allocated on the register stack, not the
10 /* { dg-do run { target { ! "ia64-*-*" } } } */
11 /* { dg-options "-O2 -fno-optimize-sibling-calls" } */
14 extern void abort (void);
16 extern void recurser_void (int);
17 extern void track (int);
25 void recurser_void (int n
)
33 recurser_void (n
+ 1);
43 trackpoint
= stackpos
;
44 else if (n
!= 7 || trackpoint
== stackpos
)