inlining and --release
builds can result in weird debuginfo relative to source
#126940
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
I created this simple example:
I expected to see this happen: explanation
This should find a line in the output:
CARGO_PROFILE_RELEASE_DEBUG=true cargo objdump --release -- --source -d | grep vld1_u8
Instead, this happened: explanation
I dumped the asm with:
CARGO_PROFILE_RELEASE_DEBUG=true cargo objdump --release -- --source -d | grep emit_asm_example::main -A 50
I had to setup a symlink in root (maybe there's a better way but this was good enough inside a container) to find the sources
The relevant output is:
Only vsub_u8 shows up when it should also have vld1_u8. It seems wrong code gets picked up to the output for the latter.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: