Status: New
Owner: ----
New issue 8654 by
labo...@gmail.com: GOARCH values for
powerpc64/powerpc64le inconsistent between gccgo and gc
https://code.google.com/p/go/issues/detail?id=8654
I built the go tools were built from the dev.power64 branch of the google
code repository with some patches from
mi...@golang.org. I built gccgo
from trunk gcc trunk.
I ran my testcase on power8 BE & LE machines.
With gccgo the value for GOARCH on ppc64 and ppc64le machines is 'ppc64'.
With gc I get the GOARCH values 'power64' on the ppc64 machine
and 'power64le' on the ppc64le machine.
> What does 'go version' print?
~/gowork/go/bin/go version
go version devel +be0c14f62257 Mon Aug 18 22:24:15 2014 -0400 linux/power64
~/gowork/go/bin/go version
go version devel +be0c14f62257 Mon Aug 18 22:24:15 2014 -0400
linux/power64le
./gccgo --version
gccgo (GCC) 5.0.0 20140828 (experimental)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
./gccgo -o test_arch test_arch.go
./test_arch
arch: ppc64
(Same results on both power8 and power8LE machines)
> What steps reproduce the problem?
My testcase:
package main
import (
"fmt"
"runtime"
)
func main() {
fmt.Println("arch: ", runtime.GOARCH)
}
> What should have happened instead?
The GOARCH values for powerpc64 & powerp64le should be consistent between
gccgo and gc. If it isn't then go code which is written to test the GOARCH
value could behave differently with each go compiler.
Since gccgo has been using ppc64 for while now, that seems like the
preferred base name (instead of just power).
A related question is whether the GOARCH value for powerpc64 BE & LE
machines should be the same. I'm stating an opinion on that for now just
that however it is set it should be consistent.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings