commit:     4d7ca26805cb6beccb9e94c3f1a8964a966735d2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 15 02:16:18 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 15 02:16:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d7ca268

llvm-core/llvm: drop obsolete ppc workaround

The fix has been backported to all applicable GCC branches for some
time now.

Bug: https://bugs.gentoo.org/880677
Signed-off-by: Sam James <sam <AT> gentoo.org>

 llvm-core/llvm/llvm-15.0.7-r7.ebuild          | 5 -----
 llvm-core/llvm/llvm-16.0.6-r5.ebuild          | 5 -----
 llvm-core/llvm/llvm-17.0.6-r3.ebuild          | 5 -----
 llvm-core/llvm/llvm-18.1.8-r6.ebuild          | 7 +------
 llvm-core/llvm/llvm-19.1.7.ebuild             | 5 -----
 llvm-core/llvm/llvm-20.1.7.ebuild             | 5 -----
 llvm-core/llvm/llvm-21.0.0.9999.ebuild        | 5 -----
 llvm-core/llvm/llvm-21.0.0_pre20250607.ebuild | 5 -----
 llvm-core/llvm/llvm-21.0.0_pre20250614.ebuild | 5 -----
 9 files changed, 1 insertion(+), 46 deletions(-)

diff --git a/llvm-core/llvm/llvm-15.0.7-r7.ebuild 
b/llvm-core/llvm/llvm-15.0.7-r7.ebuild
index 61161d1dc79d..04f64e49be11 100644
--- a/llvm-core/llvm/llvm-15.0.7-r7.ebuild
+++ b/llvm-core/llvm/llvm-15.0.7-r7.ebuild
@@ -327,11 +327,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

diff --git a/llvm-core/llvm/llvm-16.0.6-r5.ebuild 
b/llvm-core/llvm/llvm-16.0.6-r5.ebuild
index fd12854df95b..de8cee98eb23 100644
--- a/llvm-core/llvm/llvm-16.0.6-r5.ebuild
+++ b/llvm-core/llvm/llvm-16.0.6-r5.ebuild
@@ -324,11 +324,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

diff --git a/llvm-core/llvm/llvm-17.0.6-r3.ebuild 
b/llvm-core/llvm/llvm-17.0.6-r3.ebuild
index 313ba4b209d4..cb29cb03b59d 100644
--- a/llvm-core/llvm/llvm-17.0.6-r3.ebuild
+++ b/llvm-core/llvm/llvm-17.0.6-r3.ebuild
@@ -338,11 +338,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

diff --git a/llvm-core/llvm/llvm-18.1.8-r6.ebuild 
b/llvm-core/llvm/llvm-18.1.8-r6.ebuild
index 00ab7c11855d..4cb83c172bd4 100644
--- a/llvm-core/llvm/llvm-18.1.8-r6.ebuild
+++ b/llvm-core/llvm/llvm-18.1.8-r6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -347,11 +347,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

diff --git a/llvm-core/llvm/llvm-19.1.7.ebuild 
b/llvm-core/llvm/llvm-19.1.7.ebuild
index 5933d876face..9b764d0c9390 100644
--- a/llvm-core/llvm/llvm-19.1.7.ebuild
+++ b/llvm-core/llvm/llvm-19.1.7.ebuild
@@ -351,11 +351,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

diff --git a/llvm-core/llvm/llvm-20.1.7.ebuild 
b/llvm-core/llvm/llvm-20.1.7.ebuild
index 4f93ed5f371a..0f40732a341c 100644
--- a/llvm-core/llvm/llvm-20.1.7.ebuild
+++ b/llvm-core/llvm/llvm-20.1.7.ebuild
@@ -363,11 +363,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

diff --git a/llvm-core/llvm/llvm-21.0.0.9999.ebuild 
b/llvm-core/llvm/llvm-21.0.0.9999.ebuild
index 060d87066ea6..1fb82efc6002 100644
--- a/llvm-core/llvm/llvm-21.0.0.9999.ebuild
+++ b/llvm-core/llvm/llvm-21.0.0.9999.ebuild
@@ -370,11 +370,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

diff --git a/llvm-core/llvm/llvm-21.0.0_pre20250607.ebuild 
b/llvm-core/llvm/llvm-21.0.0_pre20250607.ebuild
index 11027341dece..a9952d187bef 100644
--- a/llvm-core/llvm/llvm-21.0.0_pre20250607.ebuild
+++ b/llvm-core/llvm/llvm-21.0.0_pre20250607.ebuild
@@ -369,11 +369,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

diff --git a/llvm-core/llvm/llvm-21.0.0_pre20250614.ebuild 
b/llvm-core/llvm/llvm-21.0.0_pre20250614.ebuild
index 060d87066ea6..1fb82efc6002 100644
--- a/llvm-core/llvm/llvm-21.0.0_pre20250614.ebuild
+++ b/llvm-core/llvm/llvm-21.0.0_pre20250614.ebuild
@@ -370,11 +370,6 @@ get_distribution_components() {
 }
 
 multilib_src_configure() {
-       if use ppc && tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then
-               # Workaround for bug #880677
-               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).

Reply via email to