Re: [PATCH, rs6000] Add -msafe-indirect-jumps option and implement safe bctrl

2018-01-13 Thread Bill Schmidt
Hi, This is now superceded by https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01204.html. Sorry for the noise. Thanks, Bill > On Jan 12, 2018, at 4:33 PM, Bill Schmidt wrote: > > Hi, > > This patch adds a new option for the compiler to produce only "safe" indirect > jumps, in the sense that t

[PATCH, rs6000] Add -msafe-indirect-jumps option and implement safe bctrl

2018-01-12 Thread Bill Schmidt
Hi, This patch adds a new option for the compiler to produce only "safe" indirect jumps, in the sense that these jumps are deliberately mispredicted to inhibit speculative execution. For now, this option is undocumented; this may change at some future date. It is intended eventually for the link