mirror of https://github.com/golang/go.git
cmd/compile, cmd/link: create from 5g, 5l, etc
Trivial merging of 5g, 6g, ... into go tool compile, and similarlly 5l, 6l, ... into go tool link. The files compile/main.go and link/main.go are new. Everything else in those directories is a move followed by change of imports and package name. This CL breaks the build. Manual fixups are in the next CL. See golang-dev thread titled "go tool compile, etc" for background. Change-Id: Id35ff5a5859ad9037c61275d637b1bd51df6828b Reviewed-on: https://go-review.googlesource.com/10287 Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
2a141dedc4
commit
17eba6e6b7
|
|
@ -1 +0,0 @@
|
|||
package main
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package amd64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/x86"
|
||||
)
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package amd64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/x86"
|
||||
)
|
||||
|
|
@ -65,7 +65,7 @@ func betypeinit() {
|
|||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
func Main() {
|
||||
if obj.Getgoos() == "nacl" {
|
||||
resvd = append(resvd, x86.REG_BP, x86.REG_R15)
|
||||
} else if obj.Framepointer_enabled != 0 {
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package amd64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/x86"
|
||||
)
|
||||
|
|
@ -28,11 +28,11 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package amd64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/internal/gc/big"
|
||||
"cmd/compile/internal/big"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/x86"
|
||||
"fmt"
|
||||
|
|
@ -28,10 +28,10 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package amd64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/x86"
|
||||
"fmt"
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package amd64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/x86"
|
||||
)
|
||||
|
|
@ -28,10 +28,10 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package amd64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/x86"
|
||||
)
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm"
|
||||
)
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm"
|
||||
)
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm"
|
||||
)
|
||||
|
|
@ -37,7 +37,7 @@ func betypeinit() {
|
|||
gc.Widthreg = 4
|
||||
}
|
||||
|
||||
func main() {
|
||||
func Main() {
|
||||
gc.Thearch.Thechar = thechar
|
||||
gc.Thearch.Thestring = thestring
|
||||
gc.Thearch.Thelinkarch = thelinkarch
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm"
|
||||
)
|
||||
|
|
@ -28,10 +28,10 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package arm
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm"
|
||||
"fmt"
|
||||
|
|
@ -28,10 +28,10 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package arm
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm"
|
||||
"fmt"
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm"
|
||||
)
|
||||
|
|
@ -28,10 +28,10 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package arm
|
||||
|
||||
import "cmd/internal/obj/arm"
|
||||
import "cmd/internal/gc"
|
||||
import "cmd/compile/internal/gc"
|
||||
|
||||
const (
|
||||
NREGVAR = 32
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm64"
|
||||
)
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm64"
|
||||
)
|
||||
|
|
@ -37,7 +37,7 @@ func betypeinit() {
|
|||
gc.Widthreg = 8
|
||||
}
|
||||
|
||||
func main() {
|
||||
func Main() {
|
||||
gc.Thearch.Thechar = thechar
|
||||
gc.Thearch.Thestring = thestring
|
||||
gc.Thearch.Thelinkarch = thelinkarch
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm64"
|
||||
"fmt"
|
||||
|
|
@ -28,10 +28,10 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package arm64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm64"
|
||||
"fmt"
|
||||
|
|
@ -28,10 +28,10 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package arm64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm64"
|
||||
"fmt"
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package arm64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/arm64"
|
||||
)
|
||||
|
|
@ -28,10 +28,10 @@
|
|||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
package main
|
||||
package arm64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj/arm64"
|
||||
)
|
||||
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
package gc
|
||||
|
||||
import (
|
||||
"cmd/internal/gc/big"
|
||||
"cmd/compile/internal/big"
|
||||
"cmd/internal/obj"
|
||||
"strings"
|
||||
)
|
||||
|
|
@ -6,7 +6,7 @@ package gc
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"cmd/internal/gc/big"
|
||||
"cmd/compile/internal/big"
|
||||
"cmd/internal/obj"
|
||||
)
|
||||
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
package gc
|
||||
|
||||
import (
|
||||
"cmd/internal/gc/big"
|
||||
"cmd/compile/internal/big"
|
||||
"cmd/internal/obj"
|
||||
"fmt"
|
||||
)
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
package gc
|
||||
|
||||
import (
|
||||
"cmd/internal/gc/big"
|
||||
"cmd/compile/internal/big"
|
||||
"cmd/internal/obj"
|
||||
"fmt"
|
||||
"math"
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package ppc64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/ppc64"
|
||||
)
|
||||
|
|
@ -2,10 +2,10 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package main
|
||||
package ppc64
|
||||
|
||||
import (
|
||||
"cmd/internal/gc"
|
||||
"cmd/compile/internal/gc"
|
||||
"cmd/internal/obj"
|
||||
"cmd/internal/obj/ppc64"
|
||||
)
|
||||
|
|
@ -45,7 +45,7 @@ func betypeinit() {
|
|||
gc.Widthreg = 8
|
||||
}
|
||||
|
||||
func main() {
|
||||
func Main() {
|
||||
gc.Thearch.Thechar = thechar
|
||||
gc.Thearch.Thestring = thestring
|
||||
gc.Thearch.Thelinkarch = thelinkarch
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue