diff options
author | Brooks Moses <brooks.moses@codesourcery.com> | 2007-03-12 22:10:12 +0000 |
---|---|---|
committer | Brooks Moses <brooks@gcc.gnu.org> | 2007-03-12 15:10:12 -0700 |
commit | b5fe77667b3fe889b7aee49c915fc655f240d1af (patch) | |
tree | a265fe8aa4e4ced9263aef1fb8d4afad572afdf0 | |
parent | 1fe378ede91f2b59cca2303b43c1add65cef8f7b (diff) | |
download | gcc-b5fe77667b3fe889b7aee49c915fc655f240d1af.tar.gz |
extend.texi: Edit "gnu_inline" documentation.
* doc/extend.texi: Edit "gnu_inline" documentation.
* doc/invoke.texi: Edit "-fgnu89-inline" documentation.
From-SVN: r122870
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 9 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 22 |
3 files changed, 22 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f123d10a4d8..5fc37781c2b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com> + * doc/extend.texi: Edit "gnu_inline" documentation. + * doc/invoke.texi: Edit "-fgnu89-inline" documentation. + +2007-03-12 Brooks Moses <brooks.moses@codesourcery.com> + * doc/extend.texi: Fix cpp.info cross-reference. * doc/invoke.texi: Fix cpp.info cross-reference. * doc/passes.texi: Fix gcc.info cross-reference. diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 19bcc5e9787..0ba7c29b500 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1654,10 +1654,11 @@ preprocessor macros @code{__GNUC_GNU_INLINE__} or @code{__GNUC_STDC_INLINE__} are defined. @xref{Inline,,An Inline Function is As Fast As a Macro}. -Note that since the first version of GCC to support C99 inline -semantics is 4.3, earlier versions of GCC which accept this attribute -effectively ignore it. Its only effect is to disable warnings about -using inline functions in C99 mode. +Note that since the first version of GCC to support C99 inline semantics +is 4.3, earlier versions of GCC which accept this attribute effectively +assume that it is always present, whether or not it is given explicitly. +In versions prior to 4.3, the only effect of explicitly including it is +to disable warnings about using inline functions in C99 mode. @cindex @code{flatten} function attribute @item flatten diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index dc3abf1c9e6..90f9d5a9caa 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1218,16 +1218,18 @@ these standard versions. @opindex fgnu89-inline The option @option{-fgnu89-inline} tells GCC to use the traditional GNU semantics for @code{inline} functions when in C99 mode. -@xref{Inline,,An Inline Function is As Fast As a Macro}. This option -is accepted and ignored by GCC versions 4.1.3 up to but not including -4.3. In GCC versions 4.3 and later it changes the behavior of GCC in -C99 mode. Using this option is roughly equivalent to adding the -@code{gnu_inline} function attribute to all inline functions -(@pxref{Function Attributes}). - -The option @option{-fno-gnu89-inline} is not supported in versions of -GCC before 4.3. It will be supported only in C99 or gnu99 mode, not -in C89 or gnu89 mode. +@xref{Inline,,An Inline Function is As Fast As a Macro}. Using this +option is roughly equivalent to adding the @code{gnu_inline} function +attribute to all inline functions (@pxref{Function Attributes}). + +This option is accepted by GCC versions 4.1.3 and up. In GCC versions +prior to 4.3, C99 inline semantics are not supported, and thus this +option is effectively assumed to be present regardless of whether or not +it is specified; the only effect of specifying it explicitly is to +disable warnings about using inline functions in C99 mode. Likewise, +the option @option{-fno-gnu89-inline} is not supported in versions of +GCC before 4.3. It will be supported only in C99 or gnu99 mode, not in +C89 or gnu89 mode. The preprocesor macros @code{__GNUC_GNU_INLINE__} and @code{__GNUC_STDC_INLINE__} may be used to check which semantics are |