diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2019-10-09 16:22:47 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-10-09 22:34:34 +0000 |
commit | 07b4abd62e450f19c47266b3a526df49c01ba425 (patch) | |
tree | f36075bd2f2c2149744ca1bd2fb22fecf742fd87 /src/cmd/compile/internal/ssa/regalloc.go | |
parent | 19a7490e568824302b271f6e27dde3f1cd92ffc7 (diff) | |
download | go-07b4abd62e450f19c47266b3a526df49c01ba425.tar.gz go-07b4abd62e450f19c47266b3a526df49c01ba425.zip |
all: remove the nacl port (part 2, amd64p32 + toolchain)
This is part two if the nacl removal. Part 1 was CL 199499.
This CL removes amd64p32 support, which might be useful in the future
if we implement the x32 ABI. It also removes the nacl bits in the
toolchain, and some remaining nacl bits.
Updates #30439
Change-Id: I2475d5bb066d1b474e00e40d95b520e7c2e286e1
Reviewed-on: https://go-review.googlesource.com/c/go/+/200077
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/regalloc.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/regalloc.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cmd/compile/internal/ssa/regalloc.go b/src/cmd/compile/internal/ssa/regalloc.go index 3f326722ae..d7e931d0b8 100644 --- a/src/cmd/compile/internal/ssa/regalloc.go +++ b/src/cmd/compile/internal/ssa/regalloc.go @@ -625,15 +625,6 @@ func (s *regAllocState) init(f *Func) { s.f.fe.Fatalf(src.NoXPos, "arch %s not implemented", s.f.Config.arch) } } - if s.f.Config.nacl { - switch s.f.Config.arch { - case "arm": - s.allocatable &^= 1 << 9 // R9 is "thread pointer" on nacl/arm - case "amd64p32": - s.allocatable &^= 1 << 5 // BP - reserved for nacl - s.allocatable &^= 1 << 15 // R15 - reserved for nacl - } - } if s.f.Config.use387 { s.allocatable &^= 1 << 15 // X7 disallowed (one 387 register is used as scratch space during SSE->387 generation in ../x86/387.go) } |