Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Dec 2024 12:54:05 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 37fd93d0c2df - stable/13 - libcxx simd_utils.h: only enable _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS for clang >= 15, since older versions do not support the required builtins.
Message-ID:  <202412011254.4B1Cs5Ua093317@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=37fd93d0c2df56b709ca49b21036f5070417502a

commit 37fd93d0c2df56b709ca49b21036f5070417502a
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-08-05 20:05:46 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-12-01 12:32:38 +0000

    libcxx simd_utils.h: only enable _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS for
    clang >= 15, since older versions do not support the required builtins.
    
    PR:             280562
    MFC after:      1 month
    
    (cherry picked from commit 6846ab2fb6630ca91ab0a71350d77358e521c1c7)
---
 contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h b/contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h
index 549197be8018..cb5c93675cad 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h
@@ -28,7 +28,7 @@ _LIBCPP_PUSH_MACROS
 #include <__undef_macros>
 
 // TODO: Find out how altivec changes things and allow vectorizations there too.
-#if _LIBCPP_STD_VER >= 14 && defined(_LIBCPP_CLANG_VER) && !defined(__ALTIVEC__)
+#if _LIBCPP_STD_VER >= 14 && (defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 1500) && !defined(__ALTIVEC__)
 #  define _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS 1
 #else
 #  define _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS 0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412011254.4B1Cs5Ua093317>