When the SHSTK feature is not available or not enabled, RDSSP is a NOP,
always save and restore shadow stack pointer to support compiling source
codes, containing __builtin_setjmp and __builtin_longjmp, with different
-fcf-protection options.
PR target/98997
* config/i386/i386.md (
On Mon, Feb 8, 2021 at 3:07 PM H.J. Lu via Gcc-patches
wrote:
>
> When the SHSTK feature is not available or not enabled, RDSSP is a NOP,
> always save and restore shadow stack pointer to support compiling source
> codes, containing __builtin_setjmp and __builtin_longjmp, with different
> -fcf-pro
On Tue, Feb 9, 2021 at 12:59 AM Richard Biener
wrote:
>
> On Mon, Feb 8, 2021 at 3:07 PM H.J. Lu via Gcc-patches
> wrote:
> >
> > When the SHSTK feature is not available or not enabled, RDSSP is a NOP,
> > always save and restore shadow stack pointer to support compiling source
> > codes, contain
On Tue, Feb 9, 2021 at 2:11 PM H.J. Lu wrote:
>
> On Tue, Feb 9, 2021 at 12:59 AM Richard Biener
> wrote:
> >
> > On Mon, Feb 8, 2021 at 3:07 PM H.J. Lu via Gcc-patches
> > wrote:
> > >
> > > When the SHSTK feature is not available or not enabled, RDSSP is a NOP,
> > > always save and restore sh
On Tue, Feb 9, 2021 at 6:19 AM Richard Biener
wrote:
>
> On Tue, Feb 9, 2021 at 2:11 PM H.J. Lu wrote:
> >
> > On Tue, Feb 9, 2021 at 12:59 AM Richard Biener
> > wrote:
> > >
> > > On Mon, Feb 8, 2021 at 3:07 PM H.J. Lu via Gcc-patches
> > > wrote:
> > > >
> > > > When the SHSTK feature is not
On Tue, Feb 09, 2021 at 06:25:10AM -0800, H.J. Lu via Gcc-patches wrote:
> My patch does nothing for GCC 10.
>
> > files from GCC 11
> > and -fcf-protection=none (aka the long-year default)?
> >
>
> Yes, if __builtin_setjmp and __builtin_longjmp aren't used.
> No, if they are.
Therefore ABI chan
On Tue, Feb 9, 2021 at 6:33 AM Jakub Jelinek wrote:
>
> On Tue, Feb 09, 2021 at 06:25:10AM -0800, H.J. Lu via Gcc-patches wrote:
> > My patch does nothing for GCC 10.
> >
> > > files from GCC 11
> > > and -fcf-protection=none (aka the long-year default)?
> > >
> >
> > Yes, if __builtin_setjmp and