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

debuginfo: Fixes and improvements for #12840, #12886, and #13213 #13441

Closed

Conversation

michaelwoerister
Copy link
Member

This PR is a collection of debuginfo fixes and improvements:

…ons.

This commit makes sure that code inlined from other functions isn't assigned the source position of the call site, since this leads to undesired behavior when setting line breakpoints (issue rust-lang#12886)
An optimization for sharing the type metadata of generic enum discriminators between monomorphized instances (fixes issue rust-lang#12840)
Fixes issue rust-lang#13213, that is linker errors when the inlined static has been optimized out of the exporting crate.
@bors bors closed this in 0156af1 Apr 11, 2014
bors added a commit that referenced this pull request Apr 16, 2014
…chton

This is a test case verifying that issue #12886 was indeed fixed by PR #13441 from last week.
Fixes #12886.
compiler-errors pushed a commit to compiler-errors/rust that referenced this pull request Oct 26, 2022
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.

Undefined reference with debug flag debuginfo: Extraneous descriptions of enum discriminator are emitted
2 participants