diff options
author | David Chase <drchase@google.com> | 2018-03-07 16:21:47 -0500 |
---|---|---|
committer | David Chase <drchase@google.com> | 2018-03-09 23:17:18 +0000 |
commit | 0eacf8cbdfaec174f29fd8c734ac2f02442af79a (patch) | |
tree | 9d1eda633654e0f7328e1676d18273fbe1f3f55f /src/cmd/compile/internal/ssa/debug.go | |
parent | 99c30211b1e0b3ac4e5d32f3ae5eaf759c23195f (diff) | |
download | go-0eacf8cbdfaec174f29fd8c734ac2f02442af79a.tar.gz go-0eacf8cbdfaec174f29fd8c734ac2f02442af79a.zip |
cmd/compile: add DWARF reg defs & fix 32-bit location list bug
Before DWARF location lists can be turned on, 3 bugs need
fixing.
This CL addresses two -- lack of register definitions for
various architectures, and bugs on 32-bit platforms.
The third bug comes later.
Passes
GO_GCFLAGS=-dwarflocationlists ./run.bash -no-rebuild
(-no-rebuild because the map dependence causes trouble)
Change-Id: I4223b48ade84763e4b048e4aeb81149f082c7bc7
Reviewed-on: https://go-review.googlesource.com/99255
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/debug.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/debug.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/debug.go b/src/cmd/compile/internal/ssa/debug.go index 3924f9341a..1e03ce2964 100644 --- a/src/cmd/compile/internal/ssa/debug.go +++ b/src/cmd/compile/internal/ssa/debug.go @@ -1001,7 +1001,7 @@ func decodeValue(ctxt *obj.Link, word uint64) (ID, ID) { if ctxt.Arch.PtrSize != 4 { panic("unexpected pointer size") } - return ID(word >> 16), ID(word) + return ID(word >> 16), ID(int16(word)) } // Append a pointer-sized uint to buf. |