]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo, cmd/compile, cmd/link: remove old style build tags
authorTobias Klauser <tklauser@distanz.ch>
Thu, 29 Sep 2022 22:45:12 +0000 (00:45 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 30 Sep 2022 11:22:39 +0000 (11:22 +0000)
The minimum bootstrap version for Go ≥ 1.20 is Go 1.17. That version
supports the new style //go:build lines. Thus the old style //+build
lines can be dropped in this part of the tree as well. Leave the
//+build lines in cmd/dist which will ensure the minimum Go version
during bootstrap.

As suggested by Cherry during review of CL 430496

For #44505

Change-Id: If53c0b02cacbfb055a33e73cfd38578dfd3aa340
Reviewed-on: https://go-review.googlesource.com/c/go/+/436915
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
33 files changed:
src/cmd/cgo/ast_go1.go
src/cmd/cgo/ast_go118.go
src/cmd/compile/internal/base/bootstrap_false.go
src/cmd/compile/internal/base/bootstrap_true.go
src/cmd/compile/internal/base/mapfile_mmap.go
src/cmd/compile/internal/base/mapfile_read.go
src/cmd/compile/internal/ir/mknode.go
src/cmd/compile/internal/ssa/flags_test.go
src/cmd/compile/internal/ssa/gen/386Ops.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/ARM64Ops.go
src/cmd/compile/internal/ssa/gen/ARMOps.go
src/cmd/compile/internal/ssa/gen/LOONG64Ops.go
src/cmd/compile/internal/ssa/gen/MIPS64Ops.go
src/cmd/compile/internal/ssa/gen/MIPSOps.go
src/cmd/compile/internal/ssa/gen/PPC64Ops.go
src/cmd/compile/internal/ssa/gen/RISCV64Ops.go
src/cmd/compile/internal/ssa/gen/S390XOps.go
src/cmd/compile/internal/ssa/gen/WasmOps.go
src/cmd/compile/internal/ssa/gen/dec64Ops.go
src/cmd/compile/internal/ssa/gen/decOps.go
src/cmd/compile/internal/ssa/gen/genericOps.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/gen/rulegen.go
src/cmd/compile/internal/typecheck/builtin/runtime.go
src/cmd/compile/internal/typecheck/mkbuiltin.go
src/cmd/compile/internal/types2/example_test.go
src/cmd/internal/bio/buf_mmap.go
src/cmd/internal/bio/buf_nommap.go
src/cmd/link/elf_test.go
src/cmd/link/internal/ld/outbuf_mmap.go
src/cmd/link/internal/ld/outbuf_nofallocate.go
src/cmd/link/internal/ld/outbuf_nommap.go

index f52bf00d7cb946e9844f485352daec989435a2db..ce61d29095585c8f59f36f92c8cc969ca2249f7e 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build compiler_bootstrap
-// +build compiler_bootstrap
 
 package main
 
index db0108ed7268366a5dc0543645645bed443a3ecb..9f759b8ee5f0ff76579e32efd3c824405bcd5244 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !compiler_bootstrap
-// +build !compiler_bootstrap
 
 package main
 
index c77fcd730812d824c061d329ca0ed353d82a8b16..ea6da4348f53971936dcfbeb2055f137ca246011 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !compiler_bootstrap
-// +build !compiler_bootstrap
 
 package base
 
index 1eb58b2f9dc1ce86ca9fb095715e685e667cbb3e..d0c6c88f56f94cc20f559e1bff38252853ca3354 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build compiler_bootstrap
-// +build compiler_bootstrap
 
 package base
 
index b01d0f4efc664718edffbacd760ef0e7bcd6ad59..6c5a4213a2fda79cab38f421ced67d2809bde083 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
-// +build darwin dragonfly freebsd linux netbsd openbsd solaris,go1.20
 
 package base
 
index e84810ea347eed96c110545e6551ec8c722ac5e9..5ac6272dc15226ab21b371ec0316d4cb297347e7 100644 (file)
@@ -3,13 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20)
-// +build !darwin
-// +build !dragonfly
-// +build !freebsd
-// +build !linux
-// +build !netbsd
-// +build !openbsd
-// +build !solaris !go1.20
 
 package base
 
index 68d8999f832bf6b5eb11efcf439e91ee1bd6d6e2..caf4ba01358cd8be4dee312488b6028c4cfa7a22 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 // Note: this program must be run in this directory.
 //   go run mknode.go
index 0bc1097199464992994a2562a4f61795f2eb0f32..d0079ac5e83823d8e22ad414f88f61af3aa56bf5 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build amd64 || arm64
-// +build amd64 arm64
 
 package ssa
 
index 88e061151e10ea31bdd8af80f327554161983132..4b7fe9fe370e474fda41970846a95371ca4b8f5a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index fc42fa5e28b8218a1e4a5752355731b779804ddb..65456a8f773e0d366efb546b170d1f5aa0050254 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index 0e6e6e4a5f3dbf95522b4a09b16a762aee206241..4ef949a17984880e9eb1c3e399301a4fe3842a27 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index 3803f273c1dafd5bd85354635d1dcc13673fe3e1..99684e4e039353bb8f1cfa57d3cb255d5316280d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index a59b592445ac0cf49be866b005e8f7c7d3788d70..fdf42ec944df5d44c2f96b69fb37c0e0efa5b76a 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index 7b18c42ffb91e35c73e202a7e0b62f9dbb3b9754..59a9c8c7144fd92093570d963af7c51b8b7727d4 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index 523847badc9ce2d77db0c54757e81e50e2d706bd..17ae3d4251716a290016012da224a4ff4fe77047 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index 30a6f6fe07d4b88f9392bb1126b05062955ed644..4428ea62a78fb1002326a079d18900382bd20ffb 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index f09910782d5e24c399beda7bd416ced7046b37c4..1d2d22643d0645bb8dcf40ed69af85d5d7a9456d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index eef8a2557ca39d51e91cb5c5715d3b4d5678c0a2..29cb260d87729261945710b9040fced40afc59db 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index edfba4ee99b774962a26cedf43994527ee939d11..1ba94eaa5fc221075e2dfa476145edfa59a3a15d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index 78fcea885aa8b250304d0064e32ad0b03f52bc8e..24b23c00b7c6acd5997ccecb0f5c47fb4e56a628 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index d5cd79378c76a3041e007bc197c171f7272a4bda..5449727a8a47d4697b62fe0b9866a304f16935bf 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index d09b9aab7573acbc29c33fad29812fd20ad28959..df649eeece50bd717913066a3a6b55609a2ef7ea 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 package main
 
index 81740dcf1c02ac7d06caa90fbfa61c0fb18f97b2..fd00df680dc8db0b3943376fb730f283c5bf2924 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 // The gen command generates Go code (in the parent directory) for all
 // the architecture-specific opcodes, blocks, and rewrites.
index fc9b4c9b3e74b829ee53f983bc050a231975beec..d7b4cfa612253d9239549542f984338eeb88d9ab 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build gen
-// +build gen
 
 // This program generates Go code that applies rewrite rules to a Value.
 // The generated code implements a function of type func (v *Value) bool
index 310148ce00ca4e0f1256b6c022faa15beea564c3..83695013c39cf8c8c4275ec0d8fdb47373f0ce5e 100644 (file)
@@ -7,7 +7,6 @@
 // to avoid depending on having a working compiler binary.
 
 //go:build ignore
-// +build ignore
 
 package runtime
 
index aa3a94a19a4f92ebf6077c25fbfdf11e14b1f4ec..4def95ebd66f980c427e2de8c671d12bcee00a99 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build ignore
-// +build ignore
 
 // Generate builtin.go from builtin/runtime.go.
 
index ad0f22fcec4c8842857da1d2655aef50589d7497..9212c38560b1645c4f6bc58991601cde3fb8a2ae 100644 (file)
@@ -6,7 +6,6 @@
 // access to compiled packages for import.
 //
 //go:build !arm && !arm64
-// +build !arm,!arm64
 
 package types2_test
 
index 3543637154312651c7d2d2b394644c94ba42aea2..e428952bc9f09f83bb8458e44167368200bc8c0d 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
-// +build darwin dragonfly freebsd linux netbsd openbsd solaris,go1.20
 
 package bio
 
index dab3435260a14b0352461098164f3b5fcca14d25..e9048609831a2e0d5a5eb828353ddbd75784420e 100644 (file)
@@ -3,13 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20)
-// +build !darwin
-// +build !dragonfly
-// +build !freebsd
-// +build !linux
-// +build !netbsd
-// +build !openbsd
-// +build !solaris !go1.20
 
 package bio
 
index 5037f5b6c0d4b12b628f1a839d1e604c32bff95e..6a94b264a1b36631ed73c7fc464d782a99d24363 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build dragonfly || freebsd || linux || netbsd || openbsd
-// +build dragonfly freebsd linux netbsd openbsd
 
 package main
 
index d8f8a10db137f3f904c2aeaad75244df71e55e33..7bb728a1f895d18270125a3f2d2eaf97d647cddc 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris,go1.20
 
 package ld
 
index 6564bd54a3d1bcf27977493fedff76c829c34d0d..dd5afc61db92803e7ee004e0515fc7dc870c1938 100644 (file)
@@ -3,7 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !darwin && !linux
-// +build !darwin,!linux
 
 package ld
 
index 4154981b099df07f0236e06a051984aa77829e2d..b1d3d2724f01a2172b5774c7f6d558a2e5aed77d 100644 (file)
@@ -3,15 +3,6 @@
 // license that can be found in the LICENSE file.
 
 //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20) && !windows
-// +build !aix
-// +build !darwin
-// +build !dragonfly
-// +build !freebsd
-// +build !linux
-// +build !netbsd
-// +build !openbsd
-// +build !solaris !go1.20
-// +build !windows
 
 package ld