mirror of
https://github.com/golang/go
synced 2024-11-12 05:30:21 -07:00
cmd/7g: fix build breakage
Update cmd/7g to match the other compilers. Fixes build break in rev 6582d1cf8
.
Change-Id: I449613cf348254e9de6cc7a6b7737e43ea7d10fe
Reviewed-on: https://go-review.googlesource.com/7580
Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
6582d1cf8b
commit
211df1de12
@ -76,7 +76,7 @@ func zerorange(p *obj.Prog, frame int64, lo int64, hi int64) *obj.Prog {
|
||||
p.Reg = ppc64.REGSP
|
||||
p = appendpp(p, obj.ADUFFZERO, obj.TYPE_NONE, 0, 0, obj.TYPE_MEM, 0, 0)
|
||||
f := gc.Sysfunc("duffzero")
|
||||
p.To = gc.Naddr(f, 1)
|
||||
p.To = gc.Naddr(f)
|
||||
gc.Afunclit(&p.To, f)
|
||||
p.To.Offset = 4 * (128 - cnt/int64(gc.Widthptr))
|
||||
} else {
|
||||
|
@ -700,10 +700,10 @@ func gins(as int, f *gc.Node, t *gc.Node) *obj.Prog {
|
||||
|
||||
at := obj.Addr(obj.Addr{})
|
||||
if f != nil {
|
||||
af = gc.Naddr(f, 1)
|
||||
af = gc.Naddr(f)
|
||||
}
|
||||
if t != nil {
|
||||
at = gc.Naddr(t, 1)
|
||||
at = gc.Naddr(t)
|
||||
}
|
||||
p := (*obj.Prog)(gc.Prog(as))
|
||||
if f != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user