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