]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Re-apply PR108672 fix (avoid use of naked int32_t in unseq_backend_simd.h)
authorHans-Peter Nilsson <hp@axis.com>
Sat, 4 Feb 2023 17:38:45 +0000 (18:38 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 30 Jun 2023 03:26:51 +0000 (05:26 +0200)
The fix was overwritten by r14-2109-g3162ca09dbdc2e "libstdc++:
Synchronize PSTL with upstream".

libstdc++-v3:

PR libstdc++/108672
* include/pstl/unseq_backend_simd.h (__simd_or): Re-apply using
__INT32_TYPE__ instead of int32_t.

libstdc++-v3/include/pstl/unseq_backend_simd.h

index 69784bcdbe6636021c75813d51c6e18ca7cdfa49..f3c38fbbbc2a8e2845d340abaab9888ff0d39c78 100644 (file)
@@ -74,7 +74,7 @@ __simd_or(_Index __first, _DifferenceType __n, _Pred __pred) noexcept
     const _Index __last = __first + __n;
     while (__last != __first)
     {
-        int32_t __flag = 1;
+        __INT32_TYPE__ __flag = 1;
         _PSTL_PRAGMA_SIMD_REDUCTION(& : __flag)
         for (_DifferenceType __i = 0; __i < __block_size; ++__i)
             if (__pred(*(__first + __i)))