| 1 |
dnl ------------------------------------------------------------------ |
| 2 |
dnl Check whether the assembler understands .cfi_* pseudo-ops. |
| 3 |
dnl ------------------------------------------------------------------ |
| 4 |
AC_DEFUN([GCC_AS_CFI_PSEUDO_OP], |
| 5 |
[ |
| 6 |
AC_CACHE_CHECK([assembler .cfi pseudo-op support], |
| 7 |
[gcc_cv_as_cfi_pseudo_op], |
| 8 |
[ AC_LANG_PUSH([C]) |
| 9 |
AC_COMPILE_IFELSE( |
| 10 |
[AC_LANG_SOURCE([[ |
| 11 |
#ifdef _MSC_VER |
| 12 |
Nope. |
| 13 |
#endif |
| 14 |
int foo (void) |
| 15 |
{ |
| 16 |
__asm__ (".cfi_remember_state\n\t" |
| 17 |
".cfi_restore_state\n\t"); |
| 18 |
return 0; |
| 19 |
} |
| 20 |
]])], |
| 21 |
[gcc_cv_as_cfi_pseudo_op=yes], |
| 22 |
[gcc_cv_as_cfi_pseudo_op=no]) |
| 23 |
AC_LANG_POP([C]) |
| 24 |
]) |
| 25 |
|
| 26 |
if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then |
| 27 |
AC_DEFINE([HAVE_AS_CFI_PSEUDO_OP], [1], |
| 28 |
[Define if your assembler supports .cfi_* directives.]) |
| 29 |
fi |
| 30 |
]) |