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 8130C138334 for ; Mon, 20 May 2019 21:04:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85CC0E086A; Mon, 20 May 2019 21:04:44 +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 65253E086A for ; Mon, 20 May 2019 21:04:44 +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 50606344C3C for ; Mon, 20 May 2019 21:04:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 55D325EC for ; Mon, 20 May 2019 21:04:41 +0000 (UTC) From: "Jory Pratt" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jory Pratt" Message-ID: <1558386273.29f0b3ce320c2740853d83cbef6ba1037ffedddf.anarchy@gentoo> Subject: [gentoo-commits] proj/musl:master commit in: eclass/ X-VCS-Repository: proj/musl X-VCS-Files: eclass/toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: anarchy X-VCS-Committer-Name: Jory Pratt X-VCS-Revision: 29f0b3ce320c2740853d83cbef6ba1037ffedddf X-VCS-Branch: master Date: Mon, 20 May 2019 21:04:41 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f3a90520-9c49-41c3-8a03-da162ef080b5 X-Archives-Hash: 02ccdad7c209d97bcf417418e09f7755 commit: 29f0b3ce320c2740853d83cbef6ba1037ffedddf Author: Jory Pratt gentoo org> AuthorDate: Mon May 20 21:03:57 2019 +0000 Commit: Jory Pratt gentoo org> CommitDate: Mon May 20 21:04:33 2019 +0000 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=29f0b3ce eclass: sync 9.1 gcc changes from tree to overlay eclass/toolchain.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 970d2c8..91297c0 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -174,6 +174,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then tc_version_is_at_least 8.0 && IUSE+=" systemtap" TC_FEATURES+=(systemtap) tc_version_is_at_least 9.0 && IUSE+=" d" + tc_version_is_at_least 9.1 && IUSE+=" lto" fi SLOT="${GCC_CONFIG_VER}" @@ -993,6 +994,11 @@ toolchain_src_configure() { confgcc+=( --enable-libstdcxx-time ) fi + # Build compiler using LTO + if tc_version_is_at_least 9.1 && use_if_iuse lto ; then + confgcc+=( --with-build-config=bootstrap-lto ) + fi + # Support to disable pch when building libstdcxx if tc_version_is_at_least 6.0 && ! use_if_iuse pch ; then confgcc+=( --disable-libstdcxx-pch )