From owner-svn-src-projects@freebsd.org Thu Jun 22 04:34:10 2017 Return-Path: Delivered-To: svn-src-projects@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 7B12EDA512A for ; Thu, 22 Jun 2017 04:34:10 +0000 (UTC) (envelope-from ngie@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 4BEE86840F; Thu, 22 Jun 2017 04:34:10 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v5M4Y9RU018670; Thu, 22 Jun 2017 04:34:09 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v5M4Y9Om018667; Thu, 22 Jun 2017 04:34:09 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201706220434.v5M4Y9Om018667@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Thu, 22 Jun 2017 04:34:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r320214 - in projects/runtime-coverage/gnu/lib: libstdc++ libsupc++ X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2017 04:34:10 -0000 Author: ngie Date: Thu Jun 22 04:34:09 2017 New Revision: 320214 URL: https://svnweb.freebsd.org/changeset/base/320214 Log: Add COV_CXXFLAGS for gnu/lib/lib{std,sup}c++ Mark libstdc++ with MK_COVERAGE?= no to disable runtime coverage instrumentation with libstdc++. For reasons I don't yet understand, COV_CXXFLAGS isn't being passed down properly to my bsd.lib.mk static rules -- coming in the next commit. Modified: projects/runtime-coverage/gnu/lib/libstdc++/Makefile projects/runtime-coverage/gnu/lib/libsupc++/Makefile Modified: projects/runtime-coverage/gnu/lib/libstdc++/Makefile ============================================================================== --- projects/runtime-coverage/gnu/lib/libstdc++/Makefile Thu Jun 22 04:14:25 2017 (r320213) +++ projects/runtime-coverage/gnu/lib/libstdc++/Makefile Thu Jun 22 04:34:09 2017 (r320214) @@ -1,5 +1,9 @@ # $FreeBSD$ +# XXX (ngie): doesn't build with coverage today; COV_CXXFLAGS is getting passed +# down improperly, resulting in a -Werror issue with strsignal in debug.c. +MK_COVERAGE?= no + .include GCCVER= 4.2 @@ -21,6 +25,7 @@ CFLAGS+= -I${GCCLIB}/include -I${SRCDIR}/include -I. CFLAGS+= -frandom-seed=RepeatabilityConsideredGood CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections \ -Wno-deprecated +COV_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} LIBADD+= m Modified: projects/runtime-coverage/gnu/lib/libsupc++/Makefile ============================================================================== --- projects/runtime-coverage/gnu/lib/libsupc++/Makefile Thu Jun 22 04:14:25 2017 (r320213) +++ projects/runtime-coverage/gnu/lib/libsupc++/Makefile Thu Jun 22 04:34:09 2017 (r320214) @@ -26,6 +26,7 @@ CFLAGS+= -I${GCCLIB}/include -I${SRCDIR} -I${GCCDIR} CFLAGS+= -I${.CURDIR}/../libstdc++ -I. CFLAGS+= -frandom-seed=RepeatabilityConsideredGood CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections +COV_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} HDRS= exception new typeinfo cxxabi.h exception_defines.h