Improve docs for Networking TS
[gcc.git] / libstdc++-v3 / ChangeLog
1 2019-05-02 Jonathan Wakely <jwakely@redhat.com>
2
3 * include/experimental/bits/net.h: Fix/improve doxygen markup.
4 * include/experimental/buffer: Likewise.
5 * include/experimental/executor: Likewise.
6 * include/experimental/internet: Likewise.
7 * include/experimental/io_context: Likewise.
8 * include/experimental/net: Likewise.
9 * include/experimental/netfwd: Likewise.
10 * include/experimental/socket: Likewise.
11 * include/experimental/timer: Likewise.
12
13 * doc/doxygen/doxygroups.cc: Move description of experimental group
14 here.
15 * include/experimental/algorithm: Add to libfund-ts doc group.
16 * include/experimental/any: Likewise. Do not document implementation
17 details.
18 * include/experimental/array: Add to libfund-ts doc group.
19 * include/experimental/bits/lfts_config.h: Define libfund-ts doc group
20 for Library Fundamentals.
21 * include/experimental/chrono: Add to libfund-ts doc group.
22 * include/experimental/deque: Likewise.
23 * include/experimental/forward_list: Likewise.
24 * include/experimental/functional: Likewise.
25 * include/experimental/iterator: Likewise.
26 * include/experimental/list: Likewise.
27 * include/experimental/map: Likewise.
28 * include/experimental/memory: Likewise.
29 * include/experimental/memory_resource: Likewise. Improve docs.
30 details.
31 * include/experimental/numeric: Add to libfund-ts doc group.
32 * include/experimental/optional: Likewise.
33 * include/experimental/propagate_const: Likewise.
34 * include/experimental/random: Likewise.
35 * include/experimental/ratio: Likewise.
36 * include/experimental/regex: Likewise.
37 * include/experimental/set: Likewise.
38 * include/experimental/source_location: Likewise.
39 * include/experimental/string: Likewise.
40 * include/experimental/string_view: Likewise.
41 * include/experimental/system_error: Likewise.
42 * include/experimental/tuple: Likewise.
43 * include/experimental/type_traits: Likewise.
44 * include/experimental/unordered_map: Likewise.
45 * include/experimental/unordered_set: Likewise.
46 * include/experimental/utility: Likewise.
47 * include/experimental/vector: Likewise.
48 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
49 * testsuite/experimental/array/neg.cc: Adjust dg-error.
50 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
51 Likewise.
52 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
53 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
54 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
55 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
56 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
57
58 * include/experimental/bits/fs_dir.h: Fix Doxygen markup.
59 * include/experimental/bits/fs_fwd.h: Improve docs.
60 * include/experimental/bits/fs_ops.h: fix Doxygen markup.
61 * include/experimental/bits/fs_path.h: Likewise.
62 (path, filesystem_error, u8path): Improve docs.
63 * include/experimental/filesystem: Link to docs for TS.
64
65 * config/allocator/new_allocator_base.h (__allocator_base): Add
66 workaround for Doxygen bug #6945.
67 * include/std/memory: Improve docs. Define group for pointer safety.
68 * include/std/scoped_allocator: Improve docs. Use "undocumented"
69 conditional to suppress documentation for implementation details.
70
71 * include/bits/specfun.h: Improve docs.
72 * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions
73 and namespaces.
74
75 * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs.
76 (std::experimental): Add docs.
77 * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11
78 namespace to nothing when generating docs.
79 * include/bits/regex_constants.h (std::regex_constants): Improve docs.
80 * include/std/chrono (std::chrono): Likewise.
81 * include/std/functional (std::placeholders): Likewise.
82 * include/std/thread (std::this_thread): Likewise.
83
84 * include/parallel/settings.h: Fix Doxygen markup.
85
86 * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define
87 anything unless PB_DS_CLASS_C_DEC is defined.
88 * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise.
89 * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise.
90 * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise.
91 * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise.
92 * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise.
93 * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise.
94 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp:
95 Likewise.
96 * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise.
97 * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise.
98 * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise.
99 * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise.
100 * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise.
101 * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise.
102 * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise.
103 * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise.
104 * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise.
105 * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise.
106 * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp:
107 Likewise.
108 * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise.
109 * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp:
110 Likewise.
111 * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp:
112 Likewise.
113
114 * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set
115 GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various
116 _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that
117 Doxygen expands.
118
119 2019-05-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
120
121 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
122 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
123 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
124 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
125 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
126 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
127 Likewise.
128 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
129 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
130 Likewise.
131
132 2019-05-01 Jonathan Wakely <jwakely@redhat.com>
133
134 PR libstdc++/61761
135 * include/std/complex (__complex_proj): Return parameter unchanged.
136 [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for
137 floating-point types to take std::complex arguments.
138 [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for
139 floating-point types.
140 * testsuite/26_numerics/complex/proj.cc: New test.
141
142 2019-04-30 Jakub Jelinek <jakub@redhat.com>
143
144 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports
145 to _Lock_policyE[012].
146 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
147
148 2019-04-30 Jonathan Wakely <jwakely@redhat.com>
149
150 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove
151 macros accidentally left in.
152 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove
153 unnecessary -lstdc++fs option. Fix test for mingw.
154 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
155 Fix test for mingw.
156
157 2019-04-30 Jakub Jelinek <jakub@redhat.com>
158
159 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
160
161 2019-04-29 Jonathan Wakely <jwakely@redhat.com>
162
163 * include/bits/stl_algo.h (generate_n): Adjust doxygen comment.
164
165 * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use
166 _GLIBCXX_NOEXCEPT_IF to simplify declarations.
167
168 PR libstdc++/71312
169 * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes.
170
171 * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
172 attribute.
173
174 * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
175 class template and partial specialization.
176
177 PR libstdc++/87982
178 * include/bits/stl_algo.h (generate_n): Convert _Size parameter to
179 an integral type.
180 * include/bits/stl_algobase.h (__size_to_integer): New overloaded
181 functions to convert a value to an integral type.
182 (__fill_n_a, __fill_n_a): Assert that __n is already an integral type.
183 (fill_n): Convert _Size parameter to an integral type.
184 * testsuite/25_algorithms/fill_n/87982.cc: New test.
185 * testsuite/25_algorithms/fill_n/87982_neg.cc: New test.
186 * testsuite/25_algorithms/fill_n/dr426.cc: New test.
187 * testsuite/25_algorithms/generate_n/87982.cc: New test.
188 * testsuite/25_algorithms/generate_n/87982_neg.cc: New test.
189 * testsuite/25_algorithms/generate_n/dr426.cc: New test.
190
191 2019-04-28 Nina Dinka Ranns <dinka.ranns@gmail.com>
192
193 Adding noexcept-specification on tuple constructors (LWG 2899)
194 * libstdc++-v3/include/std/tuple:
195 (tuple()): Add noexcept-specification.
196 (tuple(const _Elements&...)): Likewise
197 (tuple(_UElements&&...)): Likewise
198 (tuple(const tuple<_UElements...>&)): Likewise
199 (tuple(tuple<_UElements...>&&)): Likewise
200 (tuple(const _T1&, const _T2&)): Likewise
201 (tuple(_U1&&, _U2&&)): Likewise
202 (tuple(const tuple<_U1, _U2>&): Likewise
203 (tuple(tuple<_U1, _U2>&&): Likewise
204 (tuple(const pair<_U1, _U2>&): Likewise
205 (tuple(pair<_U1, _U2>&&): Likewise
206 * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New
207
208 2019-04-27 Marc Glisse <marc.glisse@inria.fr>
209
210 PR libstdc++/87106
211 * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the
212 arguments with __restrict.
213
214 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
215
216 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
217
218 2019-04-26 Jonathan Wakely <jwakely@redhat.com>
219
220 * include/experimental/bits/fs_path.h
221 (path::_S_convert_loc<_InputIterator>): Create const std::string to
222 avoid redundant call to _S_convert_loc with non-const pointers.
223
224 * testsuite/20_util/variant/run.cc: Use a new Hashable type to test
225 hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
226 * testsuite/21_strings/basic_string/hash/hash.cc
227 [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
228 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc
229 [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
230
231 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches
232 wstring::_M_replace_dispatch with more specific patterns.
233 * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>):
234 Create const std::string to avoid redundant call to _S_convert_loc
235 with non-const pointers.
236 * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to
237 avoid unnecessary basic_string::assign instantiations.
238
239 * include/std/memory (__uses_alloc_args): Add string-literal to
240 static_assert, to match the one in __uses_alloc.
241 [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
242 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
243 for recursive uses-allocator construction of nested pairs.
244 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
245 comment.
246
247 2019-04-26 Jakub Jelinek <jakub@redhat.com>
248
249 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
250 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
251 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
252 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
253
254 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
255 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
256 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
257 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
258 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
259 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
260 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
261
262 2019-04-25 Jonathan Wakely <jwakely@redhat.com>
263
264 PR libstdc++/90239
265 * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
266 * include/std/scoped_allocator [__cplusplus > 201703L]
267 (scoped_allocator_adaptor::construct): Define in terms of
268 uses_allocator_construction_args, as per P0591R4.
269 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
270 * testsuite/util/testsuite_allocator.h: Remove name of unused
271 parameter.
272
273 2019-04-24 Jonathan Wakely <jwakely@redhat.com>
274
275 * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status.
276 * doc/html/*: Regenerate.
277
278 * include/bits/fs_path.h (operator<, operator<=, operator>)
279 (operator>=, operator==, operator!=): Make hidden friends, as per
280 LWG 3065.
281 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix
282 string type in test.
283 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
284
285 * include/std/any (any::any(ValueType&&)): Use __and_v.
286 * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)):
287 Likewise.
288
289 * include/std/tuple (apply): Use remove_reference_t instead of decay_t
290 as per P0777R1.
291 * include/std/type_traits (__result_of_memfun): Use remove_reference
292 instead of __remove_cvref_t and remove redundant is_same check.
293 (__inv_unwrap): Use __remove_cvref_t instead of decay_t.
294
295 * include/experimental/string_view (basic_string_view::pointer)
296 (basic_string_view::reference): Fix to refer to non-const value_type.
297 * include/bits/basic_string.h (basic_string): Use __sv_check and
298 __sv_limit instead of basic_string_view::_M_check and
299 basic_string_view::_M_limit.
300 * include/std/string_view (__sv_check, __sv_limit): New
301 helper functions to replace basic_string_view::_M_check and
302 basic_string_view::_M_limit.
303 (basic_string_view): Add static assertions to enforce ill-formed
304 requirement for traits_type::char_type from P1148R0, and to enforce
305 required properties of char-like types.
306 (basic_string_view::pointer, basic_string_view::reference): Fix to
307 refer to non-const value_type.
308 (basic_string_view::operator[], basic_string_view::at)
309 (basic_string_view::front, basic_string_view::back)
310 (basic_string_view::data): Use const_reference and const_pointer
311 typedefs for return types.
312 (basic_string_view::_M_check, basic_string_view::_M_limit): Remove.
313 (hash<wstring_view>): Fix argument_type typedef.
314 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
315 char/1.cc: Fix expected return type of basic_string_view::data().
316 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
317 wchar_t/1.cc: Likewise.
318 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
319 char/1.cc: Likewise.
320 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
321 wchar_t/1.cc: Likewise.
322 * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc:
323 New test.
324 * testsuite/21_strings/basic_string_view/requirements/typedefs.cc:
325 Check reference and pointer typedefs.
326 * testsuite/experimental/string_view/requirements/typedefs.cc:
327 Likewise.
328 * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
329 Fix expected return type of basic_string_view::data().
330 * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
331 1.cc: Likewise.
332 * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
333 Likewise.
334 * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
335 1.cc: Likewise.
336
337 PR libstdc++/90220
338 * include/std/any (__any_caster): Use remove_cv_t instead of decay_t.
339 Avoid a runtime check for types that can never be stored in std::any.
340 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
341 array types.
342
343 PR libstdc++/90220 (partial)
344 * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do
345 not attempt ill-formed static_cast to pointers to non-object types.
346 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
347 function types.
348
349 * testsuite/20_util/variant/run.cc: Catch exception by reference to
350 prevent -Wcatch-value warning.
351
352 * include/std/variant (__variant_construct): Use template parameter
353 type instead of equivalent decltype-specifier.
354 (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)):
355 Replace forward with move.
356 (_Move_ctor_base<false, Types...>::_M_destructive_move)
357 (_Move_ctor_base<false, Types...>::_M_destructive_copy)
358 (_Move_ctor_base<true, Types...>::_M_destructive_move)
359 (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the
360 index after construction succeeds.
361 (_Copy_assign_base<false, Types...>::operator=): Remove redundant
362 if-constexpr checks that are always true. Use __remove_cvref_t instead
363 of remove_reference so that is_nothrow_move_constructible check
364 doesn't use a const rvalue parameter. In the potentially-throwing case
365 construct a temporary and move assign it, as per LWG 2904.
366 (_Move_assign_base<false, Types...>::operator=): Remove redundant
367 if-constexpr checks that are always true. Use emplace as per LWG 2904.
368 (variant::operator=(T&&)): Only use emplace conditionally, otherwise
369 construct a temporary and move assign from it, as per LWG 2904.
370 * testsuite/20_util/variant/exception_safety.cc: Check that
371 assignment operators have strong exception safety guarantee.
372
373 2019-04-23 Thomas Rodgers <trodgers@redhat.com>
374
375 Document PSTL linker flags
376
377 * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1.
378
379 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
380
381 * include/std/variant (__detail::__variant::_Traits): Make
382 _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make
383 _S_trivial_move_assign depend on _S_trivial_move_ctor, as per
384 P0602R4.
385 (__detail::__variant::_Copy_assign_alias): Only depend on
386 _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now.
387 * testsuite/20_util/variant/compile.cc: Correct checks for trivial
388 move assignment operators.
389
390 PR libstdc++/90165
391 * include/std/variant (variant::__not_self): New helper for the
392 is_same_v<remove_cvref_t<T>, variant>==false constraints.
393 (variant::__to_type_impl): Remove.
394 (variant::__to_type): Add default argument to check pack size, instead
395 of using __to_type_impl.
396 (variant::__accepted_type): Add default argument using __not_self.
397 (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers
398 for variant(T&&) constructor constraint.
399 (variant::variant(T&&)): Use __not_in_place_tag in constraints.
400 Extract __accepted_type into a named template parameter for reuse in
401 other constraints and in the exception specification.
402 (variant::variant(in_place_type_t<T>, Args&&...))
403 (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...))
404 (variant::variant(in_place_index_t<T>, Args&&...))
405 (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...))
406 (variant::operator=T&&)): Remove redundant && from trait arguments.
407 * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor
408 isn't used for in_place_type or in_place_index arguments.
409
410 * include/std/type_traits (unwrap_reference_t): Define for C++2a.
411 (unwrap_ref_decay): Remove inheritance from unwrap_reference.
412 * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias.
413
414 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
415 Bernd Edlinger <bernd.edlinger@hotmail.de>
416 Jakub Jelinek <jakub@redhat.com>
417
418 PR target/89093
419 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add
420 general-regs-only target attribute for ARM.
421
422 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
423
424 PR libstdc++/87431
425 * include/bits/basic_string.h (_Never_valueless_alt): Make partial
426 specialization also depend on is_nothrow_move_constructible.
427 * include/std/variant (__detail::__variant::__never_valueless()):
428 Only true if the variant would have a move assignment operator.
429 (__detail::__variant::_Variant_storage<false, T...>::_M_valid()):
430 Check __never_valueless<T...>().
431 (variant::emplace): Only perform non-throwing move assignments
432 for never-valueless alternatives if the variant has a move assignment
433 operator.
434 * testsuite/20_util/variant/compile.cc: Check that never-valueless
435 types can be emplaced into non-assignable variants.
436 * testsuite/20_util/variant/run.cc: Check that never-valueless types
437 don't get copied when emplaced into non-assignable variants.
438
439 * include/std/variant (__detail::__variant::__ref_cast): Remove
440 unused function.
441 (__detail::__variant::_Uninitialized::_M_get)
442 (__detail::__variant::__get)
443 (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept.
444
445 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
446
447 * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8
448 to Darwin10.
449 * testsuite/17_intro/headers/c++2011/charset.cc: Likewise.
450 * testsuite/17_intro/headers/c++2014/charset.cc: Likewise.
451 * testsuite/17_intro/headers/c++2017/charset.cc: Likewise.
452 * testsuite/17_intro/headers/c++2020/charset.cc: Likewise.
453
454 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
455
456 Delegate PSTL configuration to pstl/pstl_config.h
457
458 * include/bits/c++config: Remove explicit PSTL configuration
459 macros and use definitions from <pstl/pstl_config.h>.
460
461 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
462
463 Cleanup algorithm implementations
464 * include/pstl/glue_algorithm_impl.h (stable_sort): Forward
465 execution policy.
466 (mismatch): Forward execution policy.
467 (equal): Qualify call to std::equal().
468 (partial_sort): Forward execution policy.
469 (inplace_merge): Forward execution policy.
470
471 2019-04-19 Thomas Rodgers <trodgers@redhat.com>
472
473 Improve implementation of parallel equal()
474 * include/pstl/algorithm_impl.h
475 (__internal::__brick_equal): use "4 iterator" version of
476 std::equal().
477 (__internal::__brick_equal): use simd for random access
478 iterators on unsequenced execution policies.
479 (__internal::__pattern_equal): add "4 iterator" version
480 (__internal::__pattern_equal): dispatch to simd __brick_equal
481 for vector-only execution policies.
482 (__internal::__pattern_equal): dispatch to __parallel_or for
483 parallel execution policies.
484 * include/pstl/glue_algorithm_impl.h
485 (std::equal): dispatch to "4 iterator" version of
486 __internal::__pattern_equal().
487
488 2019-04-17 Jonathan Wakely <jwakely@redhat.com>
489
490 PR libstdc++/90105
491 * include/bits/forward_list.h (operator==): Do not use operator!= to
492 compare elements.
493 (forward_list<T, A>::sort(Comp)): When elements are equal take the one
494 earlier in the list, so that sort is stable.
495 * testsuite/23_containers/forward_list/operations/90105.cc: New test.
496 * testsuite/23_containers/forward_list/comparable.cc: Test with
497 types that meet the minimum EqualityComparable and LessThanComparable
498 requirements. Remove irrelevant comment.
499
500 * include/std/variant (__detail::__variant::_Traits::_S_copy_assign):
501 Do not depend on whether all alternative types are move constructible.
502 (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals
503 from the operand when deciding whether to perform the assignment.
504 * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type
505 with deleted move constructor and deleted move assignment operator.
506 (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check
507 behaviour of variants with DeletedMoves as an alternative.
508 * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type.
509 (move_ctor, move_assign): Check that moving a variant with a
510 DeletedMoves alternative falls back to copying instead of moving.
511
512 * testsuite/20_util/variant/compile.cc: Remove empty string literals
513 from static_assert declarations.
514
515 * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
516 actually match its name.
517 (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
518 (test_swap()): Fix result for MoveCtorOnly and check
519 MoveCtorAndSwapOnly.
520
521 * include/std/optional (optional::value_or(U&&) &&): Add missing
522 constexpr specifier.
523 * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or
524 for disengaged optionals and rvalue optionals.
525 * testsuite/20_util/optional/observers/4.cc: Likewise.
526
527 2019-04-12 Thomas Rodgers <trodgers@redhat.com>
528
529 * include/pstl/algorithm_impl.h: Uglify identfiers.
530 * include/pstl/numeric_impl.h: Uglify identfiers.
531 * include/pstl/parallel_backend_tbb.h: Uglify identfiers.
532
533 2019-04-11 Thomas Rodgers <trodgers@redhat.com>
534
535 * include/bits/c++config:
536 Add definition for __PSTL_ASSERT.
537 Add definition for __PSTL_ASSERT_MSG.
538 * include/pstl/algorithm_impl.h: Replace use of assert().
539 * include/pstl/numeric_impl.h: Replace use of assert().
540 * include/pstl/parallel_backend_tbb.h:
541 Replace use of assert().
542 Replace use of __TBB_ASSERT().
543 * include/pstl/parallel_backend_utils.h: Replace use of assert().
544
545 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
546
547 PR libstdc++/90046
548 * src/c++17/memory_resource.cc
549 (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if
550 needed to allow placing a _Chunk at the end of the buffer.
551 (monotonic_buffer_resource::_M_new_buffer): Remove static_assert.
552
553 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
554
555 * doc/xml/faq.xml: Add information about emergency EH pool.
556 * doc/xml/manual/debug.xml: Update list of memory debugging tools.
557 Move outdated information on mt_allocator to a separate section.
558 * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW
559 doesn't affect the default allocator.
560
561 * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix
562 typo.
563
564 PR libstdc++/89851
565 * testsuite/20_util/variant/89851.cc: New test.
566
567 2019-04-09 Jonathan Wakely <jwakely@redhat.com>
568
569 * include/std/variant: Adjust whitespace. Add comments.
570 (_Multi_array): Leave primary template undefined.
571 (_Multi_array<_Tp>): Define partial specialization for base case of
572 recursion.
573 (__gen_vtable_impl, __gen_vtable): Remove redundant && from type
574 which is always a reference.
575 (__gen_vtable::_S_apply()): Remove function, inline body into
576 default member initializer.
577 * testsuite/20_util/variant/visit.cc: Test with noncopyable types.
578
579 * include/std/variant (__variant_idx_cookie): Add member type.
580 (__visitor_result_type): Remove.
581 (__do_visit): Use invoke_result instead of __visitor_result_type.
582 * testsuite/20_util/variant/visit.cc: New test.
583
584 PR libstdc++/90008
585 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove
586 unused capture.
587 * testsuite/20_util/variant/90008.cc: New test.
588
589 2019-04-09 Thomas Rodgers <trodgers@redhat.com>
590
591 * include/pstl/algorithm_impl.h: Add namespace qualification.
592 * include/pstl/execution_defs.h: Add namespace qualification.
593 * include/pstl/execution_impl.h: Add namespace qualification.
594 * include/pstl/numeric_impl.h: Add namespace qualification.
595 * include/pstl/parallel_backend_tbb.h: Add namespace qualification.
596 * include/pstl/unseq_backend_simd.h: Add namespace qualification.
597 * include/pstl/parallel_backend_utils.h: Include <cassert>.
598
599 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com>
600
601 Fix visit<R> for variant.
602 * include/std/variant (__do_visit): Add a template parameter
603 for enforcing same return types for visit.
604 (__gen_vtable_impl): Likewise.
605 (_S_apply_single_alt): Adjust.
606 (__visit_invoke_impl): New. Handle casting to void.
607 (__do_visit_invoke): New. Enforces same return types.
608 (__do_visit_invoke_r): New. Converts return types.
609 (__visit_invoke): Adjust.
610 (__gen_vtable): Add a template parameter for enforcing
611 same return types for visit.
612 * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with
613 different return types.
614 * testsuite/20_util/variant/visit_neg.cc: New. Ensures that
615 visitors with different return types don't accidentally
616 compile with regular visitation.
617
618 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org>
619
620 * testsuite/27_io/filesystem/iterators/caching.cc: Add
621 dg-require-filesystem-ts.
622
623 2019-04-05 Jonathan Wakely <jwakely@redhat.com>
624
625 * doc/xml/manual/status_cxx2020.xml: Update status.
626 * include/std/variant (visit<R>): Define for C++2a (P0655R1).
627 * testsuite/20_util/variant/visit_r.cc: New test.
628
629 * include/bits/fs_dir.h (directory_iterator::operator*)
630 (directory_iterator::operator->): Add noexcept.
631 (operator==, operator!=): Replace namespace-scope equality operators
632 for directory iterators with hidden friends.
633
634 PR libstdc++/89986
635 * config/abi/pre/gnu.ver: Add missing exports.
636 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test
637 increment member.
638
639 * config/abi/pre/gnu.ver: Export new symbols.
640 * include/bits/fs_dir.h (recursive_directory_iterator::options())
641 (recursive_directory_iterator::recursion_pending())
642 (recursive_directory_iterator::disable_recursion_pending()): Remove
643 inline definitions. Make noexcept.
644 (recursive_directory_iterator::depth())
645 (recursive_directory_iterator::operator*())
646 (recursive_directory_iterator::operator->()): Make noexcept.
647 (recursive_directory_iterator::_M_options)
648 (recursive_directory_iterator::_M_pending): Remove data members.
649 * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members.
650 (recursive_directory_iterator::recursive_directory_iterator): Remove
651 ctor-initializer. Use new constructor for _Dir_stack.
652 (recursive_directory_iterator::options())
653 (recursive_directory_iterator::recursion_pending())
654 (recursive_directory_iterator::disable_recursion_pending()): Add
655 non-inline definitions.
656 (recursive_directory_iterator::depth()): Make noexcept.
657 (recursive_directory_iterator::increment(error_code&))
658 (recursive_directory_iterator::pop(error_code&)): Adjust to new
659 location of options and recursion_pending members.
660 * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test.
661 * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add
662 user-declared move constructor and assignment operator, to make the
663 type move-only.
664
665 * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
666 d_type == DT_UNKNOWN immediately.
667 (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
668 handling here.
669 * testsuite/27_io/filesystem/iterators/caching.cc: New test.
670
671 * include/bits/fs_path.h (path::operator=(path&&)): Check for self
672 assignment.
673 * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise.
674 * testsuite/27_io/filesystem/path/assign/copy.cc: Test self
675 assignment.
676
677 PR libstdc++/87431 (again)
678 * include/bits/basic_string.h (__variant::_Never_valueless_alt):
679 Define partial specialization for basic_string.
680 * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for
681 shared_ptr and weak_ptr.
682 * include/bits/std_function.h (_Never_valueless_alt): Likewise for
683 function.
684 * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for
685 vector.
686 * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for
687 unique_ptr.
688 * include/debug/vector (_Never_valueless_alt): Likewise for debug
689 vector.
690 * include/std/any (_Never_valueless_alt): Define explicit
691 specialization for any.
692 * include/std/variant (_Never_valueless_alt): Define primary template.
693 (__never_valueless): Use _Never_valueless_alt instead of
694 is_trivially_copyable.
695 (variant::emplace<N>(Args&&...)): Add special case for non-throwing
696 initializations to avoid try-catch overhead. Add special case for
697 scalars produced by potentially-throwing conversions. Use
698 _Never_valueless_alt instead of is_trivially_copyable for the
699 remaining strong exception-safety cases.
700 (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise.
701 * testsuite/20_util/variant/87431.cc: Run both test functions.
702 * testsuite/20_util/variant/exception_safety.cc: New test.
703 * testsuite/20_util/variant/run.cc: Use pmr::string instead of string,
704 so the variant becomes valueless.
705
706 2019-04-03 Jonathan Wakely <jwakely@redhat.com>
707
708 PR libstdc++/85184
709 * include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
710 Remove assertions.
711 (variant::emplace<_Tp>): Return result of emplace<N> directly.
712
713 * include/std/string (__hash_string_base): New class template defining
714 operator() for hashing strings.
715 (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
716 (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
717 * testsuite/21_strings/basic_string/hash/hash.cc: New test.
718 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.
719
720 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com>
721
722 Use single-visitation in variant assignment and swap and relops.
723 Also use indices instead of types when checking whether
724 variants hold the same thing.
725 * include/std/variant (__do_visit): Add a template parameter
726 for index visitation, invoke with indices if index visitation
727 is used.
728 (__variant_idx_cookie): New.
729 (__visit_with_index): Likewise.
730 (_Copy_assign_base::operator=): Do single-visitation with
731 an index visitor.
732 (_Move_assign_base::operator=): Likewise.
733 (_Extra_visit_slot_needed): Adjust.
734 (__visit_invoke): Call with indices if it's an index visitor.
735 (relops): Do single-visitation with an index visitor.
736 (swap): Likewise.
737 (__visitor_result_type): New.
738
739 2019-03-30 Eric Botcazou <ebotcazou@adacore.com>
740
741 * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
742
743 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com>
744
745 Don't revisit a variant we are already visiting.
746 * include/std/variant (__variant_construct_single): New.
747 (__variant_construct): Use it.
748 (_M_destructive_move): Likewise.
749 (_M_destructive_copy): Likewise.
750 (_Copy_assign_base::operator=): Adjust.
751 (_Move_assign_base::operator=): Likewise.
752 (swap): Likewise.
753
754 2019-03-26 Jonathan Wakely <jwakely@redhat.com>
755
756 PR libstdc++/85965
757 * include/bits/hashtable.h (_Hashtable): Move static assertions to
758 destructor so they are not evaluated until the _Key type is complete.
759 * include/bits/stl_tree.h (_Rb_tree): Likewise.
760 * testsuite/23_containers/set/85965.cc: New test.
761 * testsuite/23_containers/unordered_set/85965.cc: New test.
762 * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors
763 with regexp matching the corresponding _Rb_tree specialization.
764 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
765 * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error.
766 * testsuite/23_containers/set/48101_neg.cc: Likewise.
767 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
768 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
769 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
770 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
771
772 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
773
774 PR libstdc++/89825
775 Fix based on a suggestion by Antony Polukhin.
776 * include/std/variant (__never_valueless): New.
777 (_M_valid): Use it.
778 (_Extra_visit_slot_needed): New.
779 (_Multi_array): Use it.
780 (_S_apply_all_alts): Likewise.
781
782 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
783
784 PR libstdc++/89824
785 Fix based on a suggestion by Antony Polukhin.
786 * include/std/variant (__gen_vtable): Don't reserve an
787 additional table slot, _Multi_array already does that.
788
789 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
790
791 PR libstdc++/89816
792 Fix based on a suggestion by Antony Polukhin.
793 * include/std/variant (__variant_construct): Capture a pointer
794 to the storage and visit just one variant.
795
796 2019-03-22 Jonathan Wakely <jwakely@redhat.com>
797
798 * doc/xml/manual/backwards_compatibility.xml: Remove link to
799 Doxygen-generated pages with unstable URL.
800 * doc/xml/manual/concurrency_extensions.xml: Likewise.
801 * doc/xml/manual/extensions.xml: Likewise.
802 * doc/xml/manual/parallel_mode.xml: Likewise.
803 * doc/xml/manual/support.xml: Likewise.
804
805 * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
806 avoid -Wconversion warnings.
807
808 2019-03-21 Thomas Rodgers <trodgers@redhat.com>
809
810 * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
811 (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
812 (allstamped): Add stamp-pstl.
813 (install-headers): Add ptsl_builddir.
814 * include/Makefile.in: Regenerate.
815 * include/bits/c++config: Add pstl configuration.
816 * include/pstl/LICENSE.txt: New file.
817 * include/pstl/algorithm_fwd.h: New file.
818 * include/pstl/algorithm_impl.h: New file.
819 * include/pstl/execution_defs.h: New file.
820 * include/pstl/execution_impl.h: New file.
821 * include/pstl/glue_algorithm_defs.h: New file.
822 * include/pstl/glue_algorithm_impl.h: New file.
823 * include/pstl/glue_execution_defs.h: New file.
824 * include/pstl/glue_memory_defs.h: New file.
825 * include/pstl/glue_memory_impl.h: New file.
826 * include/pstl/glue_numeric_defs.h: New file.
827 * include/pstl/glue_numeric_impl.h: New file.
828 * include/pstl/memory_impl.h: New file.
829 * include/pstl/numeric_fwd.h: New file.
830 * include/pstl/numeric_impl.h: New file.
831 * include/pstl/parallel_backend.h: New file.
832 * include/pstl/parallel_backend_tbb.h: New file.
833 * include/pstl/parallel_backend_utils.h: New file.
834 * include/pstl/parallel_impl.h: New file.
835 * include/pstl/pstl_config.h: New file.
836 * include/pstl/unseq_backend_simd.h: New file.
837 * include/pstl/utils.h: New file.
838 * include/std/algorithm: Include parallel algorithm implementations.
839 * include/std/execution: New file.
840 * include/std/memory: Include parallel algorithm implementations.
841 * include/std/numeric: Include parallel algorithm implementations.
842 * include/std/version: Add parallel algorithms feature test macro.
843 * testsuite/util/pstl/pstl_test_config.h: New file.
844 * testsuite/util/pstl/test_utils.h: New file.
845 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
846 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
847 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
848 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
849 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
850 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
851 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
852 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
853 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
854 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
855 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
856 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
857 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
858 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
859 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
860 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
861 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
862 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
863 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
864 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
865 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
866 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
867 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
868 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
869 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
870 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
871 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
872 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
873 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
874 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
875 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
876 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
877 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
878 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
879 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
880 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
881 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
882 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
883 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
884 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
885 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
886 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
887 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
888 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
889 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
890 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
891 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
892 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
893 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
894 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
895 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
896 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
897 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
898 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
899 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
900 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
901 * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
902 * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
903 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
904 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
905 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
906 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
907 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
908 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
909 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
910 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
911 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
912 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
913 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
914 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
915 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
916 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
917 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
918 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
919 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
920 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
921 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
922 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
923 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
924 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
925 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
926 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
927 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
928 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
929 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
930 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
931 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
932 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
933 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
934 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
935 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
936 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
937 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
938 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
939 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
940 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
941 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
942 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
943 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
944 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
945 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
946 * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
947 * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
948 * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
949 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
950 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
951
952 2019-03-21 Jonathan Wakely <jwakely@redhat.com>
953
954 * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
955 (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
956 (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
957 (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
958 (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
959 (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
960 (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
961 (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
962 (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
963 (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
964 (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
965 (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
966 (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
967 (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
968 when the special functions IS is enabled, not for C++17.
969 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
970 Replace with ...
971 * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
972 without checks for special functions in C++17.
973 * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
974 New test.
975
976 PR libstdc++/88066
977 * include/backward/hash_map: Use <> for includes not "".
978 * include/backward/hash_set: Likewise.
979 * include/backward/strstream: Likewise.
980 * include/tr1/bessel_function.tcc: Likewise.
981 * include/tr1/exp_integral.tcc: Likewise.
982 * include/tr1/legendre_function.tcc: Likewise.
983 * include/tr1/modified_bessel_func.tcc: Likewise.
984 * include/tr1/riemann_zeta.tcc: Likewise.
985
986 2019-03-19 Jonathan Wakely <jwakely@redhat.com>
987
988 * doc/xml/manual/allocator.xml: Link to table documenting evolution
989 of extension allocators.
990 * doc/xml/manual/evolution.xml: Use angle brackets for header names.
991 Document new headers in 7.2, 8.1 and 9.1 releases.
992 * doc/xml/manual/using.xml: Adjust link target for new_allocator.
993 * doc/html/*: Regenerate.
994
995 2019-03-12 John David Anglin <dave.anglin@bell.net>
996
997 PR libstdc++/89461
998 * testsuite/lib/libstdc++.exp: Locate libatomic.
999 * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
1000 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
1001 libatomic options.
1002 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
1003 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
1004 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
1005 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
1006
1007 2019-03-11 Jonathan Wakely <jwakely@redhat.com>
1008
1009 PR libstdc++/89460
1010 * configure.ac: Check for sockatmark.
1011 * crossconfig.m4: Check for sockatmark.
1012 * config.h.in: Regenerate.
1013 * configure: Regenerate.
1014 * include/experimental/internet (address_v4::_S_hton): Rename
1015 overloaded functions to _S_hton_16 and _S_ntoh_16.
1016 (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
1017 (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
1018 * include/experimental/socket (basic_socket::at_mark): Check
1019 _GLIBCXX_HAVE_SOCKATMARK.
1020
1021 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
1022 const variables instead of macros.
1023
1024 PR libstdc++/89629
1025 * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
1026 Use correct type for len_aligned.
1027 * testsuite/20_util/hash/89629.cc: New test.
1028
1029 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1030
1031 PR libstdc++/89641
1032 * include/std/atomic (atomic<T>::store, atomic<T>::load,
1033 atomic<T>::exchange, atomic<T>::compare_exchange_weak,
1034 atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
1035 * include/bits/atomic_base.h (__atomic_base<T>::operator++,
1036 __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
1037 __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
1038 __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
1039 __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
1040 __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
1041 memory_order_seq_cst to int.
1042
1043 2019-03-08 Jonathan Wakely <jwakely@redhat.com>
1044
1045 * doc/xml/manual/using.xml: Use link element instead of xref.
1046 * doc/html/*: Regenerate.
1047
1048 * include/bits/fs_path.h (path::format): Add fixed underlying type.
1049
1050 2019-03-08 François Dumont <fdumont@gcc.gnu.org>
1051
1052 PR libstdc++/89477
1053 * include/debug/map.h (map): Use _RequireNotAllocator to constrain
1054 parameters in deduction guides.
1055 * include/debug/multimap.h (multimap): Likewise.
1056 * include/debug/set.h (multimap): Likewise.
1057 * include/debug/multiset.h (multimap): Likewise.
1058 * include/debug/unordered_map (unordered_map): Likewise.
1059 (unordered_multimap): Likewise.
1060 * include/debug/unordered_set (unordered_set): Likewise.
1061 (unordered_multiset): Likewise.
1062
1063 PR libstdc++/89608
1064 * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
1065 Invalidate all iterators in case of rehash.
1066 (unordered_multimap<>::_M_check_rehashed): Likewise.
1067 * include/debug/unordered_set
1068 (unordered_set<>::_M_check_rehashed): Likewise.
1069 (unordered_multiset<>::_M_check_rehashed): Likewise.
1070 * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
1071
1072 2019-03-07 Andreas Schwab <schwab@suse.de>
1073
1074 * config/abi/post/riscv64-linux-gnu: New directory.
1075 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
1076
1077 2019-03-07 Jonathan Wakely <jwakely@redhat.com>
1078
1079 * testsuite/20_util/function_objects/bind_front/1.cc: Change from
1080 compile test to run. Fix typo.
1081
1082 * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
1083 * doc/html/*: Regenerate.
1084
1085 P0356R5 Simplified partial function application
1086 * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
1087 helpers for bind_front.
1088 (bind_front, __cpp_lib_bind_front): Define.
1089 * testsuite/20_util/function_objects/bind_front/1.cc: New test.
1090
1091 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
1092
1093 * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
1094 * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
1095 * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
1096 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
1097
1098 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1099
1100 PR libstdc++/86655 - std::assoc_legendre should not constrain
1101 the value of m (or x).
1102 * include/tr1/legendre_function.tcc (__assoc_legendre_p,
1103 __sph_legendre): If degree > order Don't throw, return 0.
1104 (__legendre_p, __assoc_legendre_p): Don't constrain x either.
1105 * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
1106 * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
1107 * testsuite/tr1/5_numerical_facilities/special_functions/
1108 02_assoc_legendre/pr86655.cc: New test.
1109 * testsuite/tr1/5_numerical_facilities/special_functions/
1110 22_sph_legendre/pr86655.cc: New test.
1111
1112 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
1113
1114 Rewrite variant.
1115 Also PR libstdc++/85517
1116 * include/std/variant (__do_visit): New.
1117 (__variant_cast): Likewise.
1118 (__variant_cookie): Likewise.
1119 (__erased_*): Remove.
1120 (_Variant_storage::_S_vtable): Likewise.
1121 (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
1122 (_Variant_storage::__M_reset): Adjust.
1123 (__variant_construct): New.
1124 (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
1125 __variant_construct.
1126 (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
1127 (_Move_ctor_base::__M_destructive_copy): New.
1128 (_Move_ctor_base::__M_destructive_move): Adjust to use
1129 __variant_construct.
1130 (_Copy_assign_base::operator=): Adjust to use __do_visit.
1131 (_Copy_assign_alias): Adjust to check both copy assignment
1132 and copy construction for triviality.
1133 (_Move_assign_base::operator=): Adjust to use __do_visit.
1134 (_Multi_array): Add support for visitors that accept and return
1135 a __variant_cookie.
1136 (__gen_vtable_impl::_S_apply_all_alts): Likewise.
1137 (__gen_vtable_impl::_S_apply_single_alt): Likewise.
1138 (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
1139 a __variant_cookie temporary for a variant that is valueless and..
1140 (__gen_vtable_impl::__visit_invoke): ..adjust here.
1141 (__gen_vtable::_Array_type): Conditionally make space for
1142 the __variant_cookie visitor case.
1143 (__variant_construct_by_index): New.
1144 (get_if): Adjust to use std::addressof.
1145 (relops): Adjust to use __do_visit.
1146 (variant): Add __variant_cast and __variant_construct_by_index
1147 as friends.
1148 (variant::emplace): Use _M_reset() and __variant_construct_by_index
1149 instead of self-destruction.
1150 (variant::swap): Adjust to use __do_visit.
1151 (visit): Reimplement in terms of __do_visit.
1152 (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
1153 * testsuite/20_util/variant/compile.cc: Adjust.
1154 * testsuite/20_util/variant/run.cc: Likewise.
1155
1156 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
1157
1158 * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
1159 constant.
1160 * testsuite/experimental/feat-char8_t.cc: Likewise.
1161
1162 * include/std/type_traits [C++20] (is_bounded_array)
1163 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
1164 Define.
1165 * testsuite/20_util/is_bounded_array/requirements/
1166 explicit_instantiation.cc: New test.
1167 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
1168 test.
1169 * testsuite/20_util/is_bounded_array/value.cc: New test.
1170 * testsuite/20_util/is_unbounded_array/requirements/
1171 explicit_instantiation.cc: New test.
1172 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
1173 * test.
1174 * testsuite/20_util/is_unbounded_array/value.cc: New test.
1175
1176 * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
1177 Add constexpr.
1178 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
1179
1180 2019-03-05 Jonathan Wakely <jwakely@redhat.com>
1181
1182 * include/c_compatibility/math.h [C++20] (lerp): Add using
1183 declaration.
1184 * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
1185 (__lerp): Define function template to implement lerp.
1186 (lerp(float, float, float), lerp(double, double, double))
1187 (lerp(long double, long double, long double)): Define for C++20.
1188 * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
1189 (midpoint(T, T), midpoint(T*, T*)): Define.
1190 * include/std::version [C++20] (__cpp_lib_interpolate): Define.
1191 * testsuite/26_numerics/lerp.cc: New test.
1192 * testsuite/26_numerics/midpoint/floating.cc: New test.
1193 * testsuite/26_numerics/midpoint/integral.cc: New test.
1194 * testsuite/26_numerics/midpoint/pointer.cc: New test.
1195
1196 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net>
1197
1198 PR libstdc++/88996 Implement P0439R0
1199 Make std::memory_order a scoped enumeration.
1200 * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
1201 add variables for the old enumerators. Adjust calls.
1202 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
1203 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
1204
1205 2019-03-04 Jonathan Wakely <jwakely@redhat.com>
1206
1207 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
1208 directive.
1209
1210 * include/std/memory_resource (polymorphic_allocator): Add default
1211 template argument for C++20.
1212 (polymorphic_allocator::allocate_bytes)
1213 (polymorphic_allocator::deallocate_bytes)
1214 (polymorphic_allocator::allocate_object)
1215 (polymorphic_allocator::deallocate_object)
1216 (polymorphic_allocator::new_object)
1217 (polymorphic_allocator::delete_object): New member functions for
1218 C++20.
1219 * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
1220 test.
1221
1222 2019-03-03 Jonathan Wakely <jwakely@redhat.com>
1223
1224 PR libstdc++/89562
1225 * src/filesystem/ops-common.h (do_copy_file): Open files in binary
1226 mode for mingw.
1227
1228 2019-03-01 Jonathan Wakely <jwakely@redhat.com>
1229
1230 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
1231 [!__cpp_sized_deallocation]: Do not pass size to operator delete.
1232
1233 * include/std/memory (uses_allocator_construction_args): New set of
1234 overloaded functions.
1235 (make_obj_using_allocator, uninitialized_construct_using_allocator):
1236 New functions.
1237 * include/std/memory_resource (polymorphic_allocator::construct)
1238 [__cplusplus > 201703l]: Replace all overloads with a single function
1239 using uses_allocator_construction_args.
1240 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
1241 test.
1242 * testsuite/20_util/uses_allocator/make_obj.cc: New test.
1243
1244 2019-02-27 Jonathan Wakely <jwakely@redhat.com>
1245
1246 PR libstdc++/89466
1247 * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
1248 stylesheet directories before check for xsltproc. Try to use
1249 xmlcatalog to find local stylesheet directory before trying hardcoded
1250 paths. Add path used by suse to hardcoded paths. Adjust xsltproc
1251 check to look for the same stylesheet as doc/Makefile.am uses. Don't
1252 use xsltproc if xmlcatalog fails to find a local stylesheet.
1253 * configure.ac: Check for xmlcatalog.
1254 * Makefile.in: Regenerate.
1255 * configure: Likewise.
1256 * doc/Makefile.in: Likewise.
1257 * include/Makefile.in: Likewise.
1258 * libsupc++/Makefile.in: Likewise.
1259 * po/Makefile.in: Likewise.
1260 * python/Makefile.in: Likewise.
1261 * src/Makefile.in: Likewise.
1262 * src/c++11/Makefile.in: Likewise.
1263 * src/c++17/Makefile.in: Likewise.
1264 * src/c++98/Makefile.in: Likewise.
1265 * src/filesystem/Makefile.in: Likewise.
1266 * testsuite/Makefile.in: Likewise.
1267
1268 2019-02-26 Jonathan Wakely <jwakely@redhat.com>
1269
1270 PR libstdc++/89477
1271 * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
1272 container deduction guides.
1273 * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
1274 * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
1275 parameters in deduction guides.
1276 * include/bits/stl_multimap.h (multimap): Likewise.
1277 * include/bits/stl_multiset.h (multiset): Likewise.
1278 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
1279 * include/bits/stl_set.h (set): Likewise.
1280 * include/bits/stl_stack.h (stack): Likewise.
1281 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
1282 use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
1283 constrain parameters in deduction guides.
1284 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
1285 Likewise.
1286 * testsuite/23_containers/map/cons/deduction.cc: Test additional
1287 deduction cases.
1288 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
1289 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
1290 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
1291 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
1292 Likewise.
1293 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
1294 Likewise.
1295 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
1296
1297 PR libstdc++/89416
1298 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
1299 to class template and partial specialization using void_t.
1300 (__is_copy_insertable, __is_move_insertable): Adjust base class.
1301
1302 2019-02-24 Jonathan Wakely <jwakely@redhat.com>
1303
1304 PR libstdc++/89416
1305 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
1306 copy and move members public.
1307
1308 2019-02-23 Jonathan Wakely <jwakely@redhat.com>
1309
1310 * include/std/type_traits (__underlying_type_impl): New helper to
1311 make underlying_type SFINAE-friendly.
1312 (underlying_type): Derive from __underlying_type_impl.
1313 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
1314 test.
1315
1316 PR libstdc++/89446
1317 * include/bits/char_traits.h (__constant_char_array): Check index is
1318 in range before dereferencing.
1319 (char_traits<char>::compare, char_traits<char>::find)
1320 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
1321 immediately if n is zero.
1322 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
1323 Remove workarounds for PR 67026.
1324 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
1325 New test.
1326 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
1327 New test.
1328
1329 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
1330
1331 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
1332 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
1333
1334 2019-02-22 Jakub Jelinek <jakub@redhat.com>
1335
1336 PR libstdc++/89402
1337 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
1338 type to std::size_t and argument to type to long double.
1339
1340 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
1341
1342 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
1343 * config/abi/post/sparc64-linux-gnu: New directory.
1344 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
1345 * config/abi/post/sparc64-linux-gnu/32: New directory.
1346 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
1347
1348 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
1349
1350 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
1351 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
1352 test.
1353
1354 2019-02-22 Tom Honermann <tom@honermann.net>
1355
1356 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
1357 printers for u8string and u8string_view.
1358
1359 2019-02-22 Tom Honermann <tom@honermann.net>
1360
1361 * testsuite/18_support/byte/ops.cc: Validate
1362 std::to_integer<char8_t>, std::to_integer<char16_t>, and
1363 std::to_integer<char32_t>.
1364 * testsuite/18_support/numeric_limits/dr559.cc: Validate
1365 std::numeric_limits<char8_t>.
1366 * testsuite/18_support/numeric_limits/lowest.cc: Validate
1367 std::numeric_limits<char8_t>::lowest().
1368 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
1369 std::numeric_limits<char8_t>::max_digits10.
1370 * testsuite/18_support/type_info/fundamental.cc: Validate
1371 typeinfo for char8_t.
1372 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
1373 std::from_chars with char8_t.
1374 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
1375 Validate explicit instantiation of std::hash<char8_t>.
1376 * testsuite/20_util/is_integral/value.cc: Validate
1377 std::is_integral<char8_t>.
1378 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
1379 Validate std::make_signed<char8_t>.
1380 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
1381 Validate u8string construction from char8_t sources.
1382 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
1383 std::pmr::u8string.
1384 * testsuite/21_strings/basic_string_view/operations/compare/
1385 char/70483.cc: Validate substr operations on u8string_view.
1386 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
1387 the u8string_view typedef is defined.
1388 * testsuite/21_strings/char_traits/requirements/
1389 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
1390 member functions.
1391 * testsuite/21_strings/char_traits/requirements/
1392 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
1393 constexpr member functions.
1394 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
1395 that the u8string typedef is defined.
1396 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
1397 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
1398 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
1399 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
1400 numbers.
1401 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
1402 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
1403 Likewise.
1404 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
1405 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
1406 Validate std::atomic<char8_t>::is_always_lock_free
1407 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
1408 Update line numbers.
1409 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
1410 Likewise.
1411 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
1412 Likewise.
1413 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
1414 Validate std::experimental::pmr::u8string.
1415 * testsuite/experimental/string_view/typedefs.cc: Validate that the
1416 u8string_view typedef is defined.
1417 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
1418 char32_t to the typelists.
1419
1420 2019-02-22 Tom Honermann <tom@honermann.net>
1421
1422 * include/ext/typelist.h: Constrain a partial specialization of
1423 typelist::detail::append_ to only match chain<T1,T2>.
1424
1425 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
1426
1427 PR libstdc++/89416
1428 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
1429 class template with class. Replace move and copy member types with
1430 member alias templates, so they are only instantiated when needed.
1431 (__is_copy_insertable, __is_move_insertable): Adjust base class.
1432 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
1433 test for C++11/14/17 as well.
1434 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
1435 test.
1436
1437 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1438
1439 PR libstdc++/89402
1440 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
1441 _GLIBCXX_PURE to the alias declaration.
1442
1443 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
1444
1445 * testsuite/21_strings/basic_string/literals/types.cc
1446 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
1447 * testsuite/21_strings/basic_string/literals/values.cc
1448 [_GLIBCXX_USE_CHAR8_T]: Likewise.
1449 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
1450 potentially having different type.
1451 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
1452 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
1453 to char.
1454 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
1455 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
1456 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
1457 string literals only using basic character set.
1458 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
1459 u8 literals to char.
1460 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
1461 Test ATOMIC_CHAR8_T_LOCK_FREE.
1462 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
1463 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
1464 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
1465 * testsuite/experimental/string_view/literals/types.cc
1466 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
1467 literal.
1468 * testsuite/experimental/string_view/literals/values.cc
1469 [_GLIBCXX_USE_CHAR8_T]: Likewise.
1470
1471 2019-02-19 Tom Honermann <tom@honermann.net>
1472
1473 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
1474 from char16_32_t.cc; validates numeric_limits<char8_t>.
1475 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
1476 test cloned from types.cc; validates operator""s for char8_t
1477 returns u8string.
1478 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
1479 test cloned from values.cc; validates construction and comparison
1480 of u8string values.
1481 * testsuite/21_strings/basic_string/requirements/
1482 /explicit_instantiation/char8_t/1.cc: New test cloned from
1483 char16_t/1.cc; validates explicit instantiation of
1484 basic_string<char8_t>.
1485 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
1486 New test cloned from types.cc; validates operator""sv for char8_t
1487 returns u8string_view.
1488 * testsuite/21_strings/basic_string_view/literals/
1489 values-char8_t.cc: New test cloned from values.cc; validates
1490 construction and comparison of u8string_view values.
1491 * testsuite/21_strings/basic_string_view/requirements/
1492 explicit_instantiation/char8_t/1.cc: New test cloned from
1493 char16_t/1.cc; validates explicit instantiation of
1494 basic_string_view<char8_t>.
1495 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
1496 New test cloned from char16_t/65049.cc; validates that
1497 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
1498 * testsuite/21_strings/char_traits/requirements/char8_t/
1499 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
1500 that char_traits<char8_t> member typedefs are present and correct.
1501 * testsuite/21_strings/char_traits/requirements/
1502 explicit_instantiation/char8_t/1.cc: New test cloned from
1503 char16_t/1.cc; validates explicit instantiation of
1504 char_traits<char8_t>.
1505 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
1506 from char16_t.cc: validates
1507 codecvt<char16_t, char8_t, mbstate_t>.
1508 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
1509 from char32_t.cc: validates
1510 codecvt<char32_t, char8_t, mbstate_t>.
1511 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
1512 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
1513 codecvt<char32_t, char8_t, std::mbstate_t>.
1514 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
1515 test cloned from string.cc; validates filesystem::path construction
1516 from char8_t input.
1517 * testsuite/experimental/feat-char8_t.cc: New test; validates that
1518 the __cpp_lib_char8_t feature test macro is defined with the
1519 correct value.
1520 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
1521 New test cloned from string.cc; validates filesystem::path
1522 construction from char8_t input.
1523 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
1524 test cloned from types.cc; validates operator""sv for char8_t
1525 returns u8string_view.
1526 * testsuite/experimental/string_view/literals/values-char8_t.cc:
1527 New test cloned from values.cc; validates construction and
1528 comparison of u8string_view values.
1529 * testsuite/experimental/string_view/requirements/
1530 explicit_instantiation/char8_t/1.cc: New test cloned from
1531 char16_t/1.cc; validates explicit instantiation of
1532 basic_string_view<char8_t>.
1533 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
1534 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
1535 enabled.
1536
1537 2019-02-19 Tom Honermann <tom@honermann.net>
1538
1539 P0482R5 char8_t: Standard library support
1540 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
1541 typeinfo symbols for char8_t.
1542 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
1543 (GLIBCXX_3.4.26): Add symbols for specializations of
1544 numeric_limits and codecvt that involve char8_t.
1545 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
1546 * include/bits/atomic_base.h: Add atomic_char8_t.
1547 * include/bits/basic_string.h: Add std::hash<u8string> and
1548 operator""s(const char8_t*, size_t).
1549 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
1550 __cpp_lib_char8_t.
1551 * include/bits/char_traits.h: Add char_traits<char8_t>.
1552 * include/bits/codecvt.h: Add
1553 codecvt<char16_t, char8_t, mbstate_t>,
1554 codecvt<char32_t, char8_t, mbstate_t>,
1555 codecvt_byname<char16_t, char8_t, mbstate_t>, and
1556 codecvt_byname<char32_t, char8_t, mbstate_t>.
1557 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
1558 recognize char8_t as an integral type.
1559 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
1560 char8_t.
1561 (path::u8string): Return std::u8string when char8_t support is
1562 enabled.
1563 (path::generic_u8string): Likewise.
1564 (path::_S_convert): Handle conversion from char8_t input.
1565 (path::_S_str_convert): Likewise.
1566 * include/bits/functional_hash.h: Add hash<char8_t>.
1567 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
1568 char8_t.
1569 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
1570 for new char8_t specializations.
1571 * include/bits/localefwd.h: Add missing declarations of
1572 codecvt<char16_t, char, mbstate_t> and
1573 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
1574 codecvt<char16_t, char8_t, mbstate_t> and
1575 codecvt<char32_t, char8_t, mbstate_t>.
1576 * include/bits/postypes.h: Add u8streampos
1577 * include/bits/stringfwd.h: Add declarations of
1578 char_traits<char8_t> and u8string.
1579 * include/c_global/cstddef: Add __byte_operand<char8_t>.
1580 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
1581 Recognize char8_t.
1582 (path::u8string): Return std::u8string when char8_t support is
1583 enabled.
1584 (path::generic_u8string): Likewise.
1585 (path::_S_convert): Handle conversion from char8_t input.
1586 (path::_S_str_convert): Likewise.
1587 * include/experimental/string: Add u8string.
1588 * include/experimental/string_view: Add u8string_view,
1589 hash<experimental::u8string_view>, and
1590 operator""sv(const char8_t*, size_t).
1591 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
1592 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
1593 as a character type.
1594 * include/std/limits: Add numeric_limits<char8_t>.
1595 * include/std/string_view: Add u8string_view,
1596 hash<experimental::u8string_view>, and
1597 operator""sv(const char8_t*, size_t).
1598 * include/std/type_traits: Add __is_integral_helper<char8_t>,
1599 __make_unsigned<char8_t>, and __make_signed<char8_t>.
1600 * libsupc++/atomic_lockfree_defines.h: Define
1601 ATOMIC_CHAR8_T_LOCK_FREE.
1602 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
1603 codecvt.cc and limits.cc so that char8_t specializations of
1604 numeric_limits and codecvt and emitted.
1605 * src/c++11/Makefile.in: Likewise.
1606 * src/c++11/codecvt.cc: Define members of
1607 codecvt<char16_t, char8_t, mbstate_t>,
1608 codecvt<char32_t, char8_t, mbstate_t>,
1609 codecvt_byname<char16_t, char8_t, mbstate_t>, and
1610 codecvt_byname<char32_t, char8_t, mbstate_t>.
1611 * src/c++11/limits.cc: Define members of
1612 numeric_limits<char8_t>.
1613 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
1614 locale_init.cc and localename.cc.
1615 * src/c++98/Makefile.in: Likewise.
1616 * src/c++98/locale_init.cc: Add initialization for the
1617 codecvt<char16_t, char8_t, mbstate_t> and
1618 codecvt<char32_t, char8_t, mbstate_t> facets.
1619 * src/c++98/localename.cc: Likewise.
1620 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
1621
1622 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
1623
1624 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
1625 * 27_io/filesystem/operations/resize_file.cc: Likewise.
1626 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
1627
1628 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
1629
1630 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
1631 * doc/html/*: Regenerate.
1632
1633 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
1634 * doc/html/*: Regenerate.
1635
1636 * doc/xml/manual/intro.xml: Document LWG 2586 status.
1637 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
1638 allocator type in is_constructible checks.
1639 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
1640 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
1641 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
1642 problematic type from LWG 2586 discussion.
1643 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
1644 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
1645
1646 * configure.ac: Check for C11 timespec_get function.
1647 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
1648 (openbsd): Likewise
1649 * config.h.in: Regenerate.
1650 * configure: Regenerate.
1651 * include/c_global/ctime (timespec, timespec_get): Add to namespace
1652 std for C++17 and up.
1653
1654 * doc/xml/manual/intro.xml: Document LWG 2537 status.
1655 * include/bits/stl_queue.h
1656 (priority_queue(const Compare&, const Container&, const Alloc&))
1657 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
1658 make_heap.
1659 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
1660
1661 * doc/xml/manual/intro.xml: Document LWG 2566 status.
1662 * include/bits/stl_queue.h (queue, priority_queue): Add static
1663 assertions to enforce LWG 2566 requirement on value_type.
1664 * include/bits/stl_stack.h (stack): Likewise.
1665
1666 PR middle-end/89303
1667 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
1668
1669 * doc/xml/manual/intro.xml: Document LWG 2735 status.
1670 * include/bits/std_abs.h: Add comment about LWG 2735.
1671 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
1672
1673 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
1674
1675 PR libstdc++/89345
1676 * include/std/version [__cpp_impl_destroying_delete]
1677 (__cpp_lib_destroying_delete): Only define for C++2a and later.
1678 * libsupc++/new [__cpp_impl_destroying_delete]
1679 (__cpp_lib_destroying_delete): Likewise.
1680 (destroying_delete_t, destroying_delete): Likewise, but define even
1681 when __cpp_impl_destroying_delete is not defined.
1682 * testsuite/18_support/destroying_delete.cc: New test.
1683
1684 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
1685
1686 PR libstdc++/89023
1687 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
1688 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
1689 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
1690 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
1691
1692 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
1693
1694 PR libstdc++/71044
1695 * include/bits/fs_path.h (path::has_root_name)
1696 (path::has_root_directory, path::has_root_path)
1697 (path::has_relative_path, path::has_parent_path)
1698 (path::has_filename, path::has_stem, path::has_extension)
1699 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
1700 noexcept.
1701 * src/c++17/fs_path.cc (path::has_root_name)
1702 (path::has_root_directory, path::has_root_path)
1703 (path::has_relative_path, path::has_parent_path)
1704 (path::has_filename, path::_M_find_extension): Add noexcept.
1705
1706 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
1707
1708 PR libstdc++/89102 (partial)
1709 * include/std/type_traits (common_type<>): Define.
1710 (common_type<T>): Derive from common_type<T, T>.
1711 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
1712 Test zero-length template argument list.
1713 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
1714 Test additional single argument cases.
1715 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
1716 Adjust expected error.
1717
1718 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
1719
1720 PR libstdc++/89128
1721 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
1722 guides.
1723 * include/bits/stl_stack.h (stack): Likewise.
1724 * testsuite/23_containers/priority_queue/deduction.cc: New test.
1725 * testsuite/23_containers/queue/deduction.cc: New test.
1726 * testsuite/23_containers/stack/deduction.cc: New test.
1727
1728 PR libstdc++/89194
1729 * include/std/type_traits (__is_convertible_helper)
1730 (__is_convertible_helper<_From, _To, false>): Revert changes to
1731 support is_nothrow_convertible.
1732 (__is_nt_convertible_helper): New helper.
1733 (is_nothrow_convertible): Use __is_nt_convertible_helper.
1734
1735 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
1736 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
1737
1738 PR libstdc++/89130
1739 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
1740 __is_alloc_insertable_impl. Replace single type member with two
1741 members, one for each of copy and move insertable.
1742 (__is_move_insertable): New trait for internal use.
1743 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
1744 (vector::_S_nothrow_relocate(true_type)): New functions to
1745 conditionally check if __relocate_a can throw.
1746 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
1747 on __is_move_insertable.
1748 (vector::_S_do_relocate): New overloaded functions to conditionally
1749 call __relocate_a.
1750 (vector::_S_relocate): New function that dispatches to _S_do_relocate
1751 based on _S_use_relocate.
1752 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1753 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
1754 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
1755
1756 PR libstdc++/89090
1757 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
1758 parameter unnamed. Add message to static assertion.
1759 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1760 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
1761 in C++11 code.
1762
1763 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
1764
1765 PR libstdc++/87106
1766 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
1767 Rename...
1768 (__is_bitwise_relocatable): ... to this.
1769 (__relocate_a_1): Adapt.
1770 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
1771 (__is_bitwise_relocatable): ... to this.
1772
1773 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
1774
1775 PR libstdc++/89117
1776 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
1777 final component as well as from _M_pathname. Append the dot using
1778 operator+= instead of only to _M_pathname.
1779 (path::_M_find_extension): Reformat slightly.
1780 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
1781 Add more test cases.
1782
1783 2019-01-30 Ulrich Drepper <drepper@redhat.com>
1784
1785 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
1786
1787 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
1788
1789 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
1790 constexpr specifiers from arg and proj.
1791
1792 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
1793 __shared_ptr instantiations used by gcc4-compatible ABI.
1794
1795 * include/experimental/forward_list (experimental::erase): Qualify
1796 call to erase_if.
1797 * include/experimental/list (experimental::erase): Likewise.
1798 * include/std/forward_list (std::erase): Likewise.
1799 * include/std/list (std::erase): Likewise.
1800
1801 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
1802 C++2a.
1803 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
1804 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
1805 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
1806 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
1807 * testsuite/ext/array_allocator/26875.cc: Likewise.
1808 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
1809 * testsuite/util/replacement_memory_operators.h: Likewise.
1810 * testsuite/util/testsuite_allocator.h: Likewise.
1811
1812 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
1813 normal mode vector, even for debug mode.
1814 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
1815 Define alias template for normal mode vector.
1816
1817 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
1818
1819 PR libstdc++/68737
1820 * config/locale/generic/c_locale.h (__convert_from_v)
1821 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1822 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1823 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
1824 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
1825
1826 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
1827
1828 PR libstdc++/88840
1829 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
1830 data member with static member function _S_use_relocate().
1831 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
1832 (vector::_M_default_append): Use _S_use_relocate() instead of
1833 __use_relocate.
1834
1835 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
1836 sign of results.
1837
1838 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
1839
1840 PR libstdc++/88740
1841 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
1842 write to stderr instead of using printf.
1843
1844 2019-01-21 Jakub Jelinek <jakub@redhat.com>
1845
1846 PR libstdc++/86590
1847 * include/bits/char_traits.h (__constant_string_p,
1848 __constant_char_array_p): Use __builtin_is_constant_evaluated if
1849 available.
1850
1851 2019-01-20 Ulrich Drepper <drepper@redhat.com>
1852
1853 Implement C++20 P0600r1.
1854 * include/backward/hash_map: Add nodiscard attribute to empty.
1855 * include/backward/hash_set: Likewise.
1856 * backward/hashtable.h: Likewise.
1857 * include/bits/basic_string.h: Likewise.
1858 * include/bits/forward_list.h: Likewise.
1859 * include/bits/hashtable.h: Likewise.
1860 * include/bits/regex.h: Likewise.
1861 * include/bits/stl_deque.h: Likewise.
1862 * include/bits/stl_list.h: Likewise.
1863 * include/bits/stl_map.h: Likewise.
1864 * include/bits/stl_multimap.h: Likewise.
1865 * include/bits/stl_multiset.h: Likewise.
1866 * include/bits/stl_queue.h: Likewise.
1867 * include/bits/stl_set.h: Likewise.
1868 * include/bits/stl_stack.h: Likewise.
1869 * include/bits/stl_tree.h: Likewise.
1870 * include/bits/stl_vector.h: Likewise.
1871 * include/bits/unordered_map.h: Likewise.
1872 * include/bits/unordered_set.h: Likewise.
1873 * include/debug/array: Likewise.
1874 * include/experimental/any: Likewise.
1875 * include/experimental/bits/fs_path.h: Likewise.
1876 * include/experimental/internet: Likewise.
1877 * include/experimental/string_view: Likewise.
1878 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
1879 Likewise.
1880 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
1881 Likewise.
1882 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
1883 Likewise.
1884 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
1885 Likewise.
1886 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
1887 Likewise.
1888 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
1889 Likewise.
1890 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
1891 Likewise.
1892 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
1893 Likewise.
1894 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1895 info_fn_imps.hpp: Likewise.
1896 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
1897 left_child_next_sibling_heap_.hpp: Likewise.
1898 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
1899 Likewise.
1900 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
1901 Likewise.
1902 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
1903 Likewise.
1904 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
1905 Likewise.
1906 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
1907 Likewise.
1908 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
1909 Likewise.
1910 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
1911 Likewise.
1912 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
1913 * include/ext/pb_ds/trie_policy.hpp: Likewise.
1914 * include/ext/rope: Likewise.
1915 * include/ext/slist: Likewise.
1916 * include/ext/vstring.h: Likewise.
1917 * include/profile/array: Likewise.
1918 * include/std/array: Likewise.
1919 * include/tr1/array: Likewise.
1920 * include/tr1/hashtable.h: Likewise.
1921 * include/tr1/regex: Likewise.
1922 * include/tr2/dynamic_bitset: Likewise.
1923 * include/bits/alloc_traits.h: Add nodiscard attribute to
1924 allocate.
1925 * include/experimental/memory_resource: Likewise.
1926 * include/ext/alloc_traits.h: Likewise.
1927 * include/ext/array_allocator.h: Likewise.
1928 * include/ext/bitmap_allocator.h: Likewise.
1929 * include/ext/debug_allocator.h: Likewise.
1930 * include/ext/extptr_allocator.h: Likewise.
1931 * include/ext/mt_allocator.h: Likewise.
1932 * include/ext/new_allocator.h: Likewise.
1933 * include/ext/pool_allocator.h: Likewise.
1934 * include/ext/throw_allocator.h: Likewise.
1935 * include/std/scoped_allocator: Likewise.
1936 * libsupc++/eh_alloc.cc: Likewise.
1937 * include/std/future: Add nodiscard attribute to async.
1938 * libsupc++/new: Add nodiscard attribute to new.
1939
1940 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
1941
1942 PR libstdc++/87514
1943 PR libstdc++/87520
1944 PR libstdc++/88782
1945 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
1946 * include/bits/shared_ptr.h
1947 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
1948 (allocate_shared): Change to use new tag type.
1949 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
1950 Declare new member function.
1951 (_Sp_alloc_shared_tag): Define new type.
1952 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
1953 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
1954 _Sp_make_shared_tag::_S_eq to check type_info.
1955 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
1956 Constrain to prevent being called with _Sp_alloc_shared_tag.
1957 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
1958 Replace constructor with ...
1959 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
1960 reference parameter so address of the new object can be returned to
1961 the caller. Obtain the allocator from the tag type.
1962 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
1963 constructor with ...
1964 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
1965 to the __shared_count constructor.
1966 (__allocate_shared): Change to use new tag type.
1967 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
1968
1969 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
1970
1971 * src/c++17/fs_ops.cc
1972 (equivalent(const path&, const path&, error_code&))
1973 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
1974 compare files instead of relying on incomplete info returned by stat.
1975
1976 PR libstdc++/88884
1977 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
1978 if the path is already absolute.
1979 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
1980 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
1981
1982 PR libstdc++/88881
1983 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
1984 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
1985 of filesystem::exists.
1986 (create_directories(const path&, error_code&)): Add assertions.
1987 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
1988 Add workaround for bug in _wstat for paths with trailing slash.
1989 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
1990 for expected behaviour on mingw.
1991 * testsuite/experimental/filesystem/operations/create_directories.cc:
1992 Likewise.
1993 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
1994 "TMP" instead of "TMPDIR" and clean environment before each test. Do
1995 not test permissions on mingw targets.
1996
1997 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
1998
1999 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
2000 constructors and open members taking wide strings. Fix patterns for
2001 filesystem::path members to match wstring_view parameters. Add
2002 exports for shared_ptr members used by directory iterators.
2003 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
2004 error code parameter if the file doesn't exist.
2005 * src/filesystem/ops.cc (remove(const path&, error_code&)):
2006 Likewise.
2007 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
2008 values for mingw targets, where "/" is not an absolute path. Do not
2009 test symlinks on mingw targets.
2010 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
2011 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
2012 on mingw targets.
2013 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
2014 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
2015 that each component of the path is created.
2016 * testsuite/experimental/filesystem/operations/create_directories.cc:
2017 Likewise.
2018 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
2019 permissions on mingw targets.
2020 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
2021 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
2022 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
2023 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
2024 mingw targets.
2025 * testsuite/experimental/filesystem/operations/permissions.cc:
2026 Likewise.
2027 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
2028 symlinks or permissions on mingw targets.
2029 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
2030 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
2031 symlinks on mingw targets.
2032 * testsuite/experimental/filesystem/operations/remove_all.cc:
2033 Likewise.
2034 * testsuite/27_io/filesystem/operations/status.cc: Do not test
2035 permissions on mingw targets.
2036 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
2037 test symlinks on mingw targets.
2038 * testsuite/experimental/filesystem/operations/space.cc: Fix test
2039 for mingw targets.
2040
2041 2019-02-14 Ulrich Drepper <drepper@redhat.com>
2042
2043 PR libstdc++/88738
2044 Warn about unused comparisons of shared_ptr/unique_ptr
2045 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
2046 * include/bits/shared_ptr.h: Use it for operator ==, !=,
2047 <, <=, >, >= for shared_ptr.
2048 * include/bits/unique_ptr.h: Likewise for unique_ptr.
2049
2050 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
2051
2052 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
2053 as 201611L, because P0497R0 changes are supported.
2054 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
2055
2056 * include/bits/erase_if.h [__cplusplus > 201703L]
2057 (__cpp_lib_erase_if): Only define for C++2a.
2058 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
2059 (__cpp_lib_null_iterators): Define.
2060 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
2061 (__cpp_lib_null_iterators): Define.
2062 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
2063
2064 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
2065 status.
2066 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
2067 Define.
2068 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
2069 changes are supported.
2070 * include/std/optional (__cpp_lib_optional): Likewise.
2071 * include/std/variant (__cpp_lib_variant): Likewise.
2072 * include/std/version [!__STRICT_ANSI__]
2073 (__cpp_lib_uncaught_exceptions): Define as long integer.
2074 [__cplusplus >= 201703L] (__cpp_lib_any)
2075 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
2076 (__cpp_lib_variant): Define for C++17.
2077 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
2078 as long integer.
2079 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
2080 integer.
2081
2082 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
2083
2084 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
2085
2086 PR libstdc++/88811
2087 PR libstdc++/83306
2088 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
2089 before second path.
2090 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
2091 test.
2092
2093 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
2094
2095 * doc/xml/manual/intro.xml: Include new section.
2096 * doc/xml/manual/status_cxx2017.xml: Document more
2097 implementation-defined properties of the library.
2098 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
2099 * doc/html/*: Regenerate.
2100
2101 * include/bits/refwrap.h [__cplusplus > 201703L]
2102 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
2103 (_Reference_wrapper_base_memfun): Do not define for C++2a.
2104 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
2105 for C++2a.
2106 (reference_wrapper::operator()): Add static assertion.
2107 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
2108
2109 * include/std/chrono (duration_values::zero(), duration_values::min())
2110 (duration_values::max()): Add noexcept.
2111 (duration::zero(), duration::min(), duration::max()): Likewise.
2112 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
2113 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
2114 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
2115
2116 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
2117
2118 2019-01-11 Jakub Jelinek <jakub@redhat.com>
2119
2120 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
2121 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
2122
2123 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
2124
2125 PR libstdc++/88802
2126 * include/bits/functional_hash.h (hash<nullptr_t>): Define
2127 specialization for C++17 (P0513R0, LWG 2817).
2128 * testsuite/20_util/hash/nullptr.cc: New test.
2129
2130 PR libstdc++/88125
2131 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
2132 pattern for std::basic_stringbuf::str().
2133
2134 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
2135 basic_ostream::operator<< patterns.
2136
2137 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
2138
2139 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
2140 test failures on targets with 32-bit time_t.
2141
2142 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
2143 * include/std/deque: Likewise.
2144 * include/std/forward_list: Likewise.
2145 * include/std/list: Likewise.
2146 * include/std/string: Likewise.
2147 * include/std/vector: Likewise.
2148 * include/std/version: Likewise.
2149 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
2150 * testsuite/23_containers/deque/erasure.cc: Likewise.
2151 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
2152 * testsuite/23_containers/list/erasure.cc: Likewise.
2153 * testsuite/23_containers/map/erasure.cc: Likewise.
2154 * testsuite/23_containers/set/erasure.cc: Likewise.
2155 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
2156 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
2157 * testsuite/23_containers/vector/erasure.cc: Likewise.
2158
2159 * include/experimental/internet [AI_NUMERICSERV]
2160 (resolver_base::numeric_service): Define conditionally.
2161 * testsuite/experimental/net/internet/resolver/base.cc: Test it
2162 conditionally.
2163 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
2164 Likewise.
2165
2166 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
2167 Jonathan Wakely <jwakely@redhat.com>
2168
2169 Implement LWG 2221
2170 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
2171 (GLIBCXX_3.4.26): Add new exports.
2172 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
2173 correct list of sources.
2174 * include/Makefile.in: Regenerate.
2175 * include/std/ostream (operator<<(nullptr_t)): New member function.
2176 * src/c++17/ostream-inst.cc: New file.
2177 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
2178 test.
2179
2180 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
2181
2182 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
2183 of the source file containing the caller.
2184 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
2185 directories created by test.
2186 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
2187 Likewise.
2188 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
2189 Likewise.
2190 * testsuite/experimental/filesystem/iterators/
2191 recursive_directory_iterator.cc: Likewise.
2192
2193 2019-01-10 Jakub Jelinek <jakub@redhat.com>
2194
2195 PR tree-optimization/88775
2196 * include/bits/stl_function.h (greater<_Tp*>::operator(),
2197 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
2198 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
2199 instead of __builtin_constant_p if available. Don't bother with
2200 the pointer comparison in C++11 and earlier.
2201
2202 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
2203
2204 PR other/16615
2205
2206 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
2207 with "cannot".
2208
2209 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
2210
2211 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
2212 for filesystem::path. Give variables more distinctive names.
2213
2214 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
2215 member function to perform non-trivial assignment.
2216 (_Optional_payload_base::_M_move_assign): Likewise.
2217 (_Optional_payload<T, true, false, true>::operator=)
2218 (_Optional_payload<T, true, true, false>::operator=)
2219 (_Optional_payload<T, true, false, false>::operator=): Call
2220 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
2221
2222 PR libstdc++/88204
2223 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
2224 test std::complex<long double> if long double format is IBM128.
2225 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
2226 Likewise.
2227
2228 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
2229
2230 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
2231 for old std::unique_ptr layout.
2232 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
2233 to become valueless. Add filesystem::path tests.
2234
2235 PR libstdc++/87855
2236 * include/std/optional (_Optional_payload_base): New class template
2237 for common code hoisted from _Optional_payload specializations. Use
2238 a template for the union, to allow a partial specialization for
2239 types with non-trivial destructors. Add constructors for in-place
2240 initialization to the union.
2241 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
2242 to perform non-trivial copy construction, instead of relying on
2243 non-standard copy elision in a delegating constructor.
2244 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
2245 non-trivial move construction.
2246 (_Optional_payload): Derive from _Optional_payload_base and use it
2247 for everything except the non-trivial assignment operators, which are
2248 defined as needed.
2249 (_Optional_payload<false, C, M>): Derive from the specialization
2250 _Optional_payload<true, false, false> and add a destructor.
2251 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
2252 Forward to corresponding members of _Optional_payload.
2253 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
2254 Hoist common members from _Optional_base.
2255 (_Optional_base): Make all members and base class public.
2256 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
2257 _Optional_base_impl.
2258 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
2259 support for new std::optional layout.
2260 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
2261
2262 PR libstdc++/88066
2263 * include/bits/locale_conv.h: Use <> for includes not "".
2264 * include/ext/random: Likewise.
2265 * include/ext/vstring.h: Likewise.
2266
2267 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2268
2269 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
2270 (GLIBCXX_3.4.21): Likewise.
2271
2272 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
2273
2274 PR libstdc++/88749
2275 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
2276 to match the one that controls whether utimbuf and utime are declared.
2277
2278 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
2279
2280 PR libstdc++/87787
2281 * include/bits/char_traits.h (char_traits::move): Do not pass null
2282 pointers to memmove.
2283 * include/bits/locale_facets.h
2284 (ctype<char>::widen(const char*, const char*, char*)): Do not
2285 pass null pointers to memcpy.
2286 (ctype<char>::narrow(const char*, const char*, char, char*)):
2287 Likewise.
2288 (ctype<char>::do_widen(const char*, const char*, char*)):
2289 Likewise.
2290 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
2291 Likewise.
2292
2293 * doc/xml/manual/spine.xml: Update copyright years.
2294 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
2295 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
2296 for C++17 filesystem library.
2297 * doc/html/*: Regenerate.
2298
2299 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
2300 * config.h.in: Regenerate.
2301 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
2302 alphabetically and add missing entries for copy_symlink,
2303 hard_link_count, rename, and resize_file.
2304 * configure: Regenerate.
2305 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
2306 used unconditionally.
2307 * src/filesystem/ops-common.h (__gnu_posix::truncate)
2308 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
2309 supports truncating to zero length.
2310 * testsuite/27_io/filesystem/operations/all.cc: New test.
2311 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
2312
2313 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
2314
2315 PR libstdc++/86756
2316 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
2317 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
2318 * config.h.in: Regenerate.
2319 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
2320 remaining std::filesystem types and functions.
2321 * configure: Regenerate.
2322 * src/c++17/Makefile.am: Add C++17 filesystem sources.
2323 * src/c++17/Makefile.in: Regenerate.
2324 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
2325 here, and change name of included file.
2326 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
2327 here, and change name of included file.
2328 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
2329 path to dir-common.h.
2330 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
2331 path to ops-common.h. Disable -Wunused-parameter warnings.
2332 (internal_file_clock): Define unconditionally.
2333 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
2334 define.
2335 (do_copy_file, do_space): Move definitions to ops.common.h.
2336 (copy, file_size, hard_link_count, last_write_time, space): Only
2337 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
2338 report an error.
2339 (last_write_time, read_symlink): Remove unused attributes from
2340 parameters.
2341 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
2342 * src/filesystem/Makefile.in: Regenerate.
2343 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
2344 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
2345 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
2346 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
2347 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
2348 dummy types and functions instead of using #error.
2349 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
2350 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
2351 in terms of stat.
2352 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
2353 (do_copy_file, do_space): Move definitions here from std-ops.cc.
2354 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
2355 to account for new namespace.
2356 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
2357 -lstdc++fs from dg-options.
2358 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
2359 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
2360 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
2361 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
2362 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
2363 Likewise.
2364 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
2365 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
2366 Likewise.
2367 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
2368 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
2369 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
2370 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
2371 * testsuite/27_io/filesystem/operations/create_directories.cc:
2372 Likewise.
2373 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
2374 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
2375 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
2376 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
2377 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
2378 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
2379 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
2380 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
2381 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
2382 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
2383 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
2384 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
2385 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
2386 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
2387 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
2388 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
2389 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
2390 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
2391 Likewise.
2392 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
2393
2394
2395 PR libstdc++/86756
2396 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
2397 typeinfo and vtables less greedy.
2398 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
2399 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
2400 * src/c++17/Makefile.in: Regenerate.
2401 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
2402 here, and change name of included file.
2403 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
2404 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
2405 from sources.
2406 * src/filesystem/Makefile.in: Regenerate.
2407 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
2408 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
2409 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
2410 from dg-options and remove dg-require-filesystem-ts.
2411 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
2412 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
2413 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
2414 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
2415 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
2416 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
2417 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
2418 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
2419 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
2420 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
2421 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
2422 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
2423 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
2424 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
2425 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
2426 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
2427 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
2428 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
2429 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
2430 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
2431 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
2432 Likewise.
2433 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
2434 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
2435 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
2436 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
2437 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
2438 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
2439 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
2440 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
2441 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
2442 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
2443 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
2444 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
2445 Likewise.
2446 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
2447 Likewise.
2448 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
2449 Likewise.
2450 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
2451 Likewise.
2452 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
2453 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
2454 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
2455 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
2456 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
2457 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
2458 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
2459 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
2460 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
2461 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
2462 Likewise.
2463 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
2464 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
2465 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
2466 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
2467 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
2468
2469 PR libstdc++/87431
2470 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
2471 Check is_trivially_copyable instead of is_scalar.
2472 (variant::emplace<N, Args>(Args&&...)): If construction of the new
2473 contained value can throw and its type is trivially copyable then
2474 construct into a temporary variant and move from it, to provide the
2475 strong exception safety guarantee.
2476 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
2477 Likewise.
2478 * testsuite/20_util/variant/87431.cc: New test.
2479 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
2480 conversion causes valueless state.
2481
2482 PR libstdc++/88607
2483 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
2484 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
2485 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
2486 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
2487 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
2488
2489 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
2490
2491 * include/bits/fs_fwd.h (__file_clock): Define new clock.
2492 (file_time_type): Redefine in terms of __file_clock.
2493 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
2494 overflow.
2495 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
2496 internal linkage.
2497 (internal_file_lock): New helper type for accessing __file_clock.
2498 (do_copy_file): Use internal_file_lock to convert system time to
2499 file_time_type.
2500 (last_write_time(const path&, error_code&)): Likewise.
2501 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
2502
2503 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
2504
2505 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
2506 for const member functions of std::basic_string.
2507 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
2508 in C++17.
2509 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
2510 Make non-standard constructor private.
2511 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
2512 Likewise.
2513 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
2514 explicit instantiations for C++17 as well as earlier dialects.
2515 * src/c++17/Makefile.am: Add new source files.
2516 * src/c++17/Makefile.in: Regenerate.
2517 * src/c++17/cow-string-inst.cc: New file defining explicit
2518 instantiations for basic_string member functions added in C++17.
2519 * src/c++17/string-inst.cc: Likewise.
2520
2521 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
2522 copy/move constructors for old std::basic_string.
2523 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
2524 (basic_string::reference, basic_string::const_reference): Define
2525 as plain references for C++11 and later.
2526 (basic_string::basic_string()): Put constructor body outside
2527 preprocessor conditional groups.
2528 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
2529 instead of copying it.
2530 (basic_string::basic_string(const basic_string&, const _Alloc&)):
2531 Define.
2532 (basic_string::basic_string(basic_string&&, const _Alloc&)):
2533 Define.
2534 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
2535 cases for old basic_string.
2536 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
2537 allocator-extended constructors unconditionally. Add extra members to
2538 allocator type when using old string ABI.
2539 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
2540 for old string ABI.
2541 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
2542
2543 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
2544 -fno-inline added to test flags.
2545
2546 * testsuite/21_strings/basic_string/requirements/
2547 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
2548
2549 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
2550 assertion failures with old std::string ABI.
2551
2552 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
2553 with ...
2554 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
2555 functions that will only erase elements at the end.
2556 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
2557 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
2558 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
2559 of erase(p, end()).
2560 (path::_List::pop_back()): Define.
2561 (path::_List::_M_erase_from(const_iterator)): Define.
2562 (path::operator/=(const path&)): Use pop_back to remove last component
2563 and _M_erase_from to remove multiple components.
2564 (path::_M_append(basic_string_view<value_type>)): Likewise.
2565 (path::operator+=(const path&)): Likewise.
2566 (path::_M_concat(basic_string_view<value_type>)): Likewise.
2567 (path::remove_filename()): Likewise.
2568 (path::lexically_normal()): Use _List::_Impl iterators instead of
2569 path::iterator. Use pop_back to remove components from the end. Clear
2570 trailing filename, instead of using erase(const_iterator) to remove
2571 a non-final component.
2572 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
2573 additional cases.
2574 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
2575
2576 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
2577 incorrect treatment of empty filename after trailing slash.
2578 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
2579
2580 * testsuite/21_strings/basic_string/modifiers/assign/char/
2581 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
2582 to test flags.
2583 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
2584 move_assign_optim.cc: Likewise.
2585
2586 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
2587 Jakub Jelinek <jakub@redhat.com>
2588
2589 PR libstdc++/88607
2590 * include/experimental/memory: Replace UTF-8 quote characters.
2591 * include/std/future: Replace UTF-8 "em dash" characters.
2592
2593 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
2594
2595 PR libstdc++/88607
2596 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
2597 * include/debug/forward_list: Likewise.
2598 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
2599 character.
2600 * include/experimental/chrono: Likewise.
2601 * include/experimental/functional: Likewise.
2602 * include/experimental/ratio: Likewise.
2603 * include/experimental/system_error: Likewise.
2604 * include/experimental/tuple: Likewise.
2605 * include/experimental/type_traits: Likewise.
2606 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
2607 * include/parallel/multiseq_selection.h: Likewise.
2608
2609 PR libstdc++/88681
2610 * config/abi/pre/gnu.ver: Add missing exports.
2611 * testsuite/22_locale/collate_byname/88681.cc: New test.
2612 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
2613 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
2614
2615 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
2616
2617 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
2618 initializer_list<value_type> and from input iterator ranges.
2619 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
2620
2621 * testsuite/experimental/string_view/element_access/char/empty.cc:
2622 Fix year range in copyright header.
2623
2624 2019-01-02 Joel Brobecker <brobecker@adacore.com>
2625
2626 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
2627 Fix year range in copyright header.
2628
2629 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2630
2631 Update copyright years.
2632 \f
2633 Copyright (C) 2019 Free Software Foundation, Inc.
2634
2635 Copying and distribution of this file, with or without modification,
2636 are permitted in any medium without royalty provided the copyright
2637 notice and this notice are preserved.