]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
go-test.exp (go-set-goarch): Recognize powerpc*-*-*.
authorIan Lance Taylor <iant@google.com>
Fri, 20 Apr 2012 20:18:49 +0000 (20:18 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2012 20:18:49 +0000 (20:18 +0000)
* go.test/go-test.exp (go-set-goarch): Recognize powerpc*-*-*.
(go-gc-tests): Skip nilptr.go on powerpc*-*-*.

From-SVN: r186642

gcc/testsuite/ChangeLog
gcc/testsuite/go.test/go-test.exp

index 33646eeff681828080f022fa29c0c817bbb8be28..d0ceb140a2129ace64eb3b50fb7fed2850a8d4f2 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-20  Ian Lance Taylor  <iant@google.com>
+
+       * go.test/go-test.exp (go-set-goarch): Recognize powerpc*-*-*.
+       (go-gc-tests): Skip nilptr.go on powerpc*-*-*.
+
 2012-04-20  Uros Bizjak  <ubizjak@gmail.com>
 
        * gcc.target/x86_64/abi/avx/test_passing_unions.c: Avoid undefined
index c55924431d33467fffefed58ac16d7aaee2fa704..943a7f1a1a72f0f352f13cfbe3c33ecd676b1944 100644 (file)
@@ -217,6 +217,13 @@ proc go-set-goarch { } {
                return ""
            }
        }
+       "powerpc*-*-*" {
+           if [check_effective_target_ilp32] {
+               set goarch "ppc"
+           } else {
+               set goarch "ppc64"
+           }
+       }
        "sparc*-*-*" {
            if [check_effective_target_ilp32] {
                set goarch "sparc"
@@ -302,7 +309,7 @@ proc go-gc-tests { } {
        }
 
        # Handle certain tests in a target-dependant way.
-       if { [istarget "alpha*-*-*"] || [istarget "sparc*-*-solaris*"] } {
+       if { [istarget "alpha*-*-*"] || [istarget "sparc*-*-solaris*"] || [istarget "powerpc*-*-*"] } {
            if { [string match "*go.test/test/nilptr.go" $test] } {
                untested $test
                continue