public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2206] libstdc++: Re-apply PR108672 fix (avoid use of naked int32_t in unseq_backend_simd.h)
@ 2023-06-30  3:27 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2023-06-30  3:27 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:b22cf5f0321f6425a357c06647a4366d99ddac61

commit r14-2206-gb22cf5f0321f6425a357c06647a4366d99ddac61
Author: Hans-Peter Nilsson <hp@axis.com>
Date:   Sat Feb 4 18:38:45 2023 +0100

    libstdc++: Re-apply PR108672 fix (avoid use of naked int32_t in unseq_backend_simd.h)
    
    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.

Diff:
---
 libstdc++-v3/include/pstl/unseq_backend_simd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/pstl/unseq_backend_simd.h b/libstdc++-v3/include/pstl/unseq_backend_simd.h
index 69784bcdbe6..f3c38fbbbc2 100644
--- a/libstdc++-v3/include/pstl/unseq_backend_simd.h
+++ b/libstdc++-v3/include/pstl/unseq_backend_simd.h
@@ -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)))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-30  3:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-30  3:27 [gcc r14-2206] libstdc++: Re-apply PR108672 fix (avoid use of naked int32_t in unseq_backend_simd.h) Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).