Commit 5a16d6fc authored by Russ Cox's avatar Russ Cox

cmd/5g etc: tweak import blocks

Remove blank lines and merge lone imports into blocks.

Change-Id: Ib46dad584456909969f1ba3a2c7f5667abf336ae
Reviewed-on: https://go-review.googlesource.com/6792Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarRob Pike <r@golang.org>
parent 494e317f
......@@ -5,11 +5,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/arm"
"fmt"
)
import "cmd/internal/gc"
/*
* peep.c
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/arm"
)
import "cmd/internal/gc"
/*
* attempt to generate 64-bit
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/arm"
)
import "cmd/internal/gc"
var thechar int = '5'
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/arm"
)
import "cmd/internal/gc"
func defframe(ptxt *obj.Prog) {
var n *gc.Node
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/arm"
"fmt"
)
import "cmd/internal/gc"
// TODO(rsc): Can make this bigger if we move
// the text segment up higher in 5l for all GOOS.
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/arm"
"fmt"
)
import "cmd/internal/gc"
var gactive uint32
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/arm"
)
import "cmd/internal/gc"
const (
RightRdwr = gc.RightRead | gc.RightWrite
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/ld"
"cmd/internal/obj"
"fmt"
"log"
)
import "cmd/internal/ld"
func needlib(name string) int {
if name[0] == '\x00' {
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/ld"
"cmd/internal/obj"
"fmt"
"log"
)
import "cmd/internal/ld"
// Reading object files.
......
......@@ -5,11 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/x86"
"fmt"
"cmd/internal/gc"
)
/*
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/x86"
)
import "cmd/internal/gc"
var thechar int = '6'
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/x86"
)
import "cmd/internal/gc"
func defframe(ptxt *obj.Prog) {
var n *gc.Node
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/x86"
"fmt"
)
import "cmd/internal/gc"
// TODO(rsc): Can make this bigger if we move
// the text segment up higher in 6l for all GOOS.
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/x86"
"fmt"
)
import "cmd/internal/gc"
var gactive uint32
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/x86"
)
import "cmd/internal/gc"
var (
AX = RtoB(x86.REG_AX)
......
......@@ -31,10 +31,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/x86"
)
import "cmd/internal/gc"
const (
NREGVAR = 32
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/ld"
"cmd/internal/obj"
"fmt"
"log"
)
import "cmd/internal/ld"
func PADDR(x uint32) uint32 {
return x &^ 0x80000000
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/ld"
"cmd/internal/obj"
"fmt"
"log"
)
import "cmd/internal/ld"
// Reading object files.
......
......@@ -5,11 +5,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/i386"
"fmt"
)
import "cmd/internal/gc"
/*
* reg.c
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/i386"
)
import "cmd/internal/gc"
/*
* attempt to generate 64-bit
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/i386"
)
import "cmd/internal/gc"
var thechar int = '8'
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/i386"
)
import "cmd/internal/gc"
func defframe(ptxt *obj.Prog) {
var n *gc.Node
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/i386"
"fmt"
)
import "cmd/internal/gc"
// TODO(rsc): Can make this bigger if we move
// the text segment up higher in 8l for all GOOS.
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/i386"
"fmt"
)
import "cmd/internal/gc"
const (
REGEXT = 0
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/i386"
)
import "cmd/internal/gc"
var (
AX = RtoB(i386.REG_AX)
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/ld"
"cmd/internal/obj"
"fmt"
"log"
)
import "cmd/internal/ld"
func needlib(name string) int {
if name[0] == '\x00' {
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/ld"
"cmd/internal/obj"
"fmt"
"log"
)
import "cmd/internal/ld"
// Reading object files.
......
......@@ -5,11 +5,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/ppc64"
"fmt"
)
import "cmd/internal/gc"
/*
* peep.c
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/ppc64"
)
import "cmd/internal/gc"
var thechar int = '9'
......
......@@ -5,11 +5,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/ppc64"
"fmt"
)
import "cmd/internal/gc"
func defframe(ptxt *obj.Prog) {
var n *gc.Node
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/ppc64"
"fmt"
)
import "cmd/internal/gc"
// TODO(rsc): Can make this bigger if we move
// the text segment up higher in 6l for all GOOS.
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/ppc64"
"fmt"
)
import "cmd/internal/gc"
var gactive uint32
......
......@@ -5,10 +5,10 @@
package main
import (
"cmd/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/ppc64"
)
import "cmd/internal/gc"
const (
LeftRdwr uint32 = gc.LeftRead | gc.LeftWrite
......
......@@ -31,12 +31,12 @@
package main
import (
"cmd/internal/ld"
"cmd/internal/obj"
"encoding/binary"
"fmt"
"log"
)
import "cmd/internal/ld"
func needlib(name string) int {
if name[0] == '\x00' {
......
......@@ -31,11 +31,11 @@
package main
import (
"cmd/internal/ld"
"cmd/internal/obj"
"fmt"
"log"
)
import "cmd/internal/ld"
// Reading object files.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment