3dba764bbfb83e08d81577dfb2a53bf35be008e2
1 /* A simple check to see whether indirect calls are
2 being sibcall optimized on targets that do support
3 this notion, i.e. have the according call patterns
6 Copyright (C) 2002 Free Software Foundation Inc.
7 Contributed by Andreas Bauer <baueran@in.tum.de> */
9 /* { dg-do run { target i?86-*-* x86_64-*-* s390*-*-* } } */
10 /* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && { ilp32 && { ! nonpic } } } { "*" } { "" } } */
11 /* { dg-options "-O2 -foptimize-sibling-calls -fno-ipa-cp" } */
13 extern void abort (void);
14 extern void exit (int);
30 int __attribute__ ((noinline
))
34 if (f_addr
== (int*) __builtin_return_address (0))
40 int __attribute__ ((noinline
))
44 f_addr
= (int*) __builtin_return_address (0);