From owner-freebsd-toolchain@FreeBSD.ORG Sun Nov 24 12:54:28 2013 Return-Path: Delivered-To: toolchain@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 186AFF3B; Sun, 24 Nov 2013 12:54:28 +0000 (UTC) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DE7982FBC; Sun, 24 Nov 2013 12:54:24 +0000 (UTC) Received: from [192.168.0.2] (cpc27-cmbg15-2-0-cust235.5-4.cable.virginm.net [86.27.188.236]) (authenticated bits=0) by theravensnest.org (8.14.5/8.14.5) with ESMTP id rAOCsF6e080067 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 24 Nov 2013 12:54:16 GMT (envelope-from theraven@FreeBSD.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Apple's GCC 42 enhancements (was Re: [CFT] Experimental gcc update). From: David Chisnall In-Reply-To: <529127F8.5080606@FreeBSD.org> Date: Sun, 24 Nov 2013 12:54:10 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <3826345B-E783-43C7-B4AB-A05C95C1A8A2@FreeBSD.org> References: <528A924A.8050904@FreeBSD.org> <529127F8.5080606@FreeBSD.org> To: Pedro Giffuni X-Mailer: Apple Mail (2.1508) Cc: toolchain@FreeBSD.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Nov 2013 12:54:28 -0000 On 23 Nov 2013, at 22:11, Pedro Giffuni wrote: > I have particular interest in -fwritable-strings > and the block support, mostly with the idea of making our gcc > somewhat more compatible to clang. I would absolutely love to see our GCC have blocks support. It would be = very nice to be able to use blocks in libc. =20 I have some macros that allow code to call blocks even when compiled = with a compiler that doesn't support them, but having native blocks = support would be fantastic. It's worth noting that Apple's libc = includes a few _b variants of standard library functions: scandir_b err_set_exit_b fts_open_b glob_b atexit_b bsearch_b heapsort_b mergesort_b psort_b qsort_b These all do the same as their non-_b-suffixed equivalents, but take a = block as an argument instead of a function pointer. Adding them has = been on my todo list for a while, and this would give me a strong = incentive to do so... David