Commit 3ec522bc1c1c5a7fb66b85d4fb6a0fe80581d597

dabrain34 2019-02-19T13:09:09

Fix cfi checks for old compiler (#453) cfi_sections can be unsupported when cfi_startproc and cfi_endproc are.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/m4/asmcfi.m4 b/m4/asmcfi.m4
index dbf73a0..3e28602 100644
--- a/m4/asmcfi.m4
+++ b/m4/asmcfi.m4
@@ -2,7 +2,7 @@ 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");],,
+    AC_TRY_COMPILE([asm (".cfi_sections\n\t.cfi_startproc\n\t.cfi_endproc");],,
 		   [gcc_cv_as_cfi_pseudo_op=yes],
 		   [gcc_cv_as_cfi_pseudo_op=no])
  ])