mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 21:15:01 +08:00
4bdd090f8e
* asmcfi.m4: New file. * configure.ac (GCC_AS_CFI_PSEUDO_OP): Test it. * configure, aclocal.m4, config.h.in: Rebuild. * config/generic/asmcfi.h: New file. * config/x86/sjlj.S: Use it. From-SVN: r181224
16 lines
474 B
Plaintext
16 lines
474 B
Plaintext
;; Cribbed from libffi
|
|
|
|
AC_DEFUN([GCC_AS_CFI_PSEUDO_OP],
|
|
[AC_CACHE_CHECK([assembler .cfi pseudo-op support],
|
|
gcc_cv_as_cfi_pseudo_op, [
|
|
gcc_cv_as_cfi_pseudo_op=unknown
|
|
AC_TRY_COMPILE([asm (".cfi_startproc\n\t.cfi_endproc");],,
|
|
[gcc_cv_as_cfi_pseudo_op=yes],
|
|
[gcc_cv_as_cfi_pseudo_op=no])
|
|
])
|
|
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
|
|
])
|