node/deps/libffi/m4/asmcfi.m4
cjihrig 2a711f4b0c
lib,src,test,doc: add node:ffi module
PR-URL: https://github.com/nodejs/node/pull/62072
Co-authored-by: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
2026-05-05 16:19:27 +02:00

30 lines
900 B
Text

dnl ------------------------------------------------------------------
dnl Check whether the assembler understands .cfi_* pseudo-ops.
dnl ------------------------------------------------------------------
AC_DEFUN([GCC_AS_CFI_PSEUDO_OP],
[
AC_CACHE_CHECK([assembler .cfi pseudo-op support],
[gcc_cv_as_cfi_pseudo_op],
[ AC_LANG_PUSH([C])
AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([[
#ifdef _MSC_VER
Nope.
#endif
int foo (void)
{
__asm__ (".cfi_remember_state\n\t"
".cfi_restore_state\n\t");
return 0;
}
]])],
[gcc_cv_as_cfi_pseudo_op=yes],
[gcc_cv_as_cfi_pseudo_op=no])
AC_LANG_POP([C])
])
if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
AC_DEFINE([HAVE_AS_CFI_PSEUDO_OP], [1],
[Define if your assembler supports .cfi_* directives.])
fi
])