re PR libstdc++/85768 (FreeBSD bootstrap fails due to undefined reference to 'backtrace')
authorFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 25 May 2018 16:40:55 +0000 (16:40 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 25 May 2018 16:40:55 +0000 (16:40 +0000)
2018-05-25  François Dumont  <fdumont@gcc.gnu.org>

PR libstdc++/85768
* src/c++11/debug.cc: Remove backtrace usage.

From-SVN: r260761

libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/debug.cc

index 03e8754..02b8557 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-25  François Dumont  <fdumont@gcc.gnu.org>
+
+       PR libstdc++/85768
+       * src/c++11/debug.cc: Remove backtrace usage.
+
 2018-05-24  Maya Rashish  <coypu@sdf.org>
 
        PR target/85904
index 1913702..6730994 100644 (file)
@@ -40,7 +40,8 @@
 
 #include <cxxabi.h> // for __cxa_demangle
 
-#if defined _GLIBCXX_HAVE_EXECINFO_H
+// libstdc++/85768
+#if 0 // defined _GLIBCXX_HAVE_EXECINFO_H
 # include <execinfo.h> // 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);