aboutsummaryrefslogtreecommitdiff
path: root/libitm/configure
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-11-09 10:09:53 -0800
committerRichard Henderson <rth@gcc.gnu.org>2011-11-09 10:09:53 -0800
commit4bdd090f8e0becf7191967e920aa1c9f9b796d1b (patch)
tree2be51ac0c0d2ab8042b16a9225e4d4826aac0051 /libitm/configure
parent29d281ca3a5cd40890ed826c6c6b8efe65ca266d (diff)
downloadgcc-4bdd090f8e0becf7191967e920aa1c9f9b796d1b.zip
gcc-4bdd090f8e0becf7191967e920aa1c9f9b796d1b.tar.gz
gcc-4bdd090f8e0becf7191967e920aa1c9f9b796d1b.tar.bz2
libitm: Configure for gas cfi pseudo ops.
* 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
Diffstat (limited to 'libitm/configure')
-rw-r--r--libitm/configure36
1 files changed, 36 insertions, 0 deletions
diff --git a/libitm/configure b/libitm/configure
index e6bc1aa..0f0ec1f 100644
--- a/libitm/configure
+++ b/libitm/configure
@@ -16908,6 +16908,42 @@ $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
fi
+# See if we can emit unwind info in the sjlj stub.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
+$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
+if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ gcc_cv_as_cfi_pseudo_op=unknown
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+asm (".cfi_startproc\n\t.cfi_endproc");
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ gcc_cv_as_cfi_pseudo_op=yes
+else
+ gcc_cv_as_cfi_pseudo_op=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
+$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
+ if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
+
+$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
+
+ fi
+
+
# Determine the proper ABI type for size_t.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5