]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix bug in DWARF inl handling of unused autos
authorThan McIntosh <thanm@google.com>
Fri, 1 Dec 2017 20:23:30 +0000 (15:23 -0500)
committerThan McIntosh <thanm@google.com>
Mon, 4 Dec 2017 18:36:11 +0000 (18:36 +0000)
commit88c2fb9d04c1766574581ba5ed6220e30cf6378e
treeabe39a26684f88d30dc25f4c8938e35b3d60cfd0
parent03c93eaa0ba19a57ae348ea3f3ff91a1be2ef7fb
cmd/compile: fix bug in DWARF inl handling of unused autos

The DWARF inline info generation hooks weren't properly
handling unused auto vars in certain cases, triggering an assert (now
fixed). Also with this change, introduce a new autom "flavor" to
use for autom entries that are added to insure that a specific
auto type makes it into the linker (this is a follow-on to the fix
for 22941).

Fixes #22962.

Change-Id: I7a2d8caf47f6ca897b12acb6a6de0eb25f5cac8f
Reviewed-on: https://go-review.googlesource.com/81557
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/pgen.go
src/cmd/internal/obj/link.go
src/cmd/internal/obj/objfile.go
src/cmd/internal/objabi/autotype.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/lib.go
test/fixedbugs/issue22962.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue22962.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue22962.go [new file with mode: 0644]