aboutsummaryrefslogtreecommitdiff
path: root/config/unwind_ipinfo.m4
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2006-07-25 08:32:44 +0000
committerPaolo Bonzini <bonzini@gnu.org>2006-07-25 08:32:44 +0000
commit1dc60eebce6d04bbb9da9b9816eef63f9d682d12 (patch)
tree9a6fc0911e97da761f721a015f9986af74468669 /config/unwind_ipinfo.m4
parentab5c9f60b7114072882b15531228a1ec8ce4bafd (diff)
downloadgdb-1dc60eebce6d04bbb9da9b9816eef63f9d682d12.zip
gdb-1dc60eebce6d04bbb9da9b9816eef63f9d682d12.tar.gz
gdb-1dc60eebce6d04bbb9da9b9816eef63f9d682d12.tar.bz2
2006-07-25 Paolo Bonzini <bonzini@gnu.org>
PR build/26188 * stdint.m4: Test for uintptr_t even on systems with uint64_t or uint32_t. Sync from GCC 2006-07-21 Steve Ellcey <sje@cup.hp.com> PR target/26792 * unwind_ipinfo.m4: New.
Diffstat (limited to 'config/unwind_ipinfo.m4')
-rw-r--r--config/unwind_ipinfo.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/config/unwind_ipinfo.m4 b/config/unwind_ipinfo.m4
new file mode 100644
index 0000000..5587d9c
--- /dev/null
+++ b/config/unwind_ipinfo.m4
@@ -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
+])