diff options
author | Russ Cox <rsc@golang.org> | 2014-12-05 19:13:20 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-12-05 19:13:20 -0500 |
commit | ffc214da93bb6958b83ded0eff1bd2de21e82431 (patch) | |
tree | ab17ef2c8f58390603cf2772d4905ca90e861b54 /src/cmd/9g | |
parent | 2c77ac0cd1a89e7966203f8f519a92fa19f0d66d (diff) | |
download | go-ffc214da93bb6958b83ded0eff1bd2de21e82431.tar.gz |
all: power64 is now ppc64
Fixes issue 8654.
LGTM=austin
R=austin
CC=golang-codereviews
https://codereview.appspot.com/180600043
Diffstat (limited to 'src/cmd/9g')
-rw-r--r-- | src/cmd/9g/doc.go | 6 | ||||
-rw-r--r-- | src/cmd/9g/galign.c | 8 | ||||
-rw-r--r-- | src/cmd/9g/ggen.c | 6 | ||||
-rw-r--r-- | src/cmd/9g/peep.c | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/cmd/9g/doc.go b/src/cmd/9g/doc.go index 200be2eda..56bb14344 100644 --- a/src/cmd/9g/doc.go +++ b/src/cmd/9g/doc.go @@ -6,9 +6,9 @@ /* -9g is the version of the gc compiler for the Power64. -The $GOARCH for these tools is power64 (big endian) or -power64le (little endian). +9g is the version of the gc compiler for 64-bit PowerPC or Power Architecture processors. +The $GOARCH for these tools is ppc64 (big endian) or +ppc64le (little endian). It reads .go files and outputs .9 files. The flags are documented in ../gc/doc.go. diff --git a/src/cmd/9g/galign.c b/src/cmd/9g/galign.c index 97a5a5d06..67514faa4 100644 --- a/src/cmd/9g/galign.c +++ b/src/cmd/9g/galign.c @@ -7,17 +7,17 @@ #include "gg.h" int thechar = '9'; -char* thestring = "power64"; +char* thestring = "ppc64"; LinkArch* thelinkarch; void linkarchinit(void) { thestring = getgoarch(); - if(strcmp(thestring, "power64le") == 0) - thelinkarch = &linkpower64le; + if(strcmp(thestring, "ppc64le") == 0) + thelinkarch = &linkppc64le; else - thelinkarch = &linkpower64; + thelinkarch = &linkppc64; } vlong MAXWIDTH = 1LL<<50; diff --git a/src/cmd/9g/ggen.c b/src/cmd/9g/ggen.c index 7d9cf5050..f08c263c2 100644 --- a/src/cmd/9g/ggen.c +++ b/src/cmd/9g/ggen.c @@ -212,8 +212,8 @@ ginscall(Node *f, int proc) // However, the stack trace code will show the line // of the instruction byte before the return PC. // To avoid that being an unrelated instruction, - // insert a Power64 NOP that we will have the right line number. - // Power64 NOP is really or r0, r0, r0; use that description + // insert a ppc64 NOP that we will have the right line number. + // The ppc64 NOP is really or r0, r0, r0; use that description // because the NOP pseudo-instruction would be removed by // the linker. nodreg(®, types[TINT], D_R0); @@ -953,7 +953,7 @@ clearfat(Node *nl) f = sysfunc("duffzero"); p = gins(ADUFFZERO, N, f); afunclit(&p->to, f); - // 4 and 128 = magic constants: see ../../runtime/asm_power64x.s + // 4 and 128 = magic constants: see ../../runtime/asm_ppc64x.s p->to.offset = 4*(128-q); // duffzero leaves R3 on the last zeroed dword boff = 8; diff --git a/src/cmd/9g/peep.c b/src/cmd/9g/peep.c index 1f430220e..4e636b148 100644 --- a/src/cmd/9g/peep.c +++ b/src/cmd/9g/peep.c @@ -935,7 +935,7 @@ copyau1(Prog *p, Addr *v) } // copysub replaces v with s in a if f!=0 or indicates it if could if f==0. -// Returns 1 on failure to substitute (it always succeeds on power64). +// Returns 1 on failure to substitute (it always succeeds on ppc64). static int copysub(Addr *a, Addr *v, Addr *s, int f) { @@ -946,7 +946,7 @@ copysub(Addr *a, Addr *v, Addr *s, int f) } // copysub1 replaces v with s in p1->reg if f!=0 or indicates if it could if f==0. -// Returns 1 on failure to substitute (it always succeeds on power64). +// Returns 1 on failure to substitute (it always succeeds on ppc64). static int copysub1(Prog *p1, Addr *v, Addr *s, int f) { |