From owner-svn-src-head@FreeBSD.ORG Sun Jan 5 19:50:59 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A5B48F3 for ; Sun, 5 Jan 2014 19:50:59 +0000 (UTC) Received: from nm49-vm6.bullet.mail.bf1.yahoo.com (nm49-vm6.bullet.mail.bf1.yahoo.com [216.109.115.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DE0141E96 for ; Sun, 5 Jan 2014 19:50:58 +0000 (UTC) Received: from [98.139.214.32] by nm49.bullet.mail.bf1.yahoo.com with NNFMP; 05 Jan 2014 19:45:26 -0000 Received: from [98.139.213.10] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 05 Jan 2014 19:45:25 -0000 Received: from [127.0.0.1] by smtp110.mail.bf1.yahoo.com with NNFMP; 05 Jan 2014 19:45:25 -0000 X-Yahoo-Newman-Id: 948913.57254.bm@smtp110.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: o_N2T9MVM1l4pnbbnB1a795II4RrHrDZ.GLzh.0aw9WBszm CH01WLYsoOChiWJjvjjUo3iSn7fJ9ST6N1y_tjPNAYPA.Z34JpXvvUX3X32g IvKXp9NCMAcHPs8SmdhO6X284b1e.9fZB0ebq.tYYKNPmfgqpz69SmMMxpx_ 5gbiurn17q2XFEsZfPK4vx8.nDVpNgKld4ZEfNnpeahnGPE0sBAI2cCcavMP sf_jG.om6unpPj61Gx7OAd4WoHnXmGb9hKs_wE6l0Q301cfsZYTVuhDTIL_b VDjhgkQPysi50jmQM_ArFQxF9fcp8hcUgu.Co8EXWsIRkkaA5oqLzN1bF9Bt lFT0zq.ocsv.fTqajWTkdKniJ1eVI9OEIEjcqcBCz0DRQTw6j30mJVcYcRgr CSMwHj9ZtSt79dtCcKmLZB8BCu3qcT0l.nogwhJPN73dH8uhOGnAsK5.Pq6x F.6B24Ze_mH2rnfyeQTemDWBvTPR4FJyvJuzEjqMy5F15mUW2uey3PjF.Zqg Im.arDtjIZbJZ3usOTXOacwH0HNHJcDBSg_yQLLq4SP_mVP.XloZu1uOHOIM kCrsygS4.oQn.MwxLL7RfctcHdifZqxCz0a0TnJHH6Vc5JTd_G7ChyOqgRYR kbQimGD52jhmTKOFymU9uyMICGpSV X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with plain [63.250.193.228]) by smtp110.mail.bf1.yahoo.com with SMTP; 05 Jan 2014 11:45:25 -0800 PST Message-ID: <52C9B652.9040102@FreeBSD.org> Date: Sun, 05 Jan 2014 14:45:22 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Tijl Coosemans Subject: Re: svn commit: r260311 - in head/contrib: gcc gcc/cp gcc/doc gcclibs/include gcclibs/libiberty References: <201401050043.s050hSMI089553@svn.freebsd.org> <20140105124557.5dd8395a@kalimero.tijl.coosemans.org> <52C985C7.9060406@FreeBSD.org> <20140105174221.220d9a13@kalimero.tijl.coosemans.org> In-Reply-To: <20140105174221.220d9a13@kalimero.tijl.coosemans.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, bapt@FreeBSD.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jan 2014 19:50:59 -0000 On 05.01.2014 11:42, Tijl Coosemans wrote: > On Sun, 05 Jan 2014 11:18:15 -0500 Pedro Giffuni wrote: >> On 05.01.2014 06:45, Tijl Coosemans wrote: >>> On Sun, 5 Jan 2014 00:43:28 +0000 (UTC) Pedro F. Giffuni wrote: >>>> Author: pfg >>>> Date: Sun Jan 5 00:43:28 2014 >>>> New Revision: 260311 >>>> URL: http://svnweb.freebsd.org/changeset/base/260311 >>>> >>>> Log: >>>> gcc: Add support for Apple's Block extension >>>> >>>> Block objects [1] are a C-level syntactic and runtime feature. They >>>> are similar to standard C functions, but in addition to executable >>>> code they may also contain variable bindings to automatic (stack) >>>> or managed (heap) memory. A block can therefore maintain a set of >>>> state (data) that it can use to impact behavior when executed. >>>> >>>> This port is based on Apple's GCC 5646 with some bugfixes from >>>> Apple GCC 5666.3. It has some small differences with the support >>>> in clang, which remains the recommended compiler. >>>> >>>> Perhaps the most notable difference is that in GCC that __block >>>> is not actually a keyword, but a macro. There will be workaround >>>> for this issue in a near future. Other issues can be consulted in >>>> the clang documentation [2] >>>> >>>> For better compatiblity with Apple's GCC and llvm-gcc some related >>>> fixes and features from Apple have been included. Support for the >>>> non-standard nested functions in GCC is now off by default. >>> Some ports use nested functions. >> We now have the Apple-GCC compatible -fnested-functions, >> however, this is of little relevance because on FreeBSD 10+ >> the default compiler (clang) doesn't support them at all. >> >> Most such ports should already be using the fsf gcc but >> I am not going to find out which do or dont; I simply won't >> merge this to 9 until there is a good reason to do it. * > Doesn't this affect architectures where clang isn't the default yet? Yes, it may affect a small number of ports in tier 2 platforms. The fix is rather trivial though and gcc is rather verbal about it. For tier 2 platforms it would be especially ugly to have people build a new version of gcc to run such ports. > You can grep the ports tree for nestedfct which currently implies > USE_GCC=any, i.e. use base system gcc when available, otherwise use > lang/gcc port. Do you think it's best to change this into USE_GCC=yes, > i.e. always use lang/gcc port? That search would be big: many ports (OpenOffice for example) can build with gcc 4.2 but it doesn't use nested functions. The most reliable way to catch them all would be to make an experimental run on the ports tree but we currently don't have that capacity for tier 2 platforms. I think it would be best to have upstream ports learn about -fnested-functions (stuff that works on Apple should already know) and on the long run hope that upstream authors will avoid the feature altogether. Pedro.