KEMBAR78
Keep frame pointers by default with -O for some targets by kinke · Pull Request #4889 · ldc-developers/ldc · GitHub
Skip to content

Conversation

@kinke
Copy link
Member

@kinke kinke commented Mar 22, 2025

Primarily to fix (druntime) backtraces with optimized code for those targets, incl. prebuilt release druntime/Phobos.

Fixes #4594 and #4694.

@kinke kinke force-pushed the drt_exceptions branch 2 times, most recently from 6f501af to fe30562 Compare March 22, 2025 18:44
@kinke kinke changed the title [WIP] Fix druntime-test-exceptions-release Keep frame pointers by default with -O for some targets Mar 22, 2025
@kinke kinke marked this pull request as ready for review March 22, 2025 18:56
// Keep frame pointers by default with enabled optimizations?
// The logic is very loosely based on clang's
// `useFramePointerForTargetByDefault()`, as well as backtrace test results for
// druntime-test-exceptions-release.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Primarily to fix (druntime) backtraces with optimized code for those
targets, incl. prebuilt release druntime/Phobos.

Fixes ldc-developers#4594 and ldc-developers#4694.
@kinke kinke merged commit d4d84b5 into ldc-developers:merge-2.111 Mar 22, 2025
0 of 17 checks passed
@kinke kinke deleted the drt_exceptions branch March 22, 2025 19:50
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