• Russ Cox's avatar
    cmd/internal/obj/arm: fix line numbers after constant pool · a1e42207
    Russ Cox authored
    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/12894Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    a1e42207
asm5.go 68.9 KB