common.opt (fstack-protector): Initialize to -1.
authorMagnus Granberg <zorry@gentoo.org>
Wed, 19 Aug 2015 22:07:06 +0000 (22:07 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 19 Aug 2015 22:07:06 +0000 (16:07 -0600)
commite0f6cba004eb94ef9a06c68d09160d8601503085
tree3ca7ccb634b618bf1984f21463abb0f4d2de83ff
parentc24f5688adae2f885279e8fdce74a030e6944b7b
common.opt (fstack-protector): Initialize to -1.

       * 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.

        * lib/target-supports.exp
        (check_effective_target_fstack_protector_enabled): New test.
        * gcc.target/i386/ssp-default.c: New test.

From-SVN: r227017
gcc/ChangeLog
gcc/common.opt
gcc/config.in
gcc/configure
gcc/configure.ac
gcc/defaults.h
gcc/doc/install.texi
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/ssp-default.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp