https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534
--- Comment #24 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <h...@gcc.gnu.org>: https://gcc.gnu.org/g:291f75fa1bc6a23c6184bb99c726074b13f2f18e commit r14-8495-g291f75fa1bc6a23c6184bb99c726074b13f2f18e Author: H.J. Lu <hjl.to...@gmail.com> Date: Sat Jan 27 05:48:45 2024 -0800 x86: Save callee-saved registers in noreturn functions for -O0/-Og Save callee-saved registers in noreturn functions for -O0/-Og so that debugger can restore callee-saved registers in caller's frame. Also add the TREE_THIS_VOLATILE check to minimize noreturn attribute lookup. gcc/ PR target/38534 * config/i386/i386-options.cc (ix86_set_func_type): Save callee-saved registers in noreturn functions for -O0/-Og. gcc/testsuite/ PR target/38534 * gcc.target/i386/pr38534-5.c: New file. * gcc.target/i386/pr38534-6.c: Likewise.