From owner-svn-src-all@FreeBSD.ORG Sun Jan 5 11:46:07 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74275FFD; Sun, 5 Jan 2014 11:46:07 +0000 (UTC) Received: from mailrelay011.isp.belgacom.be (mailrelay011.isp.belgacom.be [195.238.6.178]) by mx1.freebsd.org (Postfix) with ESMTP id 8F6E2182C; Sun, 5 Jan 2014 11:46:06 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlsGABxFyVJR8nf4/2dsb2JhbABYgws4Sbk3gQsXdIIlAQEBBDocIxALFAQJJQ8qHgaIGwEIw08Xjw8HhDcEmBaBMZBlgW+BPzs Received: from 248.119-242-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.242.119.248]) by relay.skynet.be with ESMTP; 05 Jan 2014 12:45:58 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id s05BjvXX001404; Sun, 5 Jan 2014 12:45:57 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Sun, 5 Jan 2014 12:45:57 +0100 From: Tijl Coosemans To: "Pedro F. Giffuni" Subject: Re: svn commit: r260311 - in head/contrib: gcc gcc/cp gcc/doc gcclibs/include gcclibs/libiberty Message-ID: <20140105124557.5dd8395a@kalimero.tijl.coosemans.org> In-Reply-To: <201401050043.s050hSMI089553@svn.freebsd.org> References: <201401050043.s050hSMI089553@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jan 2014 11:46:07 -0000 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.