From: Alastair McKinstry Date: Thu, 22 Jun 2017 21:46:24 +0000 (+0100) Subject: x32 X-Git-Tag: archive/raspbian/2.1.1-7+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7fc360c6cf3f7e0f3177fad91a05df66cfee34bf;p=openmpi.git x32 =================================================================== Gbp-Pq: Name x32.patch --- diff --git a/config/opal_config_asm.m4 b/config/opal_config_asm.m4 index bb2b9c47..0aa88949 100644 --- a/config/opal_config_asm.m4 +++ b/config/opal_config_asm.m4 @@ -1004,6 +1004,14 @@ AC_DEFUN([OPAL_CONFIG_ASM],[ OPAL_GCC_INLINE_ASSIGN="" OPAL_ASM_SUPPORT_64BIT=0 case "${host}" in + x86_64-*x32) + # Note sizeof(long) = 4 + opal_cv_asm_arch="X86_64" + OPAL_ASM_SUPPORT_64BIT=1 + OPAL_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)' + OPAL_CHECK_CMPXCHG16B + ;; + i?86-*|x86_64*|amd64*) if test "$ac_cv_sizeof_long" = "4" ; then opal_cv_asm_arch="IA32"