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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ int check_fa_mid (const char *c)
const char *f = __builtin_frame_address (0);

/* Prevent a tail call to check_fa_work, eliding the current stack frame. */
return check_fa_work (c, f) != 0;
int (*volatile func_ptr)(const char *, const char *) = check_fa_work;
return func_ptr(c, f) != 0;
}

int check_fa (char *unused)
{
const char c = 0;

/* Prevent a tail call to check_fa_mid, eliding the current stack frame. */
return check_fa_mid (&c) != 0;
int (*volatile func_ptr)(const char *) = check_fa_mid;
return func_ptr(&c) != 0;
}

int how_much (void)
Expand Down