https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103925
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by H.J. Lu <h...@gcc.gnu.org>: https://gcc.gnu.org/g:978956485a663493130b02f787095095d163290e commit r11-9578-g978956485a663493130b02f787095095d163290e Author: H.J. Lu <hjl.to...@gmail.com> Date: Wed Jan 5 18:04:21 2022 -0800 x86: Generate INT3 for __builtin_eh_return Generate INT3 after indirect jmp in exception return for -fcf-protection with -mharden-sls=indirect-jmp. gcc/ PR target/103925 * config/i386/i386.c (ix86_output_indirect_function_return): Generate INT3 after indirect jmp for -mharden-sls=indirect-jmp. gcc/testsuite/ PR target/103925 * gcc.target/i386/harden-sls-6.c: New test. (cherry picked from commit c2e5c4feed32c808591b5278f680bbabe63eb225)