From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DDE181396D0 for ; Sun, 24 Sep 2017 18:08:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3BEC62BC00A; Sun, 24 Sep 2017 18:08:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 038FA2BC00A for ; Sun, 24 Sep 2017 18:08:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 38BB234167C for ; Sun, 24 Sep 2017 18:08:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BFDD183F7 for ; Sun, 24 Sep 2017 18:08:17 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1506276375.0591d59df6a846750c267e34a28b8b8d87812101.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/, dev-lang/gnat-gpl/, sys-devel/gcc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/gnat-gpl/metadata.xml eclass/toolchain.eclass sys-devel/gcc/metadata.xml X-VCS-Directories: sys-devel/gcc/ dev-lang/gnat-gpl/ eclass/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 0591d59df6a846750c267e34a28b8b8d87812101 X-VCS-Branch: master Date: Sun, 24 Sep 2017 18:08:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ab8ad1d0-9f8f-40b4-a84c-a19115faf22c X-Archives-Hash: 4d05289135c45db88a20de7891b0d417 commit: 0591d59df6a846750c267e34a28b8b8d87812101 Author: Shane Peelar gmail com> AuthorDate: Wed Sep 20 15:59:20 2017 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Sep 24 18:06:15 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0591d59d sys-devel/gcc: add a USE for building GCC with PGO Package-Manager: Portage-2.3.10, Repoman-2.3.3 Closes: https://github.com/gentoo/gentoo/pull/5741 dev-lang/gnat-gpl/metadata.xml | 1 + eclass/toolchain.eclass | 7 ++++++- sys-devel/gcc/metadata.xml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dev-lang/gnat-gpl/metadata.xml b/dev-lang/gnat-gpl/metadata.xml index 93f13769808..5018efb098a 100644 --- a/dev-lang/gnat-gpl/metadata.xml +++ b/dev-lang/gnat-gpl/metadata.xml @@ -26,6 +26,7 @@ Build support for the Objective C++ language Build support for the Objective C code language Garbage Collector + Build GCC using Profile Guided Optimization (PGO) Run the testsuite and install the results (requires FEATURES=test) Build support for various sanitizer functions (ASAN/TSAN/etc...) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index baffa39bda9..a18e8042641 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -139,6 +139,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then [[ -n ${D_VER} ]] && IUSE+=" d" [[ -n ${SPECS_VER} ]] && IUSE+=" nossp" tc_version_is_at_least 3 && IUSE+=" doc gcj awt hardened multilib objc" + tc_version_is_at_least 3.3 && IUSE+=" pgo" tc_version_is_at_least 4.0 && IUSE+=" objc-gc" tc_version_is_between 4.0 4.9 && IUSE+=" mudflap" tc_version_is_at_least 4.1 && IUSE+=" libssp objc++" @@ -1569,7 +1570,11 @@ gcc_do_make() { # resulting binaries natively ^^; GCC_MAKE_TARGET=${GCC_MAKE_TARGET-all} else - GCC_MAKE_TARGET=${GCC_MAKE_TARGET-bootstrap-lean} + if tc_version_is_at_least 3.3 && use pgo; then + GCC_MAKE_TARGET=${GCC_MAKE_TARGET-profiledbootstrap} + else + GCC_MAKE_TARGET=${GCC_MAKE_TARGET-bootstrap-lean} + fi fi # Older versions of GCC could not do profiledbootstrap in parallel due to diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml index 43abab038eb..52748bc1ff6 100644 --- a/sys-devel/gcc/metadata.xml +++ b/sys-devel/gcc/metadata.xml @@ -27,6 +27,7 @@ Build support for the Objective C++ language Build support for the Objective C code language Garbage Collector + Build GCC using Profile Guided Optimization (PGO) Run the testsuite and install the results (requires FEATURES=test) Build support for various sanitizer functions (ASAN/TSAN/etc...) Build packages with stack smashing protector on by default