diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-05-06 13:23:45 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-05-06 14:43:39 +0100 |
commit | e112e37f2920bcc9185e53b754d9145aac912c72 (patch) | |
tree | 7354cd60a64cb9c78691b29f88111db3b1bcc7d9 | |
parent | 488d268728bf701ac76a1392eaed202c80be3843 (diff) | |
download | gcc-e112e37f2920bcc9185e53b754d9145aac912c72.zip gcc-e112e37f2920bcc9185e53b754d9145aac912c72.tar.gz gcc-e112e37f2920bcc9185e53b754d9145aac912c72.tar.bz2 |
libstdc++: Do not include <cxxabi.h> in <stacktrace>
This avoids polluting the global namespace with the "abi" namespace
alias.
libstdc++-v3/ChangeLog:
* include/std/stacktrace: Do not include <cxxabi.h>.
(__cxa_demangle): Declare.
-rw-r--r-- | libstdc++-v3/include/std/stacktrace | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/stacktrace b/libstdc++-v3/include/std/stacktrace index 98ce923..8e6c79a 100644 --- a/libstdc++-v3/include/std/stacktrace +++ b/libstdc++-v3/include/std/stacktrace @@ -38,7 +38,6 @@ #include <bits/stl_iterator.h> #include <bits/stl_uninitialized.h> #include <ext/numeric_traits.h> -#include <cxxabi.h> struct __glibcxx_backtrace_state; struct __glibcxx_backtrace_simple_data; @@ -70,6 +69,13 @@ __glibcxx_backtrace_syminfo(__glibcxx_backtrace_state*, uintptr_t addr, void*); } +namespace __cxxabiv1 +{ + extern "C" char* + __cxa_demangle(const char* __mangled_name, char* __output_buffer, + size_t* __length, int* __status); +} + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION |