aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-08-17 20:56:25 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-08-17 20:56:25 +0000
commit1a10290c1cb47d0e1308e35e56087c53344daaae (patch)
tree86b49bd3e86a3d584337acf5c4f1dd44507ccccc /gcc/doc
parent1bc7e46697762ab61229dbc459c851a4e9d0df1c (diff)
downloadgcc-1a10290c1cb47d0e1308e35e56087c53344daaae.zip
gcc-1a10290c1cb47d0e1308e35e56087c53344daaae.tar.gz
gcc-1a10290c1cb47d0e1308e35e56087c53344daaae.tar.bz2
re PR c++/15871 (g++ does not honour -fkeep-inline-functions)
PR c++/15871 * semantics.c (expand_or_defer_fn): Honor -fkeep-inline-functions. PR c++/15871 * doc/invoke.texi (-fkeep-inline-functions): Update documentation. PR c++/15871 * g++.dg/opt/inline8.C: New test. From-SVN: r86144
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 4eb1498..0cf590c 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -4055,10 +4055,11 @@ release to an another.
@item -fkeep-inline-functions
@opindex fkeep-inline-functions
-Even if all calls to a given function are integrated, and the function
-is declared @code{static}, nevertheless output a separate run-time
-callable version of the function. This switch does not affect
-@code{extern inline} functions.
+In C, emit @code{static} functions that are declared @code{inline}
+into the object file, even if the function has been inlined into all
+of its callers. This switch does not affect functions using the
+@code{extern inline} extension in GNU C. In C++, emit any and all
+inline functions into the object file.
@item -fkeep-static-consts
@opindex fkeep-static-consts