From owner-svn-src-user@FreeBSD.ORG  Sat Oct 23 08:12:45 2010
Return-Path: <owner-svn-src-user@FreeBSD.ORG>
Delivered-To: svn-src-user@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6F7CB106564A;
	Sat, 23 Oct 2010 08:12:45 +0000 (UTC) (envelope-from ed@FreeBSD.org)
Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c])
	by mx1.freebsd.org (Postfix) with ESMTP id 446668FC08;
	Sat, 23 Oct 2010 08:12:45 +0000 (UTC)
Received: from svn.freebsd.org (localhost [127.0.0.1])
	by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9N8Cje8080252;
	Sat, 23 Oct 2010 08:12:45 GMT (envelope-from ed@svn.freebsd.org)
Received: (from ed@localhost)
	by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9N8CjNU080248;
	Sat, 23 Oct 2010 08:12:45 GMT (envelope-from ed@svn.freebsd.org)
Message-Id: <201010230812.o9N8CjNU080248@svn.freebsd.org>
From: Ed Schouten <ed@FreeBSD.org>
Date: Sat, 23 Oct 2010 08:12:45 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-user@freebsd.org
X-SVN-Group: user
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Cc: 
Subject: svn commit: r214234 - in user/ed/compiler-rt/lib: . libblocksruntime
X-BeenThere: svn-src-user@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "SVN commit messages for the experimental &quot; user&quot;
	src tree" <svn-src-user.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-user>,
	<mailto:svn-src-user-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-user>
List-Post: <mailto:svn-src-user@freebsd.org>
List-Help: <mailto:svn-src-user-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-user>,
	<mailto:svn-src-user-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 23 Oct 2010 08:12:45 -0000

Author: ed
Date: Sat Oct 23 08:12:44 2010
New Revision: 214234
URL: http://svn.freebsd.org/changeset/base/214234

Log:
  While we're at it, add libblocksruntime as well.
  
  libblocksruntime is part of compiler-rt and is one of the essential
  libraries needed to make Blocks work.
  
  Discussed with:	rwatson

Added:
  user/ed/compiler-rt/lib/libblocksruntime/
  user/ed/compiler-rt/lib/libblocksruntime/Makefile   (contents, props changed)
  user/ed/compiler-rt/lib/libblocksruntime/config.h   (contents, props changed)
Modified:
  user/ed/compiler-rt/lib/Makefile

Modified: user/ed/compiler-rt/lib/Makefile
==============================================================================
--- user/ed/compiler-rt/lib/Makefile	Sat Oct 23 08:07:05 2010	(r214233)
+++ user/ed/compiler-rt/lib/Makefile	Sat Oct 23 08:12:44 2010	(r214234)
@@ -54,6 +54,7 @@ SUBDIR=	${SUBDIR_ORDERED} \
 	libarchive \
 	${_libatm} \
 	libbegemot \
+	libblocksruntime \
 	${_libbluetooth} \
 	${_libbsnmp} \
 	libbz2 \

Added: user/ed/compiler-rt/lib/libblocksruntime/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/ed/compiler-rt/lib/libblocksruntime/Makefile	Sat Oct 23 08:12:44 2010	(r214234)
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+LIB=	BlocksRuntime
+SHLIB_MAJOR=0
+CFLAGS+=-I.
+WARNS?=	2
+
+.PATH: ${.CURDIR}/../../contrib/compiler-rt/BlocksRuntime
+
+INCS=	Block.h Block_private.h
+SRCS=	data.c runtime.c
+
+.include <bsd.lib.mk>

Added: user/ed/compiler-rt/lib/libblocksruntime/config.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/ed/compiler-rt/lib/libblocksruntime/config.h	Sat Oct 23 08:12:44 2010	(r214234)
@@ -0,0 +1,14 @@
+/* $FreeBSD$ */
+
+/* #undef HAVE_SYS_BYTEORDER_H */
+/* #undef HAVE_AVAILABILITY_MACROS_H */
+/* #undef HAVE_TARGET_CONDITIONALS_H */
+/* #undef HAVE_LIBKERN_OSATOMIC_H */
+
+#define HAVE_SYSCONF 1
+
+/* #undef HAVE_OSATOMIC_COMPARE_AND_SWAP_INT */
+/* #undef HAVE_OSATOMIC_COMPARE_AND_SWAP_LONG */
+
+#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT 1
+#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG 1