Re: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2018-12-03 Thread H.J. Lu
On Mon, Jun 18, 2018 at 2:20 AM Richard Biener wrote: > > On Fri, Jun 15, 2018 at 2:59 PM H.J. Lu wrote: > > > > Currently GCC inserts ENDBR instruction at entries of all non-static > > functions, unless LTO compilation is used. Marking all functions, > > which are not called indirectly with noc

Re: [PATCH] i386; Add -mmanual-endbr and cf_check function attribute

2018-06-18 Thread Richard Biener
On Fri, Jun 15, 2018 at 2:59 PM H.J. Lu wrote: > > Currently GCC inserts ENDBR instruction at entries of all non-static > functions, unless LTO compilation is used. Marking all functions, > which are not called indirectly with nocf_check attribute, is not > ideal since 99% of functions in a progr