From owner-svn-src-projects@freebsd.org Mon Oct 23 04:22:18 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 97258E3FD6F for ; Mon, 23 Oct 2017 04:22:18 +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 64E4F11DD; Mon, 23 Oct 2017 04:22:18 +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 v9N4MHTP039413; Mon, 23 Oct 2017 04:22:17 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9N4MHEH039412; Mon, 23 Oct 2017 04:22:17 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201710230422.v9N4MHEH039412@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Mon, 23 Oct 2017 04:22:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r324894 - projects/runtime-coverage/lib/libclang_rt X-SVN-Group: projects X-SVN-Commit-Author: ngie X-SVN-Commit-Paths: projects/runtime-coverage/lib/libclang_rt X-SVN-Commit-Revision: 324894 X-SVN-Commit-Repository: base 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: Mon, 23 Oct 2017 04:22:18 -0000 Author: ngie Date: Mon Oct 23 04:22:17 2017 New Revision: 324894 URL: https://svnweb.freebsd.org/changeset/base/324894 Log: Support compiling lib/libclang_rt/profile with gcc Several of the flags were being treated as CFLAGS, when they were actually technically CXXFLAGS. Move them there. Also, only apply -fno-sanitize=safe-stack with clang. This is a draft diff. PR: 223179 Modified: projects/runtime-coverage/lib/libclang_rt/Makefile.inc Modified: projects/runtime-coverage/lib/libclang_rt/Makefile.inc ============================================================================== --- projects/runtime-coverage/lib/libclang_rt/Makefile.inc Mon Oct 23 04:20:11 2017 (r324893) +++ projects/runtime-coverage/lib/libclang_rt/Makefile.inc Mon Oct 23 04:22:17 2017 (r324894) @@ -20,13 +20,13 @@ CFLAGS+= -DNDEBUG CFLAGS+= ${PICFLAG} CFLAGS+= -fno-builtin CFLAGS+= -fno-exceptions -CFLAGS+= -fno-rtti +CXXFLAGS+= -fno-rtti .if ${COMPILER_VERSION} >= 30700 -CFLAGS+= -fno-sanitize=safe-stack +CFLAGS.clang+= -fno-sanitize=safe-stack .endif CFLAGS+= -fno-stack-protector CFLAGS+= -funwind-tables -CFLAGS+= -fvisibility-inlines-hidden -CFLAGS+= -fvisibility=hidden +CXXFLAGS+= -fvisibility-inlines-hidden +CXXFLAGS+= -fvisibility=hidden CFLAGS+= -I${CRTSRC}/lib CXXFLAGS+= -std=c++11