Commit 385710cf by Jack Howarth Committed by Ian Lance Taylor

re PR target/55061 (libbacktrace build fails during bootstrap on powerpc-apple-darwin9)

	PR target/55061
	* configure.ac: Check for _Unwind_GetIPInfo function declaration.
	* configure: Regenerate.

From-SVN: r192853
parent 24db014b
2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/55061
* configure.ac: Check for _Unwind_GetIPInfo function declaration.
* configure: Regenerate.
2012-10-24 Ian Lance Taylor <iant@google.com> 2012-10-24 Ian Lance Taylor <iant@google.com>
PR target/55061 PR target/55061
......
...@@ -11619,13 +11619,32 @@ $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h ...@@ -11619,13 +11619,32 @@ $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
fi fi
else else
ac_fn_c_check_func "$LINENO" "_Unwind_GetIPInfo" "ac_cv_func__Unwind_GetIPInfo" ac_save_CFFLAGS="$CFLAGS"
if test "x$ac_cv_func__Unwind_GetIPInfo" = x""yes; then : CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include "unwind.h"
struct _Unwind_Context *context;
int ip_before_insn = 0;
int
main ()
{
return _Unwind_GetIPInfo (context, &ip_before_insn);
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
have_unwind_getipinfo=yes have_unwind_getipinfo=yes
else else
have_unwind_getipinfo=no have_unwind_getipinfo=no
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS="$ac_save_CFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
$as_echo "$have_unwind_getipinfo" >&6; }
if test "$have_unwind_getipinfo" = "yes"; then if test "$have_unwind_getipinfo" = "yes"; then
$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
......
...@@ -129,8 +129,18 @@ AC_SUBST(WARN_FLAGS) ...@@ -129,8 +129,18 @@ AC_SUBST(WARN_FLAGS)
if test -n "${with_target_subdir}"; then if test -n "${with_target_subdir}"; then
GCC_CHECK_UNWIND_GETIPINFO GCC_CHECK_UNWIND_GETIPINFO
else else
AC_CHECK_FUNC(_Unwind_GetIPInfo, [have_unwind_getipinfo=yes], ac_save_CFFLAGS="$CFLAGS"
[have_unwind_getipinfo=no]) CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
AC_MSG_CHECKING([for _Unwind_GetIPInfo])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#include "unwind.h"
struct _Unwind_Context *context;
int ip_before_insn = 0;],
[return _Unwind_GetIPInfo (context, &ip_before_insn);])],
[have_unwind_getipinfo=yes], [have_unwind_getipinfo=no])
CFLAGS="$ac_save_CFLAGS"
AC_MSG_RESULT([$have_unwind_getipinfo])
if test "$have_unwind_getipinfo" = "yes"; then if test "$have_unwind_getipinfo" = "yes"; then
AC_DEFINE(HAVE_GETIPINFO, 1, [Define if _Unwind_GetIPInfo is available.]) AC_DEFINE(HAVE_GETIPINFO, 1, [Define if _Unwind_GetIPInfo is available.])
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment