Mark -fstack-protect as optimization flag.
authorMartin Liska <mliska@suse.cz>
Wed, 29 Jun 2016 12:12:56 +0000 (14:12 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 29 Jun 2016 12:12:56 +0000 (12:12 +0000)
commit5c846a81ffb1fa4464f89d2884c85a690d75adf0
tree4f5aeff2bf657ac79726ca12e33177d042abbe77
parentfafe9318b735a4b3276b39a73c42aef7a69249d1
Mark -fstack-protect as optimization flag.

PR middle-end/71585
* common.opt (flag_stack_protect): Mark the flag as optimization
flag.
* ipa-inline-transform.c (inline_call): Remove unnecessary call
of build_optimization_node.
* gcc.dg/pr71585.c: New test.
* gcc.dg/pr71585-2.c: New test.
* gcc.dg/pr71585-3.c: New test.

From-SVN: r237845
gcc/ChangeLog
gcc/common.opt
gcc/ipa-inline-transform.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr71585-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr71585-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr71585.c [new file with mode: 0644]