diff options
author | Joost VandeVondele <vondele@gcc.gnu.org> | 2015-10-19 10:24:37 +0000 |
---|---|---|
committer | Joost VandeVondele <vondele@gcc.gnu.org> | 2015-10-19 10:24:37 +0000 |
commit | 787da5fdbfc9e126d42436959df0f1507f1a9c13 (patch) | |
tree | 29da81662086457f8b063de69a5914e50c81d499 /gcc/doc | |
parent | 9c99fe750c477ab4408f48d8df2cd186307159ff (diff) | |
download | gcc-787da5fdbfc9e126d42436959df0f1507f1a9c13.zip gcc-787da5fdbfc9e126d42436959df0f1507f1a9c13.tar.gz gcc-787da5fdbfc9e126d42436959df0f1507f1a9c13.tar.bz2 |
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
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 54e9f12..dba4023 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -410,8 +410,8 @@ Objective-C and Objective-C++ Dialects}. -fira-loop-pressure -fno-ira-share-save-slots @gol -fno-ira-share-spill-slots -fira-verbose=@var{n} @gol -fisolate-erroneous-paths-dereference -fisolate-erroneous-paths-attribute @gol --fivopts -fkeep-inline-functions -fkeep-static-consts @gol --flive-range-shrinkage @gol +-fivopts -fkeep-inline-functions -fkeep-static-functions @gol +-fkeep-static-consts -flive-range-shrinkage @gol -floop-block -floop-interchange -floop-strip-mine @gol -floop-unroll-and-jam -floop-nest-optimize @gol -floop-parallelize-all -flra-remat -flto -flto-compression-level @gol @@ -8013,6 +8013,11 @@ of its callers. This switch does not affect functions using the @code{extern inline} extension in GNU C90@. In C++, emit any and all inline functions into the object file. +@item -fkeep-static-functions +@optindex fkeep-static-functions +Emit @code{static} functions into the object file, even if the function +is never used. + @item -fkeep-static-consts @opindex fkeep-static-consts Emit variables declared @code{static const} when optimization isn't turned |