gcc/libstdc++-v3/include/bits
Tomasz Kamiński 599d2902b0 libstdc++: Fix required alignment computation for floating points [PR122267]
Before the r16-4349-g90dde804626f13 the required alignment of floating point,
and pointer specialization used __alignof__(_Vt) as required_alignment, and
mentioned commit changed them to alignof(_Vt). This values differs on i686
for double, as alignof(double) is 4, and __alignof__(double) is 8.

This patch restores the previous behavior.

	PR libstdc++/122267

libstdc++-v3/ChangeLog:

	* include/bits/atomic_base.h
	(__atomic_ref_base<const _Tp>::_S_required_alignment):
	Use __alignof__	instead of alignof.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
2025-10-14 13:10:23 +02:00
..
algorithmfwd.h libstdc++: add constexpr stable_partition 2025-03-27 13:47:30 +01:00
align.h libstdc++: Implement is_sufficiently_aligned [PR120994] 2025-08-21 11:54:41 +02:00
alloc_traits.h Update copyright years. 2025-01-02 11:59:57 +01:00
allocated_ptr.h libstdc++: Define _Scoped_allocation RAII helper 2025-05-22 14:20:35 +02:00
allocator.h Update copyright years. 2025-01-02 11:59:57 +01:00
atomic_base.h libstdc++: Fix required alignment computation for floating points [PR122267] 2025-10-14 13:10:23 +02:00
atomic_futex.h libstdc++: Fix unused parameter warnings in <bits/atomic_futex.h> 2025-01-10 21:06:21 +00:00
atomic_timed_wait.h libstdc++: Add assertions to atomic waiting functions that need platform wait 2025-06-06 09:52:31 +01:00
atomic_wait.h libstdc++: Add assertions to atomic waiting functions that need platform wait 2025-06-06 09:52:31 +01:00
basic_ios.h Update copyright years. 2025-01-02 11:59:57 +01:00
basic_ios.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
basic_string.h libstdc++: Fix -Wformat warning in std::string 2025-10-07 12:11:21 +01:00
basic_string.tcc libstdc++: Fix std::string construction from volatile char* [PR119748] 2025-04-15 09:24:58 +01:00
binders.h libstdc++: Reuse _Bind_back_t functor in ranges::_Partial 2025-09-04 15:30:00 +02:00
boost_concept_check.h libstdc++: Disable -Wlong-long warnings in boost_concept_check.h 2025-05-29 11:49:03 +01:00
c++0x_warning.h Update copyright years. 2025-01-02 11:59:57 +01:00
c++config libstdc++: Implement P0849R8 auto(x) library changes 2025-06-04 14:55:40 -04:00
char_traits.h libstdc++: Use constexpr-if for C++11 and C++14 2025-04-29 10:52:59 +01:00
charconv.h Update copyright years. 2025-01-02 11:59:57 +01:00
chrono.h libstdc++: Make system_clock::to_time_t always_inline [PR99832] 2025-06-04 20:15:44 +01:00
chrono_io.h libstdc++: Adjust enable_nonlocking_formatter_optimization specializations [PR121790] 2025-10-10 09:23:01 +02:00
codecvt.h Update copyright years. 2025-01-02 11:59:57 +01:00
concept_check.h Update copyright years. 2025-01-02 11:59:57 +01:00
cow_string.h libstdc++: Fix std::string construction from volatile char* [PR119748] 2025-04-15 09:24:58 +01:00
cpp_type_traits.h libstdc++: Always treat __float128 as a floating-point type 2025-07-11 08:34:17 +01:00
cpyfunc_impl.h libstdc++: Pass small trivial types by value in polymorphic wrappers 2025-06-02 13:52:35 +02:00
deque.tcc libstdc++: Fix some -Wsign-compare warnings in headers 2025-09-27 21:18:42 +01:00
elements_of.h Update copyright years. 2025-01-02 11:59:57 +01:00
enable_special_members.h Update copyright years. 2025-01-02 11:59:57 +01:00
erase_if.h Update copyright years. 2025-01-02 11:59:57 +01:00
formatfwd.h libstdc++: Implement P3107R5 optimizations for std::print [PR121790] 2025-10-10 09:00:22 +02:00
forward_list.h libstdc++: Define __cpp_lib_containers_ranges in appropriate headers [PR111055] 2025-04-11 13:56:03 +02:00
forward_list.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
fs_dir.h Update copyright years. 2025-01-02 11:59:57 +01:00
fs_fwd.h Update copyright years. 2025-01-02 11:59:57 +01:00
fs_ops.h Update copyright years. 2025-01-02 11:59:57 +01:00
fs_path.h Update copyright years. 2025-01-02 11:59:57 +01:00
fstream.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
funcref_impl.h libstdc++: Pass small trivial types by value in polymorphic wrappers 2025-06-02 13:52:35 +02:00
functexcept.h Update copyright years. 2025-01-02 11:59:57 +01:00
functional_hash.h libstdc++: Ensure std::hash<__int128> is defined [PR96710] 2025-07-15 10:25:34 +01:00
funcwrap.h libstdc++: Make function_ref(nontype<f>, r) CTAD SFINAE friendly [PR121940] 2025-09-23 15:17:07 +02:00
gslice.h Update copyright years. 2025-01-02 11:59:57 +01:00
gslice_array.h Update copyright years. 2025-01-02 11:59:57 +01:00
hashtable.h libstdc++: Extend constexpr if to C++14 in _Hashtable::_S_nothrow_move() 2025-10-09 15:26:08 +01:00
hashtable_policy.h libstdc++: [_Hashtable] Fix hash code cache usage when stateful hash functor 2025-02-25 22:27:14 +01:00
indirect.h libstdc++: Fix allocator propagation and tests for std::indirect and std::polymorphic 2025-10-08 17:06:20 +01:00
indirect_array.h Update copyright years. 2025-01-02 11:59:57 +01:00
invoke.h Update copyright years. 2025-01-02 11:59:57 +01:00
ios_base.h Update copyright years. 2025-01-02 11:59:57 +01:00
istream.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
iterator_concepts.h libstdc++: Use consteval for _S_noexcept() helper functions 2025-09-11 14:38:59 +01:00
list.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
locale_classes.h Update copyright years. 2025-01-02 11:59:57 +01:00
locale_classes.tcc libstdc++: Handle errors from strxfrm in std::collate::transform [PR85824] 2025-01-08 12:45:37 +00:00
locale_conv.h libstdc++: Use constexpr-if for C++11 and C++14 2025-04-29 10:52:59 +01:00
locale_facets.h Update copyright years. 2025-01-02 11:59:57 +01:00
locale_facets.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
locale_facets_nonio.h Update copyright years. 2025-01-02 11:59:57 +01:00
locale_facets_nonio.tcc libstdc++: Fix "IEE" typo in comment in std::time_put::do_put 2025-03-19 23:29:06 +00:00
localefwd.h Update copyright years. 2025-01-02 11:59:57 +01:00
mask_array.h Update copyright years. 2025-01-02 11:59:57 +01:00
max_size_type.h libstdc++: Treat __int128 as a real integral type [PR96710] 2025-07-11 08:34:13 +01:00
memory_resource.h Update copyright years. 2025-01-02 11:59:57 +01:00
memoryfwd.h Update copyright years. 2025-01-02 11:59:57 +01:00
mofunc_impl.h libstdc++: Pass small trivial types by value in polymorphic wrappers 2025-06-02 13:52:35 +02:00
monostate.h Update copyright years. 2025-01-02 11:59:57 +01:00
move.h libstdc++: Refactor bound arguments storage for bind_front/back 2025-08-26 18:16:04 +02:00
new_allocator.h Update copyright years. 2025-01-02 11:59:57 +01:00
node_handle.h Update copyright years. 2025-01-02 11:59:57 +01:00
ostream.h libstdc++: Use constexpr-if for C++11 and C++14 2025-04-29 10:52:59 +01:00
ostream.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
ostream_insert.h Update copyright years. 2025-01-02 11:59:57 +01:00
out_ptr.h libstdc++: #ifdef out #pragma GCC system_header 2024-09-25 08:20:45 -04:00
parse_numbers.h Update copyright years. 2025-01-02 11:59:57 +01:00
postypes.h Update copyright years. 2025-01-02 11:59:57 +01:00
predefined_ops.h libstdc++: Eliminate __gnu_cxx::__ops function objects 2025-09-26 11:05:49 +01:00
ptr_traits.h libstdc++: Fix -Wmismatched-tags warnings for _Safe_iterator [PR120112] 2025-05-06 17:19:25 +01:00
quoted_string.h Update copyright years. 2025-01-02 11:59:57 +01:00
random.h libstdc++: Fix -Wreorder warning in std::philox_engine 2025-10-07 12:11:21 +01:00
random.tcc libstdc++: Fix unsafe comma operators in <random> [PR122062] 2025-09-26 11:01:08 +01:00
range_access.h libstdc++: Add conditional noexcept to remaining range access functions 2025-02-15 10:58:56 +00:00
ranges_algo.h libstdc++/ranges: Fix more wrong value type init from reference type [PR111861] 2025-09-17 14:14:37 -04:00
ranges_algobase.h libstdc++: Add nodiscard attribute for ranges algorithm [PR121476] 2025-08-18 14:05:06 +02:00
ranges_base.h libstdc++: Fix algorithms to use iterators' difference_type for arithmetic [PR121890] 2025-09-12 21:46:48 +01:00
ranges_cmp.h Update copyright years. 2025-01-02 11:59:57 +01:00
ranges_uninitialized.h libstdc++: Ensure that ranges::destroy destroys in constexpr [PR121024] 2025-07-15 10:25:48 +01:00
ranges_util.h libstdc++/ranges: Fix more wrong value type init from reference type [PR111861] 2025-09-17 14:14:37 -04:00
refwrap.h Update copyright years. 2025-01-02 11:59:57 +01:00
regex.h libstdc++: Handle errors from strxfrm in std::collate::transform [PR85824] 2025-01-08 12:45:37 +00:00
regex.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
regex_automaton.h Update copyright years. 2025-01-02 11:59:57 +01:00
regex_automaton.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
regex_compiler.h libstdc++: Use constexpr-if to slightly simplify <regex> 2025-04-29 19:54:35 +01:00
regex_compiler.tcc libstdc++: Use constexpr-if to slightly simplify <regex> 2025-04-29 19:54:35 +01:00
regex_constants.h Update copyright years. 2025-01-02 11:59:57 +01:00
regex_error.h Update copyright years. 2025-01-02 11:59:57 +01:00
regex_executor.h Update copyright years. 2025-01-02 11:59:57 +01:00
regex_executor.tcc libstdc++: Use constexpr-if to slightly simplify <regex> 2025-04-29 19:54:35 +01:00
regex_scanner.h Update copyright years. 2025-01-02 11:59:57 +01:00
regex_scanner.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
requires_hosted.h libstdc++: Mark headers that must be hosted as such [PR103626] 2022-10-03 15:43:48 +01:00
sat_arith.h libstdc++: Fix -Wparentheses warning in std::mul_sat 2025-10-07 12:15:28 +01:00
semaphore_base.h libstdc++: Use std::conditional_t instead of lambda to select semaphore implementation 2025-06-06 20:15:07 +01:00
shared_ptr.h libstdc++: Add smart ptr owner_equals and owner_hash [PR117403] 2025-07-09 12:14:40 +01:00
shared_ptr_atomic.h Update copyright years. 2025-01-02 11:59:57 +01:00
shared_ptr_base.h libstdc++: Fix warnings from std::make_unsigned<_Atomic_word> [PR122172] 2025-10-11 00:09:19 +01:00
slice_array.h Update copyright years. 2025-01-02 11:59:57 +01:00
specfun.h Update copyright years. 2025-01-02 11:59:57 +01:00
sstream.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
std_abs.h libstdc++: Support std::abs for 128-bit integers and floats [PR96710] 2025-05-27 12:11:43 +01:00
std_function.h libstdc++: Use constexpr-if in std::function for C++11 and C++14 2025-04-29 10:52:59 +01:00
std_mutex.h Update copyright years. 2025-01-02 11:59:57 +01:00
std_thread.h Update copyright years. 2025-01-02 11:59:57 +01:00
stl_algo.h libstdc++: Reuse predicates in std::search and std::is_permutation 2025-09-26 11:05:59 +01:00
stl_algobase.h libstdc++: Reuse predicates in std::search and std::is_permutation 2025-09-26 11:05:59 +01:00
stl_bvector.h libstdc++: Define __cpp_lib_containers_ranges in appropriate headers [PR111055] 2025-04-11 13:56:03 +02:00
stl_construct.h libstdc++: Move start_lifetime_as functions to bits/stl_construct.h [PR106658] 2025-09-22 15:59:21 +02:00
stl_deque.h libstdc++: fix element construction in std::deque::emplace [PR118087] 2025-09-23 16:38:28 +01:00
stl_function.h libstdc++: Eliminate __gnu_cxx::__ops function objects 2025-09-26 11:05:49 +01:00
stl_heap.h libstdc++: Eliminate __gnu_cxx::__ops function objects 2025-09-26 11:05:49 +01:00
stl_iterator.h libstdc++: Fix attribute order on __normal_iterator friends [PR120949] 2025-07-07 21:50:51 +01:00
stl_iterator_base_funcs.h libstdc++: Fix grammatical error in comment in std::advance 2025-10-13 21:07:30 +01:00
stl_iterator_base_types.h libstdc++: Only define __any_input_iterator for C++20 2025-07-19 00:10:10 +01:00
stl_list.h libstdc++: Define __cpp_lib_containers_ranges in appropriate headers [PR111055] 2025-04-11 13:56:03 +02:00
stl_map.h libstdc++: Optimize removal from unique assoc containers [PR112934] 2025-04-29 15:08:53 +01:00
stl_multimap.h libstdc++: Define __cpp_lib_containers_ranges in appropriate headers [PR111055] 2025-04-11 13:56:03 +02:00
stl_multiset.h libstdc++: Define __cpp_lib_containers_ranges in appropriate headers [PR111055] 2025-04-11 13:56:03 +02:00
stl_numeric.h Update copyright years. 2025-01-02 11:59:57 +01:00
stl_pair.h libstdc++: Fix std::get<T> for std::pair with reference members [PR121745] 2025-09-03 12:16:18 +01:00
stl_queue.h libstdc++: Implement formatters for queue, priority_queue and stack [PR109162] 2025-04-25 13:02:04 +02:00
stl_raw_storage_iter.h Update copyright years. 2025-01-02 11:59:57 +01:00
stl_relops.h Update copyright years. 2025-01-02 11:59:57 +01:00
stl_set.h libstdc++: Optimize removal from unique assoc containers [PR112934] 2025-04-29 15:08:53 +01:00
stl_stack.h libstdc++: Implement formatters for queue, priority_queue and stack [PR109162] 2025-04-25 13:02:04 +02:00
stl_tempbuf.h libstdc++: do not use an unreserved name in _Temporary_buffer [PR119496] 2025-06-12 18:41:30 +02:00
stl_tree.h libstdc++: Optimize removal from unique assoc containers [PR112934] 2025-04-29 15:08:53 +01:00
stl_uninitialized.h libstdc++: Suppress -Wclass-memaccess warnings in bits/stl_uninitialized.h 2025-10-01 13:54:59 +01:00
stl_vector.h libstdc++: Do not require assignment for vector::resize(n, v) [PR90192] 2025-08-26 18:18:32 +02:00
stream_iterator.h Update copyright years. 2025-01-02 11:59:57 +01:00
streambuf.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
streambuf_iterator.h Update copyright years. 2025-01-02 11:59:57 +01:00
string_view.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
stringfwd.h Update copyright years. 2025-01-02 11:59:57 +01:00
text_encoding-data.h libstdc++: Fix Python scripts to output the correct filename 2024-03-19 15:20:07 +00:00
this_thread_sleep.h Update copyright years. 2025-01-02 11:59:57 +01:00
unicode-data.h Update to Unicode 17.0.0 2025-10-08 18:02:39 +02:00
unicode.h libstdc++: Fix reverse iteration in _Utf16_view 2025-10-13 11:04:28 +01:00
uniform_int_dist.h libstdc++: Use constexpr-if for C++11 and C++14 2025-04-29 10:52:59 +01:00
unique_lock.h libstdc++: Make std::unique_lock self-move-assignable 2025-03-06 16:46:19 +00:00
unique_ptr.h libstdc++: Remove blank line from bits/unique_ptr.h 2025-09-10 23:24:10 +01:00
unordered_map.h libstdc++: doc: Rectify referencing of non-existent type 2025-07-25 14:29:02 +02:00
unordered_set.h libstdc++: Implement missing allocator-aware constructors for unordered containers. 2025-04-28 10:09:26 +02:00
uses_allocator.h Update copyright years. 2025-01-02 11:59:57 +01:00
uses_allocator_args.h Update copyright years. 2025-01-02 11:59:57 +01:00
utility.h libstdc++: Move _Index_tuple, _Build_index_tuple to <type_traits>. 2025-09-02 13:27:45 +02:00
valarray_after.h Update copyright years. 2025-01-02 11:59:57 +01:00
valarray_array.h libstdc++: Use constexpr-if for C++11 and C++14 2025-04-29 10:52:59 +01:00
valarray_array.tcc Update copyright years. 2025-01-02 11:59:57 +01:00
valarray_before.h Update copyright years. 2025-01-02 11:59:57 +01:00
vector.tcc libstdc++: Do not require assignment for vector::resize(n, v) [PR90192] 2025-08-26 18:18:32 +02:00
version.def libstdc++: Implement P2835R7 Expose std::atomic_ref's object address 2025-10-13 23:03:41 +08:00
version.h libstdc++: Implement P2835R7 Expose std::atomic_ref's object address 2025-10-13 23:03:41 +08:00
version.tpl libstdc++: Tweak comment on generated #endif lines in bits/version.h 2025-10-09 15:25:59 +01:00