]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/ChangeLog
Conditionally disable tests of non-standard extensions
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
1 2018-10-19 Jonathan Wakely <jwakely@redhat.com>
2
3 * testsuite/23_containers/forward_list/requirements/
4 explicit_instantiation/5.cc [__STRICT_ANSI__]: Don't test non-standard
5 extension.
6 * testsuite/23_containers/list/requirements/explicit_instantiation/
7 5.cc [__STRICT_ANSI__]: Likewise.
8 * testsuite/23_containers/map/requirements/explicit_instantiation/5.cc
9 [__STRICT_ANSI__]: Likewise.
10 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
11 5.cc [__STRICT_ANSI__]: Likewise.
12 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
13 5.cc [__STRICT_ANSI__]: Likewise.
14 * testsuite/23_containers/set/requirements/explicit_instantiation/5.cc
15 [__STRICT_ANSI__]: Likewise.
16 * testsuite/23_containers/unordered_map/requirements/debug_container.cc
17 [__STRICT_ANSI__]: Likewise.
18 * testsuite/23_containers/unordered_map/requirements/
19 explicit_instantiation/5.cc [__STRICT_ANSI__]: Likewise.
20 * testsuite/23_containers/unordered_multimap/requirements/
21 explicit_instantiation/5.cc [__STRICT_ANSI__]: Likewise.
22 * testsuite/23_containers/unordered_multiset/requirements/
23 explicit_instantiation/5.cc [__STRICT_ANSI__]: Likewise.
24 * testsuite/23_containers/unordered_set/requirements/
25 explicit_instantiation/5.cc [__STRICT_ANSI__]: Likewise.
26
27 * testsuite/20_util/scoped_allocator/1.cc: Use allocator with correct
28 value type for the container.
29 * testsuite/23_containers/forward_list/cons/14.cc: Likewise.
30 * testsuite/23_containers/map/56613.cc: Likewise.
31 * testsuite/23_containers/unordered_map/55043.cc: Likewise.
32 * testsuite/23_containers/unordered_map/allocator/copy.cc: Likewise.
33 * testsuite/23_containers/unordered_map/allocator/copy_assign.cc:
34 Likewise.
35 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
36 Likewise.
37 * testsuite/23_containers/unordered_map/allocator/move.cc: Likewise.
38 * testsuite/23_containers/unordered_map/allocator/move_assign.cc:
39 Likewise.
40 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
41 Likewise.
42 * testsuite/23_containers/unordered_map/cons/81891.cc: Likewise.
43 * testsuite/23_containers/unordered_map/requirements/exception/
44 basic.cc: Likewise.
45 * testsuite/23_containers/unordered_map/requirements/exception/
46 generation_prohibited.cc: Likewise.
47 * testsuite/23_containers/unordered_map/requirements/exception/
48 propagation_consistent.cc: Likewise.
49 * testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
50 * testsuite/23_containers/unordered_multimap/allocator/copy.cc:
51 Likewise.
52 * testsuite/23_containers/unordered_multimap/allocator/copy_assign.cc:
53 Likewise.
54 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
55 Likewise.
56 * testsuite/23_containers/unordered_multimap/allocator/move.cc:
57 Likewise.
58 * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc:
59 Likewise.
60 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
61 Likewise.
62 * testsuite/23_containers/unordered_multimap/requirements/exception/
63 basic.cc: Likewise.
64 * testsuite/23_containers/unordered_multimap/requirements/exception/
65 generation_prohibited.cc: Likewise.
66 * testsuite/23_containers/unordered_multimap/requirements/exception/
67 propagation_consistent.cc: Likewise.
68 * testsuite/23_containers/unordered_multimap/requirements/
69 explicit_instantiation/5.cc: Likewise.
70 * testsuite/ext/malloc_allocator/sanity.cc: Likewise.
71
72 * ext/special_functions/airy_ai/check_nan.cc: Skip test for
73 non-standard extension when a strict -std=c++NN dialect is used.
74 * ext/special_functions/airy_ai/check_value.cc: Likewise.
75 * ext/special_functions/airy_ai/compile.cc: Likewise.
76 * ext/special_functions/airy_bi/check_nan.cc: Likewise.
77 * ext/special_functions/airy_bi/check_value.cc: Likewise.
78 * ext/special_functions/airy_bi/compile.cc: Likewise.
79 * ext/special_functions/conf_hyperg/check_nan.cc: Likewise.
80 * ext/special_functions/conf_hyperg/check_value.cc: Likewise.
81 * ext/special_functions/conf_hyperg/compile.cc: Likewise.
82 * ext/special_functions/hyperg/check_nan.cc: Likewise.
83 * ext/special_functions/hyperg/check_value.cc: Likewise.
84 * ext/special_functions/hyperg/compile.cc: Likewise.
85
86 * testsuite/23_containers/list/requirements/explicit_instantiation/
87 5_c++0x.cc: Remove redundant test that is functionally identical to
88 the 5.cc test.
89 * testsuite/23_containers/map/requirements/explicit_instantiation/
90 5_c++0x.cc: Likewise.
91 * testsuite/23_containers/multimap/requirements/explicit_instantiation/
92 5_c++0x.cc: Likewise.
93 * testsuite/23_containers/multiset/requirements/explicit_instantiation/
94 5_c++0x.cc: Likewise.
95 * testsuite/23_containers/set/requirements/explicit_instantiation/
96 5_c++0x.cc: Likewise.
97
98 * include/bits/regex_executor.tcc (_Backref_matcher::_M_apply): Use
99 _GLIBCXX_STD_A to refer to normal mode algorithms.
100 * testsuite/28_regex/headers/regex/parallel_mode.cc: New test.
101 * testsuite/28_regex/headers/regex/std_c++0x_neg.cc: Remove empty
102 whitespace.
103
104 * include/debug/map.h (map::erase(iterator)): Add abi-tag so that
105 C++11 version mangles differently from incompatible C++98 version.
106 * include/debug/multimap.h (multimap::erase(iterator)): Likewise.
107 * include/debug/multiset.h (multiset::erase(iterator))
108 (multiset::erase(const_iterator, const_iterator)): Likewise.
109 * include/debug/set.h (set::erase(iterator))
110 (multiset::erase(const_iterator, const_iterator)): Likewise.
111
112 2018-10-18 Jonathan Wakely <jwakely@redhat.com>
113
114 * testsuite/20_util/duration/cons/2.cc: Add -ffloat-store to fix
115 failure when compiled without optimisation.
116 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune additional
117 errors caused by C++17 std::pmr alias templates.
118
119 PR libstdc++/87642
120 * config/locale/gnu/monetary_members.cc
121 (moneypunct<char, true>::_M_initialize_moneypunct): Use
122 __narrow_multibyte_chars to convert multibyte thousands separators
123 to a single char.
124 * config/locale/gnu/numeric_members.cc
125 (numpunct<char>::_M_initialize_numpunct): Likewise.
126 (__narrow_multibyte_chars): New function.
127
128 PR libstdc++/87641
129 * include/bits/valarray_array.h (__valarray_sum): Use first element
130 to initialize accumulator instead of value-initializing it.
131 (__valarray_product<_Tp>): Move to ...
132 * src/c++98/valarray.cc (__valarray_product<_Tp>): Here. Use first
133 element to initialize accumulator.
134 (__valarray_product(const valarray<size_t>&)): Remove const_cast made
135 unnecessary by LWG 389.
136 * testsuite/26_numerics/valarray/87641.cc: New test.
137
138 2018-10-18 François Dumont <fdumont@gcc.gnu.org>
139
140 Partial revert.
141 2018-10-08 François Dumont <fdumont@gcc.gnu.org>
142
143 * include/debug/list (list<>::cbegin()): Use C++11 direct
144 initialization.
145 (list<>::cend()): Likewise.
146 (list<>::erase(const_iterator, const_iterator)): Ensure consistent
147 iterator comparisons.
148 (list<>::splice(const_iterator, list&&, const_iterator,
149 const_iterator)): Likewise.
150
151 Partial revert.
152 2018-10-15 François Dumont <fdumont@gcc.gnu.org>
153
154 * include/debug/vector (vector<>::cbegin()): Use C++11 direct
155 initialization.
156 (vector<>::cend()): Likewise.
157 (vector<>::insert(const_iterator, const _Tp&)): Use consistent
158 iterator comparison.
159 (vector<>::erase(const_iterator)): Likewise.
160 (vector<>::erase(const_iterator, const_iterator)): Likewise.
161
162 2018-10-17 Ville Voutilainen <ville.voutilainen@gmail.com>
163
164 PR libstdc++/87619
165 * include/std/variant (__select_index): Fix an off-by-one.
166 * testsuite/20_util/variant/87619.cc: New.
167
168 2018-10-16 Jonathan Wakely <jwakely@redhat.com>
169
170 * include/bits/random.h (random_device) [!_GLIBCXX_USE_DEV_RANDOM]:
171 Fix default constructor to call correct function.
172
173 * testsuite/experimental/net/internet/address/v4/creation.cc: Do not
174 declare ip in global namespace, to avoid collision with struct ip
175 defined in <netinet/ip.h>.
176
177 * include/experimental/bits/net.h: Move versioned namespace macros
178 to correct location.
179 * include/experimental/buffer: Likewise.
180 * include/experimental/executor: Likewise.
181 * include/experimental/internet: Likewise.
182 * include/experimental/io_context: Likewise.
183 * include/experimental/netfwd: Likewise.
184 * include/experimental/socket: Likewise.
185 * include/experimental/timer: Likewise.
186
187 * config.h.in: Regenerate.
188 * configure: Regenerate.
189 * configure.ac: Check for headers used by Networking TS.
190 * include/experimental/executor: Include <condition_variable>
191 instead of <mutex>.
192 * include/experimental/internet: Use autoconf macros for available
193 headers. Include <sys/socket.h> for. Remove <cstring> and use
194 __builtin_memcpy and __builtin_strchr.
195 (resolver_errc) [!_GLIBCXX_HAVE_NETDB_H]: Do not define.
196 (address_v4::to_string, address_v6::to_string)
197 [!_GLIBCXX_HAVE_ARPA_INET_H]: Likewise.
198 (basic_resolver_results) [!_GLIBCXX_HAVE_NETDB_H]: Make private
199 constructors report errors.
200 [!_GLIBCXX_HAVE_NETINET_TCP_H] (tcp::no_delay): Do not define.
201 * include/experimental/io_context: Likewise.
202 * include/experimental/socket: Likewise.
203 [!_GLIBCXX_HAVE_SYS_SOCKET_H, !_GLIBCXX_HAVE_POLL_H] (socket_base): Do
204 not define nested types when relevant header not available.
205 (__socket_impl::native_non_blocking) [!_GLIBCXX_HAVE_FCNTL_H]: Report
206 an error.
207 (__basic_socket_impl::open, __basic_socket_impl::local_endpoint)
208 (__basic_socket_impl::bind) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
209 (__basic_socket_impl::io_control) [!_GLIBCXX_HAVE_SYS_IOCTL_H]:
210 Likewise.
211 (basic_socket::at_mark, basic_socket::shutdown)
212 (basic_socket::remote_endpoint, basic_socket::connect)
213 (basic_socket::async_connect) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
214 (basic_socket::available) [_GLIBCXX_HAVE_SYS_IOCTL_H]: Check macro
215 for <sys/ioctl.h> availability.
216 (basic_socket::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
217 (basic_datagram_socket::receive, basic_datagram_socket::async_receive)
218 (basic_datagram_socket::receive_from)
219 (basic_datagram_socket::async_receive_from)
220 (basic_datagram_socket::send, basic_datagram_socket::async_send)
221 (basic_datagram_socket::send_to, basic_datagram_socket::async_send_to)
222 [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
223 (basic_stream_socket::receive, basic_stream_socket::async_receive)
224 (basic_stream_socket::send, basic_stream_socket::async_send)
225 [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
226 (basic_socket_acceptor::listen, basic_socket_acceptor::accept)
227 (basic_socket_acceptor::async_accept) [!_GLIBCXX_HAVE_SYS_SOCKET_H]:
228 Likewise.
229 (basic_socket_acceptor::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
230
231 * testsuite/experimental/net/headers.cc: Remove dg-options.
232 * testsuite/experimental/net/buffer/arithmetic.cc: Replace dg-options
233 with dg-do using effective target.
234 * testsuite/experimental/net/buffer/const.cc: Likewise.
235 * testsuite/experimental/net/buffer/creation.cc: Likewise.
236 * testsuite/experimental/net/buffer/mutable.cc: Likewise.
237 * testsuite/experimental/net/buffer/size.cc: Likewise.
238 * testsuite/experimental/net/buffer/traits.cc: Likewise.
239 * testsuite/experimental/net/execution_context/use_service.cc:
240 Likewise.
241 * testsuite/experimental/net/internet/address/v4/comparisons.cc:
242 Likewise.
243 * testsuite/experimental/net/internet/address/v4/cons.cc: Likewise.
244 * testsuite/experimental/net/internet/address/v4/creation.cc:
245 Likewise.
246 * testsuite/experimental/net/internet/address/v4/members.cc: Likewise.
247 * testsuite/experimental/net/internet/resolver/base.cc: Likewise.
248 * testsuite/experimental/net/internet/resolver/ops/lookup.cc:
249 Likewise.
250 * testsuite/experimental/net/internet/resolver/ops/reverse.cc:
251 Likewise.
252 * testsuite/experimental/net/timer/waitable/cons.cc: Likewise.
253 * testsuite/experimental/net/timer/waitable/dest.cc: Likewise.
254 * testsuite/experimental/net/timer/waitable/ops.cc: Likewise.
255
256 * include/experimental/socket (basic_socket::at_mark): Add missing
257 return.
258
259 * acinclude.m4 (GLIBCXX_CHECK_RANDOM_TR1): Replace with ...
260 (GLIBCXX_CHECK_DEV_RANDOM): New macro with more descriptive name.
261 Define _GLIBCXX_USE_DEV_RANDOM as well as _GLIBCXX_USE_RANDOM_TR1.
262 * config.h.in: Regenerate.
263 * configure: Regenerate.
264 * configure.ac: Use GLIBCXX_CHECK_DEV_RANDOM instead of
265 GLIBCXX_CHECK_RANDOM_TR1.
266 crossconfig.m4: Likewise.
267 * include/bits/random.h (random_device): Use _GLIBCXX_USE_DEV_RANDOM
268 instead of _GLIBCXX_USE_RANDOM_TR1.
269 * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise.
270
271 2018-10-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
272
273 * testsuite/lib/dg-options.exp (add_options_for_net_ts): New proc.
274 * testsuite/experimental/net/internet/address/v4/comparisons.cc:
275 Add dg-add-options net_ts.
276 * testsuite/experimental/net/internet/address/v4/cons.cc: Likewise.
277 * testsuite/experimental/net/internet/address/v4/creation.cc: Likewise.
278 * testsuite/experimental/net/internet/address/v4/members.cc: Likewise.
279 * testsuite/experimental/net/internet/resolver/base.cc: Likewise.
280 * testsuite/experimental/net/internet/resolver/ops/lookup.cc: Likewise.
281 * testsuite/experimental/net/internet/resolver/ops/reverse.cc: Likewise.
282
283 2018-10-16 Jonathan Wakely <jwakely@redhat.com>
284
285 * testsuite/20_util/duration/literals/range_neg.cc: Adjust pruned
286 diagnostic to account for quotes around 'constexpr'.
287 * testsuite/23_containers/deque/capacity/max_size.cc: Define static
288 variable.
289 * testsuite/23_containers/vector/capacity/max_size.cc: Likewise.
290
291 PR libstdc++/87618
292 * config/abi/pre/gnu.ver: Fix typos in patterns for basic_stringbuf.
293 * testsuite/27_io/basic_stringbuf/cons/char/default.cc: Disable
294 optimisation to check constructor definition can be linked to.
295 * testsuite/27_io/basic_stringbuf/cons/wchar_t/default.cc: Likewise.
296
297 2018-10-15 Jonathan Wakely <jwakely@redhat.com>
298
299 * testsuite/22_locale/numpunct/members/char/3.cc: Adjust test to
300 account for change to glibc it_IT localedata (glibc bz#10797).
301
302 PR libstdc++/87587
303 * src/c++11/cxx11-shim_facets.cc: Suppress -Wabi warnings.
304
305 2018-10-15 François Dumont <fdumont@gcc.gnu.org>
306
307 * include/debug/vector (vector<>::cbegin()): Use C++11 direct
308 initialization.
309 (vector<>::cend()): Likewise.
310 (vector<>::emplace(const_iterator, _Args&&...)): Likewise and use
311 consistent iterator comparison.
312 (vector<>::insert(const_iterator, size_type, const _Tp&)): Likewise.
313 (vector<>::insert(const_iterator, _InputIterator, _InputIterator)):
314 Likewise.
315 (vector<>::erase(const_iterator)): Likewise.
316 (vector<>::erase(const_iterator, const_iterator)): Likewise.
317
318 2018-10-12 Jonathan Wakely <jwakely@redhat.com>
319
320 Initial commit of Networking TS implementation.
321 * include/Makefile.am: Add new headers.
322 * include/Makefile.in: Regenerate.
323 * include/experimental/bits/net.h: New header for common
324 implementation details of Networking TS.
325 * include/experimental/buffer: New header.
326 * include/experimental/executor: New header.
327 * include/experimental/internet: New header.
328 * include/experimental/io_context: New header.
329 * include/experimental/net: New header.
330 * include/experimental/netfwd: New header.
331 * include/experimental/socket: New header.
332 * include/experimental/timer: New header.
333 * testsuite/experimental/net/buffer/arithmetic.cc: New test.
334 * testsuite/experimental/net/buffer/const.cc: New test.
335 * testsuite/experimental/net/buffer/creation.cc: New test.
336 * testsuite/experimental/net/buffer/mutable.cc: New test.
337 * testsuite/experimental/net/buffer/size.cc: New test.
338 * testsuite/experimental/net/buffer/traits.cc: New test.
339 * testsuite/experimental/net/execution_context/use_service.cc: New
340 test.
341 * testsuite/experimental/net/headers.cc: New test.
342 * testsuite/experimental/net/internet/address/v4/comparisons.cc: New
343 test.
344 * testsuite/experimental/net/internet/address/v4/cons.cc: New test.
345 * testsuite/experimental/net/internet/address/v4/creation.cc: New
346 test.
347 * testsuite/experimental/net/internet/address/v4/members.cc: New
348 test.
349 * testsuite/experimental/net/internet/resolver/base.cc: New test.
350 * testsuite/experimental/net/internet/resolver/ops/lookup.cc: New
351 test.
352 * testsuite/experimental/net/internet/resolver/ops/reverse.cc: New
353 test.
354 * testsuite/experimental/net/timer/waitable/cons.cc: New test.
355 * testsuite/experimental/net/timer/waitable/dest.cc: New test.
356 * testsuite/experimental/net/timer/waitable/ops.cc: New test.
357
358 PR libstdc++/77691
359 * include/experimental/memory_resource (__resource_adaptor_imp): Do
360 not allocate sizes smaller than alignment when relying on guaranteed
361 alignment.
362 * testsuite/experimental/memory_resource/new_delete_resource.cc:
363 Adjust expected number of bytes allocated for alignof(max_align_t).
364
365 2018-10-11 François Dumont <fdumont@gcc.gnu.org>
366
367 * include/debug/forward_list
368 (forward_list<>::before_begin()): Use C++11 direct initialization.
369 (forward_list<>::begin()): Likewise.
370 (forward_list<>::end()): Likewise.
371 (forward_list<>::cbefore_begin()): Likewise.
372 (forward_list<>::cbegin()): Likewise.
373 (forward_list<>::cend()): Likewise.
374 (forward_list<>::emplace_after<>(const_iterator, _Args&&...)): Likewise.
375 (forward_list<>::insert_after(const_iterator, const _Tp&)): Likewise.
376 (forward_list<>::insert_after(const_iterator, _Tp&&)): Likewise.
377 (forward_list<>::insert_after(const_iterator, size_type, const _Tp&)):
378 Likewise.
379 (forward_list<>::insert_after(const_iterator, initializer_list<>)):
380 Likewise.
381 (forward_list<>::erase_after(const_iterator)): Likewise.
382 (forward_list<>::erase_after(const_iterator, const_iterator)): Likewise
383 and ensure consistent iterator comparison.
384
385 * include/bits/forward_list.h
386 (_Fwd_list_iterator<>::operator==): Replace member function with inline
387 friend.
388 (_Fwd_list_iterator<>::operator!=): Likewise.
389 (_Fwd_list_const_iterator<>::operator==): Likewise.
390 (_Fwd_list_const_iterator<>::operator!=): Likewise.
391 (operator==(const _Fwd_list_iterator<>&,
392 const _Fwd_list_const_iterator<>&)): Remove.
393 (operator!=(const _Fwd_list_iterator<>&,
394 const _Fwd_list_const_iterator<>&)): Remove.
395 (forward_list<>::_Node): Take typedef from base type.
396 (forward_list<>::iterator): Likewise.
397 (forward_list<>::const_iterator): Likewise.
398
399 2018-10-11 Jonathan Wakely <jwakely@redhat.com>
400
401 PR libstdc++/80538
402 * src/c++11/thread.cc (this_thread::__sleep_for)
403 [_GLIBCXX_HAVE_SLEEP]: Only call sleep for non-zero values.
404 Loop while sleep call is interrupted and until steady_clock
405 shows requested duration has elapsed.
406 (!_GLIBCXX_HAVE_USLEEP]: Use the _GLIBCXX_HAVE_SLEEP code path, but
407 avoiding the usleep call.
408 * testsuite/30_threads/this_thread/60421.cc: Test repeated
409 signal interruptions.
410
411 * include/bits/allocator.h
412 (operator==(const allocator<_Tp>&, const allocator<_Tp>))
413 (operator!=(const allocator<_Tp>&, const allocator<_Tp>)): Replace
414 with inline friends.
415 * include/ext/debug_allocator.h (operator==, operator!=): Replace
416 with inline friend functions that compare to rebound allocators.
417 * include/ext/malloc_allocator.h (operator==, operator!=): Likewise.
418 * include/ext/new_allocator.h (operator==, operator!=): Likewise.
419 * testsuite/ext/debug_allocator/eq.cc: New test.
420 * testsuite/ext/ext_pointer/alloc_eq.cc: New test.
421 * testsuite/ext/malloc_allocator/eq.cc: New test.
422 * testsuite/ext/new_allocator/eq.cc: New test.
423
424 2018-10-10 Jonathan Wakely <jwakely@redhat.com>
425
426 PR libstdc++/87544
427 * include/bits/stl_vector.h (vector::_S_max_size): Limit size to
428 PTRDIFF_MAX / sizeof(value_type).
429 * include/ext/malloc_allocator.h (malloc_allocator::max_size):
430 Likewise.
431 * include/ext/new_allocator.h (new_allocator::max_size): Likewise.
432 * testsuite/23_containers/vector/allocator/minimal.cc: Adjust
433 expected value for max_size().
434 * testsuite/23_containers/vector/capacity/87544.cc: New test.
435
436 2018-10-09 François Dumont <fdumont@gcc.gnu.org>
437
438 * include/bits/stl_list.h
439 (_List_operator<>::operator==): Replace member function with inline
440 friend.
441 (_List_operator<>::operator!=): Likewise.
442 (_List_const_operator<>::operator==): Likewise.
443 (_List_const_operator<>::operator!=): Likewise.
444 (operator==(const _List_iterator<>&, const _List_const_iterator<>&)):
445 Remove.
446 (operator!=(const _List_iterator<>&, const _List_const_iterator<>&)):
447 Remove.
448
449 2018-10-09 Jonathan Wakely <jwakely@redhat.com>
450
451 * include/bits/stringfwd.h (string, wstring, u16string, u32string):
452 Define typedefs outside of __cxx11 inline namespace.
453 * python/libstdcxx/v6/printers.py (register_type_printers): Also
454 register printers for typedefs in new location.
455
456 2018-10-08 Jonathan Wakely <jwakely@redhat.com>
457
458 PR libstdc++/87538
459 * testsuite/experimental/functional/87538.cc: New test.
460
461 PR libstdc++/87538
462 * include/std/functional (_Not_fn::operator()): Check value of
463 __is_nothrow_invocable as well.
464 * testsuite/20_util/function_objects/not_fn/87538.cc: New test.
465
466 2018-10-08 François Dumont <fdumont@gcc.gnu.org>
467
468 * include/debug/list (list<>::cbegin()): Use C++11 direct
469 initialization.
470 (list<>::cend()): Likewise.
471 (list<>::emplace<>(const_iterator, _Args&&...)): Likewise.
472 (list<>::insert(const_iterator, initializer_list<>)): Likewise.
473 (list<>::insert(const_iterator, size_type, const _Tp&)): Likewise.
474 (list<>::erase(const_iterator, const_iterator)): Ensure consistent
475 iterator comparisons.
476 (list<>::splice(const_iterator, list&&, const_iterator,
477 const_iterator)): Likewise.
478
479 2018-10-05 François Dumont <fdumont@gcc.gnu.org>
480
481 * include/bits/stl_tree.h
482 (_Rb_tree_iterator<>::operator==): Make inline friend.
483 (_Rb_tree_iterator<>::operator!=): Likewise.
484 (_Rb_tree_const_iterator<>::operator==): Likewise.
485 (_Rb_tree_const_iterator<>::operator!=): Likewise.
486 (operator==(const _Rb_tree_iterator<>&,
487 const _Rb_tree_const_iterator&)): Remove.
488 (operator!=(const _Rb_tree_iterator<>&,
489 const _Rb_tree_const_iterator&)): Remove.
490 (operator==(const _Rb_tree<>&, const _Rb_tree<>&)): Make inline friend.
491 (operator<(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
492 (operator!=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise and
493 deprecate.
494 (operator>(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
495 (operator<=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
496 (operator>=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
497 * include/debug/map.h (map<>::erase(const_iterator, const_iterator)):
498 Compare __victim with _Base::cend().
499 * include/debug/multimap.h
500 (multimap<>::erase(const_iterator, const_iterator)): Likewise.
501 * include/debug/set.h (set<>::erase(const_iterator, const_iterator)):
502 Compare __victim with _Base::cend().
503 * include/debug/multiset.h
504 (multiset<>::erase(const_iterator, const_iterator)): Likewise.
505
506 2018-10-03 Jonathan Wakely <jwakely@redhat.com>
507
508 PR libstdc++/59439
509 * src/c++98/locale.cc (locale::locale(const locale&)): Bypass
510 reference count updates for the classic locale.
511 (locale::~locale()): Likewise.
512 (locale::operator=(const locale&)): Likewise.
513 * src/c++98/locale_init.cc (locale::locale()): Likewise.
514 (locale::global(const locale&)): Likewise.
515
516 2018-10-03 François Dumont <fdumont@gcc.gnu.org>
517
518 * include/debug/map.h
519 (map<>::emplace<>(_Args&&...)): Use C++11 direct initialization.
520 (map<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise.
521 (map<>::insert(value_type&&)): Likewise.
522 (map<>::insert<>(_Pair&&)): Likewise.
523 (map<>::insert<>(const_iterator, _Pair&&)): Likewise.
524 (map<>::try_emplace): Likewise.
525 (map<>::insert_or_assign): Likewise.
526 (map<>::insert(node_type&&)): Likewise.
527 (map<>::insert(const_iterator, node_type&&)): Likewise.
528 (map<>::erase(const_iterator)): Likewise.
529 (map<>::erase(const_iterator, const_iterator)): Likewise.
530 * include/debug/multimap.h
531 (multimap<>::emplace<>(_Args&&...)): Use C++11 direct initialization.
532 (multimap<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise.
533 (multimap<>::insert<>(_Pair&&)): Likewise.
534 (multimap<>::insert<>(const_iterator, _Pair&&)): Likewise.
535 (multimap<>::insert(node_type&&)): Likewise.
536 (multimap<>::insert(const_iterator, node_type&&)): Likewise.
537 (multimap<>::erase(const_iterator)): Likewise.
538 (multimap<>::erase(const_iterator, const_iterator)): Likewise.
539 * include/debug/set.h
540 (set<>::emplace<>(_Args&&...)): Use C++11 direct initialization.
541 (set<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise.
542 (set<>::insert(value_type&&)): Likewise.
543 (set<>::insert<>(const_iterator, value_type&&)): Likewise.
544 (set<>::insert(const_iterator, node_type&&)): Likewise.
545 (set<>::erase(const_iterator)): Likewise.
546 (set<>::erase(const_iterator, const_iterator)): Likewise.
547 * include/debug/multiset.h
548 (multiset<>::emplace<>(_Args&&...)): Use C++11 direct initialization.
549 (multiset<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise.
550 (multiset<>::insert<>(value_type&&)): Likewise.
551 (multiset<>::insert<>(const_iterator, value_type&&)): Likewise.
552 (multiset<>::insert(node_type&&)): Likewise.
553 (multiset<>::insert(const_iterator, node_type&&)): Likewise.
554 (multiset<>::erase(const_iterator)): Likewise.
555 (multiset<>::erase(const_iterator, const_iterator)): Likewise.
556
557 2018-10-02 Marc Glisse <marc.glisse@inria.fr>
558
559 PR libstdc++/87258
560 * include/bits/stl_bvector.h (vector::begin(), vector::cbegin()):
561 Rebuild _M_start with an explicit 0 offset.
562
563 2018-10-02 Jonathan Wakely <jwakely@redhat.com>
564
565 * include/std/variant (__gen_vtable_impl::__visit_invoke): Call __get
566 directly instead of get, as caller ensures correct index is used.
567 (holds_alternative, get, get_if): Remove redundant inline specifiers.
568 (_VARIANT_RELATION_FUNCTION_TEMPLATE): Likewise.
569
570 2018-10-02 Joseph Myers <joseph@codesourcery.com>
571
572 * testsuite/lib/libstdc++.exp (libstdc++_init): Use
573 -fno-show-column in default cxxflags.
574
575 2018-10-01 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
576
577 * config/os/uclibc/os_defines.h (__NO_STRING_INLINES): Delete.
578
579 2018-10-01 Gerald Pfeifer <gerald@pfeifer.com>
580
581 * doc/xml/manual/allocator.xml: Adjust link to "Reconsidering
582 Custom Memory Allocation".
583
584 2018-10-01 Jonathan Wakely <jwakely@redhat.com>
585
586 * doc/html/*: Regenerate.
587
588 2018-09-30 Gerald Pfeifer <gerald@pfeifer.com>
589
590 * doc/xml/manual/messages.xml: Switch link to www.oracle.com
591 to https.
592
593 2018-09-30 Gerald Pfeifer <gerald@pfeifer.com>
594
595 * doc/xml/manual/policy_data_structures_biblio.xml: Update
596 link to Microsoft Component Model Object Technologies.
597
598 2018-09-29 Gerald Pfeifer <gerald@pfeifer.com>
599
600 * doc/xml/gnu/fdl-1.3.xml: The Free Software Foundation web
601 site now uses https. Also omit the unnecessary trailing slash.
602 * doc/xml/gnu/gpl-3.0.xml: Ditto.
603
604 2018-09-28 François Dumont <fdumont@gcc.gnu.org>
605
606 * include/debug/functions.h
607 (__foreign_iterator_aux3(const _Safe_iterator<>&, const _InputeIter&,
608 const _InputIter&, __true_type)): Use empty() rather than begin() ==
609 end().
610
611 2018-09-25 Mike Crowe <mac@mcrowe.com>
612
613 * include/std/condition_variable (condition_variable::wait_for): Use
614 steady clock in overload that uses a predicate.
615
616 2018-09-25 Jonathan Wakely <jwakely@redhat.com>
617
618 PR libstdc++/87431
619 * include/std/variant (_Variant_storage<true, _Types...>::_M_valid):
620 Avoid runtime test when all alternatives are scalars and so cannot
621 throw during initialization.
622
623 2018-09-25 Gerald Pfeifer <gerald@pfeifer.com>
624
625 * doc/xml/manual/codecvt.xml: Move link to "UTF-8 and Unicode FAQ"
626 to https.
627
628 2018-09-24 Gerald Pfeifer <gerald@pfeifer.com>
629
630 * doc/xml/manual/policy_data_structures_biblio.xml: Update link
631 to "Priority Queues and the STL".
632
633 2018-09-23 Gerald Pfeifer <gerald@pfeifer.com>
634
635 * doc/xml/manual/using_exceptions.xml: Move boost.orgs link to
636 https.
637
638 2018-09-21 François Dumont <fdumont@gcc.gnu.org>
639
640 PR libstdc++/87135
641 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
642 Use __builtin_floor to compute _M_next_resize.
643 * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt.
644 * testsuite/23_containers/unordered_set/hash_policy/prime_rehash.cc:
645 Adapt.
646
647 2018-09-21 Jonathan Wakely <jwakely@redhat.com>
648
649 * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: Remove.
650 * testsuite/26_numerics/headers/cmath/hypot.cc: Restore test for
651 long double unconditionally, but use lower tolerance when
652 sizeof(long double) == sizeof(double).
653
654 2018-09-20 Christophe Lyon <christophe.lyon@linaro.org>
655
656 * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: Skip
657 on arm*.
658
659 2018-09-19 Jonathan Wakely <jwakely@redhat.com>
660
661 * include/bits/regex_automaton.tcc (_StateSeq<_TraitsT>::_M_clone()):
662 Remove __glibcxx_assert statements and use map::find instead of
663 map::operator[].
664
665 2018-09-18 François Dumont <fdumont@gcc.gnu.org>
666
667 PR libstdc++/87135
668 * src/c++11/hashtable_c++0x.cc:
669 (_Prime_rehash_policy::_M_next_bkt): Return a prime no smaller than
670 requested size, but not necessarily greater.
671 (_Prime_rehash_policy::_M_need_rehash): Rehash only if target size is
672 strictly greater than next resize threshold.
673 * testsuite/23_containers/unordered_map/modifiers/reserve.cc: Adapt test
674 to validate that there is no rehash as long as number of insertion is
675 lower or equal to the reserved number of elements.
676
677 2018-09-18 Jonathan Wakely <jwakely@redhat.com>
678
679 * include/bits/unique_ptr.h (__uniq_ptr_impl): Remove static assertion
680 checking invocable condition.
681 (unique_ptr::~unique_ptr, unique_ptr::reset): Restore static assertion
682 here, where types must be complete. Pass pointer to deleter as an
683 rvalue.
684 * testsuite/20_util/unique_ptr/requirements/incomplete.cc: New test.
685
686 2018-09-13 Jonathan Wakely <jwakely@redhat.com>
687
688 * include/std/variant (variant) [__clang__]: Limit workaround to
689 Clang 7 and older.
690
691 2018-09-11 Jonathan Wakely <jwakely@redhat.com>
692
693 PR libstdc++/87278
694 * include/bits/shared_ptr.h (make_shared): Use remove_cv instead of
695 remove_const.
696 * testsuite/20_util/shared_ptr/creation/87278.cc: New test.
697
698 Implement LWG 2905 changes to constrain unique_ptr constructors
699 * include/bits/unique_ptr.h (__uniq_ptr_impl): Add assertions to
700 check deleter type.
701 (unique_ptr::unique_ptr(pointer, const deleter_type&)): Add copy
702 constructible constraint.
703 (unique_ptr::unique_ptr(pointer, deleter_type&&)): Disable for
704 deleters of reference type and add move constructible constraint.
705 (unique_ptr::unique_ptr(pointer, remove_reference_t<deleter_type>&&)):
706 Disable for deleters of non-reference type. Define as deleted.
707 (unique_ptr<T[], D>): Likewise.
708 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Replace dg-error
709 directives with unstable line numbers with dg-prune-output.
710 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
711 * testsuite/20_util/unique_ptr/cons/lwg2905.cc: New test.
712 * testsuite/20_util/unique_ptr/specialized_algorithms/swap_cxx17.cc:
713 Make deleter types invocable.
714
715 2018-09-05 Jonathan Wakely <jwakely@redhat.com>
716
717 * libsupc++/cxxabi.h (__cxa_demangle): Clarify doxygen comment.
718
719 2018-09-03 Jonathan Wakely <jwakely@redhat.com>
720
721 PR libstdc++/78179
722 * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: New test
723 that runs the long double part of hypot.cc.
724 * testsuite/26_numerics/headers/cmath/hypot.cc: Disable long double
725 tests unless TEST_HYPOT_LONG_DOUBLE is defined.
726
727 * include/bits/stl_vector.h (vector::_Temporary_value::_M_ptr):
728 Return raw pointer not allocator's pointer type.
729 (vector::_Temporary_value::_M_val): Use _M_ptr.
730
731 PR libstdc++/87194
732 * include/bits/stl_map.h
733 (map::map(initializer_list<value_type>, const Compare&, const Alloc&))
734 (map::map(initializer_list<value_type>, const Alloc&))
735 (map::map(InputIterator, InputIterator, const Alloc&))
736 (map::map(InputIterator, InputIterator))
737 (map::map(InputIterator, InputIterator, const Compare&, const Alloc&))
738 (map::insert(InputIterator, InputIterator)):
739 Call _M_insert_range_unique instead of _M_insert_unique.
740 * include/bits/stl_multimap.h
741 (multimap::multimap(initializer_list<value_type>, const C&, const A&))
742 (multimap::multimap(initializer_list<value_type>, const A&))
743 (multimap::multimap(InputIterator, InputIterator, const A&))
744 (multimap::multimap(InputIterator, InputIterator))
745 (multimap::multimap(InputIterator, InputIterator, const C&, const A&))
746 (multimap::insert(InputIterator, InputIterator)): Call
747 _M_insert_range_equal instead of _M_insert_equal.
748 * include/bits/stl_multiset.h
749 (multiset::multiset(InputIterator, InputIterator))
750 (multiset::multiset(InputIterator, InputIterator, const C&, const A&))
751 (multiset::multiset(initializer_list<value_type>, const C&, const A&))
752 (multiset::multiset(initializer_list<value_type>, const A&))
753 (multiset::multiset(InputIterator, InputIterator, const A&))
754 (multiset::insert(InputIterator, InputIterator)): Call
755 _M_insert_range_equal instead of _M_insert_equal.
756 * include/bits/stl_set.h
757 (set::set(InputIterator, InputIterator))
758 (set::set(InputIterator, InputIterator, const Compare&, const Alloc&))
759 (set::set(initializer_list<value_type>, const Compare&, const Alloc&))
760 (set::set(initializer_list<value_type>, const Alloc&))
761 (set::set(InputIterator, InputIterator, const Alloc&))
762 (set::insert(InputIterator, InputIterator)):
763 Call _M_insert_range_unique instead of _M_insert_unique.
764 * include/bits/stl_tree.h
765 [__cplusplus >= 201103L] (_Rb_tree::__same_value_type): New alias
766 template for SFINAE constraints.
767 [__cplusplus >= 201103L] (_Rb_tree::_M_insert_range_unique): Pair of
768 constrained overloads that either insert or emplace, depending on
769 iterator's value_type.
770 [__cplusplus >= 201103L] (_Rb_tree::_M_insert_range_equal): Likewise.
771 [__cplusplus < 201103L] (_Rb_tree::_M_insert_range_unique)
772 (_Rb_tree::_M_insert_range_equal): New functions replacing range
773 versions of _M_insert_unique and _M_insert_equal.
774 (_Rb_tree::_M_insert_unique(_InputIterator, _InputIterator))
775 (_Rb_tree::_M_insert_equal(_InputIterator, _InputIterator)): Remove.
776 * testsuite/23_containers/map/modifiers/insert/87194.cc: New test.
777 * testsuite/23_containers/multimap/modifiers/insert/87194.cc: New test.
778 * testsuite/23_containers/multiset/modifiers/insert/87194.cc: New test.
779 * testsuite/23_containers/set/modifiers/insert/87194.cc: New test.
780
781 PR libstdc++/78595
782 * include/bits/stl_map.h (map::insert(_Pair&&))
783 (map::insert(const_iterator, _Pair&&)): Do emplace instead of insert.
784 * include/bits/stl_multimap.h (multimap::insert(_Pair&&))
785 (multimap::insert(const_iterator, _Pair&&)): Likewise.
786 * include/bits/unordered_map.h (unordered_map::insert(_Pair&&))
787 (unordered_map::insert(const_iterator, _Pair&&))
788 (unordered_multimap::insert(_Pair&&))
789 (unordered_multimap::insert(const_iterator, _Pair&&)): Likewise.
790 * testsuite/23_containers/map/modifiers/insert/78595.cc: New test.
791 * testsuite/23_containers/multimap/modifiers/insert/78595.cc: New test.
792 * testsuite/23_containers/unordered_map/modifiers/78595.cc: New test.
793 * testsuite/23_containers/unordered_multimap/modifiers/78595.cc: New
794 test.
795
796 2018-09-02 François Dumont <fdumont@gcc.gnu.org>
797
798 * include/debug/safe_iterator.h
799 (_Safe_iterator<_It, _Seq, _Cat>::_Self): New.
800 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>::_Self):
801 New.
802 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>
803 ::_OtherSelf): New.
804 (_GLIBCXX_DEBUG_VERIFY_OPERANDS, _GLIBCXX_DEBUG_VERIFY_EQ_OPERANDS)
805 (_GLIBCXX_DEBUG_VERIFY_REL_OPERANDS)
806 (_GLIBCXX_DEBUG_VERIFY_DIST_OPERANDS): Define macros.
807 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>
808 ::operator+(difference_type)): Use latters, inline as friend.
809 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>
810 ::operator-(difference_type)): Likewise.
811 (operator==(const _Safe_iterator<>&, const _Safe_iterator<>&)):
812 Likewise.
813 (operator!=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
814 Likewise.
815 (operator<(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
816 (operator<=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
817 Likewise.
818 (operator>(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
819 (operator>=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
820 Likewise.
821 (operator-(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
822 (operator+(difference_type, const _Safe_iterator<>&)): Likewise.
823 (operator-(const _Safe_iterator<>&, difference_type)): Likewise.
824 * include/debug/safe_iterator.tcc
825 (_Safe_iterator<>::_M_can_advance(difference_type)): Take parameter by
826 copy.
827 * include/debug/safe_local_iterator.h
828 (_Safe_local_iterator<_It, _Seq>::_Self): New.
829 (_Safe_local_iterator<_It, _Seq>::_OtherSelf): New.
830 (_GLIBCXX_DEBUG_VERIFY_OPERANDS): Define macro.
831 (operator==(const _Safe_local_iterator<>&,
832 const _Safe_local_iterator<>&)): Use latter, inline as friend.
833 (operator!=(const _Safe_local_iterator<>&,
834 const _Safe_local_iterator<>&)): Likewise.
835 * testsuite/util/testsuite_containers.h: Include utility.
836 (struct forward_members_unordered<_Tp, bool>): Remove 2nd template
837 parameter.
838 (forward_members_unordered<>::forward_members_unordered(value_type&)):
839 Add using namespace std::rel_ops.
840 Add iterator_concept_checks on local_iterator and const_local_iterator.
841 Add asserts on comparison between const_local_iterator and
842 local_iterator.
843 (struct forward_members_unordered<_Tp, false>): Remove partial
844 specialization.
845 * testsuite/23_containers/forward_list/types/1.cc: New.
846 * testsuite/23_containers/list/types/1.cc: New.
847
848 2018-09-01 Gerald Pfeifer <gerald@pfeifer.com>
849
850 * doc/xml/manual/profile_mode.xml: Update three ieeexplore.ieee.org
851 references.
852
853 2018-08-31 Sandra Loosemore <sandra@codesourcery.com>
854
855 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
856 Add dg-require-fileio.
857 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
858 Likewise.
859 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
860 Likewise.
861 * testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc:
862 Likewise.
863 * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc:
864 Likewise.
865 * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc:
866 Likewise.
867 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc: Likewise.
868 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc: Likewise.
869 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc: Likewise.
870 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc: Likewise.
871 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: Likewise.
872 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc:
873 Likewise.
874 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc:
875 Likewise.
876 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc:
877 Likewise.
878 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc:
879 Likewise.
880 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc:
881 Likewise.
882 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc:
883 Likewise.
884 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc:
885 Likewise.
886 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
887 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
888 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: Likewise.
889 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: Likewise.
890 * testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc:
891 Likewise.
892 * testsuite/27_io/basic_istream/extractors_other/wchar_t/2.cc:
893 Likewise.
894 * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise.
895 * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise.
896 * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
897 * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise.
898 * testsuite/27_io/basic_istream/seekg/wchar_t/sstream.cc: Likewise.
899 * testsuite/27_io/basic_istream/tellg/wchar_t/sstream.cc: Likewise.
900 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: Likewise.
901 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: Likewise.
902 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/1.cc:
903 Likewise.
904 * testsuite/27_io/objects/wchar_t/10.cc: Likewise.
905 * testsuite/27_io/objects/wchar_t/12048-1.cc: Likewise.
906 * testsuite/27_io/objects/wchar_t/12048-2.cc: Likewise.
907 * testsuite/27_io/objects/wchar_t/12048-3.cc: Likewise.
908 * testsuite/27_io/objects/wchar_t/12048-4.cc: Likewise.
909 * testsuite/27_io/objects/wchar_t/12048-5.cc: Likewise.
910 * testsuite/experimental/string_view/inserters/wchar_t/2.cc:
911 Likewise.
912 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise.
913
914 2018-08-30 Sandra Loosemore <sandra@codesourcery.com>
915
916 * testsuite/experimental/propagate_const/observers/1.cc: Make
917 dependence on -fdelete-null-pointer-checks explicit.
918
919 2018-08-30 Jonathan Wakely <jwakely@redhat.com>
920
921 * include/bits/hashtable_policy.h (__clp2): Fix calculation for LLP64
922 targets where sizeof(size_t) > sizeof(long). Avoid undefined shifts
923 of the number of bits in the type.
924 * include/std/bit (__ceil2): Avoid undefined shifts.
925 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Test values with
926 the most signifiant bit set.
927
928 * config/abi/pre/gnu.ver: Add missing exports for mingw.
929
930 * include/ext/pointer.h (_Pointer_adapter): Define operators for
931 pointer arithmetic using long long offsets.
932 * testsuite/ext/ext_pointer/1.cc: Test pointer arithmetic using
933 long long values.
934
935 2018-08-29 Jonathan Wakely <jwakely@redhat.com>
936
937 PR libstdc++/31413
938 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Check D_FMT
939 string for alternative format.
940
941 2018-08-28 Jonathan Wakely <jwakely@redhat.com>
942
943 PR libstdc++/87116
944 * src/filesystem/std-path.cc (path::lexically_normal): When handling
945 a dot-dot filename, preserve an empty final component in the iteration
946 sequence.
947 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use preferred-separator for
948 root-directory.
949 * testsuite/27_io/filesystem/path/generation/normal.cc: Add new tests
950 for more than two adjacent dot-dot filenames.
951 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Replace slashes with
952 preferred-separator in expected normalized strings.
953
954 2018-08-25 Iain Sandoe <iain@sandoe.co.uk>
955
956 PR libstdc++/70694
957 * configure.host (OPT_LDFLAGS): Don't append
958 -fvisibility-inlines-hidden for newer Darwin.
959
960 2018-08-24 Marc Glisse <marc.glisse@inria.fr>
961
962 PR libstdc++/86822
963 * libsupc++/new (operator new(size_t, nothrow_t), operator
964 new[](size_t, nothrow_t), operator new(size_t, align_val_t, nothrow_t),
965 operator new[](size_t, align_val_t, nothrow_t)): Add malloc attribute.
966
967 2018-08-24 Jonathan Wakely <jwakely@redhat.com>
968
969 * include/debug/deque (std::__debug::deque): Declare.
970 * include/debug/forward_list (std::__debug::forward_list): Declare.
971 * include/debug/list (std::__debug::list): Declare.
972 * include/debug/map (std::__debug::map): Declare.
973 * include/debug/set (std::__debug::set): Declare.
974 * include/debug/unordered_map (std::__debug::unordered_map): Declare.
975 * include/debug/unordered_set (std::__debug::unordered_set): Declare.
976 * include/debug/vector (std::__debug::vector): Declare.
977 * testsuite/23_containers/deque/types/pmr_typedefs_debug.cc: New test.
978 * testsuite/23_containers/forward_list/pmr_typedefs_debug.cc: New
979 test.
980 * testsuite/23_containers/list/pmr_typedefs_debug.cc: New test.
981 * testsuite/23_containers/map/pmr_typedefs_debug.cc: New test.
982 * testsuite/23_containers/multimap/pmr_typedefs_debug.cc: New test.
983 * testsuite/23_containers/multiset/pmr_typedefs_debug.cc: New test.
984 * testsuite/23_containers/set/pmr_typedefs_debug.cc: New test.
985 * testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc: New
986 test.
987 * testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc:
988 New test.
989 * testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc:
990 New test.
991 * testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc: New
992 test.
993 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc:
994 Adjust dg-error lineno.
995 * testsuite/23_containers/vector/types/pmr_typedefs_debug.cc: New
996 test.
997
998 2018-08-23 Jonathan Wakely <jwakely@redhat.com>
999
1000 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource):
1001 Only define when RTTI is enabled.
1002
1003 * include/debug/vector (__niter_base): Define for C++98.
1004
1005 * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
1006 Fix C++98 test to not use C++11 features.
1007 * testsuite/25_algorithms/fill_n/2.cc: Likewise.
1008
1009 * scripts/check_compile: Fix comments.
1010
1011 * include/debug/string (insert(__const_iterator, _InIter, _InIter)):
1012 [!_GLIBCXX_USE_CXX11_ABI]: Replace use of C++11-only cbegin() with
1013 begin(), for C++98 compatibility.
1014
1015 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1016 (basic_string::__const_iterator): Change access to protected.
1017 [!_GLIBCXX_USE_CXX11_ABI] (basic_string::__const_iterator): Define
1018 as typedef for iterator.
1019 * include/debug/string (__const_iterator): Use typedef from base.
1020 (insert(const_iterator, _CharT))
1021 (replace(const_iterator, const_iterator, const basic_string&))
1022 (replace(const_iterator, const_iterator, const _CharT*, size_type))
1023 (replace(const_iterator, const_iterator, const CharT*))
1024 (replace(const_iterator, const_iterator, size_type, _CharT))
1025 (replace(const_iterator, const_iterator, _InputIter, _InputIter))
1026 (replace(const_iterator, const_iterator, initializer_list<_CharT>)):
1027 Change const_iterator parameters to __const_iterator.
1028 (insert(iterator, size_type, _CharT)): Add C++98 overload.
1029 (insert(const_iterator, _InputIterator, _InputIterator)): Change
1030 const_iterator parameter to __const_iterator.
1031 [!_GLIBCXX_USE_CXX11_ABI]: Add workaround for incorrect return type
1032 of base's member function.
1033 (insert(const_iterator, size_type, _CharT)) [!_GLIBCXX_USE_CXX11_ABI]:
1034 Likewise.
1035 (insert(const_iterator, initializer_list<_CharT>))
1036 [!_GLIBCXX_USE_CXX11_ABI]: Likewise.
1037 * testsuite/21_strings/basic_string/init-list.cc: Remove effective
1038 target directive.
1039
1040 * testsuite/20_util/reference_wrapper/lwg2993.cc: Fix C++11 test to
1041 not use C++14 feature.
1042 * testsuite/23_containers/list/68222_neg.cc: Likewise.
1043
1044 * testsuite/21_strings/basic_string/init-list.cc:
1045 Require cxx11-abi.
1046 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc:
1047 Likewise.
1048 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
1049 Likewise.
1050
1051 * testsuite/23_containers/deque/capacity/max_size.cc: Fix test for
1052 C++98 mode.
1053 * testsuite/23_containers/deque/modifiers/assign/1.cc: Likewise.
1054 * testsuite/23_containers/list/modifiers/assign/1.cc: Likewise.
1055 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: Likewise.
1056 * testsuite/23_containers/vector/capacity/max_size.cc: Likewise.
1057 * testsuite/23_containers/vector/modifiers/assign/1.cc: Likewise.
1058
1059 2018-08-22 Jonathan Wakely <jwakely@redhat.com>
1060
1061 PR libstdc++/87061
1062 * include/experimental/regex [!_GLIBCXX_USE_CXX11_ABI]
1063 (experimental::pmr::match_results, experimental::pmr::cmatch)
1064 (experimental::pmr::smatch, experimental::pmr::wcmatch)
1065 (experimental::pmr::wsmatch): Do not declare for gcc4-compatible ABI,
1066 because COW strings don't support C++11 allocator model.
1067 * include/experimental/string [!_GLIBCXX_USE_CXX11_ABI]
1068 (experimental::pmr::basic_string, experimental::pmr::string)
1069 (experimental::pmr::u16string, experimental::pmr::u32string)
1070 (experimental::pmr::wstring): Likewise.
1071 * include/std/regex [!_GLIBCXX_USE_CXX11_ABI] (pmr::match_results)
1072 (pmr::cmatch, pmr::smatch, pmr::wcmatch, pmr::wsmatch): Likewise.
1073 * include/std/string [!_GLIBCXX_USE_CXX11_ABI] (pmr::basic_string)
1074 (pmr::string, pmr::u16string, pmr::u32string, pmr::wstring): Likewise.
1075 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Require
1076 cxx11-abi.
1077 * testsuite/28_regex/match_results/pmr_typedefs.cc: Likewise.
1078
1079 PR libstdc++/78448
1080 * include/bits/deque.tcc (deque::_M_range_initialize): Use
1081 _S_check_init_len to check size.
1082 (deque::_M_push_back_aux, deque::_M_push_front_aux): Throw length
1083 error if size would exceed max_size().
1084 * include/bits/stl_deque.h (_Deque_base::size_type): Remove typedef.
1085 (_Deque_base(_Deque_base&&, const allocator_type&, size_t)): Use
1086 size_t instead of size_type.
1087 (deq(size_type, const allocator_type&)
1088 (deq(size_type, const value_type&, const allocator_type&)
1089 (deque::_M_initialize_dispatch): Use _S_check_init_len to check size.
1090 (deque::max_size): Call _S_max_size.
1091 (deque::_S_check_init_len, deque::_S_max_size): New functions.
1092 * include/bits/stl_vector.h (vector(size_type, const allocator_type&))
1093 (vector(size_type, const value_type&, const allocator_type&))
1094 (vector::_M_initialize_dispatch, vector::_M_range_initialize): Use
1095 _S_check_init_len to check size.
1096 (vector::max_size): Call _S_max_size.
1097 (vector::_M_check_len): Prevent max from being expanded as a
1098 function-like macro.
1099 (vector::_S_check_init_len, vector::_S_max_size): New functions.
1100 * include/bits/vector.tcc (vector::_M_assign_aux): Use
1101 _S_check_init_len to check size.
1102 * testsuite/23_containers/deque/capacity/max_size.cc: New test.
1103 * testsuite/23_containers/vector/capacity/max_size.cc: New test.
1104
1105 2018-08-22 François Dumont <fdumont@gcc.gnu.org>
1106
1107 PR libstdc++/68222
1108 * include/debug/safe_iterator.h
1109 (_Safe_iterator<_It, _Sq, _Cat>): Add category template parameter.
1110 (_Safe_iterator<>::_Const_iterator): Remove.
1111 (_Safe_iterator<>::_IsConstant): New.
1112 (_Safe_iterator<>::_OtherIterator): New.
1113 (_Safe_iterator<_It, _Sq, _Cat>::_Safe_iterator<_MutIte>(
1114 const _Safe_iterator<_MutIte, _Sq, _Cat>&)): Add _IsConstant::__value in
1115 __gnu_cxx::__enable_if condition.
1116 (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_to): New.
1117 (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_from_begin): New.
1118 (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_to_end): New.
1119 (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>): New.
1120 (_Safe_iterator<_It, _Sq, _Cat>::operator--()): Move...
1121 (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>
1122 ::operator--()): ...here.
1123 (_Safe_iterator<_It, _Sq, _Cat>::operator--(int)): Move...
1124 (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>
1125 ::operator--(int)): ...here.
1126 (_Safe_iterator<_It, _Sq, _Cat>::_M_decrementable()): Move...
1127 (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>
1128 ::_M_decrementable()): ...here.
1129 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>): New.
1130 (_Safe_iterator<_It, _Sq, _Cat>::operator[](const difference_type&)):
1131 Move...
1132 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1133 ::operator[](const difference_type&)): ...here.
1134 (_Safe_iterator<_It, _Sq, _Cat>::operator+=(const difference_type&)):
1135 Move...
1136 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1137 ::operator+=(const difference_type&)): ...here.
1138 (_Safe_iterator<_It, _Sq, _Cat>::operator+(const difference_type&)):
1139 Move...
1140 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1141 ::operator+(const difference_type&)): ...here.
1142 (_Safe_iterator<_It, _Sq, _Cat>::operator-=(const difference_type&)):
1143 Move...
1144 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1145 ::operator-=(const difference_type&)): ...here.
1146 (_Safe_iterator<_It, _Sq, _Cat>::operator-(const difference_type&)):
1147 Move...
1148 (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>
1149 ::operator-(const difference_type&)): ...here.
1150 (operator<(const _Safe_iterator<>&, const _Safe_iterator<>&)):
1151 Constraint to random access iterators.
1152 (operator<=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
1153 Likewise.
1154 (operator>(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
1155 (operator>=(const _Safe_iterator<>&, const _Safe_iterator<>&)):
1156 Likewise.
1157 (operator-(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise.
1158 (operator+(const difference_type&, const _Safe_iterator<>&)): Likewise.
1159 (__check_dereferenceable(const _Safe_iterator<>&)): Remove.
1160 (__get_distance): Remove.
1161 (__get_distance_from_begin): Remove.
1162 (__get_distance_to_end): Remove.
1163 (struct __is_safe_random_iterator<_Safe_iterator<>>): Remove partial
1164 specialization.
1165 (__base(const _Safe_iterator<>&, std::input_iterator_tag)): Remove.
1166 (__base(const _Safe_iterator<>&, std::random_access_iterator_tag)): Remove.
1167 (__base(const _Safe_iterator<>&)): Constraint to random access iterator.
1168 * include/debug/safe_iterator.tcc
1169 (_Safe_iterator<>::_M_get_distance_from_begin()): New.
1170 (_Safe_iterator<>::_M_get_distance_to_end()): New.
1171 (_Safe_iterator<>::_M_get_distance_to(const _Safe_iterator<>&)): New.
1172 (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>
1173 ::_M_valid_range): New.
1174 * include/debug/safe_local_iterator.h
1175 (_Safe_local_iterator<>::_Const_local_iterator): Remove.
1176 (_Safe_local_iterator<>::_IsConstant): New.
1177 (_Safe_local_iterator<>::_OtherIterator): New.
1178 (_Safe_local_iterator<_It, _Cont>::_Safe_local_iterator<_MutIte, _Cont>(
1179 const _Safe_local_iterator<_MutIte, _Seq>&)): Add _IsConstant::__value
1180 in __gnu_cxx::__enable_if condition. If singular compare base iterator
1181 with _MutIte rather than _It.
1182 (_Safe_local_iterator<>::_S_constant): Make constexpr.
1183 (_Safe_local_iterator<>::_M_get_distance_to): New.
1184 (__check_dereferenceable(const _Safe_local_iterator<>&)): Remove.
1185 (__get_distance(const _Safe_local_iterator<>&,
1186 const _Safe_local_iterator<>&, std::input_iterator_tag)): Remove.
1187 (__valid_range(const _Safe_local_iterator<>&,
1188 const _Safe_local_iterator<>&)): New.
1189 * include/debug/safe_local_iterator.tcc
1190 (_Safe_local_iterator<>::_M_get_distance_to): New.
1191 * include/debug/deque (std::__debug::deque<>): Add
1192 ::__gnu_debug::_Safe_iterator<> friend declaration.
1193 * include/debug/forward_list (std::__debug::forward_list<>): Likewise.
1194 * include/debug/list (std::__debug::list<>): Likewise.
1195 * include/debug/map.h (std::__debug::map<>): Likewise.
1196 * include/debug/multimap.h (std::__debug::multimap<>): Likewise.
1197 * include/debug/set.h (std::__debug::set<>): Likewise.
1198 * include/debug/multiset.h (std::__debug::multiset<>): Likewise.
1199 * include/debug/string (std::__debug::basic_string<>): Likewise.
1200 * include/debug/unordered_map (std::__debug::unordered_map<>): Likewise
1201 and add ::__gnu_debug::_Safe_local_iterator<> friend declaration.
1202 (std::__debug::unordered_multimap<>): Likewise.
1203 * include/debug/unordered_set (std::__debug::unordered_set<>): Likewise.
1204 (std::__debug::unordered_multiset<>): Likewise.
1205 * include/debug/formatter.h: Adapt.
1206 * include/debug/helper_functions.h
1207 (__gnu_debug::_Safe_local_iterator<>): Add declaration.
1208 (__get_distance<_Ite>(_Ite, _Ite, std::random_access_iterator_tag):
1209 Pass parameter by copy.
1210 (__get_distance<_Ite>(_Ite, _Ite, std::input_iterator_tag): Likewise.
1211 (__get_distance<_Ite>(_Ite, _Ite): Likewise.
1212 (__valid_range_aux<_Integral>): Pass _Integral by copy.
1213 (__valid_range<_InputIterator>): Pass _InputIterator by copy.
1214 (__valid_range<>(const _Safe_iterator<>&,
1215 const _Safe_iterator<>&, typename _Distance_traits<>::__type&)):
1216 Declare.
1217 (__valid_range(const _Safe_local_iterator<>&,
1218 const _Safe_local_iterator<>&, typename _Distance_traits<>::__type&)):
1219 Declare.
1220 (__valid_range<>(const _Safe_iterator<>&, const _Safe_iterator<>&)):
1221 Declare.
1222 (__valid_range(const _Safe_local_iterator<>&, const _Safe_local_iterator<>&)):
1223 Declare.
1224 (__can_advance): Adapt.
1225 (struct __is_safe_random_iterator<>): Remove.
1226 (struct _SIter_base<>): Remove.
1227 * include/debug/functions.h: Include <bits/stl_iterator.h>.
1228 (__check_dereferenceable): Remove.
1229 (__foreign_iterator_aux4, __foreign_iterator_aux3): Adapt.
1230 (__foreign_iterator_aux2, __foreign_iterator_aux): Adapt.
1231 (__foreign_iterator): Adapt.
1232 * include/debug/stl_iterator.h
1233 (__is_safe_random_iterator<std::reverse_iterator<>>): Remove.
1234 (__base(const std::reverse_iterator<_Safe_iterator<_It, _Sq>)):
1235 Constraint for random access iterators.
1236 (__niter_base): Adapt.
1237 * testsuite/util/testsuite_containers.h:
1238 Include <bits/boost_concept_check.h>.
1239 (iterator_concept_checks<_It, _Mutable, _Category>): New.
1240 (citerator<_Cont>::forward_members::forward_members()): Instantiate
1241 latter for container iterator and const_iterator.
1242 * testsuite/23_containers/list/68222_neg.cc: New.
1243 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: Adapt
1244 line number.
1245 * testsuite/23_containers/unordered_set/debug/debug_functions.cc:
1246 (test01): Remove.
1247 * testsuite/23_containers/vector/debug/debug_functions.cc (test01):
1248 Remove.
1249
1250 2018-08-22 Jonathan Wakely <jwakely@redhat.com>
1251
1252 PR libstdc++/77854
1253 * doc/xml/manual/status_cxx1998.xml: Document size_type and
1254 difference_type for containers.
1255 * doc/html/*: Regenerate.
1256
1257 2018-08-21 François Dumont <fdumont@gcc.gnu.org>
1258
1259 P0646R1 Improving the Return Value of Erase-Like Algorithms I
1260 * include/debug/forward_list (forward_list::__remove_return_type):
1261 Define typedef as size_type or void, according to __cplusplus value.
1262 (_GLIBCXX_FWDLIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
1263 empty, according to __cplusplus value.
1264 (_GLIBCXX20_ONLY): Define macro.
1265 (forward_list::remove, forward_list::unique): Use typedef and macro
1266 to change return type and add abi-tag for C++2a. Return number of
1267 removed elements for C++2a.
1268 (forward_list::remove_if<Pred>, forward_list::unique<BinPred>): Use
1269 typedef to change return type for C++2a. Return number of removed
1270 elements for C++2a.
1271 * include/debug/list (list::__remove_return_type): Define typedef as
1272 size_type or void, according to __cplusplus value.
1273 (_GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
1274 empty, according to __cplusplus value.
1275 (_GLIBCXX20_ONLY): Define macro.
1276 (list::remove, list::unique): Use typedef and macro to change return
1277 type and add abi-tag for C++2a. Return number of removed elements for
1278 C++2a.
1279 (list::remove_if<Predicate>, list::unique<BinaryPredicate>): Use typedef
1280 to change return type for C++2a. Return number of removed elements for
1281 C++2a.
1282
1283 2018-08-21 David Edelsohn <dje.gcc@gmail.com>
1284
1285 * testsuite/18_support/new_nothrow.cc: XFAIL on AIX.
1286
1287 2018-08-21 Jonathan Wakely <jwakely@redhat.com>
1288
1289 * testsuite/26_numerics/bit/bitops.count/countl_one.cc: Remove
1290 redundant dg-do directive.
1291 * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: Likewise.
1292 * testsuite/26_numerics/bit/bitops.count/countr_one.cc: Likewise.
1293 * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: Likewise.
1294 * testsuite/26_numerics/bit/bitops.count/popcount.cc: Likewise.
1295
1296 2018-08-20 Jonathan Wakely <jwakely@redhat.com>
1297
1298 PR libstdc++/86963
1299 * include/std/tuple (_Tuple_impl::operator=): Define as deleted.
1300 (_Tuple_impl::_M_assign): New functions to perform assignment instead
1301 of assignment operators.
1302 (_Tuple_impl::_M_swap): Remove exception specification.
1303 (_Tuple_impl<_Idx, _Head>): Likewise.
1304 (_TC::_NonNestedTuple, _TC::_NotSameTuple): Use __remove_cvref_t.
1305 (__tuple_base): Remove.
1306 (tuple, tuple<_T1, _T2>): Remove inheritance from __tuple_base.
1307 (tuple::operator=, tuple<_T1, _T2>::operator=): Call _M_assign.
1308 (tuple::swap, tuple<_T1, _T2>::swap): Define exception specification
1309 using __is_nothrow_swappable.
1310 (tuple<_T1, _T2>::tuple(_U1&&, _U2&&)): Use __remove_cvref_t.
1311
1312 * include/std/optional (_Optional_payload): Use variable templates
1313 for conditions in default template arguments and exception
1314 specifications.
1315 (optional): Likewise. Adjust indentation.
1316 (optional::__not_self, optional::__not_tag, optional::_Requires): New
1317 SFINAE helpers.
1318 (optional::optional): Use new helpers in constructor constraints.
1319 * include/std/type_traits (__or_v, __and_v): New variable templates.
1320 * testsuite/20_util/optional/cons/value_neg.cc: Change dg-error to
1321 dg-prune-output. Remove unused header.
1322
1323 2018-08-18 François Dumont <fdumont@gcc.gnu.org>
1324
1325 * testsuite/25_algorithms/copy/86658.cc: Use dg-options to define
1326 _GLIBCXX_DEBUG.
1327
1328 2018-08-17 Jonathan Wakely <jwakely@redhat.com>
1329
1330 PR libstdc++/86963
1331 * include/std/tuple (__tuple_base): New class template with deleted
1332 copy assignment operator.
1333 (tuple, tuple<_T1, _T2>): Derive from __tuple_base<tuple> so that
1334 implicit copy/move assignment operator will be deleted/suppressed.
1335 (tuple::__assignable, tuple<_T1, _T2>::__assignable): New helper
1336 functions for SFINAE constraints on assignment operators.
1337 (tuple::__nothrow_assignable, tuple<_T1, _T2>::__nothrow_assignable):
1338 New helper functions for exception specifications.
1339 (tuple::operator=(const tuple&), tuple::operator=(tuple&&))
1340 (tuple<_T1, _T2>::operator=(const tuple&))
1341 (tuple<_T1, _T2>::operator=(tuple&&)): Change parameter types to
1342 __nonesuch_no_braces when the operator should be defined implicitly.
1343 Use __nothrow_assignable for exception specifications.
1344 (tuple::operator=(const tuple<_UElements...>&))
1345 (tuple::operator=(tuple<_UElements...>&&))
1346 (tuple<_T1, _T2>::operator=(const tuple<_U1, _U2>&))
1347 (tuple<_T1, _T2>::operator=(tuple<_U1, _U2>&&))
1348 (tuple<_T1, _T2>::operator=(const pair<_U1, _U2>&))
1349 (tuple<_T1, _T2>::operator=(pair<_U1, _U2>&&)): Constrain using
1350 __assignable and use __nothrow_assignable for exception
1351 specifications.
1352 * python/libstdcxx/v6/printers.py (is_specialization_of): Accept
1353 gdb.Type as first argument, instead of a string.
1354 (StdTuplePrinter._iterator._is_nonempty_tuple): New method to check
1355 tuple for expected structure.
1356 (StdTuplePrinter._iterator.__init__): Use _is_nonempty_tuple.
1357 * testsuite/20_util/tuple/dr2729.cc: New test.
1358 * testsuite/20_util/tuple/element_access/get_neg.cc: Change dg-error
1359 to dg-prune-output.
1360
1361 2018-08-16 Jonathan Wakely <jwakely@redhat.com>
1362
1363 * include/tr1/legendre_function.tcc (__sph_legendre): Avoid warning
1364 about signed/unsigned comparison.
1365
1366 * include/std/ostream (basic_ostream::sentry::~sentry): Suppress
1367 deprecation warnings for using uncaught_exception().
1368
1369 PR libstdc++/86447
1370 * src/c++11/cow-stdexcept.cc [_GLIBCXX_FULLY_DYNAMIC_STRING]
1371 (logic_error::logic_error(logic_error&&))
1372 (logic_error::operator=(logic_error&&))
1373 (runtime_error::runtime_error(runtime_error&&))
1374 (runtime_error::operator=(runtime_error&&)): Copy strings instead of
1375 moving, to avoid allocating empty reps for moved-from strings.
1376
1377 2018-08-15 Jonathan Wakely <jwakely@redhat.com>
1378
1379 * include/experimental/regex: Remove begin/end macros for namespace.
1380 * include/experimental/string: Likewise.
1381 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_deque.cc:
1382 New test.
1383 * testsuite/experimental/polymorphic_allocator/
1384 pmr_typedefs_forward_list.cc: New test.
1385 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_list.cc:
1386 New test.
1387 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_map.cc:
1388 New test.
1389 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc:
1390 New test.
1391 * testsuite/experimental/polymorphic_allocator/
1392 pmr_typedefs_multimap.cc: New test.
1393 * testsuite/experimental/polymorphic_allocator/
1394 pmr_typedefs_multiset.cc: New test.
1395 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_set.cc:
1396 New test.
1397 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
1398 New test.
1399 * testsuite/experimental/polymorphic_allocator/
1400 pmr_typedefs_unordered_map.cc: New test.
1401 * testsuite/experimental/polymorphic_allocator/
1402 pmr_typedefs_unordered_multimap.cc: New test.
1403 * testsuite/experimental/polymorphic_allocator/
1404 pmr_typedefs_unordered_multiset.cc: New test.
1405 * testsuite/experimental/polymorphic_allocator/
1406 pmr_typedefs_unordered_set.cc: New test.
1407 * testsuite/experimental/polymorphic_allocator/pmr_typedefs_vector.cc:
1408 New test.
1409
1410 * include/bits/uses_allocator.h (__uses_allocator_construct): Qualify
1411 calls to __uses_allocator_construct_impl and __use_alloc.
1412 * include/experimental/memory_resource
1413 (polymorphic_allocator::_M_construct): Remove.
1414 (polymorphic_allocator::construct): Call __uses_allocator_construct.
1415 Qualify calls to __use_alloc.
1416 * include/std/memory_resource (polymorphic_allocator::construct): Fix
1417 type in SFINAE constraint. Use constexpr if instead of tag dispatching
1418 to _S_construct overloads.
1419 (polymorphic_allocator::construct(pair<T1, T2>*, ...)): Fix order of
1420 arguments to _S_construct_p.
1421 (polymorphic_allocator::_S_construct): Remove.
1422 (polymorphic_allocator::_S_construct_p): Return allocators by value
1423 not by reference.
1424 * include/std/scoped_allocator (scoped_allocator_adaptor::construct):
1425 Qualify calls to __use_alloc.
1426 * testsuite/20_util/polymorphic_allocator/construct_pair.cc: New test,
1427 copied from testsuite/20_util/scoped_allocator/construct_pair.cc.
1428 * testsuite/experimental/polymorphic_allocator/1.cc: New test.
1429 * testsuite/experimental/polymorphic_allocator/construct_pair.cc:
1430 New test.
1431
1432 * src/c++17/memory_resource.cc [!_GLIBCXX_HAS_GTHREADS]
1433 (atomic_mem_res): Add unsynchronized definition for single-threaded.
1434
1435 2018-08-14 Jonathan Wakely <jwakely@redhat.com>
1436
1437 PR libstdc++/86954
1438 * include/bits/stl_tempbuf.h (return_temporary_buffer): Use
1439 non-placement delete.
1440
1441 * include/std/chrono (__check_overflow): Simplify definition.
1442 (_Checked_integral_constant): Remove.
1443
1444 PR libstdc++/86846
1445 * src/c++17/default_resource.h: New file, defining default_res.
1446 * src/c++17/memory_resource.cc [ATOMIC_POINTER_LOCK_FREE != 2]
1447 (atomic_mem_res): Define alternative for atomic<memory_resource*>
1448 using a mutex instead of atomics.
1449
1450 PR libstdc++/85343
1451 * config/abi/pre/gnu.ver: Export new symbol.
1452 * doc/xml/manual/abi.xml: Document new versions.
1453 * include/bits/fstream.tcc (basic_filebuf<C, T>::underflow)
1454 (basic_filebuf<C, T>::xsgetn): Pass errno to __throw_ios_failure.
1455 * include/bits/functexcept.h (__throw_ios_failure(const char*, int)):
1456 Declare new overload.
1457 * src/c++11/cxx11-ios_failure.cc (__ios_failure): Add new constructor
1458 and static member function.
1459 (__throw_ios_failure(const char*, int)): Define.
1460 * src/c++98/ios_failure.cc [!_GLIBCXX_USE_DUAL_ABI]
1461 (__throw_ios_failure(const char*, int)): Define.
1462
1463 2018-08-14 Jeremy Sawicki <jeremy-gcc@sawicki.us>
1464
1465 * include/ext/rope (_Rope_iterator_base(const _Rope_iterator_base&))
1466 (_Rope_const_iterator::operator=(const _Rope_const_iterator&))
1467 (_Rope_iterator::operator=(const _Rope_iterator&)): Ensure
1468 copied/assigned rope iterators don't retain pointers to the iterator
1469 they were copied/assigned from.
1470 * testsuite/ext/rope/7.cc: New.
1471
1472 2018-08-13 Jonathan Wakely <jwakely@redhat.com>
1473
1474 PR libstdc++/45093
1475 * include/bits/stl_tree.h (_Rb_tree::_M_destroy_node(_Link_type)):
1476 Combine definitions to avoid --detect-odr-violations warning.
1477
1478 * libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Use
1479 __is_pow2 to check for valid alignment. Avoid branching when rounding
1480 size to multiple of alignment.
1481
1482 * include/Makefile.am: Install <bit> and <version> for freestanding.
1483 * include/Makefile.in: Regenerate.
1484 * testsuite/17_intro/freestanding.cc: Check for <bit> and <version>.
1485
1486 Revert
1487 2018-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1488
1489 PR target/85904
1490 * configure.ac: Define HAVE_ALIGNED_ALLOC if building for
1491 Newlib.
1492 * configure: Regenerate.
1493
1494 2018-08-10 Jonathan Wakely <jwakely@redhat.com>
1495
1496 PR libstdc++/68210
1497 * doc/xml/manual/intro.xml: Document LWG 206 change.
1498 * libsupc++/del_op.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
1499 * libsupc++/del_opa.cc: Likewise.
1500 * libsupc++/del_opant.cc: Likewise.
1501 * libsupc++/del_opnt.cc: Likewise. Call operator delete(ptr) instead
1502 of free(ptr).
1503 * libsupc++/del_ops.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
1504 * libsupc++/del_opsa.cc: Likewise.
1505 * libsupc++/del_opva.cc: Likewise.
1506 * libsupc++/del_opvant.cc: Likewise.
1507 * libsupc++/del_opvnt.cc: Likewise. Call operator delete[](ptr)
1508 instead of operator delete(ptr).
1509 * libsupc++/del_opvs.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
1510 * libsupc++/del_opvsa.cc: Likewise.
1511 * libsupc++/new_op.cc: Use __builtin_expect in check for zero size.
1512 * libsupc++/new_opa.cc: Use nullptr instead of literal 0.
1513 * libsupc++/new_opant.cc: Likewise. Replace _GLIBCXX_USE_NOEXCEPT
1514 with noexcept.
1515 * libsupc++/new_opnt.cc: Likewise. Call operator new(sz) instead of
1516 malloc(sz).
1517 * libsupc++/new_opvant.cc: Use nullptr and noexcept.
1518 * libsupc++/new_opvnt.cc: Likewise. Call operator new[](sz) instead of
1519 operator new(sz, nothrow).
1520 * testsuite/18_support/new_nothrow.cc: New test.
1521
1522 2018-08-10 Martin Liska <mliska@suse.cz>
1523
1524 * libsupc++/new_op.cc (new): Remove __builtin_expect as malloc
1525 predictor can handle that.
1526 * libsupc++/new_opa.cc: Likewise.
1527 * libsupc++/new_opnt.cc (new): Likewise.
1528
1529 2018-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1530
1531 PR target/85904
1532 * configure.ac: Define HAVE_ALIGNED_ALLOC if building for
1533 Newlib.
1534 * configure: Regenerate.
1535
1536 2018-08-10 Jonathan Wakely <jwakely@redhat.com>
1537
1538 * include/std/deque (std::pmr::deque): Declare alias.
1539 * include/std/forward_list (std::pmr::forward_list): Likewise.
1540 * include/std/list (std::pmr::list): Likewise.
1541 * include/std/map (std::pmr::map, std::pmr::multimap): Likewise.
1542 * include/std/regex (std::pmr::match_results, std::pmr::cmatch)
1543 (std::pmr::smatch, std::pmr::wcmatch, std::pmr::wsmatch): Likewise.
1544 * include/std/set (std::pmr::set, std::pmr::multiset): Likewise.
1545 * include/std/string (std::pmr::basic_string, std::pmr::string)
1546 (std::pmr::u16string, std::pmr::u32string, std::pmr::wstring):
1547 Likewise.
1548 * include/std/unordered_map (std::pmr::unordered_map)
1549 (std::pmr::unordered_multimap): Likewise.
1550 * include/std/unordered_set (std::pmr::unordered_set)
1551 (std::pmr::unordered_multiset): Likewise.
1552 * include/std/vector (std::pmr::vector): Likewise.
1553 * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: New test.
1554 * testsuite/23_containers/deque/types/pmr_typedefs.cc: New test.
1555 * testsuite/23_containers/forward_list/pmr_typedefs.cc: New test.
1556 * testsuite/23_containers/list/pmr_typedefs.cc: New test.
1557 * testsuite/23_containers/map/pmr_typedefs.cc: New test.
1558 * testsuite/23_containers/multimap/pmr_typedefs.cc: New test.
1559 * testsuite/23_containers/multiset/pmr_typedefs.cc: New test.
1560 * testsuite/23_containers/set/pmr_typedefs.cc: New test.
1561 * testsuite/23_containers/unordered_map/pmr_typedefs.cc: New test.
1562 * testsuite/23_containers/unordered_multimap/pmr_typedefs.cc: New
1563 test.
1564 * testsuite/23_containers/unordered_multiset/pmr_typedefs.cc: New
1565 test.
1566 * testsuite/23_containers/unordered_set/pmr_typedefs.cc: New test.
1567 * testsuite/23_containers/vector/pmr_typedefs.cc: New test.
1568 * testsuite/28_regex/match_results/pmr_typedefs.cc: New test.
1569
1570 2018-08-08 François Dumont <fdumont@gcc.gnu.org>
1571
1572 * include/bits/stl_algo.h
1573 (__rotate(_Ite, _Ite, _Ite, forward_iterator_tag))
1574 (__rotate(_Ite, _Ite, _Ite, bidirectional_iterator_tag))
1575 (__rotate(_Ite, _Ite, _Ite, random_access_iterator_tag)): Move code
1576 duplication...
1577 (rotate(_Ite, _Ite, _Ite)): ...here.
1578 (__stable_partition_adaptive(_FIt, _FIt, _Pred, _Dist, _Pointer, _Dist)):
1579 Simplify rotate call.
1580 (__rotate_adaptive(_BIt1, _BIt1, _BIt1, _Dist, _Dist, _Bit2, _Dist)):
1581 Likewise.
1582 (__merge_without_buffer(_BIt, _BIt, _BIt, _Dist, _Dist, _Comp)):
1583 Likewise.
1584
1585 2018-08-08 Jonathan Wakely <jwakely@redhat.com>
1586
1587 * libsupc++/new_opa.cc (aligned_alloc): Declare inside namespace to
1588 avoid clashing with an ::aligned_alloc function that was not detected
1589 by configure.
1590
1591 * doc/xml/manual/using.xml: Fix markup for empty table entry.
1592 * doc/html/*: Regenerate.
1593
1594 * doc/xml/manual/using.xml: Add missing header to table and fix typo.
1595 * doc/html/*: Regenerate.
1596
1597 PR libstdc++/86597
1598 * include/bits/fs_dir.h (directory_entry::_M_file_type(error_code&)):
1599 Clear error_code when cached type is used.
1600 * testsuite/27_io/filesystem/directory_entry/86597.cc: New test.
1601
1602 2018-08-07 Jonathan Wakely <jwakely@redhat.com>
1603
1604 PR libstdc++/86874
1605 * include/std/variant (_Copy_ctor_base::_M_destructive_move): Define
1606 here instead of in _Move_assign_base.
1607 (_Copy_ctor_base<true, _Types...>::_M_destructive_move): Define.
1608 (_Copy_assign_base::operator=): Use _M_destructive_move when changing
1609 the contained value to another alternative.
1610 (_Move_assign_base::operator=): Likewise.
1611 (_Move_assign_base::_M_destructive_move): Remove.
1612 * testsuite/20_util/variant/86874.cc: New test.
1613
1614 PR libstdc++/86861
1615 * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] (aligned_alloc):
1616 Replace macro with inline function.
1617 [__sun]: Increase alignment to meet memalign precondition.
1618 [!HAVE__ALIGNED_MALLOC && !HAVE_POSIX_MEMALIGN && !HAVE_MEMALIGN]
1619 (aligned_alloc): Move check for valid alignment to operator new.
1620 Remove redundant check for non-zero size, it's enforced by the caller.
1621 (operator new): Move check for valid alignment here. Use
1622 __builtin_expect on check for zero size.
1623
1624 * config/abi/pre/gnu.ver: Export monotonic_buffer_resource members.
1625 * include/std/memory_resource (monotonic_buffer_resource::release):
1626 Call _M_release_buffers to free buffers.
1627 (monotonic_buffer_resource::do_allocate): Call _M_new_buffer to
1628 allocate a new buffer from upstream.
1629 (monotonic_buffer_resource::_M_new_buffer): Declare.
1630 (monotonic_buffer_resource::_M_release_buffers): Declare.
1631 (monotonic_buffer_resource::_Chunk): Replace definition with
1632 declaration as opaque type.
1633 * src/c++17/memory_resource.cc (monotonic_buffer_resource::_Chunk):
1634 Define.
1635 (monotonic_buffer_resource::_M_new_buffer): Define.
1636 (monotonic_buffer_resource::_M_release_buffers): Define.
1637
1638 2018-08-05 François Dumont <fdumont@gcc.gnu.org>
1639
1640 * include/bits/stl_iterator.h: Fix comment.
1641
1642 2018-08-03 Jonathan Wakely <jwakely@redhat.com>
1643
1644 * src/c++11/system_error.cc
1645 (system_error_category::default_error_condition): Add workaround for
1646 ENOTEMPTY and EEXIST having the same value on AIX.
1647 * testsuite/19_diagnostics/error_category/system_category.cc: Add
1648 extra testcases for EDOM, EILSEQ, ERANGE, EEXIST and ENOTEMPTY.
1649
1650 2018-08-01 Jonathan Wakely <jwakely@redhat.com>
1651
1652 * configure: Regenerate.
1653 * configure.ac: Add -D_GLIBCXX_ASSERTIONS to default DEBUG_FLAGS.
1654 * src/c++11/futex.cc: Use __glibcxx_assert instead of
1655 _GLIBCXX_DEBUG_ASSERT.
1656
1657 2018-08-01 Mike Crowe <mac@mcrowe.com>
1658
1659 * include/std/condition_variable (wait_for): Use steady_clock.
1660
1661 2018-08-01 Mike Crowe <mac@mcrowe.com>
1662
1663 * include/std/condition_variable (wait_until): Only report timeout
1664 if we really have timed out when measured against the
1665 caller-supplied clock.
1666 * testsuite/30_threads/condition_variable/members/2.cc: Add test
1667 case to confirm above behaviour.
1668
1669 2018-08-01 Jonathan Wakely <jwakely@redhat.com>
1670
1671 PR libstdc++/60555
1672 * src/c++11/system_error.cc
1673 (system_error_category::default_error_condition): New override to
1674 check for POSIX errno values.
1675 * testsuite/19_diagnostics/error_category/generic_category.cc: New
1676 * testsuite/19_diagnostics/error_category/system_category.cc: New
1677 test.
1678
1679 2018-07-31 Jonathan Wakely <jwakely@redhat.com>
1680
1681 PR libstdc++/86751
1682 * include/bits/stl_pair.h (__pair_base): New class with deleted copy
1683 assignment operator.
1684 (pair): Derive from __pair_base.
1685 (pair::operator=): Remove deleted overload.
1686 * python/libstdcxx/v6/printers.py (StdPairPrinter): New pretty printer
1687 so that new base class isn't shown in GDB.
1688 * testsuite/20_util/pair/86751.cc: New test.
1689 * testsuite/20_util/pair/ref_assign.cc: New test.
1690
1691 * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP)
1692 (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Move definitions here.
1693 (_GLIBCXX_HAVE_BUILTIN_LAUNDER): Likewise. Use !__is_identifier
1694 instead of __has_builtin.
1695 * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP)
1696 (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Remove definitions from here.
1697 * include/std/version [!_GLIBCXX_HAS_GTHREADS]
1698 (__cpp_lib_shared_timed_mutex, __cpp_lib_scoped_lock)
1699 (__cpp_lib_shared_mutex): Don't define when Gthreads not in use.
1700 [!_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP]
1701 (__cpp_lib_has_unique_object_representations): Don't define when
1702 builtin not available.
1703 [!_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE] (__cpp_lib_is_aggregate):
1704 Likewise.
1705 [!_GLIBCXX_HAVE_BUILTIN_LAUNDER] (__cpp_lib_launder): Likewise.
1706 * libsupc++/new (_GLIBCXX_HAVE_BUILTIN_LAUNDER): Remove definition
1707 from here.
1708
1709 * doc/xml/manual/test.xml: Improve documentation on writing tests for
1710 newer standards.
1711 * doc/xml/manual/using.xml: Document all headers for C++11 and later.
1712 * doc/html/*: Regenerate.
1713
1714 * include/ext/pointer.h [__cplusplus >= 201103L]
1715 (_Pointer_adapter::operator bool): Add explicit conversion operator
1716 to replace safe bool idiom.
1717
1718 2018-07-30 Jonathan Wakely <jwakely@redhat.com>
1719
1720 PR libstdc++/86734
1721 * include/bits/stl_iterator.h (reverse_iterator::operator->): Call
1722 _S_to_pointer (LWG 1052, LWG 2118).
1723 (reverse_iterator::_S_to_pointer): Define overloaded helper functions.
1724 * testsuite/24_iterators/reverse_iterator/dr1052.cc: New test.
1725 * testsuite/24_iterators/reverse_iterator/dr2188.cc: New test.
1726
1727 * libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Add
1728 workaround for aligned_alloc bug on AIX.
1729 * testsuite/18_support/new_aligned.cc: New test.
1730
1731 2018-07-26 Marek Polacek <polacek@redhat.com>
1732
1733 * testsuite/30_threads/condition_variable_any/cond.cc: New.
1734
1735 2018-07-26 Marek Polacek <polacek@redhat.com>
1736
1737 * src/c++98/locale_init.cc: Fix #ifdef condition.
1738
1739 2018-07-26 Jonathan Wakely <jwakely@redhat.com>
1740
1741 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: Add
1742 dg-require-cstdint directive.
1743 * testsuite/20_util/allocator/overaligned.cc: Likewise.
1744 * testsuite/20_util/any/cons/aligned.cc: Likewise.
1745 * testsuite/20_util/monotonic_buffer_resource/allocate.cc: Likewise.
1746 * testsuite/20_util/monotonic_buffer_resource/deallocate.cc: Likewise.
1747 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
1748 Likewise.
1749 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
1750 * testsuite/23_containers/list/modifiers/insert/25288.cc: Likewise.
1751 * testsuite/23_containers/set/allocator/move_assign.cc: Likewise.
1752 * testsuite/25_algorithms/make_heap/complexity.cc: Likewise.
1753 * testsuite/25_algorithms/pop_heap/complexity.cc: Require cstdint and
1754 random_device effective-target.
1755 * testsuite/25_algorithms/push_heap/complexity.cc: Likewise.
1756 * testsuite/25_algorithms/sample/1.cc: Require cstdint.
1757 * testsuite/25_algorithms/sample/2.cc: Likewise.
1758 * testsuite/25_algorithms/sort_heap/complexity.cc: Require cstdint
1759 and random_device.
1760 * testsuite/26_numerics/headers/random/types_std_c++0x.cc: Require
1761 cstdint.
1762 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
1763 Likewise.
1764 * testsuite/26_numerics/random/discard_block_engine/requirements/
1765 constexpr_data.cc: Likewise.
1766 * testsuite/26_numerics/random/discard_block_engine/requirements/
1767 constexpr_functions.cc: Likewise.
1768 * testsuite/26_numerics/random/independent_bits_engine/requirements/
1769 constexpr_functions.cc: Likewise.
1770 * testsuite/26_numerics/random/linear_congruential_engine/requirements/
1771 constexpr_data.cc: Likewise.
1772 * testsuite/26_numerics/random/linear_congruential_engine/requirements/
1773 constexpr_functions.cc: Likewise.
1774 * testsuite/26_numerics/random/mersenne_twister_engine/requirements/
1775 constexpr_data.cc: Likewise.
1776 * testsuite/26_numerics/random/mersenne_twister_engine/requirements/
1777 constexpr_functions.cc: Likewise.
1778 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
1779 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: Likewise.
1780 * testsuite/26_numerics/random/shuffle_order_engine/requirements/
1781 constexpr_data.cc: Add dg-require-cstdint directive.
1782 * testsuite/26_numerics/random/shuffle_order_engine/requirements/
1783 constexpr_functions.cc: Likewise.
1784 * testsuite/26_numerics/random/subtract_with_carry_engine/requirements/
1785 constexpr_data.cc: Likewise.
1786 * testsuite/26_numerics/random/subtract_with_carry_engine/requirements/
1787 constexpr_functions.cc: Likewise.
1788 * testsuite/26_numerics/random/uniform_real_distribution/operators/
1789 64351.cc: Likewise.
1790 * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc: Likewise.
1791 * testsuite/experimental/algorithm/sample-2.cc: Likewise.
1792 * testsuite/experimental/algorithm/sample.cc: Likewise.
1793 * testsuite/experimental/algorithm/search.cc: Likewise.
1794 * testsuite/experimental/algorithm/shuffle.cc: Likewise.
1795 * testsuite/experimental/any/cons/aligned.cc: Likewise.
1796 * testsuite/experimental/memory_resource/new_delete_resource.cc:
1797 Likewise.
1798 * testsuite/experimental/memory_resource/resource_adaptor.cc: Likewise.
1799 * testsuite/experimental/random/randint.cc: Likewise.
1800 * testsuite/experimental/source_location/1.cc: Likewise.
1801 * testsuite/ext/bitmap_allocator/overaligned.cc: Likewise.
1802 * testsuite/ext/malloc_allocator/overaligned.cc: Likewise.
1803 * testsuite/ext/mt_allocator/overaligned.cc: Likewise.
1804 * testsuite/ext/new_allocator/overaligned.cc: Likewise.
1805 * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
1806 * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
1807 * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
1808 * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
1809 * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
1810 * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
1811 * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
1812 * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
1813 * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
1814 * testsuite/ext/pool_allocator/overaligned.cc: Likewise.
1815 * testsuite/ext/throw_allocator/check_allocate_max_size.cc: Likewise.
1816 * testsuite/ext/throw_allocator/check_deallocate_null.cc: Likewise.
1817 * testsuite/ext/throw_allocator/check_delete.cc: Likewise.
1818 * testsuite/ext/throw_allocator/check_new.cc: Likewise.
1819 * testsuite/ext/throw_allocator/deallocate_global.cc: Likewise.
1820 * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise.
1821 * testsuite/ext/throw_allocator/explicit_instantiation.cc: Likewise.
1822 * testsuite/ext/throw_allocator/variadic_construct.cc: Likewise.
1823 * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise.
1824
1825 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
1826 * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise.
1827 * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise.
1828 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
1829 Likewise.
1830 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
1831 * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
1832 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
1833 Likewise.
1834 * testsuite/30_threads/recursive_mutex/requirements/standard_layout.cc:
1835 Likewise.
1836 * testsuite/30_threads/recursive_mutex/requirements/typedefs.cc:
1837 Likewise.
1838 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
1839 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
1840 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
1841 * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise.
1842 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
1843 * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
1844 Likewise.
1845 * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
1846 Likewise.
1847 * testsuite/30_threads/recursive_timed_mutex/dest/
1848 destructor_locked.cc: Likewise.
1849 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1850 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1851 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
1852 Likewise.
1853 * testsuite/30_threads/recursive_timed_mutex/native_handle/
1854 typesizes.cc: Likewise.
1855 * testsuite/30_threads/recursive_timed_mutex/requirements/typedefs.cc:
1856 Likewise.
1857 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc:
1858 Likewise.
1859 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc:
1860 Likewise.
1861 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1862 Likewise.
1863 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1864 Likewise.
1865 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1866 Likewise.
1867 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1868 Likewise.
1869 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1870 Likewise.
1871 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1872 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise.
1873 * testsuite/30_threads/scoped_lock/cons/1.cc: Likewise.
1874 * testsuite/30_threads/scoped_lock/requirements/
1875 explicit_instantiation.cc: Likewise.
1876 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Likewise.
1877 * testsuite/30_threads/shared_future/cons/assign.cc: Likewise.
1878 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
1879 * testsuite/30_threads/shared_future/cons/copy.cc: Likewise.
1880 * testsuite/30_threads/shared_future/cons/default.cc: Likewise.
1881 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
1882 * testsuite/30_threads/shared_future/cons/move_assign.cc: Likewise.
1883 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
1884 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
1885 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
1886 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
1887 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
1888 * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
1889 * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
1890 * testsuite/30_threads/shared_future/requirements/
1891 explicit_instantiation.cc: Likewise.
1892 * testsuite/30_threads/shared_lock/cons/1.cc: Likewise.
1893 * testsuite/30_threads/shared_lock/cons/2.cc: Likewise.
1894 * testsuite/30_threads/shared_lock/cons/3.cc: Likewise.
1895 * testsuite/30_threads/shared_lock/cons/4.cc: Likewise.
1896 * testsuite/30_threads/shared_lock/cons/5.cc: Likewise.
1897 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1898 * testsuite/30_threads/shared_lock/locking/1.cc: Likewise.
1899 * testsuite/30_threads/shared_lock/locking/2.cc: Likewise.
1900 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1901 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1902 * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise.
1903 * testsuite/30_threads/shared_lock/requirements/
1904 explicit_instantiation.cc: Likewise.
1905 * testsuite/30_threads/shared_lock/requirements/typedefs.cc: Likewise.
1906 * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise.
1907 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: Likewise.
1908 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: Likewise.
1909 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
1910 Likewise.
1911 * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise.
1912 * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise.
1913 * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise.
1914 * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise.
1915 * testsuite/30_threads/shared_timed_mutex/cons/assign_neg.cc: Likewise.
1916 * testsuite/30_threads/shared_timed_mutex/cons/copy_neg.cc: Likewise.
1917 * testsuite/30_threads/shared_timed_mutex/requirements/
1918 standard_layout.cc: Likewise.
1919 * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise.
1920 * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise.
1921 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise.
1922 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise.
1923 * testsuite/30_threads/this_thread/1.cc: Likewise.
1924 * testsuite/30_threads/this_thread/2.cc: Likewise.
1925 * testsuite/30_threads/this_thread/3.cc: Likewise.
1926 * testsuite/30_threads/this_thread/4.cc: Likewise.
1927 * testsuite/30_threads/this_thread/58038.cc: Likewise.
1928 * testsuite/30_threads/thread/70503.cc: Likewise.
1929 * testsuite/30_threads/thread/84532.cc: Likewise.
1930 * testsuite/30_threads/thread/adl.cc: Likewise.
1931 * testsuite/30_threads/thread/cons/1.cc: Likewise.
1932 * testsuite/30_threads/thread/cons/2.cc: Likewise.
1933 * testsuite/30_threads/thread/cons/3.cc: Likewise.
1934 * testsuite/30_threads/thread/cons/4.cc: Likewise.
1935 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
1936 * testsuite/30_threads/thread/cons/5.cc: Likewise.
1937 * testsuite/30_threads/thread/cons/6.cc: Likewise.
1938 * testsuite/30_threads/thread/cons/7.cc: Likewise.
1939 * testsuite/30_threads/thread/cons/8.cc: Likewise.
1940 * testsuite/30_threads/thread/cons/84535.cc: Likewise.
1941 * testsuite/30_threads/thread/cons/9.cc: Likewise.
1942 * testsuite/30_threads/thread/cons/assign_neg.cc: Likewise.
1943 * testsuite/30_threads/thread/cons/copy_neg.cc: Likewise.
1944 * testsuite/30_threads/thread/cons/lwg2097.cc: Likewise.
1945 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
1946 * testsuite/30_threads/thread/cons/terminate.cc: Likewise.
1947 * testsuite/30_threads/thread/id/operators.cc: Likewise.
1948 * testsuite/30_threads/thread/members/1.cc: Likewise.
1949 * testsuite/30_threads/thread/members/2.cc: Likewise.
1950 * testsuite/30_threads/thread/members/3.cc: Likewise.
1951 * testsuite/30_threads/thread/members/4.cc: Likewise.
1952 * testsuite/30_threads/thread/members/5.cc: Likewise.
1953 * testsuite/30_threads/thread/members/hardware_concurrency.cc:
1954 Likewise.
1955 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
1956 * testsuite/30_threads/thread/swap/1.cc: Likewise.
1957 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1958 * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
1959 * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
1960 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
1961 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1962 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
1963 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc:
1964 Likewise.
1965 * testsuite/30_threads/timed_mutex/requirements/
1966 standard_layout.cc: Likewise.
1967 * testsuite/30_threads/timed_mutex/requirements/typedefs.cc: Likewise.
1968 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1969 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1970 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1971 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1972 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1973 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1974 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1975 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
1976 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1977 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1978 * testsuite/30_threads/try_lock/1.cc: Likewise.
1979 * testsuite/30_threads/try_lock/2.cc: Likewise.
1980 * testsuite/30_threads/try_lock/3.cc: Likewise.
1981 * testsuite/30_threads/try_lock/4.cc: Likewise.
1982 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
1983 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
1984 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
1985 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
1986 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1987 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1988 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
1989 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1990 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1991 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1992 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1993 * testsuite/30_threads/unique_lock/requirements/
1994 explicit_instantiation.cc: Likewise.
1995 * testsuite/30_threads/unique_lock/requirements/typedefs.cc: Likewise.
1996
1997 * testsuite/30_threads/async/42819.cc: Remove dg-require-cstdint
1998 directive.
1999 * testsuite/30_threads/async/49668.cc: Likewise.
2000 * testsuite/30_threads/async/54297.cc: Likewise.
2001 * testsuite/30_threads/async/84532.cc: Likewise.
2002 * testsuite/30_threads/async/any.cc: Likewise.
2003 * testsuite/30_threads/async/async.cc: Likewise.
2004 * testsuite/30_threads/async/except.cc: Likewise.
2005 * testsuite/30_threads/async/forced_unwind.cc: Likewise.
2006 * testsuite/30_threads/async/launch.cc: Likewise.
2007 * testsuite/30_threads/async/lwg2021.cc: Likewise.
2008 * testsuite/30_threads/async/sync.cc: Likewise.
2009 * testsuite/30_threads/call_once/39909.cc: Likewise.
2010 * testsuite/30_threads/call_once/49668.cc: Likewise.
2011 * testsuite/30_threads/call_once/60497.cc: Likewise.
2012 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
2013 * testsuite/30_threads/call_once/constexpr.cc: Likewise.
2014 * testsuite/30_threads/call_once/dr2442.cc: Likewise.
2015 * testsuite/30_threads/call_once/once_flag.cc: Likewise.
2016 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
2017 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
2018 * testsuite/30_threads/condition_variable/cons/assign_neg.cc:
2019 Likewise.
2020 * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise.
2021 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
2022 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
2023 * testsuite/30_threads/condition_variable/members/3.cc: Likewise.
2024 * testsuite/30_threads/condition_variable/members/53841.cc: Likewise.
2025 * testsuite/30_threads/condition_variable/members/68519.cc: Likewise.
2026 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
2027 Likewise.
2028 * testsuite/30_threads/condition_variable/requirements/
2029 standard_layout.cc: Likewise.
2030 * testsuite/30_threads/condition_variable/requirements/typedefs.cc:
2031 * Likewise.
2032 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
2033 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
2034 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
2035 * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc:
2036 Likewise.
2037 * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
2038 Likewise.
2039 * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise.
2040 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
2041 * testsuite/30_threads/future/cons/assign_neg.cc: Likewise.
2042 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
2043 * testsuite/30_threads/future/cons/copy_neg.cc: Likewise.
2044 * testsuite/30_threads/future/cons/default.cc: Likewise.
2045 * testsuite/30_threads/future/cons/move.cc: Likewise.
2046 * testsuite/30_threads/future/cons/move_assign.cc: Likewise.
2047 * testsuite/30_threads/future/members/45133.cc: Likewise.
2048 * testsuite/30_threads/future/members/get.cc: Likewise.
2049 * testsuite/30_threads/future/members/get2.cc: Likewise.
2050 * testsuite/30_threads/future/members/share.cc: Likewise.
2051 * testsuite/30_threads/future/members/valid.cc: Likewise.
2052 * testsuite/30_threads/future/members/wait.cc: Likewise.
2053 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
2054 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
2055 * testsuite/30_threads/future/requirements/explicit_instantiation.cc:
2056 Likewise.
2057 * testsuite/30_threads/headers/condition_variable/types_std_c++0x.cc:
2058 Likewise.
2059 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2060 * testsuite/30_threads/headers/mutex/types_std_c++0x.cc: Likewise.
2061 * testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise.
2062 * testsuite/30_threads/headers/thread/types_std_c++0x.cc: Likewise.
2063 * testsuite/30_threads/lock/1.cc: Likewise.
2064 * testsuite/30_threads/lock/2.cc: Likewise.
2065 * testsuite/30_threads/lock/3.cc: Likewise.
2066 * testsuite/30_threads/lock/4.cc: Likewise.
2067 * testsuite/30_threads/lock_guard/cons/1.cc: Likewise.
2068 * testsuite/30_threads/lock_guard/requirements/
2069 explicit_instantiation.cc: Likewise.
2070 * testsuite/30_threads/lock_guard/requirements/typedefs.cc: Likewise.
2071 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
2072 * testsuite/30_threads/mutex/cons/assign_neg.cc: Likewise.
2073 * testsuite/30_threads/mutex/cons/constexpr.cc: Likewise.
2074 * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise.
2075 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
2076 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
2077 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
2078 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
2079 * testsuite/30_threads/mutex/requirements/standard_layout.cc::
2080 Likewise.
2081 * testsuite/30_threads/mutex/requirements/typedefs.cc: Likewise.
2082 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
2083 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
2084 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
2085 * testsuite/30_threads/mutex/unlock/2.cc: Likewise.
2086 * testsuite/30_threads/once_flag/cons/constexpr.cc: Likewise.
2087 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
2088 * testsuite/30_threads/packaged_task/60564.cc: Likewise.
2089 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
2090 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
2091 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
2092 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
2093 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
2094 * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise.
2095 * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise.
2096 * testsuite/30_threads/packaged_task/cons/assign_neg.cc: Likewise.
2097 * testsuite/30_threads/packaged_task/cons/copy_neg.cc: Likewise.
2098 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
2099 * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise.
2100 * testsuite/30_threads/packaged_task/members/at_thread_exit.cc:
2101 Likewise.
2102 * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise.
2103 * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
2104 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
2105 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
2106 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
2107 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
2108 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
2109 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
2110 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
2111 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
2112 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
2113 * testsuite/30_threads/packaged_task/requirements/
2114 explicit_instantiation.cc: Likewise.
2115 * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise.
2116 * testsuite/30_threads/promise/60966.cc: Likewise.
2117 * testsuite/30_threads/promise/69106.cc: Likewise.
2118 * testsuite/30_threads/promise/cons/1.cc: Likewise.
2119 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
2120 * testsuite/30_threads/promise/cons/alloc2.cc: Likewise.
2121 * testsuite/30_threads/promise/cons/alloc_min.cc: Likewise.
2122 * testsuite/30_threads/promise/cons/assign_neg.cc: Likewise.
2123 * testsuite/30_threads/promise/cons/copy_neg.cc: Likewise.
2124 * testsuite/30_threads/promise/cons/move.cc: Likewise.
2125 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
2126 * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise.
2127 * testsuite/30_threads/promise/members/at_thread_exit2.cc: Likewise.
2128 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
2129 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
2130 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
2131 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
2132 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
2133 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
2134 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
2135 * testsuite/30_threads/promise/members/swap.cc: Likewise.
2136 * testsuite/30_threads/promise/requirements/explicit_instantiation.cc:
2137 * Likewise.
2138 * testsuite/30_threads/promise/uses_allocator.cc: Likewise.
2139
2140 * testsuite/18_support/numeric_limits/char16_32_t.cc: Qualify names
2141 from namespace std.
2142 * testsuite/20_util/align/2.cc: Remove dg-require-cstdint directive.
2143 * testsuite/20_util/duration/arithmetic/1.cc: Likewise.
2144 * testsuite/20_util/duration/arithmetic/2.cc: Likewise.
2145 * testsuite/20_util/duration/arithmetic/dr2020.cc: Likewise.
2146 * testsuite/20_util/duration/arithmetic/dr934-1.cc: Likewise.
2147 * testsuite/20_util/duration/arithmetic/dr934-2.cc: Likewise.
2148 * testsuite/20_util/duration/comparison_operators/1.cc: Likewise.
2149 * testsuite/20_util/duration/cons/1.cc: Likewise.
2150 * testsuite/20_util/duration/cons/1_neg.cc: Likewise.
2151 * testsuite/20_util/duration/cons/2.cc: Likewise.
2152 * testsuite/20_util/duration/cons/54025.cc: Likewise.
2153 * testsuite/20_util/duration/cons/dr974_neg.cc: Likewise.
2154 * testsuite/20_util/duration/requirements/explicit_instantiation/
2155 explicit_instantiation.cc: Likewise.
2156 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
2157 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
2158 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
2159 * testsuite/20_util/make_signed/requirements/typedefs-4.cc: Likewise.
2160 * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
2161 * testsuite/20_util/ratio/comparisons/comp2.cc: Likewise.
2162 * testsuite/20_util/ratio/comparisons/comp3.cc: Likewise.
2163 * testsuite/20_util/ratio/cons/cons1.cc: Likewise.
2164 * testsuite/20_util/ratio/operations/45866.cc: Likewise.
2165 * testsuite/20_util/ratio/operations/47913.cc: Likewise.
2166 * testsuite/20_util/ratio/operations/53840.cc: Likewise.
2167 * testsuite/20_util/ratio/operations/ops1.cc: Likewise.
2168 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
2169 * testsuite/20_util/system_clock/1.cc: Likewise.
2170 * testsuite/20_util/time_point/1.cc: Likewise.
2171 * testsuite/20_util/time_point/2.cc: Likewise.
2172 * testsuite/20_util/time_point/3.cc: Likewise.
2173 * testsuite/20_util/time_point/requirements/explicit_instantiation/
2174 explicit_instantiation.cc: Likewise.
2175 * testsuite/21_strings/basic_string/requirements/
2176 explicit_instantiation/char16_t/1.cc: Likewise.
2177 * testsuite/21_strings/basic_string/requirements/
2178 explicit_instantiation/char32_t/1.cc: Likewise.
2179 * testsuite/21_strings/basic_string_view/requirements/
2180 explicit_instantiation/char16_t/1.cc: Likewise.
2181 * testsuite/21_strings/basic_string_view/requirements/
2182 explicit_instantiation/char32_t/1.cc: Likewise.
2183 * testsuite/21_strings/char_traits/requirements/
2184 explicit_instantiation/char16_t/1.cc: Likewise.
2185 * testsuite/21_strings/char_traits/requirements/
2186 explicit_instantiation/char32_t/1.cc: Likewise.
2187 * testsuite/21_strings/headers/string/types_std_c++0x.cc: Likewise.
2188 * testsuite/22_locale/codecvt/char16_t.cc: Likewise.
2189 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
2190 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
2191 Likewise.
2192 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
2193 Likewise.
2194 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2195 Likewise.
2196 * testsuite/22_locale/codecvt/utf8.cc: Likewise.
2197 * testsuite/23_containers/vector/bool/72847.cc: Likewise.
2198 * testsuite/23_containers/vector/debug/multithreaded_swap.cc:
2199 Likewise.
2200 * testsuite/experimental/string_view/requirements/
2201 explicit_instantiation/char16_t/1.cc: Likewise.
2202 * testsuite/experimental/string_view/requirements/
2203 explicit_instantiation/char32_t/1.cc: Likewise.
2204 * testsuite/ext/vstring/requirements/explicit_instantiation/char16_t/
2205 1.cc: Likewise.
2206 * testsuite/ext/vstring/requirements/explicit_instantiation/char32_t/
2207 1.cc: Likewise.
2208
2209 * include/ext/throw_allocator.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2210 (random_condition, throw_value_random, throw_allocator_random)
2211 (std::hash<throw_value_random>): Do not define when <tr1/random> is
2212 not usable.
2213 * src/c++11/cow-stdexcept.cc [!_GLIBCXX_USE_C99_STDINT_TR1]: Do not
2214 define transactional memory support when <stdint.h> is not usable.
2215
2216 * include/bits/hashtable_policy.h (__detail::__clp2): Use faster
2217 implementation that doesn't depend on <stdint.h> types.
2218 * include/std/memory (align) [!_GLIBCXX_USE_C99_STDINT_TR1]: Use
2219 std::size_t when std::uintptr_t is not usable.
2220 [!_GLIBCXX_USE_C99_STDINT_TR1] (pointer_safety, declare_reachable)
2221 (undeclare_reachable, declare_no_pointers, undeclare_no_pointers):
2222 Define independent of _GLIBCXX_USE_C99_STDINT_TR1.
2223
2224 * include/bits/basic_string.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2225 (hash<u16string>, hash<u32string>): Remove dependency on
2226 _GLIBCXX_USE_C99_STDINT_TR1.
2227 * include/bits/char_traits.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2228 (char_traits<char16_t>, char_traits<char32_t>): Remove dependency on
2229 _GLIBCXX_USE_C99_STDINT_TR1. Use __UINT_LEAST16_TYPE__ and
2230 __UINT_LEAST32_TYPE__ or make_unsigned when <stdint.h> is not usable.
2231 * include/bits/codecvt.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2232 (codecvt<char16_t, char, mbstate_t>)
2233 (codecvt<char32_t, char, mbstate_t>)
2234 (codecvt_byname<char16_t, char, mbstate_t>)
2235 (codecvt_byname<char32_t, char, mbstate_t>): Remove dependency
2236 on _GLIBCXX_USE_C99_STDINT_TR1.
2237 * include/bits/locale_facets.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2238 (_GLIBCXX_NUM_UNICODE_FACETS): Likewise.
2239 * include/bits/stringfwd.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2240 (char_traits<char16_t>, char_traits<char32_t>)
2241 (basic_string<char16_t>, basic_string<char32_t>): Remove dependency
2242 on _GLIBCXX_USE_C99_STDINT_TR1.
2243 * include/experimental/string_view [!_GLIBCXX_USE_C99_STDINT_TR1]
2244 (u16string_view, u32string_view, hash<u16string_view>)
2245 (hash<u32string_view>, operator""sv(const char16_t, size_t))
2246 (operator""sv(const char32_t, size_t)): Likewise.
2247 * include/ext/vstring.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2248 (hash<__u16vstring>, hash<__u32vstring>): Likewise.
2249 * include/ext/vstring_fwd.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2250 (__u16vstring, __u16sso_string, __u16rc_string, __u32vstring)
2251 (__u32sso_string, __u32rc_string): Likewise.
2252 * include/std/codecvt [!_GLIBCXX_USE_C99_STDINT_TR1] (codecvt_mode)
2253 (codecvt_utf8, codecvt_utf16, codecvt_utf8_utf16): Likewise.
2254 * include/std/string_view [!_GLIBCXX_USE_C99_STDINT_TR1]
2255 (u16string_view, u32string_view, hash<u16string_view>)
2256 (hash<u32string_view>, operator""sv(const char16_t, size_t))
2257 (operator""sv(const char32_t, size_t)): Likewise.
2258 * src/c++11/codecvt.cc: Likewise.
2259 * src/c++98/locale_init.cc: Likewise.
2260 * src/c++98/localename.cc: Likewise.
2261
2262 * include/bits/atomic_futex.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2263 (__atomic_futex_unsigned_base): Remove dependency on
2264 _GLIBCXX_USE_C99_STDINT_TR1 macro.
2265 * include/bits/unique_lock.h [!_GLIBCXX_USE_C99_STDINT_TR1]
2266 (unique_lock): Remove dependency on _GLIBCXX_USE_C99_STDINT_TR1.
2267 * include/c_global/cstdint [!_GLIBCXX_USE_C99_STDINT_TR1] (intmax_t)
2268 (uintmax_t): Define using predefined macros.
2269 * include/std/chrono [!_GLIBCXX_USE_C99_STDINT_TR1] (duration)
2270 (time_point, system_clock, high_resolution_clock, steady_clock): Remove
2271 dependency on _GLIBCXX_USE_C99_STDINT_TR1 macro.
2272 (nanoseconds, microseconds, milliseconds, seconds, minutes, hours):
2273 [!_GLIBCXX_USE_C99_STDINT_TR1]: Define using __INT64_TYPE__ or
2274 long long when <stdint.h> is not usable.
2275 * include/std/condition_variable [!_GLIBCXX_USE_C99_STDINT_TR1]
2276 (condition_variable, condition_variable_any): Remove dependency on
2277 _GLIBCXX_USE_C99_STDINT_TR1.
2278 * include/std/future [!_GLIBCXX_USE_C99_STDINT_TR1] (future, promise)
2279 (packaged_task, async): Likewise.
2280 * include/std/mutex [!_GLIBCXX_USE_C99_STDINT_TR1] (recursive_mutex)
2281 (timed_mutex, recursive_timed_mutex, try_lock, lock, scoped_lock)
2282 (once_flag, call_once): Likewise.
2283 * include/std/ratio [!_GLIBCXX_USE_C99_STDINT_TR1] (ratio): Likewise.
2284 * include/std/shared_mutex [!_GLIBCXX_USE_C99_STDINT_TR1]
2285 (shared_mutex, shared_timed_mutex, shared_lock): Likewise.
2286 * include/std/thread [!_GLIBCXX_USE_C99_STDINT_TR1] (thread)
2287 (this_thread::get_id, this_thread::yield, this_thread::sleep_for)
2288 (this_thread::sleep_until): Likewise.
2289 * src/c++11/chrono.cc: Remove dependency on
2290 _GLIBCXX_USE_C99_STDINT_TR1 macro.
2291 * src/c++11/condition_variable.cc: Likewise.
2292 * src/c++11/futex.cc: Likewise.
2293 * src/c++11/future.cc: Likewise.
2294 * src/c++11/mutex.cc: Likewise.
2295 * src/c++11/thread.cc: Likewise.
2296 * testsuite/20_util/duration/literals/range_neg.cc: Adjust dg-error.
2297 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
2298 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
2299 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
2300 * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Likewise.
2301 * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
2302
2303 2018-07-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2304
2305 PR libstdc++/77691
2306 * testsuite/experimental/memory_resource/new_delete_resource.cc:
2307 xfail execution on 32-bit Solaris/x86.
2308
2309 2018-07-26 Marc Glisse <marc.glisse@inria.fr>
2310
2311 * include/bits/stl_vector.h (_Vector_impl_data::_M_copy_data): New.
2312 (_Vector_impl_data::_M_swap_data): Use _M_copy_data.
2313 (vector::_M_move_assign): Reorder the swaps.
2314
2315 2018-07-26 Jonathan Wakely <jwakely@redhat.com>
2316
2317 PR libstdc++/86676
2318 * testsuite/20_util/monotonic_buffer_resource/release.cc: Request
2319 same alignment for post-release allocation.
2320
2321 2018-07-25 Jonathan Wakely <jwakely@redhat.com>
2322
2323 PR libstdc++/86676
2324 * testsuite/20_util/monotonic_buffer_resource/release.cc: Allow for
2325 buffer being misaligned and so returned pointer not being at start.
2326
2327 * include/experimental/memory_resource: Include <cstddef> header.
2328
2329 * acinclude.m4 (glibcxx_SUBDIRS): Add src/c++17.
2330 * src/Makefile.am: Add comment.
2331 * src/c++17/Makefile.in: Regenerate.
2332
2333 * include/Makefile.am: Add new <bits/unique_lock.h> header.
2334 * include/Makefile.in: Regenerate.
2335 * include/bits/std_mutex.h [!_GLIBCXX_USE_C99_STDINT_TR1] (mutex)
2336 (lock_guard): Define independent of _GLIBCXX_USE_C99_STDINT_TR1.
2337 (unique_lock): Move definition to ...
2338 * include/bits/unique_lock.h: New header.
2339 [!_GLIBCXX_USE_C99_STDINT_TR1] (unique_lock): Define unconditionally.
2340 [_GLIBCXX_USE_C99_STDINT_TR1] (unique_lock(mutex_type&, time_point))
2341 (unique_lock(mutex_type&, duration), unique_lock::try_lock_until)
2342 (unique_lock::try_lock_for): Define only when <chrono> is usable.
2343 * include/std/condition_variable: Include <bits/unique_lock.h>.
2344 * include/std/mutex: Likewise.
2345
2346 2018-07-24 Jonathan Wakely <jwakely@redhat.com>
2347
2348 * config/abi/pre/gnu.ver: Export new symbols.
2349 * configure: Regenerate.
2350 * include/Makefile.am: Add new <memory_resource> header.
2351 * include/Makefile.in: Regenerate.
2352 * include/precompiled/stdc++.h: Include <memory_resource> for C++17.
2353 * include/std/memory_resource: New header.
2354 (memory_resource, polymorphic_allocator, new_delete_resource)
2355 (null_memory_resource, set_default_resource, get_default_resource)
2356 (pool_options, monotonic_buffer_resource): Define.
2357 * src/Makefile.am: Add c++17 directory.
2358 * src/Makefile.in: Regenerate.
2359 * src/c++11/Makefile.am: Fix comment.
2360 * src/c++17/Makefile.am: Add makefile for new sub-directory.
2361 * src/c++17/Makefile.in: Generate.
2362 * src/c++17/memory_resource.cc: New.
2363 (newdel_res_t, null_res_t, constant_init, newdel_res, null_res)
2364 (default_res, new_delete_resource, null_memory_resource)
2365 (set_default_resource, get_default_resource): Define.
2366 * testsuite/20_util/memory_resource/1.cc: New test.
2367 * testsuite/20_util/memory_resource/2.cc: New test.
2368 * testsuite/20_util/monotonic_buffer_resource/1.cc: New test.
2369 * testsuite/20_util/monotonic_buffer_resource/allocate.cc: New test.
2370 * testsuite/20_util/monotonic_buffer_resource/deallocate.cc: New test.
2371 * testsuite/20_util/monotonic_buffer_resource/release.cc: New test.
2372 * testsuite/20_util/monotonic_buffer_resource/upstream_resource.cc:
2373 New test.
2374 * testsuite/20_util/polymorphic_allocator/1.cc: New test.
2375 * testsuite/20_util/polymorphic_allocator/resource.cc: New test.
2376 * testsuite/20_util/polymorphic_allocator/select.cc: New test.
2377 * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource):
2378 Define concrete memory resource for testing.
2379 (__gnu_test::default_resource_mgr): Define RAII helper for changing
2380 default resource.
2381
2382 PR libstdc++/86658
2383 * include/bits/stl_algobase.h (__niter_wrap<_Iterator>): Pass unused
2384 parameter by reference, to avoid copying invalid iterators.
2385 * testsuite/25_algorithms/copy/86658.cc: New test.
2386
2387 * include/std/bit (__countl_zero, __countr_zero, __popcount): Use
2388 local variables for number of digits instead of type aliases.
2389 (__log2p1): Remove redundant branch also checked in __countl_zero.
2390
2391 * include/bits/uses_allocator.h (__is_erased_or_convertible): Reorder
2392 conditions. Add comments.
2393 * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error line.
2394 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
2395 * testsuite/20_util/scoped_allocator/69293_neg.cc: Likewise.
2396
2397 * include/bits/uses_allocator.h (__is_erased_or_convertible): Remove.
2398 (__uses_allocator_helper): Check conditions directly instead of
2399 using __is_erased_or_convertible.
2400
2401 * include/experimental/memory_resource: Adjust comments and
2402 whitespace.
2403 (__resource_adaptor_imp): Add second template parameter for type of
2404 memory resource base class.
2405 (memory_resource): Define default constructor, destructor, copy
2406 constructor and copy assignment operator as defaulted.
2407
2408 PR libstdc++/70966
2409 * include/experimental/memory_resource (__get_default_resource): Use
2410 placement new to create an object with dynamic storage duration.
2411
2412 2018-07-23 Jonathan Wakely <jwakely@redhat.com>
2413
2414 PR libstdc++/70940
2415 * include/experimental/memory_resource
2416 (__resource_adaptor_common::_AlignMgr::_M_unadjust): Add assertion.
2417 (__resource_adaptor_common::__guaranteed_alignment): New helper to
2418 give maximum alignment an allocator guarantees. Specialize for known
2419 allocators using new and malloc.
2420 (__resource_adaptor_imp::do_allocate): Use __guaranteed_alignment.
2421 (__resource_adaptor_imp::do_deallocate): Likewise.
2422 * testsuite/experimental/memory_resource/new_delete_resource.cc:
2423 Check that new and delete are called with expected sizes.
2424
2425 2018-07-20 Jonathan Wakely <jwakely@redhat.com>
2426
2427 PR libstdc++/86595
2428 * include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add
2429 noexcept.
2430
2431 2018-07-20 Fangrui Song <maskray@google.com>
2432
2433 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Use
2434 _GLIBCXX_VISIBILITY(default).
2435
2436 2018-07-20 Jonathan Wakely <jwakely@redhat.com>
2437
2438 PR libstdc++/86603
2439 * include/std/version: Move __cpp_lib_list_remove_return_type macro.
2440
2441 2018-07-19 Jonathan Wakely <jwakely@redhat.com>
2442
2443 * include/std/type_traits (__is_member_object_pointer_helper): Use
2444 __not_<is_function<_Tp>>::type instead of integral_constant.
2445 (__is_member_function_pointer_helper): Likewise for
2446 is_function<_Tp>::type.
2447 (is_compund): Likewise for __not_<is_fundamental<_Tp>>::type.
2448 (__do_is_nt_destructible_impl): Use __bool_constant and reindent.
2449 (is_trivially_constructible): Remove redundant use of
2450 is_constructible.
2451 (__is_trivially_copy_assignable_impl): Remove redundant use of
2452 is_copy_assignable.
2453 (__is_trivially_move_assignable_impl): Remove redundant use of
2454 is_move_assignable.
2455 (is_trivially_destructible): Use __bool_constant.
2456 * testsuite/20_util/is_trivially_assignable/value.cc: Add some more
2457 tests for scalar types.
2458
2459 2018-07-19 Glen Joseph Fernandes <glenjofe@gmail.com>
2460
2461 * include/bits/stl_algobase.h (__copy_move_a): Used
2462 __is_trivially_copyable.
2463 (__copy_move_backward_a): Likewise.
2464 * testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc:
2465 New test.
2466
2467 2018-07-17 Jonathan Wakely <jwakely@redhat.com>
2468
2469 PR libstdc++/86450
2470 * acinclude.m4 (GLIBCXX_CHECK_COMPILER_FEATURES): Don't define WERROR.
2471 (GLIBCXX_EXPORT_FLAGS): Use -Wabi=2 instead of -Wabi.
2472 * configure: Regenerate.
2473 * configure.ac: Change GLIBCXX_ENABLE_WERROR default to "no".
2474 * doc/Makefile.in: Regenerate.
2475 * fragment.am: Set WERROR_FLAG to -Werror instead of $(WERROR).
2476 * include/Makefile.in: Regenerate.
2477 * libsupc++/Makefile.in: Regenerate.
2478 * po/Makefile.in: Regenerate.
2479 * python/Makefile.in: Regenerate.
2480 * src/Makefile.in: Regenerate.
2481 * src/c++11/Makefile.in: Regenerate.
2482 * src/c++11/debug.cc: Use diagnostic pragmas to suppress warnings
2483 from -Wabi=2 that don't affect exported symbols.
2484 * src/c++98/Makefile.in: Regenerate.
2485 * src/filesystem/Makefile.in: Regenerate.
2486 * testsuite/Makefile.in: Regenerate.
2487
2488 * src/c++11/compatibility-thread-c++0x.cc [_GLIBCXX_SHARED]
2489 (_Async_state_common::_M_join): Simplify use of std::call_once and
2490 corresponding explicit instantiation.
2491 (_Maybe_wrap_member_pointer, _Bind_simple, _Bind_simple_helper)
2492 (__bind_simple): Remove definitions and explicit instantiation that
2493 are not required by exported symbols.
2494
2495 2018-07-16 Jonathan Wakely <jwakely@redhat.com>
2496
2497 * scripts/create_testsuite_files: Fix typo in comment.
2498
2499 PR libstdc++/86537
2500 * include/bits/shared_ptr.h (less<shared_ptr<_Tp>>): Remove
2501 non-standard partial specialization.
2502 * include/bits/shared_ptr_base.h (_Sp_less): Remove class definition.
2503 (less<__shared_ptr<_Tp, _Lp>): Remove partial specialization.
2504 * testsuite/20_util/shared_ptr/comparison/86537.cc: New test.
2505
2506 2018-07-16 Andreas Krebbel <krebbel@linux.ibm.com>
2507
2508 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2509 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
2510 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2511
2512 2018-07-06 François Dumont <fdumont@gcc.gnu.org>
2513
2514 * include/debug/functions.h (__gnu_debug::__check_string): Move...
2515 * include/debug/string (__gnu_debug::__check_string): ... here.
2516 (_GLIBCXX_DEBUG_VERIFY_STR_COND_AT): New.
2517 (__glibcxx_check_string_n_constructor): New.
2518 (__gnu_debug::basic_string<>(const _CharT*, size_type, const _Alloc&)):
2519 Use latter.
2520 (__glibcxx_check_string_constructor): New.
2521 (__gnu_debug::basic_string<>(const _CharT*, const _Alloc&)):
2522 Use latter.
2523 * testsuite/21_strings/basic_string/debug/1_neg.cc: New.
2524 * testsuite/21_strings/basic_string/debug/2_neg.cc: New.
2525
2526 2018-07-06 Jonathan Wakely <jwakely@redhat.com>
2527
2528 PR libstdc++/84928 use std::move in <numeric> algorithms
2529 * include/bits/stl_numeric.h (_GLIBCXX_MOVE_IF_20): Define macro to
2530 conditionally move, according to __cplusplus value.
2531 (accumulate, inner_product, partial_sum, adjacent_difference): Use
2532 _GLIBCXX_MOVE_IF_20.
2533 * testsuite/26_numerics/accumulate/lwg2055.cc: New test.
2534 * testsuite/26_numerics/adjacent_difference/lwg2055.cc: New test.
2535 * testsuite/26_numerics/inner_product/lwg2055.cc: New test.
2536 * testsuite/26_numerics/partial_sum/lwg2055.cc: New test.
2537
2538 * config/abi/pre/gnu.ver: Use wildcards to combine related patterns.
2539
2540 P0935R0 Eradicating unnecessarily explicit default constructors
2541 * config/abi/pre/gnu.ver: Tighten existing patterns and export new
2542 default constructor symbols.
2543 * include/std/sstream (basic_stringbuf, basic_istringstream)
2544 (basic_ostringstream, basic_stringstream): Remove default arguments
2545 from explicit constructors taking ios_base::openmode and add separate
2546 non-explicit default constructors.
2547 * testsuite/27_io/basic_istringstream/cons/default.cc: New.
2548 * testsuite/27_io/basic_ostringstream/cons/default.cc: New.
2549 * testsuite/27_io/basic_stringstream/cons/default.cc: New.
2550 * testsuite/27_io/basic_stringbuf/cons/char/default.cc: New.
2551 * testsuite/27_io/basic_stringbuf/cons/wchar_t/default.cc: New.
2552
2553 * include/std/variant (__accepted_index): Use void_t.
2554
2555 2018-07-05 Jonathan Wakely <jwakely@redhat.com>
2556
2557 PR libstdc++/85831
2558 * config/abi/pre/gnu.ver: Export move constructors and move
2559 assignment operators for std::logic_error and std::runtime_error.
2560 * include/std/stdexcept: Use _GLIBCXX_NOTHROW instead of
2561 _GLIBCXX_USE_NOEXCEPT.
2562 (logic_error, runtime_error): Declare move constructors and move
2563 assignment operators. When not declared already, define copy
2564 constructors and copy assignment operators as explicit-defaulted.
2565 (domain_error, invalid_argument, length_error, out_of_range)
2566 (overflow_error, underflow_error): Define move constructors and move
2567 assignment operators as explicitly-defaulted.
2568 * libsupc++/exception.h (exception): Likewise.
2569 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Define
2570 move constructors and move assignment operators as defaulted.
2571 * testsuite/19_diagnostics/stdexcept.cc: Check that constructors and
2572 assignment operators are defined.
2573
2574 * testsuite/21_strings/basic_string/cons/char/deduction.cc: XFAIL for
2575 COW strings.
2576 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
2577 Likewise.
2578 * testsuite/21_strings/basic_string/requirements/
2579 explicit_instantiation/debug.cc: Likewise.
2580
2581 PR libstdc++/58265
2582 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
2583 (basic_string::assign(basic_string&&)): Add conditional noexcept
2584 depending on the allocator's is_always_equal property (LWG 2063).
2585 * testsuite/21_strings/basic_string/modifiers/assign/char/
2586 move_assign.cc: Check for non-throwing exception specification.
2587 * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
2588 move_assign.cc: Likewise.
2589
2590 PR libstdc++/58265
2591 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
2592 [_GLIBCXX_FULLY_DYNAMIC_STRING==0] (basic_string::basic_string()):
2593 Add GLIBCXX_NOEXCEPT.
2594 (basic_string::operator=(basic_string&&)): Add _GLIBCXX_NOEXCEPT_IF
2595 to depend on the allocator's is_always_equal property (LWG 2063).
2596 (basic_string::swap(basic_string&)): Likewise.
2597 * include/bits/basic_string.tcc [!_GLIBCXX_USE_CXX11_ABI]
2598 (basic_string::swap(basic_string&)): Likewise.
2599 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
2600 Check is_nothrow_move_assignable.
2601 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
2602 Check is_nothrow_move_assignable.
2603 * testsuite/21_strings/basic_string/cons/char/
2604 noexcept_move_construct.cc: Likewise.
2605 * testsuite/21_strings/basic_string/cons/wchar_t/
2606 noexcept_move_construct.cc: Likewise.
2607
2608 2018-07-04 Jonathan Wakely <jwakely@redhat.com>
2609
2610 P0646R1 Improving the Return Value of Erase-Like Algorithms I
2611 * include/bits/forward_list.h (__cpp_lib_list_remove_return_type):
2612 Define.
2613 (forward_list::__remove_return_type): Define typedef as size_type or
2614 void, according to __cplusplus value.
2615 (_GLIBCXX_FWDLIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
2616 empty, according to __cplusplus value.
2617 (forward_list::remove, forward_list::unique): Use typedef and macro
2618 to change return type and add abi-tag for C++2a.
2619 (forward_list::remove_if<Pred>, forward_list::unique<BinPred>): Use
2620 typedef to change return type for C++2a.
2621 * include/bits/forward_list.tcc (_GLIBCXX20_ONLY): Define macro.
2622 (forward_list::remove, forward_list::remove_if<Pred>)
2623 (forward_list::unique<BinPred>): Return number of removed elements
2624 for C++2a.
2625 * include/bits/list.tcc (_GLIBCXX20_ONLY): Define macro.
2626 (list::remove, list::unique, list::remove_if<Predicate>)
2627 (list::unique<BinaryPredicate>): Return number of removed elements
2628 for C++2a.
2629 * include/bits/stl_list.h (__cpp_lib_list_remove_return_type): Define.
2630 (list::__remove_return_type): Define typedef as size_type or
2631 void, according to __cplusplus value.
2632 (_GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
2633 empty, according to __cplusplus value.
2634 (list::remove, list::unique): Use typedef and macro to change return
2635 type and add abi-tag for C++2a.
2636 (list::remove_if<Predicate>, list::unique<BinaryPredicate>): Use
2637 typedef to change return type for C++2a.
2638 * include/std/version (__cpp_lib_list_remove_return_type): Define.
2639 * testsuite/23_containers/forward_list/operations/
2640 remove_cxx20_return.cc: New.
2641 * testsuite/23_containers/forward_list/operations/
2642 unique_cxx20_return.cc: New.
2643
2644 P0458R2 Checking for Existence of an Element in Associative Containers
2645 * include/bits/stl_map.h (map::contains): Add for C++2a.
2646 * include/bits/stl_multimap.h (multimap::contains): Likewise.
2647 * include/bits/stl_multiset.h (multiset::contains): Likewise.
2648 * include/bits/stl_set.h (set::contains): Likewise.
2649 * include/bits/stl_tree.h (__has_is_transparent_t): Define alias.
2650 (_Rb_tree::_M_find_tr, _Rb_tree::_M_count_tr)
2651 (_Rb_tree::_M_lower_bound_tr, _Rb_tree::_M_upper_bound_tr)
2652 (_Rb_tree::_M_equal_range_tr): Use __has_is_transparent_t.
2653 * include/bits/unordered_map.h (unordered_map::contains)
2654 (unordered_multimap::contains): Add for C++2a.
2655 * include/bits/unordered_set.h (unordered_set::contains)
2656 (unordered_multiset::contains): Likewise.
2657 * testsuite/23_containers/map/operations/contains.cc: New.
2658 * testsuite/23_containers/multimap/operations/contains.cc: New.
2659 * testsuite/23_containers/multiset/operations/contains.cc: New.
2660 * testsuite/23_containers/set/operations/contains.cc: New.
2661 * testsuite/23_containers/unordered_map/operations/contains.cc: New.
2662 * testsuite/23_containers/unordered_multimap/operations/contains.cc:
2663 New.
2664 * testsuite/23_containers/unordered_multiset/operations/contains.cc:
2665 New.
2666 * testsuite/23_containers/unordered_set/operations/contains.cc: New.
2667
2668 2018-07-04 François Dumont <fdumont@gcc.gnu.org>
2669
2670 PR libstdc++/86272
2671 * include/debug/string
2672 (__gnu_debug::basic_string<>::insert<_Ite>(const_iterator, _Ite, _Ite)):
2673 Use __glibcxx_check_insert_range.
2674 * 21_strings/basic_string/cons/char/1.cc: Adapt test to use
2675 __gnu_debug::string when _GLIBCXX_DEBUG.
2676 * 21_strings/basic_string/init-list.cc: Likewise.
2677 * 21_strings/basic_string/modifiers/insert/char/1.cc: Likewise.
2678 * 21_strings/basic_string/modifiers/insert/char/2.cc: Likewise.
2679 * 21_strings/basic_string/modifiers/insert/char/83328.cc: Likewise.
2680 * 21_strings/basic_string/types/1.cc: Likewise.
2681
2682 2018-07-04 Jonathan Wakely <jwakely@redhat.com>
2683
2684 * testsuite/25_algorithms/make_heap/complexity.cc: Require effective
2685 target for std::random_device.
2686 * testsuite/26_numerics/random/random_device/cons/default.cc:
2687 Likewise.
2688 * testsuite/experimental/algorithm/sample-2.cc: Likewise.
2689 * testsuite/experimental/algorithm/shuffle.cc: Likewise.
2690 * testsuite/experimental/random/randint.cc: Likewise.
2691 * testsuite/lib/libstdc++.exp
2692 (check_effective_target_random_device): New proc.
2693
2694 2018-07-04 Jonathan Wakely <jwakely@redhat.com>
2695 Jakub Jelinek <jakub@redhat.com>
2696
2697 * include/std/bit (__rotl, __rotr): Fix for non-power of two sizes.
2698
2699 2018-07-04 Jonathan Wakely <jwakely@redhat.com>
2700
2701 PR libstdc++/86398
2702 * include/std/type_traits (is_trivially_constructible): Check
2703 is_constructible before __is_trivially_constructible.
2704 * testsuite/20_util/is_trivially_constructible/value.cc: Add more
2705 tests, including negative cases.
2706 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Use
2707 zero for dg-error lineno.
2708 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2709 Likewise.
2710
2711 * include/std/bit (__rotl, __rotr): Avoid branch.
2712 (_If_is_unsigned_integer): Use remove_cv_t.
2713 * testsuite/26_numerics/bit/bitops.count/popcount.cc: New.
2714
2715 2018-07-03 Jonathan Wakely <jwakely@redhat.com>
2716
2717 P0556R3 Integral power-of-2 operations, P0553R2 Bit operations
2718 * include/Makefile.am: Add new header.
2719 * include/Makefile.in: Regenerate.
2720 * include/precompiled/stdc++.h: Include new header.
2721 * include/std/bit: New header.
2722 (__rotl, __rotr, __countl_zero, __countl_one, __countr_zero)
2723 (__countr_one, __popcount, __ispow2, __ceil2, __floor2, __log2p1):
2724 Define for C++14.
2725 [!__STRICT_ANSI__] (rotl, rotr, countl_zero, countl_one, countr_zero)
2726 (countr_one, popcount): Define for C++2a. Also overload for std::byte.
2727 (ispow2, ceil2, floor2, log2p1): Define for C++2a.
2728 [!__STRICT_ANSI__] (ispow2, ceil2, floor2, log2p1): Overload for
2729 std::byte.
2730 * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: New.
2731 * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: New.
2732 * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: New.
2733 * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: New.
2734 * testsuite/26_numerics/bit/bitops.rot/rotl.cc: New.
2735 * testsuite/26_numerics/bit/bitops.rot/rotr.cc: New.
2736 * testsuite/26_numerics/bit/bitops.count/countl_one.cc: New.
2737 * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: New.
2738 * testsuite/26_numerics/bit/bitops.count/countr_one.cc: New.
2739 * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: New.
2740
2741 * include/bits/alloc_traits.h: Remove redundant preprocessor
2742 condition.
2743
2744 2018-07-03 François Dumont <fdumont@gcc.gnu.org>
2745
2746 * include/bits/stl_algobase.h (__niter_wrap): New.
2747 (__copy_move_a2(_II, _II, _OI)): Use latter.
2748 (__copy_move_backward_a2(_BI1, _BI1, _BI2)): Likewise.
2749 (fill_n(_OI, _Size, const _Tp&)): Likewise.
2750 (equal(_II1, _II1, _II2)): Use __glibcxx_requires_can_increment.
2751 * include/debug/stl_iterator.h
2752 (std::__niter_base(const __gnu_cxx::_Safe_iterator<
2753 __gnu_cxx::__normal_iterator<>, _Sequence>&)): New declaration.
2754 * include/debug/vector (__niter_base(const __gnu_cxx::_Safe_iterator<
2755 __gnu_cxx::__normal_iterator<>, _Sequence>&)): New.
2756
2757 2018-07-02 Jonathan Wakely <jwakely@redhat.com>
2758
2759 P0758R1 Implicit conversion traits
2760 * include/std/type_traits [__cplusplus > 201703]
2761 (__is_convertible_helper::__is_nothrow_type): Define new member.
2762 (__is_convertible_helper<_From, _To, false>::__test_aux1): Add
2763 noexcept.
2764 (__is_convertible_helper<_From, _To, false>::__test_nothrow)
2765 (__is_convertible_helper<_From, _To, false>::__is_nothrow_type): Add
2766 new members.
2767 (is_nothrow_convertible, is_nothrow_convertible_v): Define for C++2a.
2768 * testsuite/20_util/is_nothrow_convertible/value.cc: New.
2769 * testsuite/20_util/is_nothrow_convertible/requirements/
2770 explicit_instantiation.cc: New.
2771 * testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc:
2772 New.
2773
2774 P0887R1 The identity metafunction
2775 * include/std/type_traits (type_identity, type_identity_t): Define
2776 for C++2a.
2777 * testsuite/20_util/type_identity/requirements/alias_decl.cc: New.
2778 * testsuite/20_util/type_identity/requirements/
2779 explicit_instantiation.cc:New.
2780 * testsuite/20_util/type_identity/requirements/typedefs.cc: New.
2781
2782 * include/bits/regex.h (sub_match::operator string_type): Call str().
2783 (sub_match::compare): Use _M_str() instead of str().
2784 (sub_match::_M_compare): New public function.
2785 (sub_match::__string_view): New helper type.
2786 (sub_match::_M_str): New overloaded functions to avoid creating a
2787 string_type object when not needed.
2788 (operator==, operator!=, operator<, operator>, operator<=, operator>=):
2789 Use sub_match::_M_compare instead of creating string_type objects.
2790 Fix Doxygen comments.
2791 * include/bits/regex_compiler.h (__has_contiguous_iter): Remove.
2792 (__is_contiguous_normal_iter): Rename to __is_contiguous_iter and
2793 simplify.
2794 (__enable_if_contiguous_iter, __disable_if_contiguous_iter): Use
2795 __enable_if_t.
2796 * include/std/type_traits (__enable_if_t): Define for C++11.
2797 * testsuite/28_regex/sub_match/compare.cc: New.
2798 * testsuite/util/testsuite_iterators.h (remove_cv): Add transformation
2799 trait.
2800 (input_iterator_wrapper): Use remove_cv for value_type argument of
2801 std::iterator base class.
2802
2803 2018-06-29 Jonathan Wakely <jwakely@redhat.com>
2804
2805 * testsuite/20_util/add_rvalue_reference/requirements/alias_decl.cc:
2806 Add whitespace to dejagnu directive.
2807 * testsuite/23_containers/array/element_access/at_neg.cc: Likewise.
2808
2809 2018-06-27 François Dumont <fdumont@gcc.gnu.org>
2810
2811 * include/bits/stl_vector.h
2812 (struct _Vector_base<>::_Vector_impl_data): New.
2813 (struct _Vector_base<>::_Vector_impl): Inherit from latter.
2814 (_Vector_base<>::_Vector_impl::_M_swap_data): Move...
2815 (_Vector_base<>::_Vector_impl_data::_M_swap_data): ...here.
2816 (_Vector_base<>::_Vector_impl()): Add noexcept qualification.
2817 (_Vector_base<>::_Vector_impl(_Vector_impl&&)): New.
2818 (_Vector_base<>::_Vector_impl(_Tp_alloc_type&&, _Vector_impl&&)): New.
2819 (_Vector_base(const allocator_type&, _Vector_base&&)): New, use latter.
2820 (_Vector_base()): Default.
2821 (_Vector_base(_Vector_base&&)): Default.
2822 (_Vector_base(size_t)) [_GLIBCXX_INLINE_VERSION]: Delete.
2823 (_Vector_base(_Tp_alloc_type&&)) [_GLIBCXX_INLINE_VERSION]: Delete.
2824 (_Vector_base::_M_create_storage(size_t)): Make protected.
2825 (vector()): Default.
2826 (vector(vector&&)): Default.
2827 (vector(vector&&, const allocator_type&, true_type)): New.
2828 (vector(vector&&, const allocator_type&, false_type)): New.
2829 (vector(vector&&, const allocator_type&)): Use latters.
2830 (vector(_InputIte, _InputIte, const allocator_type&)): Call
2831 _M_range_initialize directly.
2832 * include/debug/vector
2833 (vector(vector&&, const allocator_type&)): Add noexcept qualification.
2834 * testsuite/23_containers/vector/allocator/default_init.cc: New.
2835 * testsuite/23_containers/vector/cons/noexcept_move_construct.cc: Add
2836 static assertions.
2837
2838 2018-06-27 Jonathan Wakely <jwakely@redhat.com>
2839
2840 * include/bits/cpp_type_traits.h [__cplusplus >= 201703]
2841 (__is_byte<byte>): Define specialization for std::byte.
2842
2843 PR libstdc++/86138
2844 * include/bits/basic_string.tcc: [_GLIBCXX_EXTERN_TEMPLATE < 0]
2845 Declare explicit instantiations of COW empty reps and I/O functions.
2846
2847 2018-06-26 David Edelsohn <dje.gcc@gmail.com>
2848
2849 * testsuite/experimental/algorithm/sample-2.cc: Add TLS DejaGNU
2850 directives.
2851 * testsuite/experimental/algorithm/shuffle.cc: Likewise.
2852
2853 2018-06-26 Jonathan Wakely <jwakely@redhat.com>
2854
2855 * include/bits/regex.tcc (regex_iterator::operator==): Add missing
2856 noexcept.
2857
2858 2018-06-25 Jonathan Wakely <jwakely@redhat.com>
2859
2860 PR libstdc++/86112
2861 * python/libstdcxx/v6/printers.py (add_one_template_type_printer):
2862 Replace dict comprehension.
2863
2864 PR libstdc++/81092
2865 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2866
2867 PR libstdc++/86292
2868 * include/bits/stl_vector.h (vector::_M_range_initialize<InputIter>):
2869 Add try-catch block.
2870 * testsuite/23_containers/vector/cons/86292.cc: New.
2871
2872 * doc/xml/manual/status_cxx2017.xml: Document N4531 status.
2873
2874 * include/experimental/algorithm (sample, shuffle): Add new overloads
2875 using per-thread random number engine.
2876 * testsuite/experimental/algorithm/sample.cc: Simpify and reduce
2877 dependencies by using __gnu_test::test_container.
2878 * testsuite/experimental/algorithm/sample-2.cc: New.
2879 * testsuite/experimental/algorithm/shuffle.cc: New.
2880
2881 2018-06-22 Jonathan Wakely <jwakely@redhat.com>
2882
2883 * config/abi/pre/gnu.ver: Fix __cxx11::basic_string patterns for
2884 different size_t mangling on 32-bit targets.
2885
2886 PR libstdc++/86280
2887 * include/experimental/memory_resource
2888 (__resource_adaptor_common::_AlignMgr::_M_token_size): Use type large
2889 enough for result of left shift.
2890
2891 PR libstdc++/86138
2892 * include/bits/basic_string.tcc:
2893 [__cplusplus > 201402 && !_GLIBCXX_USE_CXX11_ABI]
2894 (basic_string<char>::_Rep::_S_empty_rep_storage)
2895 (basic_string<wchar_t>::_Rep::_S_empty_rep_storage): Add explicit
2896 instantiation declarations.
2897 [__cplusplus > 201402] (operator>>, operator<<, getline): Re-enable
2898 explicit instantiation declarations.
2899 * testsuite/21_strings/basic_string/cons/char/86138.cc: New.
2900 * testsuite/21_strings/basic_string/cons/wchar_t/86138.cc: New.
2901
2902 2018-06-21 Jonathan Wakely <jwakely@redhat.com>
2903
2904 PR libstdc++/83328
2905 * acinclude.m4 (libtool_VERSION): Bump to 6:26:0.
2906 * config/abi/pre/gnu.ver: Add GLIBCXX_3.4.26 and export new symbol.
2907 * configure: Regenerate.
2908 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
2909 (basic_string::insert(const_iterator, initializer_list<C>)): Add.
2910 [_GLIBCXX_USE_CXX11_ABI && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS]
2911 (basic_string::insert(iterator, initializer_list<C>)): Suppress
2912 definition.
2913 * include/debug/string (basic_string::insert(iterator, C)): Change
2914 first parameter to const_iterator.
2915 (basic_string::insert(iterator, size_type, C)): Likewise. Change
2916 return type to iterator.
2917 (basic_string::insert(iterator, InputIterator, InputIterator)):
2918 Likewise.
2919 (basic_string::insert(iterator, initializer_list<C>)): Change first
2920 parameter to const_iterator and return type to iterator.
2921 * src/c++11/string-inst.cc: Extend comment.
2922 * testsuite/21_strings/basic_string/modifiers/insert/char/83328.cc:
2923 New.
2924 * testsuite/21_strings/basic_string/modifiers/insert/wchar_t/83328.cc:
2925 New.
2926 * testsuite/util/testsuite_abi.cc: Add new symbol version.
2927
2928 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2929
2930 PR libstdc++/70940
2931 * include/experimental/memory_resource
2932 (__resource_adaptor_imp::do_deallocate): Add missing return.
2933 * testsuite/experimental/memory_resource/new_delete_resource.cc: New.
2934 * testsuite/experimental/memory_resource/resource_adaptor.cc: Test
2935 resource_adaptor with std::allocator, __gnu_cxx::new_allocator and
2936 __gnu_cxx::malloc_allocator.
2937
2938 PR libstdc++/70940
2939 * include/experimental/memory_resource (__resource_adaptor_common):
2940 New base class.
2941 (__resource_adaptor_common::_AlignMgr): Helper for obtaining aligned
2942 pointer from unaligned, and vice versa.
2943 (__resource_adaptor_imp::do_allocate): Use _AlignMgr to adjust
2944 allocated pointer to meet alignment request.
2945 (__resource_adaptor_imp::do_deallocate): Use _AlignMgr to retrieve
2946 original pointer for deallocation.
2947 (__resource_adaptor_imp::do_is_equal): Reformat.
2948 (__resource_adaptor_imp::_S_aligned_size): Remove.
2949 (__resource_adaptor_imp::_S_supported): Remove.
2950 (new_delete_resource): Use __gnu_cxx::new_allocator.
2951 * testsuite/experimental/memory_resource/resource_adaptor.cc: Test
2952 extended alignments and use debug_allocator to check for matching
2953 allocate/deallocate pairs.
2954
2955 2018-06-21 François Dumont <fdumont@gcc.gnu.org>
2956
2957 * include/debug/safe_iterator.h
2958 (_Safe_iterator<>(const _Safe_iterator<_MutableIterator,>& __x)):
2959 Compare __x base iterator with a value-initialized iterator of the
2960 same type.
2961
2962 2018-06-20 Jonathan Wakely <jwakely@redhat.com>
2963
2964 PR libstdc++/70966
2965 * include/experimental/memory_resource (__resource_adaptor_imp): Add
2966 static assertions to enforce requirements on pointer types.
2967 (__resource_adaptor_imp::get_allocator()): Add noexcept.
2968 (new_delete_resource, null_memory_resource): Return address of an
2969 object with dynamic storage duration.
2970 (__null_memory_resource): Remove.
2971 * testsuite/experimental/memory_resource/70966.cc: New.
2972
2973 * testsuite/20_util/duration/arithmetic/dr3050.cc: Add new test
2974 missed from recent commit.
2975
2976 2018-06-19 Jonathan Wakely <jwakely@redhat.com>
2977
2978 * include/std/utility: Remove unused <exception> header.
2979
2980 2018-06-18 Jonathan Wakely <jwakely@redhat.com>
2981
2982 LWG 2975 ensure construct(pair<T,U>*, ...) used to construct pairs
2983 * include/std/scoped_allocator (__not_pair): Define SFINAE helper.
2984 (construct(_Tp*, _Args&&...)): Remove from overload set when _Tp is
2985 a specialization of std::pair.
2986 * testsuite/20_util/scoped_allocator/construct_pair.cc: Ensure
2987 pair elements are constructed correctly.
2988
2989 LWG 2989 hide path iostream operators from normal lookup
2990 * include/bits/fs_path.h (operator<<, operator>>): Define inline as
2991 friends.
2992 * testsuite/27_io/filesystem/path/io/dr2989.cc: New.
2993
2994 LWG 3050 Fix cv-qualification of convertibility constraints
2995 * include/std/chrono (duration, operator*, operator/, operator%): Use
2996 const-qualified type as source type in is_convertible constraints.
2997 * testsuite/20_util/duration/arithmetic/dr3050.cc: New.
2998 * testsuite/20_util/duration/cons/dr3050.cc: New.
2999 * testsuite/20_util/duration/literals/range.cc: Rename to...
3000 * testsuite/20_util/duration/literals/range_neg.cc: Here. Adjust
3001 dg-error lineno.
3002
3003 2018-06-18 Maya Rashish <coypu@sdf.org>
3004
3005 * crossconfig.m4: Handle OpenBSD just like NetBSD.
3006 * configure: Rebuilt.
3007
3008 2018-06-18 Jonathan Wakely <jwakely@redhat.com>
3009
3010 P0754R2 <version> header
3011 * include/Makefile.am: Add new header.
3012 * include/Makefile.in: Regenerate.
3013 * include/bits/c++config: Change doxygen comment to suggest <version>
3014 instead of <iosfwd>.
3015 * include/precompiled/stdc++.h: Include <cwchar> and <cwctype>
3016 unconditionally. Add C++17 and C++20 headers.
3017 * include/std/version: New header.
3018 * testsuite/17_intro/headers/c++2017/all_attributes.cc: New.
3019 * testsuite/17_intro/headers/c++2017/all_no_exceptions.cc: New.
3020 * testsuite/17_intro/headers/c++2017/all_no_rtti.cc: New.
3021 * testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc: New.
3022 * testsuite/17_intro/headers/c++2017/operator_names.cc: New.
3023 * testsuite/17_intro/headers/c++2017/stdc++.cc: New.
3024 * testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc:
3025 New.
3026 * testsuite/17_intro/headers/c++2020/all_attributes.cc: New.
3027 * testsuite/17_intro/headers/c++2020/all_no_exceptions.cc: New.
3028 * testsuite/17_intro/headers/c++2020/all_no_rtti.cc: New.
3029 * testsuite/17_intro/headers/c++2020/all_pedantic_errors.cc: New.
3030 * testsuite/17_intro/headers/c++2020/operator_names.cc: New.
3031 * testsuite/17_intro/headers/c++2020/stdc++.cc: New.
3032 * testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc:
3033 New.
3034 * testsuite/18_support/headers/version/macros.cc: New.
3035 * testsuite/18_support/headers/version/macros.cc: New.
3036
3037 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Only check when
3038 enable_libstdcxx_filesystem_ts = yes. Check for link, readlink and
3039 symlink.
3040 * config.h.in: Regenerate.
3041 * configure: Regenerate.
3042 * configure.ac: Remove AC_CHECK_FUNCS for link, readlink and symlink.
3043
3044 LWG 3035. std::allocator's constructors should be constexpr
3045 * include/bits/allocator.h (allocator): Add constexpr to constructors
3046 for C++2a. Replace dynamic exception specifications with NOTHROW
3047 macro.
3048 (allocator, operator==, operator!=): Replace USE_NOEXCEPT macro with
3049 NOTHROW.
3050 * include/bits/c++config (_GLIBCXX20_CONSTEXPR): Define.
3051 * include/ext/malloc_allocator.h (malloc_allocator): Add constexpr
3052 to constructors for C++2a.
3053 * include/ext/new_allocator.h (new_allocator): Likewise.
3054
3055 2018-06-16 Jonathan Wakely <jwakely@redhat.com>
3056
3057 LWG 3076 basic_string CTAD ambiguity
3058 * doc/xml/manual/intro.xml: Document LWG 3076 change.
3059 * include/bits/basic_string.h
3060 [__cpp_deduction_guides && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS]
3061 (basic_string(const _CharT*, const _Alloc&)): Turn into a function
3062 template constrained by _RequireAllocator.
3063 (basic_string(size_type, _CharT, const _Alloc&)): Likewise.
3064 * src/c++11/string-inst.cc (_GLIBCXX_DEFINING_STRING_INSTANTIATIONS):
3065 Define.
3066 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test
3067 deduction
3068 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
3069 Likewise.
3070
3071 2018-06-15 Jonathan Wakely <jwakely@redhat.com>
3072
3073 PR libstdc++/86169
3074 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
3075 (basic_string::data()): Unshare string.
3076 * testsuite/21_strings/basic_string/operations/data/char/86169.cc:
3077 New.
3078
3079 * include/std/string_view (basic_string_view(const CharT*)): Remove
3080 check for null pointer and add nonnull attribute.
3081 (compare(const CharT*), compare(size_type, size_type, const CharT*))
3082 (find(const CharT*, size_type), rfind(const CharT*, size_type))
3083 (find_first_of(const CharT*, size_type))
3084 (find_last_of(const CharT*, size_type))
3085 (find_first_not_of(const CharT*, size_type))
3086 (find_last_not_of(const CharT*, size_type)): Add nonnull attribute.
3087 * testsuite/21_strings/basic_string_view/cons/char/nonnull.cc: New.
3088 * testsuite/21_strings/basic_string_view/operations/compare/char/
3089 nonnull.cc: New.
3090 * testsuite/21_strings/basic_string_view/operations/find/char/
3091 nonnull.cc: New.
3092 * testsuite/21_strings/basic_string_view/operations/rfind/char/
3093 nonnull.cc: New.
3094
3095 PR libstdc++/86168
3096 * include/bits/random.h (random_device(const string&)): Remove
3097 default argument.
3098
3099 * include/bits/char_traits.h (__cpp_lib_constexpr_char_traits): Only
3100 define for C++17 and above.
3101
3102 LWG 2993 reference_wrapper<T> conversion from T&&
3103 * doc/xml/manual/intro.xml: Document LWG 2993 change.
3104 * include/bits/refwrap.h (reference_wrapper(_Tp&)): Remove.
3105 (reference_wrapper(_Tp&&)): Remove.
3106 (reference_wrapper<_Up>(_Up&&)): Define new constructor as constrained
3107 template.
3108 (reference_wrapper): Add deduction guide.
3109 * testsuite/20_util/reference_wrapper/deduction.cc: New.
3110 * testsuite/20_util/reference_wrapper/lwg2993.cc: New.
3111
3112 LWG 3039 Unnecessary decay in thread and packaged_task
3113 * include/std/future (__constrain_pkgdtask): Replace with ...
3114 (packaged_task::__not_same): New alias template, using
3115 __remove_cvref_t instead of decay.
3116 * include/std/thread (thread::__not_same): Add comment.
3117
3118 2018-06-14 Jonathan Wakely <jwakely@redhat.com>
3119
3120 LWG 3075 basic_string needs deduction guides from basic_string_view
3121 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test
3122 deduction from string views.
3123 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
3124 Likewise.
3125
3126 LWG 3074 make scalar types non-deduced in valarray non-member functions
3127 * include/bits/valarray_after.h (_DEFINE_EXPR_BINARY_FUNCTION): Change
3128 scalar parameters to be a non-deduced context.
3129 * include/std/valarray (_DEFINE_BINARY_OPERATOR): Likewise. Adjust
3130 whitespace.
3131 * testsuite/26_numerics/valarray/operators.cc: Test scalar operands.
3132 * testsuite/26_numerics/valarray/transcend.cc: New.
3133
3134 * include/std/tuple (__cpp_lib_tuple_element_t, tuple_element_t):
3135 Move back to <utility>.
3136 * include/std/utility (__cpp_lib_tuple_element_t. tuple_element_t):
3137 Restore to here.
3138
3139 P0935R0 Eradicating unnecessarily explicit default constructors
3140 * include/backward/strstream (strstreambuf): Add non-explicit default
3141 constructor.
3142 * include/bits/locale_conv.h (wbuffer_convert, wstring_convert):
3143 Likewise.
3144 * include/bits/regex.h (match_results): Likewise.
3145 * testsuite/22_locale/conversions/buffer/1.cc: Test for non-explicit
3146 default constructor.
3147 * testsuite/22_locale/conversions/string/1.cc: Likewise.
3148 * testsuite/28_regex/match_results/ctors/char/default.cc: Likewise.
3149 * testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.
3150
3151 * include/std/tuple (__cpp_lib_tuple_element_t): Move feature test
3152 macro from <utility> and change type to long.
3153 * include/std/utility (__cpp_lib_tuple_element_t): Remove.
3154 * testsuite/20_util/tuple/tuple_element_t.cc: Check for feature test
3155 macro.
3156
3157 P0935R0 Eradicating unnecessarily explicit default constructors
3158 * include/bits/random.h (uniform_real_distribution::param_type)
3159 (normal_distribution::param_type, lognormal_distribution::param_type)
3160 (gamma_distribution::param_type, chi_squared_distribution::param_type)
3161 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
3162 (student_t_distribution::param_type)
3163 (bernoulli_distribution::param_type)
3164 (binomial_distribution::param_type)
3165 (geometric_distribution::param_type)
3166 (negative_binomial_distribution::param_type)
3167 (poisson_distribution::param_type)
3168 (exponential_distribution::param_type)
3169 (weibull_distribution::param_type)
3170 (extreme_value_distribution::param_type): Add non-explicit default
3171 constructors. Remove default argument for first parameter of explicit
3172 constructors.
3173 * include/bits/uniform_int_dist.h
3174 (uniform_int_distribution::param_type): Likewise.
3175 * include/ext/random
3176 (beta_distribution::param_type, rice_distribution::param_type)
3177 (nakagami_distribution::param_type, pareto_distribution::param_type)
3178 (k_distribution::param_type, arcsine_distribution::param_type)
3179 (hoyt_distribution::param_type, triangular_distribution::param_type)
3180 (von_mises_distribution::param_type)
3181 (hypergeometric_distribution::param_type)
3182 (logistic_distribution::param_type)
3183 (uniform_inside_sphere_distribution::param_type): Likewise.
3184 (uniform_on_sphere_distribution::param_type): Make default constructor
3185 non-explicit.
3186 * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc:
3187 Test param_type for non-explicit default constructor.
3188 * testsuite/26_numerics/random/binomial_distribution/cons/default.cc:
3189 Likewise.
3190 * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
3191 Likewise.
3192 * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc:
3193 Likewise.
3194 * testsuite/26_numerics/random/discrete_distribution/cons/default.cc:
3195 Likewise.
3196 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
3197 Likewise.
3198 * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc:
3199 Likewise.
3200 * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc:
3201 Likewise.
3202 * testsuite/26_numerics/random/gamma_distribution/cons/default.cc:
3203 Likewise.
3204 * testsuite/26_numerics/random/geometric_distribution/cons/default.cc:
3205 Likewise.
3206 * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc:
3207 Likewise.
3208 * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc:
3209 Likewise.
3210 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
3211 Likewise.
3212 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc:
3213 Likewise.
3214 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc:
3215 Likewise.
3216 * testsuite/26_numerics/random/poisson_distribution/cons/default.cc:
3217 Likewise.
3218 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
3219 Likewise.
3220 * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc:
3221 Likewise.
3222 * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc:
3223 Likewise.
3224 * testsuite/26_numerics/random/weibull_distribution/cons/default.cc:
3225 Likewise.
3226 * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise.
3227 * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise.
3228 * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise.
3229 * testsuite/ext/random/hypergeometric_distribution/cons/default.cc:
3230 Likewise.
3231 * testsuite/ext/random/k_distribution/cons/default.cc: Likewise.
3232 * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise.
3233 * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise.
3234 * testsuite/ext/random/normal_mv_distribution/cons/default.cc:
3235 Likewise.
3236 * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise.
3237 * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise.
3238 * testsuite/ext/random/triangular_distribution/cons/default.cc:
3239 Likewise.
3240 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc:
3241 Likewise.
3242 * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc:
3243 Likewise.
3244 * testsuite/ext/random/von_mises_distribution/cons/default.cc:
3245 Likewise.
3246
3247 2018-06-14 Daniel Trebbien <dtrebbien@gmail.com>
3248 Jonathan Wakely <jwakely@redhat.com>
3249
3250 PR libstdc++/83982
3251 * include/bits/vector.tcc (vector::_M_default_append(size_type)):
3252 Default-construct new elements before moving existing ones.
3253 * testsuite/23_containers/vector/capacity/resize/strong_guarantee.cc:
3254 New.
3255
3256 2018-06-13 Jonathan Wakely <jwakely@redhat.com>
3257
3258 PR libstdc++/86127
3259 * include/bits/forward_list.h (_Fwd_list_base::_Tp_alloc_type): Remove
3260 unused typedef.
3261 (_Fwd_list_base::_M_create_node, _Fwd_list_base::_M_erase_after):
3262 Use node allocator to create and destroy elements.
3263 (forward_list::_Tp_alloc_type): Remove unused typedef.
3264 (forward_list::_Alloc_traits): Use allocator_traits instead of
3265 __gnu_cxx::__alloc_traits.
3266
3267 2018-06-13 François Dumont <fdumont@gcc.gnu.org>
3268
3269 * include/debug/helper_functions.h
3270 (__gnu_debug::_Safe_iterator<>): Add declaration.
3271 (__can_advance(_Ite, _Size)): New.
3272 (__can_advance(const _Safe_iterator<>&, _Size)): Overload declaration.
3273 * include/debug/functions.h
3274 (__gnu_debug::_Safe_iterator<>): Remove declaration.
3275 * include/debug/stl_iterator.h
3276 (__can_advance(const _Safe_iterator<>&)): New definition.
3277 * include/debug/stl_iterator.h
3278 (__can_advance(const std::reverse_iterator<>&, _Size)): New.
3279 (__can_advance(const std::move_iterator<>&, _Size)): New.
3280 * include/debug/macros.h (__glibcxx_check_can_increment): New.
3281 * include/debug/debug.h (__glibcxx_requires_can_increment): New.
3282 * include/bits/stl_algobase.h (fill_n): Use latter.
3283 * testsuite/25_algorithms/fill_n/2.cc: New.
3284 * testsuite/25_algorithms/fill_n/debug/1_neg.cc: New.
3285 * testsuite/25_algorithms/fill_n/debug/2_neg.cc: New.
3286 * testsuite/25_algorithms/fill_n/debug/3_neg.cc: New.
3287 * testsuite/25_algorithms/fill_n/debug/4_neg.cc: New.
3288
3289 * include/debug/debug.h (__glibcxx_requires_can_increment_range): New.
3290 (__glibcxx_requires_can_decrement_range): New.
3291
3292 2018-06-12 François Dumont <fdumont@gcc.gnu.org>
3293
3294 * include/debug/macros.h (__glibcxx_check_can_increment_range): New.
3295 (__glibcxx_check_can_decrement_range): New.
3296 * include/bits/stl_algobase.h (std::copy(_II, _II, _OI)): Use
3297 __glibcxx_requires_can_increment_range.
3298 (std::move(_II, _II, _OI)): Likewise.
3299 (std::copy_backward(_BI, _BI, _BI2)): Use
3300 __glibcxx_requires_can_decrement_range.
3301 (std::move_backward(_BI, _BI, _BI2)): Likewise.
3302 * testsuite/25_algorithms/copy_backward/debug/1_neg.cc: New.
3303 * testsuite/25_algorithms/copy_backward/debug/2_neg.cc: New.
3304 * testsuite/25_algorithms/copy_backward/debug/3_neg.cc: New.
3305 * testsuite/25_algorithms/equal/debug/1_neg.cc: New.
3306 * testsuite/25_algorithms/equal/debug/2_neg.cc: New.
3307 * testsuite/25_algorithms/equal/debug/3_neg.cc: New.
3308
3309 2018-06-12 Jonathan Wakely <jwakely@redhat.com>
3310
3311 P0935R0 Eradicating unnecessarily explicit default constructors
3312 * include/bits/random.h (linear_congruential_engine)
3313 (mersenne_twister_engine, subtract_with_carry_engine, random_device)
3314 (uniform_real_distribution, normal_distribution)
3315 (lognormal_distribution, gamma_distribution, chi_squared_distribution)
3316 (cauchy_distribution, fisher_f_distribution, student_t_distribution)
3317 (bernoulli_distribution, binomial_distribution,geometric_distribution)
3318 (negative_binomial_distribution, exponential_distribution)
3319 (weibull_distribution, extreme_value_distribution): Add non-explicit
3320 default constructors. Remove default argument for first parameter of
3321 explicit constructors.
3322 (piecewise_constant_distribution, piecewise_linear_distribution):
3323 Make default constructor non-explicit.
3324 * include/bits/uniform_int_dist.h (uniform_int_distribution): Add
3325 non-explicit default constructors. Remove default argument for first
3326 parameter of explicit constructor.
3327 * include/ext/random
3328 (simd_fast_mersenne_twister_engine, beta_distribution)
3329 (rice_distribution, nakagami_distribution, pareto_distribution)
3330 (k_distribution, arcsine_distribution, hoyt_distribution)
3331 (triangular_distribution, von_mises_distribution)
3332 (hypergeometric_distribution, logistic_distribution)
3333 (uniform_inside_sphere_distribution): Likewise.
3334 (uniform_on_sphere_distribution): Make default constructor
3335 non-explicit.
3336 * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc:
3337 Test for non-explicit default constructor. Fix references to standard.
3338 * testsuite/26_numerics/random/binomial_distribution/cons/default.cc:
3339 Likewise.
3340 * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
3341 Likewise.
3342 * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc:
3343 Likewise.
3344 * testsuite/26_numerics/random/discrete_distribution/cons/default.cc:
3345 Likewise.
3346 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
3347 Likewise.
3348 * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc:
3349 Likewise.
3350 * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc:
3351 Likewise.
3352 * testsuite/26_numerics/random/gamma_distribution/cons/default.cc:
3353 Likewise.
3354 * testsuite/26_numerics/random/geometric_distribution/cons/default.cc:
3355 Likewise.
3356 * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc:
3357 Likewise.
3358 * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc:
3359 Likewise.
3360 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
3361 Likewise.
3362 * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc:
3363 Likewise.
3364 * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc:
3365 Likewise.
3366 * testsuite/26_numerics/random/poisson_distribution/cons/default.cc:
3367 Likewise.
3368 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
3369 Likewise.
3370 * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc:
3371 Likewise.
3372 * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc:
3373 Likewise.
3374 * testsuite/26_numerics/random/weibull_distribution/cons/default.cc:
3375 Likewise.
3376 * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise.
3377 * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise.
3378 * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise.
3379 * testsuite/ext/random/hypergeometric_distribution/cons/default.cc:
3380 Likewise.
3381 * testsuite/ext/random/k_distribution/cons/default.cc: Likewise.
3382 * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise.
3383 * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise.
3384 * testsuite/ext/random/normal_mv_distribution/cons/default.cc:
3385 Likewise.
3386 * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise.
3387 * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise.
3388 * testsuite/ext/random/triangular_distribution/cons/default.cc:
3389 Likewise.
3390 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc:
3391 Likewise.
3392 * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc:
3393 Likewise.
3394 * testsuite/ext/random/von_mises_distribution/cons/default.cc:
3395 Likewise.
3396 * testsuite/util/testsuite_common_types.h
3397 (implicitly_default_constructible): New helper.
3398
3399 2018-06-08 Jonathan Wakely <jwakely@redhat.com>
3400
3401 * include/bits/ios_base.h (ios::Init::Init(const Init&))
3402 (ios::Init::operator=): Define as defaulted.
3403 * include/bits/stl_bvector.h (_Bit_reference(const _Bit_reference&)):
3404 Likewise.
3405 * include/bits/stream_iterator.h (istream_iterator::operator=)
3406 (ostream_iterator::operator=): Likewise.
3407 * include/bits/streambuf_iterator.h (istreambuf_iterator::operator=)
3408 Likewise.
3409 * include/std/bitset (bitset::reference::reference(const reference&)):
3410 Likewise.
3411 * include/std/complex (complex<float>::complex(const complex&))
3412 (complex<double>::complex(const complex&))
3413 (complex<long double>::complex(const complex&)): Likewise.
3414
3415 2018-06-07 Jonathan Wakely <jwakely@redhat.com>
3416
3417 * include/bits/regex.h (sub_match): Add noexcept to default
3418 constructor and length observer.
3419 (match_results): Add noexcept to default constructor and observers
3420 with no preconditions. Define destructor as defaulted.
3421 (operator==, operator!=, swap): Add noexcept.
3422 (regex_iterator): Add default member initializers and define default
3423 constructor and destructor as defaulted. Add noexcept to equality
3424 and dereference operators.
3425
3426 2018-06-07 François Dumont <fdumont@gcc.gnu.org>
3427
3428 * src/c++11/debug.cc
3429 (_Safe_iterator_base::_M_detach()): Reset state only if needed.
3430 (_Safe_iterator_base::_M_detach_single()): Likewise.
3431 (_Safe_local_iterator_base::_M_detach()): Reset state only if needed.
3432 (_Safe_local_iterator_base::_M_detach_single()): Likewise.
3433
3434 2018-06-06 Jonathan Wakely <jwakely@redhat.com>
3435
3436 * include/bits/shared_ptr_base.h (__shared_count): Remove redundant
3437 move of const value.
3438
3439 2018-06-06 Jakub Jelinek <jakub@redhat.com>
3440
3441 PR c++/86068
3442 * include/bits/c++config: Check __cpp_transactional_memory >= 201500L
3443 rather than __cpp_transactional_memory >= 201505L.
3444
3445 2018-06-06 Jonathan Wakely <jwakely@redhat.com>
3446
3447 PR libstdc++/86008
3448 * include/bits/quoted_string.h (_Quoted_string<basic_string_view, C>):
3449 Define new partial specialization.
3450 * include/std/iomanip (quoted(basic_string_view<C,T>, C, C)): Define
3451 new overload.
3452 (operator<<(basic_ostream<C,T>&, const _Quoted_string<S,C>&)): Use
3453 value not reference for iteration.
3454 * testsuite/27_io/manipulators/standard/char/quoted.cc: Adjust
3455 comment.
3456 * testsuite/27_io/manipulators/standard/char/quoted_sv.cc: New test.
3457 * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: Adjust
3458 comment.
3459
3460 2018-06-05 Jonathan Wakely <jwakely@redhat.com>
3461
3462 * include/std/type_traits: Fix comment typos.
3463
3464 * testsuite/27_io/filesystem/operations/read_symlink.cc: XFAIL for
3465 mingw* targets.
3466 * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
3467 * testsuite/experimental/filesystem/operations/read_symlink.cc:
3468 Likewise.
3469
3470 2018-06-05 François Dumont <fdumont@gcc.gnu.org>
3471
3472 * include/bits/stl_tempbuf.h
3473 (_Temporary_buffer(_FwdIte, _FwdIte)): Delete, replaced by...
3474 (_Temporary_buffer(_FwdIte, size_type)): ...this, new.
3475 * include/ext/memory (temporary_buffer<>(_FwdIte, _FwdIte)): Adapt.
3476 * include/bits/stl_algo.h (__stable_partition): Adapt.
3477 (__inplace_merge): Adapt.
3478 (__stable_sort): Adapt.
3479
3480 2018-06-04 Jonathan Wakely <jwakely@redhat.com>
3481
3482 PR libstdc++/85930
3483 * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo>
3484 unconditionally. Remove redundant declaration.
3485 [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of
3486 alignment-specifier.
3487
3488 * include/bits/postypes.h (fpos): Define special members as defaulted.
3489
3490 PR libstdc++/85930
3491 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align
3492 the static variable correctly.
3493
3494 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
3495
3496 PR libstdc++/78870 support std::filesystem on Windows
3497 * config.h.in: Regenerate.
3498 * configure: Regenerate.
3499 * configure.ac: Check for link, readlink and symlink.
3500 * include/bits/fs_path.h (path::operator/=(const path&)): Move
3501 definition out of class body.
3502 (path::is_absolute(), path::_M_append(path)): Likewise.
3503 (operator<<(basic_ostream, const path&)): Use std::quoted directly.
3504 (operator>>(basic_istream, path&)): Likewise.
3505 (u8path): Reorder definitions and fix Windows implementation.
3506 (path::is_absolute()): Define inline and fix for Windows.
3507 [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
3508 Define POSIX version inline.
3509 (path::_M_append(path)): Define inline.
3510 * include/experimental/bits/fs_path.h (path::is_absolute()): Move
3511 definition out of class body.
3512 (operator<<(basic_ostream, const path&)): Fix type of delimiter and
3513 escape characters.
3514 (operator>>(basic_istream, path&)): Likewise.
3515 (path::is_absolute()): Define inline and fix for Windows.
3516 * src/filesystem/dir-common.h (__gnu_posix): New namespace.
3517 (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
3518 (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
3519 Define as adaptors for Windows functions/types or as
3520 using-declarations for POSIX functions/types.
3521 (_Dir_base, get_file_type): Qualify names to use declarations from
3522 __gnu_posix namespace.
3523 (_Dir_base::is_dor_or_dotdot): New helper functions.
3524 * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
3525 names to use declarations from __gnu_posix namespace.
3526 * src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
3527 (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
3528 (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
3529 (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
3530 (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
3531 (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
3532 Define as adaptors for Windows functions/types or as
3533 using-declarations for POSIX functions/types.
3534 (stat_type, do_copy_file): Qualify names to use declarations from
3535 __gnu_posix namespace.
3536 (do_space): Declare new function.
3537 (make_file_type): Only use S_ISLNK if defined.
3538 * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
3539 path::value_type not char.
3540 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
3541 names to use declarations from __gnu_posix namespace.
3542 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
3543 add implementation for Windows.
3544 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
3545 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
3546 [!_PC_PATH_MAX]: Don't use pathconf.
3547 [PATH_MAX]: Use if defined.
3548 (filesystem::current_path(const path&, error_code&))
3549 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
3550 (filesystem::last_write_time, filesystem::permissions): Use names
3551 from __gnu_posix.
3552 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
3553 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
3554 implementation for Windows.
3555 (filesystem::rename, filesystem::resize_file): Use names from
3556 __gnu_posix.
3557 (filesystem::space): Use do_space.
3558 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
3559 (filesystem::status, filesystem::symlink_status): Use names from
3560 __gnu_posix.
3561 (filesystem::temp_directory_path): Add implementation for Windows.
3562 * src/filesystem/path.cc (dot): Define constant.
3563 (path::replace_extension): Use dot.
3564 (path::_M_find_extension): Likewise. Use path::string_type not
3565 std::string.
3566 (path::_M_split_cmpts): Use dot.
3567 (filesystem_error::_M_get_what): Use u8string() not native().
3568 * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
3569 Qualify names to use declarations from __gnu_posix namespace.
3570 * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
3571 correct error_code.
3572 (filesystem::absolute(const path&, error_code&)): Add implementation
3573 for Windows.
3574 (char_ptr, filesystem::canonical): Use path::value_type not char.
3575 (do_copy_file): Use names from __gnu_posix.
3576 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
3577 sendfile.
3578 (filesystem::copy, create_dir, filesystem::create_directory): Qualify
3579 names to use declarations from __gnu_posix namespace.
3580 (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
3581 add implementation for Windows.
3582 (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
3583 (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
3584 [!_PC_PATH_MAX]: Don't use pathconf.
3585 [PATH_MAX]: Use if defined.
3586 (filesystem::current_path(const path&, error_code&))
3587 (filesystem::equivalent, do_stat, filesystem::hard_link_count)
3588 (filesystem::last_write_time, filesystem::permissions): Use names
3589 from __gnu_posix.
3590 (filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
3591 (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
3592 implementation for Windows.
3593 (filesystem::rename, filesystem::resize_file): Use names from
3594 __gnu_posix.
3595 (do_space): Define.
3596 (filesystem::space): Use do_space.
3597 (filesystem::status, filesystem::symlink_status): Use names from
3598 __gnu_posix.
3599 (filesystem::temp_directory_path): Add implementation for Windows.
3600 * src/filesystem/std-path.cc
3601 [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
3602 Define for Windows.
3603 (dot): Define constant.
3604 (path::replace_extension, is_dot): Use dot.
3605 (path::lexically_normal): Check _M_type instead of calling
3606 non-existent function.
3607 (path::_M_find_extension): Use dot. Use path::string_type not
3608 std::string.
3609 (path::_M_split_cmpts): Use dot.
3610 (filesystem_error::_M_get_what): Use u8string() not native().
3611 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
3612 use symlinks.
3613 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
3614 Likewise.
3615 * testsuite/27_io/filesystem/operations/absolute.cc: Use
3616 __gnu_test::root_path() instead of "/" and add Windows-specific tests.
3617 * testsuite/27_io/filesystem/operations/canonical.cc: Use
3618 path::string() to get narrow string, not path::native().
3619 * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
3620 with std::filesystem::path not std::basic_string.
3621 * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
3622 * testsuite/27_io/filesystem/operations/exists.cc: Use
3623 __gnu_test::root_path() instead of "/".
3624 * testsuite/27_io/filesystem/operations/is_empty.cc: Construct
3625 fstreams with std::filesystem::path not std::basic_string.
3626 * testsuite/27_io/filesystem/operations/last_write_time.cc: Use
3627 path::string() to get narrow string.
3628 * testsuite/27_io/filesystem/operations/space.cc: Check results for
3629 errors, expect sensible values otherwise.
3630 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
3631 helpers for adjusting the environment on Windows.
3632 * testsuite/27_io/filesystem/path/append/path.cc: Test
3633 Windows-specific behaviour.
3634 * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
3635 of path::string_type objects.
3636 * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
3637 string to wide string on Windows.
3638 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
3639 for backslash as root-directory.
3640 * testsuite/27_io/filesystem/path/decompose/stem.cc: Use
3641 path::string() to get narrow string.
3642 * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
3643 paths.
3644 * testsuite/27_io/filesystem/path/native/string.cc: Use string_type
3645 not std::string.
3646 * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
3647 different definintion of absolute paths on Windows.
3648 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
3649 Do not use symlinks.
3650 * testsuite/experimental/filesystem/operations/absolute.cc: Test
3651 Windows behaviour.
3652 * testsuite/experimental/filesystem/operations/copy.cc: Construct
3653 fstreams with NTCTS not std::basic_string.
3654 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
3655 * testsuite/experimental/filesystem/operations/exists.cc: Use
3656 __gnu_test::root_path() instead of "/".
3657 * testsuite/experimental/filesystem/operations/is_empty.cc: Construct
3658 fstreams with NTCTS not std::basic_string.
3659 * testsuite/experimental/filesystem/operations/last_write_time.cc:
3660 Use path::string() to get narrow string.
3661 * testsuite/experimental/filesystem/operations/space.cc: Use
3662 __gnu_test::root_path() instead of "/".
3663 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
3664 Add helpers for adjusting the environment on Windows.
3665 * testsuite/experimental/filesystem/path/append/path.cc: Use
3666 path::string() to get narrow strings for comparisons.
3667 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
3668 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
3669 Likewise.
3670 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
3671 * testsuite/experimental/filesystem/path/native/string.cc: Use
3672 string_type not std::string.
3673 * testsuite/experimental/filesystem/path/query/is_absolute.cc:
3674 Adjust for different definintion of absolute paths on Windows.
3675 * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
3676 function.
3677 (__gnu_test::scoped_file): Construct fstreams with NTCTS not
3678 std::basic_string.
3679
3680 2018-05-31 Jonathan Wakely <jwakely@redhat.com>
3681
3682 PR libstdc++/85951
3683 * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define
3684 uint_least16_t and uint_least32_t.
3685 (__make_unsigned<wchar_t>): Define unconditionally.
3686 (__make_unsigned_selector<_Tp, true, false>): Remove intermediate
3687 typedefs.
3688 (__make_unsigned_selector_base): New type to provide helper templates.
3689 (__make_unsigned_selector<_Tp, false, true>): Reimplement using
3690 __make_unsigned_selector_base helpers.
3691 (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define.
3692 (__make_signed_selector<_Tp, true, false>): Remove intermediate
3693 typedefs.
3694 (__make_signed<wchar_t>, __make_signed<char16_t>)
3695 (__make_signed<char32_t>)): Define unconditionally.
3696 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check
3697 wchar_t, char16_t and char32_t are transformed correctly.
3698 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
3699 dg-error lineno.
3700 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check
3701 wchar_t, char16_t and char32_t are transformed correctly.
3702 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
3703 dg-error lineno.
3704
3705 2018-05-29 Jonathan Wakely <jwakely@redhat.com>
3706
3707 * include/std/variant (__erased_dtor): Qualify call to __get.
3708
3709 2018-05-27 François Dumont <fdumont@gcc.gnu.org>
3710
3711 * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New.
3712 (_Rb_tree(const allocator_type&)): Use latter.
3713 * include/bits/stl_map.h (map(const allocator_type&)): Likewise.
3714 (map(initializer_list<value_type>, const allocator_type&)): Likewise.
3715 (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
3716 * include/bits/stl_multimap.h
3717 (multimap(const allocator_type&)): Likewise.
3718 (multimap(initializer_list<value_type>, const allocator_type&)):
3719 Likewise.
3720 (multimap(_InputIterator, _InputIterator, const allocator_type&)):
3721 Likewise.
3722 * include/bits/stl_set.h (set(const allocator_type&)): Likewise.
3723 (set(initializer_list<value_type>, const allocator_type&)): Likewise.
3724 (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise.
3725 * include/bits/stl_multiset.h
3726 (multiset(const allocator_type&)): Likewise.
3727 (multiset(initializer_list<value_type>, const allocator_type&)):
3728 Likewise.
3729 (multiset(_InputIterator, _InputIterator, const allocator_type&)):
3730 Likewise.
3731
3732 2018-05-25 François Dumont <fdumont@gcc.gnu.org>
3733
3734 PR libstdc++/85768
3735 * src/c++11/debug.cc: Remove backtrace usage.
3736
3737 2018-05-24 Maya Rashish <coypu@sdf.org>
3738
3739 PR target/85904
3740 * crossconfig.m4: Test for aligned_alloc on netbsd.
3741 * configure: Regenerate.
3742
3743 2018-05-24 Jonathan Wakely <jwakely@redhat.com>
3744
3745 PR libstdc++/69769
3746 PR libstdc++/85886
3747 * include/bits/atomic_base.h (__atomic_base::value_type)
3748 (__atomic_base::difference_type): Add new typedefs.
3749 * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type)
3750 (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise.
3751 (atomic<T*>::operator++, atomic<T*>::operator--)
3752 (atomic<T*>::operator+=, atomic<T*>::operator-=)
3753 (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion
3754 to enforce C++17 requirement on pointer arithmetic.
3755 (__atomic_val_t, __atomic_diff_t): New alias templates.
3756 (atomic_init, atomic_store_explicit, atomic_exchange_explicit)
3757 (atomic_compare_exchange_weak_explicit)
3758 (atomic_compare_exchange_strong_explicit, atomic_store)
3759 (atomic_exchange, atomic_compare_exchange_weak)
3760 (atomic_compare_exchange_strong): Use __atomic_val_t to make
3761 scalar parameters be non-deduced contexts.
3762 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
3763 (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be
3764 atomic instead of __atomic_base, and use __atomic_diff_t for scalar
3765 parameters.
3766 (atomic_fetch_and_explicit, atomic_fetch_or_explicit)
3767 (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or)
3768 (atomic_fetch_xor): Use __atomic_val_t for scalar parameters.
3769 (atomic_fetch_add_explicit, atomic_fetch_sub_explicit)
3770 (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic
3771 address types.
3772 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno.
3773 * testsuite/29_atomics/atomic/69769.cc: New test.
3774 * testsuite/29_atomics/atomic/nonmembers.cc: New test.
3775 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
3776 Disable test for C++17 and later.
3777 * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test.
3778 * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test.
3779 * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New
3780 test.
3781
3782 2018-05-23 Jonathan Wakely <jwakely@redhat.com>
3783
3784 * include/bits/fs_path.h (path::__is_encoded_char): Change from class
3785 template to alias template.
3786 (path::__value_type_is_char): Use remove_const_t.
3787 (path:_S_string_from_iter): New helper function.
3788 (path::_S_convert(InputIter, __null_terminated))
3789 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
3790 Use _S_string_from_iter.
3791 (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing
3792 rep for COW strings.
3793 * include/experimental/bits/fs_path.h (path::__is_encoded_char):
3794 Change from class template to alias template.
3795 (path::__value_type_is_char): Use remove_const.
3796 (path:_S_string_from_iter): New helper function.
3797 (path::_S_convert(InputIter, __null_terminated))
3798 (path::_S_convert_loc(InputIter, __null_terminated, const locale&)):
3799 Use _S_string_from_iter.
3800 * testsuite/27_io/filesystem/path/append/source.cc: Test appending
3801 wide strings.
3802 * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact
3803 string equality, not path equivalence.
3804 * testsuite/27_io/filesystem/path/construct/format.cc: Check
3805 construction from std::string and std::wstring and input iterators.
3806 * testsuite/27_io/filesystem/path/construct/locale.cc: Check
3807 construction from iterators.
3808 * testsuite/experimental/filesystem/path/concat/strings.cc: Check for
3809 exact string equality, not path equivalence.
3810 * testsuite/experimental/filesystem/path/construct/locale.cc: Check
3811 construction from iterators.
3812
3813 * include/bits/fs_path.h (path::_M_type): Change default member
3814 initializer to _Filename.
3815 (path::begin): Create past-the-end iterator for empty path.
3816 * src/filesystem/std-path.cc (path::remove_filename()): Remove
3817 debugging check.
3818 (path::has_relative_path()): Return false for empty filenames.
3819 (path::_M_split_cmpts): Set _M_type to _Filename for empty paths.
3820 Fix offset of empty final component.
3821 * testsuite/27_io/filesystem/path/itr/components.cc: New.
3822 * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs.
3823
3824 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
3825
3826 Add support for opening file streams from wide character strings.
3827 * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
3828 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
3829 Define new overload.
3830 * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
3831 (__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
3832 Declare new overload.
3833 * configure.ac: Check for _wfopen.
3834 * crossconfig.m4: Likewise.
3835 * configure: Regenerate.
3836 * config.h.in: Regenerate.
3837 * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
3838 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
3839 Define new overload.
3840 * include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
3841 (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
3842 Declare new overload.
3843 [_GLIBCXX_HAVE__WFOPEN]
3844 (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
3845 (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
3846 (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
3847 (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
3848 (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
3849 (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
3850 new overloads.
3851 * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
3852 * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
3853 * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
3854 * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
3855 * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
3856 * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
3857 * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
3858
3859 2018-05-21 François Dumont <fdumont@gcc.gnu.org>
3860
3861 PR libstdc++/85845
3862 * include/bits/stl_tree.h
3863 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept
3864 qualification.
3865
3866 2018-05-21 Jonathan Wakely <jwakely@redhat.com>
3867
3868 * src/filesystem/std-ops.cc (absolute): Report an error for empty
3869 paths.
3870 (weakly_canonical(const path&)): Do not call canonical on empty path.
3871 (weakly_canonical(const path&, error_code&)): Likewise.
3872 * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
3873
3874 PR libstdc++/85818
3875 * testsuite/experimental/filesystem/path/preferred_separator.cc: Add
3876 dg-require-filesystem-ts.
3877
3878 PR libstdc++/85843
3879 * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly
3880 initialize base class to avoid warnings.
3881
3882 2018-05-19 Jonathan Wakely <jwakely@redhat.com>
3883
3884 * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in)
3885 [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set
3886 little_endian element in bitmask.
3887 * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests.
3888 * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New.
3889
3890 2018-05-18 François Dumont <fdumont@gcc.gnu.org>
3891
3892 * include/bits/stl_tree.h
3893 (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New.
3894 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter.
3895 (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New.
3896 (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters.
3897 * include/debug/map.h
3898 (map(map&&, const_allocator_type&)): Add noexcept qualitication.
3899 * include/debug/multimap.h
3900 (multimap(multimap&&, const_allocator_type&)): Likewise.
3901 * include/debug/set.h
3902 (set(set&&, const_allocator_type&)): Likewise.
3903 * include/debug/multiset.h
3904 (multiset(multiset&&, const_allocator_type&)): Likewise.
3905 * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
3906 Add checks.
3907 * testsuite/23_containers/map/cons/noexcept_move_construct.cc:
3908 Add checks.
3909 * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
3910 Add checks.
3911 * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc:
3912 Add checks.
3913 * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
3914 Add checks.
3915 * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc:
3916 Add checks.
3917 * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
3918 Add checks.
3919 * testsuite/23_containers/set/cons/noexcept_move_construct.cc:
3920 Add checks.
3921
3922 2018-05-18 Jason Merrill <jason@redhat.com>
3923
3924 * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
3925 for conversion to const_iterator. Add defaulted copy ops.
3926 * libsupc++/new (bad_alloc): Add defaulted copy ops.
3927 * libsupc++/exception.h (exception): Add defaulted copy ops.
3928 * include/std/system_error (system_error): Add defaulted copy ops.
3929 * include/std/stdexcept (domain_error, invalid_argument)
3930 (length_error, out_of_range, range_error, overflow_error)
3931 (underflow_error): Add defaulted copy ops.
3932 * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
3933 copy assignment.
3934 * include/bits/allocator.h (allocator): Add defaulted copy assignment.
3935 * include/ext/throw_allocator.h (condition_base): Add defaulted
3936 default and copy ctor and copy assignment.
3937
3938 2018-05-18 Jonathan Wakely <jwakely@redhat.com>
3939
3940 PR libstdc++/85098
3941 * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
3942 (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
3943 (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
3944 (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
3945 definitions.
3946 * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
3947 whitespace.
3948 * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
3949 braces around body of do-while.
3950 * testsuite/28_regex/basic_regex/85098.cc: New
3951
3952 2018-05-17 Jonathan Wakely <jwakely@redhat.com>
3953
3954 PR libstdc++/85818
3955 * src/filesystem/path.cc (path::preferred_separator): Add used
3956 attribute.
3957 * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
3958
3959 PR libstdc++/85812
3960 * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
3961 * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
3962 Refactor to separate non-throwing and throwing implementations.
3963 [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
3964 if constructing the object throws.
3965
3966 2018-05-15 Jonathan Wakely <jwakely@redhat.com>
3967
3968 PR libstdc++/85749
3969 * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
3970 (linear_congruential_engine, mersenne_twister_engine)
3971 (subtract_with_carry_engine, discard_block_engine)
3972 (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
3973 constrain function templates taking seed sequences.
3974 * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
3975 (mersenne_twister_engine::seed(_Sseq&))
3976 (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
3977 match declarations.
3978 * include/ext/random (simd_fast_mersenne_twister_engine): Use
3979 __is_seed_seq to constrain function templates taking seed sequences.
3980 * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
3981 Change return type to match declaration.
3982 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
3983 New.
3984 * testsuite/26_numerics/random/independent_bits_engine/cons/
3985 seed_seq2.cc: New.
3986 * testsuite/26_numerics/random/linear_congruential_engine/cons/
3987 seed_seq2.cc: New.
3988 * testsuite/26_numerics/random/mersenne_twister_engine/cons/
3989 seed_seq2.cc: New.
3990 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
3991 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
3992 New.
3993 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
3994 seed_seq2.cc: New.
3995 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
3996 seed_seq2.cc: New.
3997
3998 PR libstdc++/83891
3999 * include/bits/fs_path.h (path::is_absolute()): Use same definition
4000 for all operating systems.
4001 * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
4002 * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
4003 * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
4004 * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
4005
4006 * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
4007 unused <vector> header.
4008 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
4009 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
4010 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
4011 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
4012 * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
4013 Likewise.
4014 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
4015 Likewise.
4016 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
4017 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
4018 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
4019 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
4020 * testsuite/experimental/filesystem/path/decompose/extension.cc:
4021 Likewise.
4022 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
4023 * testsuite/experimental/filesystem/path/query/has_extension.cc:
4024 Likewise.
4025 * testsuite/experimental/filesystem/path/query/has_filename.cc:
4026 Likewise.
4027 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
4028 Likewise.
4029 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
4030 Likewise.
4031 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
4032 Likewise.
4033 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
4034 Likewise.
4035 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
4036 Likewise.
4037 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
4038 * testsuite/experimental/filesystem/path/query/is_relative.cc:
4039 Likewise.
4040
4041 PR libstdc++/84159
4042 * include/bits/fs_path.h (path::operator/=, path::append): Construct
4043 temporary path before calling _M_append.
4044 (path::_M_append): Change parameter to path and implement C++17
4045 semantics.
4046 * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
4047 and more examples from the standard.
4048 * testsuite/27_io/filesystem/path/append/source.cc: New.
4049 * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
4050 * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
4051
4052 * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
4053 __invoke to prevent ADL.
4054
4055 2018-05-14 Jonathan Wakely <jwakely@redhat.com>
4056
4057 PR libstdc++/81256
4058 * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
4059 exceptions from _M_terminate_output().
4060 * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
4061 exceptions from close().
4062 * testsuite/27_io/basic_filebuf/close/81256.cc: New.
4063
4064 * include/bits/valarray_array.h (__valarray_get_memory): Remove.
4065 (__valarray_get_storage): Call operator new directly. Remove ignored
4066 top-level restrict qualifier and add malloc attribute instead.
4067 (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
4068
4069 PR libstdc++/67554
4070 * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
4071 (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
4072
4073 PR libstdc++/82966
4074 * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
4075 instead of type.
4076 * testsuite/23_containers/set/modifiers/node_swap.cc: New.
4077
4078 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com>
4079
4080 PR libstdc++/80165
4081 * testsuite/20_util/variant/80165.cc: New.
4082
4083 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
4084
4085 * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
4086 * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
4087 of C++11 containers with Debug Mode support.
4088 * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
4089 * doc/html/*: Regenerate.
4090
4091 2018-05-10 Jason Merrill <jason@redhat.com>
4092
4093 * include/bits/regex_compiler.h (_S_cache_size): Change from
4094 function to variable.
4095
4096 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4097
4098 PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
4099 * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
4100 argument defaulted to +1. Doxy comments on same.
4101 * testsuite/special_functions/02_assoc_legendre/
4102 check_value.cc: Regen.
4103 * testsuite/tr1/5_numerical_facilities/special_functions/
4104 02_assoc_legendre/check_value.cc: Regen.
4105
4106 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
4107
4108 PR libstdc++/85729
4109 * include/bits/c++config.h (__replacement_assert): Add linkage
4110 specification.
4111 * include/bits/std_abs.h: Add comment to closing brace of block.
4112 * include/c_global/cstddef: Add linkage specification.
4113 * include/c_global/cstring: Likewise.
4114 * include/c_global/cwchar: Likewise.
4115
4116 2018-05-09 François Dumont <fdumont@gcc.gnu.org>
4117
4118 * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
4119 Rename in...
4120 (_Safe_iterator<>::_S_constant()): ...that.
4121 * include/debug/safe_local_iterator.h
4122 (_Safe_local_iterator<>::_M_constant()): Rename in...
4123 (_Safe_local_iterator<>::_S_constant()): ...that.
4124 * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
4125 (_Iterator_state::__rbegin): New.
4126 (_Iterator_state::__rmiddle): New.
4127 (_Iterator_state::__rend): New.
4128 (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
4129 _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
4130 iterator type.
4131 (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
4132 _Is_iterator)): Likewise.
4133 (_Parameter::_S_reverse_state(_Iterator_state)): New.
4134 (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
4135 _Is_iterator)): New.
4136 (_Parameter(std::reverse_iterator<> const&, const char*,
4137 _Is_iterator)): New.
4138 (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
4139 const char*, _Is_iterator)): New.
4140 (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
4141 New.
4142 (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
4143 _Is_iterator)): New.
4144 * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
4145 * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
4146 * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
4147
4148 2018-05-09 Jonathan Wakely <jwakely@redhat.com>
4149
4150 * include/bits/std_function.h (_Base_manager::_M_get_pointer):
4151 Use constexpr if in C++17 mode.
4152 (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
4153 Copy from const object.
4154 * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
4155
4156 2018-05-08 François Dumont <fdumont@gcc.gnu.org>
4157
4158 * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
4159 [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
4160 backtrace.
4161
4162 * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
4163 * include/debug/functions.h (__check_valid_range): Use latter.
4164 * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
4165 use latter.
4166 * include/debug/deque
4167 (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
4168 * include/debug/forward_list
4169 (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
4170 Likewise.
4171 * include/debug/list
4172 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4173 * include/debug/list
4174 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4175 * include/debug/map.h
4176 (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4177 (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
4178 Likewise.
4179 * include/debug/multimap.h
4180 (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4181 (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
4182 const _Alloc&)): Likewise.
4183 * include/debug/set.h
4184 (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4185 (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
4186 Likewise.
4187 * include/debug/multiset.h
4188 (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
4189 (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
4190 const _Alloc&)): Likewise.
4191 * include/debug/string
4192 (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
4193 Likewise.
4194 * include/debug/unordered_map
4195 (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
4196 Likewise.
4197 (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
4198 const _Alloc&)): Likewise.
4199 * include/debug/unordered_set
4200 (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
4201 Likewise.
4202 (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
4203 const _Alloc&)): Likewise.
4204 * include/debug/vector
4205 (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
4206
4207 * include/debug/formatter.h (_Error_formatter::_M_function): New.
4208 (_Error_formatter(const char*, unsigned int)): Adapt.
4209 (_Error_formatter::_M_at): Rename in...
4210 (_Error_formatter::_S_at): ...that and adapt.
4211 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
4212 (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
4213 * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
4214 when available.
4215
4216 2018-05-08 Jonathan Wakely <jwakely@redhat.com>
4217
4218 * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
4219 Use normal std::vector even in Debug Mode.
4220
4221 PR libstdc++/85672
4222 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
4223 to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
4224 * include/Makefile.in: Regenerate.
4225 * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
4226 within conditional block.
4227
4228 2018-05-07 Jonathan Wakely <jwakely@redhat.com>
4229
4230 * doc/xml/manual/using.xml (table.cmd_options): Document that the
4231 C++17 Filesystem implementation also needs -lstdc++fs.
4232
4233 PR libstdc++/85671
4234 * include/bits/fs_path.h (operator/): Permit copy elision.
4235 * include/experimental/bits/fs_path.h (operator/): Likewise.
4236
4237 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
4238
4239 Moar PR libstdc++/80506
4240 * include/bits/random.tcc (gamma_distribution::__generate_impl()):
4241 Fix magic number used in loop condition.
4242
4243 2018-05-04 Jonathan Wakely <jwakely@redhat.com>
4244
4245 PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
4246 * include/std/optional (_Optional_payload): Add noexcept to default
4247 constructor. Re-indent.
4248 (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
4249 constructor for copying disengaged payloads.
4250 (_Optional_payload<_Tp, true, false, true>): Likewise.
4251 (_Optional_payload<_Tp, true, true, false>): Likewise.
4252 (_Optional_payload<_Tp, true, false, false>): Likewise.
4253 * testsuite/20_util/optional/cons/85642.cc: New.
4254 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
4255
4256 2018-05-03 Jonathan Wakely <jwakely@redhat.com>
4257
4258 PR libstdc++/82644
4259 * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
4260 inline definitions instead of using-declarations.
4261 [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
4262 * testsuite/tr1/5_numerical_facilities/special_functions/
4263 07_conf_hyperg/compile_cxx17.cc: New.
4264 * testsuite/tr1/5_numerical_facilities/special_functions/
4265 17_hyperg/compile_cxx17.cc: New.
4266
4267 PR libstdc++/84769
4268 * include/std/variant (visit): Qualify std::get call.
4269
4270 PR libstdc++/85632 use uintmax_t for arithmetic
4271 * src/filesystem/ops.cc (experimental::filesystem::space): Perform
4272 arithmetic in result type.
4273 * src/filesystem/std-ops.cc (filesystem::space): Likewise.
4274 * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
4275 is greater than free space.
4276 * testsuite/experimental/filesystem/operations/space.cc: New.
4277
4278 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
4279 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
4280 New.
4281 * testsuite/20_util/remove_cvref/value.cc: New.
4282 * testsuite/20_util/remove_cvref/value_ext.cc: New.
4283
4284 PR libstdc++/84087 LWG DR 2268 basic_string default arguments
4285 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
4286 (append(const basic_string&, size_type, size_type)
4287 (assign(const basic_string&, size_type, size_type)
4288 (insert(size_type, const basic_string&, size_type, size_type)
4289 (replace(size_type,size_type,const basic_string&,size_type,size_type)
4290 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
4291 Add default arguments (LWG 2268).
4292 [_GLIBCXX_USE_CXX11_ABI=0]
4293 (append(const basic_string&, size_type, size_type)
4294 (assign(const basic_string&, size_type, size_type)
4295 (insert(size_type, const basic_string&, size_type, size_type)
4296 (replace(size_type,size_type,const basic_string&,size_type,size_type)
4297 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
4298 Likewise.
4299 * testsuite/21_strings/basic_string/dr2268.cc: New test.
4300
4301 PR libstdc++/84535
4302 * include/std/thread (thread::__not_same): New SFINAE helper.
4303 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
4304 first argument is not a std::thread. Add static assertion to check
4305 INVOKE expression is valid.
4306 (thread::thread(thread&), thread::thread(const thread&&)): Remove.
4307 (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
4308 __invoke_result for return types and remove exception specifications.
4309 * testsuite/30_threads/thread/cons/84535.cc: New.
4310
4311 * include/std/future (__async_result_of): Use __invoke_result instead
4312 of result_of.
4313
4314 * include/std/any (any_cast): Use __remove_cvref_t.
4315 * include/std/tuple (__make_tuple): Likewise.
4316 * include/std/type_traits (__remove_cvref_t): Define.
4317 (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
4318 [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
4319 * include/std/variant (__erased_hash): Use __remove_cvref_t.
4320
4321 2018-05-02 François Dumont <fdumont@gcc.gnu.org>
4322
4323 * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
4324 ensure overloaded comma not used.
4325 * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
4326 * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
4327 * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
4328 * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
4329 * testsuite/23_containers/list/modifiers/assign/1.cc: New.
4330 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
4331 * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
4332
4333 2018-05-02 Jonathan Wakely <jwakely@redhat.com>
4334
4335 PR libstdc++/68197
4336 * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
4337 indices to unsigned.
4338 * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
4339 as failure. Refactor error handling.
4340 * testsuite/27_io/ios_base/storage/68197.cc: New.
4341
4342 PR libstdc++/57997
4343 PR libstdc++/83860
4344 * include/bits/gslice_array.h (gslice_array): Define default
4345 constructor as deleted, as per C++11 standard.
4346 * include/bits/mask_array.h (mask_array): Likewise.
4347 * include/bits/slice_array.h (slice_array): Likewise.
4348 * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
4349 to namespace __detail.
4350 (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
4351 members.
4352 * include/bits/valarray_before.h (_ValArrayRef): New helper for type
4353 of data members in closure objects.
4354 (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
4355 (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
4356 __detail.
4357 (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
4358 (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
4359 (_SBase::_M_expr): Use _ValArrayRef for type of data members.
4360 * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
4361 (_ValFunClos, _RefFunClos): Move to namespace __detail and add
4362 using-declarations to namespace std.
4363 * testsuite/26_numerics/valarray/83860.cc: New.
4364
4365 * testsuite/backward/strstream_move.cc: Remove duplicate function
4366 call.
4367
4368 PR libstdc++/69608
4369 * include/backward/strstream (strstreambuf): Define move constructor
4370 and move assignment operator.
4371 (istrstream, ostrstream, strstream): Likewise.
4372 * testsuite/backward/strstream_move.cc: New.
4373
4374 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
4375
4376 PR libstdc++/84654
4377 * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
4378 * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
4379 * configure: Regenerate.
4380 * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
4381 based on ENABLE_FLOAT128.
4382 * include/Makefile.in: Regenerate.
4383 * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
4384 [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
4385 _GLIBCXX_USE_FLOAT128.
4386
4387 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
4388
4389 * configure: Regenerated.
4390
4391 2018-04-19 Jakub Jelinek <jakub@redhat.com>
4392
4393 * configure: Regenerated.
4394
4395 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
4396 Jakub Jelinek <jakub@redhat.com>
4397
4398 PR libstdc++/85442
4399 * src/c++11/Makefile.am: Don't generate debuginfo again for
4400 cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
4401 * src/c++11/Makefile.in: Regenerate.
4402
4403 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
4404
4405 PR libstdc++/84442
4406 * testsuite/30_threads/thread/cons/terminate.cc
4407 [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
4408
4409 2018-04-18 David Malcolm <dmalcolm@redhat.com>
4410
4411 PR jit/85384
4412 * configure: Regenerate.
4413
4414 2018-04-16 Jonathan Wakely <jwakely@redhat.com>
4415
4416 * testsuite/experimental/filesystem/file_status/1.cc: Add
4417 -DUSE_FILESYSTEM_TS to dg-options.
4418 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
4419 Likewise.
4420 * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
4421 * testsuite/experimental/filesystem/iterators/
4422 recursive_directory_iterator.cc: Likewise.
4423 * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
4424 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
4425 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
4426 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
4427 * testsuite/experimental/filesystem/operations/create_directories.cc:
4428 Likewise.
4429 * testsuite/experimental/filesystem/operations/create_directory.cc:
4430 Likewise.
4431 * testsuite/experimental/filesystem/operations/create_symlink.cc:
4432 Likewise.
4433 * testsuite/experimental/filesystem/operations/current_path.cc:
4434 Likewise.
4435 * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
4436 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
4437 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
4438 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
4439 * testsuite/experimental/filesystem/operations/last_write_time.cc:
4440 Likewise.
4441 * testsuite/experimental/filesystem/operations/permissions.cc:
4442 Likewise.
4443 * testsuite/experimental/filesystem/operations/read_symlink.cc:
4444 Likewise.
4445 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
4446 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
4447 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
4448 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
4449 Likewise.
4450 * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
4451 * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
4452 * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
4453 * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
4454 * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
4455 * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
4456 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
4457 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
4458 * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
4459 * testsuite/experimental/filesystem/path/construct/default.cc:
4460 Likewise.
4461 * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
4462 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
4463 * testsuite/experimental/filesystem/path/construct/string_view.cc:
4464 Likewise.
4465 * testsuite/experimental/filesystem/path/decompose/extension.cc:
4466 Likewise.
4467 * testsuite/experimental/filesystem/path/decompose/filename.cc:
4468 Likewise.
4469 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
4470 Likewise.
4471 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
4472 Likewise.
4473 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
4474 Likewise.
4475 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
4476 Likewise.
4477 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
4478 Likewise.
4479 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
4480 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
4481 Likewise.
4482 * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
4483 * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
4484 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
4485 Likewise.
4486 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
4487 Likewise.
4488 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
4489 Likewise.
4490 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
4491 Likewise.
4492 * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
4493 * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
4494 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
4495 Likewise.
4496 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
4497 * testsuite/experimental/filesystem/path/query/has_extension.cc:
4498 Likewise.
4499 * testsuite/experimental/filesystem/path/query/has_filename.cc:
4500 Likewise.
4501 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
4502 Likewise.
4503 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
4504 Likewise.
4505 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
4506 Likewise.
4507 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
4508 Likewise.
4509 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
4510 Likewise.
4511 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
4512 * testsuite/experimental/filesystem/path/query/is_relative.cc:
4513 Likewise.
4514
4515 2018-04-13 Jonathan Wakely <jwakely@redhat.com>
4516
4517 * src/c++11/Makefile.am: Fix sed command.
4518 * src/c++11/Makefile.in: Regenerate.
4519
4520 * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
4521 handle mangled names starting with double underscores on darwin.
4522 * src/c++11/Makefile.in: Regenerate.
4523
4524 2018-04-12 Jonathan Wakely <jwakely@redhat.com>
4525
4526 * src/c++11/Makefile.am: Fix comment.
4527 * src/c++11/Makefile.in: Regenerate.
4528 * src/c++11/cxx11-ios_failure.cc: Fix comment.
4529 * src/c++98/ios_failure.cc: Likewise.
4530
4531 * src/c++11/ios.cc: Remove redundant macro definition.
4532
4533 2018-04-11 Jonathan Wakely <jwakely@redhat.com>
4534
4535 * doc/xml/manual/abi.xml: Document header locations in recent
4536 releases.
4537 * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
4538 * doc/xml/manual/spine.xml: Update copyright years.
4539 * doc/xml/manual/strings.xml: Adjust tolower example to avoid
4540 undefined behaviour.
4541 * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
4542 * doc/html/*: Regenerate.
4543
4544 2018-04-10 Jonathan Wakely <jwakely@redhat.com>
4545
4546 * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
4547 * doc/xml/manual/backwards_compatibility.xml: Likewise.
4548 * doc/xml/manual/containers.xml: Likewise.
4549 * doc/xml/manual/debug_mode.xml: Likewise.
4550 * doc/xml/manual/extensions.xml: Likewise.
4551 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
4552 * doc/xml/manual/using.xml: Likewise.
4553 * doc/xml/manual/utilities.xml: Likewise.
4554
4555 PR libstdc++/85222
4556 * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
4557 cxx11-ios_failure.cc to rewrite type info for __ios_failure.
4558 * src/c++11/Makefile.in: Regenerate.
4559 * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
4560 New types.
4561 [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
4562 * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
4563 * src/c++98/ios_failure.cc (__construct_ios_failure)
4564 (__destroy_ios_failure, is_ios_failure_handler): New functions.
4565 [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
4566 * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
4567 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
4568 handler types, to always catch std::ios_base::failure.
4569 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
4570 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
4571 exceptions_failbit.cc: Likewise.
4572 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
4573 exceptions_failbit.cc: Likewise.
4574 * testsuite/27_io/basic_istream/extractors_other/char/
4575 exceptions_null.cc: Likewise.
4576 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
4577 exceptions_null.cc: Likewise.
4578 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
4579 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
4580 * testsuite/27_io/basic_ostream/inserters_other/char/
4581 exceptions_null.cc: Likewise.
4582 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
4583 exceptions_null.cc: Likewise.
4584 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
4585
4586 2018-04-05 Jonathan Wakely <jwakely@redhat.com>
4587
4588 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
4589 __get calls to avoid ADL and avoid ambiguity due to Clang bug.
4590
4591 2018-04-03 Jonathan Wakely <jwakely@redhat.com>
4592
4593 PR libstdc++/85183
4594 * include/std/variant (_Move_assign_base::operator=): Fix incorrect
4595 value categories.
4596 * testsuite/20_util/variant/85183.cc: New.
4597
4598 2018-03-26 Jonathan Wakely <jwakely@redhat.com>
4599
4600 * include/std/variant (__get): Qualify calls to avoid ADL.
4601 (__select_index): Adjust whitespace.
4602 (variant): Add using-declaration to workaround Clang bug.
4603
4604 2018-03-22 Jonathan Wakely <jwakely@redhat.com>
4605
4606 PR libstdc++/85040
4607 * include/bits/stl_function.h (greater::__not_overloaded)
4608 (less::__not_overloaded, greater_equal::__not_overloaded)
4609 (less_equal::__not_overloaded): Fix ambiguous specializations.
4610 * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
4611 tests for type with overloaded operators.
4612
4613 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4614
4615 PR libstdc++/77691
4616 * testsuite/experimental/memory_resource/resource_adaptor.cc:
4617 xfail execution on 32-bit Solaris/x86.
4618
4619 2018-03-21 Jonathan Wakely <jwakely@redhat.com>
4620
4621 * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
4622 VERIFY instead of assert.
4623 * testsuite/20_util/hash/84998.cc: New test.
4624 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
4625 copy of test adjusted for Debug Mode.
4626 * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
4627 test in Debug Mode.
4628
4629 2018-03-20 François Dumont <fdumont@gcc.gnu.org>
4630
4631 PR libstdc++/84998
4632 * include/bits/stl_bvector.h: Fix std::hash friend declaration.
4633 * include/std/bitset: Likewise.
4634 * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
4635 declaration.
4636 * include/bits/stl_multimap.h (std::multimap<>): Likewise.
4637 * include/bits/stl_multiset.h (std::multiset<>): Likewise.
4638 * include/bits/stl_set.h (std::set<>): Likewise.
4639 * include/bits/unordered_map.h (std::unordered_map<>): Fix
4640 _Hash_merge_helper friend declaration.
4641 (std::unordered_multimap<>): Likewise.
4642 * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
4643 (std::unordered_multiset<>): Likewise.
4644
4645 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
4646
4647 * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
4648 trailing slash for domain level link.
4649 * doc/xml/faq.xml: Ditto.
4650 * doc/xml/manual/appendix_free.xml (software): Ditto.
4651 * doc/xml/manual/intro.xml: Ditto.
4652 * doc/xml/manual/spine.xml: Ditto.
4653 * doc/xml/spine.xml: Ditto.
4654
4655 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
4656
4657 * doc/xml/manual/documentation_hacking.xml: Adjust link to
4658 docbook.org.
4659
4660 2018-03-17 Jonathan Wakely <jwakely@redhat.com>
4661
4662 * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
4663 to compile as C++98.
4664
4665 2018-03-14 Jonathan Wakely <jwakely@redhat.com>
4666
4667 PR libstdc++/78420
4668 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
4669 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
4670 to ensure total order for pointers.
4671 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
4672 Add operator() overloads for pointer arguments and make generic
4673 overloads dispatch to new _S_cmp functions when comparisons would
4674 use built-in operators for pointers.
4675 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
4676
4677 2018-03-12 Jonathan Wakely <jwakely@redhat.com>
4678
4679 PR libstdc++/84773
4680 PR libstdc++/83662
4681 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
4682 * configure: Regenerate.
4683 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
4684 (aligned_alloc): Add using-declaration.
4685 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
4686
4687 2018-03-09 François Dumont <fdumont@gcc.gnu.org>
4688
4689 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
4690 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
4691 registration.
4692
4693 2018-03-09 Jonathan Wakely <jwakely@redhat.com>
4694
4695 PR libstdc++/84769
4696 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
4697 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
4698
4699 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
4700 src/filesystem/std-ops.cc (create_dir): Likewise.
4701
4702 2018-03-08 François Dumont <fdumont@gcc.gnu.org>
4703
4704 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
4705 (StdListIteratorPrinter): Inherit from latter.
4706 (StdFwdListIteratorPrinter): New, inherit from latter.
4707 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
4708 when iterator has no associated container.
4709 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
4710 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
4711 registrations.
4712 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
4713 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
4714
4715 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
4716
4717 PR libstdc++/84601
4718 * include/std/optional (_Optional_payload): Split into multiple
4719 specializations that can handle different cases of trivial or
4720 non-trivial assignment operators.
4721 * testsuite/20_util/optional/84601.cc: New.
4722 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
4723
4724 2018-03-02 Jonathan Wakely <jwakely@redhat.com>
4725
4726 PR libstdc++/84671
4727 * include/bits/parse_numbers.h (_Number_help): Add partial
4728 specialization to handle digit separators. Adjust partial
4729 specialization for recursion temrination to require _Pow == 1ULL.
4730 * testsuite/20_util/duration/literals/84671.cc: New
4731
4732 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
4733
4734 Implement the missing bits of LWG 2769
4735 * include/std/any (any_cast(const any&)): Add static_assert.
4736 (any_cast(any&)): Likewise.
4737 (any_cast(any&&)): Likewise, and remove the handling
4738 for copyable-but-not-movable type.
4739 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
4740 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
4741 add new tests.
4742
4743 2018-02-23 Jonathan Wakely <jwakely@redhat.com>
4744
4745 PR libstdc++/84532
4746 * include/std/thread (thread::__make_invoker): Construct tuple
4747 directly instead of using make_tuple.
4748 * testsuite/30_threads/async/84532.cc: New.
4749 * testsuite/30_threads/thread/84532.cc: New.
4750
4751 2018-02-20 François Dumont <fdumont@gcc.gnu.org>
4752
4753 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
4754 (template<> __aligned_buffer): Define as __aligned_membuf alias.
4755
4756 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4757
4758 PR target/84148
4759 * configure: Regenerate.
4760
4761 2018-02-15 Jonathan Wakely <jwakely@redhat.com>
4762
4763 PR libstdc++/81797
4764 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
4765 * configure: Regenerate.
4766 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
4767 defined.
4768 * include/Makefile.in: Regenerate.
4769
4770 2018-01-29 Jonathan Wakely <jwakely@redhat.com>
4771
4772 PR libstdc++/83833
4773 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
4774 Add -ffloat-store to options for m68k and ia32.
4775
4776 * doc/xml/faq.xml: Update copyright years.
4777 * doc/html/*: Regenerate.
4778
4779 PR libstdc++/83658
4780 * include/std/any (any::__do_emplace): Only set _M_manager after
4781 constructing the contained object.
4782 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
4783 * testsuite/20_util/any/modifiers/83658.cc: New test.
4784
4785 2018-01-25 Jonathan Wakely <jwakely@redhat.com>
4786
4787 PR libstdc++/81076
4788 * include/c_global/cstddef (__byte_operand): Define primary template.
4789 * testsuite/18_support/byte/81076.cc: New test.
4790
4791 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
4792
4793 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
4794 dg-options and dg-add-options order.
4795 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
4796 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
4797 Likewise.
4798 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
4799 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
4800 Likewise.
4801 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
4802 Likewise.
4803 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
4804 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
4805 Likewise.
4806 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
4807 Likewise.
4808 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
4809 Likewise.
4810 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
4811 Likewise.
4812 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
4813 Likewise.
4814 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
4815 Likewise.
4816 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
4817 Likewise.
4818 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
4819 Likewise.
4820 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
4821 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
4822 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
4823 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
4824 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
4825 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
4826 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
4827 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
4828 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
4829 Likewise.
4830 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
4831 Likewise.
4832 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
4833 Likewise.
4834 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
4835 Likewise.
4836
4837 2018-01-18 Uros Bizjak <ubizjak@gmail.com>
4838
4839 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
4840 include linux/types.h when checking linux/random.h header.
4841 * config.h.in: Regenerate.
4842 * configure: Ditto.
4843 * src/c++11/random.cc: Conditionally include linux/types.h.
4844
4845 2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
4846
4847 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
4848
4849 2018-01-16 Jonathan Wakely <jwakely@redhat.com>
4850
4851 PR libstdc++/83834
4852 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
4853 pattern with exact match for std::cerr.
4854
4855 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
4856
4857 PR libstdc++/83833
4858 * include/bits/random.h (chi_squared_distribution::param): Update
4859 gamma distribution parameter.
4860 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
4861 test.
4862
4863 PR libstdc++/83830
4864 * include/std/type_traits (has_unique_object_representations_v): Add
4865 variable template.
4866 * testsuite/20_util/has_unique_object_representations/value.cc: Check
4867 variable template.
4868
4869 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
4870
4871 Make optional conditionally
4872 trivially_{copy,move}_{constructible,assignable}
4873 * include/std/optional (_Optional_payload): Fix the comment in
4874 the class head and turn into a primary and one specialization.
4875 (_Optional_payload::_M_engaged): Strike the NSDMI.
4876 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
4877 New.
4878 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
4879 Likewise.
4880 (_Optional_payload<_Tp, false>::_M_get): Likewise.
4881 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
4882 (_Optional_base_impl): Likewise.
4883 (_Optional_base): Turn into a primary and three specializations.
4884 (optional(nullopt)): Change the base init.
4885 * testsuite/20_util/optional/assignment/8.cc: New.
4886 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
4887 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
4888
4889 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
4890
4891 PR libstdc++/80276
4892 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
4893 (get_template_arg_list): New.
4894 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
4895 instead.
4896 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
4897 of strings and regular expressions.
4898 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
4899 (FilteringTypePrinter): Add docstring. Match using startswith. Use
4900 strip_inline_namespaces instead of strip_versioned_namespace.
4901 (add_one_type_printer): Prepend namespace to match argument.
4902 (register_type_printers): Add type printers for char16_t and char32_t
4903 string types and for types using cxx11 ABI. Update calls to
4904 add_one_template_type_printer to provide default argument dicts.
4905 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
4906 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
4907 basic_string<unsigned char> and basic_string<signed char>.
4908 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
4909 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
4910
4911 2018-01-14 Andreas Schwab <schwab@linux-m68k.org>
4912
4913 PR libstdc++/81092
4914 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
4915
4916 2018-01-13 Tim Shen <timshen@google.com>
4917
4918 PR libstdc++/83601
4919 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
4920 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
4921 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
4922
4923 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4924
4925 PR libstdc++/64054
4926 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
4927 Remove dg-xfail-run-if.
4928
4929 2018-01-10 François Dumont <fdumont@gcc.gnu.org>
4930
4931 * include/bits/forward_list.h
4932 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
4933 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
4934 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
4935 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
4936 (_Fwd_list_impl()): Add noexcept qualification.
4937 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
4938 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
4939 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
4940 (_Fwd_list_base()): Default.
4941 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
4942 (_Fwd_list_base(_Fwd_list_base&&)): Default.
4943 (forward_list<>()): Default.
4944 (forward_list<>(forward_list&&)): Default.
4945 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
4946 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
4947 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
4948 * include/bits/forward_list.tcc
4949 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
4950 _M_impl._M_head move assignment.
4951 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
4952 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
4953
4954 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
4955
4956 PR libstdc++/80276
4957 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
4958 (UniquePointerPrinter): Print correct template argument, not type of
4959 the pointer.
4960 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
4961 a type.
4962 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
4963 array type.
4964 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
4965 weak_ptr of array types.
4966
4967 2018-01-09 François Dumont <fdumont@gcc.gnu.org>
4968
4969 PR libstdc++/83709
4970 * include/bits/hashtable_policy.h
4971 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
4972 __first != __last.
4973 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
4974 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
4975 Add false_type parameter.
4976 (_Insert_base::insert): Adapt.
4977 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
4978 Adapt.
4979 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
4980 Add __n_elt parameter, defaulted to 1.
4981 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
4982 policy _M_need_rehash.
4983 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
4984 produce only 1 rehash if necessary.
4985 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
4986 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
4987
4988 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
4989 Jonathan Wakely <jwakely@redhat.com>
4990
4991 PR libstdc++/59253 (partial)
4992 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
4993 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
4994 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
4995 children.
4996 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
4997 of unique_ptr printer.
4998 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
4999 output of shared_ptr printer.
5000
5001 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
5002
5003 PR libstdc++/83626
5004 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
5005 unnecessary symlink_status call.
5006 (remove_all(const path&, error_code&)): Use filesystem::remove.
5007 * src/filesystem/std-ops.cc: Likewise.
5008
5009 PR libstdc++/83279
5010 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
5011 sendfile.
5012
5013 PR libstdc++/83626
5014 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
5015 report an error for ENOENT.
5016 (remove_all(const path&)): Fix type of result variable.
5017 (remove_all(const path&, error_code&)): Use non-throwing increment
5018 for directory iterator. Call POSIX remove directly to avoid redundant
5019 calls to symlink_status. Do not report errors for ENOENT.
5020 * src/filesystem/std-ops.cc: Likewise.
5021 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
5022 overload.
5023 * testsuite/experimental/filesystem/operations/remove_all.cc:
5024 Likewise.
5025
5026 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
5027
5028 PR libstdc++/83626
5029 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
5030 redundant call to ec.clear().
5031 (remove_all(const path&, error_code&))): Do not return an error for
5032 non-existent paths.
5033 * src/filesystem/std-ops.cc: Likewise.
5034 * testsuite/27_io/filesystem/operations/remove.cc: New test.
5035 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
5036 results for non-existent paths.
5037 * testsuite/experimental/filesystem/operations/remove.cc: New test.
5038 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
5039 expected results for non-existent paths.
5040
5041 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
5042 check status_known once.
5043 * include/experimental/bits/fs_ops.h: Likewise.
5044
5045 PR libstdc++/83607
5046 * include/std/functional (__is_byte_like): New trait.
5047 (__is_std_equal_to): Remove.
5048 (__boyer_moore_base_t): Use __is_byte_like instead of
5049 __is_std_equal_to.
5050 * include/experimental/functional (__is_std_equal_to): Remove.
5051 (__boyer_moore_base_t): Use __is_byte_like instead of
5052 __is_std_equal_to.
5053 * testsuite/20_util/function_objects/83607.cc: New test.
5054
5055 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
5056
5057 Protect optional's deduction guide with the feature macro
5058 * include/std/optional: Use the feature macro.
5059
5060 2018-01-03 Jakub Jelinek <jakub@redhat.com>
5061
5062 Update copyright years.
5063 \f
5064 Copyright (C) 2018 Free Software Foundation, Inc.
5065
5066 Copying and distribution of this file, with or without modification,
5067 are permitted in any medium without royalty provided the copyright
5068 notice and this notice are preserved.