mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.cc] cmd/internal/obj, cmd/internal/gc, new6g: reconvert
Reconvert using rsc.io/c2go rev 27b3f59. Changes to converter: - fatal does not return, so no fallthrough after fatal in switch - many more function results and variables identified as bool - simplification of negated boolean expressions Change-Id: I3bc67da5e46cb7ee613e230cf7e9533036cc870b Reviewed-on: https://go-review.googlesource.com/5171 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
786825c5e8
commit
dc7b54bed2
67 changed files with 2410 additions and 2509 deletions
|
|
@ -17,8 +17,6 @@ var Framepointer_enabled int
|
|||
|
||||
var Fieldtrack_enabled int
|
||||
|
||||
var Zprog Prog
|
||||
|
||||
// Toolchain experiments.
|
||||
// These are controlled by the GOEXPERIMENT environment
|
||||
// variable recorded when the toolchain is built.
|
||||
|
|
@ -72,11 +70,11 @@ func double2ieee(ieee *uint64, f float64) {
|
|||
|
||||
func Nopout(p *Prog) {
|
||||
p.As = ANOP
|
||||
p.Scond = Zprog.Scond
|
||||
p.From = Zprog.From
|
||||
p.From3 = Zprog.From3
|
||||
p.Reg = Zprog.Reg
|
||||
p.To = Zprog.To
|
||||
p.Scond = 0
|
||||
p.From = Addr{}
|
||||
p.From3 = Addr{}
|
||||
p.Reg = 0
|
||||
p.To = Addr{}
|
||||
}
|
||||
|
||||
func Nocache(p *Prog) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue