From 3764f879a7932d7cf7b6e51bdd8b2d4322bc0e79 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis <gdr@nerim.net> Date: Tue, 23 Jul 2002 15:52:02 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/doc/extend.texi | 8 ++++---- gcc/doc/invoke.texi | 14 +++++++------- gcc/doc/standards.texi | 1 - 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9f0d3632fa0..fc4951222352 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 56b92e74ff27..c37701bd3957 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -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}, diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 6497fe38b388..56d98bc2c19f 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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 diff --git a/gcc/doc/standards.texi b/gcc/doc/standards.texi index 12176e5dc381..f925cde01bd9 100644 --- a/gcc/doc/standards.texi +++ b/gcc/doc/standards.texi @@ -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 -- GitLab