Get rid of dg-skip-if etc. default args
[gcc.git] / libstdc++-v3 / ChangeLog
1 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
4 default args.
5
6 2017-06-17 Jonathan Wakely <jwakely@redhat.com>
7
8 PR libstdc++/80893
9 * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
10
11 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
12
13 * include/bits/shared_ptr.h (get_deleter): Add overload matching
14 standard signature.
15 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
16 get_deleter overload as a friend.
17 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
18
19 2017-06-16 Jakub Jelinek <jakub@redhat.com>
20
21 PR libstdc++/81092
22 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
23 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
24 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
25
26 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
27
28 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
29 * testsuite/22_locale/conversions/buffer/2.cc: New.
30
31 PR libstdc++/81092
32 * acinclude.m4: Bump libtool_VERSION.
33 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
34 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
35 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
36 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
37 to new GLIBCXX_3.4.25 version.
38 * doc/xml/manual/abi.xml: Document new versions.
39 * doc/html/*: Regenerate.
40 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
41 constructors to ensure required symbols are exported.
42 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
43 * testsuite/util/testsuite_abi.cc: Add new version.
44
45 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
46 return statement.
47 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
48 Return void.
49 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
50 Likewise.
51 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
52 missing return statements.
53 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
54 Likewise.
55 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
56 Return void.
57 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
58
59 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
60
61 * include/bits/stl_bvector.h
62 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
63 Change signature.
64 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
65 (_Bvector_impl_data): New.
66 (_Bvector_impl): Inherits from latter.
67 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
68 (_Bvector_impl(_Bvector_impl&&)): New, default.
69 (_Bvector_base()): Default.
70 (_Bvector_base(_Bvector_base&&)): Default.
71 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
72 (vector(vector&&, const allocator_type&)): Use latter.
73 (vector<bool>::operator=(vector&&)): Likewise.
74 (vector<bool>::vector()): Default.
75 (vector<bool>::vector(vector&&)): Default.
76 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
77 _M_assign_aux.
78 (vector<bool>::assign(initializer_list<bool>)): Likewise.
79 (vector<bool>::_M_initialize_value(bool)): New.
80 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
81 latter.
82 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
83 Likewise.
84 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
85
86 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
87
88 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
89 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
90
91 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
92
93 * testsuite: Add dg-require-effective-target pthread to -pthread
94 tests.
95 Remove explicit target lists from dg-do and dg-options.
96
97 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
98 target list from dg-options.
99 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
100
101 * 30_threads/shared_mutex/cons/1.cc: Likewise.
102 Pass -pthread for all targets.
103 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
104 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
105 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
106
107 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
108 dg-require-effective-target.
109
110 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
111
112 * doc/xml/manual/test.xml: Correct instructions on running tests.
113 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
114 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
115 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
116 Likewise.
117 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
118 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
119 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
120 exceptions_failbit.cc: Likewise.
121 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
122 exceptions_failbit.cc: Likewise.
123 * testsuite/27_io/basic_istream/extractors_other/char/
124 exceptions_null.cc: Likewise.
125 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
126 exceptions_null.cc: Likewise.
127 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
128 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
129 * testsuite/27_io/basic_ostream/inserters_other/char/
130 exceptions_null.cc: Likewise.
131 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
132 exceptions_null.cc: Likewise.
133 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
134
135 2017-06-12 Pedro Alves <palves@redhat.com>
136
137 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
138 char_traits status.
139 * doc/html/*: Regenerate.
140
141 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
142 not already defined.
143 (__cpp_lib_constexpr_char_traits): Uncomment.
144 (__constant_string_p, __constant_char_array_p): New.
145 (std::char_traits<char>, std::char_traits<wchar_t>): Add
146 _GLIBCXX17_CONSTEXPR on compare, length and find and use
147 __constant_string_p, __constant_char_array_p and
148 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
149 time.
150
151 * testsuite/21_strings/char_traits/requirements/
152 constexpr_functions_c++17.cc: Uncomment
153 __cpp_lib_constexpr_char_traits tests. Uncomment
154 test_compare<char>, test_length<char>, test_find<char>,
155 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
156 static_assert tests.
157
158 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
159
160 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
161 default init.
162 * testsuite/util/testsuite_allocator.h
163 (__gnu_test::default_init_allocator<>) New.
164 * testsuite/23_containers/set/allocator/default_init.cc: New.
165 * testsuite/23_containers/map/allocator/default_init.cc: New.
166
167 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
168
169 PR libstdc++/55917
170 * src/c++11/thread.cc (execute_native_thread_routine): Remove
171 try-block so that exceptions propagate out of the thread and terminate
172 is called by the exception-handling runtime.
173 (execute_native_thread_routine_compat): Likewise.
174 * testsuite/30_threads/thread/cons/terminate.cc: New.
175
176 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
177
178 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
179 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
180 (LWG 2802).
181 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
182 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
183 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
184
185 * include/bits/forward_list.h (forward_list): Add deduction guide.
186 * include/bits/stl_deque.h (deque): Likewise.
187 * include/bits/stl_list.h (list): Likewise.
188 * include/bits/stl_vector.h (vector): Likewise.
189 * testsuite/23_containers/deque/cons/deduction.cc: New.
190 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
191 * testsuite/23_containers/list/cons/deduction.cc: New.
192 * testsuite/23_containers/vector/cons/deduction.cc: New.
193
194 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
195
196 PR libstdc++/81017
197 * include/bits/std_function.h (function::function(function&&))
198 (function::operator=(funtion&&)): Add noexcept.
199 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
200 * testsuite/20_util/function/cons/move.cc: Likewise.
201
202 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
203
204 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
205 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
206
207 PR libstdc++/81002
208 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
209 so iterator type is deduced.
210 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
211 parameters to allow iterator type to be deduced.
212 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
213
214 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
215 New trait and alias for detecting Allocator-like types.
216 * include/bits/basic_string.h (basic_string): Add deduction guide
217 from P0433.
218 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
219 parameter with default template argument that causes substitution
220 failures for types that cannot be allocators.
221 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
222 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
223
224 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
225
226 PR libstdc++/80939
227 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
228 (__erased_hash): Remove constexpr specifier and qualify calls to
229 __ref_cast.
230 (__erased_dtor): Remove constexpr specifier and use _Destroy.
231
232 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
233
234 * include/bits/stl_iterator_base_funcs.h
235 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
236 cases where incrementing or decrementing a single step.
237
238 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
239 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
240 specifiers as per LWG 2873 and LWG 2942.
241 * testsuite/20_util/owner_less/noexcept.cc: New.
242 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
243 noexcept guarantees.
244 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
245
246 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
247
248 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
249
250 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
251
252 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
253
254 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
255
256 PR libstdc++/80624
257 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
258 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
259 Transform eof value to U+FFFD.
260 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
261 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
262 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
263
264 * libsupc++/Makefile.am: Remove custom targets for files that need to
265 be compiled as C++11 or C++14.
266 * libsupc++/Makefile.in: Regenerate.
267 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
268 warnings.
269 * libsupc++/del_opvs.cc: Likewise.
270
271 2017-06-02 Richard Biener <rguenther@suse.de>
272 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
273
274 PR libstdc++/80721
275 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
276 sorted and add missing freelist item merging cases.
277
278 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
279
280 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
281 Remove *-solaris* section.
282 * configure: Regenerate.
283
284 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
285
286 PR libstdc++/80893
287 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
288 null pointer dereference when size is zero.
289 * testsuite/23_containers/vector/bool/80893.cc: New.
290 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
291 Add non-explicit constructor from nullptr.
292 (PointerBase::derived() const): Add const-qualified overload.
293
294 2017-05-20 Tim Shen <timshen@google.com>
295
296 PR libstdc++/80737
297 * include/std/variant(variant::variant): SFINAE on is_same first.
298 * testsuite/20_util/variant/any.cc: test case.
299
300 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
301
302 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
303 instead of fixed number of bits.
304
305 2017-05-24 Andreas Schwab <schwab@suse.de>
306
307 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
308 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
309
310 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
311 Jonathan Wakely <jwakely@redhat.com>
312
313 PR libstdc++/67578
314 * acinclude.m4: Bump libtool_VERSION.
315 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
316 * config.h.in: Regenerate.
317 * configure: Regenerate.
318 * configure.ac: Add test for <linux/random.h>.
319 * doc/xml/manual/abi.xml: Document new library version.
320 * include/bits/random.h (random_device::entropy)
321 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
322 (random_device::_M_getentropy): Declare.
323 * src/c++11/random.cc (random_device::_M_getentropy): Define.
324 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
325 versions, and make it the latest version.
326
327 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
328
329 PR libstdc++/67214
330 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
331 explicit conversion to avoid signed overflow.
332
333 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
334
335 PR libstdc++/80796
336 * include/bits/stl_algo.h (search): Add new overload for C++17.
337 * testsuite/25_algorithms/search/searcher.cc: New.
338
339 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
340
341 PR libstdc++/80478
342 * include/std/functional (_Mem_fn_traits_base): Add specializations
343 for noexcept member function types.
344 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
345
346 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
347
348 * doc/xml/manual/policy_data_structures.xml: Fix typo.
349 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
350 * doc/html/*: Regenerate.
351
352 * doc/xml/manual/abi.xml: Document latest library versions.
353 * doc/xml/manual/build_hacking.xml: Document requirement to update
354 abi.xml when bumping library versions.
355 * doc/html/*: Regenerate.
356
357 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
358
359 * include/bits/refwrap.h: Fix Doxygen warning.
360 * include/bits/specfun.h: Likewise.
361 * include/bits/std_function.h: Likewise.
362 * include/bits/stl_algo.h (set_union, set_intersection)
363 (set_difference, set_symmetric_difference): Add Doxygen @param tags
364 for output iterator parameters.
365 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
366 iterator parameter.
367 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
368 Doxygen comments.
369
370 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
371
372 Implement new C++ intrinsics __is_assignable and __is_constructible.
373 * include/std/type_traits (__do_is_static_castable_impl): Remove.
374 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
375 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
376 (__is_direct_constructible_impl): Likewise.
377 (__is_direct_constructible_new_safe): Likewise.
378 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
379 (__is_direct_constructible_ref_cast): Likewise.
380 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
381 (__do_is_nary_constructible_impl): Likewise.
382 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
383 (__is_constructible_impl): Likewise.
384 (is_constructible): Call the intrinsic.
385 (__is_assignable_helper): Remove.
386 (is_assignable): Call the intrinsic.
387 (is_trivially_constructible): Likewise.
388 (__is_trivially_copy_constructible_impl): New.
389 (is_trivially_copy_constructible): Use it.
390 (__is_trivially_move_constructible_impl): New.
391 (is_trivially_move_constructible): Use it.
392 (is_trivially_assignable): Call the intrinsic.
393 (__is_trivially_copy_assignable_impl): New.
394 (is_trivially_copy_assignable): Use it.
395 (__is_trivially_move_assignable_impl): New.
396 (is_trivially_move_assignable): Use it.
397 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
398 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
399 Add test for void.
400 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
401 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
402 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
403 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
404 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
405 Likewise.
406
407 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
408
409 * testsuite/experimental/source_location/1.cc: Change expected result
410 for source_location::current() used in default member initializer.
411
412 * doc/xml/manual/status_cxx2017.xml: Update status table.
413 * doc/html/*: Regenerate.
414 * include/Makefile.am: Add new header.
415 * include/Makefile.in: Regenerate.
416 * include/experimental/source_location: New header implementing N4519.
417 * testsuite/experimental/source_location/1.cc: New test.
418
419 PR libstdc++/80285
420 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
421 outside versioned namespace.
422
423 * configure: Regenerate.
424
425 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
426
427 * include/std/optional (_Optional_base::_M_get): Check precondition.
428 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
429
430 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
431
432 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
433 note higher DejaGnu version requirement.
434 * doc/html/*: Regenerate.
435
436 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
437 identifiers.
438 * doc/html/*: Regenerate.
439
440 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
441
442 PR libstdc++/80761
443 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
444 (tuple_size, tuple_element): Remove partial specializations.
445 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
446 const_iterator for std::set.
447 * testsuite/23_containers/map/modifiers/extract.cc: New.
448 * testsuite/23_containers/set/modifiers/extract.cc: New.
449 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
450 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
451
452 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
453
454 PR libstdc++/78939
455 * include/std/utility (tuple_size<cv T>): Only define partial
456 specializations when tuple_size<T>::value is valid.
457 * testsuite/20_util/tuple/78939.cc: New.
458 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
459
460 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
461
462 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
463 (_Rb_tree_impl<>): Remove _Is_pod_comparator
464 template parameter.
465
466 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
467 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
468 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
469 Remove.
470 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
471 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
472 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
473 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
474 * src/c++11/debug.cc: Adapt.
475 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
476
477 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
478
479 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
480 * doc/xml/manual/mt_allocator.xml: Likewise.
481 * doc/html/*: Regenerate.
482
483 PR libstdc++/80285
484 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
485 function to get unique fake std::type_info reference.
486 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
487 _S_ti() fake reference.
488 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
489 single implementation with or without RTTI enable.
490 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
491 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
492 allocation and deallocation counts.
493 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
494 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
495 New.
496
497 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
498
499 Bump version namespace.
500 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
501 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
502 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
503 * include/bits/c++config: Adapt.
504 * include/bits/regex.h: Adapt.
505 * include/experimental/bits/fs_fwd.h: Adapt.
506 * include/experimental/bits/lfts_config.h: Adapt.
507 * include/std/variant: Adapt.
508 * python/libstdcxx/v6/printers.py: Adapt.
509 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
510
511 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
512 _GLIBCXX_MOVE usage.
513
514 2017-05-09 Jason Merrill <jason@redhat.com>
515
516 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
517
518 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
519
520 * include/std/optional: Use a separate static_assert per condition.
521 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
522 numbers.
523
524 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
525 * doc/html/*: Regenerate.
526
527 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
528
529 PR libstdc++/69506
530 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
531
532 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
533
534 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
535 by a note-test.
536
537 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
538
539 PR libstdc++/80553
540 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
541 assertions to ensure type is destructible.
542 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
543 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
544 Move to stl_construct.h.
545 * testsuite/20_util/specialized_algorithms/memory_management_tools/
546 destroy_neg.cc: New test.
547 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
548
549 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
550 superfluous "" in dg-error.
551
552 2017-04-28 Tom de Vries <tom@codesourcery.com>
553
554 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
555 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
556
557 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
558
559 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
560 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
561 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
562 Likewise.
563
564 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
565
566 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
567 comment. Ensure first test works because allocator type propagates and
568 not because is_always_equal is true.
569 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
570 testcase that instantiates the move-assignment operator.
571
572 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
573
574 PR libstdc++/80506
575 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
576 number used in loop condition.
577
578 PR libstdc++/80504
579 * include/bits/refwrap.h (ref, cref): Qualify calls.
580 * testsuite/20_util/reference_wrapper/80504.cc: New test.
581
582 PR libstdc++/80493
583 * include/experimental/optional (optional::swap): Fix exception
584 specification.
585
586 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
587
588 PR libstdc++/80316
589 * include/std/future (_State_baseV2::_Setter::operator()): Remove
590 _S_check calls that are done after the pointer to the shared state is
591 already dereferenced.
592 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
593 as partial specialization so it can be defined within the definition
594 of _State_baseV2.
595 (_State_baseV2::__setter): Call _S_check.
596 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
597 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
598 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
599 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
600 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
601 Use new __setter overload.
602 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
603 * testsuite/30_threads/promise/members/set_exception.cc: Test
604 promise<T&> and promise<void> specializations.
605 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
606 Test for no_state error condition.
607 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
608
609 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
610 of auto_ptr.
611 * include/bits/shared_ptr.h: Likewise.
612 * include/bits/shared_ptr_base.h: Likewise.
613 * include/bits/unique_ptr.h: Likewise.
614 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
615 dg-error lineno.
616 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
617 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
618 Likewise.
619 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
620 Likewise.
621
622 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
623
624 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
625 * include/tr1/exp_integral.tcc: Increase iteration limits.
626 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
627 pr68397.cc: New test.
628 * testsuite/special_functions/14_expint/pr68397.cc: New test.
629
630 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
631
632 PR libstdc++/79862
633 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
634 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
635 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
636 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
637 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
638 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
639 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
640 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
641 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
642 define.
643
644 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
645
646 * doc/xml/manual/abi.xml: Rephrase one of the references to the
647 Itanium C++ ABI.
648 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
649 * doc/html/*: Regenerate.
650
651 * libsupc++/new: Update comment on #endif directive.
652
653 PR libstdc++/80448
654 * include/experimental/bits/fs_dir.h (directory_iterator)
655 (recursive_directory_iterator): Remove noexcept from defaulted
656 constructors.
657
658 PR libstdc++/80446
659 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
660 * libsupc++/new (launder): Likewise.
661
662 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
663
664 * include/std/functional (default_searcher, __boyer_moore_array_base)
665 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
666 (boyer_moore_horspool_searcher): Remove redundant namespace
667 qualification.
668 (default_searcher::operator()): Construct return value early and
669 advance second member in-place.
670 (boyer_moore_horspool_searcher::operator()): Increment random access
671 iterator directly instead of using std::next.
672 (boyer_moore_searcher::operator()): Fix return value.
673 * testsuite/20_util/function_objects/searchers.cc: Check both parts
674 of return values.
675
676 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
677
678 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
679 * doc/xml/manual/abi.xml. Ditto (thrice).
680
681 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
682
683 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
684 * doc/html/*: Regenerate.
685
686 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
687 that no longer fail.
688
689 * include/bits/ios_base.h: Correct comment.
690 * testsuite/util/testsuite_hooks.h: Likewise.
691
692 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
693 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
694 directories for debug, parallel and profile headers.
695 * doc/html/*: Regenerate.
696
697 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
698 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
699 (std::char_traits<char>, std::char_traits<wchar_t>): Add
700 _GLIBCXX17_CONSTEXPR on assign.
701 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
702 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
703 * testsuite/21_strings/char_traits/requirements/
704 constexpr_functions_c++17.cc: New test.
705
706 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
707
708 PR libstdc++/79141
709 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
710 (operator=(typename conditional<
711 __and_<is_copy_assignable<_T1>,
712 is_copy_assignable<_T2>>::value,
713 const pair&, const __nonesuch&>::type)): Change __nonesuch
714 to __nonesuch_no_braces.
715 (operator=(typename conditional<
716 __not_<__and_<is_copy_assignable<_T1>,
717 is_copy_assignable<_T2>>>::value,
718 const pair&, const __nonesuch&>::type)): Likewise.
719 (operator=(typename conditional<
720 __and_<is_move_assignable<_T1>,
721 is_move_assignable<_T2>>::value,
722 pair&&, __nonesuch&&>::type)): Likewise.
723 * testsuite/20_util/pair/79141.cc: New.
724
725 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
726
727 Implement std::is_aggregate.
728 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
729 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
730 New.
731 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
732 * testsuite/20_util/is_aggregate/value.cc: Likewise.
733
734 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
735
736 Adjust optional's pretty printer for LWG 2900.
737 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
738 Look at the nested payload in case of non-experimental optional.
739
740 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
741
742 Implement LWG 2900, The copy and move constructors
743 of optional are not constexpr.
744 * include/std/optional (_Optional_payload): New.
745 (_Optional_base): Remove the bool parameter.
746 (_Optional_base<_Tp, false>): Remove.
747 (_Optional_base()): Adjust.
748 (_Optional_base(nullopt_t)): Likewise.
749 (_Optional_base(in_place_t, _Args&&...)): Likewise.
750 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
751 Likewise.
752 (_Optional_base(const _Optional_base&)): Likewise.
753 (_Optional_base(_Optional_base&&)): Likewise.
754 (operator=(const _Optional_base&)): Likewise.
755 (operator=(_Optional_base&&)): Likewise.
756 (~_Optional_base()): Remove.
757 (_M_is_engaged()): Adjust.
758 (_M_get()): Likewise.
759 (_M_construct(_Args&&...)): Likewise.
760 (_M_destruct()): Likewise.
761 (_M_reset()): Likewise.
762 (_Optional_base::_Empty_byte): Remove.
763 (_Optional_base::_M_empty): Remove.
764 (_Optional_base::_M_payload): Adjust.
765 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
766 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
767
768 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
769
770 PR libstdc++/80137
771 * include/bits/random.tcc (generate_canonical): Use std::nextafter
772 or numeric_limits::epsilon() to reduce out-of-range values.
773 * testsuite/26_numerics/random/uniform_real_distribution/operators/
774 64351.cc: Verify complexity requirement is met.
775
776 * doc/xml/manual/abi.xml: Add xml:id anchor.
777 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
778 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
779 (concurrency.io.structure): Add markup.
780 * doc/html/*: Regenerate.
781
782 PR libstdc++/80229
783 * include/bits/shared_ptr_base.h
784 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
785 non-const and then use remove_cv to get unqualified type.
786 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
787 cast away constness on object created const.
788 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
789
790 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
791
792 PR libstdc++/80183
793 * include/bits/stl_tree.h:
794 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
795
796 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
797
798 * testsuite/23_containers/array/tuple_interface/
799 tuple_element_debug_neg.cc: Adjust dg-error.
800 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
801 define a valid strict weak ordering.
802 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
803 Debug Mode, due to debug checks making extra copies of predicate.
804 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
805 Likewise.
806
807 * doc/xml/faq.xml: Add link.
808 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
809 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
810 * doc/xml/manual/io.xml: Update broken link.
811 * doc/html/*: Regenerate.
812
813 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
814
815 Implement LWG 2686, Why is std::hash specialized for error_code,
816 but not error_condition?
817 * include/std/system_error (hash<error_condition>): Define for C++17.
818 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
819 Instantiate test for error_condition.
820 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
821 (hash<error_condition>): Instantiate hash<error_condition>.
822
823 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
824 * include/bits/regex_constants.h (All std::regex_constants constants):
825 Add _GLIBCXX17_INLINE as per P0607R0.
826 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
827 Likewise.
828 * include/bits/stl_pair.h (piecewise_construct): Likewise.
829 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
830 (__is_uses_allocator_constructible_v)
831 (__is_nothrow_uses_allocator_constructible_v): Likewise.
832 * include/std/chrono (treat_as_floating_point_v): Likewise.
833 * include/std/functional (is_bind_expression_v, is_placeholder_v):
834 Likewise.
835 * include/std/optional (nullopt): Likewise.
836 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
837 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
838 * include/std/system_error (is_error_code_enum_v)
839 (is_error_condition_enum_v): Likewise.
840 * include/std/tuple (tuple_size_v, ignore): Likewise.
841 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
842 constexpr as per LWG 2933.
843 * include/std/type_traits (All variable templates): Add
844 _GLIBCXX17_INLINE as per P0607R0.
845 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
846 (__tuple_count_v, __exactly_once): Likewise.
847 * testsuite/18_support/headers/new/synopsis.cc
848 (hardware_destructive_interference_size)
849 (hardware_constructive_interference_size): Likewise for commented-out
850 variables.
851 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
852 test function for constexpr std::ignore (LWG 2773).
853 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
854 test for LWG 2933.
855
856 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
857
858 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
859 guides for C++17.
860 * include/bits/std_function.h (function): Likewise.
861 * include/bits/stl_pair.h (pair): Likewise.
862 * include/debug/array (__gnu_debug::array): Likewise.
863 * include/std/array (array): Likewise.
864 * include/std/functional (make_default_searcher)
865 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
866 Remove generator functions.
867 * include/std/tuple (tuple): Add deduction guides.
868 * include/std/valarray (valarray): Likewise.
869 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
870 class template argument deduction instead of generator functions.
871 * testsuite/20_util/function/cons/deduction.cc: New test.
872 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
873 * testsuite/20_util/optional/cons/deduction.cc: ... here.
874 * testsuite/20_util/pair/cons/deduction.cc: New test.
875 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
876 * testsuite/20_util/tuple/cons/deduction.cc: New test.
877 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
878 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
879 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
880 * testsuite/23_containers/array/cons/deduction.cc: New test.
881 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
882 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
883 Adjust dg-error.
884 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
885 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
886 Likewise.
887 * testsuite/26_numerics/valarray/deduction.cc: New test.
888 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
889 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
890 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
891
892 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
893
894 * include/bits/stl_deque.h (deque): Access allocator value_type only if
895 concept checks are enabled.
896 * include/bits/stl_stack.h (stack): Likewise.
897 * include/bits/stl_vector.h (vector): Likewise.
898 * include/bits/stl_list.h (list): Likewise and check
899 _SGIAssignableConcept only in C++03.
900 * include/bits/stl_map.h (map): Likewise.
901 * include/bits/stl_set.h (set): Likewise.
902 * include/bits/stl_multimap.h (multimap): Likewise.
903 * include/bits/stl_multiset.h (multiset): Likewise.
904 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
905
906 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
907
908 * doc/xml/manual/appendix_contributing.xml: Convert link to
909 ansi.org to https.
910 Update link to the C++ standard at ansi.org.
911
912 * doc/xml/faq.xml: Remove information redundant with the above;
913 instead add a reference.
914
915 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
916
917 * src/c++11/codecvt.cc (range): Add non-type template parameter and
918 define oerloaded operators for reading and writing code units.
919 (range<Elem, false>): Define partial specialization for accessing
920 wide characters in potentially unaligned byte ranges.
921 (ucs2_span(const char16_t*, const char16_t*, ...))
922 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
923 to range<const char16_t, false> in order to avoid unaligned reads.
924 (__codecvt_utf16_base<char16_t>::do_out)
925 (__codecvt_utf16_base<char32_t>::do_out)
926 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
927 unaligned data to avoid unaligned writes.
928 (__codecvt_utf16_base<char16_t>::do_in)
929 (__codecvt_utf16_base<char32_t>::do_in)
930 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
931 error if there are unprocessable trailing bytes.
932 (__codecvt_utf16_base<char16_t>::do_length)
933 (__codecvt_utf16_base<char32_t>::do_length)
934 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
935 range<const char16_t, false> to span functions.
936 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
937
938 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
939
940 PR libstdc++/79980
941 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
942
943 PR libstdc++/80041
944 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
945 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
946 char16_t to work with UTF-16 instead of UTF-8.
947 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
948
949 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
950 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
951 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
952 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
953 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
954 (__codecvt_utf8_utf16_base<char32_t>)
955 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
956 do_max_length() return values.
957 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
958 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
959 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
960
961 PR libstdc++/79980
962 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
963 error path.
964 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
965 for manipulating codecvt_mode values.
966 (read_utf16_bom): Compare input to BOM constants instead of integral
967 constants that depend on endianness. Take mode parameter by
968 reference and adjust it, to distinguish between no BOM present and
969 UTF-16BE BOM present.
970 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
971 (surrogates): New enumeration type.
972 (utf16_in, utf16_out): Add surrogates parameter to choose between
973 UTF-16 and UCS2 behaviour.
974 (utf16_span, ucs2_span): Use std::min not std::max.
975 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
976 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
977 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
978 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
979
980 PR libstdc++/79511
981 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
982 as a surrogate pair.
983 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
984 for internal representation.
985 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
986 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
987
988 PR libstdc++/80064
989 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
990 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
991 invalid instantiations using function types for _Compare argument.
992 * testsuite/25_algorithms/make_heap/80064.cc: New test.
993
994 PR libstdc++/67440
995 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
996 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
997
998 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
999
1000 Implement LWG 2857, {variant,optional,any}::emplace should
1001 return the constructed value.
1002 * include/std/any (emplace(_Args&&...)): Change the return type and
1003 return a reference to the constructed value.
1004 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1005 * include/std/optional (emplace(_Args&&...)): Likewise.
1006 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1007 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
1008 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
1009 (emplace<_Np>(_Args&&...)): Likewise.
1010 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
1011 * testsuite/20_util/any/assign/emplace.cc: Add tests for
1012 checking the return value of emplace.
1013 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
1014 * testsuite/20_util/optional/assignment/6.cc: Add tests for
1015 checking the return value of emplace.
1016 * testsuite/20_util/variant/run.cc: Likewise.
1017
1018 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1019
1020 PR libstdc++/62045
1021 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
1022 (is_heap): Remove.
1023 (push_heap): Remove the wrong checking using is_heap.
1024 (make_heap): Remove the assertion using is_heap.
1025 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
1026 (modify): Ditto.
1027 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
1028 calling make_heap.
1029
1030 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1031
1032 PR libstdc++/62045
1033 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1034 New test.
1035 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
1036 error in comment.
1037
1038 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1039
1040 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
1041 comment.
1042 * config.h.in: Regenerate.
1043 * configure: Regenerate.
1044 * doc/Makefile.in: Regenerate.
1045
1046 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
1047
1048 PR libstdc++/79162
1049 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1050 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
1051 with a constrained template.
1052 [!_GLIBCXX_USE_CXX11_ABI]
1053 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
1054 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
1055 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
1056
1057 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1058
1059 PR libstdc++/80034
1060 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
1061 in the catch-block.
1062 (merge(list&&, _StrictWeakOrdering)): Likewise.
1063 * testsuite/23_containers/list/operations/80034.cc: New.
1064
1065 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1066
1067 Implement LWG 2806, Base class of bad_optional_access.
1068 * include/std/optional (bad_optional_access):
1069 Derive from std::exception.
1070 (bad_optional_access::bad_optional_access): Adjust.
1071 (bad_optional_access::what): New.
1072 (__throw_bad_optional_access(const char*)):
1073 Remove the parameter and adjust calls.
1074 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1075 * testsuite/20_util/optional/typedefs.cc: Likewise.
1076
1077 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
1078
1079 Implement LWG 2934, optional<const T> doesn't compare with T.
1080 * include/std/optional
1081 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
1082 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
1083 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
1084 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
1085 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
1086 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
1087 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
1088 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
1089 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
1090 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
1091 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
1092 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
1093 (operator==(const optional<_Tp>&, const _Tp&)):
1094 Turn into operator==(const optional<_Tp>&, const _Up&).
1095 (operator==(const _Tp&, const optional<_Tp>&)):
1096 Turn into operator==(const _Up&, const optional<_Tp>&).
1097 (operator!=(const optional<_Tp>&, const _Tp&)):
1098 Turn into operator!=(const optional<_Tp>&, const _Up&).
1099 (operator!=(const _Tp&, const optional<_Tp>&)):
1100 Turn into operator!=(const _Up&, const optional<_Tp>&).
1101 (operator<(const optional<_Tp>&, const _Tp&)):
1102 Turn into operator<(const optional<_Tp>&, const _Up&).
1103 (operator<(const _Tp&, const optional<_Tp>&)):
1104 Turn into operator<(const _Up&, const optional<_Tp>&).
1105 (operator>(const optional<_Tp>&, const _Tp&)):
1106 Turn into operator>(const optional<_Tp>&, const _Up&).
1107 (operator>(const _Tp&, const optional<_Tp>&)):
1108 Turn into operator>(const _Up&, const optional<_Tp>&).
1109 (operator<=(const optional<_Tp>&, const _Tp&)):
1110 Turn into operator<=(const optional<_Tp>&, const _Up&).
1111 (operator<=(const _Tp&, const optional<_Tp>&)):
1112 Turn into operator<=(const _Up&, const optional<_Tp>&).
1113 (operator>=(const optional<_Tp>&, const _Tp&)):
1114 Turn into operator>=(const optional<_Tp>&, const _Up&).
1115 (operator>=(const _Tp&, const optional<_Tp>&)):
1116 Turn into operator>=(const _Up&, const optional<_Tp>&).
1117 * testsuite/20_util/optional/relops/7.cc: New.
1118
1119 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
1120
1121 * testsuite/17_intro/names.cc: Undefine macros that clash with
1122 identifiers in AIX system headers.
1123
1124 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
1125 result_of, and __is_nothrow_invocable instead of
1126 __is_nothrow_callable.
1127 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
1128 instead of __is_callable.
1129 * include/std/functional (invoke): use invoke_result_t instead of
1130 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
1131 (_Not_fn): Use __invoke_result instead of result_of.
1132 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
1133 Remove partial specializations for reference_wrapper types.
1134 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
1135 (__invoke_result): Define replacement for result_of and then use it to
1136 define result_of.
1137 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
1138 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
1139 respectively.
1140 (invoke_result, invoke_result_t): Define for C++17.
1141 (is_callable, is_nothrow_callable): Replace with is_invocable,
1142 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
1143 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
1144 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
1145 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
1146 instead of is_nothrow_callable_v.
1147 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
1148 main function.
1149 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
1150 instead of is_callable.
1151 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
1152 to use new traits.
1153 * testsuite/20_util/is_nothrow_callable/*: Likewise.
1154 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
1155 is_callable.
1156 * testsuite/20_util/variant/hash.cc: Likewise.
1157
1158 2017-03-10 George Lander <george.lander@arm.com>
1159
1160 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
1161 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
1162 * configure: Regenerate.
1163
1164 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
1165
1166 * include/std/functional (_Not_fn): Define macro to simplify
1167 repetitive function definitions.
1168
1169 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
1170 * include/c_global/cstddef (std::byte): Define for C++17.
1171 * testsuite/18_support/byte/global_neg.cc: New test.
1172 * testsuite/18_support/byte/ops.cc: New test.
1173 * testsuite/18_support/byte/requirements.cc: New test.
1174
1175 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
1176
1177 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
1178 * doc/html/*: Regenerate.
1179 * include/std/mutex (scoped_lock): Implement new C++17 template.
1180 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
1181 * testsuite/30_threads/scoped_lock/requirements/
1182 explicit_instantiation.cc: New test.
1183 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
1184
1185 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
1186 François Dumont <frs.dumont@gmail.com>
1187 Jonathan Wakely <jwakely@redhat.com>
1188
1189 * doc/xml/manual/debug_mode.xml: Update and simplify note
1190 on link- and run-time coexistence.
1191
1192 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
1193
1194 * testsuite/17_intro/headers/names.cc: Rename to ...
1195 * testsuite/17_intro/names.cc: ... here.
1196
1197 PR libstdc++/79789
1198 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
1199 parameters and local variables.
1200 * include/bits/ios_base.h (make_error_code, make_error_condition):
1201 Likewise.
1202 * include/bits/list.tcc (list::sort): Likewise.
1203 * include/bits/mask_array.h (mask_array): Likewise.
1204 * include/bits/regex.h (regex_token_iterator): Likewise.
1205 * include/bits/slice_array.h (slice_array): Likewise.
1206 * include/bits/stl_algo.h (__sample): Likewise.
1207 * include/std/memory (undeclare_no_pointers): Likewise.
1208 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
1209 Likewise.
1210 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
1211 * testsuite/17_intro/headers/names.cc: New test.
1212
1213 PR libstdc++/79798
1214 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
1215 result_of that loses top-level cv-qualifiers.
1216 * testsuite/20_util/bind/79798.cc: New test.
1217
1218 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
1219
1220 * doc/xml/manual/documentation_hacking.xml: Tweak link to
1221 doxygen.org.
1222
1223 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
1224
1225 * include/experimental/iterator: Include <iterator>.
1226 * testsuite/experimental/iterator/requirements.cc: Check for contents
1227 of <iterator>.
1228
1229 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
1230
1231 C++17 GB50 resolution
1232 * include/std/chrono (duration::operator++()): Add
1233 _GLIBCXX17_CONSTEXPR.
1234 (duration::operator++(int)): Likewise.
1235 (duration::operator--()): Likewise.
1236 (duration::operator--(int)): Likewise.
1237 (duration::operator+=(const duration&)): Likewise.
1238 (duration::operator-=(const duration&)): Likewise.
1239 (duration::operator*=(const rep&)): Likewise.
1240 (duration::operator/=(const rep&)): Likewise.
1241 (duration::operator%=(const rep&)): Likewise.
1242 (duration::operator%=(const duration&)): Likewise.
1243 (time_point::operator+=(const duration&)): Likewise.
1244 (time_point::operator-=(const duration&)): Likewise.
1245 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
1246 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
1247 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
1248
1249 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
1250
1251 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
1252
1253 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1254
1255 * doc/xml/manual/io.xml: Update link to groups.google.com.
1256 Tweak link description.
1257
1258 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1259
1260 * doc/xml/manual/profile_mode.xml: Fix link.
1261
1262 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
1263
1264 * doc/xml/manual/policy_data_structures.xml: Simplify and
1265 standardize references to boost.org.
1266 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
1267 * doc/xml/manual/shared_ptr.xml: Ditto.
1268
1269 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
1270
1271 PR libstdc++/60936
1272 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
1273 written to buffer, not length remaining in buffer.
1274
1275 2017-02-15 Tim Shen <timshen@google.com>
1276
1277 PR libstdc++/78723
1278 * include/std/variant (operator<(), operator>(), operator<=(),
1279 operator>=(), operator==(), operator!=()): Implement P0393R3.
1280 * testsuite/20_util/variant/compile.cc: Adjust tests.
1281 * testsuite/20_util/variant/run.cc: Adjust tests.
1282
1283 2017-02-15 Tim Shen <timshen@google.com>
1284
1285 PR libstdc++/79513
1286 * include/std/variant (visit()): Forward variant types to the return
1287 type detection code.
1288 * testsuite/20_util/variant/compile.cc: Add test cases.
1289
1290 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 PR libstdc++/79348
1293 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1294
1295 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1296
1297 PR libstdc++/79348
1298 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1299 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1300 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1301 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1302 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1303 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1304 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1305 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1306 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1307
1308 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
1309
1310 PR libstdc++/79486
1311 * include/std/future (__future_base::_Task_state::_M_run)
1312 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1313 result_of expressions.
1314 * testsuite/30_threads/packaged_task/79486.cc: New.
1315
1316 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
1317
1318 PR libstdc++/79467
1319 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1320 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1321 __is_callable check.
1322 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1323
1324 * include/bits/atomic_base.h: Re-indent.
1325
1326 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1327
1328 * doc/xml/manual/profile_mode.xml: Update a paper reference.
1329
1330 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1331
1332 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1333
1334 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
1335
1336 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1337 name.
1338 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1339 broken links to texts that are no longer online.
1340 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1341 LCPC 2006 paper.
1342 * doc/xml/manual/using.xml: Update links to memory model information.
1343 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1344 Standard-Library Exception Safety".
1345 * doc/html/*: Regenerate.
1346
1347 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1348
1349 * doc/xml/manual/profile_mode.xml: Unbreak link to
1350 "Optimizing Sorting with Machine Learning Algorithms".
1351
1352 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1353
1354 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1355
1356 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1357
1358 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1359 Migration Guide".
1360
1361 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1362
1363 * doc/html/ext/lwg-active.html: Remove.
1364 * doc/html/ext/lwg-closed.html: Ditto.
1365 * doc/html/ext/lwg-defects.html: Ditto.
1366
1367 * doc/Makefile.am (xml_extradir): Remove.
1368 (xml_extra): Ditto.
1369 (stamp-html-docbook-lwg): Remove recipe...
1370 (stamp-html-docbook-data): ...and its use here.
1371 * doc/Makefile.in: Regenerate.
1372
1373 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1374 the relationship to the upstream working group.
1375 Replace a local link to ../ext/lwg-active.html by the upstream one.
1376 Replace all reference to ../ext/lwg-defects.html by a new entity
1377 &DR; which refers to the upstream address.
1378
1379 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1380
1381 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1382
1383 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1384
1385 PR libstdc++/79323
1386 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1387 at -O0.
1388
1389 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1390
1391 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1392 DocBook Element Reference. Use that term as link description
1393 instead of "online".
1394 epubcheck has moved to GitHub.
1395 Remove obsolete link to DocBook Publishing Tools.
1396
1397 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1398
1399 PR libstdc++/66145
1400 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1401 so new ios::failure can be caught even when old ABI is the default.
1402 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1403 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1404 exceptions_failbit.cc: Likewise.
1405 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1406 exceptions_failbit.cc: Likewise.
1407 * testsuite/27_io/basic_istream/extractors_other/char/
1408 exceptions_null.cc: Likewise.
1409 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1410 exceptions_null.cc: Likewise.
1411 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1412 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1413 * testsuite/27_io/basic_ostream/inserters_other/char/
1414 exceptions_null.cc: Likewise.
1415 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1416 exceptions_null.cc: Likewise.
1417 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1418
1419 PR libstdc++/60936
1420 * src/c++11/Makefile.am: Add new files.
1421 * src/c++11/Makefile.in: Regenerate.
1422 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1423 (operator<<, operator>>, getline): Move explicit instantiations to ...
1424 * src/c++11/cow-string-io-inst.cc: ... new file.
1425 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1426 (operator<<, operator>>, getline): Move explicit instantiations to ...
1427 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1428 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1429 (__throw_future_error, __throw_bad_function_call):
1430 (__throw_regex_error): Move functions for C++11 exceptions to the
1431 files that define the exception types.
1432 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1433 * src/c++11/future.cc (__throw_future_error): Likewise.
1434 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1435 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1436 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1437 representation directly instead of calling __int_to_char.
1438 * src/c++11/sso_string.cc (__sso_string): New file for definition
1439 of __sso_string type.
1440 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1441 explicit instantiations of narrow string I/O functions.
1442 * src/c++11/system_error.cc (__throw_system_error): Move here.
1443 (__sso_string): Move to new file.
1444 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1445 explicit instantiations of wide string I/O functions.
1446 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1447 (operator>>, getline): Remove explicit instantiations from here.
1448
1449 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1450
1451 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1452
1453 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1454
1455 * configure.host: Separate Solaris/SPARC and x86 baselines.
1456 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1457 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1458 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1459 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1460 ... here.
1461 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1462 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1463 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1464 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1465 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1466 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1467 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1468 ... here.
1469 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1470 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1471 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1472
1473 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1474 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1475 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1476 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1477 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1478 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1479
1480 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1481
1482 PR libstdc++/78346
1483 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1484 not its referent.
1485 (_Iter_comp_to_iter): Likewise.
1486 * testsuite/25_algorithms/search/78346.cc: New test.
1487
1488 PR libstdc++/79254
1489 * config/abi/pre/gnu.ver: Remove recently added symbols.
1490 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1491 (basic_string::_M_copy_assign): Remove.
1492 (basic_string::operator=(const basic_string&)): Don't dispatch to
1493 _M_copy_assign. If source object is small just deallocate, otherwise
1494 perform new allocation before making any changes.
1495 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1496 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1497 Remove.
1498 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1499 Test cases where the allocators are equal or the string is small.
1500 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1501 Likewise.
1502
1503 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1504
1505 Implement LWG 2825, LWG 2756 breaks class template argument
1506 deduction for optional.
1507 * include/std/optional: Add a deduction guide.
1508 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1509
1510 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1511
1512 PR libstdc++/79254
1513 * config/abi/pre/gnu.ver: Add new symbols.
1514 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1515 (basic_string::_M_copy_assign): New overloaded functions to perform
1516 copy assignment.
1517 (basic_string::operator=(const basic_string&)): Dispatch to
1518 _M_copy_assign.
1519 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1520 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1521 Define, performing rollback on exception.
1522 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1523 Test exception-safety guarantee.
1524 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1525 Likewise.
1526 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1527 std::swap visible.
1528
1529 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1530
1531 PR libstdc++/70607
1532 * include/tr1/complex (conj): Remove using-declaration and restore
1533 overloads, reverting previous change.
1534
1535 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1536 mode.
1537 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1538 Mark as unsupported in C++98 mode.
1539 * testsuite/23_containers/queue/requirements/constructible.cc:
1540 Likewise.
1541 * testsuite/23_containers/stack/requirements/constructible.cc:
1542 Likewise.
1543 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1544
1545 PR libstdc++/79243
1546 * include/bits/c++config (literals::string_view_literals::__7): Add.
1547 Only declare versioned namespaces for the relevant C++ dialects.
1548 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1549 Add versioning macros.
1550 * include/experimental/bits/lfts_config.h:
1551 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1552 * include/experimental/string_view (fundamentals_v2::__detail):
1553 Add versioning macros.
1554 (fundamentals_v2::__detail::__identity): Remove.
1555 (fundamentals_v2::__detail::__idt): Use common_type instead of
1556 __detail::__identity.
1557 * include/std/string_view (__detail::__identity, __detail::__idt):
1558 Likewise.
1559 (literals::string_view_literals): Fix nesting of versioning macros.
1560
1561 PR libstdc++/79190
1562 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1563 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1564 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1565 Retrieve original pointer value allocated by malloc.
1566 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1567 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1568 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1569 Define, adjusting pointer value allocated by malloc and storing for
1570 retrieval by operator delete.
1571
1572 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1573
1574 * libsupc++/eh_atomics.h: Update copyright years.
1575 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1576
1577 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1578
1579 PR libstdc++/61791
1580 PR libstdc++/70607
1581 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1582 (proj(T), conj(T)): Change return types per DR 1522.
1583 * include/tr1/complex (conj): Remove overloads and use std::conj.
1584 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1585 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1586 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1587 real(T) and imag(T). Allow testing for C++11 too.
1588
1589 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1590
1591 PR libstdc++/79206
1592 * include/experimental/string_view (operator==): Check sizes first.
1593 * include/std/string_view (operator==): Likewise.
1594
1595 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1596
1597 * testsuite/experimental/array/make_array.cc: Restore <functional>
1598 inclusion.
1599
1600 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
1601
1602 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
1603
1604 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1605
1606 PR libstdc++/79195
1607 * include/experimental/array (__make_array_elem): New class template
1608 and partial specialization.
1609 (__is_reference_wrapper): Move into __make_array_elem specialization.
1610 (make_array): Use __make_array_elem to determine element type and move
1611 static assertion into specialization. Qualify std::forward call.
1612 (to_array): Add exception specifiation.
1613 * testsuite/experimental/array/make_array.cc: Test argument types
1614 without a common type.
1615 * testsuite/experimental/array/neg.cc: Adjust expected error message.
1616
1617 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1618
1619 * doc/xml/manual/debug.xml: code.google.com uses https now.
1620
1621 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
1622
1623 * doc/xml/manual/test.xml: Fix link into gccint online manual.
1624
1625 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1626
1627 Make poisoned hashes SFINAE away the call operator of the hash.
1628 * include/bits/functional_hash.h
1629 (__poison_hash::__enable_hash_call): New.
1630 * include/std/optional (__optional_hash_call_base): New.
1631 (hash<optional<_Tp>>): Derive from the new base,
1632 move the hash function into that base.
1633 * include/std/variant (__variant_hash_call_base_impl): New.
1634 (__variant_hash_call_base): Likewise.
1635 (hash<variant<_Types...>>): Derive from the new base,
1636 move the hash function into that base.
1637 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
1638 * testsuite/20_util/variant/hash.cc: Likewise.
1639
1640 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
1641
1642 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
1643 * configure: Regenerate.
1644
1645 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
1646
1647 PR libstdc++/69240
1648 * include/bits/random.h (uniform_real_distribution::param_type)
1649 (normal_distribution::param_type, lognormal_distribution::param_type)
1650 (gamma_distribution::param_type, chi_squared_distribution::param_type)
1651 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
1652 (student_t_distribution::param_type)
1653 (bernoulli_distribution::param_type, binomial_distribution::param_type)
1654 (geometric_distribution::param_type)
1655 (negative_binomial_distribution::param_type)
1656 (poisson_distribution::param_type)
1657 (exponential_distribution::param_type)
1658 (weibull_distribution::param_type)
1659 (extreme_value_distribution::param_type)
1660 (discrete_distribution::param_type)
1661 (piecewise_constant_distribution::param_type)
1662 (piecewise_linear_distribution::param_type): Define operator!=.
1663 * include/bits/uniform_int_dist.h
1664 (uniform_int_distribution::param_type): Likewise.
1665 * include/ext/random (beta_distribution::param_type)
1666 (rice_distribution::param_type, nakagami_distribution::param_type)
1667 (pareto_distribution::param_type, k_distribution::param_type)
1668 (arcsine_distribution::param_type, hoyt_distribution::param_type)
1669 (triangular_distribution::param_type)
1670 (von_mises_distribution::param_type)
1671 (hypergeometric_distribution::param_type)
1672 (logistic_distribution::param_type)
1673 (uniform_on_sphere_distribution::param_type)
1674 (uniform_inside_sphere_distribution::param_type): Likewise.
1675 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
1676 Test construction with param_type.
1677 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
1678 Likewise.
1679 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1680 Likewise.
1681 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
1682 Likewise.
1683 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1684 Likewise.
1685 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1686 parms.cc: Likewise.
1687 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
1688 Likewise.
1689 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
1690 Likewise.
1691 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
1692 Likewise.
1693 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
1694 Likewise.
1695 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
1696 parms.cc: Likewise.
1697 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1698 Likewise.
1699 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
1700 Likewise.
1701 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1702 Likewise.
1703 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
1704 Likewise.
1705 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
1706 Likewise.
1707 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
1708 Likewise.
1709 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
1710 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
1711 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
1712 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
1713 Likewise.
1714 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
1715 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
1716 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
1717 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1718 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
1719 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
1720 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
1721 Likewise.
1722 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
1723 parms.cc: Likewise.
1724 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
1725
1726 PR libstdc++/72792
1727 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
1728 (__allocator_traits_base::__size_type): Remove.
1729 (allocator_traits::_Ptr): New class template to detect const and void
1730 pointer types without instantiating pointer_traits::rebind
1731 unnecessarily.
1732 (allocator_traits::_Diff): Likewise for detecting difference_type.
1733 (allocator_traits::_Size): New class template to detect size_type
1734 without instantiating make_unsigned unnecessarily.
1735 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
1736 __detected_or_t instead of __detected_or_t_.
1737 * include/std/type_traits (__detected_or_t_): Remove.
1738 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
1739
1740 PR libstdc++/72792
1741 PR libstdc++/72793
1742 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
1743 Replace with class template using void_t.
1744 (__alloc_rebind): Define in terms of
1745 __allocator_traits_base::__rebind.
1746 (allocator_traits): Remove unconditional static_assert for
1747 rebind_alloc.
1748 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
1749 (pointer_traits::__rebind): Replace with class template using void_t.
1750 (pointer_traits::rebind): Define in terms of __rebind.
1751 (pointer_traits): Remove unconditional static_assert for rebind.
1752 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
1753 * testsuite/20_util/pointer_traits/rebind.cc: New test.
1754
1755 PR libstdc++/69321
1756 * include/experimental/any (__any_caster): Avoid instantiating
1757 manager function for types that can't be stored in any.
1758 * include/std/any (__any_caster): Likewise.
1759 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
1760 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
1761
1762 PR libstdc++/64903
1763 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
1764 std::advance.
1765
1766 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
1767
1768 PR libstdc++/79156
1769 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
1770 Fix return type.
1771 (__enable_shared_from_this): Declare __shared_ptr as a friend.
1772 * testsuite/ext/shared_ptr/1.cc: New test.
1773
1774 PR libstdc++/64903
1775 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
1776 point.
1777 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
1778
1779 * doc/xml/manual/abi.xml: Fix typo.
1780 * doc/html/manual/abi.html: Likewise.
1781
1782 PR libstdc++/67085
1783 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
1784 converting constructors from _Iter_less_iter.
1785 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
1786 _Iter_comp_iter.
1787 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
1788 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
1789 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
1790 (__make_heap, __sort_heap): Change _Compare parameters to references.
1791 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
1792 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
1793 functions as lvalues.
1794 (is_heap): Call __is_heap_until directly to avoid copying __comp.
1795 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
1796 count copies during construction with empty sequence.
1797
1798 PR libstdc++/67085
1799 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
1800 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
1801 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
1802 number of copies.
1803 * testsuite/25_algorithms/make_heap/movable.cc: New test.
1804
1805 PR libstdc++/67085
1806 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
1807 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
1808 _GLIBCXX_MOVE when passing comparison function to other functions.
1809 (is_heap_until, is_heap): Use std::move when passing comparison
1810 function.
1811 * testsuite/23_containers/priority_queue/67085.cc: New test.
1812
1813 PR libstdc++/78905
1814 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
1815 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
1816 Document that the deprecated _GLIBCXX_VERSION macro was removed for
1817 the 4.0.0 release.
1818 * doc/html/*: Regenerate.
1819 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
1820 * include/Makefile.in: Regenerate.
1821 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
1822 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
1823 dg-error.
1824
1825 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
1826
1827 PR libstdc++/69301
1828 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
1829 aligned buffer instead of default-initialized variable.
1830 * testsuite/29_atomics/atomic/69301.cc: New test.
1831 * include/experimental/memory (observer_ptr::release): Use reserved
1832 name.
1833 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
1834 (_Pointer_adapter::operator--(int)): Likewise.
1835
1836 PR libstdc++/68925
1837 * include/experimental/random (randint): Use temporary instead of
1838 thread_local static.
1839
1840 2017-01-17 Joshua Conner <joshconner@google.com>
1841
1842 * crossconfig.m4: Add fuchsia OS.
1843 * configure: Regenerate.
1844
1845 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
1846
1847 PR libstdc++/69699
1848 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
1849 __GLIBCXX__ macro is not useful. Remove redundant date information
1850 and link to the GCC release timeline.
1851 (abi.versioning.active): Move partial sentence into the previous
1852 paragraph.
1853 * doc/html/*: Regenerate.
1854
1855 PR libstdc++/79114
1856 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
1857 of remove_reference.
1858 * testsuite/18_support/nested_exception/79114.cc: New test.
1859
1860 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1861
1862 PR other/79046
1863 * configure.ac: Add GCC_BASE_VER.
1864 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1865 get version from BASE-VER file.
1866 * po/Makefile.in: Regenerated.
1867 * libsupc++/Makefile.in: Regenerated.
1868 * testsuite/Makefile.in: Regenerated.
1869 * src/Makefile.in: Regenerated.
1870 * configure: Regenerated.
1871 * Makefile.in: Regenerated.
1872 * include/Makefile.in: Regenerated.
1873 * doc/Makefile.in: Regenerated.
1874 * python/Makefile.in: Regenerated.
1875 * src/c++11/Makefile.in: Regenerated.
1876 * src/c++98/Makefile.in: Regenerated.
1877 * src/filesystem/Makefile.in: Regenerated.
1878
1879 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
1880
1881 PR libstdc++/66145
1882 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
1883 exceptions.
1884 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
1885 for test, so new ios::failure can be caught.
1886 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1887 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1888 exceptions_failbit.cc: Likewise.
1889 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1890 exceptions_failbit.cc: Likewise.
1891 * testsuite/27_io/basic_istream/extractors_other/char/
1892 exceptions_null.cc: Likewise.
1893 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1894 exceptions_null.cc: Likewise.
1895 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1896 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1897 * testsuite/27_io/basic_ostream/inserters_other/char/
1898 exceptions_null.cc: Likewise.
1899 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1900 exceptions_null.cc: Likewise.
1901 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1902
1903 PR libstdc++/78702
1904 * include/bits/locale_classes.h (locale::facet::__shim): Change from
1905 private to protected.
1906 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
1907 make locale::facet::__shim accessible.
1908
1909 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
1910
1911 PR libstdc++/78389
1912 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
1913 (merge(list&&, _StrictWeakOrdering)): Likewise.
1914 * testsuite/23_containers/list/operations/78389.cc: Add
1915 better test for the sizes.
1916
1917 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
1918
1919 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
1920 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
1921 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
1922 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1923 Likewise.
1924 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1925 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
1926 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
1927 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
1928 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
1929 Likewise.
1930 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
1931 Likewise.
1932 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
1933 Likewise.
1934 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
1935 Likewise.
1936 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1937 Likewise.
1938 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1939 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1940 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1941 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1942 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1943 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1944 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1945 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1946 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1947 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1948 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1949 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1950 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1951
1952 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1953
1954 PR libstdc++/65411
1955 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1956 retry fclose on EINTR.
1957
1958 * include/profile/base.h: Remove unused header that leads to header
1959 cycle in C++17 mode.
1960
1961 PR libstdc++/79075
1962 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1963 Make _If_sv private.
1964 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1965 basic_string_view arguments.
1966
1967 PR libstdc++/79075
1968 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1969 redundant option from cxxflags.
1970 (check_effective_target_cxx11-abi): Define.
1971 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1972 effective target.
1973 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1974 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1975 Likewise.
1976 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1977 Likewise.
1978 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1979 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1980 Likewise.
1981 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1982 Likewise.
1983 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1984 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1985 Likewise.
1986 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1987 Likewise.
1988 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1989 Likewise.
1990 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1991 Likewise.
1992 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1993 Likewise.
1994 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1995 Likewise.
1996 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1997 Likewise.
1998 * testsuite/23_containers/list/61347.cc: Likewise.
1999 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
2000 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
2001
2002 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
2003
2004 PR libstdc++/78389
2005 * include/bits/list.tcc (merge(list&&)):
2006 Adjust list sizes if the comparator throws.
2007 (merge(list&&, _StrictWeakOrdering)): Likewise.
2008 (sort()): Splice elements back from the scratch buffers
2009 if the comparator throws.
2010 (sort(_StrictWeakOrdering)): Likewise.
2011 * testsuite/23_containers/list/operations/78389.cc: New.
2012
2013 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
2014
2015 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
2016 XFAIL for C++17 until node reinsertion supports fancy pointers.
2017
2018 PR libstdc++/78361
2019 * testsuite/20_util/add_pointer/value.cc: Test forming function
2020 pointers.
2021
2022 2017-01-13 Michael Brune <lucdanton@free.fr>
2023
2024 PR libstdc++/78361
2025 * include/std/type_traits (__is_referenceable): Handle noexcept
2026 function types.
2027
2028 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
2029
2030 PR libstdc++/77528
2031 * include/bits/stl_queue.h (queue, priority_queue): Remove default
2032 member-initializers and define default constructors as templates with
2033 constraints.
2034 * include/bits/stl_stack.h (stack): Likewise.
2035 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
2036 New.
2037 * testsuite/23_containers/priority_queue/requirements/
2038 explicit_instantiation/1.cc: Test more instantiations.
2039 * testsuite/23_containers/priority_queue/requirements/
2040 explicit_instantiation/1_c++98.cc: Likewise.
2041 * testsuite/23_containers/queue/requirements/constructible.cc: New.
2042 * testsuite/23_containers/stack/requirements/constructible.cc: New.
2043
2044 PR libstdc++/66284
2045 * doc/xml/manual/intro.xml: Document LWG 2781 change.
2046 * doc/html/*: Regenerate.
2047 * include/std/functional (_Function_base::_Ref_manager): Remove.
2048 (_Function_handler): Remove partial specializations for
2049 reference_wrapper.
2050 (function::target): Remove special case for const qualification.
2051 * testsuite/20_util/function/6.cc: Adjust tests for target type.
2052 * testsuite/20_util/function/7.cc: Likewise.
2053 * testsuite/20_util/function/8.cc: Likewise.
2054
2055 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
2056
2057 PR libstdc++/78134
2058 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
2059 (map::equal_range): Fix return type of heterogeneous overloads.
2060 * include/bits/stl_multimap.h (multimap::lower_bound)
2061 (multimap::upper_bound, multimap::equal_range): Likewise.
2062 * include/bits/stl_multiset.h (multiset::lower_bound)
2063 (multiset::upper_bound, multiset::equal_range): Likewise.
2064 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
2065 (set::equal_range): Likewise.
2066 * testsuite/23_containers/map/operations/2.cc
2067 * testsuite/23_containers/multimap/operations/2.cc
2068 * testsuite/23_containers/multiset/operations/2.cc
2069 * testsuite/23_containers/set/operations/2.cc
2070
2071 PR libstdc++/78273
2072 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
2073 the heterogeneous comparison can only find one match.
2074 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
2075 * testsuite/23_containers/map/operations/2.cc: Test count works with
2076 comparison function that just partitions rather than sorting.
2077 * testsuite/23_containers/set/operations/2.cc: Likewise.
2078
2079 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
2080
2081 Reduce the size of variant, it doesn't need an index of
2082 type size_t internally.
2083 * include/std/variant (parse_numbers.h): New include.
2084 (__select_index): New.
2085 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
2086 _index_type for comparison with variant_npos.
2087 (_Variant_storage<false, _Types...>::__index_type): New.
2088 (_Variant_storage<false, _Types...>::_M_index): Change the
2089 type from size_t to __index_type.
2090 (_Variant_storage<true, _Types...>::__index_type): New.
2091 (_Variant_storage<true, _Types...>::_M_index): Change the
2092 type from size_t to __index_type.
2093 (_Variant_base::_M_valid): Use _Storage::__index_type
2094 for comparison with variant_npos.
2095 (variant::index): Use _Base::_Storage::__index_type
2096 for comparison with variant_npos.
2097 * testsuite/20_util/variant/index_type.cc: New.
2098
2099 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
2100
2101 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
2102 effective target selector to prevent running in C++17 mode.
2103
2104 PR libstdc++/77528
2105 * include/bits/stl_queue.h (queue::c): Add default member initializer.
2106 (queue::queue()): Add constructor and define as defaulted.
2107 (queue::queue(_Sequence&&)): Remove default argument.
2108 (priority_queue::c, priority_queue::comp): Add default member
2109 initializers.
2110 (priority_queue::priority_queue()): Add constructor and define as
2111 defaulted.
2112 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
2113 Remove default argument for first parameter.
2114 * include/bits/stl_stack.h (stack::c): Add default member initializer.
2115 (stack::stack()): Add constructor and define as defaulted.
2116 (stack::stack(const _Sequence&)): Remove default argument.
2117 * testsuite/23_containers/priority_queue/requirements/
2118 explicit_instantiation/1.cc: Test explicit instantiation with
2119 non-DefaultConstructible sequence.
2120 * testsuite/23_containers/priority_queue/77528.cc: New test.
2121 * testsuite/23_containers/priority_queue/requirements/
2122 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
2123 * testsuite/23_containers/queue/77528.cc: New test.
2124 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2125 1.cc: Test explicit instantiation with non-DefaultConstructible
2126 sequence.
2127 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2128 1_c++0x.cc: Replace with 1_c++98.cc.
2129 * testsuite/23_containers/stack/77528.cc: New test.
2130 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2131 1.cc: Test explicit instantiation with non-DefaultConstructible
2132 sequence.
2133 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2134 1_c++0x.cc: Replace with 1_c++98.cc.
2135
2136 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
2137
2138 * include/bits/locale_facets_nonio.tcc
2139 (time_get::_M_extract_via_format): Avoid compilation errors with
2140 non-standard struct tm.
2141
2142 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
2143 Jonathan Wakely <jwakely@redhat.com>
2144
2145 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
2146 (is_specialization, strip_versioned_namespace): New helpers functions
2147 to work with symbols in the versioned namespace.
2148 (Printer.add_version): Add second name using versioned namespace.
2149 (add_one_template_type_printer, add_one_type_printer): Add second
2150 type printers using versioned namespace.
2151 (register_type_printers): Add template type printer for basic_string.
2152 (build_libstdcxx_dictionary): Remove dead code.
2153 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
2154 versioned namespace.
2155 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
2156 results.
2157 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2158
2159 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2160
2161 PR libstdc++/79017
2162 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
2163 functions separately on darwin and if they're missing define
2164 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
2165 * config.h.in: Regenerate.
2166 * configure: Regenerate.
2167 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
2168 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
2169
2170 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
2171 to detect correct thread_local destructors.
2172 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
2173 Define.
2174
2175 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2176 Aditya Kumar <hiraditya@msn.com>
2177
2178 PR libstdc++/66414
2179 * include/bits/basic_string.tcc
2180 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
2181
2182 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2183
2184 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
2185 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
2186
2187 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
2188 Include <cassert> header.
2189
2190 PR libstdc++/78968
2191 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
2192 * configure: Regenerate.
2193
2194 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
2195 Jonathan Wakely <jwakely@redhat.com>
2196
2197 * include/std/variant (variant, swap): Replace __and_ usage with fold
2198 expressions.
2199
2200 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2201
2202 PR go/78978
2203 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
2204 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
2205 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
2206 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
2207 HWCAP_FLAGS.
2208 * aclocal.m4: Regenerate.
2209 * configure: Regenerate.
2210 * Makefile.in, doc/Makefile.in, include/Makefile.in,
2211 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
2212 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
2213 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
2214
2215 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2216
2217 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
2218
2219 PR libstdc++/78991
2220 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
2221 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
2222 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
2223 move function objects.
2224 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
2225 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
2226 * testsuite/25_algorithms/sort/78991.cc: New test.
2227
2228 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
2229
2230 * include/bits/std_function.h (function::_Signature_type): Remove.
2231 (function::function(_Functor)): Adjust.
2232
2233 2017-01-05 Tim Shen <timshen@google.com>
2234
2235 PR libstdc++/78996
2236 * include/std/variant (__gen_vtable_impl): rename __unused to
2237 __dimensions to avoid naming conflict.
2238
2239 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
2240
2241 PR libstdc++/78968
2242 * config.h.in: Regenerate.
2243 * configure: Likewise.
2244 * configure.ac: Check for __cxa_thread_atexit.
2245 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
2246 Don't define __cxa_thread_atexit if libc provides it.
2247
2248 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
2249
2250 Implement 2801, Default-constructibility of unique_ptr.
2251 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
2252 (unique_ptr::_DeleterConstraint): Likewise.
2253 (unique_ptr()): Constrain.
2254 (unique_ptr(pointer)): Likewise.
2255 (unique_ptr(nullptr_t)): Likewise.
2256 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
2257 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
2258 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
2259 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
2260 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
2261 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
2262 * testsuite/20_util/unique_ptr/cons/default.cc: New.
2263 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
2264
2265 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
2266 Jonathan Wakely <jwakely@redhat.com>
2267
2268 PR libstdc++/64735
2269 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
2270 * config.h.in: Regenerate.
2271 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
2272 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
2273 exports for exception_ptr, nested_exception, and future conditional.
2274 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
2275 exports for exception_ptr, nested_exception, and future conditional.
2276 * configure: Regenerate.
2277 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
2278 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
2279 * libsupc++/eh_atomics.h: New file for internal use only.
2280 (__eh_atomic_inc, __eh_atomic_dec): New.
2281 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
2282 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2283 (rethrow_exception): Use eh_atomics.h reference counting helpers.
2284 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2285 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2286 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2287 * libsupc++/exception_ptr.h: Likewise.
2288 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2289 * libsupc++/nested_exception.cc: Remove check for
2290 ATOMIC_INT_LOCK_FREE.
2291 * libsupc++/nested_exception.h: Likewise.
2292 * src/c++11/future.cc: Likewise.
2293 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2294 * testsuite/18_support/nested_exception/*: Likewise.
2295 * testsuite/30_threads/async/*: Likewise.
2296 * testsuite/30_threads/future/*: Likewise.
2297 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2298 * testsuite/30_threads/packaged_task/*: Likewise.
2299 * testsuite/30_threads/promise/*: Likewise.
2300 * testsuite/30_threads/shared_future/*: Likewise.
2301
2302 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2303
2304 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2305 defaults to https; adjust reference.
2306
2307 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
2308
2309 PR libstdc++/78956
2310 * include/std/thread (thread(const thread&&)): Add deleted
2311 constructor.
2312 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2313
2314 * doc/xml/manual/spine.xml: Update copyright years.
2315 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2316 * doc/xml/manual/test.xml: Likewise.
2317 * doc/html/*: Regenerate.
2318
2319 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
2320
2321 * doc/xml/faq.xml: Update address of C++ ABI link.
2322 * doc/xml/manual/abi.xml: Ditto.
2323
2324 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2325
2326 Update copyright years.
2327 \f
2328 Copyright (C) 2017 Free Software Foundation, Inc.
2329
2330 Copying and distribution of this file, with or without modification,
2331 are permitted in any medium without royalty provided the copyright
2332 notice and this notice are preserved.