https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10837
--- Comment #31 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- And you can just make something like #ifdef I_DONT_WANT_A_BACKTRACE_ON_ABORT [[gnu::always_inline]] void tail_to_abort(void) { [[musttail]] abort(); } #define abort() tail_to_abort() #endif