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