https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107135
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:7d8189882fc89f6f410fc9bcf0f8226787316f83 commit r13-3058-g7d8189882fc89f6f410fc9bcf0f8226787316f83 Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Oct 3 20:53:35 2022 +0100 libstdc++: Define <bits/functexcept.h> functions for freestanding [PR107135] We don't compile src/c++11/functexcept.cc for freestanding, so just define the functions used by freestanding entities as inline calls to std::terminate. libstdc++-v3/ChangeLog: PR libstdc++/107135 * include/bits/functexcept.h [!_GLIBCXX_HOSTED] (__throw_invalid_argument, __throw_out_of_range) (__throw_out_of_range_fmt, __throw_runtime_error) (__throw_overflow_error): Define inline. * include/std/bitset (_M_copy_from_ptr) [!_GLIBCXX_HOSTED]: Replace __builtin_abort with __throw_invalid_argument.