diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-01 20:17:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-01 20:17:11 +0000 |
commit | 44ef03008c75059368245eb3dcd6054bed3f7643 (patch) | |
tree | b5bbe87fcb0616ef9758a0ce62e988d331f879cb /libgo/configure | |
parent | 1b28253347dedba72abaf81e86b1812863d07a11 (diff) | |
download | gcc-44ef03008c75059368245eb3dcd6054bed3f7643.zip gcc-44ef03008c75059368245eb3dcd6054bed3f7643.tar.gz gcc-44ef03008c75059368245eb3dcd6054bed3f7643.tar.bz2 |
libgo: support x32 as GOARCH=amd64p32 GOOS=linux
This is enough to let libgo build when configured using
--with-multilib-list=m64,m32,mx32. I don't have an x32-enabled kernel
so I haven't tested whether it executes correctly.
For https://gcc.gnu.org/PR87470
Reviewed-on: https://go-review.googlesource.com/138817
From-SVN: r264772
Diffstat (limited to 'libgo/configure')
-rwxr-xr-x | libgo/configure | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/configure b/libgo/configure index 7166f94..f7996e1 100755 --- a/libgo/configure +++ b/libgo/configure @@ -13685,7 +13685,19 @@ _ACEOF if ac_fn_c_try_compile "$LINENO"; then : GOARCH=386 else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifdef __ILP32__ +#error x32 +#endif +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : GOARCH=amd64 +else + GOARCH=amd64p32 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; |