OSDN Git Service

PR target/26792
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jul 2006 21:07:15 +0000 (21:07 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jul 2006 21:07:15 +0000 (21:07 +0000)
* unwind_ipinfo.m4: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115653 138bc75d-0d04-0410-961f-82ee72b054a4

config/ChangeLog
config/unwind_ipinfo.m4 [new file with mode: 0644]

index 46070e8..8d34709 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-21  Steve Ellcey  <sje@cup.hp.com>
+
+       PR target/26792
+       * unwind_ipinfo.m4: New.
+
 2006-07-21  David Daney  <ddaney@avtrex.com>
 
        PR libgcj/28426
diff --git a/config/unwind_ipinfo.m4 b/config/unwind_ipinfo.m4
new file mode 100644 (file)
index 0000000..5587d9c
--- /dev/null
@@ -0,0 +1,22 @@
+dnl
+dnl Check whether _Unwind_GetIPInfo is available.
+dnl
+AC_DEFUN([GCC_CHECK_UNWIND_GETIPINFO], [
+  AC_LANG_SAVE
+  AC_LANG_CPLUSPLUS
+  ac_save_CXXFLAGS="$CXXFLAGS"
+  CXXFLAGS="$CXXFLAGS -fno-exceptions"
+  AC_MSG_CHECKING([for _Unwind_GetIPInfo])
+  AC_CACHE_VAL(gcc_cv_getipinfo, [
+  AC_TRY_LINK([extern "C" { extern void _Unwind_GetIPInfo(); }],
+      [_Unwind_GetIPInfo();],
+      [gcc_cv_getipinfo=yes],
+      [gcc_cv_getipinfo=no])
+  ])
+  if test $gcc_cv_getipinfo = yes; then
+    AC_DEFINE(HAVE_GETIPINFO, 1, [Define if _Unwind_GetIPInfo is available.])
+  fi
+  AC_MSG_RESULT($gcc_cv_getipinfo)
+  CXXFLAGS="$ac_save_CXXFLAGS"
+  AC_LANG_RESTORE
+])