From owner-svn-ports-head@FreeBSD.ORG Wed May 22 21:56:54 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 113B6A8D; Wed, 22 May 2013 21:56:54 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 03E5BA8F; Wed, 22 May 2013 21:56:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4MLurqV084297; Wed, 22 May 2013 21:56:53 GMT (envelope-from brooks@svn.freebsd.org) Received: (from brooks@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4MLurPF084296; Wed, 22 May 2013 21:56:53 GMT (envelope-from brooks@svn.freebsd.org) Message-Id: <201305222156.r4MLurPF084296@svn.freebsd.org> From: Brooks Davis Date: Wed, 22 May 2013 21:56:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r318799 - head/lang/clang X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2013 21:56:54 -0000 Author: brooks Date: Wed May 22 21:56:53 2013 New Revision: 318799 URL: http://svnweb.freebsd.org/changeset/ports/318799 Log: Install a more complete set of intrinsics header files[0]. Add a couple upstream svn revs that have been comitted to base[1]: r172354: Refactor the x86 CPU name logic in the driver and pass -march and -mcpu flag information down from the Clang driver into the Gold linker plugin for LTO. This allows specifying -march on the linker commandline and should hopefully have it pass all the way through to the LTO optimizer. r175919: Driver: Pass down the -march setting down to -cc1as on x86 too. The assembler historically didn't make use of any target features, but this has changed when support for old CPUs that don't support long nops was added. Requested by: dim[1], eadler[0] Modified: head/lang/clang/Makefile Modified: head/lang/clang/Makefile ============================================================================== --- head/lang/clang/Makefile Wed May 22 21:52:59 2013 (r318798) +++ head/lang/clang/Makefile Wed May 22 21:56:53 2013 (r318799) @@ -7,7 +7,7 @@ PORTNAME= clang PORTVERSION= 3.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang devel MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/ DISTNAME= ${PORTNAME}-${PORTVERSION}.src @@ -180,4 +180,19 @@ build-plist: ${SED} -e 's|${DATADIR}|@dirrm %%DATADIR%%|' \ -e 's|${DOCSDIR}|%%PORTDOCS%%@dirrm %%DOCSDIR%%|' >> ${PLIST} +.if make(svn-patch) +.if !defined(PATCH_REV) +.error svn-patch requires that PATCH_REV be set +.endif +_PATCH_FILE=${FILESDIR}/patch-svn-${PATCH_REV} +_LLVM_BASE=http://llvm.org/svn/llvm-project/cfe/trunk +svn-patch: + printf "$$%s$$\n" FreeBSD > ${_PATCH_FILE} + svn log -c ${PATCH_REV} ${_LLVM_BASE} >> ${_PATCH_FILE} + svn diff -c ${PATCH_REV} ${_LLVM_BASE} | \ + sed -e 's;^--- ;--- tools/clang/;' | \ + sed -e 's;^+++ ;+++ tools/clang/;' >> \ + ${_PATCH_FILE} +.endif + .include