On Thu, Nov 18, 2021 at 12:25 AM Uros Bizjak wrote: > > On Wed, Nov 17, 2021 at 2:47 PM H.J. Lu wrote: > > > > Add -mindirect-branch-cs-prefix to add CS prefix to call and jmp to thunk > > via r8-r15 registers when converting indirect call and jump to increase > > the instruction length to 6, allowing the non-thunk form to be inlined. > > > > gcc/ > > > > PR target/102952 > > * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): Emit > > CS prefix for -mindirect-branch-cs-prefix. > > (ix86_output_indirect_branch_via_reg): Likewise. > > * config/i386/i386.opt: Add -mindirect-branch-cs-prefix. > > * doc/invoke.texi: Document -mindirect-branch-cs-prefix. > > > > gcc/testsuite/ > > > > PR target/102952 > > * gcc.target/i386/indirect-thunk-cs-prefix-1.c: New test. > > * gcc.target/i386/indirect-thunk-cs-prefix-2.c: Likewise. > > It is hard for me to parse the description, both in the commit message > and in the option description and documentation. Can you please reword > them to be more comprehensible? > > Here is the v3 patch with updated description. OK for master? Thanks. -- H.J.