https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93654
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <h...@gcc.gnu.org>: https://gcc.gnu.org/g:9be3bb2c0a258fd6a7d3d05d232a21930c757d3c commit r10-8047-g9be3bb2c0a258fd6a7d3d05d232a21930c757d3c Author: H.J. Lu <hjl.to...@gmail.com> Date: Wed Apr 29 04:52:46 2020 -0700 x86: Allow -fcf-protection with external thunk Allow -fcf-protection with external thunk since the external thunk can be made compatible with -fcf-protection. gcc/ PR target/93654 * config/i386/i386-options.c (ix86_set_indirect_branch_type): Allow -fcf-protection with -mindirect-branch=thunk-extern and -mfunction-return=thunk-extern. * doc/invoke.texi: Update notes for -fcf-protection=branch with -mindirect-branch=thunk-extern and -mindirect-return=thunk-extern. gcc/testsuite/ PR target/93654 * gcc.target/i386/pr93654.c: New test.