]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: fix pc/sp information for prologue
authorRuss Cox <rsc@golang.org>
Tue, 14 Jul 2015 01:21:49 +0000 (21:21 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 15 Jul 2015 04:09:35 +0000 (04:09 +0000)
commit0a3c991fd330276f6876c401541dcbacbb860985
tree39fb39550c708d9501192824dd2a9429560705c0
parent0c72eeb121702cc0a820976138cc01dd1a475895
cmd/internal/obj: fix pc/sp information for prologue

When the prologue call to morestack was moved down to the
bottom of the function, the pc/sp tables were not updated.
If a traceback through a call to morestack is needed, it would
get confused at and stop at morestack.

Confirmed the fix by adding //go:systemstack (which calls
morestackc, but same issue) where it did not belong
and inspecting the crash.

Change-Id: Id0294bb9dba51ef1a49154637228fb57f1086a94
Reviewed-on: https://go-review.googlesource.com/12144
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/internal/obj/arm/obj5.go
src/cmd/internal/obj/arm64/obj7.go
src/cmd/internal/obj/x86/obj6.go