[committed] libstdc++: Do not include in

2023-05-31 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Pushed to trunk. -- >8 -- We previously needed in for the std::lock_error exception class, but that was moved out of in 2009 when it was removed from the C++0x draft. We can stop including now. Move the include for to where it's actually used, and only include in

Re: [committed] libstdc++: Do not include in concurrency headers

2023-01-16 Thread Rainer Orth
Hi Jonathan, > On Fri, 13 Jan 2023 at 16:39, Jonathan Wakely wrote: >> >> On Fri, 13 Jan 2023 at 15:08, Rainer Orth wrote: >> > >> > Hi Jonathan, >> > >> > > The , , and headers use >> > > std::errc constants, but don't use std::system_error itself. They only >> > > use the __throw_system_error(i

Re: [committed] libstdc++: Do not include in concurrency headers

2023-01-13 Thread Jonathan Wakely via Gcc-patches
On Fri, 13 Jan 2023 at 16:39, Jonathan Wakely wrote: > > On Fri, 13 Jan 2023 at 15:08, Rainer Orth wrote: > > > > Hi Jonathan, > > > > > The , , and headers use > > > std::errc constants, but don't use std::system_error itself. They only > > > use the __throw_system_error(int) function, which is d

Re: [committed] libstdc++: Do not include in concurrency headers

2023-01-13 Thread Jonathan Wakely via Gcc-patches
On Fri, 13 Jan 2023 at 15:08, Rainer Orth wrote: > > Hi Jonathan, > > > The , , and headers use > > std::errc constants, but don't use std::system_error itself. They only > > use the __throw_system_error(int) function, which is defined in > > . > > > > By including the header for the errc constant

Re: [committed] libstdc++: Do not include in concurrency headers

2023-01-13 Thread Rainer Orth
Hi Jonathan, > The , , and headers use > std::errc constants, but don't use std::system_error itself. They only > use the __throw_system_error(int) function, which is defined in > . > > By including the header for the errc constants instead of the whole of > we avoid depending on the whole std::

[committed] libstdc++: Do not include in concurrency headers

2023-01-12 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux and powerpc64le-linux. Pushed to trunk. -- >8 -- The , , and headers use std::errc constants, but don't use std::system_error itself. They only use the __throw_system_error(int) function, which is defined in . By including the header for the errc constants instead of the who

[committed] libstdc++: Do not include in

2022-05-06 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. -- >8 -- This avoids polluting the global namespace with the "abi" namespace alias. libstdc++-v3/ChangeLog: * include/std/stacktrace: Do not include . (__cxa_demangle): Declare. --- libstdc++-v3/include/std/stacktrace | 8 +++- 1 f