From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 330A33856DFA; Fri, 6 May 2022 13:45:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 330A33856DFA MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-153] libstdc++: Do not include in X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 488d268728bf701ac76a1392eaed202c80be3843 X-Git-Newrev: e112e37f2920bcc9185e53b754d9145aac912c72 Message-Id: <20220506134516.330A33856DFA@sourceware.org> Date: Fri, 6 May 2022 13:45:16 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2022 13:45:16 -0000 https://gcc.gnu.org/g:e112e37f2920bcc9185e53b754d9145aac912c72 commit r13-153-ge112e37f2920bcc9185e53b754d9145aac912c72 Author: Jonathan Wakely Date: Fri May 6 13:23:45 2022 +0100 libstdc++: Do not include in This avoids polluting the global namespace with the "abi" namespace alias. libstdc++-v3/ChangeLog: * include/std/stacktrace: Do not include . (__cxa_demangle): Declare. Diff: --- libstdc++-v3/include/std/stacktrace | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/stacktrace b/libstdc++-v3/include/std/stacktrace index 98ce9231150..8e6c79a2f4f 100644 --- a/libstdc++-v3/include/std/stacktrace +++ b/libstdc++-v3/include/std/stacktrace @@ -38,7 +38,6 @@ #include #include #include -#include 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