From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2152) id 7F3DF3858D35; Fri, 30 Jun 2023 03:27:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F3DF3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688095631; bh=Y5KBnOcBbISQq7jioTaLC06eChp+n6yrbXb0IyNv6Us=; h=From:To:Subject:Date:From; b=jOc2CWZ6ekGC0zT5nAJCYjMVgG2M1IoJtzIr6Lp7xTL2jBHkbgPjM/vnpd192ZLWT JJBFPXyQo+TfMEJc4t3v5jm+ZuqqbU/1BefPq5/rzOJgT9i0eRwIaphbG9GvxV0S2c JrfoZ3kepl1Yr/2QaS7RFTMFYiAVUEm7DVvC2M8w= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Hans-Peter Nilsson To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-2206] libstdc++: Re-apply PR108672 fix (avoid use of naked int32_t in unseq_backend_simd.h) X-Act-Checkin: gcc X-Git-Author: Hans-Peter Nilsson X-Git-Refname: refs/heads/master X-Git-Oldrev: e20abdb749d0c0c8552da998ff8ec139b830f5eb X-Git-Newrev: b22cf5f0321f6425a357c06647a4366d99ddac61 Message-Id: <20230630032711.7F3DF3858D35@sourceware.org> Date: Fri, 30 Jun 2023 03:27:11 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b22cf5f0321f6425a357c06647a4366d99ddac61 commit r14-2206-gb22cf5f0321f6425a357c06647a4366d99ddac61 Author: Hans-Peter Nilsson 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)))