Re: [PATCH] LTO: Add -fcf-protection=check

2020-07-27 Thread Richard Biener via Gcc-patches
On Fri, Jul 24, 2020 at 11:15 PM H.J. Lu via Gcc-patches wrote: > > Mixing -fcf-protection and -fcf-protection=none objects are allowed. > Linker just merges -fcf-protection values from all input objects. > > Add -fcf-protection=check for the final link with LTO. An error is > issued if LTO objec

[PATCH] LTO: Add -fcf-protection=check

2020-07-24 Thread H.J. Lu via Gcc-patches
Mixing -fcf-protection and -fcf-protection=none objects are allowed. Linker just merges -fcf-protection values from all input objects. Add -fcf-protection=check for the final link with LTO. An error is issued if LTO object files are compiled with different -fcf-protection values. Otherwise, -fcf