libstdc++: Restore printing of assertion messages [PR102100]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Oct 2021 14:55:57 +0000 (15:55 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 1 Oct 2021 20:06:26 +0000 (21:06 +0100)
commit92936be47461b99d624b6a90a745f6cdc60d3e51
tree031b6960e7af7dab63db6b0059812c74a16169e7
parentacf3a21cbc26b39b73c0006300f35ff017ddd6cb
libstdc++: Restore printing of assertion messages [PR102100]

My changes for PR 101429 broke the _-replacement_assert function,
because we now always just abort without printing anything. That's
because I added checks for _GLIBCXX_HOSTED and _GLIBCXX_VERBOSE, but the
checks are done before those get defined.

This adds a new macro which is set
by the sed command in include/Makefile, once the HOSTED and VERBOSE
macros have been set by the configure script.

libstdc++-v3/ChangeLog:

PR libstdc++/102100
* include/Makefile.am (c++config.h): Define
_GLIBCXX_VERBOSE_ASSERT based on configure output.
* include/Makefile.in: Regenerate.
* include/bits/c++config: Fix condition for verbose assertions.
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/bits/c++config