1
1

config: re-enable GCC inline ASM check for PGI

We disabled this support a long time ago. Probably safe to assume
whatever bug we were working around no longer exists.

Closes open-mpi/ompi#2044

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Этот коммит содержится в:
Nathan Hjelm 2016-09-02 12:44:08 -06:00
родитель 5c9ea565b6
Коммит 795833bfac

Просмотреть файл

@ -848,34 +848,28 @@ AC_DEFUN([OPAL_CHECK_INLINE_C_GCC],[
AC_MSG_CHECKING([if $CC supports GCC inline assembly]) AC_MSG_CHECKING([if $CC supports GCC inline assembly])
if test "$opal_cv_c_compiler_vendor" = "portland group" ; then if test ! "$assembly" = "" ; then
# PGI seems to have some issues with our inline assembly. AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],[[
# Disable for now. int ret = 1;
asm_result="no (Portland Group)" int negone = -1;
__asm__ __volatile__ ($assembly);
return ret;
]])],
[asm_result="yes"], [asm_result="no"],
[asm_result="unknown"])
else else
if test ! "$assembly" = "" ; then assembly="test skipped - assuming no"
AC_RUN_IFELSE([AC_LANG_PROGRAM([ fi
AC_INCLUDES_DEFAULT],
[[int ret = 1;
int negone = -1;
__asm__ __volatile__ ($assembly);
return ret;]])],
[asm_result="yes"], [asm_result="no"],
[asm_result="unknown"])
else
assembly="test skipped - assuming no"
fi
# if we're cross compiling, just try to compile and figure good enough # if we're cross compiling, just try to compile and figure good enough
if test "$asm_result" = "unknown" ; then if test "$asm_result" = "unknown" ; then
AC_LINK_IFELSE([AC_LANG_PROGRAM([ AC_LINK_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],[[
AC_INCLUDES_DEFAULT], int ret = 1;
[[int ret = 1;
int negone = -1; int negone = -1;
__asm__ __volatile__ ($assembly); __asm__ __volatile__ ($assembly);
return ret;]])], return ret;
[asm_result="yes"], [asm_result="no"]) ]])],
fi [asm_result="yes"], [asm_result="no"])
fi fi
AC_MSG_RESULT([$asm_result]) AC_MSG_RESULT([$asm_result])