From owner-p4-projects@FreeBSD.ORG Sat Jan 2 18:09:07 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 57F141065692; Sat, 2 Jan 2010 18:09:07 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C6B2106568B for ; Sat, 2 Jan 2010 18:09:07 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0979D8FC12 for ; Sat, 2 Jan 2010 18:09:07 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o02I96dh010350 for ; Sat, 2 Jan 2010 18:09:06 GMT (envelope-from rene@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o02I96v9010348 for perforce@freebsd.org; Sat, 2 Jan 2010 18:09:06 GMT (envelope-from rene@FreeBSD.org) Date: Sat, 2 Jan 2010 18:09:06 GMT Message-Id: <201001021809.o02I96v9010348@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rene@FreeBSD.org using -f From: Rene Ladan To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 172483 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 18:09:07 -0000 http://p4web.freebsd.org/chv.cgi?CH=172483 Change 172483 by rene@rene_self on 2010/01/02 18:08:09 [porters-handbook/clang] - respect 72 columns - add c89 to list of programs not to invoke directly - remove note on -O4, current versions of clang/llvm do the right thing - remove references to my server, moved to the wiki Affected files ... .. //depot/projects/docproj_nl/en_US.ISO8859-1/books/porters-handbook/book.sgml#65 edit Differences ... ==== //depot/projects/docproj_nl/en_US.ISO8859-1/books/porters-handbook/book.sgml#65 (text+ko) ==== @@ -13666,19 +13666,20 @@ Clang: new C/C++ compiler - A future version of &os; will likely have the Clang C/C++ - compiler as its base compiler. Some modifications to the Ports - Collection are necessary. In general, these involve - generalizing the port and making the source - code portable. More specifically: + A future version of &os; will have the Clang C/C++ + compiler as its base compiler. Some modifications to the + Ports Collection are necessary. In general, these involve + generalizing the port and making the + source code portable. More specifically: - Respect the CC and CXX - variables. Do not use any of the programs cc, - c99, gcc, - c++, or g++ in a port - directly. + Respect the CC and + CXX variables. Do not use any of the + programs cc, + c89, c99, + gcc, c++, or + g++ in a port directly. @@ -13687,28 +13688,31 @@ - Do not use cpp for reformatting manual - pages or shell scripts. Try to use something more suitable - instead, possibly falling back to CPP. + Do not use cpp for reformatting + manual pages or shell scripts. Try to use something more + suitable instead, possibly falling back to + CPP. - 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 - inline, compiler errors caused by the use of - reserved C99 keywords (i.e. restrict) or calls to unimplemented - ISO C99 math routines try to add USE_CSTD=gnu89 - to the port Makefile. + 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 + inline, compiler errors caused by the + use of reserved C99 keywords (i.e. restrict) or calls to + unimplemented ISO C99 math routines, try to add + USE_CSTD=gnu89 to the port + Makefile. - The -traditional option is not supported, - so existing occurrences have to be removed. No consensus has yet - been reached on ports abusing this option to preserve white space - in text formatting. Note that the Clang preprocessor does not - preserve white space. + The -traditional option is not + supported, so existing occurrences have to be removed. + No consensus has yet been reached on ports which abuse + this option to preserve white space in text formatting. + Note that the Clang preprocessor does not preserve white + space. @@ -13725,21 +13729,14 @@ int main(void) - - - The maximum usable optimization level is 3. Level 4 is - reserved for link-time optimization for the Clang backend. - - - Some temporary hacks that might be used if all else fails: - Adding -fheinous-gnu-extensions. Note - that this option is already deprecated. + Adding -fheinous-gnu-extensions. + Note that this option is already deprecated. @@ -13750,15 +13747,6 @@ -Werror. - - The current patch set can be downloaded from a server of rene@. - A customizable - script to automatically update your Tinderbox Ports Tree - and apply the patches to it is also available. You might also want - to fetch the - list of files to remove from there. This list is relative - to the Tinderbox Ports Tree.