Skip to content

Commit 6d7a7b2

Browse files
committed
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 #2044 Signed-off-by: Nathan Hjelm <[email protected]> (cherry picked from commit 795833b)
1 parent d4be138 commit 6d7a7b2

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

config/opal_config_asm.m4

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -738,34 +738,28 @@ AC_DEFUN([OPAL_CHECK_INLINE_C_GCC],[
738738
739739
AC_MSG_CHECKING([if $CC supports GCC inline assembly])
740740
741-
if test "$opal_cv_c_compiler_vendor" = "portland group" ; then
742-
# PGI seems to have some issues with our inline assembly.
743-
# Disable for now.
744-
asm_result="no (Portland Group)"
745-
else
746-
if test ! "$assembly" = "" ; then
747-
AC_RUN_IFELSE([AC_LANG_PROGRAM([
748-
AC_INCLUDES_DEFAULT],
749-
[[int ret = 1;
741+
if test ! "$assembly" = "" ; then
742+
AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],[[
743+
int ret = 1;
750744
int negone = -1;
751745
__asm__ __volatile__ ($assembly);
752-
return ret;]])],
753-
[asm_result="yes"], [asm_result="no"],
754-
[asm_result="unknown"])
755-
else
756-
assembly="test skipped - assuming no"
757-
fi
746+
return ret;
747+
]])],
748+
[asm_result="yes"], [asm_result="no"],
749+
[asm_result="unknown"])
750+
else
751+
assembly="test skipped - assuming no"
752+
fi
758753
759-
# if we're cross compiling, just try to compile and figure good enough
760-
if test "$asm_result" = "unknown" ; then
761-
AC_LINK_IFELSE([AC_LANG_PROGRAM([
762-
AC_INCLUDES_DEFAULT],
763-
[[int ret = 1;
754+
# if we're cross compiling, just try to compile and figure good enough
755+
if test "$asm_result" = "unknown" ; then
756+
AC_LINK_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],[[
757+
int ret = 1;
764758
int negone = -1;
765759
__asm__ __volatile__ ($assembly);
766-
return ret;]])],
767-
[asm_result="yes"], [asm_result="no"])
768-
fi
760+
return ret;
761+
]])],
762+
[asm_result="yes"], [asm_result="no"])
769763
fi
770764
771765
AC_MSG_RESULT([$asm_result])

0 commit comments

Comments
 (0)