Re: [PATCH 3/4] libstdc++: Downgrade DEBUG to ASSERTIONS when !HOSTED

2023-04-05 Thread Jonathan Wakely via Gcc-patches
On Wed, 5 Apr 2023 at 00:12, Arsen Arsenović via Libstdc++ wrote: > > Supporting the debug mode in freestanding is a non-trivial job, so > instead, as a best-effort, enable assertions, which are light and easy. OK for trunk. > > libstdc++-v3/ChangeLog: > > * include/bits/c++config: When

[PATCH 3/4] libstdc++: Downgrade DEBUG to ASSERTIONS when !HOSTED

2023-04-04 Thread Arsen Arsenović via Gcc-patches
Supporting the debug mode in freestanding is a non-trivial job, so instead, as a best-effort, enable assertions, which are light and easy. libstdc++-v3/ChangeLog: * include/bits/c++config: When __STDC_HOSTED__ is zero, disable _GLIBCXX_DEBUG and, if it was set, enable _GLI