Fix PR68002, add -fkeep-static-functions
authorJoost VandeVondele <vondele@gcc.gnu.org>
Mon, 19 Oct 2015 10:24:37 +0000 (10:24 +0000)
committerJoost VandeVondele <vondele@gcc.gnu.org>
Mon, 19 Oct 2015 10:24:37 +0000 (10:24 +0000)
commit787da5fdbfc9e126d42436959df0f1507f1a9c13
tree29da81662086457f8b063de69a5914e50c81d499
parent9c99fe750c477ab4408f48d8df2cd186307159ff
Fix PR68002, add -fkeep-static-functions

gcc/ChangeLog:

2015-10-17  Joost VandeVondele  <vondele@gnu.gcc.org>

        PR middle-end/68002
        * common.opt (fkeep-static-functions): New option.
        * doc/invoke.texi: Document it.
        * cgraphunit.c (cgraph_node::finalize_function): Use it.

gcc/testsuite/ChangeLog:

2015-10-17  Joost VandeVondele  <vondele@gnu.gcc.org>

        PR middle-end/68002
        * gcc.dg/PR68002.c: New test.

From-SVN: r228965
gcc/ChangeLog
gcc/cgraphunit.c
gcc/common.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/PR68002.c [new file with mode: 0644]