Re: [PATCH 1/4] rs6000: Add -mrop-protect and -mprivileged flags

2021-05-15 Thread Bill Schmidt via Gcc-patches
Series pushed with recommended changes.  Thank you! Bill On 5/14/21 10:55 AM, Segher Boessenkool wrote: On Thu, May 13, 2021 at 10:34:54PM -0500, Bill Schmidt via Gcc-patches wrote: +mprivileged +Target Var(rs6000_privileged) Init(0) +Enable generation of instructions that require privileged s

Re: [PATCH 1/4] rs6000: Add -mrop-protect and -mprivileged flags

2021-05-14 Thread Segher Boessenkool
On Thu, May 13, 2021 at 10:34:54PM -0500, Bill Schmidt via Gcc-patches wrote: > +mprivileged > +Target Var(rs6000_privileged) Init(0) > +Enable generation of instructions that require privileged state. That isn't quite it -- it will generate "p" insns instead of the usual ones, it isn't just that

[PATCH 1/4] rs6000: Add -mrop-protect and -mprivileged flags

2021-05-13 Thread Bill Schmidt via Gcc-patches
2021-05-13 Bill Schmidt gcc/ * config/rs6000/rs6000.c (rs6000_option_override_internal): Disable shrink wrap when inserting ROP-protect instructions. * config/rs6000/rs6000.opt (mrop-protect): New option. (mprivileged): Likewise. * doc/invoke.texi: Docume

Re: [PATCH 1/4] rs6000: Add -mrop-protect and -mprivileged flags

2021-05-12 Thread Segher Boessenkool
On Mon, Apr 26, 2021 at 11:02:53AM -0500, will schmidt wrote: > On Sun, 2021-04-25 at 20:50 -0500, Bill Schmidt via Gcc-patches wrote: > > + /* If we are inserting ROP-protect instructions, disable shrink wrap. */ > > + if (rs6000_rop_protect) > > +{ > > + flag_shrink_wrap = 0; > > +

Re: [PATCH 1/4] rs6000: Add -mrop-protect and -mprivileged flags

2021-05-12 Thread Segher Boessenkool
On Sun, Apr 25, 2021 at 08:50:15PM -0500, Bill Schmidt wrote: > + /* If we are inserting ROP-protect instructions, disable shrink wrap. */ > + if (rs6000_rop_protect) > +{ > + flag_shrink_wrap = 0; > + flag_shrink_wrap_separate = 0; > +} Separate shrink-wrapping requires flag_

Re: [PATCH 1/4] rs6000: Add -mrop-protect and -mprivileged flags

2021-04-26 Thread will schmidt via Gcc-patches
On Sun, 2021-04-25 at 20:50 -0500, Bill Schmidt via Gcc-patches wrote: > 2021-03-25 Bill Schmidt > > gcc/ > * config/rs6000/rs6000.c (rs6000_option_override_internal): > Disable shrink wrap when inserting ROP-protect instructions. > * config/rs6000/rs6000.opt (mrop-protect): N

[PATCH 1/4] rs6000: Add -mrop-protect and -mprivileged flags

2021-04-25 Thread Bill Schmidt via Gcc-patches
2021-03-25 Bill Schmidt gcc/ * config/rs6000/rs6000.c (rs6000_option_override_internal): Disable shrink wrap when inserting ROP-protect instructions. * config/rs6000/rs6000.opt (mrop-protect): New option. (mprivileged): Likewise. * doc/invoke.texi: Docume