commit:     806156abca3e19d4aa84fc95acba6d9ccb792ef4
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  6 01:21:29 2026 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Feb  6 01:21:48 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=806156ab

qt6-build.eclass: fix -march detection with gcc-16 + -g3/-ggdb3

Closes: https://bugs.gentoo.org/969664
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 eclass/qt6-build.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass
index 98dc6cf259e7..0b107c595bd2 100644
--- a/eclass/qt6-build.eclass
+++ b/eclass/qt6-build.eclass
@@ -1,4 +1,4 @@
-# Copyright 2021-2025 Gentoo Authors
+# Copyright 2021-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: qt6-build.eclass
@@ -331,14 +331,14 @@ _qt6-build_sanitize_cpu_flags() {
        # so users will not lose *all* CPU-specific optimizations
        local march=$(
                $(tc-getCXX) -E -P ${CXXFLAGS} ${CPPFLAGS} - <<-EOF | tail -n 1
+                       #if !defined(__EVEX512__) && !defined(__clang__) && 
__GNUC__ >= 16
+                       #  define __EVEX512__ 1 /* removed in gcc-16 (bug 
#956750,#969664) */
+                       #endif
                        default
                        #if (__CRC32__ + __LAHF_SAHF__ + __POPCNT__ + __SSE3__ 
+ __SSE4_1__ + __SSE4_2__ + __SSSE3__) == 7
                        x86-64-v2
                        #  if (__AVX__ + __AVX2__ + __BMI__ + __BMI2__ + 
__F16C__ + __FMA__ + __LZCNT__ + __MOVBE__ + __XSAVE__) == 9
                        x86-64-v3
-                       #    if !defined(__EVEX512__) && !defined(__clang__) && 
__GNUC__ >= 16
-                       #      define __EVEX512__ 1 /* removed in gcc-16 (bug 
#956750) */
-                       #    endif
                        #    if (__AVX512BW__ + __AVX512CD__ + __AVX512DQ__ + 
__AVX512F__ + __AVX512VL__ + __EVEX256__ + __EVEX512__) == 7
                        x86-64-v4
                        #    endif

Reply via email to