diff options
author | dim <dim@FreeBSD.org> | 2010-11-01 19:35:33 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2010-11-01 19:35:33 +0000 |
commit | 3f5c947f4453c6016a2a6a9636367ee3f48fc6fc (patch) | |
tree | 461aafc934d462eb9b9221308f8e25238c0ada62 /contrib/binutils/config/unwind_ipinfo.m4 | |
parent | e6be3e7867eb43d220575baee2ce5662fb03e46c (diff) | |
parent | d0f678fa0ff3f08a4eca29daf4d1ac39797b6326 (diff) | |
download | FreeBSD-src-3f5c947f4453c6016a2a6a9636367ee3f48fc6fc.zip FreeBSD-src-3f5c947f4453c6016a2a6a9636367ee3f48fc6fc.tar.gz |
Merge ^/vendor/binutils/dist@214571 into contrib/binutils, which brings
us up to version 2.17.50.20070703, at the last GPLv2 commit.
Amongst others, this added upstream support for some FreeBSD-specific
things that we previously had to manually hack in, such as the OSABI
label support, and so on.
There are also quite a number of new files, some for cpu's (e.g. SPU)
that we may or may not be interested in, but those can be cleaned up
later on, if needed.
Diffstat (limited to 'contrib/binutils/config/unwind_ipinfo.m4')
-rw-r--r-- | contrib/binutils/config/unwind_ipinfo.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/binutils/config/unwind_ipinfo.m4 b/contrib/binutils/config/unwind_ipinfo.m4 new file mode 100644 index 0000000..5587d9c --- /dev/null +++ b/contrib/binutils/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 +]) |