aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/cpp.texi
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-04-17 05:19:22 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2007-04-17 05:19:22 +0000
commit4075e2319853586499e3d059ff514151deca2396 (patch)
tree18425544d568873b9991b434e7e5f85453825559 /gcc/doc/cpp.texi
parent5a0ed003f06f858e950ea3098e573d8d4361674e (diff)
downloadgcc-4075e2319853586499e3d059ff514151deca2396.zip
gcc-4075e2319853586499e3d059ff514151deca2396.tar.gz
gcc-4075e2319853586499e3d059ff514151deca2396.tar.bz2
cpp.texi (Common Predefined Macros): Clarify description of __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
* doc/cpp.texi (Common Predefined Macros): Clarify description of __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__. From-SVN: r123907
Diffstat (limited to 'gcc/doc/cpp.texi')
-rw-r--r--gcc/doc/cpp.texi17
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi
index 2a57fee..fe2a93b 100644
--- a/gcc/doc/cpp.texi
+++ b/gcc/doc/cpp.texi
@@ -2016,18 +2016,17 @@ are defined. If they are defined, their value is 1.
@item __GNUC_GNU_INLINE__
GCC defines this macro if functions declared @code{inline} will be
-handled in GCC's traditional gnu89 mode. In this mode an @code{extern
-inline} function will never be compiled as a standalone function, and
-an @code{inline} function which is neither @code{extern} nor
-@code{static} will always be compiled as a standalone function.
+handled in GCC's traditional gnu89 mode. Object files will contain
+externally visible definitions of all functions declared @code{inline}
+without @code{extern} or @code{static}. They will not contain any
+definitions of any functions declared @code{extern inline}.
@item __GNUC_STDC_INLINE__
GCC defines this macro if functions declared @code{inline} will be
-handled according to the ISO C99 standard. In this mode an
-@code{extern inline} function will always be compiled as a standalone
-externally visible function, and an @code{inline} function which is
-neither @code{extern} nor @code{static} will never be compiled as a
-standalone function.
+handled according to the ISO C99 standard. Object files will contain
+externally visible definitions of all functions declared @code{extern
+inline}. They will not contain definitions of any functions declared
+@code{inline} without @code{extern}.
If this macro is defined, GCC supports the @code{gnu_inline} function
attribute as a way to always get the gnu89 behavior. Support for