Skip to content

Conversation

violet73
Copy link

SingleSource/Regression/C/gcc-c-torture/execute/frame-address.c fails on Linux/X86_64 with the following error:
Abort

Even though the code in frame-address.c tries to prevent tail call optimizations, clang still elides stack frames when O3 is enabled.

This patch uses volatile function pointers to
prevent the stack frame elision in frame-address.c

SingleSource/Regression/C/gcc-c-torture/execute/frame-address.c fails
on Linux/X86_64 with the following error:
Abort

Even though the code in frame-address.c tries to prevent tail call optimizations,
clang still elides stack frames when O3 is enabled.

This patch uses volatile function pointers to
prevent the stack frame elision in frame-address.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant