https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114759
--- Comment #21 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Peter Bergner <berg...@gcc.gnu.org>: https://gcc.gnu.org/g:b4d4b86aebe1314a145732150d59a7b9ba066032 commit r14-10860-gb4d4b86aebe1314a145732150d59a7b9ba066032 Author: Peter Bergner <berg...@linux.ibm.com> Date: Tue Jun 18 17:42:45 2024 -0500 rs6000: ROP - Do not disable shrink-wrapping for leaf functions [PR114759] Only disable shrink-wrapping when using -mrop-protect when we know we will be emitting the ROP-protect hash instructions (ie, non-leaf functions). 2024-06-17 Peter Bergner <berg...@linux.ibm.com> gcc/ PR target/114759 * config/rs6000/rs6000.cc (rs6000_override_options_after_change): Move the disabling of shrink-wrapping from here.... * config/rs6000/rs6000-logue.cc (rs6000_emit_prologue): ...to here. gcc/testsuite/ PR target/114759 * gcc.target/powerpc/pr114759-1.c: New test. (cherry picked from commit 0451bc503da9c858e9f1ddfb8faec367c2e032c8)