On Tue, Feb 9, 2021 at 6:33 AM Jakub Jelinek <ja...@redhat.com> 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 __builtin_longjmp aren't used. > > No, if they are. > > Therefore ABI change. > > Also, is RDSPP really a nop even on say -march=i386/-march=i486? > Or was it only ENDBR32 that is problematic for the very old CPUs? >
Yes, my patch isn't a good idea. It is better to detect such conditions at link-time. -- H.J.