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