gotest: only use [TD] on big-endian PPC64 non-AIX systems
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2018 20:40:27 +0000 (20:40 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2018 20:40:27 +0000 (20:40 +0000)
    Reviewed-on: https://go-review.googlesource.com/108457

From-SVN: r259531

gcc/go/gofrontend/MERGE
libgo/testsuite/gotest

index aeba5254fe61ff84ff972c7f747d440596b0f803..a97408ab7e6ea81f6da177e977ce61b42430141e 100644 (file)
@@ -1,4 +1,4 @@
-b367349d85f315e94e10ee2d76a7c6a46b993dcb
+7b37b9c3f9338a1387ee1e2301de89c3d2d87d2b
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 06848fdb1f0b0da0306c59af19c7c169508929d5..434c26de933eb773035fe847d0c6c9ac8617b892 100755 (executable)
@@ -506,9 +506,13 @@ localname() {
 
 {
        text="T"
-       case "$goarch" in
-       ppc64*) text="[TD]" ;;
-       esac
+
+       # On systems using PPC64 ELF ABI v1 function symbols show up
+       # as descriptors in the data section.  We assume that $goarch
+       # distinguishes v1 (ppc64) from v2 (ppc64le).
+       if test "$goos" != "aix" && test "$goarch" = "ppc64"; then
+           text="[TD]"
+       fi
 
        symtogo='sed -e s/_test\([^A-Za-z0-9]\)/XXXtest\1/ -e s/.*_\([^_]*\.\)/\1/ -e s/XXXtest/_test/'