aboutsummaryrefslogtreecommitdiff
path: root/config/asmcfi.m4
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-05-29 15:58:15 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-29 15:58:15 +0000
commitacf89cab13c1826d83dce1c7ae8ea805bc034bda (patch)
treea1f1fcdf3c48daf47cf314eafb313c85890bcaf4 /config/asmcfi.m4
parentd5531c88ee963bee9fbd5e90daab6424840a9058 (diff)
downloadgdb-acf89cab13c1826d83dce1c7ae8ea805bc034bda.zip
gdb-acf89cab13c1826d83dce1c7ae8ea805bc034bda.tar.gz
gdb-acf89cab13c1826d83dce1c7ae8ea805bc034bda.tar.bz2
Resync config/ from GCC.
Diffstat (limited to 'config/asmcfi.m4')
-rw-r--r--config/asmcfi.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/config/asmcfi.m4 b/config/asmcfi.m4
new file mode 100644
index 0000000..a725aa1
--- /dev/null
+++ b/config/asmcfi.m4
@@ -0,0 +1,15 @@
+;; 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
+])