]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm: fix line numbers after constant pool
authorRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 14:28:44 +0000 (10:28 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 15:47:31 +0000 (15:47 +0000)
commita1e422071cd8122b4b93bbdeb02d0ea646519955
tree449d0206d98b072105b4c351dcbaaf6d6a8bdee4
parentab714a70dcad78e2bd7004638843052343c6f2c4
cmd/internal/obj/arm: fix line numbers after constant pool

If a function is large enough to need to flush the constant pool
mid-function, the line number assignment code was forcing the
line numbers not just for the constant pool but for all the instructions
that follow it. This made the line number information completely
wrong for all but the beginning of large functions on arm.

Same problem in code copied into arm64.

This broke runtime/trace's TestTraceSymbolize.

Fixes arm build.

Change-Id: I84d9fb2c798c4085f69b68dc766ab4800c7a6ca4
Reviewed-on: https://go-review.googlesource.com/12894
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/obj/arm/asm5.go
src/cmd/internal/obj/arm64/asm7.go