This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Say ISO C90, not ISO C89


Geoff Keating <geoffk@geoffk.org> writes:

| Gabriel Dos Reis <gdr@nerim.net> writes:
| 
| > This patchlet changes the spelling 'ISO C89' to 'ISO C90' in
| > diagnostic messages -- as there is nothing named 'ISO C89'.  
| > 
| > Bootstrapped and tested on an i686-pc-linux-gnu.
| 
| Please change doc/invoke.texi, which mentions C89 in many places, at
| the same time.

Done with the patch below.

|  If there isn't one already, it might help to add an
| index entry that refers to a definition of ISO C90.

There is already an index.

Thanks,

-- Gaby

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.

Index: doc/extend.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/extend.texi,v
retrieving revision 1.88
diff -p -r1.88 extend.texi
*** doc/extend.texi	6 Jul 2002 00:16:42 -0000	1.88
--- doc/extend.texi	23 Jul 2002 15:50:22 -0000
*************** struct line *thisline = (struct line *)
*** 1232,1238 ****
  thisline->length = this_length;
  @end example
  
! In ISO C89, 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
--- 1232,1238 ----
  thisline->length = this_length;
  @end example
  
! 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
*************** mode.
*** 4533,4546 ****
  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
  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
  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},
  @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},
--- 4533,4546 ----
  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 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 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 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},
Index: doc/invoke.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/invoke.texi,v
retrieving revision 1.158
diff -p -r1.158 invoke.texi
*** doc/invoke.texi	16 Jul 2002 17:46:33 -0000	1.158
--- doc/invoke.texi	23 Jul 2002 15:50:28 -0000
*************** from C, such as C++ and Objective-C) tha
*** 967,977 ****
  @cindex ISO support
  @item -ansi
  @opindex ansi
! In C mode, support all ISO C89 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),
  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
--- 967,977 ----
  @cindex ISO support
  @item -ansi
  @opindex ansi
! 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
! 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
*************** possible values are
*** 1012,1021 ****
  @table @samp
  @item c89
  @itemx iso9899:1990
! ISO C89 (same as @option{-ansi}).
  
  @item iso9899:199409
! ISO C89 as modified in amendment 1.
  
  @item c99
  @itemx c9x
--- 1012,1021 ----
  @table @samp
  @item c89
  @itemx iso9899:1990
! ISO C90 (same as @option{-ansi}).
  
  @item iso9899:199409
! ISO C90 as modified in amendment 1.
  
  @item c99
  @itemx c9x
*************** ISO C99.  Note that this standard is not
*** 1026,1032 ****
  names @samp{c9x} and @samp{iso9899:199x} are deprecated.
  
  @item gnu89
! Default, ISO C89 plus GNU extensions (including some C99 features).
  
  @item gnu99
  @item gnu9x
--- 1026,1032 ----
  names @samp{c9x} and @samp{iso9899:199x} are deprecated.
  
  @item gnu89
! Default, ISO C90 plus GNU extensions (including some C99 features).
  
  @item gnu99
  @item gnu9x
*************** previous C standards.  For example, you 
*** 1041,1047 ****
  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
  but are in the specified version (for example, @samp{//} comments and
  the @code{inline} keyword in ISO C99) are not disabled.
  
--- 1041,1047 ----
  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 C90
  but are in the specified version (for example, @samp{//} comments and
  the @code{inline} keyword in ISO C99) are not disabled.
  
*************** attributes (@pxref{Function Attributes})
*** 1837,1843 ****
  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
  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
--- 1837,1843 ----
  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 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
Index: doc/standards.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/standards.texi,v
retrieving revision 1.7
diff -p -r1.7 standards.texi
*** doc/standards.texi	9 Jun 2002 22:40:14 -0000	1.7
--- doc/standards.texi	23 Jul 2002 15:50:28 -0000
***************
*** 14,20 ****
  @cindex X3.159-1989
  @cindex ISO C standard
  @cindex ISO C
- @cindex ISO C89
  @cindex ISO C90
  @cindex ISO/IEC 9899
  @cindex ISO 9899
--- 14,19 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]