https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113715
--- Comment #3 from Huaqi <fanghuaqi at vip dot qq.com> --- (In reply to Andrew Pinski from comment #2) > Yes this is where shrink wrapping incorrects incorrectly with > riscv_zcmp_can_use_popretz optimization. Basically popretz should be > disabled for shrink wrapped function call I think ... Maybe just revert this commit is a good approach for now, it won't affect other functions, and later on someone upload new patch to implement this cm.popretz generation