Date: Mon, 16 Nov 2009 20:35:38 GMT From: Rene Ladan <rene@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 170676 for review Message-ID: <200911162035.nAGKZcRQ071950@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=170676 Change 170676 by rene@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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911162035.nAGKZcRQ071950>