Uh oh!
There was an error while loading. Please reload this page.
debuginfo: Don't emit DW_AT_address_class attribute for pointer type debuginfo. - #93070
debuginfo: Don't emit DW_AT_address_class attribute for pointer type debuginfo.#93070michaelwoerister wants to merge 1 commit into
Conversation
rust-highfive
commented
Jan 19, 2022
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
d050d9b to
76234deComparemichaelwoerister
commented
Jan 20, 2022
r? @cuviper, since this involves our LLVM bindings. |
bors
commented
Jan 28, 2022
☔ The latest upstream changes (presumably #93006) made this pull request unmergeable. Please resolve the merge conflicts. |
76234de to
265000dComparemichaelwoerister
commented
Jan 31, 2022
This is unblocked now. |
cuviper
commented
Feb 7, 2022
So, you're always emitting The change itself seems fine, but if we're never going to set a real value, we might as well hardcode that
I see a few places in Clang that depend on the result of |
michaelwoerister
commented
Feb 10, 2022
Is there a description of what these address spaces are exactly? Are these the same as |
cuviper
commented
Feb 10, 2022
LLVM describes it in the Data Layout:
The only standardized value in DWARF is The DWARF spec mentions other i386 examples like
I think it is |
michaelwoerister
commented
Feb 15, 2022
Thanks for digging up that information! I'll update the PR to use the value from |
michaelwoerister
commented
Feb 25, 2022
FYI: I plan to do this but it might take a while because it's not high priority. I'm leaving the PR open, so I don't forget. |
bors
commented
Feb 25, 2022
☔ The latest upstream changes (presumably #93644) made this pull request unmergeable. Please resolve the merge conflicts. |
265000d to
fb623bcComparebors
commented
Mar 25, 2022
☔ The latest upstream changes (presumably #95291) made this pull request unmergeable. Please resolve the merge conflicts. |
JohnCSimon
commented
Nov 27, 2022
@michaelwoerister @rustbot label: +S-inactive |
Currently the compiler adds the
DW_AT_address_classattribute to pointer type debuginfo. This seems to be accidental, mostly due to our LLVM bindings not allowing to omit the attribute. This PR changes this and brings the actual behavior in line with the intended behavior (as expressed in the pre-existing comments in metadata.rs).For reference, Clang does not emit the attribute.
Only the final commit is relevant for this PR. The other two commits are from #93006, which should be merged first.