cmd/compile: missing DWARF location lists for return values #50990
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
With Go1.17.6, DWARF entries for return values of optimized functions were not available at all due to related issue #48573
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Build an application with the Go 1.18beta2 toolchain using the command
go build Main.go
(optimized binary):Disassembly of `main.testFunc`
What did you expect to see?
DWARF location lists for function return values:
Example for return value `d`
What did you see instead?
Missing DWARF location lists for all function return values of
main.testFunc
:DWARF data of main.testFunc
debug.txt
I have checked many functions of optimized binaries, for all of them I can see the same problem.
Thanks
The text was updated successfully, but these errors were encountered: