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

Re-enable frame pointers for optimized code #4594

Open
JohanEngelen opened this issue Mar 17, 2024 · 0 comments
Open

Re-enable frame pointers for optimized code #4594

JohanEngelen opened this issue Mar 17, 2024 · 0 comments

Comments

@JohanEngelen
Copy link
Member

See:
https://issues.dlang.org/show_bug.cgi?id=24439
https://news.ycombinator.com/item?id=39731824
https://www.brendangregg.com/blog/2024-03-17/the-return-of-the-frame-pointers.html
and
#2222

Code change will be simply to adjust this:

ldc/gen/functions.cpp

Lines 507 to 508 in 3eb3190

if (!func.hasFnAttribute("frame-pointer")) // not explicitly set by user
func.addFnAttr("frame-pointer", isOptimizationEnabled() ? "none" : "all");

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

No branches or pull requests

1 participant