From: François Dumont Date: Fri, 25 May 2018 16:40:55 +0000 (+0000) Subject: re PR libstdc++/85768 (FreeBSD bootstrap fails due to undefined reference to 'backtrace') X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18b119378a5e2fef657670441dabd98c827709a1;p=gcc.git re PR libstdc++/85768 (FreeBSD bootstrap fails due to undefined reference to 'backtrace') 2018-05-25 François Dumont PR libstdc++/85768 * src/c++11/debug.cc: Remove backtrace usage. From-SVN: r260761 --- 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);