https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91489
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <l...@gcc.gnu.org>: https://gcc.gnu.org/g:659ba632e440280e8d61e1ae870e917765db5ae5 commit r11-4806-g659ba632e440280e8d61e1ae870e917765db5ae5 Author: Jeff Law <l...@torsion.usersys.redhat.com> Date: Fri Nov 6 17:38:00 2020 -0500 Fix stack pointer handling in ms_hook_prologue functions for i386 target. gcc/ PR target/91489 * config/i386/i386.md (simple_return): Also check for ms_hook_prologue function attribute. * config/i386/i386.c (ix86_can_use_return_insn_p): Also check for ms_hook_prologue function attribute. * config/i386/i386-protos.h (ix86_function_ms_hook_prologue): Declare. gcc/testsuite PR target/91489 * gcc.target/i386/ms_hook_prologue.c: Expand testcase to reproduce PR target/91489 issue.