mirror of git://gcc.gnu.org/git/gcc.git
parent
3c16cf8517
commit
85a0921018
|
|
@ -629,8 +629,14 @@ LIBGO_IS_PPC64_FALSE
|
||||||
LIBGO_IS_PPC64_TRUE
|
LIBGO_IS_PPC64_TRUE
|
||||||
LIBGO_IS_PPC_FALSE
|
LIBGO_IS_PPC_FALSE
|
||||||
LIBGO_IS_PPC_TRUE
|
LIBGO_IS_PPC_TRUE
|
||||||
LIBGO_IS_MIPS64_FALSE
|
LIBGO_IS_MIPSO64_FALSE
|
||||||
LIBGO_IS_MIPS64_TRUE
|
LIBGO_IS_MIPSO64_TRUE
|
||||||
|
LIBGO_IS_MIPSN64_FALSE
|
||||||
|
LIBGO_IS_MIPSN64_TRUE
|
||||||
|
LIBGO_IS_MIPSN32_FALSE
|
||||||
|
LIBGO_IS_MIPSN32_TRUE
|
||||||
|
LIBGO_IS_MIPSO32_FALSE
|
||||||
|
LIBGO_IS_MIPSO32_TRUE
|
||||||
LIBGO_IS_MIPS_FALSE
|
LIBGO_IS_MIPS_FALSE
|
||||||
LIBGO_IS_MIPS_TRUE
|
LIBGO_IS_MIPS_TRUE
|
||||||
LIBGO_IS_M68K_FALSE
|
LIBGO_IS_M68K_FALSE
|
||||||
|
|
@ -10904,7 +10910,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 10907 "configure"
|
#line 10913 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -11010,7 +11016,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 11013 "configure"
|
#line 11019 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
|
@ -13285,8 +13291,7 @@ fi
|
||||||
is_386=no
|
is_386=no
|
||||||
is_arm=no
|
is_arm=no
|
||||||
is_m68k=no
|
is_m68k=no
|
||||||
is_mips=no
|
mips_abi=""
|
||||||
is_mips64=no
|
|
||||||
is_ppc=no
|
is_ppc=no
|
||||||
is_ppc64=no
|
is_ppc64=no
|
||||||
is_sparc=no
|
is_sparc=no
|
||||||
|
|
@ -13326,21 +13331,59 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
||||||
#ifdef __mips64
|
#if _MIPS_SIM != _ABIO32
|
||||||
#error 64-bit
|
#error not o32
|
||||||
#endif
|
#endif
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
is_mips=yes
|
mips_abi="o32"
|
||||||
else
|
else
|
||||||
is_mips64=yes
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
#if _MIPS_SIM != _ABIN32
|
||||||
|
#error not n32
|
||||||
|
#endif
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
|
mips_abi="n32"
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
#if _MIPS_SIM != _ABI64
|
||||||
|
#error not n64
|
||||||
|
#endif
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
|
mips_abi="n64"
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
#if _MIPS_SIM != _ABIO64
|
||||||
|
#error not o64
|
||||||
|
#endif
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
|
mips_abi="o64"
|
||||||
|
else
|
||||||
|
as_fn_error "unknown MIPS ABI" "$LINENO" 5
|
||||||
|
mips_abi="n32"
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
if test "$is_mips" = "yes"; then
|
fi
|
||||||
GOARCH=mips
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
else
|
fi
|
||||||
GOARCH=mips64
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
fi
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
|
case "$mips_abi" in
|
||||||
|
"o32") GOARCH=mipso32 ;;
|
||||||
|
"n32") GOARCH=mipsn32 ;;
|
||||||
|
"n64") GOARCH=mipsn64 ;;
|
||||||
|
"o64") GOARCH=mipso64 ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
rs6000*-*-* | powerpc*-*-*)
|
rs6000*-*-* | powerpc*-*-*)
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
|
@ -13407,7 +13450,7 @@ else
|
||||||
LIBGO_IS_M68K_FALSE=
|
LIBGO_IS_M68K_FALSE=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $is_mips = yes; then
|
if test $mips_abi != ""; then
|
||||||
LIBGO_IS_MIPS_TRUE=
|
LIBGO_IS_MIPS_TRUE=
|
||||||
LIBGO_IS_MIPS_FALSE='#'
|
LIBGO_IS_MIPS_FALSE='#'
|
||||||
else
|
else
|
||||||
|
|
@ -13415,12 +13458,36 @@ else
|
||||||
LIBGO_IS_MIPS_FALSE=
|
LIBGO_IS_MIPS_FALSE=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $is_mips64 = yes; then
|
if test $mips_abi = o32; then
|
||||||
LIBGO_IS_MIPS64_TRUE=
|
LIBGO_IS_MIPSO32_TRUE=
|
||||||
LIBGO_IS_MIPS64_FALSE='#'
|
LIBGO_IS_MIPSO32_FALSE='#'
|
||||||
else
|
else
|
||||||
LIBGO_IS_MIPS64_TRUE='#'
|
LIBGO_IS_MIPSO32_TRUE='#'
|
||||||
LIBGO_IS_MIPS64_FALSE=
|
LIBGO_IS_MIPSO32_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $mips_abi = n32; then
|
||||||
|
LIBGO_IS_MIPSN32_TRUE=
|
||||||
|
LIBGO_IS_MIPSN32_FALSE='#'
|
||||||
|
else
|
||||||
|
LIBGO_IS_MIPSN32_TRUE='#'
|
||||||
|
LIBGO_IS_MIPSN32_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $mips_abi = n64; then
|
||||||
|
LIBGO_IS_MIPSN64_TRUE=
|
||||||
|
LIBGO_IS_MIPSN64_FALSE='#'
|
||||||
|
else
|
||||||
|
LIBGO_IS_MIPSN64_TRUE='#'
|
||||||
|
LIBGO_IS_MIPSN64_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $mips_abi = o64; then
|
||||||
|
LIBGO_IS_MIPSO64_TRUE=
|
||||||
|
LIBGO_IS_MIPSO64_FALSE='#'
|
||||||
|
else
|
||||||
|
LIBGO_IS_MIPSO64_TRUE='#'
|
||||||
|
LIBGO_IS_MIPSO64_FALSE=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $is_ppc = yes; then
|
if test $is_ppc = yes; then
|
||||||
|
|
@ -14541,8 +14608,20 @@ if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
|
||||||
as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
|
as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
|
if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
|
||||||
as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
|
as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
|
if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
|
||||||
|
|
|
||||||
|
|
@ -139,8 +139,7 @@ dnl N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
|
||||||
is_386=no
|
is_386=no
|
||||||
is_arm=no
|
is_arm=no
|
||||||
is_m68k=no
|
is_m68k=no
|
||||||
is_mips=no
|
mips_abi=""
|
||||||
is_mips64=no
|
|
||||||
is_ppc=no
|
is_ppc=no
|
||||||
is_ppc64=no
|
is_ppc64=no
|
||||||
is_sparc=no
|
is_sparc=no
|
||||||
|
|
@ -172,15 +171,33 @@ changequote([,])dnl
|
||||||
;;
|
;;
|
||||||
mips*-*-*)
|
mips*-*-*)
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
#ifdef __mips64
|
#if _MIPS_SIM != _ABIO32
|
||||||
#error 64-bit
|
#error not o32
|
||||||
#endif],
|
#endif],
|
||||||
[is_mips=yes], [is_mips64=yes])
|
[mips_abi="o32"],
|
||||||
if test "$is_mips" = "yes"; then
|
[AC_COMPILE_IFELSE([
|
||||||
GOARCH=mips
|
#if _MIPS_SIM != _ABIN32
|
||||||
else
|
#error not n32
|
||||||
GOARCH=mips64
|
#endif],
|
||||||
fi
|
[mips_abi="n32"],
|
||||||
|
[AC_COMPILE_IFELSE([
|
||||||
|
#if _MIPS_SIM != _ABI64
|
||||||
|
#error not n64
|
||||||
|
#endif],
|
||||||
|
[mips_abi="n64"],
|
||||||
|
[AC_COMPILE_IFELSE([
|
||||||
|
#if _MIPS_SIM != _ABIO64
|
||||||
|
#error not o64
|
||||||
|
#endif],
|
||||||
|
[mips_abi="o64"],
|
||||||
|
[AC_MSG_ERROR([unknown MIPS ABI])
|
||||||
|
[mips_abi="n32"]])])])])
|
||||||
|
case "$mips_abi" in
|
||||||
|
"o32") GOARCH=mipso32 ;;
|
||||||
|
"n32") GOARCH=mipsn32 ;;
|
||||||
|
"n64") GOARCH=mipsn64 ;;
|
||||||
|
"o64") GOARCH=mipso64 ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
rs6000*-*-* | powerpc*-*-*)
|
rs6000*-*-* | powerpc*-*-*)
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
|
|
@ -210,8 +227,11 @@ esac
|
||||||
AM_CONDITIONAL(LIBGO_IS_386, test $is_386 = yes)
|
AM_CONDITIONAL(LIBGO_IS_386, test $is_386 = yes)
|
||||||
AM_CONDITIONAL(LIBGO_IS_ARM, test $is_arm = yes)
|
AM_CONDITIONAL(LIBGO_IS_ARM, test $is_arm = yes)
|
||||||
AM_CONDITIONAL(LIBGO_IS_M68K, test $is_m68k = yes)
|
AM_CONDITIONAL(LIBGO_IS_M68K, test $is_m68k = yes)
|
||||||
AM_CONDITIONAL(LIBGO_IS_MIPS, test $is_mips = yes)
|
AM_CONDITIONAL(LIBGO_IS_MIPS, test $mips_abi != "")
|
||||||
AM_CONDITIONAL(LIBGO_IS_MIPS64, test $is_mips64 = yes)
|
AM_CONDITIONAL(LIBGO_IS_MIPSO32, test $mips_abi = o32)
|
||||||
|
AM_CONDITIONAL(LIBGO_IS_MIPSN32, test $mips_abi = n32)
|
||||||
|
AM_CONDITIONAL(LIBGO_IS_MIPSN64, test $mips_abi = n64)
|
||||||
|
AM_CONDITIONAL(LIBGO_IS_MIPSO64, test $mips_abi = o64)
|
||||||
AM_CONDITIONAL(LIBGO_IS_PPC, test $is_ppc = yes)
|
AM_CONDITIONAL(LIBGO_IS_PPC, test $is_ppc = yes)
|
||||||
AM_CONDITIONAL(LIBGO_IS_PPC64, test $is_ppc64 = yes)
|
AM_CONDITIONAL(LIBGO_IS_PPC64, test $is_ppc64 = yes)
|
||||||
AM_CONDITIONAL(LIBGO_IS_SPARC, test $is_sparc = yes)
|
AM_CONDITIONAL(LIBGO_IS_SPARC, test $is_sparc = yes)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue