On 07/13/2015 07:20 AM, Magnus Granberg wrote:
Patch updated and tested on x86_64-unknown-linux-gnu (Gentoo)
Changlogs
/gcc
2015-07-05 Magnus Granberg<zo...@gentoo.org>
* common.opt (fstack-protector): Initialize to -1.
(fstack-protector-all): Likewise.
(fstack-protector-strong): Likewise.
(fstack-protector-explicit): Likewise.
* configure.ac: Add --enable-default-ssp.
* defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
* opts.c (finish_options): Update opts->x_flag_stack_protect if it is
-1.
* doc/install.texi: Document --enable-default-ssp.
* config.in: Regenerated.
* configure: Likewise.
/testsuite
2015-07-13 Magnus Granberg<zo...@gentoo.org>
* lib/target-supports.exp
(check_effective_target_fstack_protector_enabled): New test.
* gcc.target/i386/ssp-default.c: New test.
Sorry for the delay, it seems nobody picked this up.
It's a nit, but the feature is "Stack Smashing Protection", not "Smart
Stack Protection". I'll fix that nit and install your change.
Thanks!
Jeff