|
|
4ac4fd |
2005-01-03 Jakub Jelinek <jakub@redhat.com>
|
|
|
4ac4fd |
|
|
|
4ac4fd |
* doc/invoke.texi (-Winline): Document that GCC 3.2.x only
|
|
|
4ac4fd |
uses this warning for frontends using RTL inliner.
|
|
|
4ac4fd |
* doc/extend.texi (Inline): Don't mention -Winline option.
|
|
|
4ac4fd |
|
|
|
4ac4fd |
--- gcc/doc/extend.texi.jj 2003-09-16 16:57:45.000000000 +0200
|
|
|
4ac4fd |
+++ gcc/doc/extend.texi 2005-01-03 12:26:25.917145090 +0100
|
|
|
4ac4fd |
@@ -3396,14 +3396,11 @@ inc (int *a)
|
|
|
4ac4fd |
You can also make all ``simple enough'' functions inline with the option
|
|
|
4ac4fd |
@option{-finline-functions}.
|
|
|
4ac4fd |
|
|
|
4ac4fd |
-@opindex Winline
|
|
|
4ac4fd |
Note that certain usages in a function definition can make it unsuitable
|
|
|
4ac4fd |
for inline substitution. Among these usages are: use of varargs, use of
|
|
|
4ac4fd |
alloca, use of variable sized data types (@pxref{Variable Length}),
|
|
|
4ac4fd |
use of computed goto (@pxref{Labels as Values}), use of nonlocal goto,
|
|
|
4ac4fd |
-and nested functions (@pxref{Nested Functions}). Using @option{-Winline}
|
|
|
4ac4fd |
-will warn when a function marked @code{inline} could not be substituted,
|
|
|
4ac4fd |
-and will give the reason for the failure.
|
|
|
4ac4fd |
+and nested functions (@pxref{Nested Functions}).
|
|
|
4ac4fd |
|
|
|
4ac4fd |
Note that in C and Objective-C, unlike C++, the @code{inline} keyword
|
|
|
4ac4fd |
does not affect the linkage of the function.
|
|
|
4ac4fd |
--- gcc/doc/invoke.texi.jj 2004-07-01 12:34:04.000000000 +0200
|
|
|
4ac4fd |
+++ gcc/doc/invoke.texi 2005-01-03 12:28:05.928165120 +0100
|
|
|
4ac4fd |
@@ -2732,6 +2732,8 @@ code is to provide behavior which is sel
|
|
|
4ac4fd |
@item -Winline
|
|
|
4ac4fd |
@opindex Winline
|
|
|
4ac4fd |
Warn if a function can not be inlined and it was declared as inline.
|
|
|
4ac4fd |
+In GCC 3.2.x, this only works for languages using the RTL inliner,
|
|
|
4ac4fd |
+such as Java, for C, C++ and Objective-C this option has no effect.
|
|
|
4ac4fd |
|
|
|
4ac4fd |
@item -Wlong-long
|
|
|
4ac4fd |
@opindex Wlong-long
|