https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534
--- Comment #11 from Lukas Grätz <lukas.gra...@tu-darmstadt.de> --- (In reply to H.J. Lu from comment #10) > The C++ test issue is caused by missing callee-saved registers for > exception supports in noreturn functions in libstdc++. I fixed it by > keeping callee-saved registers when exception is enabled. > > Backtrace with %rbp is unrelated to this. Gcc will skip %rpb without > -fno-omit-frame-pointer. Great! Then I guess there is no pitfall in your patch.