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