This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wwwdocs] Update codingconventions.html to note ISO C conversion.
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 19 Jun 2003 07:18:56 -0400
- Subject: [wwwdocs] Update codingconventions.html to note ISO C conversion.
Joseph Myers wrote:
>That should of course be K&R. Could you also deal with updating
>codingconventions.html for the ISO C conversion?
How's this?
Index: codingconventions.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/codingconventions.html,v
retrieving revision 1.21
diff -u -r1.21 codingconventions.html
--- codingconventions.html 22 May 2003 00:09:12 -0000 1.21
+++ codingconventions.html 19 Jun 2003 11:17:36 -0000
@@ -71,16 +71,6 @@
<h2>Portability</h2>
-<p>There are strict requirements for portability of code in GCC to
-older systems whose compilers do not implement the ISO C standard.
-See <a
-href="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/~checkout~/gcc/gcc/README.Portability?content-type=text/plain&only_with_tag=HEAD">README.Portability</a>
-for details of some of the portability problems that may arise. Some
-of these problems are warned about by <code>gcc -Wtraditional</code>,
-which is included in the default warning options in a bootstrap.
-(Code outside the C front end is only compiled by GCC, so such
-requirements do not apply to it.)</p>
-
<p>The programs included in GCC are linked with the
libiberty library, which will replace some standard
library functions if not present on the system used, so those
@@ -95,6 +85,18 @@
older functions must no longer be used in GCC; apart from
<code>index</code>, these identifiers are poisoned to prevent their
use.</p>
+
+<p>There are strict requirements for portability of code in libiberty to
+older systems whose compilers do not implement the ISO C standard.
+See <a
+href="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/~checkout~/gcc/gcc/README.Portability?content-type=text/plain&only_with_tag=HEAD">README.Portability</a>
+for details of some of the portability problems that may arise. Some
+of these problems are warned about by <code>gcc -Wtraditional</code>,
+which is included in the default warning options in a bootstrap.
+Libiberty is now the only part of GCC with these requirements. The
+rest of GCC should be written in ISO C90 (ANSI C89).</p>
+
+<p>Don't use C99 features, however.</p>
<p>Machine-independent files may contain conditionals on features of a
particular system, but should never contain conditionals such as
--
Nathanael Nerode <neroden at gcc.gnu.org>
Don't use the GNU FDL for free documentation. See
<http://home.twcny.rr.com/nerode/neroden/fdl.html>