From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1624757-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 3220A1581E7
	for <garchives@archives.gentoo.org>; Thu, 25 Apr 2024 08:55:19 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id F34C9E29B4;
	Thu, 25 Apr 2024 08:55:17 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D6A64E29B4
	for <gentoo-commits@lists.gentoo.org>; Thu, 25 Apr 2024 08:55:17 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id A3FD4343154
	for <gentoo-commits@lists.gentoo.org>; Thu, 25 Apr 2024 08:55:16 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 0F1E61759
	for <gentoo-commits@lists.gentoo.org>; Thu, 25 Apr 2024 08:55:15 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1714035243.6ada69a5bb8289f32d04b3eeaf354b2e089692b5.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-debug/valgrind/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild dev-debug/valgrind/valgrind-9999.ebuild
X-VCS-Directories: dev-debug/valgrind/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 6ada69a5bb8289f32d04b3eeaf354b2e089692b5
X-VCS-Branch: master
Date: Thu, 25 Apr 2024 08:55:15 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 46bd4529-fe23-4750-adc6-2b4587b9c10a
X-Archives-Hash: ca2600c181e770bd26db031e2a4cad31

commit:     6ada69a5bb8289f32d04b3eeaf354b2e089692b5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 25 08:53:05 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 25 08:54:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ada69a5

dev-debug/valgrind: stop filtering LTO

mjw pointed out that Valgrind has a --enable-lto configure arg but it also
seems to work well nowadays. Valgrind is a special-case so use it.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild | 3 ++-
 dev-debug/valgrind/valgrind-9999.ebuild       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild b/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
index 312c4f8b724e..5a073f147105 100644
--- a/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
+++ b/dev-debug/valgrind/valgrind-3.23.0_rc2.ebuild
@@ -75,6 +75,8 @@ src_configure() {
 		--with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load
 	)
 
+	tc-is-lto && myconf+=( --enable-lto )
+
 	# Respect ar, bug #468114
 	tc-export AR
 
@@ -87,7 +89,6 @@ src_configure() {
 	# -fstack-protector-strong See -fstack-protector (bug #620402)
 	# -m64 -mx32			for multilib-portage, bug #398825
 	# -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line')
-	# -flto*                fails to build, bug #858509
 	filter-flags -fomit-frame-pointer
 	filter-flags -fstack-protector
 	filter-flags -fstack-protector-all

diff --git a/dev-debug/valgrind/valgrind-9999.ebuild b/dev-debug/valgrind/valgrind-9999.ebuild
index 312c4f8b724e..5a073f147105 100644
--- a/dev-debug/valgrind/valgrind-9999.ebuild
+++ b/dev-debug/valgrind/valgrind-9999.ebuild
@@ -75,6 +75,8 @@ src_configure() {
 		--with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load
 	)
 
+	tc-is-lto && myconf+=( --enable-lto )
+
 	# Respect ar, bug #468114
 	tc-export AR
 
@@ -87,7 +89,6 @@ src_configure() {
 	# -fstack-protector-strong See -fstack-protector (bug #620402)
 	# -m64 -mx32			for multilib-portage, bug #398825
 	# -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line')
-	# -flto*                fails to build, bug #858509
 	filter-flags -fomit-frame-pointer
 	filter-flags -fstack-protector
 	filter-flags -fstack-protector-all