Re: [PATCH 3/4] x86: Add -mindirect-branch-register

2018-01-13 Thread H.J. Lu
On Sat, Jan 13, 2018 at 8:51 AM, David Woodhouse wrote: > On Sat, 2018-01-13 at 08:46 -0800, H.J. Lu wrote: >> >> >> +@item -mindirect-branch-register >> >> +@opindex -mindirect-branch-register >> >> +Force indirect call and jump via register. >> > >> > Again I think this option needs better docum

Re: [PATCH 3/4] x86: Add -mindirect-branch-register

2018-01-13 Thread David Woodhouse
On Sat, 2018-01-13 at 08:46 -0800, H.J. Lu wrote: > > >> +@item -mindirect-branch-register > >> +@opindex -mindirect-branch-register > >> +Force indirect call and jump via register. > > > > Again I think this option needs better documentation.  It is not quite > > clear to me why > > it is needed

Re: [PATCH 3/4] x86: Add -mindirect-branch-register

2018-01-13 Thread H.J. Lu
On Fri, Jan 12, 2018 at 9:59 AM, Jan Hubicka wrote: >> Add -mindirect-branch-register to force indirect branch via register. >> This is implemented by disabling patterns of indirect branch via memory, >> similar to TARGET_X32. >> >> -mindirect-branch= and -mfunction-return= tests are updated with

Re: [PATCH 3/4] x86: Add -mindirect-branch-register

2018-01-12 Thread Jan Hubicka
> Add -mindirect-branch-register to force indirect branch via register. > This is implemented by disabling patterns of indirect branch via memory, > similar to TARGET_X32. > > -mindirect-branch= and -mfunction-return= tests are updated with > -mno-indirect-branch-register to avoid false test failu

[PATCH 3/4] x86: Add -mindirect-branch-register

2018-01-12 Thread H.J. Lu
Add -mindirect-branch-register to force indirect branch via register. This is implemented by disabling patterns of indirect branch via memory, similar to TARGET_X32. -mindirect-branch= and -mfunction-return= tests are updated with -mno-indirect-branch-register to avoid false test failures when -mi