aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>1999-02-08 14:02:13 -0800
committerRichard Henderson <rth@gcc.gnu.org>1999-02-08 14:02:13 -0800
commit247b14bd495dfa8ed32986c59fbdda7c4a482265 (patch)
tree3124911c1cb5b517283d1448d6c7b7a7862212e7
parent29ae5b893490bb4f005b9597946be24be043a080 (diff)
downloadgcc-247b14bd495dfa8ed32986c59fbdda7c4a482265.zip
gcc-247b14bd495dfa8ed32986c59fbdda7c4a482265.tar.gz
gcc-247b14bd495dfa8ed32986c59fbdda7c4a482265.tar.bz2
Clarify inline substitution failure.
From-SVN: r25103
-rw-r--r--gcc/extend.texi12
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/extend.texi b/gcc/extend.texi
index 88f4588..a90be58 100644
--- a/gcc/extend.texi
+++ b/gcc/extend.texi
@@ -2258,10 +2258,16 @@ inc (int *a)
(If you are writing a header file to be included in ANSI C programs, write
@code{__inline__} instead of @code{inline}. @xref{Alternate Keywords}.)
-
You can also make all ``simple enough'' functions inline with the option
-@samp{-finline-functions}. Note that certain usages in a function
-definition can make it unsuitable for inline substitution.
+@samp{-finline-functions}.
+
+Note that certain usages in a function definition can make it unsuitable
+for inline substitution. Among these usages are: use of varargs, use of
+alloca, use of variable sized data types (@pxref{Variable Length}),
+use of computed goto (@pxref{Labels as Values}), use of nonlocal goto,
+and nested functions (@pxref{Nested Functions}). Using @samp{-Winline}
+will warn when a function marked @code{inline} could not be substituted,
+and will give the reason for the failure.
Note that in C and Objective C, unlike C++, the @code{inline} keyword
does not affect the linkage of the function.