OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [config/] [unwind_ipinfo.m4] - Rev 866

Go to most recent revision | Compare with Previous | Blame | View Log

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
])
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.