mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: drop 387 support
My last 387 CL. So sad ... ... ... ... not! Fixes #40255 Change-Id: I8d4ddb744b234b8adc735db2f7c3c7b6d8bbdfa4 Reviewed-on: https://go-review.googlesource.com/c/go/+/258957 Trust: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
41df0e2218
commit
fe2cfb74ba
36 changed files with 97 additions and 796 deletions
|
|
@ -24,7 +24,6 @@ var (
|
|||
GOROOT = envOr("GOROOT", defaultGOROOT)
|
||||
GOARCH = envOr("GOARCH", defaultGOARCH)
|
||||
GOOS = envOr("GOOS", defaultGOOS)
|
||||
GO386 = envOr("GO386", defaultGO386)
|
||||
GOAMD64 = goamd64()
|
||||
GOARM = goarm()
|
||||
GOMIPS = gomips()
|
||||
|
|
@ -136,6 +135,14 @@ func init() {
|
|||
if GOARCH != "amd64" {
|
||||
Regabi_enabled = 0
|
||||
}
|
||||
|
||||
if v := os.Getenv("GO386"); v != "" && v != "sse2" {
|
||||
msg := fmt.Sprintf("unsupported setting GO386=%s", v)
|
||||
if v == "387" {
|
||||
msg += ". 387 support was dropped in Go 1.16. Consider using gccgo instead."
|
||||
}
|
||||
log.Fatal(msg)
|
||||
}
|
||||
}
|
||||
|
||||
// Note: must agree with runtime.framepointer_enabled.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue