https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107135
--- Comment #7 from cqwrteur <unlvsur at live dot com> --- (In reply to cqwrteur from comment #6) > Comment on attachment 53663 [details] > Define <bits/functexcept.h> function for freestanding > > std::terminate() or std::abort() or __builtin_trap()?? > > std::terminate() has the issue of set_terminate() which causes trouble. > > GCC optimizes __builtin_trap() best but it is not standard. > > What about __builtin_abort()??? maybe we could just mark std::terminate as weak?