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