aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/cpp.texi
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2010-02-26 17:09:29 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2010-02-26 17:09:29 +0000
commit7e1542b921b63aea61cc239be5eeeb632631a5b9 (patch)
treea275d8dedbbb1c786a414966d5eb5590a5ad6f80 /gcc/doc/cpp.texi
parent0b901e4cdc55c0c05f72cfac03c25aea6f602d9e (diff)
downloadgcc-7e1542b921b63aea61cc239be5eeeb632631a5b9.zip
gcc-7e1542b921b63aea61cc239be5eeeb632631a5b9.tar.gz
gcc-7e1542b921b63aea61cc239be5eeeb632631a5b9.tar.bz2
re PR c/20631 (Support -std=c90 as alias for -std=c89)
2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c/20631 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89. * doc/standards.texi: Likewise. * doc/extend.texi: Likewise. * doc/trouble.texi: Likewise. * doc/cppopts.texi: Likewise. * doc/install.texi: Likewise. * c.opt (std=c90,std=gnu90): New options. * c-opts.c (c_common_handle_option): Handle them. testsuite/ * gcc.dg/cpp/c90-pedantic.c: New. * gcc.dg/cpp/c90.c: New. * gcc.dg/gnu90-const-expr-1.c: New. * gcc.dg/Woverlength-strings-pedantic-c90.c: New. From-SVN: r157096
Diffstat (limited to 'gcc/doc/cpp.texi')
-rw-r--r--gcc/doc/cpp.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi
index 1a322ba..a994178 100644
--- a/gcc/doc/cpp.texi
+++ b/gcc/doc/cpp.texi
@@ -215,7 +215,7 @@ Standard C@. In its default mode, the GNU C preprocessor does not do a
few things required by the standard. These are features which are
rarely, if ever, used, and may cause surprising changes to the meaning
of a program which does not expect them. To get strict ISO Standard C,
-you should use the @option{-std=c89} or @option{-std=c99} options, depending
+you should use the @option{-std=c90} or @option{-std=c99} options, depending
on which version of the standard you want. To get all the mandatory
diagnostics, you must also use @option{-pedantic}. @xref{Invocation}.
@@ -2064,7 +2064,7 @@ 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. Object files will contain
+handled in GCC's traditional gnu90 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}.
@@ -2077,10 +2077,10 @@ 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
+attribute as a way to always get the gnu90 behavior. Support for
this and @code{__GNUC_GNU_INLINE__} was added in GCC 4.1.3. If
neither macro is defined, an older version of GCC is being used:
-@code{inline} functions will be compiled in gnu89 mode, and the
+@code{inline} functions will be compiled in gnu90 mode, and the
@code{gnu_inline} function attribute will not be recognized.
@item __CHAR_UNSIGNED__