Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GCC frame-address Regression test failure on Linux with clang 18.1.8 #148

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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