]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Define __glibcxx_assert_fail for non-verbose build [PR115585]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 28 Jun 2024 14:14:15 +0000 (15:14 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 28 Jun 2024 19:19:02 +0000 (20:19 +0100)
commit52370c839edd04df86d3ff2b71fcdca0c7376a7f
treeb2a5f9c57f9125994e8147c0556bdf5f9c03c9cf
parentfab60eaa94b50b1eea84f0d001004c851d4c781b
libstdc++: Define __glibcxx_assert_fail for non-verbose build [PR115585]

When the library is configured with --disable-libstdcxx-verbose the
assertions just abort instead of calling __glibcxx_assert_fail, and so I
didn't export that function for the non-verbose build. However, that
option is documented to not change the library ABI, so we still need to
export the symbol from the library. It could be needed by programs
compiled against the headers from a verbose build.

The non-verbose definition can just call abort so that it doesn't pull
in I/O symbols, which are unwanted in a non-verbose build.

libstdc++-v3/ChangeLog:

PR libstdc++/115585
* src/c++11/assert_fail.cc (__glibcxx_assert_fail): Add
definition for non-verbose builds.
libstdc++-v3/src/c++11/assert_fail.cc