]> Cypherpunks repositories - gostls13.git/commit
math/bits: add gccgo-friendly code for compiler bootstrap
authorThan McIntosh <thanm@google.com>
Thu, 4 Apr 2019 15:01:22 +0000 (11:01 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 4 Apr 2019 18:17:30 +0000 (18:17 +0000)
commitbead358611e36fe0991c171a8a4a4924f4f0e584
tree2e2ab947ca9be1df167316384b8f95fec894d303
parentcf8cc7f63c7ddefb666a6e8d99a4843d3277db9f
math/bits: add gccgo-friendly code for compiler bootstrap

When building as part of the bootstrap process, avoid
use of "go:linkname" applied to variables, since this
feature is ill-defined/unsupported for gccgo.

Updates #30771.

Change-Id: Id44d01b5c98d292702e5075674117518cb59e2d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/170737
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/math/bits/bits.go
src/math/bits/bits_errors.go [new file with mode: 0644]
src/math/bits/bits_errors_bootstrap.go [new file with mode: 0644]