1 | #include "shared.h" |
---|---|
2 | |
3 | __attribute__((noinline)) |
4 | static void helper_in_a() { |
5 | tail_called_in_b_from_a(); |
6 | } |
7 | |
8 | __attribute__((disable_tail_calls)) |
9 | void tail_called_in_a_from_main() { |
10 | helper_in_a(); |
11 | } |
12 |
1 | #include "shared.h" |
---|---|
2 | |
3 | __attribute__((noinline)) |
4 | static void helper_in_a() { |
5 | tail_called_in_b_from_a(); |
6 | } |
7 | |
8 | __attribute__((disable_tail_calls)) |
9 | void tail_called_in_a_from_main() { |
10 | helper_in_a(); |
11 | } |
12 |