[Bug middle-end/71585] Cannot selectively disable stack protector with LTO
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 29 12:13:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71585
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Wed Jun 29 12:12:56 2016
New Revision: 237845
URL: https://gcc.gnu.org/viewcvs?rev=237845&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr71585-2.c
trunk/gcc/testsuite/gcc.dg/pr71585-3.c
trunk/gcc/testsuite/gcc.dg/pr71585.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/common.opt
trunk/gcc/ipa-inline-transform.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list