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.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 D24F6158041 for ; Wed, 27 Mar 2024 06:26:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27035E2A65; Wed, 27 Mar 2024 06:26:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 099C8E2A65 for ; Wed, 27 Mar 2024 06:26:29 +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 130993430B8 for ; Wed, 27 Mar 2024 06:26:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 577ED14C3 for ; Wed, 27 Mar 2024 06:26:26 +0000 (UTC) From: "Sam James" 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" Message-ID: <1711520737.f62844d3afbaf4594846499e8b8bc2d8a7bd25ec.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/llvm/llvm-15.0.7-r3.ebuild sys-devel/llvm/llvm-16.0.6.ebuild X-VCS-Directories: sys-devel/llvm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f62844d3afbaf4594846499e8b8bc2d8a7bd25ec X-VCS-Branch: master Date: Wed, 27 Mar 2024 06:26:26 +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: fdb927f0-9d90-4364-8534-9b8d16dace98 X-Archives-Hash: b2708f2d74b9d4ac434878c097d1f8ee commit: f62844d3afbaf4594846499e8b8bc2d8a7bd25ec Author: Sam James gentoo org> AuthorDate: Wed Mar 27 06:25:18 2024 +0000 Commit: Sam James gentoo org> CommitDate: Wed Mar 27 06:25:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f62844d3 sys-devel/llvm: backport LTO filtering Signed-off-by: Sam James gentoo.org> sys-devel/llvm/llvm-15.0.7-r3.ebuild | 5 +++++ sys-devel/llvm/llvm-16.0.6.ebuild | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sys-devel/llvm/llvm-15.0.7-r3.ebuild b/sys-devel/llvm/llvm-15.0.7-r3.ebuild index 8dd8837831a9..6306ee2107c0 100644 --- a/sys-devel/llvm/llvm-15.0.7-r3.ebuild +++ b/sys-devel/llvm/llvm-15.0.7-r3.ebuild @@ -326,6 +326,11 @@ multilib_src_configure() { append-flags $(test-flags-CXX -fno-ipa-sra -fno-ipa-modref -fno-ipa-icf) fi + # ODR violations (bug #917536, bug #926529). Just do it for GCC for now + # to avoid people grumbling. GCC is, anecdotally, more likely to miscompile + # LLVM with LTO anyway (which is not necessarily its fault). + tc-is-gcc && filter-lto + local ffi_cflags ffi_ldflags if use libffi; then ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi) diff --git a/sys-devel/llvm/llvm-16.0.6.ebuild b/sys-devel/llvm/llvm-16.0.6.ebuild index ab3f64bf71cd..aa171c1cd361 100644 --- a/sys-devel/llvm/llvm-16.0.6.ebuild +++ b/sys-devel/llvm/llvm-16.0.6.ebuild @@ -329,7 +329,10 @@ multilib_src_configure() { append-flags $(test-flags-CXX -fno-ipa-sra -fno-ipa-modref -fno-ipa-icf) fi - tc-is-gcc && filter-lto # GCC miscompiles LLVM, bug #873670 + # ODR violations (bug #917536, bug #926529). Just do it for GCC for now + # to avoid people grumbling. GCC is, anecdotally, more likely to miscompile + # LLVM with LTO anyway (which is not necessarily its fault). + tc-is-gcc && filter-lto local ffi_cflags ffi_ldflags if use libffi; then