extend.texi: Say ISO C90, not ISO C89.
2002-07-23 Gabriel Dos Reis <gdr@nerim.net> * doc/extend.texi: Say ISO C90, not ISO C89. * doc/invoke.texi: Likewise. * doc/standards.texi: Likewise. From-SVN: r55680
This commit is contained in:
parent
aa0f70e672
commit
3764f879a7
4 changed files with 17 additions and 12 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
|
||||
|
||||
* doc/extend.texi: Say ISO C90, not ISO C89.
|
||||
* doc/invoke.texi: Likewise.
|
||||
* doc/standards.texi: Likewise.
|
||||
|
||||
2002-07-23 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
* gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
|
||||
|
|
|
@ -1232,7 +1232,7 @@ struct line *thisline = (struct line *)
|
|||
thisline->length = this_length;
|
||||
@end example
|
||||
|
||||
In ISO C89, you would have to give @code{contents} a length of 1, which
|
||||
In ISO C90, you would have to give @code{contents} a length of 1, which
|
||||
means either you waste space or complicate the argument to @code{malloc}.
|
||||
|
||||
In ISO C99, you would use a @dfn{flexible array member}, which is
|
||||
|
@ -4533,14 +4533,14 @@ mode.
|
|||
The ISO C99 functions @code{conj}, @code{conjf}, @code{conjl},
|
||||
@code{creal}, @code{crealf}, @code{creall}, @code{cimag}, @code{cimagf},
|
||||
@code{cimagl}, @code{llabs} and @code{imaxabs} are handled as built-in
|
||||
functions except in strict ISO C89 mode. There are also built-in
|
||||
functions except in strict ISO C90 mode. There are also built-in
|
||||
versions of the ISO C99 functions @code{cosf}, @code{cosl},
|
||||
@code{fabsf}, @code{fabsl}, @code{sinf}, @code{sinl}, @code{sqrtf}, and
|
||||
@code{sqrtl}, that are recognized in any mode since ISO C89 reserves
|
||||
@code{sqrtl}, that are recognized in any mode since ISO C90 reserves
|
||||
these names for the purpose to which ISO C99 puts them. All these
|
||||
functions have corresponding versions prefixed with @code{__builtin_}.
|
||||
|
||||
The ISO C89 functions @code{abs}, @code{cos}, @code{fabs},
|
||||
The ISO C90 functions @code{abs}, @code{cos}, @code{fabs},
|
||||
@code{fprintf}, @code{fputs}, @code{labs}, @code{memcmp}, @code{memcpy},
|
||||
@code{memset}, @code{printf}, @code{sin}, @code{sqrt}, @code{strcat},
|
||||
@code{strchr}, @code{strcmp}, @code{strcpy}, @code{strcspn},
|
||||
|
|
|
@ -967,11 +967,11 @@ from C, such as C++ and Objective-C) that the compiler accepts:
|
|||
@cindex ISO support
|
||||
@item -ansi
|
||||
@opindex ansi
|
||||
In C mode, support all ISO C89 programs. In C++ mode,
|
||||
In C mode, support all ISO C90 programs. In C++ mode,
|
||||
remove GNU extensions that conflict with ISO C++.
|
||||
|
||||
This turns off certain features of GCC that are incompatible with ISO
|
||||
C89 (when compiling C code), or of standard C++ (when compiling C++ code),
|
||||
C90 (when compiling C code), or of standard C++ (when compiling C++ code),
|
||||
such as the @code{asm} and @code{typeof} keywords, and
|
||||
predefined macros such as @code{unix} and @code{vax} that identify the
|
||||
type of system you are using. It also enables the undesirable and
|
||||
|
@ -1012,10 +1012,10 @@ possible values are
|
|||
@table @samp
|
||||
@item c89
|
||||
@itemx iso9899:1990
|
||||
ISO C89 (same as @option{-ansi}).
|
||||
ISO C90 (same as @option{-ansi}).
|
||||
|
||||
@item iso9899:199409
|
||||
ISO C89 as modified in amendment 1.
|
||||
ISO C90 as modified in amendment 1.
|
||||
|
||||
@item c99
|
||||
@itemx c9x
|
||||
|
@ -1026,7 +1026,7 @@ ISO C99. Note that this standard is not yet fully supported; see
|
|||
names @samp{c9x} and @samp{iso9899:199x} are deprecated.
|
||||
|
||||
@item gnu89
|
||||
Default, ISO C89 plus GNU extensions (including some C99 features).
|
||||
Default, ISO C90 plus GNU extensions (including some C99 features).
|
||||
|
||||
@item gnu99
|
||||
@item gnu9x
|
||||
|
@ -1041,7 +1041,7 @@ previous C standards. For example, you may use @code{__restrict__} even
|
|||
when @option{-std=c99} is not specified.
|
||||
|
||||
The @option{-std} options specifying some version of ISO C have the same
|
||||
effects as @option{-ansi}, except that features that were not in ISO C89
|
||||
effects as @option{-ansi}, except that features that were not in ISO C90
|
||||
but are in the specified version (for example, @samp{//} comments and
|
||||
the @code{inline} keyword in ISO C99) are not disabled.
|
||||
|
||||
|
@ -1837,7 +1837,7 @@ attributes (@pxref{Function Attributes}), in the @code{printf},
|
|||
not in the C standard) families.
|
||||
|
||||
The formats are checked against the format features supported by GNU
|
||||
libc version 2.2. These include all ISO C89 and C99 features, as well
|
||||
libc version 2.2. These include all ISO C90 and C99 features, as well
|
||||
as features from the Single Unix Specification and some BSD and GNU
|
||||
extensions. Other library implementations may not support all these
|
||||
features; GCC does not support warning about features that go beyond a
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
@cindex X3.159-1989
|
||||
@cindex ISO C standard
|
||||
@cindex ISO C
|
||||
@cindex ISO C89
|
||||
@cindex ISO C90
|
||||
@cindex ISO/IEC 9899
|
||||
@cindex ISO 9899
|
||||
|
|
Loading…
Add table
Reference in a new issue