Re: [PATCH] x86: Allow -fcf-protection with external thunk

2020-04-29 Thread H.J. Lu via Gcc-patches
On Wed, Apr 29, 2020 at 5:02 AM H.J. Lu wrote: > > On Tue, Apr 28, 2020 at 11:38 PM Richard Biener > wrote: > > > > On Wed, Apr 29, 2020 at 4:22 AM H.J. Lu via Gcc-patches > > wrote: > > > > > > Allow -fcf-protection with external thunk since the external thunk can be > > > made compatible with

Re: [PATCH] x86: Allow -fcf-protection with external thunk

2020-04-29 Thread H.J. Lu via Gcc-patches
On Tue, Apr 28, 2020 at 11:38 PM Richard Biener wrote: > > On Wed, Apr 29, 2020 at 4:22 AM H.J. Lu via Gcc-patches > wrote: > > > > Allow -fcf-protection with external thunk since the external thunk can be > > made compatible with -fcf-protection. > > > > OK for master? > > OK. I guess also OK f

Re: [PATCH] x86: Allow -fcf-protection with external thunk

2020-04-28 Thread Richard Biener via Gcc-patches
On Wed, Apr 29, 2020 at 4:22 AM H.J. Lu via Gcc-patches wrote: > > Allow -fcf-protection with external thunk since the external thunk can be > made compatible with -fcf-protection. > > OK for master? OK. I guess also OK for backporting to branches where CET support is in a reasonable state (not

[PATCH] x86: Allow -fcf-protection with external thunk

2020-04-28 Thread H.J. Lu via Gcc-patches
Allow -fcf-protection with external thunk since the external thunk can be made compatible with -fcf-protection. OK for master? Thanks. H.J. --- gcc/ PR target/93654 * config/i386/i386-options.c (ix86_set_indirect_branch_type): Allow -fcf-protection with -mindirect-branch