From owner-svn-src-stable@freebsd.org Sat Apr 29 23:26:37 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1146D552A4; Sat, 29 Apr 2017 23:26:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97FEA15D9; Sat, 29 Apr 2017 23:26:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3TNQap1019585; Sat, 29 Apr 2017 23:26:36 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3TNQars019583; Sat, 29 Apr 2017 23:26:36 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201704292326.v3TNQars019583@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Sat, 29 Apr 2017 23:26:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r317599 - in stable: 10/lib/clang 10/lib/clang/include/llvm/Config 11/lib/clang 11/lib/clang/include/llvm/Config X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2017 23:26:38 -0000 Author: dim Date: Sat Apr 29 23:26:36 2017 New Revision: 317599 URL: https://svnweb.freebsd.org/changeset/base/317599 Log: MFC r317214: Turn off llvm/clang's ENABLE_BACKTRACES setting, since it never worked properly anyway. (Upstream has reorganized this somewhat in the mean time, but for proper backtraces we would need llvm-symbolizer in base.) MFC r317215: Add function and data sections when building llvm, clang, lld and lldb, and allow the linker to garbage collect them. This shaves off up to a few MB from the final executables. Modified: stable/10/lib/clang/clang.build.mk stable/10/lib/clang/include/llvm/Config/config.h Directory Properties: stable/10/ (props changed) Changes in other areas also in this revision: Modified: stable/11/lib/clang/include/llvm/Config/config.h stable/11/lib/clang/llvm.build.mk Directory Properties: stable/11/ (props changed) Modified: stable/10/lib/clang/clang.build.mk ============================================================================== --- stable/10/lib/clang/clang.build.mk Sat Apr 29 21:48:11 2017 (r317598) +++ stable/10/lib/clang/clang.build.mk Sat Apr 29 23:26:36 2017 (r317599) @@ -31,7 +31,9 @@ TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x8 BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/}-unknown-freebsd10.3 CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \ -DLLVM_HOST_TRIPLE=\"${BUILD_TRIPLE}\" \ - -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\" + -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\" \ + -ffunction-sections -fdata-sections +LDFLAGS+= -Wl,--gc-sections CXXFLAGS+= -fno-exceptions -fno-rtti .PATH: ${LLVM_SRCS}/${SRCDIR} Modified: stable/10/lib/clang/include/llvm/Config/config.h ============================================================================== --- stable/10/lib/clang/include/llvm/Config/config.h Sat Apr 29 21:48:11 2017 (r317598) +++ stable/10/lib/clang/include/llvm/Config/config.h Sat Apr 29 23:26:36 2017 (r317599) @@ -24,7 +24,7 @@ /* #undef DEFAULT_SYSROOT */ /* Define if you want backtraces on crash */ -#define ENABLE_BACKTRACES 1 +#define ENABLE_BACKTRACES 0 /* Define to enable crash handling overrides */ #define ENABLE_CRASH_OVERRIDES 1