]> gcc.gnu.org Git - gcc.git/blame - libstdc++-v3/ChangeLog
libgcov: Fix merging of topn [PR92924]
[gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
7a900bce
AO
12020-01-23 Alexandre Oliva <oliva@adacore.com>
2
f9e84b31
AO
3 * crossconfig.m4 (GLIBCXX_CHECK_MATH_DECL): Reject macros.
4 * configure: Rebuild.
5
7a900bce
AO
6 * testsuite/27_io/fpos/mbstate_t/1.cc: Zero-init mbstate_t.
7
04681fca
JW
82020-01-23 Jonathan Wakely <jwakely@redhat.com>
9
10 PR libstdc++/91947
11 * include/Makefile.am (${host_builddir}/largefile-config.h): Simplify
12 rule.
13 * include/Makefile.in: Regenerate.
14
c784f162
JW
152020-01-20 Jonathan Wakely <jwakely@redhat.com>
16
17 * doc/xml/faq.xml: Fix grammar.
18 * doc/xml/manual/appendix_contributing.xml: Improve instructions.
19 * doc/xml/manual/spine.xml: Update copyright years.
20 * doc/html/*: Regenerate.
21
f4d83eba
ER
222020-01-19 Eric S. Raymond <esr@thyrsus.com>
23
24 * doc/xml/faq.xml: Update for SVN -> Git transition.
25 * doc/xml/manual/appendix_contributing.xml: Likewise.
26 * doc/xml/manual/status_cxx1998.xml: Likewise.
27 * doc/xml/manual/status_cxx2011.xml: Likewise.
28 * doc/xml/manual/status_cxx2014.xml: Likewise.
29 * doc/xml/manual/status_cxx2017.xml: Likewise.
30 * doc/xml/manual/status_cxx2020.xml: Likewise.
31 * doc/xml/manual/status_cxxtr1.xml: Likewise.
32 * doc/xml/manual/status_cxxtr24733.xml: Likewise.
33
49789fd0
IS
342020-01-18 Iain Sandoe <iain@sandoe.co.uk>
35
36 * include/Makefile.am: Add coroutine to the std set.
37 * include/Makefile.in: Regenerated.
38 * include/std/coroutine: New file.
39
0ba6a850
JW
402020-01-17 Jonathan Wakely <jwakely@redhat.com>
41
42 PR libstdc++/92376
43 * include/bits/c++config: Only do PSTL config when the header is
44 present, to fix freestanding.
45 * libsupc++/new_opa.cc [!_GLIBCXX_HOSTED]: Declare allocation
46 functions if they were detected by configure.
47
98d56ea8
JW
482020-01-16 Kai-Uwe Eckhardt <kuehro@gmx.de>
49 Matthew Bauer <mjbauer95@gmail.com>
50 Jonathan Wakely <jwakely@redhat.com>
51
52 PR bootstrap/64271 (partial)
53 * config/os/bsd/netbsd/ctype_base.h (ctype_base::mask): Change type
54 to unsigned short.
55 (ctype_base::alpha, ctype_base::digit, ctype_base::xdigit)
56 (ctype_base::print, ctype_base::graph, ctype_base::alnum): Sync
57 definitions with NetBSD upstream.
58 (ctype_base::blank): Use _CTYPE_BL.
59 * config/os/bsd/netbsd/ctype_configure_char.cc (_C_ctype_): Remove
60 Declaration.
61 (ctype<char>::classic_table): Use _C_ctype_tab_ instead of _C_ctype_.
62 (ctype<char>::do_toupper, ctype<char>::do_tolower): Cast char
63 parameters to unsigned char.
64 * config/os/bsd/netbsd/ctype_inline.h (ctype<char>::is): Likewise.
65
d9165389
FD
662020-01-16 François Dumont <fdumont@gcc.gnu.org>
67
68 PR libstdc++/91263
69 * include/bits/hashtable.h (_Hashtable<>): Make _Equality<> friend.
70 * include/bits/hashtable_policy.h: Include <bits/stl_algo.h>.
71 (_Equality_base): Remove.
72 (_Equality<>::_M_equal): Review implementation. Use
73 std::is_permutation.
74 * testsuite/23_containers/unordered_multiset/operators/1.cc
75 (Hash, Equal, test02, test03): New.
76 * testsuite/23_containers/unordered_set/operators/1.cc
77 (Hash, Equal, test02, test03): New.
78
2a0f6c61
JW
792020-01-15 Jonathan Wakely <jwakely@redhat.com>
80
81 PR libstdc++/93267
82 * include/bits/iterator_concepts.h (__max_diff_type, __max_size_type):
83 Move here from <bits/range_access.h> and define using __int128 when
84 available.
85 (__is_integer_like, __is_signed_integer_like): Move here from
86 <bits/range_access.h>.
87 (weakly_incrementable): Use __is_signed_integer_like.
88 * include/bits/range_access.h (__max_diff_type, __max_size_type)
89 (__is_integer_like, __is_signed_integer_like): Move to
90 <bits/iterator_concepts.h>.
91 (__make_unsigned_like_t): Move here from <ranges>.
92 * include/std/ranges (__make_unsigned_like_t): Move to
93 <bits/range_access.h>.
94 (iota_view): Replace using-directive with using-declarations.
95 * testsuite/std/ranges/iota/93267.cc: New test.
96 * testsuite/std/ranges/iota_view.cc: Move to new 'iota' sub-directory.
97
e4379a93
JW
982020-01-13 Jonathan Wakely <jwakely@redhat.com>
99
fe7cc34f
JW
100 PR libstdc++/93244
101 * include/bits/fs_path.h (path::generic_string<C,A>)
102 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Convert root-dir to forward-slash.
103 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Check
104 root-dir is converted to forward slash in generic pathname.
105 * testsuite/27_io/filesystem/path/generic/utf.cc: New test.
106 * testsuite/27_io/filesystem/path/generic/wchar_t.cc: New test.
107
e4379a93
JW
108 PR libstdc++/58605
109 * include/bits/atomic_base.h (__cpp_lib_atomic_value_initialization):
110 Define.
111 (__atomic_flag_base, __atomic_base, __atomic_base<_PTp*>)
112 (__atomic_float): Add default member initializer for C++20.
113 * include/std/atomic (atomic): Likewise.
114 (atomic::atomic()): Remove noexcept-specifier on default constructor.
115 * include/std/version (__cpp_lib_atomic_value_initialization): Define.
116 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Adjust dg-error line
117 number.
118 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
119 * testsuite/29_atomics/atomic/cons/value_init.cc: New test.
120 * testsuite/29_atomics/atomic_flag/cons/value_init.cc: New test.
121 * testsuite/29_atomics/atomic_flag/requirements/trivial.cc: Adjust
122 expected result for is_trivially_default_constructible.
123 * testsuite/29_atomics/atomic_float/requirements.cc: Likewise.
124 * testsuite/29_atomics/atomic_float/value_init.cc: New test.
125 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Likewise.
126 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
127 * testsuite/29_atomics/atomic_integral/cons/value_init.cc
128 * testsuite/29_atomics/atomic_integral/requirements/trivial.cc: Adjust
129 expected results for is_trivially_default_constructible.
130 * testsuite/util/testsuite_common_types.h (has_trivial_dtor): Add
131 new test generator.
132
7918cb93
JW
1332020-01-10 Jonathan Wakely <jwakely@redhat.com>
134
68be73fc
JW
135 * testsuite/util/testsuite_iterators.h: Improve comment.
136
78f02e80
JW
137 * testsuite/25_algorithms/equal/deque_iterators/1.cc: Don't use C++11
138 initialization syntax.
139
7918cb93
JW
140 PR libstdc++/92285
141 * include/bits/streambuf_iterator.h (istreambuf_iterator): Make type
142 of base class independent of __cplusplus value.
143 [__cplusplus < 201103L] (istreambuf_iterator::reference): Override the
144 type defined in the base class
145 * testsuite/24_iterators/istreambuf_iterator/92285.cc: New test.
146 * testsuite/24_iterators/istreambuf_iterator/requirements/
147 base_classes.cc: Adjust expected base class for C++98.
148
acd43917
OH
1492020-01-09 Olivier Hainque <hainque@adacore.com>
150
151 * doc/xml/manual/appendix_contributing.xml: Document _C2
152 as a reserved identifier, by VxWorks.
153 * include/bits/stl_map.h: Rename _C2 template typenames as _Cmp2.
154 * include/bits/stl_multimap.h: Likewise.
155
caa39b2e
JW
1562020-01-09 Jonathan Wakely <jwakely@redhat.com>
157
1a788638
JW
158 * include/ext/extptr_allocator.h (_ExtPtr_allocator::operator==)
159 (_ExtPtr_allocator::operator!=): Add missing const qualifiers.
160 * include/ext/pointer.h (readable_traits<_Pointer_adapter<S>>): Add
161 partial specialization to disambiguate the two constrained
162 specializations.
163
caa39b2e
JW
164 * include/experimental/type_traits (experimental::is_pod_v): Disable
165 -Wdeprecated-declarations warnings around reference to std::is_pod.
166 * include/std/type_traits (is_pod_v): Likewise.
167 * testsuite/18_support/max_align_t/requirements/2.cc: Also check
168 is_standard_layout and is_trivial. Do not check is_pod for C++20.
169 * testsuite/20_util/is_pod/requirements/explicit_instantiation.cc:
170 Add -Wno-deprecated for C++20.
171 * testsuite/20_util/is_pod/requirements/typedefs.cc: Likewise.
172 * testsuite/20_util/is_pod/value.cc: Likewise.
173 * testsuite/experimental/type_traits/value.cc: Likewise.
174
1a6c5064
JTM
1752020-01-09 JeanHeyd "ThePhD" Meneide <phdofthehouse@gmail.com>
176
177 * include/bits/c++config (_GLIBCXX20_DEPRECATED): Add new macro.
178 * include/std/type_traits (is_pod, is_pod_v): Deprecate for C++20.
179 * testuite/20_util/is_pod/deprecated-2a.cc: New test.
180
d574c8aa
JW
1812020-01-09 Jonathan Wakely <jwakely@redhat.com>
182
160e95dc
JW
183 PR libstdc++/93205
184 * include/bits/random.h (operator>>): Check stream operation succeeds.
185 * include/bits/random.tcc (operator<<): Remove redundant __ostream_type
186 typedefs.
187 (operator>>): Remove redundant __istream_type typedefs. Check stream
188 operations succeed.
189 (__extract_params): New function to fill a vector from a stream.
190 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error line.
191
d574c8aa
JW
192 PR libstdc++/93208
193 * config/abi/pre/gnu.ver: Add new exports.
194 * include/std/memory_resource (memory_resource::~memory_resource()):
195 Do not define inline.
196 (monotonic_buffer_resource::~monotonic_buffer_resource()): Likewise.
197 * src/c++17/memory_resource.cc (memory_resource::~memory_resource()):
198 Define.
199 (monotonic_buffer_resource::~monotonic_buffer_resource()): Define.
200 * testsuite/20_util/monotonic_buffer_resource/93208.cc: New test.
201
b9c84e95
FD
2022020-01-09 François Dumont <fdumont@gcc.gnu.org>
203
204 PR libstdc++/92124
205 * include/bits/hashtable.h (_Hashtable<>::__alloc_node_gen_t): New
206 template alias.
207 (_Hashtable<>::__fwd_value_for): New.
208 (_Hashtable<>::_M_assign_elements<>): Remove _NodeGenerator template
209 parameter.
210 (_Hashtable<>::_M_assign<>): Add _Ht template parameter.
211 (_Hashtable<>::operator=(const _Hashtable<>&)): Adapt.
212 (_Hashtable<>::_M_move_assign): Adapt. Replace std::move_if_noexcept
213 with std::move.
214 (_Hashtable<>::_Hashtable(const _Hashtable&)): Adapt.
215 (_Hashtable<>::_Hashtable(const _Hashtable&, const allocator_type&)):
216 Adapt.
217 (_Hashtable<>::_Hashtable(_Hashtable&&, const allocator_type&)):
218 Adapt.
219 * testsuite/23_containers/unordered_set/92124.cc: New.
220
fff148b7
JW
2212020-01-08 Jonathan Wakely <jwakely@redhat.com>
222
223 PR libstdc++/93201
224 * src/c++17/fs_ops.cc (do_remove_all): New function implementing more
225 detailed error reporting for remove_all. Check result of recursive
226 call before incrementing iterator.
227 (remove_all(const path&), remove_all(const path&, error_code&)): Use
228 do_remove_all.
229 * src/filesystem/ops.cc (remove_all(const path&, error_code&)): Check
230 result of recursive call before incrementing iterator.
231 * testsuite/27_io/filesystem/operations/remove_all.cc: Check errors
232 are reported correctly.
233 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
234
9e3c1eb7
TR
2352020-01-07 Thomas Rodgers <trodgers@redhat.com>
236
237 * include/std/condition_variable
238 (condition_variable_any::wait_on): Rename to match current draft
239 standard.
240 (condition_variable_any::wait_on_until): Likewise.
241 (condition_variable_any::wait_on_for): Likewise.
242 * testsuite/30_threads/condition_variable_any/stop_token/wait_on.cc:
243 Adjust tests to account for renamed methods.
244
6af8819b
FD
2452020-01-07 François Dumont <fdumont@gcc.gnu.org>
246
247 PR libstdc++/92124
248 * include/bits/stl_tree.h
249 (_Rb_tree<>::_M_move_assign(_Rb_tree&, false_type)): Replace
250 std::move_if_noexcept by std::move.
251 * testsuite/23_containers/map/92124.cc: New.
252 * testsuite/23_containers/set/92124.cc: New.
253
f31a99f7
JW
2542020-01-06 Jonathan Wakely <jwakely@redhat.com>
255
a4a1f965
JW
256 * include/std/stop_token (stop_token): Remove operator!= (LWG 3254).
257 (stop_source): Likewise (LWG 3362).
258 * testsuite/30_threads/stop_token/stop_source.cc: Test equality
259 comparisons.
260
f31a99f7
JW
261 * include/bits/stl_algobase.h (__is_byte_iter, __min_cmp)
262 (lexicographical_compare_three_way): Do not depend on
263 __cpp_lib_concepts.
264 * include/std/version (__cpp_lib_three_way_comparison): Only define
265 when __cpp_lib_concepts is defined.
266 * libsupc++/compare (__cpp_lib_three_way_comparison): Likewise.
267
b4e70137
JW
2682020-01-03 Jonathan Wakely <jwakely@redhat.com>
269
270 * include/bits/stl_algobase.h (lexicographical_compare_three_way):
271 Only define four-argument overload when __cpp_lib_concepts is defined.
272
a8497ec6
JDA
2732020-01-01 John David Anglin <danglin@gcc.gnu.org>
274
275 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
276
8d9254fc 2772020-01-01 Jakub Jelinek <jakub@redhat.com>
5624e564
JJ
278
279 Update copyright years.
b4df5e92 280\f
8d9254fc 281Copyright (C) 2020 Free Software Foundation, Inc.
b4df5e92
JW
282
283Copying and distribution of this file, with or without modification,
284are permitted in any medium without royalty provided the copyright
285notice and this notice are preserved.
This page took 0.828992 seconds and 5 git commands to generate.