From owner-p4-projects@FreeBSD.ORG Mon Nov 16 20:35:38 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id AED2D106566C; Mon, 16 Nov 2009 20:35:38 +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 72ECE106568B for ; Mon, 16 Nov 2009 20:35:38 +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 602DA8FC20 for ; Mon, 16 Nov 2009 20:35:38 +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 nAGKZcIM071953 for ; Mon, 16 Nov 2009 20:35:38 GMT (envelope-from rene@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nAGKZcRQ071950 for perforce@freebsd.org; Mon, 16 Nov 2009 20:35:38 GMT (envelope-from rene@FreeBSD.org) Date: Mon, 16 Nov 2009 20:35:38 GMT Message-Id: <200911162035.nAGKZcRQ071950@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 170676 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: Mon, 16 Nov 2009 20:35:38 -0000 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 @@ - 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 - 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.