Commit 3764f879 by Gabriel Dos Reis Committed by Gabriel Dos Reis

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
parent aa0f70e6
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> 2002-07-23 Steve Ellcey <sje@cup.hp.com>
* gcc/explow.c (convert_memory_address): Fix conversion of CONSTs. * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
......
...@@ -1232,7 +1232,7 @@ struct line *thisline = (struct line *) ...@@ -1232,7 +1232,7 @@ struct line *thisline = (struct line *)
thisline->length = this_length; thisline->length = this_length;
@end example @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}. 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 In ISO C99, you would use a @dfn{flexible array member}, which is
...@@ -4533,14 +4533,14 @@ mode. ...@@ -4533,14 +4533,14 @@ mode.
The ISO C99 functions @code{conj}, @code{conjf}, @code{conjl}, The ISO C99 functions @code{conj}, @code{conjf}, @code{conjl},
@code{creal}, @code{crealf}, @code{creall}, @code{cimag}, @code{cimagf}, @code{creal}, @code{crealf}, @code{creall}, @code{cimag}, @code{cimagf},
@code{cimagl}, @code{llabs} and @code{imaxabs} are handled as built-in @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}, versions of the ISO C99 functions @code{cosf}, @code{cosl},
@code{fabsf}, @code{fabsl}, @code{sinf}, @code{sinl}, @code{sqrtf}, and @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 these names for the purpose to which ISO C99 puts them. All these
functions have corresponding versions prefixed with @code{__builtin_}. 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{fprintf}, @code{fputs}, @code{labs}, @code{memcmp}, @code{memcpy},
@code{memset}, @code{printf}, @code{sin}, @code{sqrt}, @code{strcat}, @code{memset}, @code{printf}, @code{sin}, @code{sqrt}, @code{strcat},
@code{strchr}, @code{strcmp}, @code{strcpy}, @code{strcspn}, @code{strchr}, @code{strcmp}, @code{strcpy}, @code{strcspn},
......
...@@ -967,11 +967,11 @@ from C, such as C++ and Objective-C) that the compiler accepts: ...@@ -967,11 +967,11 @@ from C, such as C++ and Objective-C) that the compiler accepts:
@cindex ISO support @cindex ISO support
@item -ansi @item -ansi
@opindex 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++. remove GNU extensions that conflict with ISO C++.
This turns off certain features of GCC that are incompatible with ISO 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 such as the @code{asm} and @code{typeof} keywords, and
predefined macros such as @code{unix} and @code{vax} that identify the predefined macros such as @code{unix} and @code{vax} that identify the
type of system you are using. It also enables the undesirable and type of system you are using. It also enables the undesirable and
...@@ -1012,10 +1012,10 @@ possible values are ...@@ -1012,10 +1012,10 @@ possible values are
@table @samp @table @samp
@item c89 @item c89
@itemx iso9899:1990 @itemx iso9899:1990
ISO C89 (same as @option{-ansi}). ISO C90 (same as @option{-ansi}).
@item iso9899:199409 @item iso9899:199409
ISO C89 as modified in amendment 1. ISO C90 as modified in amendment 1.
@item c99 @item c99
@itemx c9x @itemx c9x
...@@ -1026,7 +1026,7 @@ ISO C99. Note that this standard is not yet fully supported; see ...@@ -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. names @samp{c9x} and @samp{iso9899:199x} are deprecated.
@item gnu89 @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 gnu99
@item gnu9x @item gnu9x
...@@ -1041,7 +1041,7 @@ previous C standards. For example, you may use @code{__restrict__} even ...@@ -1041,7 +1041,7 @@ previous C standards. For example, you may use @code{__restrict__} even
when @option{-std=c99} is not specified. when @option{-std=c99} is not specified.
The @option{-std} options specifying some version of ISO C have the same 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 but are in the specified version (for example, @samp{//} comments and
the @code{inline} keyword in ISO C99) are not disabled. the @code{inline} keyword in ISO C99) are not disabled.
...@@ -1837,7 +1837,7 @@ attributes (@pxref{Function Attributes}), in the @code{printf}, ...@@ -1837,7 +1837,7 @@ attributes (@pxref{Function Attributes}), in the @code{printf},
not in the C standard) families. not in the C standard) families.
The formats are checked against the format features supported by GNU 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 as features from the Single Unix Specification and some BSD and GNU
extensions. Other library implementations may not support all these extensions. Other library implementations may not support all these
features; GCC does not support warning about features that go beyond a features; GCC does not support warning about features that go beyond a
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
@cindex X3.159-1989 @cindex X3.159-1989
@cindex ISO C standard @cindex ISO C standard
@cindex ISO C @cindex ISO C
@cindex ISO C89
@cindex ISO C90 @cindex ISO C90
@cindex ISO/IEC 9899 @cindex ISO/IEC 9899
@cindex ISO 9899 @cindex ISO 9899
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment