1
0
mirror of https://github.com/golang/go synced 2024-11-08 08:36:20 -07:00
go/src/cmd/link
Than McIntosh 692f2e9c44 cmd/compile: fix bug in logic for computing var abstract origins
The DWARF inline info generation code was using file/line/column (from
src.Pos) as a means of matching up pre- and post-optimization variable
nodes. This turns out to be problematic since it looks as though
distinct formals on the same line can be assigned the same column
number. Work around this issue by adding variable names to the
disambiguation code. Added a testpoint to the linker DWARF test that
checks to make sure each abstract origin offset of distinct within a
given DWARF DW_AT_inlined_routine body.

Fixes #23020.

Change-Id: Ie09bbe01dc60822d84d4085547b138e644036fb3
Reviewed-on: https://go-review.googlesource.com/82396
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2017-12-07 17:03:05 +00:00
..
internal cmd/compile: fix bug in logic for computing var abstract origins 2017-12-07 17:03:05 +00:00
doc.go cmd/asm, cmd/cgo, cmd/compile, cmd/cover, cmd/link: use standard -V output 2017-10-06 20:28:40 +00:00
dwarf_test.go
link_test.go cmd/link: fix export data truncation bug 2017-11-22 18:12:36 +00:00
linkbig_test.go cmd/internal/objabi: extract shared functionality from obj 2017-04-19 00:00:09 +00:00
main.go cmd/link: remove SysArch global variable 2017-10-03 23:32:02 +00:00