Re: [PATCH] Add a new option "-fstack-protector-strong"

2013-08-18 Thread Gerald Pfeifer
Hi H., On Mon, 15 Apr 2013, Han Shen(沈涵) wrote: > Hi, I'm to bring up this patch about '-fstack-protector-strong' for trunk. > > Background - some times stack-protector is too-simple while > stack-protector-all over-kills, for example, to build one of our core > systems, we forcibly add "-fstack-

Re: [PATCH] Add a new option "-fstack-protector-strong"

2013-05-07 Thread 沈涵
Updated patch according to Jeff Law's comments ( http://gcc.gnu.org/ml/gcc-patches/2013-05/msg00038.html ) Thanks, H. On Wed, Apr 17, 2013 at 11:40 AM, Han Shen(沈涵) wrote: > Thanks. > > On Wed, Apr 17, 2013 at 2:26 AM, Florian Weimer wrote: >> On 04/17/2013 02:49 AM, Han Shen wrote: Indent

Re: [PATCH] Add a new option "-fstack-protector-strong"

2013-04-17 Thread 沈涵
Thanks. On Wed, Apr 17, 2013 at 2:26 AM, Florian Weimer wrote: > On 04/17/2013 02:49 AM, Han Shen wrote: >>> Indentation is off (unless both mail clients I tried are clobbering your >>> patch). I think the GNU coding style prohibits the braces around the >>> single-statement body of the outer 'f

Re: [PATCH] Add a new option "-fstack-protector-strong"

2013-04-17 Thread Florian Weimer
On 04/17/2013 02:49 AM, Han Shen wrote: + if (flag_stack_protect == 3) +cpp_define (pfile, "__SSP_STRONG__=3"); if (flag_stack_protect == 2) cpp_define (pfile, "__SSP_ALL__=2"); 3 and 2 should be replaced by SPCT_FLAG_STRONG and SPCT_FLAG_ALL. I define these SPCT_FLAG_XXX in cfgex

Re: [PATCH] Add a new option "-fstack-protector-strong"

2013-04-16 Thread Han Shen
Hi Florian, thanks for the review! On Tue, Apr 16, 2013 at 6:32 AM, Florian Weimer wrote: Please include the proposed changelog entries. Done. + if (flag_stack_protect == 3) +cpp_define (pfile, "__SSP_STRONG__=3"); if (flag_stack_protect == 2) cpp_define (pfile, "__SSP_ALL__=2

Re: [PATCH] Add a new option "-fstack-protector-strong"

2013-04-16 Thread Florian Weimer
On 04/15/2013 11:15 PM, Han Shen(沈涵) wrote: Hi, I'm to bring up this patch about '-fstack-protector-strong' for trunk. Background - some times stack-protector is too-simple while stack-protector-all over-kills, for example, to build one of our core systems, we forcibly add "-fstack-protector-all

[PATCH] Add a new option "-fstack-protector-strong"

2013-04-15 Thread 沈涵
Hi, I'm to bring up this patch about '-fstack-protector-strong' for trunk. Background - some times stack-protector is too-simple while stack-protector-all over-kills, for example, to build one of our core systems, we forcibly add "-fstack-protector-all" to all compile commands, which brings big pe

Re: [PATCH] Add a new option "-fstack-protector-strong" (patch / doc inside)

2012-10-02 Thread 沈涵
bb.two; + bb.three = bb.one + bb.two + bb.three; +} + return bb.three; +} + +/* { dg-final { scan-assembler-times "stack_chk_fail" 10 } } */ On Tue, Sep 11, 2012 at 9:50 AM, Carrot Wei wrote: > > > -- Forwarded message -- > From: Han Shen(沈涵) > Date: Thu,

[PATCH] Add a new option "-fstack-protector-strong" (patch / doc inside)

2012-06-14 Thread 沈涵
Hi, This is to port the patch from google/main to trunk, which provides a new stack protection option - "fstack-protector-strong". Previous review for google trunk is here - http://codereview.appspot.com/5461043 Status - it has been used in google/main for 2 quarters, building the whole chromium

Re: [PATCH] Add a new option "-fstack-protector-strong" (issue 6303078)

2012-06-14 Thread Joseph S. Myers
On Thu, 14 Jun 2012, shen...@google.com wrote: > Hi, this is to port the patch from google/main to trunk, which provides > a new stack protection option - "fstack-protector-strong". If you are proposing a patch for trunk, please include the whole patch in the gcc-patches posting. > Detail - > h

[PATCH] Add a new option "-fstack-protector-strong" (issue 6303078)

2012-06-14 Thread shenhan
Reviewers: , Message: Hi, this is to port the patch from google/main to trunk, which provides a new stack protection option - "fstack-protector-strong". Previous review for google trunk is here - http://codereview.appspot.com/5461043 Status - it has been used in google/main for 2 quarters, buil