* PGI 6.1 kind of (but not completely) supports GCC inline assembly. Previous
versions didn't even make an attempt. Disable the not-quite-right issues inline assembly support with PGI 6.1. This commit was SVN r9240.
Этот коммит содержится в:
родитель
bbfd10fb39
Коммит
b57a6b4a62
@ -523,35 +523,41 @@ AC_DEFUN([OMPI_CHECK_INLINE_C_GCC],[
|
|||||||
|
|
||||||
AC_MSG_CHECKING([if $CC supports GCC inline assembly])
|
AC_MSG_CHECKING([if $CC supports GCC inline assembly])
|
||||||
|
|
||||||
case $host in
|
if test "$ompi_cv_c_compiler_vendor" = "portland group" ; then
|
||||||
*-aix*)
|
# PGI seems to have some issues with our inline assembly.
|
||||||
# the AIX compilers and linkers really don't do gcc
|
# Disable for now.
|
||||||
# inline assembly right - disable for now.
|
asm_result="no (Portland Group)"
|
||||||
asm_result="no (AIX)"
|
else
|
||||||
;;
|
case $host in
|
||||||
*)
|
*-aix*)
|
||||||
if test ! "$assembly" = "" ; then
|
# the AIX compilers and linkers really don't do gcc
|
||||||
AC_RUN_IFELSE(AC_LANG_PROGRAM([[
|
# inline assembly right - disable for now.
|
||||||
|
asm_result="no (AIX)"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if test ! "$assembly" = "" ; then
|
||||||
|
AC_RUN_IFELSE(AC_LANG_PROGRAM([[
|
||||||
AC_INCLUDES_DEFAULT]],
|
AC_INCLUDES_DEFAULT]],
|
||||||
[[int ret = 1;
|
[[int ret = 1;
|
||||||
__asm__ __volatile__ ($assembly);
|
__asm__ __volatile__ ($assembly);
|
||||||
return ret;]]),
|
return ret;]]),
|
||||||
[asm_result="yes"], [asm_result="no"],
|
[asm_result="yes"], [asm_result="no"],
|
||||||
[asm_result="unknown"])
|
[asm_result="unknown"])
|
||||||
else
|
else
|
||||||
assembly="test skipped - assuming no"
|
assembly="test skipped - assuming no"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# 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;
|
||||||
__asm__ __volatile__ ($assembly);
|
__asm__ __volatile__ ($assembly);
|
||||||
return ret;]]),
|
return ret;]]),
|
||||||
[asm_result="yes"], [asm_result="no"])
|
[asm_result="yes"], [asm_result="no"])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_RESULT([$asm_result])
|
AC_MSG_RESULT([$asm_result])
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user