PR target/27880: Fix static linking on ia64
Steve Ellcey
sje@cup.hp.com
Mon Jun 19 18:41:00 GMT 2006
> This patch restores static linking on ia64 with system libunwind by adding
> unwind-compat to the static libgcc. Tested on ia64-linux.
>
> Andreas.
>
> 2006-06-19 Andreas Schwab <schwab@suse.de>
>
> PR target/27880
> * unwind-compat.c: Wrap everything except _Unwind_GetIPInfo inside
> SHARED.
> * config/t-libunwind (LIB2ADDEHSTATIC): Add
> $(srcdir)/unwind-compat.c.
I was just testing a patch that would have the libstdc++-v3 configure
script check for _Unwind_GetIPInfo, does this patch make that idea
uneeded?
I was going to try putting the following function in
libstdc++-v3/acinclude.m4:
dnl
dnl Check whether _Unwind_GetIPInfo is available.
dnl
AC_DEFUN([GLIBCXX_CHECK_UNWIND_GETIPINFO], [
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for _Unwind_GetIPInfo])
AC_CACHE_VAL(glibcxx_cv_getipinfo, [
AC_TRY_LINK([#include <unwind.h>],
[_Unwind_Ptr u = _Unwind_GetIPInfo();],
[glibcxx_cv_getipinfo=yes],
[glibcxx_cv_getipinfo=no])
])
if test $glibcxx_cv_getipinfo = yes; then
AC_DEFINE(_GLIBCXX_USE_GETIPINFO, 1, [Define if _Unwind_GetIPInfo is available.])
fi
AC_MSG_RESULT($glibcxx_cv_getipinfo)
AC_LANG_RESTORE
])
Steve Ellcey
sje@cup.hp.com
More information about the Gcc-patches
mailing list