PERFORCE change 170676 for review
Rene Ladan
rene at FreeBSD.org
Mon Nov 16 20:35:38 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=170676
Change 170676 by rene at rene_self on 2009/11/16 20:34:47
[porters-handbook/clang]:
* Clang/GCC use the gnu99/gnu89 standard, not c99/c89 [1]
* Improve text when to try USE_CSTD=gnu89
Submitted by: rdivacky [1], ed [2]
Affected files ...
.. //depot/projects/docproj_nl/en_US.ISO8859-1/books/porters-handbook/book.sgml#53 edit
Differences ...
==== //depot/projects/docproj_nl/en_US.ISO8859-1/books/porters-handbook/book.sgml#53 (text+ko) ====
@@ -13633,11 +13633,13 @@
</listitem>
<listitem>
- <para>Clang uses the C99 standard by default, while GCC uses the C89
- standard by default. Therefore, if there are any errors related
- to missing or already defined functions, try to add
- <literal>USE_CSTD=gnu89</literal> to the port
- <filename>Makefile</filename>.</para>
+ <para>Clang uses the gnu99 standard by default, while GCC uses the
+ gnu89 standard by default. Therefore, if there are any linker
+ errors caused by the different semantics of
+ <literal>inline</literal>, compiler errors caused by the use of
+ reserved C99 keywords (i.e. restrict) or calls to unimplemented
+ ISO C99 math routines try to add <literal>USE_CSTD=gnu89</literal>
+ to the port <filename>Makefile</filename>.</para>
</listitem>
<listitem>
More information about the p4-projects
mailing list