summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-09 18:09:53 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-09 18:09:53 +0000
commit67ba1f57ef6bafdcc0d5e43dbe5793367622977b (patch)
tree2be51ac0c0d2ab8042b16a9225e4d4826aac0051 /config
parentfcfcdc3bf91c638b610e7a5b8d4cd778773fe3a1 (diff)
downloadppe42-gcc-67ba1f57ef6bafdcc0d5e43dbe5793367622977b.tar.gz
ppe42-gcc-67ba1f57ef6bafdcc0d5e43dbe5793367622977b.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181224 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog4
-rw-r--r--config/asmcfi.m415
2 files changed, 19 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index 7737f99b2bd..4f202ffbc9a 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-09 Richard Henderson <rth@redhat.com>
+
+ * asmcfi.m4: New file.
+
2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* mh-interix (LIBGCC2_DEBUG_CFLAGS): Remove.
diff --git a/config/asmcfi.m4 b/config/asmcfi.m4
new file mode 100644
index 00000000000..a725aa11de4
--- /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
+])
OpenPOWER on IntegriCloud