Build filesystem library with large file support
[gcc.git] / libstdc++-v3 / ChangeLog
1 2019-10-04 Jonathan Wakely <jwakely@redhat.com>
2
3 PR libstdc++/81091
4 PR libstdc++/91947
5 * configure.ac: Use AC_SYS_LARGEFILE to enable 64-bit file APIs.
6 * config.h.in: Regenerate:
7 * configure: Regenerate:
8 * include/Makefile.am (${host_builddir}/largefile-config.h): New
9 target to generate config header for filesystem library.
10 (${host_builddir}/c++config.h): Rename macros for large file support.
11 * include/Makefile.in: Regenerate.
12 * src/c++17/fs_dir.cc: Include new config header.
13 * src/c++17/fs_ops.cc: Likewise.
14 (filesystem::file_size): Use uintmax_t for size.
15 * src/filesystem/dir.cc: Include new config header.
16 * src/filesystem/ops.cc: Likewise.
17 (experimental::filesystem::file_size): Use uintmax_t for size.
18
19 * testsuite/util/testsuite_abi.h: Use std::unordered_map instead of
20 std::tr1::unordered_map.
21 * testsuite/util/testsuite_allocator.h: Likewise.
22
23 * include/tr1/hashtable.h: Add header for __gnu_cxx::__alloc_traits.
24
25 * include/tr1/hashtable.h (tr1::_Hashtable::_M_allocate_node): Use
26 __gnu_cxx::__alloc_traits for allocator construct function.
27 (tr1::_Hashtable::_M_deallocate_node): Likewise for destroy function.
28
29 * include/precompiled/stdc++.h: Include <span> for C++20.
30 * testsuite/17_intro/names.cc: Do not define 'e' for C++20.
31
32 2019-10-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33
34 * include/parallel/multiway_merge.h (_RAIter3): Replace _C by _Cp.
35
36 2019-10-02 Jonathan Wakely <jwakely@redhat.com>
37
38 * config/abi/pre/gnu.ver: Tighten up greedy wildcards.
39
40 * doc/xml/manual/parallel_mode.xml: Add caveat about support for
41 recent standards.
42 * doc/html/*: Regenerate.
43
44 2019-10-01 Jonathan Wakely <jwakely@redhat.com>
45
46 * include/experimental/algorithm (experimental::sample): Qualify call
47 to __sample correctly.
48 * include/parallel/algo.h (sample, for_each_n): Add using-declarations
49 for algorithms that don't have parallel implementations.
50
51 * include/parallel/algobase.h (equal, lexicographical_compare): Add
52 _GLIBCXX20_CONSTEXPR and dispatch to sequential algorithm when being
53 constant evaluated.
54 * include/parallel/algorithmfwd.h (equal, lexicographical_compare):
55 Add _GLIBCXX20_CONSTEXPR.
56
57 * testsuite/17_intro/using_namespace_std_tr1_neg.cc: Skip test for
58 parallel mode.
59 * testsuite/20_util/hash/84998.cc: Likewise.
60 * testsuite/23_containers/deque/types/pmr_typedefs_debug.cc: Likewise.
61 * testsuite/23_containers/forward_list/pmr_typedefs_debug.cc: Likewise.
62 * testsuite/23_containers/list/pmr_typedefs_debug.cc: Likewise.
63 * testsuite/23_containers/map/pmr_typedefs_debug.cc: Likewise.
64 * testsuite/23_containers/multimap/pmr_typedefs_debug.cc: Likewise.
65 * testsuite/23_containers/multiset/pmr_typedefs_debug.cc: Likewise.
66 * testsuite/23_containers/set/pmr_typedefs_debug.cc: Likewise.
67 * testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc:
68 Likewise.
69 * testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc:
70 Likewise.
71 * testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc:
72 Likewise.
73 * testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc:
74 Likewise.
75 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc:
76 Likewise.
77 * testsuite/23_containers/vector/types/pmr_typedefs_debug.cc: Likewise.
78 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
79 * testsuite/25_algorithms/copy/86658.cc: Likewise.
80 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
81 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
82 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
83 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
84
85 * include/parallel/algo.h: Replace non-reserved names.
86 * include/parallel/multiway_merge.h: Likewise.
87 * include/parallel/multiway_mergesort.h: Likewise.
88 * include/parallel/numericfwd.h: Likewise.
89 * testsuite/17_intro/names.cc: Add RAI to test macros.
90
91 2019-09-30 François Dumont <fdumont@gcc.gnu.org>
92
93 * include/debug/array: Add C++20 constexpr to comparison operators.
94 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adapt
95 dg-error line numbers.
96 * testsuite/23_containers/array/tuple_interface/
97 tuple_element_debug_neg.cc: Likewise.
98
99 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
100
101 * include/experimental/internet: Include netinet/in.h if we have
102 _GLIBCXX_HAVE_NETINET_IN_H defined.
103
104 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Ignore the
105 FreeBSD warning about lower advertised precision of tgammal.
106 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
107 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: Likewise.
108 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: Likewise.
109 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: Likewise.
110 * testsuite/special_functions/10_cyl_neumann/check_nan.cc: Likewise.
111 * testsuite/special_functions/19_sph_bessel/check_nan.cc: Likewise.
112 * testsuite/special_functions/21_sph_neumann/check_nan.cc: Likewise.
113 * testsuite/tr1/5_numerical_facilities/special_functions/
114 08_cyl_bessel_i/check_nan.cc: Likewise.
115 * testsuite/tr1/5_numerical_facilities/special_functions/
116 09_cyl_bessel_j/check_nan.cc: Likewise.
117 * testuite/tr1/5_numerical_facilities/special_functions/
118 10_cyl_bessel_k/check_nan.cc: Likewise.
119 * testsuite/tr1/5_numerical_facilities/special_functions/
120 11_cyl_neumann/check_nan.cc: Likewise.
121 * testsuite/tr1/5_numerical_facilities/special_functions/
122 21_sph_bessel/check_nan.cc: Likewise.
123 * testsuite/tr1/5_numerical_facilities/special_functions/
124 23_sph_neumann/check_nan.cc: Likewise.
125
126 2019-09-30 Jonathan Wakely <jwakely@redhat.com>
127
128 * include/std/span (span(element_type(&)[N]))
129 (span(array<value_type, N>&), span(const array<value_type, N>&)):
130 Deduce array element type to allow safe const conversions (LWG 3255).
131 [!_GLIBCXX_P1394] (span(Container&), span(const Container&)): Use
132 remove_cv_t on arguments to __is_std_span and __is_std_array.
133 * testsuite/23_containers/span/lwg3255.cc: New test.
134
135 PR libstdc++/77936
136 * include/parallel/checkers.h (__is_sorted): Remove unused variable.
137
138 2019-09-28 François Dumont <fdumont@gcc.gnu.org>
139
140 * include/bits/stl_algo.h (merge): Fix documentation.
141 * include/debug/functions.h (__check_sorted_aux): Add C++20 constexpr.
142 (__check_sorted): Likewise and remove nested irreflexive check.
143 (__check_sorted_set_aux, __check_sorted_set): Add C++20 constexpr.
144 (__check_partitioned_lower, __check_partitioned_upper): Likewise.
145 (_Irreflexive_checker::_S_is_valid): Likewise.
146 (__is_irreflexive, __is_irreflexive_pred): Likewise.
147 * include/debug/helper_functions.h (__get_distance): Add constexpr.
148 (__valid_range_aux): Add C++20 constexpr.
149 (__valid_range(_Iter, _Iter, _Distance_traits<_Iter>::__type&)):
150 Likewise and add std::is_constant_evaluated check.
151 (__valid_range_aux(_Iter, _Iter, std::input_iterator_tag)): New.
152 (__valid_range_aux(_Iter, _Iter, std::random_accss_iterator_tag)): New.
153 (__valid_range_aux(_Integral, _Integral, std::__true_type)): New,
154 use latter.
155 (__valid_range(_Iter, _Iter)): Adapt to use latter, add constexpr and
156 __builtin_is_contant_evaludated check..
157 (__can_advance, __base): Add constexpr.
158 * include/debug/macros.h [_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED]
159 (_GLIBCXX_DEBUG_VERIFY_COND_AT): New.
160 (__glibcxx_check_sorted): Use __glibcxx_check_irreflexive.
161 (__glibcxx_check_sorted_pred): Use __glibcxx_check_irreflexive_pred.
162 * testsuite/25_algorithms/binary_search/constexpr.cc: Use irreflexive
163 std::less.
164 * testsuite/25_algorithms/is_sorted/constexpr.cc: Likewise.
165 * testsuite/25_algorithms/merge/constexpr.cc: Fix order in camm. Fix
166 lambda to be irreflexive.
167
168 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
169
170 * configure: Regenerate.
171
172 2019-09-27 Jonathan Wakely <jwakely@redhat.com>
173
174 PR libstdc++/91910
175 * src/c++11/debug.cc (_Safe_iterator_base::_M_detach()): Load pointer
176 atomically and lock the mutex before accessing the sequence.
177 (_Safe_local_iterator_base::_M_detach()): Likewise.
178 (_Safe_iterator_base::_M_reset()): Clear _M_sequence atomically.
179
180 2019-09-26 Jonathan Wakely <jwakely@redhat.com>
181
182 * include/debug/array (to_array): Define for debug mode.
183
184 * include/bits/stl_pair.h (pair): Add _GLIBCXX20_CONSTEXPR to
185 piecewise construction constructor, assignment operators, and swap.
186 * include/std/tuple (pair::pair(piecewise_construct_t, tuple, tuple)):
187 Add _GLIBCXX20_CONSTEXPR.
188 (pair::pair(tuple, tuple, _Index_tuple, _Index_tuple)): Likewise.
189 * testsuite/20_util/pair/constexpr_assign.cc: New test.
190 * testsuite/20_util/pair/constexpr_swap.cc: New test.
191
192 * include/experimental/internet (operator==, operator<): Fix loop
193 condition to avoid reading past the end of the array.
194
195 * include/std/array: Remove references to profile mode.
196 * include/std/bitset: Likewise.
197 * include/std/deque: Likewise.
198 * include/std/forward_list: Likewise.
199 * include/std/list: Likewise.
200 * include/std/map: Likewise.
201 * include/std/set: Likewise.
202 * include/std/unordered_map: Likewise.
203 * include/std/unordered_set: Likewise.
204 * include/std/vector: Likewise.
205 * testsuite/17_intro/headers/c++1998/profile_mode.cc: New test.
206 * testsuite/17_intro/headers/c++2011/profile_mode.cc: New test.
207
208 2019-09-25 Jonathan Wakely <jwakely@redhat.com>
209
210 * include/bits/regex.h
211 (basic_regex::assign(const C*, size_t, flag_type)): Add default
212 argument (LWG 3296).
213 * testsuite/28_regex/basic_regex/assign/char/lwg3296.cc: New test.
214 * testsuite/28_regex/basic_regex/assign/wchar_t/lwg3296.cc: New test.
215
216 2019-09-24 Jonathan Wakely <jwakely@redhat.com>
217
218 * include/std/variant (variant::index()): Remove impossible case.
219
220 PR libstdc++/91871
221 * testsuite/util/testsuite_hooks.h
222 (conversion::iterator_to_const_iterator()): Do not return an invalid
223 iterator. Test direct-initialization and direct-list-initialization
224 as well as implicit conversion.
225
226 2019-09-23 Jonathan Wakely <jwakely@redhat.com>
227
228 PR libstdc++/91788 (partial)
229 * include/std/variant (variant::index()): Improve codegen for cases
230 where conversion to size_t already works correctly.
231
232 2019-09-23 Andreas Schwab <schwab@suse.de>
233
234 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
235
236 2019-09-12 Jonathan Wakely <jwakely@redhat.com>
237
238 PR libstdc++/91748
239 * include/bits/stl_algo.h (for_each_n): Fix random access iterator
240 case.
241 * testsuite/25_algorithms/for_each/for_each_n.cc: Test with random
242 access iterators.
243
244 2019-09-11 Jonathan Wakely <jwakely@redhat.com>
245
246 * python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker.__call__):
247 Fix syntax error.
248
249 * testsuite/20_util/result_of/sfinae_friendly_1.cc: Add -Wno-volatile
250 for C++2a and up. Define HAS_52748_FIXED and fix incorrect tests.
251 * testsuite/tr1/3_function_objects/result_of.cc: Add -Wno-volatile
252 for C++2a and up.
253
254 2019-09-10 Jonathan Wakely <jwakely@redhat.com>
255
256 * include/std/type_traits (__do_common_type_impl): Implement
257 additional COND-RES(CREF(D1), CRED(D2)) condition for C++20.
258 (basic_common_reference, common_reference, common_reference_t): Define
259 for C++20.
260 * testsuite/20_util/common_reference/requirements/alias_decl.cc: New
261 test.
262 * testsuite/20_util/common_reference/requirements/
263 explicit_instantiation.cc: New test.
264 * testsuite/20_util/common_reference/requirements/typedefs.cc: New
265 test.
266
267 * include/std/charconv (to_chars): Rename to __to_chars_i. Define
268 non-template overloads for each signed and unsigned integer type and
269 char. Define deleted overload for bool (LWG 3266).
270 * testsuite/20_util/to_chars/1_neg.cc: Remove.
271 * testsuite/20_util/to_chars/3.cc: New test.
272 * testsuite/20_util/to_chars/lwg3266.cc: New test.
273
274 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
275
276 * acinclude.m4: Handle uclinux*.
277 * configure: Regenerate.
278 * configure.host: Handle uclinux*
279
280 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
281 Mickaël Guêné <mickael.guene@st.com>
282
283 * libsupc++/eh_personality.cc (get_ttype_entry): Add FDPIC
284 support.
285
286 2019-09-10 Jonathan Wakely <jwakely@redhat.com>
287
288 PR libstdc++/91711
289 * testsuite/23_containers/span/get_neg.cc: Avoid ambiguity due to
290 0ul being a valid null pointer constant.
291
292 * include/std/type_traits (__remove_cv_t): New alias template.
293 (is_void, is_integral, is_floating_point, is_pointer)
294 (is_member_object_pointer, is_member_function_pointer, is_null_pointer)
295 (is_member_point), __is_signed_integer, __is_unsigned_integer)
296 (__make_unsigned_selector, __make_signed_selector, remove_pointer)
297 (__decay_selector): Use __remove_cv_t.
298 (remove_cv): Add partial specializations for cv-qualified types.
299 (__decay_t): New alias template.
300 (__decay_and_strip, __common_type_impl, __result_of_impl): Use
301 __decay_t.
302 (__enable_if_t): Move earlier in the file.
303 (_Require): Use __enable_if_t.
304 (swap(T&, T&)): Use _Require.
305 (swap(T(&)[N])): Use __enable_if_t.
306
307 2019-09-09 Edward Smith-Rowland <3dw4rd@verizon.net>
308
309 Implement C++20 p1424 - 'constexpr' feature macro concerns,
310 Issue 3256 - Feature testing macro for constexpr algorithms,
311 and Issue 3257 - Missing feature testing macro update from P0858.
312 * include/std/version (__cpp_lib_constexpr_algorithms): Bump value.
313 * include/bits/algorithmfwd.h: Ditto.
314 * include/std/utility: Ditto.
315 * testsuite/25_algorithms/constexpr_macro.cc: Ditto.
316 * testsuite/25_algorithms/cpp_lib_constexpr.cc: New check for
317 __cpp_lib_constexpr macro in <algorith>.
318 * testsuite/20_util/exchange/constexpr.cc: Add check for
319 __cpp_lib_constexpr macro in <utility>.
320 * testsuite/25_algorithms/adjacent_find/constexpr.cc: Remove check for
321 __cpp_lib_constexpr_algorithms.
322 * testsuite/25_algorithms/all_of/constexpr.cc: Ditto.
323 * testsuite/25_algorithms/any_of/constexpr.cc: Ditto.
324 * testsuite/25_algorithms/binary_search/constexpr.cc: Ditto.
325 * testsuite/25_algorithms/copy/constexpr.cc: Ditto.
326 * testsuite/25_algorithms/copy_backward/constexpr.cc: Ditto.
327 * testsuite/25_algorithms/copy_if/constexpr.cc: Ditto.
328 * testsuite/25_algorithms/copy_n/constexpr.cc: Ditto.
329 * testsuite/25_algorithms/count/constexpr.cc: Ditto.
330 * testsuite/25_algorithms/count_if/constexpr.cc: Ditto.
331 * testsuite/25_algorithms/equal/constexpr.cc: Ditto.
332 * testsuite/25_algorithms/equal_range/constexpr.cc: Ditto.
333 * testsuite/25_algorithms/fill/constexpr.cc: Ditto.
334 * testsuite/25_algorithms/fill_n/constexpr.cc: Ditto.
335 * testsuite/25_algorithms/find/constexpr.cc: Ditto.
336 * testsuite/25_algorithms/find_end/constexpr.cc: Ditto.
337 * testsuite/25_algorithms/find_first_of/constexpr.cc: Ditto.
338 * testsuite/25_algorithms/find_if/constexpr.cc: Ditto.
339 * testsuite/25_algorithms/find_if_not/constexpr.cc: Ditto.
340 * testsuite/25_algorithms/for_each/constexpr.cc: Ditto.
341 * testsuite/25_algorithms/generate/constexpr.cc: Ditto.
342 * testsuite/25_algorithms/generate_n/constexpr.cc: Ditto.
343 * testsuite/25_algorithms/is_heap/constexpr.cc: Ditto.
344 * testsuite/25_algorithms/is_heap_until/constexpr.cc: Ditto.
345 * testsuite/25_algorithms/is_partitioned/constexpr.cc: Ditto.
346 * testsuite/25_algorithms/is_permutation/constexpr.cc: Ditto.
347 * testsuite/25_algorithms/is_sorted/constexpr.cc: Ditto.
348 * testsuite/25_algorithms/is_sorted_until/constexpr.cc: Ditto.
349 * testsuite/25_algorithms/lexicographical_compare/constexpr.cc: Ditto.
350 * testsuite/25_algorithms/lower_bound/constexpr.cc: Ditto.
351 * testsuite/25_algorithms/merge/constexpr.cc: Ditto.
352 * testsuite/25_algorithms/mismatch/constexpr.cc: Ditto.
353 * testsuite/25_algorithms/none_of/constexpr.cc: Ditto.
354 * testsuite/25_algorithms/partition_copy/constexpr.cc: Ditto.
355 * testsuite/25_algorithms/partition_point/constexpr.cc: Ditto.
356 * testsuite/25_algorithms/remove/constexpr.cc: Ditto.
357 * testsuite/25_algorithms/remove_copy/constexpr.cc: Ditto.
358 * testsuite/25_algorithms/remove_copy_if/constexpr.cc: Ditto.
359 * testsuite/25_algorithms/remove_if/constexpr.cc: Ditto.
360 * testsuite/25_algorithms/replace_copy/constexpr.cc: Ditto.
361 * testsuite/25_algorithms/replace_copy_if/constexpr.cc: Ditto.
362 * testsuite/25_algorithms/replace_if/constexpr.cc: Ditto.
363 * testsuite/25_algorithms/reverse_copy/constexpr.cc: Ditto.
364 * testsuite/25_algorithms/rotate_copy/constexpr.cc: Ditto.
365 * testsuite/25_algorithms/search/constexpr.cc: Ditto.
366 * testsuite/25_algorithms/search_n/constexpr.cc: Ditto.
367 * testsuite/25_algorithms/set_difference/constexpr.cc: Ditto.
368 * testsuite/25_algorithms/set_intersection/constexpr.cc: Ditto.
369 * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc: Ditto.
370 * testsuite/25_algorithms/set_union/constexpr.cc: Ditto.
371 * testsuite/25_algorithms/transform/constexpr.cc: Ditto.
372 * testsuite/25_algorithms/unique/constexpr.cc: Ditto.
373 * testsuite/25_algorithms/unique_copy/constexpr.cc: Ditto.
374 * testsuite/25_algorithms/upper_bound/constexpr.cc: Ditto.
375
376 2019-09-09 Edward Smith-Rowland <3dw4rd@verizon.net>
377
378 Update docs for recent <span> and constexpr lib changes.
379 * doc/xml/manual/status_cxx2020.xml: Update p0202r3, p0858r0, p0879r0,
380 p1023r0, p1085r2 status.
381 * doc/html/manual/status.html: Regenerate.
382
383 2019-09-09 Antony Polukhin <antoshkka@gmail.com>
384
385 * include/bits/charconv.h (__detail::__to_chars_10_impl): Replace
386 final offsets with constants.
387
388 2019-09-09 Jonathan Wakely <jwakely@redhat.com>
389
390 * include/bits/range_access.h (__adl_to_address): Remove.
391 * include/std/span (__is_base_derived_safe_convertible_v): Replace
392 with span::__is_compatible.
393 (__is_std_array_v): Replace with __is_std_array class template and
394 partial specializations.
395 (__is_std_array, __is_std_span): New class templates and partial
396 specializations.
397 (span::__is_compatible): New alias template for SFINAE constraints.
398 (span::span(element_type (&)[N])): Remove redundant constraints. Do
399 not use __adl_data to obtain a pointer.
400 (span::span(array<value_type, N>&)): Likewise.
401 (span::span(const array<value_type, N>&)): Likewise.
402 [_GLIBCXX_P1394] (span::iter_reference_t, span::iterator_t)
403 (span::iter_value_t, span::derived_from): New alias templates for
404 SFINAE constraints, until the equivalents are supported in <concepts>
405 and <iterator>.
406 [_GLIBCXX_P1394] (span::__is_compatible_iterator): New alias template
407 for SFINAE constraints.
408 [_GLIBCXX_P1394] (span::is_compatible_range): New class template for
409 SFINAE constraints.
410 [_GLIBCXX_P1394] (span::span(Range&&)): Improve constraints.
411 [_GLIBCXX_P1394] (span::span(ContiguousIterator, Sentinel)): Likewise.
412 Use std::to_address instead of __adl_to_address.
413 [_GLIBCXX_P1394] (span::span(ContiguousIterator, size_type)): Likewise.
414 [!_GLIBCXX_P1394] (span::__is_compatible_container): New alias
415 template for SFINAE constraints.
416 [!_GLIBCXX_P1394] (span::span(Container&))
417 (span::span(const Container&)): Improve constraints.
418 [!_GLIBCXX_P1394] (span::span(pointer, size_type))
419 (span::span(pointer, pointer)): Remove redundant cast of pointer.
420 (span(const span<OType, OExtent>&)): New constructor.
421
422 2019-09-06 Jonathan Wakely <jwakely@redhat.com>
423
424 * include/bits/range_access.h (ssize): Define for C++20.
425 * testsuite/24_iterators/range_access_cpp20.cc: New test.
426 * doc/xml/manual/status_cxx2020.xml: Update P1227R2 status.
427 * doc/html/*: Regenerate.
428
429 2019-09-06 Florian Weimer <fweimer@redhat.com>
430
431 * configure: Regenerate.
432
433 2019-09-05 Jonathan Wakely <jwakely@redhat.com>
434
435 * doc/xml/manual/status_cxx2020.xml: Update status for P0122R7 and
436 P1024R3. Remove entry for P0920R2.
437 * include/std/span (__cpp_lib_span): Change value.
438 (__extent_storage, __extent_storage<dynamic_extent>): Remove default
439 constructor.
440 (span): Replace __extent_storage base class with data member.
441 (span::_S_subspan_extent): New function.
442 (span::empty()): Add nodiscard attribute.
443 (span::front, span::back, span::operator[]): Check preconditions.
444 (span::first, span::last, span::subspan): Add noexcept. Improve
445 precondition checks (LWG 3103).
446 (get): Remove redundant condition from static_assert.
447 (tuple_element<I, span<T, E>>): Fix static_assert message and simplify.
448 (as_writable_bytes): Add inline specifier.
449 * include/std/version (__cpp_lib_span): Change value.
450 * testsuite/23_containers/span/back_neg.cc: Remove stray semi-colon.
451 * testsuite/23_containers/span/front_neg.cc: Likewise.
452 * testsuite/23_containers/span/index_op_neg.cc: Likewise.
453 * testsuite/23_containers/span/last_neg.cc: Improve test.
454 * testsuite/23_containers/span/subspan_neg.cc: Likewise.
455 * testsuite/23_containers/span/1.cc: New test.
456 * testsuite/23_containers/span/2.cc: New test.
457 * testsuite/23_containers/span/back_assert_neg.cc: New test.
458 * testsuite/23_containers/span/first_2_assert_neg.cc: New test.
459 * testsuite/23_containers/span/first_assert_neg.cc: New test.
460 * testsuite/23_containers/span/first_neg.cc: New test.
461 * testsuite/23_containers/span/front_assert_neg.cc: New test.
462 * testsuite/23_containers/span/index_op_assert_neg.cc: New test.
463 * testsuite/23_containers/span/last_2_assert_neg.cc: New test.
464 * testsuite/23_containers/span/last_assert_neg.cc: New test.
465 * testsuite/23_containers/span/subspan_2_assert_neg.cc: New test.
466 * testsuite/23_containers/span/subspan_3_assert_neg.cc: New test.
467 * testsuite/23_containers/span/subspan_4_assert_neg.cc: New test.
468 * testsuite/23_containers/span/subspan_5_assert_neg.cc: New test.
469 * testsuite/23_containers/span/subspan_6_assert_neg.cc: New test.
470 * testsuite/23_containers/span/subspan_assert_neg.cc: New test.
471
472 2019-09-05 JeanHeyd Meneide <phdofthehouse@gmail.com>
473
474 * include/Makefile.am: Add <span> header.
475 * include/Makefile.in: Regenerate.
476 * include/bits/range_access.h (__adl_begin, __adl_end, __adl_cbegin)
477 (__adl_cend, __adl_rbegin, __adl_rend, __adl_crbegin, __adl_crend)
478 (__adl_data, __adl_cdata, __adl_size, __adl_empty, __adl_to_address):
479 New functions for performing argument-dependent lookup of range
480 customization points.
481 * include/bits/stl_iterator.h (__normal_iterator): Add
482 _GLIBCXX20_CONSTEXPR to all functions.
483 * include/std/span: New header.
484 * include/std/version (__cpp_lib_span): Define feature test macro.
485 * testsuite/23_containers/span/contiguous_range_neg.cc: New test.
486 * testsuite/23_containers/span/everything.cc: New test.
487 * testsuite/23_containers/span/get_neg.cc: New test.
488 * testsuite/23_containers/span/last_neg.cc: New test.
489 * testsuite/23_containers/span/subspan_neg.cc: New test.
490 * testsuite/23_containers/span/tuple_element_dynamic_neg.cc: New test.
491 * testsuite/23_containers/span/tuple_element_oob_neg.cc: New test.
492 * testsuite/23_containers/span/tuple_size_neg.cc: New test.
493
494 2019-09-05 Jonathan Wakely <jwakely@redhat.com>
495
496 * doc/xml/manual/allocator.xml: Remove URL for bibliography entry.
497 * doc/html/*: Regenerate.
498
499 2019-09-04 Mike Crowe <mac@mcrowe.com>
500
501 PR libstdc++/41861
502 * acinclude.m4 (GLIBCXX_CHECK_PTHREAD_COND_CLOCKWAIT): Check for new
503 pthread_cond_clockwait function.
504 * configure.ac: Use GLIBCXX_CHECK_PTHREAD_COND_CLOCKWAIT.
505 * configure: Regenerate.
506 * config.h.in: Regenerate.
507 * include/std/condition_variable: (condition_variable): Rename
508 __steady_clock_t typedef and add system_clock. Change __clock_t to be
509 a typedef for the preferred clock to convert arbitrary other clocks to.
510 [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT] (wait_until): Add a steady_clock
511 overload.
512 (wait_until): Change __clock_t overload to use system_clock.
513 [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT] (__wait_until_impl): Add
514 steady_clock overload that calls pthread_cond_clockwait.
515 (__wait_until_impl): Change __clock_t overload to use system_clock.
516 (condition_variable_any) [_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT]: Use
517 steady_clock for __clock_t if pthread_cond_clockwait is available.
518
519 2019-09-04 Mike Crowe <mac@mcrowe.com>
520
521 * testsuite/30_threads/condition_variable/members/2.cc (test01):
522 Parameterise so that test can be run against an arbitrary clock.
523 (main): Test using std::chrono::steady_clock and a user-defined
524 clock in addition to the previous std::chrono::system_clock.
525 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
526
527 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
528
529 * crossconfig.m4: Remove references to spu.
530 * configure: Regenerate.
531 * doc/xml/manual/appendix_contributing.xml: Remove references
532 to __ea as "badword" for spu.
533 * doc/html/manual/source_code_style.html: Regenerate.
534 * include/tr1/ell_integral.tcc (__ellint_rd): Do not attempt
535 to avoid __ea (as "badword" for spu).
536 (__ellint_rj): Likewise.
537
538 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
539
540 PR other/79543
541 * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Fix GNU ld --version
542 scanning to conform to the GNU Coding Standards.
543 * configure: Regenerate.
544
545 2019-09-02 Jonathan Wakely <jwakely@redhat.com>
546
547 * src/c++17/memory_resource.cc: Use __constinit keyword.
548
549 2019-09-02 Jonathan Wakely <jwakely@redhat.com>
550
551 * doc/xml/manual/abi.xml: Document 9.x library versions.
552 * doc/html/*: Regenerate.
553
554 2019-09-02 Jonathan Wakely <jwakely@redhat.com>
555
556 * include/std/charconv (__detail::__to_chars_2_len): Use std::log2p1.
557 (__detail::__to_chars_8_len): Remove.
558 (__detail::__to_chars_8): Inline length calculation here.
559 (__detail::__from_chars_binary): Use numeric_limits instead of
560 CHAR_BIT.
561
562 2019-09-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
563
564 * config/abi/post/i386-solaris/baseline_symbols.txt: Regenerate.
565 * config/abi/post/i386-solaris/amd64/baseline_symbols.txt: Likewise.
566 * config/abi/post/sparc-solaris/baseline_symbols.txt: Likewise.
567 * config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
568 Likewise.
569
570 2019-09-01 François Dumont <fdumont@gcc.gnu.org>
571
572 * testsuite_files/util/testsuite_performance.h
573 (resource_counter::start): Ignore unused malloc(0) result.
574
575 2019-09-01 Gerald Pfeifer <gerald@pfeifer.com>
576
577 * doc/xml/manual/policy_data_structures_biblio.xml (COM: Component
578 Model Object Technologies): Adjust name and link.
579
580 2019-08-30 Antony Polukhin <antoshkka@gmail.com>
581
582 * include/std/charconv (__detail::__to_chars_8)
583 __detail::__to_chars_16): Replace array of precomputed digits with
584 arithmetic operations to avoid CPU cache misses. Remove zero
585 termination from array of digits to allow symbol merge with generic
586 implementation of __detail::__to_chars. Replace final offsets with
587 constants. Use __detail::__to_chars_len_2 instead of a generic
588 __detail::__to_chars_len.
589 (__detail::__to_chars): Remove zero termination from array of digits.
590 (__detail::__to_chars_2): Leading digit is always '1'.
591
592 2019-08-30 Jonathan Wakely <jwakely@redhat.com>
593
594 * testsuite/23_containers/vector/cons/89164_c++17.cc: Fix errors.
595
596 2019-08-30 Uros Bizjak <ubizjak@gmail.com>
597
598 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
599
600 2019-08-30 Jonathan Wakely <jwakely@redhat.com>
601
602 PR libstdc++/89164
603 * include/bits/stl_algobase.h (__copy_move): Give descriptive names
604 to template parameters.
605 * include/bits/stl_uninitialized.h (uninitialized_copy)
606 (uninitialized_fill, uninitialized_fill_n): Add static assertions to
607 diagnose invalid uses.
608 * testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc:
609 Adjust expected error.
610 * testsuite/20_util/specialized_algorithms/uninitialized_copy/89164.cc:
611 New test.
612 * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
613 89164.cc: New test.
614 * testsuite/20_util/specialized_algorithms/uninitialized_fill/89164.cc:
615 New test.
616 * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/
617 89164.cc: New test.
618 * testsuite/23_containers/vector/cons/89164.cc: New test.
619 * testsuite/23_containers/vector/cons/89164_c++17.cc: New test.
620
621 2019-08-29 Jonathan Wakely <jwakely@redhat.com>
622
623 PR libstdc++/91067
624 * acinclude.m4 (libtool_VERSION): Bump to 6:28:0.
625 * configure: Regenerate.
626 * config/abi/pre/gnu.ver (GLIBCXX_3.4.28): Add new version. Export
627 missing symbols.
628 * testsuite/27_io/filesystem/iterators/91067.cc: Test move
629 constructors.
630 * testsuite/util/testsuite_abi.cc: Add new symbol version.
631
632 2019-08-29 Jakub Jelinek <jakub@redhat.com>
633
634 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
635 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
636
637 2019-08-28 Jonathan Wakely <jwakely@redhat.com>
638
639 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
640 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
641 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
642 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
643 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
644 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
645 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
646
647 2019-08-23 Joseph Myers <joseph@codesourcery.com>
648
649 * src/filesystem/ops-common.h [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
650 (std::filesystem::__gnu_posix::lstat): Add return type.
651
652 2019-08-20 Jonathan Wakely <jwakely@redhat.com>
653
654 * doc/doxygen/user.cfg.in (INPUT): Remove profile mode headers.
655
656 * include/std/numeric (reduce): Fix Doxygen markup.
657
658 PR libstdc++/91371
659 * include/std/type_traits (is_function): Simplify definition. Remove
660 partial specializations for function types.
661 (__is_referenceable): Simplify definition.
662 * testsuite/20_util/bind/91371.cc: New test.
663 * testsuite/20_util/is_function/91371.cc: New test.
664 * testsuite/20_util/is_function/value.cc: Check more pointer types.
665 * testsuite/20_util/is_member_function_pointer/91371.cc: New test.
666 * testsuite/20_util/is_object/91371.cc: New test.
667
668 2019-08-16 Uros Bizjak <ubizjak@gmail.com>
669
670 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
671
672 2019-08-15 Jonathan Wakely <jwakely@redhat.com>
673
674 PR libstdc++/91456
675 * include/bits/std_function.h (__check_func_return_type): Remove.
676 (function::_Callable): Use std::__is_invocable_impl instead of
677 __check_func_return_type.
678 * include/std/type_traits (__is_invocable_impl): Add another defaulted
679 template parameter. Define a separate partial specialization for
680 INVOKE and INVOKE<void>. For INVOKE<R> replace is_convertible check
681 with a check that models delayed temporary materialization.
682 * testsuite/20_util/function/91456.cc: New test.
683 * testsuite/20_util/is_invocable/91456.cc: New test.
684
685 2019-08-14 Jonathan Wakely <jwakely@redhat.com>
686
687 * include/std/type_traits (__is_nullptr_t): Add deprecated attribute.
688
689 2019-08-14 Edward Smith-Rowland <3dw4rd@verizon.net>
690
691 Implement C++20 p0879 - Constexpr for swap and swap related functions.
692 * include/std/version (__cpp_lib_constexpr_swap_algorithms): New macro.
693 * include/bits/algorithmfwd.h (__cpp_lib_constexpr_swap_algorithms):
694 New macro.
695 (iter_swap, make_heap, next_permutation, partial_sort_copy, pop_heap)
696 (prev_permutation, push_heap, reverse, rotate, sort_heap, swap)
697 (swap_ranges, nth_element, partial_sort, sort): Add constexpr.
698 * include/bits/move.h (swap): Add constexpr.
699 * include/bits/stl_algo.h (__move_median_to_first, __reverse, reverse)
700 (__gcd, __rotate, rotate, __partition, __heap_select)
701 (__partial_sort_copy, partial_sort_copy, __unguarded_partition)
702 (__unguarded_partition_pivot, __partial_sort, __introsort_loop, __sort)
703 (__introselect, __chunk_insertion_sort, next_permutation)
704 (prev_permutation, partition, partial_sort, nth_element, sort)
705 (__iter_swap::iter_swap, iter_swap, swap_ranges): Add constexpr.
706 * include/bits/stl_algobase.h (__iter_swap::iter_swap, iter_swap)
707 (swap_ranges): Add constexpr.
708 * include/bits/stl_heap.h (__push_heap, push_heap, __adjust_heap,
709 __pop_heap, pop_heap, __make_heap, make_heap, __sort_heap, sort_heap):
710 Add constexpr.
711 * include/std/type_traits (swap): Add constexpr.
712 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Add constexpr.
713 * testsuite/25_algorithms/iter_swap/constexpr.cc: New test.
714 * testsuite/25_algorithms/make_heap/constexpr.cc: New test.
715 * testsuite/25_algorithms/next_permutation/constexpr.cc: New test.
716 * testsuite/25_algorithms/nth_element/constexpr.cc: New test.
717 * testsuite/25_algorithms/partial_sort/constexpr.cc: New test.
718 * testsuite/25_algorithms/partial_sort_copy/constexpr.cc: New test.
719 * testsuite/25_algorithms/partition/constexpr.cc: New test.
720 * testsuite/25_algorithms/pop_heap/constexpr.cc: New test.
721 * testsuite/25_algorithms/prev_permutation/constexpr.cc: New test.
722 * testsuite/25_algorithms/push_heap/constexpr.cc: New test.
723 * testsuite/25_algorithms/reverse/constexpr.cc: New test.
724 * testsuite/25_algorithms/rotate/constexpr.cc: New test.
725 * testsuite/25_algorithms/sort/constexpr.cc: New test.
726 * testsuite/25_algorithms/sort_heap/constexpr.cc: New test.
727 * testsuite/25_algorithms/swap/constexpr.cc: New test.
728 * testsuite/25_algorithms/swap_ranges/constexpr.cc: New test.
729
730 2019-08-12 Jonathan Wakely <jwakely@redhat.com>
731
732 PR libstdc++/90361
733 * src/c++17/string-inst.cc: Use _GLIBCXX_USE_CXX11_ABI=1 by default.
734
735 * include/std/tuple (__unpack_std_tuple): New variable template and
736 partial specializations.
737 (apply, make_from_tuple): Add noexcept-specifier.
738 * testsuite/20_util/tuple/apply/2.cc: New test.
739 * testsuite/20_util/tuple/make_from_tuple/2.cc: New test.
740
741 2019-08-09 Corentin Gay <gay@adacore.com>
742
743 * testsuite/ext/random/beta_distribution/operators/serialize.cc,
744 testsuite/ext/random/hypergeometric_distribution/operators/serialize.cc,
745 testsuite/ext/random/normal_mv_distribution/operators/serialize.cc,
746 testsuite/ext/random/triangular_distribution/operators/serialize.cc,
747 testsuite/ext/random/von_mises_distribution/operators/serialize.cc:
748 Add call to `VERIFY`.
749
750 2019-08-09 Alexandre Oliva <oliva@adacore.com>
751
752 * include/ext/random
753 (normal_mv_distribution::param_type::param_type): New private
754 ctor taking a decomposed varcov matrix, for use by...
755 (operator>>): ... this, befriended.
756 * include/ext/random.tcc (operator>>): Use it.
757 (normal_mv_distribution::param_type::_M_init_lower): Adjust
758 member function name in exception message.
759
760 2019-08-08 Jonathan Wakely <jwakely@redhat.com>
761
762 P0325R4 to_array from LFTS with updates
763 * include/experimental/array (to_array): Qualify call to __to_array.
764 * include/std/array (__cpp_lib_to_array, to_array): Define for C++20.
765 * include/std/version (__cpp_lib_to_array): Likewise.
766 * testsuite/23_containers/array/creation/1.cc: New test.
767 * testsuite/23_containers/array/creation/2.cc: New test.
768 * testsuite/23_containers/array/creation/3_neg.cc: New test.
769 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
770 Use zero for dg-error line number.
771
772 2019-08-06 Jonathan Wakely <jwakely@redhat.com>
773
774 P1651R0 bind_front should not unwrap reference_wrapper
775 * include/std/functional (bind_front): Don't unwrap reference_wrapper.
776 * include/std/version (__cpp_lib_bind_front): Update value.
777 * testsuite/20_util/function_objects/bind_front/1.cc: Fix test for
778 feature test macro.
779 * testsuite/20_util/function_objects/bind_front/2.cc: New test.
780
781 * include/std/numbers [!__STRICT_ANSI__ && _GLIBCXX_USE_FLOAT128]
782 (e_v, log2e_v, log10e_v, pi_v, inv_pi_v, inv_sqrtpi_v, ln2_v, ln10_v)
783 (sqrt2_v, sqrt3_v, inv_sqrt3, egamma_v, phi_v): Add explicit
784 specializations for __float128.
785 * testsuite/26_numerics/numbers/float128.cc: New test.
786
787 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
788
789 * doc/xml/manual/documentation_hacking.xml: doxygen.org is now
790 doxygen.nl.
791
792 2019-08-01 Edward Smith-Rowland <3dw4rd@verizon.net>
793
794 Implement C++20 p0202 - Add Constexpr Modifiers to Functions
795 in <algorithm> and <utility> Headers.
796 Implement C++20 p1023 - constexpr comparison operators for std::array.
797 * include/bits/algorithmfwd.h (all_of, any_of, binary_search, copy,
798 copy_backward, copy_if, copy_n, equal_range, fill, find_end,
799 find_if_not, includes, is_heap, is_heap_until, is_partitioned,
800 is_permutation, is_sorted, is_sorted_until, iter_swap, lower_bound,
801 none_of, partition_copy, partition_point, remove, remove_if,
802 remove_copy, remove_copy_if, replace_copy, replace_copy_if,
803 reverse_copy, rotate_copy, uunique, upper_bound, adjacent_find, count,
804 count_if, equal, find, find_first_of, find_if, for_each, generate,
805 generate_n, lexicographical_compare, merge, mismatch, replace,
806 replace_if, search, search_n, set_difference, set_intersection,
807 set_symmetric_difference, set_union, transform, unique_copy):
808 Mark constexpr.
809 * include/bits/cpp_type_traits.h (__miter_base): Mark constexpr.
810 * include/bits/predefined_ops.h (_Iter_less_val::operator(),
811 _Val_less_iter::operator(), _Iter_equal_to_iter::operator(),
812 _Iter_equal_to_val::operator(), _Iter_equals_val::operator()):
813 Use const ref instead of ref arg;
814 (_Iter_less_val, __iter_less_val, _Val_less_iter, __val_less_iter,
815 __iter_equal_to_iter, __iter_equal_to_val, __iter_comp_val,
816 _Iter_comp_val, _Val_comp_iter, __val_comp_iter, __iter_equals_val,
817 _Iter_equals_iter, __iter_comp_iter, _Iter_pred, __pred_iter,
818 _Iter_comp_to_val, __iter_comp_val, _Iter_comp_to_iter,
819 __iter_comp_iter): Mark constexpr.
820 * include/bits/stl_algo.h (__find_if, __find_if_not, __find_if_not_n,
821 __search, __search_n_aux, __search_n, __find_end, find_end, all_of,
822 none_of, any_of, find_if_not, is_partitioned, partition_point,
823 __remove_copy_if, remove_copy, remove_copy_if, copy_if, __copy_n,
824 copy_n, partition_copy, __remove_if, remove, remove_if, __adjacent_find,
825 __unique, unique, __unique_copy, reverse_copy, rotate_copy,
826 __unguarded_linear_insert, __insertion_sort, __unguarded_insertion_sort,
827 __final_insertion_sort, lower_bound, __upper_bound, upper_bound,
828 __equal_range, equal_range, binary_search, __includes, includes,
829 __next_permutation, __prev_permutation, __replace_copy_if, replace_copy,
830 replace_copy_if, __count_if, is_sorted, __is_sorted_until,
831 is_sorted_until, __is_permutation, is_permutation, for_each, find,
832 find_if, find_first_of, adjacent_find, count, count_if, search,
833 search_n, transform, replace, replace_if, generate, generate_n,
834 unique_copy, __merge, merge, __set_union, set_union, __set_intersection,
835 set_intersection, __set_difference, set_difference,
836 __set_symmetric_difference, set_symmetric_difference): Mark constexpr.
837 * include/bits/stl_algobase.h (__memmove, __memcmp): New maybe constexpr
838 wrappers around __builtin_memmove and __builtin_memcmp
839 respectively;
840 (__niter_base, __niter_wrap, __copy_m, __copy_move_a, __copy_move_a2,
841 copy, move, __copy_move_b, __copy_move_backward_a,
842 __copy_move_backward_a2, copy_backward, move_backward, __fill_a, fill,
843 __fill_n_a, fill_n, equal, __lc_rai::__newlast1, __lc_rai::__cnd2,
844 __lexicographical_compare_impl, __lexicographical_compare,
845 __lexicographical_compare<true>::__lc, __lexicographical_compare_aux,
846 __lower_bound, lower_bound, equal, __equal4, lexicographical_compare,
847 __mismatch, mismatch, __is_heap_until, __is_heap, is_heap_until,
848 is_heap): Mark constexpr.
849 * include/bits/stl_heap.h (__is_heap_until, __is_heap, is_heap_until,
850 is_heap): Mark constexpr.
851 * include/bits/stl_iterator.h (__niter_base, __miter_base): Mark constexpr.
852 * include/std/array: Make comparison ops constexpr.
853 * include/std/utility: Make exchange constexpr.
854 * include/std/version (__cpp_lib_constexpr_algorithms): New macro.
855 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust.
856 * testsuite/23_containers/array/tuple_interface/
857 tuple_element_neg.cc: Adjust.
858 * testsuite/20_util/exchange/constexpr.cc: New.
859 * testsuite/23_containers/array/comparison_operators/constexpr.cc: New.
860 * testsuite/25_algorithms/constexpr_macro.cc: New.
861 * testsuite/25_algorithms/adjacent_find/constexpr.cc: New.
862 * testsuite/25_algorithms/all_of/constexpr.cc: New.
863 * testsuite/25_algorithms/any_of/constexpr.cc: New.
864 * testsuite/25_algorithms/binary_search/constexpr.cc: New.
865 * testsuite/25_algorithms/copy/constexpr.cc: New.
866 * testsuite/25_algorithms/copy_backward/constexpr.cc: New.
867 * testsuite/25_algorithms/copy_if/constexpr.cc: New.
868 * testsuite/25_algorithms/copy_n/constexpr.cc: New.
869 * testsuite/25_algorithms/count/constexpr.cc: New.
870 * testsuite/25_algorithms/count_if/constexpr.cc: New.
871 * testsuite/25_algorithms/equal/constexpr.cc: New.
872 * testsuite/25_algorithms/equal_range/constexpr.cc: New.
873 * testsuite/25_algorithms/fill/constexpr.cc: New.
874 * testsuite/25_algorithms/fill_n/constexpr.cc: New.
875 * testsuite/25_algorithms/find/constexpr.cc: New.
876 * testsuite/25_algorithms/find_end/constexpr.cc: New.
877 * testsuite/25_algorithms/find_first_of/constexpr.cc: New.
878 * testsuite/25_algorithms/find_if/constexpr.cc: New.
879 * testsuite/25_algorithms/find_if_not/constexpr.cc: New.
880 * testsuite/25_algorithms/for_each/constexpr.cc: New.
881 * testsuite/25_algorithms/generate/constexpr.cc: New.
882 * testsuite/25_algorithms/generate_n/constexpr.cc: New.
883 * testsuite/25_algorithms/is_heap/constexpr.cc: New.
884 * testsuite/25_algorithms/is_heap_until/constexpr.cc: New.
885 * testsuite/25_algorithms/is_partitioned/constexpr.cc: New.
886 * testsuite/25_algorithms/is_permutation/constexpr.cc: New.
887 * testsuite/25_algorithms/is_sorted/constexpr.cc: New.
888 * testsuite/25_algorithms/is_sorted_until/constexpr.cc: New.
889 * testsuite/25_algorithms/lexicographical_compare/constexpr.cc: New.
890 * testsuite/25_algorithms/lower_bound/constexpr.cc: New.
891 * testsuite/25_algorithms/merge/constexpr.cc: New.
892 * testsuite/25_algorithms/mismatch/constexpr.cc: New.
893 * testsuite/25_algorithms/none_of/constexpr.cc: New.
894 * testsuite/25_algorithms/partition_copy/constexpr.cc: New.
895 * testsuite/25_algorithms/partition_point/constexpr.cc: New.
896 * testsuite/25_algorithms/remove/constexpr.cc: New.
897 * testsuite/25_algorithms/remove_copy/constexpr.cc: New.
898 * testsuite/25_algorithms/remove_copy_if/constexpr.cc: New.
899 * testsuite/25_algorithms/remove_if/constexpr.cc: New.
900 * testsuite/25_algorithms/replace_copy/constexpr.cc: New.
901 * testsuite/25_algorithms/replace_copy_if/constexpr.cc: New.
902 * testsuite/25_algorithms/replace_if/constexpr.cc: New.
903 * testsuite/25_algorithms/reverse_copy/constexpr.cc: New.
904 * testsuite/25_algorithms/rotate_copy/constexpr.cc: New.
905 * testsuite/25_algorithms/search/constexpr.cc: New.
906 * testsuite/25_algorithms/search_n/constexpr.cc: New.
907 * testsuite/25_algorithms/set_difference/constexpr.cc: New.
908 * testsuite/25_algorithms/set_intersection/constexpr.cc: New.
909 * testsuite/25_algorithms/set_symmetric_difference/constexpr.cc: New.
910 * testsuite/25_algorithms/set_union/constexpr.cc: New.
911 * testsuite/25_algorithms/transform/constexpr.cc: New.
912 * testsuite/25_algorithms/unique/constexpr.cc: New.
913 * testsuite/25_algorithms/unique_copy/constexpr.cc: New.
914 * testsuite/25_algorithms/upper_bound/constexpr.cc: New.
915
916 2019-07-31 Jonathan Wakely <jwakely@redhat.com>
917
918 * include/std/memory (make_obj_using_allocator): Qualify call to
919 uses_allocator_construction_args.
920
921 P0631R4 Math Constants
922 * include/Makefile.am: Add new header.
923 * include/Makefile.in: Regenerate.
924 * include/precompiled/stdc++.h: Include new header.
925 * include/std/numbers: New header.
926 * include/std/version (__cpp_lib_math_constants): Define.
927 * testsuite/26_numerics/numbers/1.cc: New test.
928 * testsuite/26_numerics/numbers/2.cc: New test.
929 * testsuite/26_numerics/numbers/3.cc: New test.
930 * testsuite/26_numerics/numbers/nonfloat_neg.cc: New test.
931
932 * include/std/bit: Add Doxygen comments.
933
934 PR libstdc++/91308
935 * include/bits/unique_ptr.h (unique_ptr::__safe_conversion_up): Remove
936 constraints on deleter that should only apply to the constructor.
937 (unique_ptr<T[], D>::__safe_conversion_up): Likewise.
938 (unique_ptr<T[], D>::unique_ptr(unique_ptr<U, D>&&)): Restore
939 constraints on deleter here.
940 * testsuite/20_util/unique_ptr/assign/91308.cc: New test.
941
942 2019-07-29 Jonathan Wakely <jwakely@redhat.com>
943
944 PR libstdc++/51333
945 * libsupc++/cxxabi.h (__gnu_cxx::recursive_init_error): Do not define
946 constructor inline.
947 * libsupc++/guard_error.cc (__gnu_cxx::recursive_init_error): Define
948 constructor.
949 * testsuite/18_support/51333.cc: New test.
950
951 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
952
953 * doc/xml/manual/documentation_hacking.xml: Fix broken reference
954 to the Doxygen manual. Avoid a "here" link on the way.
955 Fix another broken link to Doxygen docblocks.
956
957 2019-07-26 Jonathan Wakely <jwakely@redhat.com>
958
959 * include/std/bit (__cpp_lib_endian): Define.
960 * include/std/version (__cpp_lib_endian): Define.
961 * testsuite/26_numerics/endian/2.cc: New.
962 * testsuite/26_numerics/endian/3.cc: New.
963 * testsuite/26_numerics/endian/4.cc: New.
964
965 2019-07-26 François Dumont <fdumont@gcc.gnu.org>
966
967 * testsuite/util/testsuite_iterators.h
968 (bidirectional_iterator_wrapper): Fix type comment.
969 (random_access_iterator_wrapper): Likewise.
970
971 2019-07-25 Jonathan Wakely <jwakely@redhat.com>
972
973 * include/std/bit (endian): Move definition here as per P1612R1.
974 * include/std/type_traits (endian): Remove definition from here.
975 * testsuite/20_util/endian/1.cc: Rename to ...
976 * testsuite/26_numerics/endian/1.cc: ... here. Adjust header.
977
978 2019-07-25 Martin Liska <mliska@suse.cz>
979 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
980
981 PR c++/23383
982 * testsuite/ext/bitmap_allocator/check_delete.cc: Add
983 -fno-allocation-dce.
984 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
985 * testsuite/ext/new_allocator/check_delete.cc: Likewise.
986 * testsuite/ext/new_allocator/check_new.cc: Likewise.
987
988 2019-07-22 Jonathan Wakely <jwakely@redhat.com>
989
990 * testsuite/26_numerics/bit/bitops.count/*: Rename to ...
991 * testsuite/26_numerics/bit/bit.count/*: Here.
992
993 * include/std/bit (__rotl, __rotr): Change second parameter from
994 unsigned int to int and handle negative values.
995 (rotl, rotr): Remove check for __STRICT_ANSI__. Change second
996 parameter from unsigned int to int. Add nodiscard attribute.
997 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Rename to ...
998 * testsuite/26_numerics/bit/bit.rotate/rotl.cc: Here. Test negative
999 shifts.
1000 * testsuite/26_numerics/bit/bitops.rot/rotr.cc: Rename to ...
1001 * testsuite/26_numerics/bit/bit.rotate/rotr.cc: Here. Test negative
1002 shifts.
1003
1004 * include/std/bit (__ceil2): Make unrepresentable results undefined,
1005 as per P1355R2. Add debug assertion. Perform one left shift, not two,
1006 so that out of range values cause undefined behaviour. Ensure that
1007 shift will still be undefined if left operand is promoted.
1008 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Replace checks for
1009 unrepresentable values with checks that they are not core constant
1010 expressions.
1011 * testsuite/26_numerics/bit/bit.pow.two/ceil2_neg.cc: New test.
1012
1013 2019-07-19 François Dumont <fdumont@gcc.gnu.org>
1014
1015 * include/bits/stl_tempbuf.h (__detail::__return_temporary_buffer): Fix
1016 sized deallocation size computation.
1017
1018 2019-07-19 Andreas Schwab <schwab@linux-m68k.org>
1019
1020 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1021
1022 2019-07-18 François Dumont <fdumont@gcc.gnu.org>
1023
1024 * include/bits/stl_tempbuf.h (__detail::__return_temporary_buffer): New.
1025 (~_Temporary_buffer()): Use latter.
1026 (_Temporary_buffer(_FIterator, size_type)): Likewise.
1027
1028 2019-07-17 Andreas Schwab <schwab@suse.de>
1029
1030 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1031
1032 2019-07-16 Jason Merrill <jason@redhat.com>
1033
1034 * include/std/memory (uses_allocator_construction_args): Add parens
1035 around constraint.
1036
1037 2019-07-12 Jonathan Wakely <jwakely@redhat.com>
1038
1039 * testsuite/29_atomics/atomic_float/1.cc: Fix comment.
1040
1041 * include/experimental/string_view (__detail::__idt): Remove.
1042 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
1043 Use __type_identity_t instead of __detail::__idt;
1044 * include/std/string_view (__detail::__idt): Remove.
1045 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
1046 Use __type_identity_t instead of __detail::__idt;
1047 * include/std/type_traits (__type_identity_t): New alias template.
1048
1049 * doc/xml/manual/status_cxx2020.xml: Update status for atomic_ref
1050 and floating point atomics.
1051
1052 2019-07-11 Jonathan Wakely <jwakely@redhat.com>
1053
1054 * doc/xml/manual/configure.xml: Improve documentation of
1055 --enable-libstdcxx-time option.
1056
1057 * include/bits/atomic_base.h (__atomic_impl): New namespace for
1058 wrappers around atomic built-ins.
1059 (__atomic_float, __atomic_ref): New class templates for use as base
1060 classes.
1061 * include/std/atomic (atomic<float>, atomic<double>)
1062 (atomic<long double>): New explicit specializations.
1063 (atomic_ref): New class template.
1064 (__cpp_lib_atomic_ref): Define.
1065 * include/std/version (__cpp_lib_atomic_ref): Define.
1066 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error.
1067 * testsuite/29_atomics/atomic_float/1.cc: New test.
1068 * testsuite/29_atomics/atomic_float/requirements.cc: New test.
1069 * testsuite/29_atomics/atomic_ref/deduction.cc: New test.
1070 * testsuite/29_atomics/atomic_ref/float.cc: New test.
1071 * testsuite/29_atomics/atomic_ref/generic.cc: New test.
1072 * testsuite/29_atomics/atomic_ref/integral.cc: New test.
1073 * testsuite/29_atomics/atomic_ref/pointer.cc: New test.
1074 * testsuite/29_atomics/atomic_ref/requirements.cc: New test.
1075
1076 2019-07-06 Jonathan Wakely <jwakely@redhat.com>
1077
1078 * include/ext/atomicity.h (__exchange_and_add, __atomic_add): Replace
1079 throw() with _GLIBCXX_NOTHROW.
1080 (__atomic_add_dispatch): Return after performing atomic increment.
1081
1082 2019-07-05 Jonathan Wakely <jwakely@redhat.com>
1083
1084 * include/ext/atomicity.h [_GLIBCXX_ATOMIC_BUILTINS] (__atomic_add)
1085 (__exchange_and_add): Replace static specifier with always_inline
1086 attribute.
1087 (__exchange_and_add_single, __atomic_add_single): Likewise.
1088 (__exchange_and_add_dispatch, __atomic_add_dispatch): Likewise. Also
1089 combine !__gthread_active_p() and !__GTHREADS branches.
1090
1091 2019-07-03 Jonathan Wakely <jwakely@redhat.com>
1092
1093 PR libstdc++/91067
1094 * acinclude.m4 (libtool_VERSION): Bump to 6:27:0.
1095 * configure: Regenerate.
1096 * config/abi/pre/gnu.ver (GLIBCXX_3.4.27): Add new version. Export
1097 missing symbols.
1098 * testsuite/27_io/filesystem/iterators/91067.cc: New test.
1099 * testsuite/util/testsuite_abi.cc: Add new symbol version.
1100
1101 2019-07-02 Jonathan Wakely <jwakely@redhat.com>
1102
1103 * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_LAUNDER)
1104 (_GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED): Use __has_builtin
1105 instead of __is_identifier to detect Clang support.
1106
1107 2019-07-02 Jim Wilson <jimw@sifive.com>
1108
1109 * configure.ac (BUILD_PDF): Also test for doxygen, dot, xsltproc,
1110 and xmllint.
1111 * configure: Regenerate.
1112
1113 2019-06-27 Jonathan Wakely <jwakely@redhat.com>
1114
1115 PR libstdc++/91012
1116 * src/c++17/fs_path.cc (filesystem_error::_Impl): Use a string_view
1117 for the what_arg parameters.
1118 (filesystem_error::filesystem_error): Pass system_error::what() to
1119 the _Impl constructor.
1120 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Ensure that
1121 filesystem_error::what() contains system_error::what().
1122
1123 2019-06-26 Jonathan Wakely <jwakely@redhat.com>
1124
1125 * include/std/charconv (chars_format): Define bitmask type.
1126 * testsuite/20_util/to_chars/chars_format.cc: New test.
1127
1128 * include/bits/fs_path.h (path::__is_encoded_char): Use __is_one_of.
1129 * include/std/bit (_If_is_unsigned_integer_type): Remove.
1130 (_If_is_unsigned_integer): Use __is_unsigned_integer.
1131 (rotl(byte, unsigned), rotr(byte, unsigned), countl_zero(byte))
1132 (countl_one(byte), countr_zero(byte), countr_one(byte))
1133 (popcount(byte), ispow2(byte), ceil2(byte), floor2(byte))
1134 (log2p1(byte)): Remove.
1135 * include/std/charconv (__detail::__is_one_of): Move to <type_traits>.
1136 (__detail::__is_int_to_chars_type): Remove.
1137 (__detail::__integer_to_chars_result_type): Use __is_signed_integer
1138 and __is_unsigned_integer.
1139 * include/std/type_traits (__is_one_of): Move here from <charconv>.
1140 (__is_signed_integer, __is_unsigned_integer): New helpers.
1141 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Remove test for
1142 std::byte overload.
1143 * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: Likewise.
1144 * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: Likewise.
1145 * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: Likewise.
1146 * testsuite/26_numerics/bit/bitops.count/countl_one.cc: Likewise.
1147 * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: Likewise.
1148 * testsuite/26_numerics/bit/bitops.count/countr_one.cc: Likewise.
1149 * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: Likewise.
1150 * testsuite/26_numerics/bit/bitops.count/popcount.cc: Likewise.
1151 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Likewise.
1152 * testsuite/26_numerics/bit/bitops.rot/rotr.cc: Likewise.
1153
1154 2019-06-25 Jonathan Wakely <jwakely@redhat.com>
1155
1156 * include/std/numeric (midpoint(T, T)): Avoid std::abs in constexpr
1157 function.
1158
1159 2019-06-25 Jakub Jelinek <jakub@redhat.com>
1160
1161 * include/pstl/pstl_config.h (_PSTL_PRAGMA_SIMD_SCAN,
1162 _PSTL_PRAGMA_SIMD_INCLUSIVE_SCAN, _PSTL_PRAGMA_SIMD_EXCLUSIVE_SCAN):
1163 Define to OpenMP 5.0 pragmas even for GCC 10.0+.
1164 (_PSTL_UDS_PRESENT): Define to 1 for GCC 10.0+.
1165
1166 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
1167
1168 * include/std/numeric (midpoint(T, T)): Change implementation for
1169 floating-point types to avoid incorrect rounding of denormals.
1170 * testsuite/26_numerics/midpoint/floating.cc: Add check for correct
1171 rounding with denormals.
1172 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line numbers.
1173 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1174
1175 * testsuite/18_support/headers/cfloat/values_c++17.cc: New test.
1176
1177 2019-06-20 Jonathan Wakely <jwakely@redhat.com>
1178
1179 * acinclude.m4 (GLIBCXX_ENABLE_DEBUG): Only do debug build for final
1180 stage of bootstrap.
1181 * configure: Regenerate.
1182
1183 * include/std/variant (_Variant_storage, _Extra_visit_slot_needed):
1184 Qualify calls to __never_valueless.
1185
1186 * doc/xml/manual/status_cxx2017.xml: Fix outdated reference to
1187 C++17 working draft.
1188
1189 * testsuite/libstdc++-prettyprinters/simple.cc: Use non-palindromic
1190 vector<bool> for test.
1191 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1192
1193 2019-06-19 Jonathan Wakely <jwakely@redhat.com>
1194
1195 * include/bits/stream_iterator.h (istream_iterator::_M_equal()): Make
1196 private.
1197 (istream_iterator::_M_read()): Do not check stream state before
1198 attempting extraction. Set stream pointer to null when extraction
1199 fails (P0738R2).
1200 (operator==(const istream_iterator&, const istream_iterator&)): Change
1201 to be a hidden friend of istream_iterator.
1202 (operator!=(const istream_iterator&, const istream_iterator&)):
1203 Likewise.
1204 (ostream_iterator::ostream_iterator()): Add default constructor.
1205 (ostream_iterator::ostream_iterator(ostream_type*, const C*)): Use
1206 addressof.
1207 * testsuite/24_iterators/istream_iterator/1.cc: New test.
1208 * testsuite/24_iterators/ostream_iterator/1.cc: New test.
1209 * testsuite/24_iterators/ostream_iterator/70766.cc: Also check
1210 constructor taking a string.
1211 * testsuite/24_iterators/ostream_iterator/requirements/constexpr.cc:
1212 New test.
1213
1214 2019-06-19 Michael Weghorn <m.weghorn@posteo.de>
1215 Jonathan Wakely <jwakely@redhat.com>
1216
1217 PR libstdc++/90945
1218 * python/libstdcxx/v6/printers.py (StdVectorPrinter._iterator): Use
1219 values of type bool for vector<bool> elements.
1220 * testsuite/libstdc++-prettyprinters/simple.cc: Test vector<bool>.
1221 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1222
1223 2019-06-19 Jonathan Wakely <jwakely@redhat.com>
1224
1225 PR libstdc++/90920 partially revert r263433
1226 * include/bits/stl_algo.h (__rotate): Restore checks for empty ranges.
1227 (rotate): Remove checks.
1228 * testsuite/25_algorithms/rotate/90920.cc: New test.
1229
1230 * include/std/numeric (reduce(Iter, Iter, T, BinOp)): Fix value
1231 category used in invocable check.
1232 (reduce(Iter, Iter, T)): Pass initial value as rvalue.
1233 * testsuite/26_numerics/reduce/2.cc: New test.
1234
1235 2019-06-18 Jonathan Wakely <jwakely@redhat.com>
1236
1237 * include/bits/algorithmfwd.h: Change title of doc group.
1238 * include/bits/stl_algo.h (for_each_n): Add new C++17 algorithm from
1239 P0024R2.
1240 * include/bits/stl_numeric.h: Define doc group and add algos to it.
1241 * include/std/numeric (__is_random_access_iter): New internal trait.
1242 (reduce, transform_reduce, exclusive_scan, inclusive_scan)
1243 (transform_exclusive_scan, transform_inclusive_scan): Likewise.
1244 * testsuite/25_algorithms/for_each/for_each_n.cc: New test.
1245 * testsuite/26_numerics/exclusive_scan/1.cc: New test.
1246 * testsuite/26_numerics/inclusive_scan/1.cc: New test.
1247 * testsuite/26_numerics/reduce/1.cc: New test.
1248 * testsuite/26_numerics/transform_exclusive_scan/1.cc: New test.
1249 * testsuite/26_numerics/transform_inclusive_scan/1.cc: New test.
1250 * testsuite/26_numerics/transform_reduce/1.cc: New test.
1251 * testsuite/util/testsuite_iterators.h (test_container::size()): New
1252 member function.
1253
1254 * include/c_global/cstddef (std::byte): Perform arithmetic operations
1255 in unsigned int to avoid promotion (LWG 2950).
1256
1257 2019-06-17 Jonathan Wakely <jwakely@redhat.com>
1258
1259 * testsuite/20_util/allocator/1.cc: Add sized delete, which fixes a
1260 failure on AIX.
1261
1262 * include/c_global/cmath (__lerp, lerp): Add noexcept (LWG 3201).
1263
1264 PR libstdc++/90281 Fix string conversions for filesystem::path
1265 * include/bits/fs_path.h (u8path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
1266 Use codecvt_utf8_utf16 instead of codecvt_utf8. Use
1267 __str_codecvt_in_all to fail for partial conversions and throw on
1268 error.
1269 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS && _GLIBCXX_USE_CHAR8_T]
1270 (path::_Cvt<char8_t>): Add explicit specialization.
1271 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Remove
1272 overloads.
1273 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
1274 if-constexpr instead of dispatching to _S_wconvert. Use codecvt
1275 instead of codecvt_utf8. Use __str_codecvt_in_all and
1276 __str_codecvt_out_all.
1277 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
1278 codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
1279 (path::_S_str_convert) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1280 codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
1281 with allocator. Use __str_codecvt_out_all. Fallthrough to POSIX code
1282 after converting to UTF-8.
1283 (path::_S_str_convert): Use codecvt instead of codecvt_utf8. Use
1284 __str_codecvt_in_all.
1285 (path::string): Fix initialization of string types with different
1286 allocators.
1287 (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1288 codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
1289 * include/bits/locale_conv.h (__do_str_codecvt): Reorder static and
1290 runtime conditions.
1291 (__str_codecvt_out_all, __str_codecvt_in_all): New functions that
1292 return false for partial conversions.
1293 * include/experimental/bits/fs_path.h (u8path):
1294 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Implement correctly for mingw.
1295 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_wconvert): Add
1296 missing handling for char8_t. Use codecvt and codecvt_utf8_utf16
1297 instead of codecvt_utf8. Use __str_codecvt_in_all and
1298 __str_codecvt_out_all.
1299 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::_Cvt::_S_convert): Use
1300 codecvt instead of codecvt_utf8. Use __str_codecvt_out_all.
1301 (path::string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1302 codecvt_utf8_utf16 instead of codecvt_utf8. Construct return values
1303 with allocator. Use __str_codecvt_out_all and __str_codecvt_in_all.
1304 (path::string) [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1305 __str_codecvt_in_all.
1306 (path::u8string) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use
1307 codecvt_utf8_utf16 instead of codecvt_utf8. Use __str_codecvt_out_all.
1308 * src/c++17/fs_path.cc (path::_S_convert_loc): Use
1309 __str_codecvt_in_all.
1310 * src/filesystem/path.cc (path::_S_convert_loc): Likewise.
1311 * testsuite/27_io/filesystem/path/construct/90281.cc: New test.
1312 * testsuite/27_io/filesystem/path/factory/u8path.cc: New test.
1313 * testsuite/27_io/filesystem/path/native/string.cc: Test with empty
1314 strings and with Unicode characters outside the basic multilingual
1315 plane.
1316 * testsuite/27_io/filesystem/path/native/alloc.cc: New test.
1317 * testsuite/experimental/filesystem/path/construct/90281.cc: New test.
1318 * testsuite/experimental/filesystem/path/factory/u8path.cc: New test.
1319 * testsuite/experimental/filesystem/path/native/alloc.cc: New test.
1320 * testsuite/experimental/filesystem/path/native/string.cc: Test with
1321 empty strings and with Unicode characters outside the basic
1322 multilingual plane.
1323
1324 2019-06-17 François Dumont <fdumont@gcc.gnu.org>
1325 Jonathan Wakely <jwakely@redhat.com>
1326
1327 * include/bits/hashtable.h (struct _Hashtable::_Scoped_node): New type.
1328 (_Hashtable::_M_insert_unique_node): Add key_type parameter. Don't
1329 deallocate node if insertion fails.
1330 (_Hashtable::_M_insert_multi_node): Likewise.
1331 (_Hashtable::_M_reinsert_node): Pass additional key argument.
1332 (_Hashtable::_M_reinsert_node_multi): Likewise. Remove FIXME.
1333 (_Hashtable::_M_extract_node(size_t, __node_base*)): New function.
1334 (_Hashtable::extract(const_iterator)): Use _M_extract_node.
1335 (_Hashtable::extract(const _Key&)): Likewise.
1336 (_Hashtable::_M_merge_unique): Pass additional key argument.
1337 (_Hashtable::_M_emplace<Args>(true_type, Args&&...)): Likewise. Use
1338 _Scoped_node.
1339 (_Hashtable::_M_insert): Likewise.
1340 * include/bits/hashtable_policy.h (_Map_base::operator[]): Likewise.
1341 (_Hashtable_alloc): Add comments to functions with misleading names.
1342
1343 2019-06-17 Jonathan Wakely <jwakely@redhat.com>
1344
1345 * testsuite/20_util/bad_function_call/what.cc: Include <string> header
1346 for std::string.
1347 * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Likewise.
1348 * testsuite/20_util/tuple/cons/allocator_with_any.cc: Include <memory>
1349 header for std::allocator.
1350 * testsuite/23_containers/array/tuple_interface/tuple_element.cc: Add
1351 using-declaration for std::size_t.
1352 * testsuite/23_containers/array/tuple_interface/tuple_size.cc:
1353 Likewise.
1354 * testsuite/23_containers/deque/cons/55977.cc: Include <istream> for
1355 std::istream.
1356 * testsuite/23_containers/vector/cons/55977.cc: Likewise.
1357 * testsuite/experimental/map/erasure.cc: Include <string> for
1358 std::string.
1359 * testsuite/experimental/unordered_map/erasure.cc: Likewise.
1360
1361 2019-06-14 Jonathan Wakely <jwakely@redhat.com>
1362
1363 * include/experimental/type_traits (experimental::nonesuch): Use
1364 pragma to disable -Wctor-dtor-privacy warnings.
1365 * include/std/type_traits (__is_convertible_helper<From, To, false>)
1366 (__is_nt_convertible_helper<From, To, false>, __nonesuch): Likewise.
1367
1368 * include/std/version (__cpp_lib_bind_front): Add missing macro.
1369
1370 2019-06-12 Jonathan Wakely <jwakely@redhat.com>
1371
1372 * include/std/algorithm (__cpp_lib_parallel_algorithm): Fix value.
1373 * include/std/memory (__cpp_lib_parallel_algorithm): Likewise.
1374 * include/std/numeric (__cpp_lib_parallel_algorithm): Likewise.
1375 * testsuite/25_algorithms/pstl/feature_test.cc: New test.
1376
1377 * include/std/variant (get<T>, get<N>, get_if<N>, get_if<T>)
1378 (variant::emplace): Change static_assert messages from "should be"
1379 to "must be".
1380 (hash<monostate>::operator()): Remove name of unused parameter.
1381
1382 * include/std/mutex (scoped_lock::~scoped_lock()): Use fold
1383 expression.
1384
1385 * include/Makefile.am: Add new <bits/charconv.h> header.
1386 * include/Makefile.in: Regenerate.
1387 * include/bits/basic_string.h (to_string(int), to_string(unsigned))
1388 (to_string(long), to_string(unsigned long), to_string(long long))
1389 (to_string(unsigned long long)): Rewrite to use __to_chars_10_impl.
1390 * include/bits/charconv.h: New header.
1391 (__detail::__to_chars_len): Move here from <charconv>.
1392 (__detail::__to_chars_10_impl): New function extracted from
1393 __detail::__to_chars_10.
1394 * include/std/charconv (__cpp_lib_to_chars): Add, but comment out.
1395 (__to_chars_unsigned_type): New class template that reuses
1396 __make_unsigned_selector_base::__select to pick a type.
1397 (__unsigned_least_t): Redefine as __to_chars_unsigned_type<T>::type.
1398 (__detail::__to_chars_len): Move to new header.
1399 (__detail::__to_chars_10): Add inline specifier. Move code doing the
1400 output to __detail::__to_chars_10_impl and call that.
1401 * include/std/version (__cpp_lib_to_chars): Add, but comment out.
1402 * testsuite/21_strings/basic_string/numeric_conversions/char/
1403 to_string.cc: Fix reference in comment. Remove unused variable.
1404 * testsuite/21_strings/basic_string/numeric_conversions/char/
1405 to_string_int.cc: New test.
1406
1407 2019-06-09 Edward Smith-Rowland <3dw4rd@verizon.net>
1408
1409 Fix ConstexprIterator requirements tests - No constexpr algorithms!
1410 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
1411 Replace copy with hand-rolled loop.
1412 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
1413 Ditto.
1414
1415 2019-06-08 Edward Smith-Rowland <3dw4rd@verizon.net>
1416
1417 Test for C++20 p0858 - ConstexprIterator requirements.
1418 * testsuite/21_strings/basic_string_view/requirements/constexpr_iter.cc:
1419 New test.
1420 * testsuite/23_containers/array/requirements/constexpr_iter.cc:
1421 New test.
1422
1423 2019-06-07 Thomas Rodgers <trodgers@redhat.com>
1424
1425 Rename PSTL macro's consistent with libstdc++ (and llvm upstream
1426 project) standards.
1427 * include/bits/c++config: Rename all macros of the form __PSTL* to
1428 _PSTL*.
1429 * include/std/algorithm: Likewise.
1430 * include/std/execution: Likewise.
1431 * include/std/numeric: Likewise.
1432 * include/std/memory: Likewise.
1433 * include/pstl/glue_memory_impl.h: Likewise.
1434 * include/pstl/numeric_impl.h: Likewise.
1435 * include/pstl/glue_memory_defs.h: Likewise.
1436 * include/pstl/execution_defs.h: Likewise.
1437 * include/pstl/utils.h: Likewise.
1438 * include/pstl/algorithm_fwd.h: Likewise.
1439 * include/pstl/unseq_backend_simd.h: Likewise.
1440 * include/pstl/glue_execution_defs.h: Likewise.
1441 * include/pstl/algorithm_impl.h: Likewise.
1442 * include/pstl/parallel_impl.h: Likewise.
1443 * include/pstl/memory_impl.h: Likewise.
1444 * include/pstl/glue_numeric_defs.h: Likewise.
1445 * include/pstl/parallel_backend_utils.h: Likewise.
1446 * include/pstl/glue_algorithm_defs.h: Likewise.
1447 * include/pstl/parallel_backend.h: Likewise.
1448 * include/pstl/glue_numeric_impl.h: Likewise.
1449 * include/pstl/parallel_backend_tbb.h: Likewise.
1450 * include/pstl/numeric_fwd.h: Likewise.
1451 * include/pstl/glue_algorithm_impl.h: Likewise.
1452 * include/pstl/execution_impl.h: Likewise.
1453 * include/pstl/pstl_config.h: Likewise.
1454 * testsuite/util/pstl/pstl_test_config.h: Likewise.
1455 * testsuite/util/pstl/test_utils.h: Likewise.
1456 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc:
1457 Likewise.
1458 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc:
1459 Likewise.
1460 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc:
1461 Likewise.
1462 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: Likewise.
1463 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: Likewise.
1464 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: Likewise.
1465 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: Likewise.
1466 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc:
1467 Likewise.
1468 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: Likewise.
1469 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: Likewise.
1470 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: Likewise.
1471 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: Likewise.
1472 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc:
1473 Likewise.
1474 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: Likewise.
1475 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: Likewise.
1476 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: Likewise.
1477 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: Likewise.
1478 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc:
1479 Likewise.
1480 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: Likewise.
1481 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: Likewise.
1482 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc:
1483 Likewise.
1484 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc:
1485 Likewise.
1486 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: Likewise.
1487 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: Likewise.
1488 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc:
1489 Likewise.
1490 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc:
1491 Likewise.
1492 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc:
1493 Likewise.
1494 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc:
1495 Likewise.
1496 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc:
1497 Likewise.
1498 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc:
1499 Likewise.
1500 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc:
1501 Likewise.
1502 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc:
1503 Likewise.
1504 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc:
1505 Likewise.
1506 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc:
1507 Likewise.
1508 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc:
1509 Likewise.
1510 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: Likewise.
1511
1512 Rename header guards to be consistent with upstream project's
1513 conventions.
1514 * include/pstl/glue_memory_impl.h: Rename all macros of the form
1515 _PSTL_(.*)_H to _PSTL_\U\1_H.
1516 * include/pstl/numeric_impl.h: Likewise.
1517 * include/pstl/glue_memory_defs.h: Likewise.
1518 * include/pstl/execution_defs.h: Likewise.
1519 * include/pstl/utils.h: Likewise.
1520 * include/pstl/algorithm_fwd.h: Likewise.
1521 * include/pstl/unseq_backend_simd.h: Likewise.
1522 * include/pstl/glue_execution_defs.h: Likewise.
1523 * include/pstl/algorithm_impl.h: Likewise.
1524 * include/pstl/parallel_impl.h: Likewise.
1525 * include/pstl/memory_impl.h: Likewise.
1526 * include/pstl/glue_numeric_defs.h: Likewise.
1527 * include/pstl/parallel_backend_utils.h: Likewise.
1528 * include/pstl/glue_algorithm_defs.h: Likewise.
1529 * include/pstl/parallel_backend.h: Likewise.
1530 * include/pstl/glue_numeric_impl.h: Likewise.
1531 * include/pstl/parallel_backend_tbb.h: Likewise.
1532 * include/pstl/numeric_fwd.h: Likewise.
1533 * include/pstl/glue_algorithm_impl.h: Likewise.
1534 * include/pstl/execution_impl.h: Likewise.
1535 * include/pstl/pstl_config.h: Likewise.
1536 * testsuite/util/pstl/pstl_test_config.h: Likewise.
1537
1538 Synchronize libstdc++ parallel algorithms with upstream
1539 project.
1540 * include/pstl/algorithm_fwd.h: Synchronize with
1541 upstream PSTL project.
1542 * include/pstl/algorithm_impl.h: Likewise.
1543 * include/pstl/execution_defs.h: Likewise.
1544 * include/pstl/execution_impl.h: Likewise.
1545 * include/pstl/glue_algorithm_impl.h: Likewise.
1546 * include/pstl/glue_execution_defs.h: Likewise.
1547 * include/pstl/numeric_fwd.h: Likewise.
1548 * include/pstl/numeric_impl.h: Likewise.
1549 * include/pstl/parallel_backend.h: Likewise.
1550 * include/pstl/pstl_config.h: Likewise.
1551 * include/pstl/unseq_backend_simd.h: Likewise.
1552 * include/pstl/parallel_backend_serial.h: New file.
1553 * include/Makefile.am (pstl_headers): Add
1554 parallel_backend_serial.h.
1555 * include/Makefile.in: Regenerate.
1556
1557 Clean up non-conforming names
1558 * include/pstl/algorithm_impl.h (__parallel_set_union_op):
1559 Uglfiy copy_range1 and copy_range2
1560 (__pattern_walk2_n): Rename local n to __n
1561 * include/pstl/parallel_backend_tbb.h (struct __binary_no_op):
1562 Rename parameter _T to _Tp.
1563
1564 Integrate non-TBB serial backend support
1565 * include/bits/c++config: Adjust TBB detection logic to select serial
1566 PSTL backend if no TBB present.
1567 * testsuite/utils/pstl/test_utils.h: Remove check for
1568 _PSTL_USE_PAR_POLICIES
1569
1570 2019-06-07 Jonathan Wakely <jwakely@redhat.com>
1571
1572 * testsuite/24_iterators/container_access.cc: Move dg-options before
1573 dg-do directive so the target check uses the -std option.
1574
1575 PR libstdc++/90770
1576 * configure: Regenerate.
1577 * src/Makefile.am (stamp-debug): Also test for missing makefile.
1578 * src/Makefile.in: Regenerate.
1579
1580 2019-06-06 Jonathan Wakely <jwakely@redhat.com>
1581
1582 * include/std/array: Do not include <stdexcept>.
1583 * include/std/optional: Include <exception> and
1584 <bits/exception_defines.h> instead of <stdexcept>.
1585 * testsuite/20_util/function_objects/searchers.cc: Include <cctype>
1586 for std::isalnum.
1587 * testsuite/20_util/tuple/cons/deduction.cc: Include <memory> for
1588 std::allocator.
1589 * testsuite/23_containers/map/erasure.cc: Include <string>.
1590 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
1591
1592 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Add
1593 dg-prune-output for different C++98 diagnostic.
1594 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1595 Likewise.
1596 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1597 Likewise.
1598 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1599 Likewise.
1600 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1601 Likewise.
1602 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1603 Likewise.
1604 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1605 Likewise.
1606 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1607 Likewise.
1608 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1609 Likewise.
1610 * testsuite/23_containers/vector/requirements/dr438/
1611 constructor_1_neg.cc: Likewise.
1612 * testsuite/23_containers/vector/requirements/dr438/
1613 constructor_2_neg.cc: Likewise.
1614 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1615 Likewise.
1616 * testsuite/libstdc++-prettyprinters/compat.cc: Do not run for C++98.
1617
1618 * testsuite/23_containers/unordered_map/requirements/debug_container.cc:
1619 Do not test allocator rebinding extension for C++2a.
1620 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
1621 dg-do directive for C++17 and C++2a.
1622
1623 * testsuite/23_containers/deque/requirements/explicit_instantiation/
1624 1_c++0x.cc: Remove redundant test.
1625 * testsuite/23_containers/deque/requirements/explicit_instantiation/
1626 2.cc: Use target selector instead of preprocessor condition.
1627 * testsuite/23_containers/deque/requirements/explicit_instantiation/
1628 3.cc: Do not run test for C++2a.
1629 * testsuite/23_containers/forward_list/requirements/
1630 explicit_instantiation/3.cc: Likewise.
1631 * testsuite/23_containers/forward_list/requirements/
1632 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1633 for C++2a.
1634 * testsuite/23_containers/list/requirements/explicit_instantiation/
1635 1_c++0x.cc: Remove redundant test.
1636 * testsuite/23_containers/list/requirements/explicit_instantiation/
1637 2.cc: Use target selector instead of preprocessor condition.
1638 * testsuite/23_containers/list/requirements/explicit_instantiation/
1639 3.cc: Do not run test for C++2a.
1640 * testsuite/23_containers/list/requirements/explicit_instantiation/
1641 5.cc: Do not test allocator rebinding extension for C++2a.
1642 * testsuite/23_containers/map/requirements/explicit_instantiation/
1643 1_c++0x.cc: Remove redundant test.
1644 * testsuite/23_containers/map/requirements/explicit_instantiation/
1645 2.cc: Adjust comment.
1646 * testsuite/23_containers/map/requirements/explicit_instantiation/
1647 3.cc: Do not run test for C++2a.
1648 * testsuite/23_containers/map/requirements/explicit_instantiation/
1649 5.cc: Do not test allocator rebinding extension for C++2a.
1650 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
1651 1_c++0x.cc: Remove redundant test.
1652 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
1653 3.cc: Do not run test for C++2a.
1654 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
1655 5.cc: Do not test allocator rebinding extension for C++2a.
1656 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
1657 3.cc: Do not run test for C++2a.
1658 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
1659 5.cc: Do not test allocator rebinding extension for C++2a.
1660 * testsuite/23_containers/set/requirements/explicit_instantiation/3.cc:
1661 Do not run test for C++2a.
1662 * testsuite/23_containers/set/requirements/explicit_instantiation/
1663 1_c++0x.cc: Remove redundant test.
1664 * testsuite/23_containers/set/requirements/explicit_instantiation/5.cc:
1665 Do not test allocator rebinding extension for C++2a.
1666 * testsuite/23_containers/unordered_map/requirements/
1667 explicit_instantiation/3.cc: Likewise.
1668 * testsuite/23_containers/unordered_map/requirements/
1669 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1670 for C++2a.
1671 * testsuite/23_containers/unordered_multimap/requirements/
1672 explicit_instantiation/3.cc: Do not run test for C++2a.
1673 * testsuite/23_containers/unordered_multimap/requirements/
1674 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1675 for C++2a.
1676 * testsuite/23_containers/unordered_multiset/requirements/
1677 explicit_instantiation/3.cc: Do not run test for C++2a.
1678 * testsuite/23_containers/unordered_multiset/requirements/
1679 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1680 for C++2a.
1681 * testsuite/23_containers/unordered_set/requirements/
1682 explicit_instantiation/3.cc: Do not run test for C++2a.
1683 * testsuite/23_containers/unordered_set/requirements/
1684 explicit_instantiation/5.cc: Do not test allocator rebinding extension
1685 for C++2a.
1686 * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
1687 2.cc: Remove redundant test.
1688 * testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
1689 3.cc: Do not run test for C++2a.
1690 * testsuite/23_containers/vector/requirements/explicit_instantiation/
1691 3.cc: Likewise.
1692
1693 * include/std/type_traits (is_empty, is_polymorphic, is_final)
1694 (is_abstract, is_aggregate): Remove static_assert.
1695 * testsuite/20_util/is_abstract/incomplete_neg.cc: Check for error
1696 from builtin only.
1697 * testsuite/20_util/is_aggregate/incomplete_neg.cc: Likewise. Add
1698 missing -std=gnu++17 option.
1699 * testsuite/20_util/is_empty/incomplete_neg.cc: New test.
1700 * testsuite/20_util/is_final/incomplete_neg.cc: New test.
1701 * testsuite/20_util/is_polymorphic/incomplete_neg.cc: Check for error
1702 from builtin only.
1703
1704 * testsuite/18_support/set_terminate.cc: Do not run for C++98 mode.
1705 * testsuite/18_support/set_unexpected.cc: Likewise.
1706 * testsuite/20_util/is_nothrow_invocable/value.cc: Test converting to
1707 void.
1708 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix constexpr
1709 function to be valid in C++11.
1710 * testsuite/26_numerics/complex/proj.cc: Do not run for C++98 mode.
1711 * testsuite/experimental/names.cc: Do not run for C++98 mode. Do not
1712 include Library Fundamentals or Networking headers in C++11 mode.
1713 * testsuite/ext/char8_t/atomic-1.cc: Do not run for C++98 mode.
1714
1715 * include/std/tuple (_TC): Replace with _TupleConstraints.
1716 (_TupleConstraints): New helper for SFINAE constraints, with more
1717 expressive member functions to reduce duplication when used.
1718 (tuple::_TC2, tuple::_TMC, tuple::_TNTC): Remove.
1719 (tuple::_TCC): Replace dummy type parameter with bool non-type
1720 parameter that can be used to check the pack size.
1721 (tuple::_ImplicitDefaultCtor, tuple::_ExplicitDefaultCtor)
1722 (tuple::_ImplicitCtor, tuple::_ExplicitCtor): New alias templates for
1723 checking constraints in constructors.
1724 (tuple::__valid_args, tuple::_UseOtherCtor, tuple::__use_other_ctor):
1725 New SFINAE helpers.
1726 (tuple::tuple): Use new helpers to reduce repitition in constraints.
1727 (tuple::tuple(allocator_arg_t, const Alloc&)): Constrain.
1728 (tuple<T1, T2>::_TCC, tuple<T1, T2>::_ImplicitDefaultCtor)
1729 (tuple<T1, T2>::_ExplicitDefaultCtor, tuple<T1, T2>::_ImplicitCtor)
1730 (tuple<T1, T2>::_ExplicitCtor): New alias templates for checking
1731 constraints in constructors.
1732 (tuple::__is_alloc_arg()): New SFINAE helpers.
1733 (tuple<T1, T2>::tuple): Use new helpers to reduce repitition in
1734 constraints.
1735 (tuple<T1, T2>::tuple(allocator_arg_t, const Alloc&)): Constrain.
1736 * testsuite/20_util/tuple/cons/90700.cc: New test.
1737 * testsuite/20_util/tuple/cons/allocators.cc: Add default constructor
1738 to meet new constraint on allocator-extended default constructor.
1739
1740 2019-06-03 Jonathan Wakely <jwakely@redhat.com>
1741
1742 * include/bits/stl_map.h (map): Disable static assert for C++98 mode.
1743 * include/bits/stl_multimap.h (multimap): Likewise.
1744
1745 2019-06-03 François Dumont <fdumont@gcc.gnu.org>
1746
1747 Rename variables and cleanup comments.
1748 * include/bits/hashtable_policy.h
1749 * include/bits/hashtable.h
1750
1751 2019-06-03 Jonathan Wakely <jwakely@redhat.com>
1752
1753 * doc/xml/manual/status_cxx2020.xml: Add missing row for P0920R2.
1754 Fix bgcolor for P0340R3.
1755 * doc/html/*: Regenerate.
1756
1757 PR libstdc++/90686
1758 * doc/xml/manual/status_cxx2014.xml: Document what's missing from
1759 <experimental/memory_resource>.
1760 * doc/xml/manual/status_cxx2020.xml: Document status of P1285R0,
1761 P0339R6, P0340R3, P1164R1 and P1357R1.
1762 * doc/html/*: Regenerate.
1763
1764 * doc/xml/manual/status_cxx2020.xml: Document P1463R1 status.
1765 * include/bits/forward_list.h [__cplusplus > 201703]: Enable
1766 allocator::value_type assertion for C++2a.
1767 * include/bits/hashtable.h: Likewise.
1768 * include/bits/stl_deque.h: Likewise.
1769 * include/bits/stl_list.h: Likewise.
1770 * include/bits/stl_map.h: Likewise.
1771 * include/bits/stl_multimap.h: Likewise.
1772 * include/bits/stl_multiset.h: Likewise.
1773 * include/bits/stl_set.h: Likewise.
1774 * include/bits/stl_vector.h: Likewise.
1775 * testsuite/23_containers/deque/48101-3_neg.cc: New test.
1776 * testsuite/23_containers/forward_list/48101-3_neg.cc: New test.
1777 * testsuite/23_containers/list/48101-3_neg.cc: New test.
1778 * testsuite/23_containers/map/48101-3_neg.cc: New test.
1779 * testsuite/23_containers/multimap/48101-3_neg.cc: New test.
1780 * testsuite/23_containers/multiset/48101-3_neg.cc: New test.
1781 * testsuite/23_containers/set/48101-3_neg.cc: New test.
1782 * testsuite/23_containers/unordered_map/48101-3_neg.cc: New test.
1783 * testsuite/23_containers/unordered_multimap/48101-3_neg.cc: New test.
1784 * testsuite/23_containers/unordered_multiset/48101-3_neg.cc: New test.
1785 * testsuite/23_containers/unordered_set/48101-3_neg.cc: New test.
1786 * testsuite/23_containers/vector/48101-3_neg.cc: New test.
1787
1788 2019-05-31 Gerald Pfeifer <gerald@pfeifer.com>
1789
1790 * doc/xml/manual/allocator.xml: Move hoard.org back to http.
1791
1792 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
1793
1794 * include/std/tuple (tuple<>): Add noexcept to allocator-extended
1795 constructors.
1796 (tuple<T1, T2>::__nothrow_default_constructible()): New helper
1797 function.
1798 (tuple<T1, T2>::tuple(), explicit tuple<T1, T2>::tuple()): Use helper.
1799
1800 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
1801
1802 * src/c++98/bitmap_allocator.cc: Add using-declaration for size_t.
1803
1804 PR libstdc++/90682
1805 * libsupc++/eh_term_handler.cc: Include eh_term_handler.h to get
1806 definition of _GLIBCXX_DEFAULT_TERM_HANDLER.
1807 * libsupc++/eh_term_handler.h: New header defining
1808 _GLIBCXX_DEFAULT_TERM_HANDLER.
1809 * libsupc++/eh_terminate.cc: Include eh_term_handler.h.
1810 (set_terminate): Restore default handler when argument is null.
1811 (set_unexpected): Likewise.
1812 * testsuite/18_support/set_terminate.cc: New test.
1813 * testsuite/18_support/set_unexpected.cc: New test.
1814
1815 * include/backward/hashtable.h (size_t, ptrdiff_t)
1816 (forward_iterator_tag, input_iterator_tag, _Construct, _Destroy)
1817 (distance, vector, pair, __iterator_category): Remove
1818 using-declarations that add these names to namespace __gnu_cxx.
1819 * include/ext/bitmap_allocator.h (size_t, ptrdiff_t): Likewise.
1820 * include/ext/debug_allocator.h (size_t): Likewise.
1821 * include/ext/functional (size_t, unary_function, binary_function)
1822 (mem_fun1_t, const_mem_fun1_t, mem_fun1_ref_t, const_mem_fun1_ref_t):
1823 Likewise.
1824 * include/ext/malloc_allocator.h (size_t, ptrdiff_t): Likewise.
1825 * include/ext/memory (ptrdiff_t, pair, __iterator_category): Likewise.
1826 * include/ext/mt_allocator.h (size_t, ptrdiff_t): Likewise.
1827 * include/ext/new_allocator.h (size_t, ptrdiff_t): Likewise.
1828 * include/ext/numeric (iota): Fix outdated comment.
1829 * include/ext/pool_allocator.h (size_t, ptrdiff_t): Likewise.
1830 * include/ext/rb_tree (_Rb_tree, allocator): Likewise.
1831 * include/ext/rope (size_t, ptrdiff_t, allocator, _Destroy): Likewise.
1832 * include/ext/ropeimpl.h (size_t, printf, basic_ostream)
1833 (__throw_length_error, _Destroy, std::__uninitialized_fill_n_a):
1834 Likewise.
1835 * include/ext/slist (size_t, ptrdiff_t, _Construct, _Destroy)
1836 (allocator, __true_type, __false_type): Likewise.
1837
1838 2019-05-31 Antony Polukhin <antoshkka@gmail.com>
1839
1840 PR libstdc++/71579
1841 * include/std/type_traits __type_identity, __is_complete_or_unbounded):
1842 New helpers for checking preconditions in traits.
1843 (is_trivial, is_trivially_copyable, is_standard_layout, is_pod)
1844 (is_literal_type, is_empty, is_polymorphic, is_final, is_abstract)
1845 (is_destructible, is_nothrow_destructible, is_constructible)
1846 (is_default_constructible, is_copy_constructible)
1847 (is_move_constructible, is_nothrow_default_constructible)
1848 (is_nothrow_constructible, is_nothrow_copy_constructible)
1849 (is_nothrow_move_constructible, is_copy_assignable, is_move_assignable)
1850 (is_nothrow_assignable, is_nothrow_copy_assignable)
1851 (is_nothrow_move_assignable, is_trivially_constructible)
1852 (is_trivially_copy_constructible, is_trivially_move_constructible)
1853 is_trivially_assignable, is_trivially_copy_assignable)
1854 (is_trivially_move_assignable, is_trivially_destructible)
1855 (alignment_of, is_swappable, is_nothrow_swappable, is_invocable)
1856 (is_invocable_r, is_nothrow_invocable)
1857 (has_unique_object_representations, is_aggregate): Add static_asserts
1858 to make sure that type traits are not misused with incomplete types.
1859 (__is_constructible_impl, __is_nothrow_default_constructible_impl)
1860 (__is_nothrow_constructible_impl, __is_nothrow_assignable_impl): New
1861 base characteristics without assertions that can be reused in other
1862 traits.
1863 * testsuite/20_util/is_complete_or_unbounded/memoization.cc: New test.
1864 * testsuite/20_util/is_complete_or_unbounded/memoization_neg.cc: New
1865 test.
1866 * testsuite/20_util/is_complete_or_unbounded/value.cc: New test.
1867 * testsuite/20_util/is_abstract/incomplete_neg.cc: New test.
1868 * testsuite/20_util/is_aggregate/incomplete_neg.cc: New test.
1869 * testsuite/20_util/is_class/value.cc: Check incomplete type.
1870 * testsuite/20_util/is_function/value.cc: Likewise.
1871 * testsuite/20_util/is_move_constructible/incomplete_neg.cc: New test.
1872 * testsuite/20_util/is_nothrow_move_assignable/incomplete_neg.cc: New
1873 test.
1874 * testsuite/20_util/is_polymorphic/incomplete_neg.cc: New test.
1875 * testsuite/20_util/is_reference/value.cc: Check incomplete types.
1876 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
1877 * testsuite/20_util/is_union/value.cc: Likewise.
1878 * testsuite/20_util/is_void/value.cc: Likewise.
1879 * testsuite/util/testsuite_tr1.h: Add incomplete union type.
1880
1881 2019-05-31 Jonathan Wakely <jwakely@redhat.com>
1882
1883 * include/bits/random.h (random_device::_M_init(const char*, size_t)):
1884 Add new private member function.
1885 * src/c++11/cow-string-inst.cc (random_device::_M_init(const string&))
1886 (random_device::_M_init_pretr1(const string&)): Call new private
1887 member with string data.
1888 * src/c++11/random.cc (random_device::_M_init(const char*, size_t)):
1889 Define.
1890 * testsuite/26_numerics/random/random_device/cons/default-cow.cc: New
1891 test using COW strings.
1892 * testsuite/26_numerics/random/random_device/cons/default.cc: Generate
1893 a value from the device.
1894 * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise.
1895 Fix typo in token string.
1896
1897 2019-05-30 Nina Dinka Ranns <dinka.ranns@gmail.com>
1898
1899 LWG2788 basic_string spurious use of a default constructible allocator
1900 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1901 (basic_string::_M_replace_dispatch): Construct temporary string with
1902 the current allocator.
1903 * testsuite/21_strings/basic_string/allocator/char/lwg2788.cc: New.
1904 * testsuite/21_strings/basic_string/allocator/wchar_t/lwg2788.cc: New.
1905
1906 2019-05-30 Jonathan Wakely <jwakely@redhat.com>
1907
1908 * doc/xml/manual/diagnostics.xml: Update list of headers that define
1909 exception classes.
1910 * doc/xml/manual/support.xml: Rewrite advice around NULL. Rewrite
1911 section about new/delete overloads. Improve section on verbose
1912 terminate handler.
1913 * doc/html/*: Regenerate.
1914
1915 * doc/xml/manual/status_cxx2020.xml: Add feature-test macro for
1916 P0811R3. Change status of P1353R0.
1917 * doc/html/*: Regenerate.
1918
1919 * doc/xml/manual/status_cxx2011.xml: Use <variablelist> for
1920 documentation of implementation-defined types for [thread.req.native].
1921 * doc/xml/manual/status_cxx2017.xml: Update documentation of
1922 implementation-defined strings for [variant.bad.access]. Fix typo in
1923 documentation of implementation-defined support for [fs.conform.9945].
1924 * doc/html/*: Regenerate.
1925
1926 2019-05-29 Jonathan Wakely <jwakely@redhat.com>
1927
1928 PR libstdc++/85494
1929 * testsuite/26_numerics/random/random_device/cons/token.cc: Fix test
1930 that fails on mingw-w64.
1931
1932 PR libstdc++/88881
1933 * src/c++17/fs_ops.cc [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
1934 (status(const path&, error_code&)): Use parent_path() to remove
1935 trailing slash.
1936 (symlink_status(const path&, error_code&)): Duplicate workaround for
1937 bug in _wstat for paths with trailing slash.
1938 * testsuite/27_io/filesystem/operations/remove_all.cc: Check path
1939 with trailing slash.
1940 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
1941 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
1942
1943 * src/c++17/fs_path.cc (path::parent_path()): Create whole path at
1944 once instead of building it iteratively.
1945
1946 * testsuite/util/testsuite_api.h: Remove names of unused parameters.
1947
1948 PR libstdc++/85494 use rdseed and rand_s in std::random_device
1949 * acinclude.m4 (GLIBCXX_CHECK_X86_RDSEED): Define macro to check if
1950 the assembler supports rdseed.
1951 * config.h.in: Regenerate.
1952 * configure: Regenerate.
1953 * configure.ac: Use GLIBCXX_CHECK_X86_RDSEED.
1954 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_CRT_RAND_S): Define.
1955 * doc/html/*: Regenerate.
1956 * doc/xml/manual/status_cxx2011.xml: Document new tokens.
1957 * include/bits/random.h (random_device::random_device()): Always call
1958 _M_init rather than _M_init_pretr1.
1959 (random_device::random_device(const string&)): Likewise.
1960 (random_device::operator()()): Always call _M_getval().
1961 (random_device::_M_file): Replace first member of union with an
1962 anonymous struct, with _M_file as its first member.
1963 * src/c++11/random.cc [_GLIBCXX_X86_RDRAND] (USE_RDRAND): Define.
1964 [_GLIBCXX_X86_RDSEED] (USE_RDSEED): Define.
1965 (USE_MT19937): Define if none of the above are defined.
1966 (USE_POSIX_FILE_IO): Define.
1967 (_M_strtoul): Remove.
1968 [USE_RDSEED] (__x86_rdseed): Define new function.
1969 [_GLIBCXX_USE_CRT_RAND_S] (__winxp_rand_s): Define new function.
1970 (random_device::_M_init(const string&)): Initialize new union members.
1971 Add support for "rdseed" and "rand_s" tokens. Decide what the
1972 "default" token does according to which USE_* macros are defined.
1973 [USE_POSIX_FILE_IO]: Store a file descriptor.
1974 [USE_MT19937]: Forward to _M_init_pretr1 instead.
1975 (random_device::_M_init_pretr1(const string&)) [USE_MT19937]: Inline
1976 code from _M_strtoul.
1977 [!USE_MT19937]: Call _M_init, transforming the old default token or
1978 numeric tokens to "default".
1979 (random_device::_M_fini()) [USE_POSIX_FILE_IO]: Use close not fclose.
1980 (random_device::_M_getval()): Use new union members to obtain a
1981 random number from the stored function pointer or file descriptor.
1982 [USE_MT19937]: Obtain a value from the mt19937 engine.
1983 (random_device::_M_getval_pretr1()): Call _M_getval().
1984 (random_device::_M_getentropy()) [USE_POSIX_FILE_IO]: Use _M_fd
1985 instead of fileno.
1986 [!USE_MT19937] (mersenne_twister): Do not instantiate when not needed.
1987 * testsuite/26_numerics/random/random_device/85494.cc: New test.
1988
1989 2019-05-28 Jonathan Wakely <jwakely@redhat.com>
1990
1991 PR libstdc++/90634
1992 * include/experimental/bits/fs_path.h (path::path(path&&)): Only call
1993 _M_split_cmpts() for a path with multiple components.
1994 (path::_S_is_dir_sep()): Add missing 'static' keyword to function.
1995 * src/filesystem/path.cc (path::_M_split_cmpts()): Count number of
1996 components and reserve space in vector. Return early when there is
1997 only one component.
1998 * testsuite/27_io/filesystem/path/construct/90634.cc: New test.
1999 * testsuite/experimental/filesystem/path/construct/90634.cc: New test.
2000
2001 * testsuite/util/testsuite_fs.h (compare_paths): Use three-argument
2002 form of std::equals for C++11 compatibility.
2003
2004 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
2005
2006 * doc/xml/manual/appendix_contributing.xml: Update pointer to
2007 C++ standard at ansi.org.
2008
2009 2019-05-24 Jonathan Wakely <jwakely@redhat.com>
2010
2011 * include/std/numeric (midpoint(T*, T*)): Fix incorrect result.
2012 * testsuite/26_numerics/midpoint/pointer.cc: Change "compile" test
2013 to "run".
2014
2015 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Fix test.
2016 * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused function.
2017
2018 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
2019
2020 * testsuite/20_util/function_objects/invoke/1.cc: Move C++17-specific
2021 tests to ...
2022 * testsuite/20_util/function_objects/invoke/3.cc: New test.
2023 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change
2024 "compile" test to "run".
2025
2026 * doc/xml/manual/intro.xml: Document LWG DR 2996 change.
2027 * doc/html/*: Regenerate.
2028 * include/bits/shared_ptr.h (shared_ptr(shared_ptr&&, T*)): Add
2029 rvalue aliasing constructor.
2030 (static_pointer_cast, const_pointer, dynamic_pointer_cast)
2031 (reinterpret_pointer_cast): Add overloads taking rvalues.
2032 * include/bits/shared_ptr_base.h (__shared_ptr(__shared_ptr&&, T*)):
2033 Add rvalue aliasing constructor.
2034 * testsuite/20_util/shared_ptr/casts/1.cc: Change "compile" test to
2035 "run" and check return values as well as types.
2036 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
2037 * testsuite/20_util/shared_ptr/casts/rval.cc: New test.
2038 * testsuite/20_util/shared_ptr/cons/alias-rval.cc: New test.
2039 * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused return
2040 values.
2041
2042 * doc/xml/manual/evolution.xml: Document LWG DR 2921 change.
2043 * doc/xml/manual/intro.xml: Likewise.
2044 * include/std/future (__create_task_state): Add default arguments
2045 to make providing an allocator optional.
2046 (packaged_task::packaged_task(F&&)): Call __create_task_state directly
2047 instead of delegating to another constructor.
2048 (packaged_task::packaged_task(allocator_arg_t, const A&, ...)): Do not
2049 define allocator-extended constructors for C++17 and later.
2050 * testsuite/30_threads/packaged_task/cons/alloc.cc: Only run test for
2051 C++11 and C++14.
2052 * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise.
2053 * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise.
2054 * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise.
2055
2056 2019-05-23 Hans-Peter Nilsson <hp@axis.com>
2057
2058 * testsuite/26_numerics/random/poisson_distribution/operators/values.cc:
2059 Don't run the libstdc++/83237 part on simulator targets.
2060
2061 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
2062
2063 * doc/xml/manual/status_cxx2017.xml: Add feature test macro for
2064 P0040R3.
2065 * doc/html/*: Regenerate.
2066
2067 * include/experimental/any (__any_caster): Use RTTI if comparing
2068 addresses fails, to support non-unique addresses in shared libraries.
2069 * include/std/any (__any_caster): Likewise.
2070
2071 PR libstdc++/90220
2072 * include/experimental/any (__any_caster): Constrain to only be
2073 callable for object types. Use remove_cv_t instead of decay_t.
2074 If the type decays or isn't copy constructible, compare the manager
2075 function to a dummy specialization.
2076 (__any_caster): Add overload constrained for non-object types.
2077 (any::_Manager_internal<_Op>): Add dummy specialization.
2078 * testsuite/experimental/any/misc/any_cast.cc: Test function types
2079 and array types.
2080
2081 2019-05-22 Jonathan Wakely <jwakely@redhat.com>
2082
2083 PR libstdc++/90557
2084 * src/c++17/fs_path.cc (path::_List::operator=(const _List&)): Fix
2085 reversed arguments to uninitialized_copy_n.
2086 * testsuite/27_io/filesystem/path/assign/copy.cc: Check that source
2087 is unchanged by copy assignment.
2088 * testsuite/util/testsuite_fs.h (compare_paths): Use std::equal to
2089 compare path components.
2090
2091 PR libstdc++/77691
2092 * include/experimental/memory_resource: Add system header pragma and
2093 do not define anything unless compiled as C++14 or later.
2094 (__resource_adaptor_common::__guaranteed_alignment): Remove.
2095 (__resource_adaptor_imp::do_allocate): If the requested alignment
2096 is a fundamental alignment then either allocate directly from _M_alloc
2097 or call the new _M_allocate function.
2098 (__resource_adaptor_imp::do_deallocate): Likewise for deallocation.
2099 (__resource_adaptor_imp::_M_allocate): New function that uses a copy
2100 of the allocator rebound to a POD type with the specified alignment.
2101 (__resource_adaptor_imp::_M_deallocate): Likewise for deallocation.
2102 * testsuite/experimental/memory_resource/new_delete_resource.cc:
2103 Adjust expected allocation sizes.
2104 * testsuite/experimental/memory_resource/resource_adaptor.cc: Remove
2105 xfail for Solaris x86.
2106
2107 2019-05-21 Thomas Rodgers <trodgers@redhat.com>
2108
2109 LWG 3062 - Unnecessary decay_t in is_execution_policy_v
2110 * include/pstl/execution_defs.h (__enable_if_execution_policy):
2111 Use std::__remove_cvref_t when building with GCC.
2112
2113 2019-05-21 Jonathan Wakely <jwakely@redhat.com>
2114
2115 PR libstdc++/90252
2116 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2117 Use "additional_flags" to pass -ltbb to v3_target_compile command.
2118 Use check_v3_target_prop_cached to cache the result of the test.
2119
2120 * doc/xml/manual/shared_ptr.xml: Fix names of lock policy constants.
2121
2122 2019-05-20 Thomas Rodgers <trodgers@redhat.com>
2123
2124 PR libstdc++/90252
2125 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2126 Changed v3_target_compile check from preprocess to executable.
2127 Added "-ltbb" to v3_target_compile flags.
2128
2129 2019-05-20 Thomas Rodgers <trodgers@redhat.com>
2130
2131 * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend):
2132 Add check for Thread Building Blocks 2018 or later.
2133
2134 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
2135
2136 * testsuite/experimental/names.cc: Only include Networking TS headers
2137 on targets with the necessary Gthreads support.
2138
2139 2019-05-20 Marek Polacek <polacek@redhat.com>
2140
2141 CWG 2094 - volatile scalars are trivially copyable.
2142 PR c++/85679
2143 * testsuite/20_util/is_trivially_copyable/value.cc: Change the expected
2144 result for volatile int.
2145
2146 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
2147
2148 * testsuite/17_intro/names.cc: Do not check 'ptr' on Solaris.
2149 * testsuite/experimental/names.cc: Include <experimental/filesystem>
2150 conditionally.
2151
2152 PR c++/90532 Ensure __is_constructible(T[]) is false
2153 * include/std/type_traits (__do_is_default_constructible_impl)
2154 (__is_default_constructible_atom, __is_default_constructible_safe):
2155 Remove.
2156 (is_default_constructible): Use is_constructible.
2157 * testsuite/20_util/is_constructible/value.cc: Check int[] case.
2158 * testsuite/20_util/is_default_constructible/value.cc: Likewise.
2159 * testsuite/20_util/is_trivially_constructible/value.cc: Likewise.
2160 * testsuite/20_util/is_trivially_default_constructible/value.cc:
2161 Likewise.
2162
2163 2019-05-20 Pádraig Brady <pbrady@fb.com>
2164
2165 * libstdc++-v3/include/ext/new_allocator.h (deallocate): Pass the size
2166 to the deallocator with -fsized-deallocation.
2167
2168 2019-05-20 Jonathan Wakely <jwakely@redhat.com>
2169
2170 * testsuite/experimental/memory_resource/new_delete_resource.cc: Fix
2171 test by passing correct alignment to deallocate function.
2172
2173 2019-05-18 Jonathan Wakely <jwakely@redhat.com>
2174
2175 PR libstdc++/90520
2176 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
2177 Raise exception if unique_ptr tuple member has unknown structure.
2178 * python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__call__):
2179 Adjust worker to support new __uniq_ptr_data base class. Do not
2180 assume field called _M_head_impl is the first tuple element.
2181
2182 2019-05-17 François Dumont <fdumont@gcc.gnu.org>
2183
2184 * include/bits/stl_deque.h
2185 (_Deque_iterator<>::__ptr_to): Remove, use std::__ptr_rebind.
2186 (_Deque_base(_Deque_base&&, const allocator_type&)): New.
2187 (_Deque_base::_Deque_impl_data): New.
2188 (_Deque_base::_Deque_impl): Inherit latter.
2189 (_Deque_base::_Deque_impl::_M_swap_data): Move...
2190 (_Deque_base::_Deque_impl_data::_M_swap_data): ... here.
2191 (_Deque_base::_Deque_impl()): Add noexcept qualification.
2192 (_Deque_base::_Deque_impl(_Deque_impl&&, _Tp_alloc_type&&)): New.
2193 (_Deque_base::_Deque_impl::_M_get_Tp_allocator()): Remove static_cast.
2194 (deque<>::deque()): Default.
2195 (deque<>::deque(deque&&)): Default.
2196 (deque<>::deque(deque&&, const allocator_type&, false_type)): New.
2197 (deque<>::deque(deque&&, const allocator_type&, true_type)): New.
2198 (deque<>::deque(deque&&, const allocator_type&)): Delegate to latters.
2199 (deque<>::deque<_It>(_It, _It, const allocator_type&)): Use
2200 _M_range_initialize.
2201 (deque<>::assign<_It>(_It, _It)): Use _M_assign_aux.
2202 (deque<>::resize(size_type, const value_type&)): Share a single
2203 implementation.
2204 (deque<>::insert<_It>(const_iterator, _It, _It)): Use
2205 _M_range_insert_aux.
2206 [__cplusplus >= 201103L](_M_initialize_dispatch): Remove.
2207 [__cplusplus >= 201103L](_M_assign_dispatch): Remove.
2208 [__cplusplus >= 201103L](_M_insert_dispatch): Remove.
2209 * testsuite/23_containers/deque/allocator/default_init.cc: New.
2210
2211 2019-05-17 Jonathan Wakely <jwakely@redhat.com>
2212
2213 PR libstdc++/90246
2214 * include/std/variant (holds_alternative, get, get_if): Improve
2215 static assertion messages.
2216 (bad_variant_access::bad_variant_access()): Change default message.
2217 (__throw_bad_variant_access(bool)): New overload.
2218 (get): Use new overload.
2219 (visit, visit<R>): Improve exception message.
2220
2221 * testsuite/20_util/variant/compile.cc: Fix narrowing test for ILP32
2222 targets. Add more cases from P0608R3.
2223 * testsuite/20_util/variant/run.cc: Add more cases from P0608R3.
2224
2225 * include/bits/random.h (seed_seq::param): Fix non-reserved name.
2226 * include/experimental/type_traits (is_detected_exact)
2227 (is_detected_exact_v): Likewise.
2228 * include/pstl/execution_defs.h (is_execution_policy)
2229 (is_execution_policy_v, __enable_if_execution_policy): Likewise.
2230 * include/pstl/execution_impl.h (__policy_traits): Likewise.
2231 * testsuite/17_intro/names.cc: Check for more non-reserved names.
2232 * testsuite/experimental/names.cc: New test.
2233
2234 PR libstdc++/85965
2235 * include/bits/hashtable.h (_Hashtable::~_Hashtable()): Remove static
2236 assertions from the destructor.
2237 * include/bits/hashtable_policy.h (_Hash_code_base::_M_hash_code):
2238 Move static_assert for hash function to here.
2239 (_Hash_table_base::_M_equals): Move static_assert for equality
2240 predicate to here.
2241 * include/bits/stl_tree.h (_Rb_tree::_S_value(_Const_Link_type)):
2242 Remove.
2243 (_Rb_tree::_S_key(_Const_Link_type)): Move assertions here. Access
2244 the value directly instead of calling _S_value.
2245 (_Rb_tree::_S_value(_Const_Base_ptr)): Remove.
2246 (_Rb_tree::_S_key(_Const_Base_ptr)): Do downcast and forward to
2247 _S_key(_Const_Link_type).
2248 * testsuite/23_containers/set/85965.cc: Check construction,
2249 destruction, assignment and size() do not trigger the assertions.
2250 * testsuite/23_containers/unordered_set/85965.cc: Likewise.
2251 * testsuite/23_containers/map/48101_neg.cc: Call find and adjust
2252 expected errors.
2253 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
2254 * testsuite/23_containers/multiset/48101_neg.cc: Likewise.
2255 * testsuite/23_containers/set/48101_neg.cc: Likewise.
2256 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
2257 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
2258 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
2259 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
2260
2261 * include/bits/invoke.h [__cplusplus < 201703L] (__invoke_r<void>):
2262 Use _GLIBCXX14_CONSTEXPR because void functions cannot be constexpr
2263 in C++11.
2264
2265 * doc/xml/manual/status_cxx2020.xml: Update P0608R3, P0777R1, and
2266 P1165R1 entries.
2267 * doc/html/*: Regenerate.
2268 * include/std/tuple (make_from_tuple): Use remove_reference_t instead
2269 of decay_t (P0777R1).
2270
2271 2019-05-17 François Dumont <fdumont@gcc.gnu.org>
2272
2273 Move from state of allocators (LWG2593)
2274 * include/bits/stl_deque.h
2275 (_Deque_base(_Deque_base&&, false_type)): Remove.
2276 (_Deque_base(_Deque_base&&, true_type)): Remove.
2277 (_Deque_base(_Deque_base&&)): Adapt.
2278 (_Deque_base::_M_move_impl()): Remove.
2279 * testsuite/util/testsuite_allocator.h
2280 (propagating_allocator(propagating_allocator&&)): Preserve move from
2281 state.
2282 * testsuite/23_containers/deque/allocator/move_assign.cc (test02):
2283 Adapt.
2284 * testsuite/23_containers/forward_list/allocator/move_assign.cc (test02):
2285 Adapt.
2286 * testsuite/23_containers/list/allocator/move_assign.cc (test02): Adapt.
2287 * testsuite/23_containers/map/allocator/move_assign.cc (test02): Adapt.
2288 * testsuite/23_containers/multimap/allocator/move_assign.cc (test02):
2289 Adapt.
2290 * testsuite/23_containers/multiset/allocator/move_assign.cc (test02):
2291 Adapt.
2292 * testsuite/23_containers/set/allocator/move_assign.cc (test02): Adapt.
2293 * testsuite/23_containers/unordered_map/allocator/move_assign.cc
2294 (test02): Adapt.
2295 * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc
2296 (test02): Adapt.
2297 * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc
2298 (test02): Adapt.
2299 * testsuite/23_containers/unordered_set/allocator/move_assign.cc
2300 (test02): Adapt.
2301 * testsuite/23_containers/vector/allocator/move_assign.cc (test02):
2302 Adapt.
2303 * testsuite/23_containers/vector/bool/allocator/move_assign.cc (test02):
2304 Adapt.
2305 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc
2306 (test02): Adapt.
2307 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc
2308 (test02): Adapt.
2309
2310 2019-05-16 Jonathan Wakely <jwakely@redhat.com>
2311
2312 * src/c++17/fs_ops.cc (absolute(const path&, error_code&))
2313 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove bogus assertion.
2314
2315 * include/std/variant (__overload_set): Remove.
2316 (_Arr): New helper.
2317 (_Build_FUN): New class template to define a single FUN overload,
2318 with specializations to prevent unwanted conversions, as per P0608R3.
2319 (_Build_FUNs): New class template to build an overload set of FUN.
2320 (_FUN_type): New alias template to perform overload resolution.
2321 (__accepted_type): Use integer_constant base for failure case. Use
2322 _FUN_type for successful case.
2323 (variant::__accepted_index): Use _Tp instead of _Tp&&.
2324 (variant::variant(_Tp&&)): Likewise.
2325 (variant::operator=(_Tp&&)): Likewise.
2326
2327 * include/std/variant (_Variant_storage<false, _Types...>::_M_reset):
2328 Replace raw visitation with a runtime check for the valueless state
2329 and a non-raw visitor.
2330 (_Variant_storage<false, _Types...>::_M_reset_impl): Remove.
2331 (variant::index()): Remove branch.
2332 (variant::swap(variant&)): Use valueless_by_exception() instead of
2333 comparing the index to variant_npos, and add likelihood attribute.
2334
2335 * include/bits/hashtable_policy.h (_Equal_helper): Remove.
2336 (_Hashtable_base::_Equal_hash_code): Define new class template.
2337 (_Hashtable_base::_M_equals): Use _Equal_hash_code instead of
2338 _Equal_helper.
2339
2340 * include/bits/hashtable_policy.h (_Hashtable_ebo_helper::_S_get):
2341 Replace with _M_get non-static member function.
2342 (_Hashtable_ebo_helper::_S_cget): Replace with _M_cget non-static
2343 member function.
2344 (_Hash_code_base, _Local_iterator_base, _Hashtable_base):
2345 (_Hashtable_alloc): Adjust to use non-static members of EBO helper.
2346
2347 * include/bits/hashtable_policy.h (_Hash_code_base::_M_swap): Use
2348 _S_get accessors for members in EBO helpers.
2349 (_Hash_code_base::_M_extract(), _Hash_code_base::_M_ranged_hash())
2350 (_Hash_code_base::_M_h1(), _Hash_code_base::_M_h2()): Remove non-const
2351 overloads.
2352 (_Hashtable_base::_M_swap): Use _S_get accessors for members in EBO
2353 helpers.
2354 (_Hashtable_base::_M_eq()): Remove non-const overload.
2355
2356 2019-05-15 Jonathan Wakely <jwakely@redhat.com>
2357
2358 * include/std/variant (visit, visit<R>): Qualify calls to __do_visit.
2359
2360 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
2361
2362 * testsuite/util/testsuite_allocator.h (NullablePointer::operator bool):
2363 Fix return value.
2364
2365 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2366
2367 * config/os/solaris/solaris2.10: Move to ...
2368 * config/os/solaris: ... this.
2369 * configure.host (os_include_dir): Adapt.
2370 (abi_baseline_pair): Remove Solaris 10 handling.
2371 * config/abi/post/i386-solaris2.10: Remove.
2372 * config/abi/post/sparc-solaris2.10: Remove.
2373 * config/abi/post/i386-solaris2.11: Rename to ...
2374 * config/abi/post/i386-solaris: ... this.
2375 * config/abi/post/sparc-solaris2.11: Rename to ...
2376 * config/abi/post/sparc-solaris: ... this.
2377
2378 * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] [__sun]: Remove
2379 workaround.
2380
2381 * testsuite/ext/enc_filebuf/char/13598.cc: Remove *-*-solaris2.10
2382 xfail.
2383
2384 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
2385
2386 * include/std/variant (__visit_with_index): Remove typedef.
2387 (__deduce_visit_result): New tag type.
2388 (__raw_visit, __raw_idx_visit): New helper functions for "raw"
2389 visitation of possibly-valueless variants, forwarding to __do_visit
2390 with the relevant tag type.
2391 (_Variant_storage<false, _Types...>::_M_reset_impl): Use __raw_visit
2392 and make lambda return void.
2393 (__variant_construct): Likewise.
2394 (_Copy_assign_base::operator=, _Move_assign_base::operator=): Use
2395 __raw_idx_visit and make lambda return void.
2396 (_Multi_array::__untag_result): Add metafunction to check the function
2397 pointer type for a tag type that dictates the kind of visitation.
2398 (_Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...>):
2399 Use decltype(auto) instead of tagged function pointer type.
2400 (__gen_vtable_impl): Remove bool non-type parameter and unused
2401 _Variant_tuple parameter.
2402 (__gen_vtable_impl::__visit_invoke_impl): Remove.
2403 (__gen_vtable_impl::__do_visit_invoke): Remove.
2404 (__gen_vtable_impl::__do_visit_invoke_r): Remove.
2405 (__gen_vtable_impl::__visit_invoke): Use if-constexpr and __invoke_r
2406 for the visit<R> case, rather than dispatching to separate functions.
2407 (_VARIANT_RELATION_FUNCTION_TEMPLATE): Use __raw_idx_visit and make
2408 lambda return void.
2409 (variant::swap): Likewise.
2410 (__do_visit): Replace two non-type template parameters with a single
2411 type parameter, so that the caller must specify the visitor's return
2412 type (or one of the tag types).
2413 (visit): Deduce a return type from the visitor and use the
2414 __deduce_visit_result tag to enforce that all overloads return the
2415 same type.
2416 (visit<R>): Call __do_visit<R> with explicit result type.
2417 (__variant_hash_call_base_impl::operator()): Use __raw_visit and make
2418 lambda return void.
2419
2420 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com>
2421
2422 nonesuch is insufficiently useless (lwg2996)
2423 * include/std/type_traits (struct __nonesuch): Added private base
2424 class to make __nonesuch not an aggregate and removed deleted default
2425 constructor.
2426 * include/bits/stl_pair.h (struct __nonesuch_no_braces): Removed.
2427 (operator=(const pair&)): Use __nonesuch instead of
2428 __nonesuch_no_braces.
2429 (operator=(pair&&)): Likewise
2430 * include/std/tuple (operator=(const tuple&)): Use __nonesuch instead
2431 of __nonesuch_no_braces.
2432 (operator=(tuple&&)): Likewise
2433 * include/experimental/type_traits (struct nonesuch): Added private
2434 base class to make nonesuch not an aggregate and removed deleted
2435 default constructor.
2436 * testsuite/20_util/nonesuch/nonesuch.cc: New.
2437 * testsuite/experimental/type_traits/nonesuch.cc: New.
2438
2439 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
2440
2441 * include/bits/std_function.h (_Simple_type_wrapper): Remove.
2442 (_Function_handler): Remove partial specializations for void return
2443 types and pointers to member.
2444 (_Function_handler::_M_manager): Adapt to removal of
2445 _Simple_type_wrapper.
2446 (_Function_handler::_M_invoke): Use __invoke_r instead of __invoke.
2447 * include/std/functional (_Bind_result::__enable_if_void)
2448 (_Bind_result::__disable_if_void): Remove sfinae helpers.
2449 (_Bind_result::__call): Use __invoke_r and remove overloads for void
2450 return types.
2451 * include/std/future (__future_base::_Task_state::_M_run)
2452 (__future_base::_Task_state::_M_run_delayed): Use __invoke_r and
2453 change return type of lambda expressions.
2454
2455 * include/bits/invoke.h (__invoke_r): Define new function implementing
2456 the INVOKE<R> pseudo-function.
2457 * testsuite/20_util/function_objects/invoke/1.cc: Add more tests.
2458 * testsuite/20_util/function_objects/invoke/2.cc: New test.
2459
2460 * include/std/type_traits (__is_nt_convertible_helper): Define it
2461 unconditionally, not only for C++20.
2462 (__is_nothrow_convertible): Define internal trait for use in C++11.
2463 (__is_nt_invocable_impl: Fix by using __is_nothrow_convertible.
2464 (is_invocable_r_v, is_nothrow_invocable_r_v): Add missing parameter.
2465 * testsuite/20_util/is_nothrow_convertible/value_ext.cc: New test.
2466 * testsuite/20_util/is_nothrow_convertible/value.cc: Check with type
2467 that has nothrow explicit conversion but potentially-throwing implicit
2468 conversion.
2469 * testsuite/20_util/is_nothrow_invocable/value.cc: Likewise.
2470 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix helper
2471 function to only consider implicit conversions.
2472 * testsuite/20_util/tuple/cons/noexcept_specs.cc: Add comment.
2473
2474 * include/std/iterator: Include <iosfwd> instead of <istream> and
2475 <ostream>.
2476
2477 * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)):
2478 Remove unused, non-standard function.
2479
2480 * include/bits/regex.h (match_results::max_size()): Adjust return
2481 value to account for prefix/suffix/unmatched subs.
2482 (match_results::_M_resize(unsigned int)): Use _Base_type::assign to
2483 reset the contained sub matches.
2484 (match_results::_M_establish_failed_match(_Bi_iter)): Add new member
2485 function to set result state following a failed match.
2486 * include/bits/regex.tcc (__regex_algo_impl): Remove loop to set
2487 sub_match states after _M_resize. Use _M_establish_failed_match.
2488
2489 PR libstdc++/69724
2490 * include/std/thread (thread::_State_impl, thread::_S_make_state):
2491 Replace single _Callable parameter with variadic _Args pack, to
2492 forward them directly to the tuple of decayed copies.
2493 * testsuite/30_threads/thread/cons/69724.cc: New test.
2494
2495 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com>
2496
2497 Inconsistency wrt Allocators in basic_string assignment (LWG2579)
2498 * include/bits/basic_string.h: (operator=(const basic_string&):
2499 Move allocator decision to assign.
2500 (assign(const basic_string&)): Move allocator decision here.
2501 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
2502 Add tests.
2503 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
2504 Add tests.
2505
2506 2019-05-14 Jonathan Wakely <jwakely@redhat.com>
2507
2508 * testsuite/util/testsuite_allocator.h (memory_resource)
2509 (default_resource_mgr): Fix indentation.
2510
2511 * testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc:
2512 Use operator-> to access raw pointer member.
2513 * testsuite/23_containers/vector/59829.cc: Likewise.
2514 * testsuite/23_containers/vector/bool/80893.cc: Likewise.
2515 * testsuite/libstdc++-prettyprinters/cxx11.cc: Use NullablePointer.
2516 * testsuite/util/testsuite_allocator.h (NullablePointer): New utility
2517 for tests.
2518 (PointerBase, PointerBase_void): Derive from NullablePointer and use
2519 its constructors and equality operators. Change converting
2520 constructors to use operator-> to access private member of the other
2521 pointer type.
2522 (PointerBase_void::operator->()): Add, for access to private member.
2523 (operator-(PointerBase, PointerBase)): Change to hidden friend.
2524 (operator==(PointerBase, PointerBase)): Remove.
2525 (operator!=(PointerBase, PointerBase)): Remove.
2526
2527 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): Do
2528 not assume field called _M_head_impl is the first tuple element.
2529 * testsuite/libstdc++-prettyprinters/compat.cc: Make tuple
2530 implementation more accurate.
2531 * testsuite/libstdc++-prettyprinters/cxx11.cc: Check unique_ptr with
2532 empty pointer type and non-empty deleter.
2533
2534 LWG 2899 - Make is_move_constructible correct for unique_ptr
2535 * include/bits/unique_ptr.h (__uniq_ptr_impl): Add move constructor,
2536 move assignment operator.
2537 (__uniq_ptr_impl::release(), __uniq_ptr_impl::reset(pointer)): Add.
2538 (__uniq_ptr_data): New class template with conditionally deleted
2539 special members.
2540 (unique_ptr, unique_ptr<T[], D>): Change type of data member from
2541 __uniq_ptr_impl<T, D> to __uniq_ptr_data<T, D>. Define move
2542 constructor and move assignment operator as defaulted.
2543 (unique_ptr::release(), unique_ptr<T[], D>::release()): Forward to
2544 __uniq_ptr_impl::release().
2545 (unique_ptr::reset(pointer), unique_ptr<T[], D>::reset<U>(U)): Forward
2546 to __uniq_ptr_impl::reset(pointer).
2547 * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__):
2548 Check for new __uniq_ptr_data type.
2549 * testsuite/20_util/unique_ptr/dr2899.cc: New test.
2550
2551 2019-05-13 Jonathan Wakely <jwakely@redhat.com>
2552
2553 PR libstdc++/90454.cc path construction from void*
2554 * include/bits/fs_path.h (path::_Path): Use remove_pointer so that
2555 pointers to void are rejected as well as void.
2556 * include/experimental/bits/fs_path.h (path::_Path): Likewise.
2557 * testsuite/27_io/filesystem/path/construct/80762.cc: Also check
2558 pointers to void.
2559 * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.
2560
2561 * doc/xml/manual/policy_data_structures.xml: Comment out stray
2562 <remark> elements. Fix formatting of bibliography references.
2563
2564 2019-05-13 Edward Smith-Rowland <3dw4rd@verizon.net>
2565
2566 * doc/xml/manual/status_cxx2020.xml: Document P0811R3 status.
2567
2568 2019-05-13 Jonathan Wakely <jwakely@redhat.com>
2569
2570 Remove Profile Mode, deprecated since 7.1.0
2571 * doc/Makefile.am: Remove XML file for profile mode docs.
2572 * doc/Makefile.in: Regenerate.
2573 * doc/xml/authors.xml: Remove authors of profile mode docs.
2574 * doc/xml/manual/appendix_contributing.xml: Remove mention of profile
2575 mode.
2576 * doc/xml/manual/debug.xml: Likewise.
2577 * doc/xml/manual/evolution.xml: Document removal of profile mode.
2578 * doc/xml/manual/profile_mode.xml: Remove profile mode docs.
2579 * doc/xml/manual/spine.xml: Remove profile mode author credit.
2580 * doc/xml/manual/test.xml: Remove docs for dg-require-profile-mode
2581 directive.
2582 * doc/xml/manual/using.xml: Remove docs for profile mode headers and
2583 macro.
2584 * doc/html/*: Regenerate.
2585 * include/Makefile.am: Remove profile mode headers.
2586 * include/Makefile.in: Regenerate.
2587 * include/bits/c++config (std::__profile): Remove namespace.
2588 [_GLIBCXX_PROFILE]: Remove checks for macro.
2589 * include/profile/array: Remove.
2590 * include/profile/base.h: Remove.
2591 * include/profile/bitset: Remove.
2592 * include/profile/deque: Remove.
2593 * include/profile/forward_list: Remove.
2594 * include/profile/impl/profiler.h: Remove.
2595 * include/profile/impl/profiler_algos.h: Remove.
2596 * include/profile/impl/profiler_container_size.h: Remove.
2597 * include/profile/impl/profiler_hash_func.h: Remove.
2598 * include/profile/impl/profiler_hashtable_size.h: Remove.
2599 * include/profile/impl/profiler_list_to_slist.h: Remove.
2600 * include/profile/impl/profiler_list_to_vector.h: Remove.
2601 * include/profile/impl/profiler_map_to_unordered_map.h: Remove.
2602 * include/profile/impl/profiler_node.h: Remove.
2603 * include/profile/impl/profiler_state.h: Remove.
2604 * include/profile/impl/profiler_trace.h: Remove.
2605 * include/profile/impl/profiler_vector_size.h: Remove.
2606 * include/profile/impl/profiler_vector_to_list.h: Remove.
2607 * include/profile/iterator_tracker.h: Remove.
2608 * include/profile/list: Remove.
2609 * include/profile/map: Remove.
2610 * include/profile/map.h: Remove.
2611 * include/profile/multimap.h: Remove.
2612 * include/profile/multiset.h: Remove.
2613 * include/profile/ordered_base.h: Remove.
2614 * include/profile/set: Remove.
2615 * include/profile/set.h: Remove.
2616 * include/profile/unordered_base.h: Remove.
2617 * include/profile/unordered_map: Remove.
2618 * include/profile/unordered_set: Remove.
2619 * include/profile/vector: Remove.
2620 * scripts/run_doxygen: Do not process profile mode headers.
2621 * testsuite/23_containers/array/element_access/60497.cc: Don't use
2622 profile mode type.
2623 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
2624 Remove dg-skip-if for profile mode.
2625 * testsuite/23_containers/forward_list/capacity/1.cc: Remove
2626 preprocessor check for profile mode.
2627 * testsuite/23_containers/list/capacity/29134.cc: Likewise.
2628 * testsuite/23_containers/map/modifiers/extract.cc: Remove dg-skip-if
2629 for profile mode.
2630 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2631 Likewise.
2632 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2633 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
2634 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
2635 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
2636 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
2637 Likewise.
2638 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc:
2639 Likewise.
2640 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc:
2641 Likewise.
2642 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
2643 Likewise.
2644 * testsuite/23_containers/vector/bool/capacity/29134.cc: Remove
2645 preprocessor check for profile mode.
2646 * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
2647 Likewise.
2648 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
2649 Remove dg-skip-if for profile mode.
2650 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
2651 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
2652 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
2653 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
2654 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
2655 * testsuite/Makefile.am: Remove profile_flags variable and
2656 * testsuite/Makefile.am: Remove profile_flags variable and
2657 check-profile target.
2658 * testsuite/Makefile.in: Regenerate.
2659 * testsuite/ext/profile/all.cc: Remove.
2660 * testsuite/ext/profile/mutex_extensions_neg.cc: Remove.
2661 * testsuite/ext/profile/profiler_algos.cc: Remove.
2662 * testsuite/ext/profile/replace_new.cc: Remove.
2663 * testsuite/ext/throw_allocator/deallocate_global.cc: Remove
2664 preprocessor check for profile mode.
2665 * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
2666 * testsuite/lib/libstdc++.exp (check_v3_target_profile_mode): Remove.
2667 (check_v3_target_normal_mode): Do not check for profile mode macro.
2668 * testsuite/libstdc++-prettyprinters/80276.cc: Remove dg-skip-if for
2669 profile mode.
2670 * testsuite/libstdc++-prettyprinters/compat.cc: Likewise.
2671 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
2672 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
2673 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
2674 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
2675 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2676 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
2677 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2678 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2679 * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
2680
2681 Remove array_allocator extension, deprecated since 4.9.0
2682 * doc/xml/manual/allocator.xml: Remove documentation for
2683 array_allocator.
2684 * doc/xml/manual/evolution.xml: Document array_allocator removal.
2685 * doc/xml/manual/using.xml: Remove header from documentation.
2686 * include/Makefile.am: Remove <ext/array_allocator.h> header.
2687 * include/Makefile.in: Regenerate.
2688 * include/ext/array_allocator.h: Remove.
2689 * include/precompiled/extc++.h: Do not include removed header.
2690 * testsuite/ext/array_allocator/1.cc: Remove.
2691 * testsuite/ext/array_allocator/2.cc: Remove.
2692 * testsuite/ext/array_allocator/26875.cc: Remove.
2693 * testsuite/ext/array_allocator/3.cc: Remove.
2694 * testsuite/ext/array_allocator/check_deallocate_null.cc: Remove.
2695 * testsuite/ext/array_allocator/check_delete.cc: Remove.
2696 * testsuite/ext/array_allocator/check_new.cc: Remove.
2697 * testsuite/ext/array_allocator/variadic_construct.cc: Remove.
2698 * testsuite/ext/headers.cc: Do not include removed header.
2699
2700 2019-05-11 François Dumont <fdumont@gcc.gnu.org>
2701
2702 * include/bits/stl_bvector.h
2703 (operator==(const _Bit_iterator_base&, const _Bit_iterator_base&)):
2704 Make hidden friend.
2705 (operator<(const _Bit_iterator_base&, const _Bit_iterator_base&)):
2706 Likewise.
2707 (operator!=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
2708 Likewise.
2709 (operator>(const _Bit_iterator_base&, const _Bit_iterator_base&)):
2710 Likewise.
2711 (operator<=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
2712 Likewise.
2713 (operator>=(const _Bit_iterator_base&, const _Bit_iterator_base&)):
2714 Likewise.
2715 (operator-(const _Bit_iterator_base&, const _Bit_iterator_base&)):
2716 Likewise.
2717 (_Bit_iterator::operator+(difference_type)): Likewise and allow NRVO
2718 copy elision.
2719 (_Bit_iterator::operator-(difference_type)): Likewise.
2720 (operator+(ptrdiff_t, const _Bit_iterator&)): Make hidden friend.
2721 (_Bit_const_iterator::operator+(difference_type)): Likewise and allow
2722 NRVO copy elision.
2723 (_Bit_const_iterator::operator-(difference_type)): Likewise.
2724 (operator+(ptrdiff_t, const _Bit_const_iterator&)): Make hidden friend.
2725
2726 2019-05-10 Jonathan Wakely <jwakely@redhat.com>
2727
2728 PR libstdc++/81266
2729 * testsuite/util/thread/all.h: Do not use remove_pointer for
2730 std::thread::native_handle_type.
2731
2732 PR libstdc++/90397
2733 * include/std/variant (_Variant_storage<false, Types...>::_M_storage())
2734 (_Variant_storage<true, Types...>::_M_reset()))
2735 (_Variant_storage<true, Types...>::_M_storage())): Add noexcept.
2736 (__get_storage): Likewise.
2737 (variant): Add noexcept to friend declarations for __get and
2738 __get_storage.
2739
2740 PR libstdc++/90388
2741 * include/bits/unique_ptr.h (default_delete, default_delete<T[]>):
2742 Use _Require for constraints.
2743 (operator>(nullptr_t, const unique_ptr<T,D>&)): Implement exactly as
2744 per the standard.
2745 (__uniq_ptr_hash): New base class with conditionally-disabled call
2746 operator.
2747 (hash<unique_ptr<T,D>>): Derive from __uniq_ptr_hash.
2748 * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line.
2749 * testsuite/20_util/unique_ptr/hash/90388.cc: New test.
2750
2751 * include/bits/shared_ptr.h: Improve docs.
2752 * include/bits/shared_ptr_base.h: Likewise.
2753 * include/bits/stl_uninitialized.h: Likewise.
2754 * include/bits/unique_ptr.h: Likewise.
2755 * libsupc++/new: Likewise.
2756
2757 2019-05-09 François Dumont <fdumont@gcc.gnu.org>
2758
2759 * include/bits/stl_deque.h
2760 (operator==(const _Deque_iterator<>&, const _Deque_iterator<>&)):
2761 Make hidden friend.
2762 (operator!=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
2763 Likewise.
2764 (operator<(const _Deque_iterator<>&, const _Deque_iterator<>&)):
2765 Likewise.
2766 (operator<=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
2767 Likewise.
2768 (operator>(const _Deque_iterator<>&, const _Deque_iterator<>&)):
2769 Likewise.
2770 (operator>=(const _Deque_iterator<>&, const _Deque_iterator<>&)):
2771 Likewise.
2772 (_Deque_iterator<>::operator+(difference_type)): Likewise and allow NRVO
2773 copy elision.
2774 (_Deque_iterator<>::operator-(difference_type)): Likewise.
2775
2776 2019-05-08 François Dumont <fdumont@gcc.gnu.org>
2777
2778 PR libstdc++/90277
2779 * testsuite/23_containers/unordered_multiset/insert/24061-multiset.cc
2780 (test01): Reserve for number of insertions to avoid rehash during test.
2781 * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
2782 (test01): Likewise.
2783 * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc
2784 (test01): Likewise.
2785 (test02): Likewise.
2786 (test03): Likewise.
2787
2788 2019-05-08 Jonathan Wakely <jwakely@redhat.com>
2789
2790 * include/experimental/bits/fs_path.h: Improve docs.
2791 * include/experimental/bits/net.h: Fix wrong header name in comment.
2792 Do not document implementation details.
2793 * include/experimental/netfwd: Fix doxygen grouping.
2794
2795 2019-05-07 Jonathan Wakely <jwakely@redhat.com>
2796
2797 * include/bits/stl_pair.h: Improve docs.
2798 * include/std/tuple: Likewise.
2799
2800 * doc/doxygen/doxygroups.cc (std::literals): Add documentation for
2801 inline namespace.
2802 * include/std/chrono: Improve docs.
2803 * include/std/ratio: Do not document implementation details.
2804 * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust dg-error
2805 line numbers.
2806 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
2807
2808 PR libstdc++/89102
2809 * doc/xml/manual/intro.xml: Document DR 2408 and 2465 changes.
2810 * include/std/chrono (__duration_common_type_wrapper): Replace with ...
2811 (__duration_common_type): New helper.
2812 (common_type<chrono::duration<R1, P2>, chrono::duration<R2, P2>>): Use
2813 __duration_common_type.
2814 (__timepoint_common_type_wrapper): Replace with ...
2815 (__timepoint_common_type): New helper.
2816 (common_type<chrono::time_point<C, D2>, chrono::time_point<C, D2>>):
2817 Use __time_point_common_type.
2818 * include/std/type_traits (common_type<>): Define, as per LWG 2408.
2819 (__common_type_impl): If either argument is transformed by decay,
2820 use the common_type of the decayed types.
2821 (__common_type_impl<_Tp, _Up, _Tp, _Up>): If the types are already
2822 decayed, use __do_common_type_impl to get the common_type.
2823 (common_type<_Tp>): Use common_type<_Tp, _Tp>.
2824 (__do_member_type_wrapper, __member_type_wrapper)
2825 (__expanded_common_type_wrapper): Remove.
2826 (__common_type_pack, __common_type_fold): New helpers.
2827 (common_type<_Tp, _Up, _Vp...>): Use new helpers instead of
2828 __member_type_wrapper and __expanded_common_type_wrapper.
2829 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
2830 Test zero-length template argument list.
2831 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
2832 Test single argument cases and argument types that should decay.
2833 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
2834 Adjust expected error.
2835 * testsuite/20_util/duration/literals/range_neg.cc: Use zero for
2836 dg-error lineno.
2837 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
2838 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
2839 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
2840
2841 * doc/xml/manual/intro.xml: Fix DR 2537 and DR 2566 confusion.
2842
2843 2019-05-01 Nina Dinka Ranns <dinka.ranns@gmail.com>
2844
2845 Make allocator propagation more consistent for
2846 operator+(basic_string) (P1165R1)
2847 * include/bits/basic_string.h
2848 (operator+(basic_string&&, basic_string&&): Changed resulting
2849 allocator to always be the one from the first parameter.
2850 * include/bits/basic_string.tcc
2851 (operator+(const _CharT*, const basic_string&)): Changed
2852 resulting allocator to be SOCCC on the second parameter's allocator.
2853 (operator+(_CharT, const basic_string&)): Likewise.
2854 * testsuite/21_strings/basic_string/allocator/char/operator_plus.cc:
2855 New.
2856 * testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc:
2857 New.
2858
2859 2019-05-07 Jonathan Wakely <jwakely@redhat.com>
2860
2861 * include/bits/regex.h: Improve docs.
2862 * include/bits/regex.tcc: Do not document implementation details.
2863
2864 * testsuite/19_diagnostics/error_code/hash.cc: New test.
2865
2866 2019-05-06 François Dumont <fdumont@gcc.gnu.org>
2867
2868 * python/libstdcxx/v6/printers.py (add_one_template_type_printer):
2869 Add type printer for container types in std::__debug namespace.
2870 * testsuite/lib/gdb-test.exp (whatis-regexp-test): New.
2871 (gdb-tests): Use distinct parameters for the type of test and use of
2872 regex.
2873 (gdb-test): Check for regex test even if 'whatis' test.
2874 * testsuite/libstdc++-prettyprinters/80276.cc: Adapt for _GLIBCXX_DEBUG
2875 mode.
2876 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
2877 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
2878 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2879 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
2880 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2881 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2882 * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise.
2883
2884 2019-05-04 Jonathan Wakely <jwakely@redhat.com>
2885
2886 * include/std/system_error (error_category): Fix comment.
2887
2888 PR libstdc++/90299
2889 * src/c++17/fs_ops.cc (absolute(const path&)): Report an error if the
2890 argument is an empty path.
2891 (absolute(const path&, error_code&)): Use invalid_argument as error
2892 code instead of no_such_file_or_directory.
2893 * testsuite/27_io/filesystem/operations/absolute.cc: Check handling
2894 of non-existent paths and empty paths with both overloads of absolute.
2895
2896 * include/std/system_error (error_category, error_code)
2897 (error_condition): Improve docs.
2898 * libsupc++/exception: Add missing @addtogroup Doxygen command.
2899 * libsupc++/exception_ptr.h (exception_ptr): Link equality operators
2900 to class documentation. Suppress documentation for implementation
2901 details.
2902 * libsupc++/nested_exception.h (throw_with_nested, rethrow_if_nested):
2903 Suppress documentation for implementation details.
2904
2905 * include/std/system_error (error_code): Remove friend declaration
2906 for hash<error_code>.
2907 (hash<error_code>::operator()): Use public member functions to access
2908 value and category.
2909 (hash<error_condition>::operator()): Use address of category, not
2910 its object representation.
2911 * src/c++11/compatibility-c++0x.cc (hash<error_code>::operator()):
2912 Use public member functions to access value and category.
2913 * testsuite/19_diagnostics/error_condition/hash.cc: New test.
2914
2915 2019-05-04 François Dumont <fdumont@gcc.gnu.org>
2916
2917 * include/bits/hashtable.h (_Hashtable<>::rehash): Review comment.
2918 * include/bits/hashtable_policy.h
2919 (_Prime_rehash_policy::_M_bkt_for_elements): Use __builtin_ceill.
2920 (_Power2_rehash_policy::_M_bkt_for_elements): Likewise.
2921 (_Power2_rehash_policy::_M_next_bkt): Enforce returning a result not
2922 smaller than input value rather than always greater. Preserve
2923 _M_next_resize if called with 0 input. Use __builtin_floorl.
2924 (_Power2_rehash_policy::_M_need_rehash): Rehash only if number of
2925 elements + number of insertions is greater than _M_next_resize. Start
2926 with 11 buckets if not told otherwise. Use __builtin_floorl.
2927 (_Rehash_base<>::reserve): Use rehash policy _M_bkt_for_elements.
2928 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
2929 Preserve _M_next_resize if called with 0 input. Use __builtin_floorl.
2930 (_Prime_rehash_policy::_M_need_rehash): Start with 11 buckets if not
2931 told otherwise. Use __builtin_floorl.
2932 * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt test
2933 to also validate _Power2_rehash_policy.
2934 * testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc:
2935 Adapt.
2936
2937 2019-05-03 Jonathan Wakely <jwakely@redhat.com>
2938
2939 PR libstdc++/61761
2940 * testsuite/26_numerics/complex/proj.cc: Don't assume <cmath> defines
2941 std::copysign.
2942
2943 PR libstdc++/52119
2944 * include/ext/numeric_traits.h (__glibcxx_min): Avoid integer
2945 overflow warning with -Wpedantic -Wsystem-headers.
2946
2947 2019-05-02 Jonathan Wakely <jwakely@redhat.com>
2948
2949 PR libstdc++/90314
2950 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Use variadic macro.
2951 * include/bits/move.h (swap): Remove extra parentheses.
2952
2953 * include/experimental/bits/lfts_config.h: Improve doc markup.
2954 * include/experimental/optional: Improve docs.
2955 (_Has_addressof_mem, _Has_addressof_free, _Has_addressof)
2956 (__constexpr_addressof): Remove.
2957 (optional::operator->()): Use std::__addressof().
2958 * include/std/optional (optional::operator->()): Adjust whitespace.
2959 * testsuite/experimental/optional/constexpr/observers/2.cc: Check
2960 that operator-> is still constexpr with overloaded operator&. Change
2961 to compile-only test.
2962 * testsuite/experimental/optional/constexpr/observers/3.cc: Change to
2963 compile-only test.
2964
2965 * include/bits/shared_ptr.h: Improve docs.
2966 * include/bits/shared_ptr_atomic.h: Likewise.
2967 * include/bits/unique_ptr.h: Likewise. Adjust whitespace.
2968
2969 * include/bits/basic_string.h: Fix iterator/index confusion in
2970 Doxygen comments.
2971 * include/bits/range_access.h: Fix Doxygen warnings.
2972 * include/bits/refwrap.h: Do not document implementation details.
2973 (ref, cref): Group docs with reference_wrapper.
2974 * include/std/fstream: Fix Doxygen markup.
2975 * libsupc++/initializer_list (begin, end): Group docs with
2976 initializer_list.
2977
2978 * doc/doxygen/user.cfg.in: Set MARKDOWN_SUPPORT=YES.
2979
2980 * include/bits/unique_lock.h: Fix/improve doxygen markup.
2981 * include/std/mutex: Likewise.
2982 * include/std/shared_mutex: Likewise.
2983
2984 * include/bits/fs_dir.h: Fix/improve doxygen markup.
2985 * include/bits/fs_fwd.h: Likewise.
2986 * include/bits/fs_ops.h: Likewise.
2987 * include/bits/fs_path.h: Likewise.
2988 * include/std/filesystem: Likewise.
2989
2990 * include/experimental/bits/net.h: Fix/improve doxygen markup.
2991 * include/experimental/buffer: Likewise.
2992 * include/experimental/executor: Likewise.
2993 * include/experimental/internet: Likewise.
2994 * include/experimental/io_context: Likewise.
2995 * include/experimental/net: Likewise.
2996 * include/experimental/netfwd: Likewise.
2997 * include/experimental/socket: Likewise.
2998 * include/experimental/timer: Likewise.
2999
3000 * doc/doxygen/doxygroups.cc: Move description of experimental group
3001 here.
3002 * include/experimental/algorithm: Add to libfund-ts doc group.
3003 * include/experimental/any: Likewise. Do not document implementation
3004 details.
3005 * include/experimental/array: Add to libfund-ts doc group.
3006 * include/experimental/bits/lfts_config.h: Define libfund-ts doc group
3007 for Library Fundamentals.
3008 * include/experimental/chrono: Add to libfund-ts doc group.
3009 * include/experimental/deque: Likewise.
3010 * include/experimental/forward_list: Likewise.
3011 * include/experimental/functional: Likewise.
3012 * include/experimental/iterator: Likewise.
3013 * include/experimental/list: Likewise.
3014 * include/experimental/map: Likewise.
3015 * include/experimental/memory: Likewise.
3016 * include/experimental/memory_resource: Likewise. Improve docs.
3017 details.
3018 * include/experimental/numeric: Add to libfund-ts doc group.
3019 * include/experimental/optional: Likewise.
3020 * include/experimental/propagate_const: Likewise.
3021 * include/experimental/random: Likewise.
3022 * include/experimental/ratio: Likewise.
3023 * include/experimental/regex: Likewise.
3024 * include/experimental/set: Likewise.
3025 * include/experimental/source_location: Likewise.
3026 * include/experimental/string: Likewise.
3027 * include/experimental/string_view: Likewise.
3028 * include/experimental/system_error: Likewise.
3029 * include/experimental/tuple: Likewise.
3030 * include/experimental/type_traits: Likewise.
3031 * include/experimental/unordered_map: Likewise.
3032 * include/experimental/unordered_set: Likewise.
3033 * include/experimental/utility: Likewise.
3034 * include/experimental/vector: Likewise.
3035 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3036 * testsuite/experimental/array/neg.cc: Adjust dg-error.
3037 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
3038 Likewise.
3039 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
3040 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
3041 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
3042 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
3043 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
3044
3045 * include/experimental/bits/fs_dir.h: Fix Doxygen markup.
3046 * include/experimental/bits/fs_fwd.h: Improve docs.
3047 * include/experimental/bits/fs_ops.h: fix Doxygen markup.
3048 * include/experimental/bits/fs_path.h: Likewise.
3049 (path, filesystem_error, u8path): Improve docs.
3050 * include/experimental/filesystem: Link to docs for TS.
3051
3052 * config/allocator/new_allocator_base.h (__allocator_base): Add
3053 workaround for Doxygen bug #6945.
3054 * include/std/memory: Improve docs. Define group for pointer safety.
3055 * include/std/scoped_allocator: Improve docs. Use "undocumented"
3056 conditional to suppress documentation for implementation details.
3057
3058 * include/bits/specfun.h: Improve docs.
3059 * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions
3060 and namespaces.
3061
3062 * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs.
3063 (std::experimental): Add docs.
3064 * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11
3065 namespace to nothing when generating docs.
3066 * include/bits/regex_constants.h (std::regex_constants): Improve docs.
3067 * include/std/chrono (std::chrono): Likewise.
3068 * include/std/functional (std::placeholders): Likewise.
3069 * include/std/thread (std::this_thread): Likewise.
3070
3071 * include/parallel/settings.h: Fix Doxygen markup.
3072
3073 * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define
3074 anything unless PB_DS_CLASS_C_DEC is defined.
3075 * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise.
3076 * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise.
3077 * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise.
3078 * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise.
3079 * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise.
3080 * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise.
3081 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp:
3082 Likewise.
3083 * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise.
3084 * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise.
3085 * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise.
3086 * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise.
3087 * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise.
3088 * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise.
3089 * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise.
3090 * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise.
3091 * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise.
3092 * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise.
3093 * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp:
3094 Likewise.
3095 * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise.
3096 * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp:
3097 Likewise.
3098 * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp:
3099 Likewise.
3100
3101 * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set
3102 GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various
3103 _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that
3104 Doxygen expands.
3105
3106 2019-05-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3107
3108 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
3109 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
3110 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
3111 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
3112 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
3113 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
3114 Likewise.
3115 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
3116 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
3117 Likewise.
3118
3119 2019-05-01 Jonathan Wakely <jwakely@redhat.com>
3120
3121 PR libstdc++/61761
3122 * include/std/complex (__complex_proj): Return parameter unchanged.
3123 [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for
3124 floating-point types to take std::complex arguments.
3125 [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for
3126 floating-point types.
3127 * testsuite/26_numerics/complex/proj.cc: New test.
3128
3129 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3130
3131 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports
3132 to _Lock_policyE[012].
3133 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3134
3135 2019-04-30 Jonathan Wakely <jwakely@redhat.com>
3136
3137 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove
3138 macros accidentally left in.
3139 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove
3140 unnecessary -lstdc++fs option. Fix test for mingw.
3141 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
3142 Fix test for mingw.
3143
3144 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3145
3146 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
3147
3148 2019-04-29 Jonathan Wakely <jwakely@redhat.com>
3149
3150 * include/bits/stl_algo.h (generate_n): Adjust doxygen comment.
3151
3152 * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use
3153 _GLIBCXX_NOEXCEPT_IF to simplify declarations.
3154
3155 PR libstdc++/71312
3156 * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes.
3157
3158 * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard
3159 attribute.
3160
3161 * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
3162 class template and partial specialization.
3163
3164 PR libstdc++/87982
3165 * include/bits/stl_algo.h (generate_n): Convert _Size parameter to
3166 an integral type.
3167 * include/bits/stl_algobase.h (__size_to_integer): New overloaded
3168 functions to convert a value to an integral type.
3169 (__fill_n_a, __fill_n_a): Assert that __n is already an integral type.
3170 (fill_n): Convert _Size parameter to an integral type.
3171 * testsuite/25_algorithms/fill_n/87982.cc: New test.
3172 * testsuite/25_algorithms/fill_n/87982_neg.cc: New test.
3173 * testsuite/25_algorithms/fill_n/dr426.cc: New test.
3174 * testsuite/25_algorithms/generate_n/87982.cc: New test.
3175 * testsuite/25_algorithms/generate_n/87982_neg.cc: New test.
3176 * testsuite/25_algorithms/generate_n/dr426.cc: New test.
3177
3178 2019-04-28 Nina Dinka Ranns <dinka.ranns@gmail.com>
3179
3180 Adding noexcept-specification on tuple constructors (LWG 2899)
3181 * libstdc++-v3/include/std/tuple:
3182 (tuple()): Add noexcept-specification.
3183 (tuple(const _Elements&...)): Likewise
3184 (tuple(_UElements&&...)): Likewise
3185 (tuple(const tuple<_UElements...>&)): Likewise
3186 (tuple(tuple<_UElements...>&&)): Likewise
3187 (tuple(const _T1&, const _T2&)): Likewise
3188 (tuple(_U1&&, _U2&&)): Likewise
3189 (tuple(const tuple<_U1, _U2>&): Likewise
3190 (tuple(tuple<_U1, _U2>&&): Likewise
3191 (tuple(const pair<_U1, _U2>&): Likewise
3192 (tuple(pair<_U1, _U2>&&): Likewise
3193 * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New
3194
3195 2019-04-27 Marc Glisse <marc.glisse@inria.fr>
3196
3197 PR libstdc++/87106
3198 * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the
3199 arguments with __restrict.
3200
3201 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
3202
3203 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3204
3205 2019-04-26 Jonathan Wakely <jwakely@redhat.com>
3206
3207 * include/experimental/bits/fs_path.h
3208 (path::_S_convert_loc<_InputIterator>): Create const std::string to
3209 avoid redundant call to _S_convert_loc with non-const pointers.
3210
3211 * testsuite/20_util/variant/run.cc: Use a new Hashable type to test
3212 hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
3213 * testsuite/21_strings/basic_string/hash/hash.cc
3214 [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
3215 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc
3216 [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
3217
3218 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches
3219 wstring::_M_replace_dispatch with more specific patterns.
3220 * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>):
3221 Create const std::string to avoid redundant call to _S_convert_loc
3222 with non-const pointers.
3223 * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to
3224 avoid unnecessary basic_string::assign instantiations.
3225
3226 * include/std/memory (__uses_alloc_args): Add string-literal to
3227 static_assert, to match the one in __uses_alloc.
3228 [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
3229 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
3230 for recursive uses-allocator construction of nested pairs.
3231 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
3232 comment.
3233
3234 2019-04-26 Jakub Jelinek <jakub@redhat.com>
3235
3236 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
3237 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3238 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
3239 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
3240
3241 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3242 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3243 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3244 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3245 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3246 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3247 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3248
3249 2019-04-25 Jonathan Wakely <jwakely@redhat.com>
3250
3251 PR libstdc++/90239
3252 * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
3253 * include/std/scoped_allocator [__cplusplus > 201703L]
3254 (scoped_allocator_adaptor::construct): Define in terms of
3255 uses_allocator_construction_args, as per P0591R4.
3256 * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
3257 * testsuite/util/testsuite_allocator.h: Remove name of unused
3258 parameter.
3259
3260 2019-04-24 Jonathan Wakely <jwakely@redhat.com>
3261
3262 * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status.
3263 * doc/html/*: Regenerate.
3264
3265 * include/bits/fs_path.h (operator<, operator<=, operator>)
3266 (operator>=, operator==, operator!=): Make hidden friends, as per
3267 LWG 3065.
3268 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix
3269 string type in test.
3270 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
3271
3272 * include/std/any (any::any(ValueType&&)): Use __and_v.
3273 * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)):
3274 Likewise.
3275
3276 * include/std/tuple (apply): Use remove_reference_t instead of decay_t
3277 as per P0777R1.
3278 * include/std/type_traits (__result_of_memfun): Use remove_reference
3279 instead of __remove_cvref_t and remove redundant is_same check.
3280 (__inv_unwrap): Use __remove_cvref_t instead of decay_t.
3281
3282 * include/experimental/string_view (basic_string_view::pointer)
3283 (basic_string_view::reference): Fix to refer to non-const value_type.
3284 * include/bits/basic_string.h (basic_string): Use __sv_check and
3285 __sv_limit instead of basic_string_view::_M_check and
3286 basic_string_view::_M_limit.
3287 * include/std/string_view (__sv_check, __sv_limit): New
3288 helper functions to replace basic_string_view::_M_check and
3289 basic_string_view::_M_limit.
3290 (basic_string_view): Add static assertions to enforce ill-formed
3291 requirement for traits_type::char_type from P1148R0, and to enforce
3292 required properties of char-like types.
3293 (basic_string_view::pointer, basic_string_view::reference): Fix to
3294 refer to non-const value_type.
3295 (basic_string_view::operator[], basic_string_view::at)
3296 (basic_string_view::front, basic_string_view::back)
3297 (basic_string_view::data): Use const_reference and const_pointer
3298 typedefs for return types.
3299 (basic_string_view::_M_check, basic_string_view::_M_limit): Remove.
3300 (hash<wstring_view>): Fix argument_type typedef.
3301 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
3302 char/1.cc: Fix expected return type of basic_string_view::data().
3303 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
3304 wchar_t/1.cc: Likewise.
3305 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
3306 char/1.cc: Likewise.
3307 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
3308 wchar_t/1.cc: Likewise.
3309 * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc:
3310 New test.
3311 * testsuite/21_strings/basic_string_view/requirements/typedefs.cc:
3312 Check reference and pointer typedefs.
3313 * testsuite/experimental/string_view/requirements/typedefs.cc:
3314 Likewise.
3315 * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
3316 Fix expected return type of basic_string_view::data().
3317 * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
3318 1.cc: Likewise.
3319 * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
3320 Likewise.
3321 * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
3322 1.cc: Likewise.
3323
3324 PR libstdc++/90220
3325 * include/std/any (__any_caster): Use remove_cv_t instead of decay_t.
3326 Avoid a runtime check for types that can never be stored in std::any.
3327 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
3328 array types.
3329
3330 PR libstdc++/90220 (partial)
3331 * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do
3332 not attempt ill-formed static_cast to pointers to non-object types.
3333 * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with
3334 function types.
3335
3336 * testsuite/20_util/variant/run.cc: Catch exception by reference to
3337 prevent -Wcatch-value warning.
3338
3339 * include/std/variant (__variant_construct): Use template parameter
3340 type instead of equivalent decltype-specifier.
3341 (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)):
3342 Replace forward with move.
3343 (_Move_ctor_base<false, Types...>::_M_destructive_move)
3344 (_Move_ctor_base<false, Types...>::_M_destructive_copy)
3345 (_Move_ctor_base<true, Types...>::_M_destructive_move)
3346 (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the
3347 index after construction succeeds.
3348 (_Copy_assign_base<false, Types...>::operator=): Remove redundant
3349 if-constexpr checks that are always true. Use __remove_cvref_t instead
3350 of remove_reference so that is_nothrow_move_constructible check
3351 doesn't use a const rvalue parameter. In the potentially-throwing case
3352 construct a temporary and move assign it, as per LWG 2904.
3353 (_Move_assign_base<false, Types...>::operator=): Remove redundant
3354 if-constexpr checks that are always true. Use emplace as per LWG 2904.
3355 (variant::operator=(T&&)): Only use emplace conditionally, otherwise
3356 construct a temporary and move assign from it, as per LWG 2904.
3357 * testsuite/20_util/variant/exception_safety.cc: Check that
3358 assignment operators have strong exception safety guarantee.
3359
3360 2019-04-23 Thomas Rodgers <trodgers@redhat.com>
3361
3362 Document PSTL linker flags
3363
3364 * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1.
3365
3366 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
3367
3368 * include/std/variant (__detail::__variant::_Traits): Make
3369 _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make
3370 _S_trivial_move_assign depend on _S_trivial_move_ctor, as per
3371 P0602R4.
3372 (__detail::__variant::_Copy_assign_alias): Only depend on
3373 _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now.
3374 * testsuite/20_util/variant/compile.cc: Correct checks for trivial
3375 move assignment operators.
3376
3377 PR libstdc++/90165
3378 * include/std/variant (variant::__not_self): New helper for the
3379 is_same_v<remove_cvref_t<T>, variant>==false constraints.
3380 (variant::__to_type_impl): Remove.
3381 (variant::__to_type): Add default argument to check pack size, instead
3382 of using __to_type_impl.
3383 (variant::__accepted_type): Add default argument using __not_self.
3384 (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers
3385 for variant(T&&) constructor constraint.
3386 (variant::variant(T&&)): Use __not_in_place_tag in constraints.
3387 Extract __accepted_type into a named template parameter for reuse in
3388 other constraints and in the exception specification.
3389 (variant::variant(in_place_type_t<T>, Args&&...))
3390 (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...))
3391 (variant::variant(in_place_index_t<T>, Args&&...))
3392 (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...))
3393 (variant::operator=T&&)): Remove redundant && from trait arguments.
3394 * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor
3395 isn't used for in_place_type or in_place_index arguments.
3396
3397 * include/std/type_traits (unwrap_reference_t): Define for C++2a.
3398 (unwrap_ref_decay): Remove inheritance from unwrap_reference.
3399 * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias.
3400
3401 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3402 Bernd Edlinger <bernd.edlinger@hotmail.de>
3403 Jakub Jelinek <jakub@redhat.com>
3404
3405 PR target/89093
3406 * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add
3407 general-regs-only target attribute for ARM.
3408
3409 2019-04-23 Jonathan Wakely <jwakely@redhat.com>
3410
3411 PR libstdc++/87431
3412 * include/bits/basic_string.h (_Never_valueless_alt): Make partial
3413 specialization also depend on is_nothrow_move_constructible.
3414 * include/std/variant (__detail::__variant::__never_valueless()):
3415 Only true if the variant would have a move assignment operator.
3416 (__detail::__variant::_Variant_storage<false, T...>::_M_valid()):
3417 Check __never_valueless<T...>().
3418 (variant::emplace): Only perform non-throwing move assignments
3419 for never-valueless alternatives if the variant has a move assignment
3420 operator.
3421 * testsuite/20_util/variant/compile.cc: Check that never-valueless
3422 types can be emplaced into non-assignable variants.
3423 * testsuite/20_util/variant/run.cc: Check that never-valueless types
3424 don't get copied when emplaced into non-assignable variants.
3425
3426 * include/std/variant (__detail::__variant::__ref_cast): Remove
3427 unused function.
3428 (__detail::__variant::_Uninitialized::_M_get)
3429 (__detail::__variant::__get)
3430 (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept.
3431
3432 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3433
3434 * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8
3435 to Darwin10.
3436 * testsuite/17_intro/headers/c++2011/charset.cc: Likewise.
3437 * testsuite/17_intro/headers/c++2014/charset.cc: Likewise.
3438 * testsuite/17_intro/headers/c++2017/charset.cc: Likewise.
3439 * testsuite/17_intro/headers/c++2020/charset.cc: Likewise.
3440
3441 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
3442
3443 Delegate PSTL configuration to pstl/pstl_config.h
3444
3445 * include/bits/c++config: Remove explicit PSTL configuration
3446 macros and use definitions from <pstl/pstl_config.h>.
3447
3448 2019-04-20 Thomas Rodgers <trodgers@redhat.com>
3449
3450 Cleanup algorithm implementations
3451 * include/pstl/glue_algorithm_impl.h (stable_sort): Forward
3452 execution policy.
3453 (mismatch): Forward execution policy.
3454 (equal): Qualify call to std::equal().
3455 (partial_sort): Forward execution policy.
3456 (inplace_merge): Forward execution policy.
3457
3458 2019-04-19 Thomas Rodgers <trodgers@redhat.com>
3459
3460 Improve implementation of parallel equal()
3461 * include/pstl/algorithm_impl.h
3462 (__internal::__brick_equal): use "4 iterator" version of
3463 std::equal().
3464 (__internal::__brick_equal): use simd for random access
3465 iterators on unsequenced execution policies.
3466 (__internal::__pattern_equal): add "4 iterator" version
3467 (__internal::__pattern_equal): dispatch to simd __brick_equal
3468 for vector-only execution policies.
3469 (__internal::__pattern_equal): dispatch to __parallel_or for
3470 parallel execution policies.
3471 * include/pstl/glue_algorithm_impl.h
3472 (std::equal): dispatch to "4 iterator" version of
3473 __internal::__pattern_equal().
3474
3475 2019-04-17 Jonathan Wakely <jwakely@redhat.com>
3476
3477 PR libstdc++/90105
3478 * include/bits/forward_list.h (operator==): Do not use operator!= to
3479 compare elements.
3480 (forward_list<T, A>::sort(Comp)): When elements are equal take the one
3481 earlier in the list, so that sort is stable.
3482 * testsuite/23_containers/forward_list/operations/90105.cc: New test.
3483 * testsuite/23_containers/forward_list/comparable.cc: Test with
3484 types that meet the minimum EqualityComparable and LessThanComparable
3485 requirements. Remove irrelevant comment.
3486
3487 * include/std/variant (__detail::__variant::_Traits::_S_copy_assign):
3488 Do not depend on whether all alternative types are move constructible.
3489 (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals
3490 from the operand when deciding whether to perform the assignment.
3491 * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type
3492 with deleted move constructor and deleted move assignment operator.
3493 (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check
3494 behaviour of variants with DeletedMoves as an alternative.
3495 * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type.
3496 (move_ctor, move_assign): Check that moving a variant with a
3497 DeletedMoves alternative falls back to copying instead of moving.
3498
3499 * testsuite/20_util/variant/compile.cc: Remove empty string literals
3500 from static_assert declarations.
3501
3502 * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to
3503 actually match its name.
3504 (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly.
3505 (test_swap()): Fix result for MoveCtorOnly and check
3506 MoveCtorAndSwapOnly.
3507
3508 * include/std/optional (optional::value_or(U&&) &&): Add missing
3509 constexpr specifier.
3510 * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or
3511 for disengaged optionals and rvalue optionals.
3512 * testsuite/20_util/optional/observers/4.cc: Likewise.
3513
3514 2019-04-12 Thomas Rodgers <trodgers@redhat.com>
3515
3516 * include/pstl/algorithm_impl.h: Uglify identfiers.
3517 * include/pstl/numeric_impl.h: Uglify identfiers.
3518 * include/pstl/parallel_backend_tbb.h: Uglify identfiers.
3519
3520 2019-04-11 Thomas Rodgers <trodgers@redhat.com>
3521
3522 * include/bits/c++config:
3523 Add definition for __PSTL_ASSERT.
3524 Add definition for __PSTL_ASSERT_MSG.
3525 * include/pstl/algorithm_impl.h: Replace use of assert().
3526 * include/pstl/numeric_impl.h: Replace use of assert().
3527 * include/pstl/parallel_backend_tbb.h:
3528 Replace use of assert().
3529 Replace use of __TBB_ASSERT().
3530 * include/pstl/parallel_backend_utils.h: Replace use of assert().
3531
3532 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
3533
3534 PR libstdc++/90046
3535 * src/c++17/memory_resource.cc
3536 (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if
3537 needed to allow placing a _Chunk at the end of the buffer.
3538 (monotonic_buffer_resource::_M_new_buffer): Remove static_assert.
3539
3540 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
3541
3542 * doc/xml/faq.xml: Add information about emergency EH pool.
3543 * doc/xml/manual/debug.xml: Update list of memory debugging tools.
3544 Move outdated information on mt_allocator to a separate section.
3545 * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW
3546 doesn't affect the default allocator.
3547
3548 * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix
3549 typo.
3550
3551 PR libstdc++/89851
3552 * testsuite/20_util/variant/89851.cc: New test.
3553
3554 2019-04-09 Jonathan Wakely <jwakely@redhat.com>
3555
3556 * include/std/variant: Adjust whitespace. Add comments.
3557 (_Multi_array): Leave primary template undefined.
3558 (_Multi_array<_Tp>): Define partial specialization for base case of
3559 recursion.
3560 (__gen_vtable_impl, __gen_vtable): Remove redundant && from type
3561 which is always a reference.
3562 (__gen_vtable::_S_apply()): Remove function, inline body into
3563 default member initializer.
3564 * testsuite/20_util/variant/visit.cc: Test with noncopyable types.
3565
3566 * include/std/variant (__variant_idx_cookie): Add member type.
3567 (__visitor_result_type): Remove.
3568 (__do_visit): Use invoke_result instead of __visitor_result_type.
3569 * testsuite/20_util/variant/visit.cc: New test.
3570
3571 PR libstdc++/90008
3572 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove
3573 unused capture.
3574 * testsuite/20_util/variant/90008.cc: New test.
3575
3576 2019-04-09 Thomas Rodgers <trodgers@redhat.com>
3577
3578 * include/pstl/algorithm_impl.h: Add namespace qualification.
3579 * include/pstl/execution_defs.h: Add namespace qualification.
3580 * include/pstl/execution_impl.h: Add namespace qualification.
3581 * include/pstl/numeric_impl.h: Add namespace qualification.
3582 * include/pstl/parallel_backend_tbb.h: Add namespace qualification.
3583 * include/pstl/unseq_backend_simd.h: Add namespace qualification.
3584 * include/pstl/parallel_backend_utils.h: Include <cassert>.
3585
3586 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com>
3587
3588 Fix visit<R> for variant.
3589 * include/std/variant (__do_visit): Add a template parameter
3590 for enforcing same return types for visit.
3591 (__gen_vtable_impl): Likewise.
3592 (_S_apply_single_alt): Adjust.
3593 (__visit_invoke_impl): New. Handle casting to void.
3594 (__do_visit_invoke): New. Enforces same return types.
3595 (__do_visit_invoke_r): New. Converts return types.
3596 (__visit_invoke): Adjust.
3597 (__gen_vtable): Add a template parameter for enforcing
3598 same return types for visit.
3599 * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with
3600 different return types.
3601 * testsuite/20_util/variant/visit_neg.cc: New. Ensures that
3602 visitors with different return types don't accidentally
3603 compile with regular visitation.
3604
3605 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org>
3606
3607 * testsuite/27_io/filesystem/iterators/caching.cc: Add
3608 dg-require-filesystem-ts.
3609
3610 2019-04-05 Jonathan Wakely <jwakely@redhat.com>
3611
3612 * doc/xml/manual/status_cxx2020.xml: Update status.
3613 * include/std/variant (visit<R>): Define for C++2a (P0655R1).
3614 * testsuite/20_util/variant/visit_r.cc: New test.
3615
3616 * include/bits/fs_dir.h (directory_iterator::operator*)
3617 (directory_iterator::operator->): Add noexcept.
3618 (operator==, operator!=): Replace namespace-scope equality operators
3619 for directory iterators with hidden friends.
3620
3621 PR libstdc++/89986
3622 * config/abi/pre/gnu.ver: Add missing exports.
3623 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test
3624 increment member.
3625
3626 * config/abi/pre/gnu.ver: Export new symbols.
3627 * include/bits/fs_dir.h (recursive_directory_iterator::options())
3628 (recursive_directory_iterator::recursion_pending())
3629 (recursive_directory_iterator::disable_recursion_pending()): Remove
3630 inline definitions. Make noexcept.
3631 (recursive_directory_iterator::depth())
3632 (recursive_directory_iterator::operator*())
3633 (recursive_directory_iterator::operator->()): Make noexcept.
3634 (recursive_directory_iterator::_M_options)
3635 (recursive_directory_iterator::_M_pending): Remove data members.
3636 * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members.
3637 (recursive_directory_iterator::recursive_directory_iterator): Remove
3638 ctor-initializer. Use new constructor for _Dir_stack.
3639 (recursive_directory_iterator::options())
3640 (recursive_directory_iterator::recursion_pending())
3641 (recursive_directory_iterator::disable_recursion_pending()): Add
3642 non-inline definitions.
3643 (recursive_directory_iterator::depth()): Make noexcept.
3644 (recursive_directory_iterator::increment(error_code&))
3645 (recursive_directory_iterator::pop(error_code&)): Adjust to new
3646 location of options and recursion_pending members.
3647 * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test.
3648 * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add
3649 user-declared move constructor and assignment operator, to make the
3650 type move-only.
3651
3652 * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle
3653 d_type == DT_UNKNOWN immediately.
3654 (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown
3655 handling here.
3656 * testsuite/27_io/filesystem/iterators/caching.cc: New test.
3657
3658 * include/bits/fs_path.h (path::operator=(path&&)): Check for self
3659 assignment.
3660 * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise.
3661 * testsuite/27_io/filesystem/path/assign/copy.cc: Test self
3662 assignment.
3663
3664 PR libstdc++/87431 (again)
3665 * include/bits/basic_string.h (__variant::_Never_valueless_alt):
3666 Define partial specialization for basic_string.
3667 * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for
3668 shared_ptr and weak_ptr.
3669 * include/bits/std_function.h (_Never_valueless_alt): Likewise for
3670 function.
3671 * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for
3672 vector.
3673 * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for
3674 unique_ptr.
3675 * include/debug/vector (_Never_valueless_alt): Likewise for debug
3676 vector.
3677 * include/std/any (_Never_valueless_alt): Define explicit
3678 specialization for any.
3679 * include/std/variant (_Never_valueless_alt): Define primary template.
3680 (__never_valueless): Use _Never_valueless_alt instead of
3681 is_trivially_copyable.
3682 (variant::emplace<N>(Args&&...)): Add special case for non-throwing
3683 initializations to avoid try-catch overhead. Add special case for
3684 scalars produced by potentially-throwing conversions. Use
3685 _Never_valueless_alt instead of is_trivially_copyable for the
3686 remaining strong exception-safety cases.
3687 (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise.
3688 * testsuite/20_util/variant/87431.cc: Run both test functions.
3689 * testsuite/20_util/variant/exception_safety.cc: New test.
3690 * testsuite/20_util/variant/run.cc: Use pmr::string instead of string,
3691 so the variant becomes valueless.
3692
3693 2019-04-03 Jonathan Wakely <jwakely@redhat.com>
3694
3695 PR libstdc++/85184
3696 * include/std/variant (_Copy_assign_base, _Move_assign_base, variant):
3697 Remove assertions.
3698 (variant::emplace<_Tp>): Return result of emplace<N> directly.
3699
3700 * include/std/string (__hash_string_base): New class template defining
3701 operator() for hashing strings.
3702 (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
3703 (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
3704 * testsuite/21_strings/basic_string/hash/hash.cc: New test.
3705 * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.
3706
3707 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com>
3708
3709 Use single-visitation in variant assignment and swap and relops.
3710 Also use indices instead of types when checking whether
3711 variants hold the same thing.
3712 * include/std/variant (__do_visit): Add a template parameter
3713 for index visitation, invoke with indices if index visitation
3714 is used.
3715 (__variant_idx_cookie): New.
3716 (__visit_with_index): Likewise.
3717 (_Copy_assign_base::operator=): Do single-visitation with
3718 an index visitor.
3719 (_Move_assign_base::operator=): Likewise.
3720 (_Extra_visit_slot_needed): Adjust.
3721 (__visit_invoke): Call with indices if it's an index visitor.
3722 (relops): Do single-visitation with an index visitor.
3723 (swap): Likewise.
3724 (__visitor_result_type): New.
3725
3726 2019-03-30 Eric Botcazou <ebotcazou@adacore.com>
3727
3728 * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
3729
3730 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com>
3731
3732 Don't revisit a variant we are already visiting.
3733 * include/std/variant (__variant_construct_single): New.
3734 (__variant_construct): Use it.
3735 (_M_destructive_move): Likewise.
3736 (_M_destructive_copy): Likewise.
3737 (_Copy_assign_base::operator=): Adjust.
3738 (_Move_assign_base::operator=): Likewise.
3739 (swap): Likewise.
3740
3741 2019-03-26 Jonathan Wakely <jwakely@redhat.com>
3742
3743 PR libstdc++/85965
3744 * include/bits/hashtable.h (_Hashtable): Move static assertions to
3745 destructor so they are not evaluated until the _Key type is complete.
3746 * include/bits/stl_tree.h (_Rb_tree): Likewise.
3747 * testsuite/23_containers/set/85965.cc: New test.
3748 * testsuite/23_containers/unordered_set/85965.cc: New test.
3749 * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors
3750 with regexp matching the corresponding _Rb_tree specialization.
3751 * testsuite/23_containers/multimap/48101_neg.cc: Likewise.
3752 * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error.
3753 * testsuite/23_containers/set/48101_neg.cc: Likewise.
3754 * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise.
3755 * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise.
3756 * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
3757 * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
3758
3759 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
3760
3761 PR libstdc++/89825
3762 Fix based on a suggestion by Antony Polukhin.
3763 * include/std/variant (__never_valueless): New.
3764 (_M_valid): Use it.
3765 (_Extra_visit_slot_needed): New.
3766 (_Multi_array): Use it.
3767 (_S_apply_all_alts): Likewise.
3768
3769 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
3770
3771 PR libstdc++/89824
3772 Fix based on a suggestion by Antony Polukhin.
3773 * include/std/variant (__gen_vtable): Don't reserve an
3774 additional table slot, _Multi_array already does that.
3775
3776 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com>
3777
3778 PR libstdc++/89816
3779 Fix based on a suggestion by Antony Polukhin.
3780 * include/std/variant (__variant_construct): Capture a pointer
3781 to the storage and visit just one variant.
3782
3783 2019-03-22 Jonathan Wakely <jwakely@redhat.com>
3784
3785 * doc/xml/manual/backwards_compatibility.xml: Remove link to
3786 Doxygen-generated pages with unstable URL.
3787 * doc/xml/manual/concurrency_extensions.xml: Likewise.
3788 * doc/xml/manual/extensions.xml: Likewise.
3789 * doc/xml/manual/parallel_mode.xml: Likewise.
3790 * doc/xml/manual/support.xml: Likewise.
3791
3792 * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to
3793 avoid -Wconversion warnings.
3794
3795 2019-03-21 Thomas Rodgers <trodgers@redhat.com>
3796
3797 * include/Makefile.am (std_header): Add ${std_srcdir}/execution.
3798 (pstl_srcdir, pstl_builddir, pstl_headers): New variables.
3799 (allstamped): Add stamp-pstl.
3800 (install-headers): Add ptsl_builddir.
3801 * include/Makefile.in: Regenerate.
3802 * include/bits/c++config: Add pstl configuration.
3803 * include/pstl/LICENSE.txt: New file.
3804 * include/pstl/algorithm_fwd.h: New file.
3805 * include/pstl/algorithm_impl.h: New file.
3806 * include/pstl/execution_defs.h: New file.
3807 * include/pstl/execution_impl.h: New file.
3808 * include/pstl/glue_algorithm_defs.h: New file.
3809 * include/pstl/glue_algorithm_impl.h: New file.
3810 * include/pstl/glue_execution_defs.h: New file.
3811 * include/pstl/glue_memory_defs.h: New file.
3812 * include/pstl/glue_memory_impl.h: New file.
3813 * include/pstl/glue_numeric_defs.h: New file.
3814 * include/pstl/glue_numeric_impl.h: New file.
3815 * include/pstl/memory_impl.h: New file.
3816 * include/pstl/numeric_fwd.h: New file.
3817 * include/pstl/numeric_impl.h: New file.
3818 * include/pstl/parallel_backend.h: New file.
3819 * include/pstl/parallel_backend_tbb.h: New file.
3820 * include/pstl/parallel_backend_utils.h: New file.
3821 * include/pstl/parallel_impl.h: New file.
3822 * include/pstl/pstl_config.h: New file.
3823 * include/pstl/unseq_backend_simd.h: New file.
3824 * include/pstl/utils.h: New file.
3825 * include/std/algorithm: Include parallel algorithm implementations.
3826 * include/std/execution: New file.
3827 * include/std/memory: Include parallel algorithm implementations.
3828 * include/std/numeric: Include parallel algorithm implementations.
3829 * include/std/version: Add parallel algorithms feature test macro.
3830 * testsuite/util/pstl/pstl_test_config.h: New file.
3831 * testsuite/util/pstl/test_utils.h: New file.
3832 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
3833 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
3834 * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
3835 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
3836 * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
3837 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
3838 * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
3839 * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
3840 * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
3841 * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
3842 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
3843 * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
3844 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
3845 * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
3846 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
3847 * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
3848 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
3849 * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
3850 * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
3851 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
3852 * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
3853 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
3854 * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
3855 * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
3856 * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
3857 * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
3858 * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
3859 * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
3860 * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
3861 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
3862 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
3863 * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
3864 * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
3865 * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
3866 * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
3867 * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
3868 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
3869 * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
3870 * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
3871 * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
3872 * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
3873 * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
3874 * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
3875 * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
3876 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
3877 * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
3878 * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
3879 * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
3880 * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
3881 * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
3882 * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
3883 * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
3884 * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
3885 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file.
3886 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file.
3887 * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file.
3888 * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file.
3889 * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file.
3890 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file.
3891 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file.
3892 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file.
3893 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file.
3894 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file.
3895 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file.
3896 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file.
3897 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file.
3898 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file.
3899 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file.
3900 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file.
3901 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file.
3902 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file.
3903 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file.
3904 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file.
3905 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file.
3906 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file.
3907 * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file.
3908 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file.
3909 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file.
3910 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file.
3911 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file.
3912 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file.
3913 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file.
3914 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file.
3915 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file.
3916 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file.
3917 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file.
3918 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file.
3919 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file.
3920 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file.
3921 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file.
3922 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file.
3923 * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file.
3924 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file.
3925 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file.
3926 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file.
3927 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file.
3928 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file.
3929 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file.
3930 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file.
3931 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file.
3932 * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file.
3933 * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file.
3934 * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file.
3935 * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file.
3936 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file.
3937 * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file.
3938
3939 2019-03-21 Jonathan Wakely <jwakely@redhat.com>
3940
3941 * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__]
3942 (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre)
3943 (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1)
3944 (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f)
3945 (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l)
3946 (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j)
3947 (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf)
3948 (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1)
3949 (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3)
3950 (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef)
3951 (hermitel, laguerre, laguerref, laguerrel, legendre, legendref)
3952 (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel)
3953 (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel)
3954 (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations
3955 when the special functions IS is enabled, not for C++17.
3956 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc:
3957 Replace with ...
3958 * testsuite/26_numerics/headers/cmath/functions_global.cc: New test,
3959 without checks for special functions in C++17.
3960 * testsuite/26_numerics/headers/cmath/special_functions_global.cc:
3961 New test.
3962
3963 PR libstdc++/88066
3964 * include/backward/hash_map: Use <> for includes not "".
3965 * include/backward/hash_set: Likewise.
3966 * include/backward/strstream: Likewise.
3967 * include/tr1/bessel_function.tcc: Likewise.
3968 * include/tr1/exp_integral.tcc: Likewise.
3969 * include/tr1/legendre_function.tcc: Likewise.
3970 * include/tr1/modified_bessel_func.tcc: Likewise.
3971 * include/tr1/riemann_zeta.tcc: Likewise.
3972
3973 2019-03-19 Jonathan Wakely <jwakely@redhat.com>
3974
3975 * doc/xml/manual/allocator.xml: Link to table documenting evolution
3976 of extension allocators.
3977 * doc/xml/manual/evolution.xml: Use angle brackets for header names.
3978 Document new headers in 7.2, 8.1 and 9.1 releases.
3979 * doc/xml/manual/using.xml: Adjust link target for new_allocator.
3980 * doc/html/*: Regenerate.
3981
3982 2019-03-12 John David Anglin <dave.anglin@bell.net>
3983
3984 PR libstdc++/89461
3985 * testsuite/lib/libstdc++.exp: Locate libatomic.
3986 * testsuite/lib/dg-options.exp (add_options_for_libatomic): New.
3987 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add
3988 libatomic options.
3989 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
3990 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
3991 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
3992 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
3993
3994 2019-03-11 Jonathan Wakely <jwakely@redhat.com>
3995
3996 PR libstdc++/89460
3997 * configure.ac: Check for sockatmark.
3998 * crossconfig.m4: Check for sockatmark.
3999 * config.h.in: Regenerate.
4000 * configure: Regenerate.
4001 * include/experimental/internet (address_v4::_S_hton): Rename
4002 overloaded functions to _S_hton_16 and _S_ntoh_16.
4003 (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32.
4004 (basic_endpoint): Adjust calls to _S_hton and _S_ntoh.
4005 * include/experimental/socket (basic_socket::at_mark): Check
4006 _GLIBCXX_HAVE_SOCKATMARK.
4007
4008 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use
4009 const variables instead of macros.
4010
4011 PR libstdc++/89629
4012 * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes):
4013 Use correct type for len_aligned.
4014 * testsuite/20_util/hash/89629.cc: New test.
4015
4016 2019-03-11 Jakub Jelinek <jakub@redhat.com>
4017
4018 PR libstdc++/89641
4019 * include/std/atomic (atomic<T>::store, atomic<T>::load,
4020 atomic<T>::exchange, atomic<T>::compare_exchange_weak,
4021 atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int.
4022 * include/bits/atomic_base.h (__atomic_base<T>::operator++,
4023 __atomic_base<T>::operator--, __atomic_base<T>::operator+=,
4024 __atomic_base<T>::operator-=, __atomic_base<T>::operator&=,
4025 __atomic_base<T>::operator|=, __atomic_base<T>::operator^=,
4026 __atomic_base<T*>::operator++, __atomic_base<T*>::operator--,
4027 __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast
4028 memory_order_seq_cst to int.
4029
4030 2019-03-08 Jonathan Wakely <jwakely@redhat.com>
4031
4032 * doc/xml/manual/using.xml: Use link element instead of xref.
4033 * doc/html/*: Regenerate.
4034
4035 * include/bits/fs_path.h (path::format): Add fixed underlying type.
4036
4037 2019-03-08 François Dumont <fdumont@gcc.gnu.org>
4038
4039 PR libstdc++/89477
4040 * include/debug/map.h (map): Use _RequireNotAllocator to constrain
4041 parameters in deduction guides.
4042 * include/debug/multimap.h (multimap): Likewise.
4043 * include/debug/set.h (multimap): Likewise.
4044 * include/debug/multiset.h (multimap): Likewise.
4045 * include/debug/unordered_map (unordered_map): Likewise.
4046 (unordered_multimap): Likewise.
4047 * include/debug/unordered_set (unordered_set): Likewise.
4048 (unordered_multiset): Likewise.
4049
4050 PR libstdc++/89608
4051 * include/debug/unordered_map (unordered_map<>::_M_check_rehashed):
4052 Invalidate all iterators in case of rehash.
4053 (unordered_multimap<>::_M_check_rehashed): Likewise.
4054 * include/debug/unordered_set
4055 (unordered_set<>::_M_check_rehashed): Likewise.
4056 (unordered_multiset<>::_M_check_rehashed): Likewise.
4057 * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New.
4058
4059 2019-03-07 Andreas Schwab <schwab@suse.de>
4060
4061 * config/abi/post/riscv64-linux-gnu: New directory.
4062 * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file.
4063
4064 2019-03-07 Jonathan Wakely <jwakely@redhat.com>
4065
4066 * testsuite/20_util/function_objects/bind_front/1.cc: Change from
4067 compile test to run. Fix typo.
4068
4069 * doc/xml/manual/status_cxx2020.xml: Update C++20 status.
4070 * doc/html/*: Regenerate.
4071
4072 P0356R5 Simplified partial function application
4073 * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define
4074 helpers for bind_front.
4075 (bind_front, __cpp_lib_bind_front): Define.
4076 * testsuite/20_util/function_objects/bind_front/1.cc: New test.
4077
4078 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
4079
4080 * include/std/type_traits (__cpp_lib_bounded_array_traits): Define.
4081 * include/std/version (__cpp_lib_bounded_array_traits): Likewise.
4082 * testsuite/20_util/is_bounded_array/value.cc: Check for macro.
4083 * testsuite/20_util/is_unbounded_array/value.cc: Likewise.
4084
4085 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4086
4087 PR libstdc++/86655 - std::assoc_legendre should not constrain
4088 the value of m (or x).
4089 * include/tr1/legendre_function.tcc (__assoc_legendre_p,
4090 __sph_legendre): If degree > order Don't throw, return 0.
4091 (__legendre_p, __assoc_legendre_p): Don't constrain x either.
4092 * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
4093 * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
4094 * testsuite/tr1/5_numerical_facilities/special_functions/
4095 02_assoc_legendre/pr86655.cc: New test.
4096 * testsuite/tr1/5_numerical_facilities/special_functions/
4097 22_sph_legendre/pr86655.cc: New test.
4098
4099 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
4100
4101 Rewrite variant.
4102 Also PR libstdc++/85517
4103 * include/std/variant (__do_visit): New.
4104 (__variant_cast): Likewise.
4105 (__variant_cookie): Likewise.
4106 (__erased_*): Remove.
4107 (_Variant_storage::_S_vtable): Likewise.
4108 (_Variant_storage::__M_reset_impl): Adjust to use __do_visit.
4109 (_Variant_storage::__M_reset): Adjust.
4110 (__variant_construct): New.
4111 (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use
4112 __variant_construct.
4113 (_Move_ctor_base(_Move_ctor_base&&)): Likewise.
4114 (_Move_ctor_base::__M_destructive_copy): New.
4115 (_Move_ctor_base::__M_destructive_move): Adjust to use
4116 __variant_construct.
4117 (_Copy_assign_base::operator=): Adjust to use __do_visit.
4118 (_Copy_assign_alias): Adjust to check both copy assignment
4119 and copy construction for triviality.
4120 (_Move_assign_base::operator=): Adjust to use __do_visit.
4121 (_Multi_array): Add support for visitors that accept and return
4122 a __variant_cookie.
4123 (__gen_vtable_impl::_S_apply_all_alts): Likewise.
4124 (__gen_vtable_impl::_S_apply_single_alt): Likewise.
4125 (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate
4126 a __variant_cookie temporary for a variant that is valueless and..
4127 (__gen_vtable_impl::__visit_invoke): ..adjust here.
4128 (__gen_vtable::_Array_type): Conditionally make space for
4129 the __variant_cookie visitor case.
4130 (__variant_construct_by_index): New.
4131 (get_if): Adjust to use std::addressof.
4132 (relops): Adjust to use __do_visit.
4133 (variant): Add __variant_cast and __variant_construct_by_index
4134 as friends.
4135 (variant::emplace): Use _M_reset() and __variant_construct_by_index
4136 instead of self-destruction.
4137 (variant::swap): Adjust to use __do_visit.
4138 (visit): Reimplement in terms of __do_visit.
4139 (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit.
4140 * testsuite/20_util/variant/compile.cc: Adjust.
4141 * testsuite/20_util/variant/run.cc: Likewise.
4142
4143 2019-03-06 Jonathan Wakely <jwakely@redhat.com>
4144
4145 * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
4146 constant.
4147 * testsuite/experimental/feat-char8_t.cc: Likewise.
4148
4149 * include/std/type_traits [C++20] (is_bounded_array)
4150 (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
4151 Define.
4152 * testsuite/20_util/is_bounded_array/requirements/
4153 explicit_instantiation.cc: New test.
4154 * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New
4155 test.
4156 * testsuite/20_util/is_bounded_array/value.cc: New test.
4157 * testsuite/20_util/is_unbounded_array/requirements/
4158 explicit_instantiation.cc: New test.
4159 * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New
4160 * test.
4161 * testsuite/20_util/is_unbounded_array/value.cc: New test.
4162
4163 * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to):
4164 Add constexpr.
4165 * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test.
4166
4167 2019-03-05 Jonathan Wakely <jwakely@redhat.com>
4168
4169 * include/c_compatibility/math.h [C++20] (lerp): Add using
4170 declaration.
4171 * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define.
4172 (__lerp): Define function template to implement lerp.
4173 (lerp(float, float, float), lerp(double, double, double))
4174 (lerp(long double, long double, long double)): Define for C++20.
4175 * include/std/numeric [C++20] (__cpp_lib_interpolate): Define.
4176 (midpoint(T, T), midpoint(T*, T*)): Define.
4177 * include/std::version [C++20] (__cpp_lib_interpolate): Define.
4178 * testsuite/26_numerics/lerp.cc: New test.
4179 * testsuite/26_numerics/midpoint/floating.cc: New test.
4180 * testsuite/26_numerics/midpoint/integral.cc: New test.
4181 * testsuite/26_numerics/midpoint/pointer.cc: New test.
4182
4183 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net>
4184
4185 PR libstdc++/88996 Implement P0439R0
4186 Make std::memory_order a scoped enumeration.
4187 * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
4188 add variables for the old enumerators. Adjust calls.
4189 * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
4190 * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.
4191
4192 2019-03-04 Jonathan Wakely <jwakely@redhat.com>
4193
4194 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do
4195 directive.
4196
4197 * include/std/memory_resource (polymorphic_allocator): Add default
4198 template argument for C++20.
4199 (polymorphic_allocator::allocate_bytes)
4200 (polymorphic_allocator::deallocate_bytes)
4201 (polymorphic_allocator::allocate_object)
4202 (polymorphic_allocator::deallocate_object)
4203 (polymorphic_allocator::new_object)
4204 (polymorphic_allocator::delete_object): New member functions for
4205 C++20.
4206 * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
4207 test.
4208
4209 2019-03-03 Jonathan Wakely <jwakely@redhat.com>
4210
4211 PR libstdc++/89562
4212 * src/filesystem/ops-common.h (do_copy_file): Open files in binary
4213 mode for mingw.
4214
4215 2019-03-01 Jonathan Wakely <jwakely@redhat.com>
4216
4217 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource)
4218 [!__cpp_sized_deallocation]: Do not pass size to operator delete.
4219
4220 * include/std/memory (uses_allocator_construction_args): New set of
4221 overloaded functions.
4222 (make_obj_using_allocator, uninitialized_construct_using_allocator):
4223 New functions.
4224 * include/std/memory_resource (polymorphic_allocator::construct)
4225 [__cplusplus > 201703l]: Replace all overloads with a single function
4226 using uses_allocator_construction_args.
4227 * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
4228 test.
4229 * testsuite/20_util/uses_allocator/make_obj.cc: New test.
4230
4231 2019-02-27 Jonathan Wakely <jwakely@redhat.com>
4232
4233 PR libstdc++/89466
4234 * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
4235 stylesheet directories before check for xsltproc. Try to use
4236 xmlcatalog to find local stylesheet directory before trying hardcoded
4237 paths. Add path used by suse to hardcoded paths. Adjust xsltproc
4238 check to look for the same stylesheet as doc/Makefile.am uses. Don't
4239 use xsltproc if xmlcatalog fails to find a local stylesheet.
4240 * configure.ac: Check for xmlcatalog.
4241 * Makefile.in: Regenerate.
4242 * configure: Likewise.
4243 * doc/Makefile.in: Likewise.
4244 * include/Makefile.in: Likewise.
4245 * libsupc++/Makefile.in: Likewise.
4246 * po/Makefile.in: Likewise.
4247 * python/Makefile.in: Likewise.
4248 * src/Makefile.in: Likewise.
4249 * src/c++11/Makefile.in: Likewise.
4250 * src/c++17/Makefile.in: Likewise.
4251 * src/c++98/Makefile.in: Likewise.
4252 * src/filesystem/Makefile.in: Likewise.
4253 * testsuite/Makefile.in: Likewise.
4254
4255 2019-02-26 Jonathan Wakely <jwakely@redhat.com>
4256
4257 PR libstdc++/89477
4258 * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for
4259 container deduction guides.
4260 * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise.
4261 * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain
4262 parameters in deduction guides.
4263 * include/bits/stl_multimap.h (multimap): Likewise.
4264 * include/bits/stl_multiset.h (multiset): Likewise.
4265 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
4266 * include/bits/stl_set.h (set): Likewise.
4267 * include/bits/stl_stack.h (stack): Likewise.
4268 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
4269 use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to
4270 constrain parameters in deduction guides.
4271 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
4272 Likewise.
4273 * testsuite/23_containers/map/cons/deduction.cc: Test additional
4274 deduction cases.
4275 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
4276 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
4277 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
4278 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
4279 Likewise.
4280 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
4281 Likewise.
4282 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
4283
4284 PR libstdc++/89416
4285 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change
4286 to class template and partial specialization using void_t.
4287 (__is_copy_insertable, __is_move_insertable): Adjust base class.
4288
4289 2019-02-24 Jonathan Wakely <jwakely@redhat.com>
4290
4291 PR libstdc++/89416
4292 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make
4293 copy and move members public.
4294
4295 2019-02-23 Jonathan Wakely <jwakely@redhat.com>
4296
4297 * include/std/type_traits (__underlying_type_impl): New helper to
4298 make underlying_type SFINAE-friendly.
4299 (underlying_type): Derive from __underlying_type_impl.
4300 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
4301 test.
4302
4303 PR libstdc++/89446
4304 * include/bits/char_traits.h (__constant_char_array): Check index is
4305 in range before dereferencing.
4306 (char_traits<char>::compare, char_traits<char>::find)
4307 (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
4308 immediately if n is zero.
4309 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
4310 Remove workarounds for PR 67026.
4311 * testsuite/21_strings/basic_string_view/operators/char/89446.cc:
4312 New test.
4313 * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
4314 New test.
4315
4316 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
4317
4318 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust.
4319 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise.
4320
4321 2019-02-22 Jakub Jelinek <jakub@redhat.com>
4322
4323 PR libstdc++/89402
4324 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return
4325 type to std::size_t and argument to type to long double.
4326
4327 2019-02-22 Eric Botcazou <ebotcazou@adacore.com>
4328
4329 * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux.
4330 * config/abi/post/sparc64-linux-gnu: New directory.
4331 * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file.
4332 * config/abi/post/sparc64-linux-gnu/32: New directory.
4333 * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file.
4334
4335 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
4336
4337 * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test.
4338 * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New
4339 test.
4340
4341 2019-02-22 Tom Honermann <tom@honermann.net>
4342
4343 * python/libstdcxx/v6/printers.py (register_type_printers): Add type
4344 printers for u8string and u8string_view.
4345
4346 2019-02-22 Tom Honermann <tom@honermann.net>
4347
4348 * testsuite/18_support/byte/ops.cc: Validate
4349 std::to_integer<char8_t>, std::to_integer<char16_t>, and
4350 std::to_integer<char32_t>.
4351 * testsuite/18_support/numeric_limits/dr559.cc: Validate
4352 std::numeric_limits<char8_t>.
4353 * testsuite/18_support/numeric_limits/lowest.cc: Validate
4354 std::numeric_limits<char8_t>::lowest().
4355 * testsuite/18_support/numeric_limits/max_digits10.cc: Validate
4356 std::numeric_limits<char8_t>::max_digits10.
4357 * testsuite/18_support/type_info/fundamental.cc: Validate
4358 typeinfo for char8_t.
4359 * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating
4360 std::from_chars with char8_t.
4361 * testsuite/20_util/hash/requirements/explicit_instantiation.cc:
4362 Validate explicit instantiation of std::hash<char8_t>.
4363 * testsuite/20_util/is_integral/value.cc: Validate
4364 std::is_integral<char8_t>.
4365 * testsuite/20_util/make_signed/requirements/typedefs-4.cc:
4366 Validate std::make_signed<char8_t>.
4367 * testsuite/21_strings/basic_string/cons/char/deduction.cc:
4368 Validate u8string construction from char8_t sources.
4369 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate
4370 std::pmr::u8string.
4371 * testsuite/21_strings/basic_string_view/operations/compare/
4372 char/70483.cc: Validate substr operations on u8string_view.
4373 * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that
4374 the u8string_view typedef is defined.
4375 * testsuite/21_strings/char_traits/requirements/
4376 constexpr_functions.cc: Validate char_traits<char8_t> constexpr
4377 member functions.
4378 * testsuite/21_strings/char_traits/requirements/
4379 constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17
4380 constexpr member functions.
4381 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate
4382 that the u8string typedef is defined.
4383 * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence
4384 of the std::codecvt<char16_t, char8_t, std::mbstate_t> and
4385 std::codecvt<char32_t, char8_t, std::mbstate_t> facets.
4386 * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line
4387 numbers.
4388 * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
4389 * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
4390 Likewise.
4391 * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
4392 * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc:
4393 Validate std::atomic<char8_t>::is_always_lock_free
4394 * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
4395 Update line numbers.
4396 * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
4397 Likewise.
4398 * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
4399 Likewise.
4400 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
4401 Validate std::experimental::pmr::u8string.
4402 * testsuite/experimental/string_view/typedefs.cc: Validate that the
4403 u8string_view typedef is defined.
4404 * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and
4405 char32_t to the typelists.
4406
4407 2019-02-22 Tom Honermann <tom@honermann.net>
4408
4409 * include/ext/typelist.h: Constrain a partial specialization of
4410 typelist::detail::append_ to only match chain<T1,T2>.
4411
4412 2019-02-21 Jonathan Wakely <jwakely@redhat.com>
4413
4414 PR libstdc++/89416
4415 * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace
4416 class template with class. Replace move and copy member types with
4417 member alias templates, so they are only instantiated when needed.
4418 (__is_copy_insertable, __is_move_insertable): Adjust base class.
4419 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable
4420 test for C++11/14/17 as well.
4421 * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New
4422 test.
4423
4424 2019-02-20 Jakub Jelinek <jakub@redhat.com>
4425
4426 PR libstdc++/89402
4427 * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add
4428 _GLIBCXX_PURE to the alias declaration.
4429
4430 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
4431
4432 * testsuite/21_strings/basic_string/literals/types.cc
4433 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal.
4434 * testsuite/21_strings/basic_string/literals/values.cc
4435 [_GLIBCXX_USE_CHAR8_T]: Likewise.
4436 * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals
4437 potentially having different type.
4438 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
4439 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal
4440 to char.
4441 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise.
4442 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
4443 * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from
4444 string literals only using basic character set.
4445 * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other
4446 u8 literals to char.
4447 * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]:
4448 Test ATOMIC_CHAR8_T_LOCK_FREE.
4449 Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test.
4450 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc
4451 [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t.
4452 * testsuite/experimental/string_view/literals/types.cc
4453 [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8
4454 literal.
4455 * testsuite/experimental/string_view/literals/values.cc
4456 [_GLIBCXX_USE_CHAR8_T]: Likewise.
4457
4458 2019-02-19 Tom Honermann <tom@honermann.net>
4459
4460 * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned
4461 from char16_32_t.cc; validates numeric_limits<char8_t>.
4462 * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New
4463 test cloned from types.cc; validates operator""s for char8_t
4464 returns u8string.
4465 * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New
4466 test cloned from values.cc; validates construction and comparison
4467 of u8string values.
4468 * testsuite/21_strings/basic_string/requirements/
4469 /explicit_instantiation/char8_t/1.cc: New test cloned from
4470 char16_t/1.cc; validates explicit instantiation of
4471 basic_string<char8_t>.
4472 * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc:
4473 New test cloned from types.cc; validates operator""sv for char8_t
4474 returns u8string_view.
4475 * testsuite/21_strings/basic_string_view/literals/
4476 values-char8_t.cc: New test cloned from values.cc; validates
4477 construction and comparison of u8string_view values.
4478 * testsuite/21_strings/basic_string_view/requirements/
4479 explicit_instantiation/char8_t/1.cc: New test cloned from
4480 char16_t/1.cc; validates explicit instantiation of
4481 basic_string_view<char8_t>.
4482 * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc:
4483 New test cloned from char16_t/65049.cc; validates that
4484 char_traits<char8_t> is not vulnerable to the concerns in PR65049.
4485 * testsuite/21_strings/char_traits/requirements/char8_t/
4486 typedefs.cc: New test cloned from char16_t/typedefs.cc; validates
4487 that char_traits<char8_t> member typedefs are present and correct.
4488 * testsuite/21_strings/char_traits/requirements/
4489 explicit_instantiation/char8_t/1.cc: New test cloned from
4490 char16_t/1.cc; validates explicit instantiation of
4491 char_traits<char8_t>.
4492 * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned
4493 from char16_t.cc: validates
4494 codecvt<char16_t, char8_t, mbstate_t>.
4495 * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned
4496 from char32_t.cc: validates
4497 codecvt<char32_t, char8_t, mbstate_t>.
4498 * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from
4499 utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and
4500 codecvt<char32_t, char8_t, std::mbstate_t>.
4501 * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New
4502 test cloned from string.cc; validates filesystem::path construction
4503 from char8_t input.
4504 * testsuite/experimental/feat-char8_t.cc: New test; validates that
4505 the __cpp_lib_char8_t feature test macro is defined with the
4506 correct value.
4507 * testsuite/experimental/filesystem/path/native/string-char8_t.cc:
4508 New test cloned from string.cc; validates filesystem::path
4509 construction from char8_t input.
4510 * testsuite/experimental/string_view/literals/types-char8_t.cc: New
4511 test cloned from types.cc; validates operator""sv for char8_t
4512 returns u8string_view.
4513 * testsuite/experimental/string_view/literals/values-char8_t.cc:
4514 New test cloned from values.cc; validates construction and
4515 comparison of u8string_view values.
4516 * testsuite/experimental/string_view/requirements/
4517 explicit_instantiation/char8_t/1.cc: New test cloned from
4518 char16_t/1.cc; validates explicit instantiation of
4519 basic_string_view<char8_t>.
4520 * testsuite/ext/char8_t/atomic-1.cc: New test; validates that
4521 ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not
4522 enabled.
4523
4524 2019-02-19 Tom Honermann <tom@honermann.net>
4525
4526 P0482R5 char8_t: Standard library support
4527 * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add
4528 typeinfo symbols for char8_t.
4529 * config/abi/pre/gnu.ver: Add CXXABI_1.3.12.
4530 (GLIBCXX_3.4.26): Add symbols for specializations of
4531 numeric_limits and codecvt that involve char8_t.
4532 (CXXABI_1.3.12): Add typeinfo symbols for char8_t.
4533 * include/bits/atomic_base.h: Add atomic_char8_t.
4534 * include/bits/basic_string.h: Add std::hash<u8string> and
4535 operator""s(const char8_t*, size_t).
4536 * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and
4537 __cpp_lib_char8_t.
4538 * include/bits/char_traits.h: Add char_traits<char8_t>.
4539 * include/bits/codecvt.h: Add
4540 codecvt<char16_t, char8_t, mbstate_t>,
4541 codecvt<char32_t, char8_t, mbstate_t>,
4542 codecvt_byname<char16_t, char8_t, mbstate_t>, and
4543 codecvt_byname<char32_t, char8_t, mbstate_t>.
4544 * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to
4545 recognize char8_t as an integral type.
4546 * include/bits/fs_path.h: (path::__is_encoded_char): Recognize
4547 char8_t.
4548 (path::u8string): Return std::u8string when char8_t support is
4549 enabled.
4550 (path::generic_u8string): Likewise.
4551 (path::_S_convert): Handle conversion from char8_t input.
4552 (path::_S_str_convert): Likewise.
4553 * include/bits/functional_hash.h: Add hash<char8_t>.
4554 * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for
4555 char8_t.
4556 * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump
4557 for new char8_t specializations.
4558 * include/bits/localefwd.h: Add missing declarations of
4559 codecvt<char16_t, char, mbstate_t> and
4560 codecvt<char32_t, char, mbstate_t>. Add char8_t declarations
4561 codecvt<char16_t, char8_t, mbstate_t> and
4562 codecvt<char32_t, char8_t, mbstate_t>.
4563 * include/bits/postypes.h: Add u8streampos
4564 * include/bits/stringfwd.h: Add declarations of
4565 char_traits<char8_t> and u8string.
4566 * include/c_global/cstddef: Add __byte_operand<char8_t>.
4567 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
4568 Recognize char8_t.
4569 (path::u8string): Return std::u8string when char8_t support is
4570 enabled.
4571 (path::generic_u8string): Likewise.
4572 (path::_S_convert): Handle conversion from char8_t input.
4573 (path::_S_str_convert): Likewise.
4574 * include/experimental/string: Add u8string.
4575 * include/experimental/string_view: Add u8string_view,
4576 hash<experimental::u8string_view>, and
4577 operator""sv(const char8_t*, size_t).
4578 * include/std/atomic: Add atomic<char8_t> and atomic_char8_t.
4579 * include/std/charconv (__is_int_to_chars_type): Recognize char8_t
4580 as a character type.
4581 * include/std/limits: Add numeric_limits<char8_t>.
4582 * include/std/string_view: Add u8string_view,
4583 hash<experimental::u8string_view>, and
4584 operator""sv(const char8_t*, size_t).
4585 * include/std/type_traits: Add __is_integral_helper<char8_t>,
4586 __make_unsigned<char8_t>, and __make_signed<char8_t>.
4587 * libsupc++/atomic_lockfree_defines.h: Define
4588 ATOMIC_CHAR8_T_LOCK_FREE.
4589 * src/c++11/Makefile.am: Compile with -fchar8_t when compiling
4590 codecvt.cc and limits.cc so that char8_t specializations of
4591 numeric_limits and codecvt and emitted.
4592 * src/c++11/Makefile.in: Likewise.
4593 * src/c++11/codecvt.cc: Define members of
4594 codecvt<char16_t, char8_t, mbstate_t>,
4595 codecvt<char32_t, char8_t, mbstate_t>,
4596 codecvt_byname<char16_t, char8_t, mbstate_t>, and
4597 codecvt_byname<char32_t, char8_t, mbstate_t>.
4598 * src/c++11/limits.cc: Define members of
4599 numeric_limits<char8_t>.
4600 * src/c++98/Makefile.am: Compile with -fchar8_t when compiling
4601 locale_init.cc and localename.cc.
4602 * src/c++98/Makefile.in: Likewise.
4603 * src/c++98/locale_init.cc: Add initialization for the
4604 codecvt<char16_t, char8_t, mbstate_t> and
4605 codecvt<char32_t, char8_t, mbstate_t> facets.
4606 * src/c++98/localename.cc: Likewise.
4607 * testsuite/util/testsuite_abi.cc: Validate ABI bump.
4608
4609 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com>
4610
4611 * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts.
4612 * 27_io/filesystem/operations/resize_file.cc: Likewise.
4613 * 27_io/filesystem/path/generation/normal2.cc: Likewise.
4614
4615 2019-02-14 Jonathan Wakely <jwakely@redhat.com>
4616
4617 * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status.
4618 * doc/html/*: Regenerate.
4619
4620 * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table.
4621 * doc/html/*: Regenerate.
4622
4623 * doc/xml/manual/intro.xml: Document LWG 2586 status.
4624 * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue
4625 allocator type in is_constructible checks.
4626 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
4627 * testsuite/20_util/scoped_allocator/dr2586.cc: New test.
4628 * testsuite/20_util/tuple/cons/allocators.cc: Add test using
4629 problematic type from LWG 2586 discussion.
4630 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error.
4631 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
4632
4633 * configure.ac: Check for C11 timespec_get function.
4634 * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd)
4635 (openbsd): Likewise
4636 * config.h.in: Regenerate.
4637 * configure: Regenerate.
4638 * include/c_global/ctime (timespec, timespec_get): Add to namespace
4639 std for C++17 and up.
4640
4641 * doc/xml/manual/intro.xml: Document LWG 2537 status.
4642 * include/bits/stl_queue.h
4643 (priority_queue(const Compare&, const Container&, const Alloc&))
4644 (priority_queue(const Compare&, Container&&, const Alloc&)): Call
4645 make_heap.
4646 * testsuite/23_containers/priority_queue/dr2537.cc: New test.
4647
4648 * doc/xml/manual/intro.xml: Document LWG 2566 status.
4649 * include/bits/stl_queue.h (queue, priority_queue): Add static
4650 assertions to enforce LWG 2566 requirement on value_type.
4651 * include/bits/stl_stack.h (stack): Likewise.
4652
4653 PR middle-end/89303
4654 * testsuite/20_util/enable_shared_from_this/89303.cc: New test.
4655
4656 * doc/xml/manual/intro.xml: Document LWG 2735 status.
4657 * include/bits/std_abs.h: Add comment about LWG 2735.
4658 * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test.
4659
4660 2019-02-13 Jonathan Wakely <jwakely@redhat.com>
4661
4662 PR libstdc++/89345
4663 * include/std/version [__cpp_impl_destroying_delete]
4664 (__cpp_lib_destroying_delete): Only define for C++2a and later.
4665 * libsupc++/new [__cpp_impl_destroying_delete]
4666 (__cpp_lib_destroying_delete): Likewise.
4667 (destroying_delete_t, destroying_delete): Likewise, but define even
4668 when __cpp_impl_destroying_delete is not defined.
4669 * testsuite/18_support/destroying_delete.cc: New test.
4670
4671 2019-02-11 Jonathan Wakely <jwakely@redhat.com>
4672
4673 PR libstdc++/89023
4674 * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test.
4675 * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test.
4676 * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test.
4677 * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove.
4678
4679 2019-02-09 Jonathan Wakely <jwakely@redhat.com>
4680
4681 PR libstdc++/71044
4682 * include/bits/fs_path.h (path::has_root_name)
4683 (path::has_root_directory, path::has_root_path)
4684 (path::has_relative_path, path::has_parent_path)
4685 (path::has_filename, path::has_stem, path::has_extension)
4686 (path::is_absolute, path::is_relative, path::_M_find_extension): Add
4687 noexcept.
4688 * src/c++17/fs_path.cc (path::has_root_name)
4689 (path::has_root_directory, path::has_root_path)
4690 (path::has_relative_path, path::has_parent_path)
4691 (path::has_filename, path::_M_find_extension): Add noexcept.
4692
4693 2019-02-06 Jonathan Wakely <jwakely@redhat.com>
4694
4695 PR libstdc++/89102 (partial)
4696 * include/std/type_traits (common_type<>): Define.
4697 (common_type<T>): Derive from common_type<T, T>.
4698 * testsuite/20_util/common_type/requirements/explicit_instantiation.cc:
4699 Test zero-length template argument list.
4700 * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc:
4701 Test additional single argument cases.
4702 * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc:
4703 Adjust expected error.
4704
4705 2019-02-05 Jonathan Wakely <jwakely@redhat.com>
4706
4707 PR libstdc++/89128
4708 * include/bits/stl_queue.h (queue, priority_queue): Add deduction
4709 guides.
4710 * include/bits/stl_stack.h (stack): Likewise.
4711 * testsuite/23_containers/priority_queue/deduction.cc: New test.
4712 * testsuite/23_containers/queue/deduction.cc: New test.
4713 * testsuite/23_containers/stack/deduction.cc: New test.
4714
4715 PR libstdc++/89194
4716 * include/std/type_traits (__is_convertible_helper)
4717 (__is_convertible_helper<_From, _To, false>): Revert changes to
4718 support is_nothrow_convertible.
4719 (__is_nt_convertible_helper): New helper.
4720 (is_nothrow_convertible): Use __is_nt_convertible_helper.
4721
4722 * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore
4723 use of CopyConsOnlyType, but also test DelAnyAssign for completeness.
4724
4725 PR libstdc++/89130
4726 * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to
4727 __is_alloc_insertable_impl. Replace single type member with two
4728 members, one for each of copy and move insertable.
4729 (__is_move_insertable): New trait for internal use.
4730 * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type))
4731 (vector::_S_nothrow_relocate(true_type)): New functions to
4732 conditionally check if __relocate_a can throw.
4733 (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based
4734 on __is_move_insertable.
4735 (vector::_S_do_relocate): New overloaded functions to conditionally
4736 call __relocate_a.
4737 (vector::_S_relocate): New function that dispatches to _S_do_relocate
4738 based on _S_use_relocate.
4739 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
4740 (vector::_M_default_append): Call _S_relocate instead of __relocate_a.
4741 * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New.
4742
4743 PR libstdc++/89090
4744 * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused
4745 parameter unnamed. Add message to static assertion.
4746 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
4747 (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr
4748 in C++11 code.
4749
4750 2019-02-05 Marc Glisse <marc.glisse@inria.fr>
4751
4752 PR libstdc++/87106
4753 * include/bits/stl_uninitialized.h (__is_trivially_relocatable):
4754 Rename...
4755 (__is_bitwise_relocatable): ... to this.
4756 (__relocate_a_1): Adapt.
4757 * include/bits/stl_deque.h (__is_trivially_relocatable): Rename...
4758 (__is_bitwise_relocatable): ... to this.
4759
4760 2019-01-30 Jonathan Wakely <jwakely@redhat.com>
4761
4762 PR libstdc++/89117
4763 * src/c++17/fs_path.cc (path::replace_extension): Erase extension from
4764 final component as well as from _M_pathname. Append the dot using
4765 operator+= instead of only to _M_pathname.
4766 (path::_M_find_extension): Reformat slightly.
4767 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
4768 Add more test cases.
4769
4770 2019-01-30 Ulrich Drepper <drepper@redhat.com>
4771
4772 * doc/xml/manual/status_cxx2020.xml: Update P0600 entry.
4773
4774 2019-01-29 Jonathan Wakely <jwakely@redhat.com>
4775
4776 * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect
4777 constexpr specifiers from arg and proj.
4778
4779 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for
4780 __shared_ptr instantiations used by gcc4-compatible ABI.
4781
4782 * include/experimental/forward_list (experimental::erase): Qualify
4783 call to erase_if.
4784 * include/experimental/list (experimental::erase): Likewise.
4785 * include/std/forward_list (std::erase): Likewise.
4786 * include/std/list (std::erase): Likewise.
4787
4788 * testsuite/20_util/reference_wrapper/result_type.cc: Disable for
4789 C++2a.
4790 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
4791 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
4792 * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
4793 * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
4794 * testsuite/ext/array_allocator/26875.cc: Likewise.
4795 * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
4796 * testsuite/util/replacement_memory_operators.h: Likewise.
4797 * testsuite/util/testsuite_allocator.h: Likewise.
4798
4799 * include/std/memory_resource (__pool_resource::_M_unpooled): Use
4800 normal mode vector, even for debug mode.
4801 * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector):
4802 Define alias template for normal mode vector.
4803
4804 2019-01-28 Jonathan Wakely <jwakely@redhat.com>
4805
4806 PR libstdc++/68737
4807 * config/locale/generic/c_locale.h (__convert_from_v)
4808 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
4809 * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
4810 * include/bits/locale_facets.tcc (num_put::_M_insert_float)
4811 [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
4812
4813 2019-01-24 Jonathan Wakely <jwakely@redhat.com>
4814
4815 PR libstdc++/88840
4816 * include/bits/stl_vector.h (vector::__use_relocate): Replace static
4817 data member with static member function _S_use_relocate().
4818 * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert)
4819 (vector::_M_default_append): Use _S_use_relocate() instead of
4820 __use_relocate.
4821
4822 * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare
4823 sign of results.
4824
4825 2019-01-22 Jonathan Wakely <jwakely@redhat.com>
4826
4827 PR libstdc++/88740
4828 * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to
4829 write to stderr instead of using printf.
4830
4831 2019-01-21 Jakub Jelinek <jakub@redhat.com>
4832
4833 PR libstdc++/86590
4834 * include/bits/char_traits.h (__constant_string_p,
4835 __constant_char_array_p): Use __builtin_is_constant_evaluated if
4836 available.
4837
4838 2019-01-20 Ulrich Drepper <drepper@redhat.com>
4839
4840 Implement C++20 P0600r1.
4841 * include/backward/hash_map: Add nodiscard attribute to empty.
4842 * include/backward/hash_set: Likewise.
4843 * backward/hashtable.h: Likewise.
4844 * include/bits/basic_string.h: Likewise.
4845 * include/bits/forward_list.h: Likewise.
4846 * include/bits/hashtable.h: Likewise.
4847 * include/bits/regex.h: Likewise.
4848 * include/bits/stl_deque.h: Likewise.
4849 * include/bits/stl_list.h: Likewise.
4850 * include/bits/stl_map.h: Likewise.
4851 * include/bits/stl_multimap.h: Likewise.
4852 * include/bits/stl_multiset.h: Likewise.
4853 * include/bits/stl_queue.h: Likewise.
4854 * include/bits/stl_set.h: Likewise.
4855 * include/bits/stl_stack.h: Likewise.
4856 * include/bits/stl_tree.h: Likewise.
4857 * include/bits/stl_vector.h: Likewise.
4858 * include/bits/unordered_map.h: Likewise.
4859 * include/bits/unordered_set.h: Likewise.
4860 * include/debug/array: Likewise.
4861 * include/experimental/any: Likewise.
4862 * include/experimental/bits/fs_path.h: Likewise.
4863 * include/experimental/internet: Likewise.
4864 * include/experimental/string_view: Likewise.
4865 * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp:
4866 Likewise.
4867 * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp:
4868 Likewise.
4869 * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp:
4870 Likewise.
4871 * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp:
4872 Likewise.
4873 * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp:
4874 Likewise.
4875 * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp:
4876 Likewise.
4877 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp:
4878 Likewise.
4879 * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp:
4880 Likewise.
4881 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
4882 info_fn_imps.hpp: Likewise.
4883 * include/ext/pb_ds/detail/left_child_next_sibling_heap_/
4884 left_child_next_sibling_heap_.hpp: Likewise.
4885 * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp:
4886 Likewise.
4887 * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp:
4888 Likewise.
4889 * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp:
4890 Likewise.
4891 * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp:
4892 Likewise.
4893 * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp:
4894 Likewise.
4895 * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:
4896 Likewise.
4897 * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp:
4898 Likewise.
4899 * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise.
4900 * include/ext/pb_ds/trie_policy.hpp: Likewise.
4901 * include/ext/rope: Likewise.
4902 * include/ext/slist: Likewise.
4903 * include/ext/vstring.h: Likewise.
4904 * include/profile/array: Likewise.
4905 * include/std/array: Likewise.
4906 * include/tr1/array: Likewise.
4907 * include/tr1/hashtable.h: Likewise.
4908 * include/tr1/regex: Likewise.
4909 * include/tr2/dynamic_bitset: Likewise.
4910 * include/bits/alloc_traits.h: Add nodiscard attribute to
4911 allocate.
4912 * include/experimental/memory_resource: Likewise.
4913 * include/ext/alloc_traits.h: Likewise.
4914 * include/ext/array_allocator.h: Likewise.
4915 * include/ext/bitmap_allocator.h: Likewise.
4916 * include/ext/debug_allocator.h: Likewise.
4917 * include/ext/extptr_allocator.h: Likewise.
4918 * include/ext/mt_allocator.h: Likewise.
4919 * include/ext/new_allocator.h: Likewise.
4920 * include/ext/pool_allocator.h: Likewise.
4921 * include/ext/throw_allocator.h: Likewise.
4922 * include/std/scoped_allocator: Likewise.
4923 * libsupc++/eh_alloc.cc: Likewise.
4924 * include/std/future: Add nodiscard attribute to async.
4925 * libsupc++/new: Add nodiscard attribute to new.
4926
4927 2019-01-18 Jonathan Wakely <jwakely@redhat.com>
4928
4929 PR libstdc++/87514
4930 PR libstdc++/87520
4931 PR libstdc++/88782
4932 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol.
4933 * include/bits/shared_ptr.h
4934 (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...))
4935 (allocate_shared): Change to use new tag type.
4936 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq):
4937 Declare new member function.
4938 (_Sp_alloc_shared_tag): Define new type.
4939 (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend.
4940 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use
4941 _Sp_make_shared_tag::_S_eq to check type_info.
4942 (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)):
4943 Constrain to prevent being called with _Sp_alloc_shared_tag.
4944 (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)):
4945 Replace constructor with ...
4946 (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use
4947 reference parameter so address of the new object can be returned to
4948 the caller. Obtain the allocator from the tag type.
4949 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace
4950 constructor with ...
4951 (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr
4952 to the __shared_count constructor.
4953 (__allocate_shared): Change to use new tag type.
4954 * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define.
4955
4956 2019-01-17 Jonathan Wakely <jwakely@redhat.com>
4957
4958 * src/c++17/fs_ops.cc
4959 (equivalent(const path&, const path&, error_code&))
4960 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to
4961 compare files instead of relying on incomplete info returned by stat.
4962
4963 PR libstdc++/88884
4964 * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
4965 if the path is already absolute.
4966 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
4967 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.
4968
4969 PR libstdc++/88881
4970 * src/c++17/fs_ops.cc (canonical(const path&, error_code&))
4971 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour
4972 of filesystem::exists.
4973 (create_directories(const path&, error_code&)): Add assertions.
4974 (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]:
4975 Add workaround for bug in _wstat for paths with trailing slash.
4976 * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust
4977 for expected behaviour on mingw.
4978 * testsuite/experimental/filesystem/operations/create_directories.cc:
4979 Likewise.
4980 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use
4981 "TMP" instead of "TMPDIR" and clean environment before each test. Do
4982 not test permissions on mingw targets.
4983
4984 2019-01-16 Jonathan Wakely <jwakely@redhat.com>
4985
4986 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream
4987 constructors and open members taking wide strings. Fix patterns for
4988 filesystem::path members to match wstring_view parameters. Add
4989 exports for shared_ptr members used by directory iterators.
4990 * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the
4991 error code parameter if the file doesn't exist.
4992 * src/filesystem/ops.cc (remove(const path&, error_code&)):
4993 Likewise.
4994 * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected
4995 values for mingw targets, where "/" is not an absolute path. Do not
4996 test symlinks on mingw targets.
4997 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
4998 * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks
4999 on mingw targets.
5000 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
5001 * testsuite/27_io/filesystem/operations/create_directories.cc: Check
5002 that each component of the path is created.
5003 * testsuite/experimental/filesystem/operations/create_directories.cc:
5004 Likewise.
5005 * testsuite/27_io/filesystem/operations/exists.cc: Do not test
5006 permissions on mingw targets.
5007 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
5008 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
5009 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
5010 * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for
5011 mingw targets.
5012 * testsuite/experimental/filesystem/operations/permissions.cc:
5013 Likewise.
5014 * testsuite/27_io/filesystem/operations/remove.cc: Do not test
5015 symlinks or permissions on mingw targets.
5016 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
5017 * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test
5018 symlinks on mingw targets.
5019 * testsuite/experimental/filesystem/operations/remove_all.cc:
5020 Likewise.
5021 * testsuite/27_io/filesystem/operations/status.cc: Do not test
5022 permissions on mingw targets.
5023 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not
5024 test symlinks on mingw targets.
5025 * testsuite/experimental/filesystem/operations/space.cc: Fix test
5026 for mingw targets.
5027
5028 2019-02-14 Ulrich Drepper <drepper@redhat.com>
5029
5030 PR libstdc++/88738
5031 Warn about unused comparisons of shared_ptr/unique_ptr
5032 * include/bits/c++config [_GLIBCXX_NODISCARD]: Define.
5033 * include/bits/shared_ptr.h: Use it for operator ==, !=,
5034 <, <=, >, >= for shared_ptr.
5035 * include/bits/unique_ptr.h: Likewise for unique_ptr.
5036
5037 2019-01-15 Jonathan Wakely <jwakely@redhat.com>
5038
5039 * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define
5040 as 201611L, because P0497R0 changes are supported.
5041 * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise.
5042
5043 * include/bits/erase_if.h [__cplusplus > 201703L]
5044 (__cpp_lib_erase_if): Only define for C++2a.
5045 * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
5046 (__cpp_lib_null_iterators): Define.
5047 * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG]
5048 (__cpp_lib_null_iterators): Define.
5049 [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define.
5050
5051 * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2
5052 status.
5053 * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms):
5054 Define.
5055 * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3
5056 changes are supported.
5057 * include/std/optional (__cpp_lib_optional): Likewise.
5058 * include/std/variant (__cpp_lib_variant): Likewise.
5059 * include/std/version [!__STRICT_ANSI__]
5060 (__cpp_lib_uncaught_exceptions): Define as long integer.
5061 [__cplusplus >= 201703L] (__cpp_lib_any)
5062 (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions)
5063 (__cpp_lib_variant): Define for C++17.
5064 [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define
5065 as long integer.
5066 * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long
5067 integer.
5068
5069 * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status.
5070
5071 2019-01-12 Jonathan Wakely <jwakely@redhat.com>
5072
5073 PR libstdc++/88811
5074 PR libstdc++/83306
5075 * src/filesystem/path.cc: Fix typo. If first path is empty, show []
5076 before second path.
5077 * testsuite/experimental/filesystem/filesystem_error/cons.cc: New
5078 test.
5079
5080 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
5081
5082 * doc/xml/manual/intro.xml: Include new section.
5083 * doc/xml/manual/status_cxx2017.xml: Document more
5084 implementation-defined properties of the library.
5085 * doc/xml/manual/status_cxx2020.xml: Document C++2a status.
5086 * doc/html/*: Regenerate.
5087
5088 * include/bits/refwrap.h [__cplusplus > 201703L]
5089 (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base)
5090 (_Reference_wrapper_base_memfun): Do not define for C++2a.
5091 (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun
5092 for C++2a.
5093 (reference_wrapper::operator()): Add static assertion.
5094 * testsuite/20_util/reference_wrapper/incomplete.cc: New test.
5095
5096 * include/std/chrono (duration_values::zero(), duration_values::min())
5097 (duration_values::max()): Add noexcept.
5098 (duration::zero(), duration::min(), duration::max()): Likewise.
5099 (time_point::zero(), time_point::min(), time_point::max()): Likewise.
5100 * testsuite/20_util/duration/requirements/noexcept.cc: New test.
5101 * testsuite/20_util/time_point/requirements/noexcept.cc: New test.
5102
5103 * include/std/version (__cpp_lib_erase_if): Move to C++20 group.
5104
5105 2019-01-11 Jakub Jelinek <jakub@redhat.com>
5106
5107 * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define.
5108 * include/std/version (__cpp_lib_is_constant_evaluated): Define.
5109
5110 2019-01-11 Jonathan Wakely <jwakely@redhat.com>
5111
5112 PR libstdc++/88802
5113 * include/bits/functional_hash.h (hash<nullptr_t>): Define
5114 specialization for C++17 (P0513R0, LWG 2817).
5115 * testsuite/20_util/hash/nullptr.cc: New test.
5116
5117 PR libstdc++/88125
5118 * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate
5119 pattern for std::basic_stringbuf::str().
5120
5121 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to
5122 basic_ostream::operator<< patterns.
5123
5124 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
5125
5126 * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix
5127 test failures on targets with 32-bit time_t.
5128
5129 * include/bits/erase_if.h: Define __cpp_lib_erase_if.
5130 * include/std/deque: Likewise.
5131 * include/std/forward_list: Likewise.
5132 * include/std/list: Likewise.
5133 * include/std/string: Likewise.
5134 * include/std/vector: Likewise.
5135 * include/std/version: Likewise.
5136 * testsuite/21_strings/basic_string/erasure.cc: Test macro.
5137 * testsuite/23_containers/deque/erasure.cc: Likewise.
5138 * testsuite/23_containers/forward_list/erasure.cc: Likewise.
5139 * testsuite/23_containers/list/erasure.cc: Likewise.
5140 * testsuite/23_containers/map/erasure.cc: Likewise.
5141 * testsuite/23_containers/set/erasure.cc: Likewise.
5142 * testsuite/23_containers/unordered_map/erasure.cc: Likewise.
5143 * testsuite/23_containers/unordered_set/erasure.cc: Likewise.
5144 * testsuite/23_containers/vector/erasure.cc: Likewise.
5145
5146 * include/experimental/internet [AI_NUMERICSERV]
5147 (resolver_base::numeric_service): Define conditionally.
5148 * testsuite/experimental/net/internet/resolver/base.cc: Test it
5149 conditionally.
5150 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
5151 Likewise.
5152
5153 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com>
5154 Jonathan Wakely <jwakely@redhat.com>
5155
5156 Implement LWG 2221
5157 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
5158 (GLIBCXX_3.4.26): Add new exports.
5159 * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
5160 correct list of sources.
5161 * include/Makefile.in: Regenerate.
5162 * include/std/ostream (operator<<(nullptr_t)): New member function.
5163 * src/c++17/ostream-inst.cc: New file.
5164 * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
5165 test.
5166
5167 2019-01-10 Jonathan Wakely <jwakely@redhat.com>
5168
5169 * testsuite/util/testsuite_fs.h (nonexistent_path): Include name
5170 of the source file containing the caller.
5171 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove
5172 directories created by test.
5173 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
5174 Likewise.
5175 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
5176 Likewise.
5177 * testsuite/experimental/filesystem/iterators/
5178 recursive_directory_iterator.cc: Likewise.
5179
5180 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5181
5182 PR tree-optimization/88775
5183 * include/bits/stl_function.h (greater<_Tp*>::operator(),
5184 less<_Tp*>::operator(), greater_equal<_Tp*>::operator(),
5185 less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated
5186 instead of __builtin_constant_p if available. Don't bother with
5187 the pointer comparison in C++11 and earlier.
5188
5189 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5190
5191 PR other/16615
5192
5193 * include/ext/bitmap_allocator.h: Mechanically replace "can not"
5194 with "cannot".
5195
5196 2019-01-09 Jonathan Wakely <jwakely@redhat.com>
5197
5198 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output
5199 for filesystem::path. Give variables more distinctive names.
5200
5201 * include/std/optional (_Optional_payload_base::_M_copy_assign): New
5202 member function to perform non-trivial assignment.
5203 (_Optional_payload_base::_M_move_assign): Likewise.
5204 (_Optional_payload<T, true, false, true>::operator=)
5205 (_Optional_payload<T, true, true, false>::operator=)
5206 (_Optional_payload<T, true, false, false>::operator=): Call
5207 _M_copy_assign and/or _M_move_assign to do non-trivial assignments.
5208
5209 PR libstdc++/88204
5210 * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not
5211 test std::complex<long double> if long double format is IBM128.
5212 * testsuite/26_numerics/complex/requirements/more_constexpr.cc:
5213 Likewise.
5214
5215 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
5216
5217 * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support
5218 for old std::unique_ptr layout.
5219 * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test
5220 to become valueless. Add filesystem::path tests.
5221
5222 PR libstdc++/87855
5223 * include/std/optional (_Optional_payload_base): New class template
5224 for common code hoisted from _Optional_payload specializations. Use
5225 a template for the union, to allow a partial specialization for
5226 types with non-trivial destructors. Add constructors for in-place
5227 initialization to the union.
5228 (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct
5229 to perform non-trivial copy construction, instead of relying on
5230 non-standard copy elision in a delegating constructor.
5231 (_Optional_payload(bool, _Optional_payload&&)): Likewise for
5232 non-trivial move construction.
5233 (_Optional_payload): Derive from _Optional_payload_base and use it
5234 for everything except the non-trivial assignment operators, which are
5235 defined as needed.
5236 (_Optional_payload<false, C, M>): Derive from the specialization
5237 _Optional_payload<true, false, false> and add a destructor.
5238 (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset):
5239 Forward to corresponding members of _Optional_payload.
5240 (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get):
5241 Hoist common members from _Optional_base.
5242 (_Optional_base): Make all members and base class public.
5243 (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to
5244 _Optional_base_impl.
5245 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add
5246 support for new std::optional layout.
5247 * testsuite/libstdc++-prettyprinters/compat.cc: New test.
5248
5249 PR libstdc++/88066
5250 * include/bits/locale_conv.h: Use <> for includes not "".
5251 * include/ext/random: Likewise.
5252 * include/ext/vstring.h: Likewise.
5253
5254 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5255
5256 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
5257 (GLIBCXX_3.4.21): Likewise.
5258
5259 2019-01-08 Jonathan Wakely <jwakely@redhat.com>
5260
5261 PR libstdc++/88749
5262 * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition
5263 to match the one that controls whether utimbuf and utime are declared.
5264
5265 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
5266
5267 PR libstdc++/87787
5268 * include/bits/char_traits.h (char_traits::move): Do not pass null
5269 pointers to memmove.
5270 * include/bits/locale_facets.h
5271 (ctype<char>::widen(const char*, const char*, char*)): Do not
5272 pass null pointers to memcpy.
5273 (ctype<char>::narrow(const char*, const char*, char, char*)):
5274 Likewise.
5275 (ctype<char>::do_widen(const char*, const char*, char*)):
5276 Likewise.
5277 (ctype<char>::do_narrow(const char*, const char*, char, char*)):
5278 Likewise.
5279
5280 * doc/xml/manual/spine.xml: Update copyright years.
5281 * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs.
5282 * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs
5283 for C++17 filesystem library.
5284 * doc/html/*: Regenerate.
5285
5286 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate.
5287 * config.h.in: Regenerate.
5288 * config/abi/pre/gnu.ver: Order patterns for filesystem operations
5289 alphabetically and add missing entries for copy_symlink,
5290 hard_link_count, rename, and resize_file.
5291 * configure: Regenerate.
5292 * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is
5293 used unconditionally.
5294 * src/filesystem/ops-common.h (__gnu_posix::truncate)
5295 [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only
5296 supports truncating to zero length.
5297 * testsuite/27_io/filesystem/operations/all.cc: New test.
5298 * testsuite/27_io/filesystem/operations/resize_file.cc: New test.
5299
5300 2019-01-06 Jonathan Wakely <jwakely@redhat.com>
5301
5302 PR libstdc++/86756
5303 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
5304 lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
5305 * config.h.in: Regenerate.
5306 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
5307 remaining std::filesystem types and functions.
5308 * configure: Regenerate.
5309 * src/c++17/Makefile.am: Add C++17 filesystem sources.
5310 * src/c++17/Makefile.in: Regenerate.
5311 * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
5312 here, and change name of included file.
5313 * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
5314 here, and change name of included file.
5315 * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
5316 path to dir-common.h.
5317 * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
5318 path to ops-common.h. Disable -Wunused-parameter warnings.
5319 (internal_file_clock): Define unconditionally.
5320 [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
5321 define.
5322 (do_copy_file, do_space): Move definitions to ops.common.h.
5323 (copy, file_size, hard_link_count, last_write_time, space): Only
5324 perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
5325 report an error.
5326 (last_write_time, read_symlink): Remove unused attributes from
5327 parameters.
5328 * src/filesystem/Makefile.am: Remove C++17 filesystem sources.
5329 * src/filesystem/Makefile.in: Regenerate.
5330 * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
5331 * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
5332 * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
5333 * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
5334 * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
5335 dummy types and functions instead of using #error.
5336 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
5337 * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
5338 in terms of stat.
5339 [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
5340 (do_copy_file, do_space): Move definitions here from std-ops.cc.
5341 * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
5342 to account for new namespace.
5343 * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
5344 -lstdc++fs from dg-options.
5345 * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
5346 * testsuite/27_io/filesystem/file_status/1.cc: Likewise.
5347 * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
5348 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
5349 * testsuite/27_io/filesystem/iterators/directory_iterator.cc:
5350 Likewise.
5351 * testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
5352 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
5353 Likewise.
5354 * testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
5355 * testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
5356 * testsuite/27_io/filesystem/operations/copy.cc: Likewise.
5357 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
5358 * testsuite/27_io/filesystem/operations/create_directories.cc:
5359 Likewise.
5360 * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
5361 * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
5362 * testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
5363 * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
5364 * testsuite/27_io/filesystem/operations/exists.cc: Likewise.
5365 * testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
5366 * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
5367 * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
5368 * testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
5369 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
5370 * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
5371 * testsuite/27_io/filesystem/operations/relative.cc: Likewise.
5372 * testsuite/27_io/filesystem/operations/remove.cc: Likewise.
5373 * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
5374 * testsuite/27_io/filesystem/operations/space.cc: Likewise.
5375 * testsuite/27_io/filesystem/operations/status.cc: Likewise.
5376 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
5377 * testsuite/27_io/filesystem/operations/temp_directory_path.cc:
5378 Likewise.
5379 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
5380
5381
5382 PR libstdc++/86756
5383 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for
5384 typeinfo and vtables less greedy.
5385 (GLIBCXX_3.4.26): Export symbols for std::filesystem::path.
5386 * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc.
5387 * src/c++17/Makefile.in: Regenerate.
5388 * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to
5389 here, and change name of included file.
5390 * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here.
5391 * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc
5392 from sources.
5393 * src/filesystem/Makefile.in: Regenerate.
5394 * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc.
5395 * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc.
5396 * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs
5397 from dg-options and remove dg-require-filesystem-ts.
5398 * testsuite/27_io/filesystem/path/append/source.cc: Likewise.
5399 * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise.
5400 * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise.
5401 * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise.
5402 * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
5403 * testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
5404 * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
5405 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
5406 * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise.
5407 * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise.
5408 * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise.
5409 * testsuite/27_io/filesystem/path/construct/default.cc: Likewise.
5410 * testsuite/27_io/filesystem/path/construct/format.cc: Likewise.
5411 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
5412 * testsuite/27_io/filesystem/path/construct/range.cc: Likewise.
5413 * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise.
5414 * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise.
5415 * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise.
5416 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise.
5417 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise.
5418 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
5419 Likewise.
5420 * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise.
5421 * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise.
5422 * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise.
5423 * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise.
5424 * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise.
5425 * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise.
5426 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
5427 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise.
5428 * testsuite/27_io/filesystem/path/itr/components.cc: Likewise.
5429 * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise.
5430 * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise.
5431 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc:
5432 Likewise.
5433 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc:
5434 Likewise.
5435 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
5436 Likewise.
5437 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
5438 Likewise.
5439 * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise.
5440 * testsuite/27_io/filesystem/path/native/string.cc: Likewise.
5441 * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise.
5442 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise.
5443 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
5444 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
5445 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
5446 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
5447 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise.
5448 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
5449 Likewise.
5450 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
5451 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
5452 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
5453 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise.
5454 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
5455
5456 PR libstdc++/87431
5457 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
5458 Check is_trivially_copyable instead of is_scalar.
5459 (variant::emplace<N, Args>(Args&&...)): If construction of the new
5460 contained value can throw and its type is trivially copyable then
5461 construct into a temporary variant and move from it, to provide the
5462 strong exception safety guarantee.
5463 (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)):
5464 Likewise.
5465 * testsuite/20_util/variant/87431.cc: New test.
5466 * testsuite/20_util/variant/run.cc: Adjust test so that throwing
5467 conversion causes valueless state.
5468
5469 PR libstdc++/88607
5470 * testsuite/17_intro/headers/c++1998/charset.cc: New test.
5471 * testsuite/17_intro/headers/c++2011/charset.cc: New test.
5472 * testsuite/17_intro/headers/c++2014/charset.cc: New test.
5473 * testsuite/17_intro/headers/c++2017/charset.cc: New test.
5474 * testsuite/17_intro/headers/c++2020/charset.cc: New test.
5475
5476 2019-01-05 Jonathan Wakely <jwakely@redhat.com>
5477
5478 * include/bits/fs_fwd.h (__file_clock): Define new clock.
5479 (file_time_type): Redefine in terms of __file_clock.
5480 * src/filesystem/ops-common.h (file_time): Add FIXME comment about
5481 overflow.
5482 * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give
5483 internal linkage.
5484 (internal_file_lock): New helper type for accessing __file_clock.
5485 (do_copy_file): Use internal_file_lock to convert system time to
5486 file_time_type.
5487 (last_write_time(const path&, error_code&)): Likewise.
5488 (last_write_time(const path&, file_time_type, error_code&)): Likewise.
5489
5490 2019-01-04 Jonathan Wakely <jwakely@redhat.com>
5491
5492 * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy
5493 for const member functions of std::basic_string.
5494 (GLIBCXX_3.4.26): Export member functions of std::basic_string added
5495 in C++17.
5496 * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)):
5497 Make non-standard constructor private.
5498 [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)):
5499 Likewise.
5500 * include/bits/basic_string.tcc (std::string, std::wstring): Declare
5501 explicit instantiations for C++17 as well as earlier dialects.
5502 * src/c++17/Makefile.am: Add new source files.
5503 * src/c++17/Makefile.in: Regenerate.
5504 * src/c++17/cow-string-inst.cc: New file defining explicit
5505 instantiations for basic_string member functions added in C++17.
5506 * src/c++17/string-inst.cc: Likewise.
5507
5508 * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended
5509 copy/move constructors for old std::basic_string.
5510 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
5511 (basic_string::reference, basic_string::const_reference): Define
5512 as plain references for C++11 and later.
5513 (basic_string::basic_string()): Put constructor body outside
5514 preprocessor conditional groups.
5515 (basic_string::basic_string(basic_string&&)): Move _Alloc_hider
5516 instead of copying it.
5517 (basic_string::basic_string(const basic_string&, const _Alloc&)):
5518 Define.
5519 (basic_string::basic_string(basic_string&&, const _Alloc&)):
5520 Define.
5521 * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special
5522 cases for old basic_string.
5523 * testsuite/21_strings/basic_string/cons/char/8.cc: Test
5524 allocator-extended constructors unconditionally. Add extra members to
5525 allocator type when using old string ABI.
5526 * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test
5527 for old string ABI.
5528 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
5529
5530 * testsuite/23_containers/list/61347.cc: Avoid spurious failure when
5531 -fno-inline added to test flags.
5532
5533 * testsuite/21_strings/basic_string/requirements/
5534 explicit_instantiation/debug.cc: Remove XFAIL for old ABI.
5535
5536 * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static
5537 assertion failures with old std::string ABI.
5538
5539 * include/bits/fs_path.h (path::_List::erase): Replace both overloads
5540 with ...
5541 (path::pop_back(), path::_M_erase_from(const_iterator)): New member
5542 functions that will only erase elements at the end.
5543 * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define.
5544 (path::_List::_Impl::_M_erase_from(const_iterator)): Define.
5545 (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead
5546 of erase(p, end()).
5547 (path::_List::pop_back()): Define.
5548 (path::_List::_M_erase_from(const_iterator)): Define.
5549 (path::operator/=(const path&)): Use pop_back to remove last component
5550 and _M_erase_from to remove multiple components.
5551 (path::_M_append(basic_string_view<value_type>)): Likewise.
5552 (path::operator+=(const path&)): Likewise.
5553 (path::_M_concat(basic_string_view<value_type>)): Likewise.
5554 (path::remove_filename()): Likewise.
5555 (path::lexically_normal()): Use _List::_Impl iterators instead of
5556 path::iterator. Use pop_back to remove components from the end. Clear
5557 trailing filename, instead of using erase(const_iterator) to remove
5558 a non-final component.
5559 * testsuite/27_io/filesystem/path/generation/normal.cc: Test
5560 additional cases.
5561 * testsuite/27_io/filesystem/path/generation/normal2.cc: New test.
5562
5563 * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
5564 incorrect treatment of empty filename after trailing slash.
5565 * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.
5566
5567 * testsuite/21_strings/basic_string/modifiers/assign/char/
5568 move_assign_optim.cc: Avoid spurious failure when -fno-inline added
5569 to test flags.
5570 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
5571 move_assign_optim.cc: Likewise.
5572
5573 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
5574 Jakub Jelinek <jakub@redhat.com>
5575
5576 PR libstdc++/88607
5577 * include/experimental/memory: Replace UTF-8 quote characters.
5578 * include/std/future: Replace UTF-8 "em dash" characters.
5579
5580 2019-01-03 Jonathan Wakely <jwakely@redhat.com>
5581
5582 PR libstdc++/88607
5583 * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
5584 * include/debug/forward_list: Likewise.
5585 * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
5586 character.
5587 * include/experimental/chrono: Likewise.
5588 * include/experimental/functional: Likewise.
5589 * include/experimental/ratio: Likewise.
5590 * include/experimental/system_error: Likewise.
5591 * include/experimental/tuple: Likewise.
5592 * include/experimental/type_traits: Likewise.
5593 * include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
5594 * include/parallel/multiseq_selection.h: Likewise.
5595
5596 PR libstdc++/88681
5597 * config/abi/pre/gnu.ver: Add missing exports.
5598 * testsuite/22_locale/collate_byname/88681.cc: New test.
5599 * testsuite/22_locale/time_get/get/char/88681.cc: New test.
5600 * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test.
5601
5602 2019-01-02 Jonathan Wakely <jwakely@redhat.com>
5603
5604 * testsuite/23_containers/map/cons/deduction.cc: Test deduction from
5605 initializer_list<value_type> and from input iterator ranges.
5606 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
5607
5608 * testsuite/experimental/string_view/element_access/char/empty.cc:
5609 Fix year range in copyright header.
5610
5611 2019-01-02 Joel Brobecker <brobecker@adacore.com>
5612
5613 * testsuite/21_strings/basic_string_view/element_access/char/empty.cc:
5614 Fix year range in copyright header.
5615
5616 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5617
5618 Update copyright years.
5619 \f
5620 Copyright (C) 2019 Free Software Foundation, Inc.
5621
5622 Copying and distribution of this file, with or without modification,
5623 are permitted in any medium without royalty provided the copyright
5624 notice and this notice are preserved.