summaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorvondele <vondele@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-19 10:24:37 +0000
committervondele <vondele@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-19 10:24:37 +0000
commitc071eedcfe0006760508441c11f8d64802d472e4 (patch)
tree29da81662086457f8b063de69a5914e50c81d499 /gcc/common.opt
parentcd5ad70a2a1af200e0087490d30a857a2fa24a36 (diff)
downloadgcc-c071eedcfe0006760508441c11f8d64802d472e4.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228965 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 50602082173..224d3ad7fbd 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -1589,6 +1589,10 @@ fkeep-inline-functions
Common Report Var(flag_keep_inline_functions)
Generate code for functions even if they are fully inlined
+fkeep-static-functions
+Common Report Var(flag_keep_static_functions)
+Generate code for static functions even if they are never called
+
fkeep-static-consts
Common Report Var(flag_keep_static_consts) Init(1)
Emit static const variables even if they are not used