Skip to content
Commit df1cd1b0 authored by Keith Packard's avatar Keith Packard Committed by Henrik Brix Andersen
Browse files

tests/stack_unwind: Avoid inlining and tail-calls



We want the stack trace to show the correct nesting of functions,
so we need to prevent the compiler from in-lining functions or
performing tail-call optimizations.

Add __noinline to prevent inlining. Add another printf in each
function to avoid tail calls.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent f50ee8c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment