This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR target/27880: Fix static linking on ia64


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]