re PR go/88927 (Bootstrap failure on arm in libgo starting with r268084)
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 22 Jan 2019 00:06:44 +0000 (00:06 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 22 Jan 2019 00:06:44 +0000 (00:06 +0000)
commit3d338229dc6fa2092a17c0e175ddfb3514c085f4
tree96dcda6cedb3e21eac2ce461a7b129b86f83feef
parentea31c98daba7d3459dc5500049876fe0a71a89d3
re PR go/88927 (Bootstrap failure on arm in libgo starting with r268084)

PR go/88927
    runtime, internal/cpu: fix build for ARM GNU/Linux

    Was failing with

    ../../../libgo/go/internal/cpu/cpu.go:138:2: error: reference to undefined name 'doinit'
      138 |  doinit()
          |  ^

    Fix it by adding in Go 1.12 internal/cpu/cpu_arm.go, and the code in
    runtime that initializes the values.

    Fixes https://gcc.gnu.org/PR88927.

    Reviewed-on: https://go-review.googlesource.com/c/158717

From-SVN: r268131
gcc/go/gofrontend/MERGE
libgo/go/internal/cpu/cpu_arm.go [new file with mode: 0644]
libgo/go/runtime/os_linux_arm.go