https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113312
--- Comment #25 from Xin Li <xin at zytor dot com> --- (In reply to Xin Li from comment #22) > Per Peter's suggestion, I added __attribute__((no_callee_saved_registers)) > to a linux source tree containing FRED patches: > https://github.com/xinli-intel/linux-fred-public/commit/ > 12c38143a5c33e89f2b3d8906629dd4f23f8d79c It's better to refer to branch 'gcc-no_callee_saved_registers' instead: https://github.com/xinli-intel/linux-fred-public/commits/gcc-no_callee_saved_registers/