From: Rainer Orth Date: Wed, 3 Mar 2021 12:16:35 +0000 (+0100) Subject: libstdc++: Don't use reserved identifiers in simd headers X-Git-Tag: basepoints/gcc-12~781 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7267237371cc978fa6e0485446af11c60e4b102;p=thirdparty%2Fgcc.git libstdc++: Don't use reserved identifiers in simd headers Two simd tests FAIL on Solaris, both SPARC and x86: FAIL: experimental/simd/standard_abi_usable.cc -msse2 -O2 -Wno-psabi (test for excess errors) FAIL: experimental/simd/standard_abi_usable_2.cc -msse2 -O2 -Wno-psabi (test for excess errors) This happens because the simd headers use identifiers documented in the libstdc++ manual as reserved by system headers. Fixed as follows, tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and x86_64-pc-linux-gnu. 2021-02-01 Rainer Orth libstdc++-v3: * include/experimental/bits/simd.h: Replace reserved _X, _B by _Xp, _Bp. * include/experimental/bits/simd_builtin.h: Likewise. * include/experimental/bits/simd_x86.h: Likewise. --- diff --git a/libstdc++-v3/include/experimental/bits/simd.h b/libstdc++-v3/include/experimental/bits/simd.h index c452778832fa..59ddf3cc9581 100644 --- a/libstdc++-v3/include/experimental/bits/simd.h +++ b/libstdc++-v3/include/experimental/bits/simd.h @@ -201,8 +201,8 @@ template inline constexpr overaligned_tag<_Np> overaligned = {}; // }}} -template - using _SizeConstant = integral_constant; +template + using _SizeConstant = integral_constant; namespace __detail { @@ -4208,11 +4208,11 @@ template