Commit | Line | Data |
---|---|---|
acf89cab JM |
1 | ;; Cribbed from libffi |
2 | ||
3 | AC_DEFUN([GCC_AS_CFI_PSEUDO_OP], | |
4 | [AC_CACHE_CHECK([assembler .cfi pseudo-op support], | |
5 | gcc_cv_as_cfi_pseudo_op, [ | |
6 | gcc_cv_as_cfi_pseudo_op=unknown | |
7 | AC_TRY_COMPILE([asm (".cfi_startproc\n\t.cfi_endproc");],, | |
8 | [gcc_cv_as_cfi_pseudo_op=yes], | |
9 | [gcc_cv_as_cfi_pseudo_op=no]) | |
10 | ]) | |
11 | if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then | |
12 | AC_DEFINE(HAVE_AS_CFI_PSEUDO_OP, 1, | |
13 | [Define if your assembler supports .cfi_* directives.]) | |
14 | fi | |
15 | ]) |