Re: [PATCH v2] gcc: Introduce -fhardened

2023-10-19 Thread Marek Polacek
On Thu, Oct 19, 2023 at 01:33:51PM +0100, Sam James wrote: > > Richard Biener writes: > > > On Wed, Oct 11, 2023 at 10:48 PM Marek Polacek wrote: > >> > >> On Tue, Sep 19, 2023 at 10:58:19AM -0400, Marek Polacek wrote: > >> > On Mon, Sep 18, 2023 at 08:57:39AM +0200, Richard Biener wrote: > >>

Re: [PATCH v2] gcc: Introduce -fhardened

2023-10-19 Thread Marek Polacek
On Wed, Oct 18, 2023 at 08:12:37PM +, Qing Zhao wrote: > Marek, > > Sorry for the late comment (I was just back from a long vacation immediate > after Cauldron). No worries. > One question: > > Is the option “-fhandened” for production build or for development build? I intend -fhardene

Re: [PATCH v2] gcc: Introduce -fhardened

2023-10-19 Thread Sam James
Richard Biener writes: > On Wed, Oct 11, 2023 at 10:48 PM Marek Polacek wrote: >> >> On Tue, Sep 19, 2023 at 10:58:19AM -0400, Marek Polacek wrote: >> > On Mon, Sep 18, 2023 at 08:57:39AM +0200, Richard Biener wrote: >> > > On Fri, Sep 15, 2023 at 5:09 PM Marek Polacek via Gcc-patches >> > >

Re: [PATCH v2] gcc: Introduce -fhardened

2023-10-19 Thread Richard Biener
On Wed, Oct 11, 2023 at 10:48 PM Marek Polacek wrote: > > On Tue, Sep 19, 2023 at 10:58:19AM -0400, Marek Polacek wrote: > > On Mon, Sep 18, 2023 at 08:57:39AM +0200, Richard Biener wrote: > > > On Fri, Sep 15, 2023 at 5:09 PM Marek Polacek via Gcc-patches > > > wrote: > > > > > > > > Bootstrappe

Re: [PATCH v2] gcc: Introduce -fhardened

2023-10-18 Thread Qing Zhao
Marek, Sorry for the late comment (I was just back from a long vacation immediate after Cauldron). One question: Is the option “-fhandened” for production build or for development build? If it’s for development build, then adding -ftrivial-auto-var-init=pattern is reasonable since the major

[PATCH v2] gcc: Introduce -fhardened

2023-10-11 Thread Marek Polacek
On Tue, Sep 19, 2023 at 10:58:19AM -0400, Marek Polacek wrote: > On Mon, Sep 18, 2023 at 08:57:39AM +0200, Richard Biener wrote: > > On Fri, Sep 15, 2023 at 5:09 PM Marek Polacek via Gcc-patches > > wrote: > > > > > > Bootstrapped/regtested on x86_64-pc-linux-gnu, > > > powerpc64le-unknown-linux-