This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Set goarch to ppc64le where needed for gccgo testing
- From: "Lynn A. Boger" <laboger at linux dot vnet dot ibm dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Ian Taylor <iant at golang dot org>
- Date: Wed, 19 Nov 2014 14:55:46 -0600
- Subject: Re: [PATCH] Set goarch to ppc64le where needed for gccgo testing
- Authentication-results: sourceware.org; auth=none
- References: <546CB0CF dot 20005 at linux dot vnet dot ibm dot com>
Updated patch:
Index: gcc/testsuite/go.test/go-test.exp
===================================================================
--- gcc/testsuite/go.test/go-test.exp (revision 217768)
+++ gcc/testsuite/go.test/go-test.exp (working copy)
@@ -241,7 +241,11 @@ proc go-set-goarch { } {
if [check_effective_target_ilp32] {
set goarch "ppc"
} else {
- set goarch "ppc64"
+ if [istarget "powerpc64le-*-*"] {
+ set goarch "ppc64le"
+ } else {
+ set goarch "ppc64"
+ }
}
}
"s390-*-*" {
On 11/19/2014 09:01 AM, Lynn A. Boger wrote:
Hi,
This change goes along with the change to the GOARCH setting in gccgo
for ppc64le which will be done in gofrontend. The description for
that change is here:
https://groups.google.com/forum/#!topic/gofrontend-dev/ocEttrpsw-s
This change has been bootstrapped and tested along with the above
change to gofrontend on ppc, ppc64, and ppc64le.
2014-11-19 Lynn Boger <laboger@linux.vnet.ibm.com>
* gcc/testsuite/go.test/go-test.exp: Add case for ppc64le
goarch value for go testing
Index: gcc/testsuite/go.test/go-test.exp
===================================================================
--- gcc/testsuite/go.test/go-test.exp (revision 217507)
+++ gcc/testsuite/go.test/go-test.exp (working copy)
@@ -237,13 +237,15 @@ proc go-set-goarch { } {
return ""
}
}
- "powerpc*-*-*" {
- if [check_effective_target_ilp32] {
- set goarch "ppc"
- } else {
- set goarch "ppc64"
- }
+ "powerpc-*-*" {
+ set goarch "ppc"
}
+ "powerpc64-*-*" {
+ set goarch "ppc64"
+ }
+ "powerpc64le-*-*" {
+ set goarch "ppc64le"
+ }
"s390-*-*" {
set goarch "s390"
}