diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-02-26 17:09:29 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-02-26 17:09:29 +0000 |
commit | 7e1542b921b63aea61cc239be5eeeb632631a5b9 (patch) | |
tree | a275d8dedbbb1c786a414966d5eb5590a5ad6f80 /gcc/doc/standards.texi | |
parent | 0b901e4cdc55c0c05f72cfac03c25aea6f602d9e (diff) | |
download | gcc-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/standards.texi')
-rw-r--r-- | gcc/doc/standards.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/doc/standards.texi b/gcc/doc/standards.texi index 6886dac..d71cc16 100644 --- a/gcc/doc/standards.texi +++ b/gcc/doc/standards.texi @@ -63,7 +63,7 @@ This standard, in both its forms, is commonly known as @dfn{C89}, or occasionally as @dfn{C90}, from the dates of ratification. The ANSI standard, but not the ISO standard, also came with a Rationale document. To select this standard in GCC, use one of the options -@option{-ansi}, @option{-std=c89} or @option{-std=iso9899:1990}; to obtain +@option{-ansi}, @option{-std=c90} or @option{-std=iso9899:1990}; to obtain all the diagnostics required by the standard, you should also specify @option{-pedantic} (or @option{-pedantic-errors} if you want them to be errors rather than warnings). @xref{C Dialect Options,,Options @@ -99,12 +99,12 @@ Extensions,,Extensions to the C Language Family}. Use of the @option{-std} options listed above will disable these extensions where they conflict with the C standard version selected. You may also select an extended version of the C language explicitly with -@option{-std=gnu89} (for C89 with GNU extensions) or @option{-std=gnu99} +@option{-std=gnu90} (for C90 with GNU extensions) or @option{-std=gnu99} (for C99 with GNU extensions). The default, if no C language dialect -options are given, is @option{-std=gnu89}; this will change to +options are given, is @option{-std=gnu90}; this will change to @option{-std=gnu99} in some future release when the C99 support is complete. Some features that are part of the C99 standard are -accepted as extensions in C89 mode. +accepted as extensions in C90 mode. The ISO C standard defines (in clause 4) two classes of conforming implementation. A @dfn{conforming hosted implementation} supports the |