1
0
mirror of https://github.com/golang/go synced 2024-11-23 15:30:05 -07:00

cmd/6g, etc: cleanup, moving code out of near-empty gg.go files

Clear out gg.go files, and move things into consistent places between
the cmd/?g directories.

Change-Id: I81e04180613b806e0bfbb88519e66111ce9f74a3
Reviewed-on: https://go-review.googlesource.com/9080
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Brad Fitzpatrick 2015-04-13 18:26:08 -05:00
parent 6d3a7e79a4
commit 05efc18c20
10 changed files with 19 additions and 86 deletions

View File

@ -1,24 +0,0 @@
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "cmd/internal/obj/x86"
import "cmd/internal/gc"
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var reg [x86.MAXREG]uint8
var panicdiv *gc.Node
/*
* cgen.c
*/
/*
* list.c
*/

View File

@ -166,6 +166,8 @@ func appendpp(p *obj.Prog, as int, ftype int, freg int, foffset int64, ttype int
return q
}
var panicdiv *gc.Node
/*
* generate division.
* generates one of:

View File

@ -40,6 +40,8 @@ const (
NREGVAR = 32
)
var reg [x86.MAXREG]uint8
var regname = []string{
".AX",
".CX",

View File

@ -1,28 +0,0 @@
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "cmd/internal/obj/arm64"
import "cmd/internal/gc"
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var reg [arm64.NREG + arm64.NFREG]uint8
var panicdiv *gc.Node
/*
* cgen.c
*/
/*
* list.c
*/
/*
* reg.c
*/

View File

@ -124,6 +124,8 @@ func ginsnop() {
gins(arm64.AHINT, &con, nil)
}
var panicdiv *gc.Node
/*
* generate division.
* generates one of:

View File

@ -39,6 +39,8 @@ const (
NREGVAR = 64 /* 32 general + 32 floating */
)
var reg [arm64.NREG + arm64.NFREG]uint8
var regname = []string{
".R0",
".R1",

View File

@ -1,34 +0,0 @@
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "cmd/internal/obj/x86"
import "cmd/internal/gc"
// TODO(rsc):
// assume CLD?
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// foptoas flags
const (
Frev = 1 << 0
Fpop = 1 << 1
Fpop2 = 1 << 2
)
var reg [x86.MAXREG]uint8
var panicdiv *gc.Node
/*
* cgen.c
*/
/*
* list.c
*/

View File

@ -189,6 +189,8 @@ func clearfat(nl *gc.Node) {
}
}
var panicdiv *gc.Node
/*
* generate division.
* caller must set:

View File

@ -42,6 +42,13 @@ import (
// At the same time, can raise StackBig in ../../runtime/stack.h.
var unmappedzero uint32 = 4096
// foptoas flags
const (
Frev = 1 << 0
Fpop = 1 << 1
Fpop2 = 1 << 2
)
/*
* return Axxx for Oxxx on type t.
*/

View File

@ -37,6 +37,8 @@ const (
NREGVAR = 16 /* 8 integer + 8 floating */
)
var reg [x86.MAXREG]uint8
var regname = []string{
".ax",
".cx",