From 18b119378a5e2fef657670441dabd98c827709a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Dumont?= Date: Fri, 25 May 2018 16:40:55 +0000 Subject: [PATCH] re PR libstdc++/85768 (FreeBSD bootstrap fails due to undefined reference to 'backtrace') MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2018-05-25 François Dumont PR libstdc++/85768 * src/c++11/debug.cc: Remove backtrace usage. From-SVN: r260761 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/src/c++11/debug.cc | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 03e875478ae..02b8557bc25 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2018-05-25 François Dumont + + PR libstdc++/85768 + * src/c++11/debug.cc: Remove backtrace usage. + 2018-05-24 Maya Rashish PR target/85904 diff --git a/libstdc++-v3/src/c++11/debug.cc b/libstdc++-v3/src/c++11/debug.cc index 19137022b2a..67309942941 100644 --- a/libstdc++-v3/src/c++11/debug.cc +++ b/libstdc++-v3/src/c++11/debug.cc @@ -40,7 +40,8 @@ #include // for __cxa_demangle -#if defined _GLIBCXX_HAVE_EXECINFO_H +// libstdc++/85768 +#if 0 // defined _GLIBCXX_HAVE_EXECINFO_H # include // for backtrace #endif @@ -1050,7 +1051,8 @@ namespace __gnu_debug print_literal(ctx, "\n"); } -#if defined _GLIBCXX_HAVE_EXECINFO_H +// libstdc++/85768 +#if 0 //defined _GLIBCXX_HAVE_EXECINFO_H { void* stack[32]; int nb = backtrace(stack, 32); -- 2.30.2