The alignment of int64 is 8 everywhere except m68k, where the biggest alignment is 2, and x86-32, where the biggest field alignment is 4. This fixes all select tests on powerpc -m32.
Andreas. diff --git a/libgo/configure b/libgo/configure index 7a9df58c21..adabb74baa 100755 --- a/libgo/configure +++ b/libgo/configure @@ -13648,7 +13648,6 @@ case ${host} in GOARCH_FAMILY=ARM GOARCH_CACHELINESIZE=32 GOARCH_PCQUANTUM=4 - GOARCH_INT64ALIGN=4 GOARCH_MINFRAMESIZE=4 ;; i[34567]86-*-* | x86_64-*-*) @@ -13685,7 +13684,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext GOARCH_BIGENDIAN=1 GOARCH_CACHELINESIZE=16 GOARCH_PCQUANTUM=4 - GOARCH_INT64ALIGN=4 + GOARCH_INT64ALIGN=2 ;; mips*-*-*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13747,7 +13746,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext case "$mips_abi" in "o32" | "n32") GOARCH_FAMILY=MIPS - GOARCH_INT64ALIGN=4 GOARCH_MINFRAMESIZE=4 ;; "n64" | "o64") @@ -13778,7 +13776,6 @@ if ac_fn_c_try_compile "$LINENO"; then : GOARCH=ppc GOARCH_FAMILY=PPC GOARCH_BIGENDIAN=1 -GOARCH_INT64ALIGN=4 else @@ -13816,7 +13813,6 @@ _ACEOF if ac_fn_c_try_compile "$LINENO"; then : GOARCH=s390 GOARCH_FAMILY=S390 -GOARCH_INT64ALIGN=4 GOARCH_MINFRAMESIZE=4 else diff --git a/libgo/configure.ac b/libgo/configure.ac index ed2edd3b69..09add8d136 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -230,7 +230,6 @@ case ${host} in GOARCH_FAMILY=ARM GOARCH_CACHELINESIZE=32 GOARCH_PCQUANTUM=4 - GOARCH_INT64ALIGN=4 GOARCH_MINFRAMESIZE=4 ;; changequote(,)dnl @@ -262,7 +261,7 @@ GOARCH_HUGEPAGESIZE="1 << 21" GOARCH_BIGENDIAN=1 GOARCH_CACHELINESIZE=16 GOARCH_PCQUANTUM=4 - GOARCH_INT64ALIGN=4 + GOARCH_INT64ALIGN=2 ;; mips*-*-*) AC_COMPILE_IFELSE([ @@ -296,7 +295,6 @@ GOARCH_HUGEPAGESIZE="1 << 21" case "$mips_abi" in "o32" | "n32") GOARCH_FAMILY=MIPS - GOARCH_INT64ALIGN=4 GOARCH_MINFRAMESIZE=4 ;; "n64" | "o64") @@ -323,7 +321,6 @@ GOARCH_HUGEPAGESIZE="1 << 21" [GOARCH=ppc GOARCH_FAMILY=PPC GOARCH_BIGENDIAN=1 -GOARCH_INT64ALIGN=4 ], [ GOARCH_FAMILY=PPC64 @@ -347,7 +344,6 @@ GOARCH_BIGENDIAN=1 #endif], [GOARCH=s390 GOARCH_FAMILY=S390 -GOARCH_INT64ALIGN=4 GOARCH_MINFRAMESIZE=4 ], [GOARCH=s390x GOARCH_FAMILY=S390X -- 2.10.2 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."