Skip to content

Commit 08d08e6

Browse files
authored
Merge pull request #2048 from hjelmn/pgi_asm
config: re-enable GCC inline ASM check for PGI
2 parents 39861ee + 795833b commit 08d08e6

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

config/opal_config_asm.m4

+17-23
Original file line numberDiff line numberDiff line change
@@ -848,34 +848,28 @@ AC_DEFUN([OPAL_CHECK_INLINE_C_GCC],[
848848
849849
AC_MSG_CHECKING([if $CC supports GCC inline assembly])
850850
851-
if test "$opal_cv_c_compiler_vendor" = "portland group" ; then
852-
# PGI seems to have some issues with our inline assembly.
853-
# Disable for now.
854-
asm_result="no (Portland Group)"
855-
else
856-
if test ! "$assembly" = "" ; then
857-
AC_RUN_IFELSE([AC_LANG_PROGRAM([
858-
AC_INCLUDES_DEFAULT],
859-
[[int ret = 1;
851+
if test ! "$assembly" = "" ; then
852+
AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],[[
853+
int ret = 1;
860854
int negone = -1;
861855
__asm__ __volatile__ ($assembly);
862-
return ret;]])],
863-
[asm_result="yes"], [asm_result="no"],
864-
[asm_result="unknown"])
865-
else
866-
assembly="test skipped - assuming no"
867-
fi
856+
return ret;
857+
]])],
858+
[asm_result="yes"], [asm_result="no"],
859+
[asm_result="unknown"])
860+
else
861+
assembly="test skipped - assuming no"
862+
fi
868863
869-
# if we're cross compiling, just try to compile and figure good enough
870-
if test "$asm_result" = "unknown" ; then
871-
AC_LINK_IFELSE([AC_LANG_PROGRAM([
872-
AC_INCLUDES_DEFAULT],
873-
[[int ret = 1;
864+
# if we're cross compiling, just try to compile and figure good enough
865+
if test "$asm_result" = "unknown" ; then
866+
AC_LINK_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],[[
867+
int ret = 1;
874868
int negone = -1;
875869
__asm__ __volatile__ ($assembly);
876-
return ret;]])],
877-
[asm_result="yes"], [asm_result="no"])
878-
fi
870+
return ret;
871+
]])],
872+
[asm_result="yes"], [asm_result="no"])
879873
fi
880874
881875
AC_MSG_RESULT([$asm_result])

0 commit comments

Comments
 (0)