1 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
3 * doc/html/ext/lwg-active.html: Update to R93.
4 * doc/html/ext/lwg-closed.html: Likewise.
5 * doc/html/ext/lwg-defects.html: Likewise.
6 * doc/html/manual/*: Regenerate.
7 * doc/xml/manual/intro.xml: Document status of several DRs.
9 2015-06-02 Renlin Li <renlin.li@arm.com>
11 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
13 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
15 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
18 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
21 * include/bits/stl_algobase.h (__fill_a): Check length before calling
24 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
26 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
27 instead of checking for null pointers.
28 (__lexicographical_compare<true>::__lc): Only check shorter length.
30 2015-05-29 François Dumont fdumont@gcc.gnu.org>
32 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
33 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
34 * include/debug/assertions.h: ...here, new.
35 * include/debug/formatter.h
36 (_Error_formatter::_Is_iterator_value_type): New.
37 (_Error_formatter::_Is_instance): New.
38 (_Error_formatter::_Parameter): Make public and not friend anymore.
39 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
40 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
42 (_Error_formatter::_Parameter::_Type): New.
43 (_Error_formatter::_Parameter::_Instance): New, inherit from
45 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
46 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
47 overloads take iterator through a const reference.
48 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
50 (_Parameter(const _Type&, const char*, _Is_instance)): New.
51 (_Error_formatter::_M_print_type): Delete.
52 (_Error_formatter::_M_iterator_value_type): New.
53 (_Error_formatter::_M_instance): New.
54 * include/Makefile.am: Add new above debug file.
55 * include/Makefile.in: Regenerate.
56 * include/debug/functions.h
57 (__check_dereferenceable(const _Safe_iterator<>&),
58 __valid_range(const _Safe_iterator<>&),
59 __is_safe_random_iterator<_Safe_iterator<>>): Move...
60 * include/debug/safe_iterator.h: ... here.
61 Replace debug.h include with assertions.h.
62 (__check_singular_aux): Move...
63 * include/debug/safe_base.h: ... here.
64 * include/debug/functions.h
65 (__check_dereferenceable(const _Safe_local_iterator<>&),
66 __valid_range(const _Safe_local_iterator<>&): Move...
67 * include/debug/safe_local_iterator.h: ...here.
68 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
69 Remove _Safe_iterator declaration.
70 * include/debug/safe_unordered_container.h: Replace debug.h with
72 * include/debug/array: Replace safe_sequence.h include with
73 formatter.h and macros.h.
74 * include/debug/deque: Include functions.tcc.
75 * include/debug/forward_list: Likewise.
76 * include/debug/list: Likewise.
77 * include/debug/string: Likewise.
78 * include/debug/vector: Likewise.
79 * include/bits/unique_ptr.h: Replace debug.h include with new
81 * include/bits/stl_iterator_base_funcs.h: Likewise.
82 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
83 Adjust dg-error line number.
84 * testsuite/23_containers/array/tuple_interface/
85 tuple_element_debug_neg.cc: Likewise.
86 * src/c++11/debug.cc: Adapt.
88 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
90 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
91 * doc/html/manual/*: Regenerate.
93 * include/std/future (__async_result_of): New alias template.
94 (async): Use __async_result_of to pass decayed types to result_of.
95 * testsuite/30_threads/async/lwg2021.cc: New.
96 * doc/xml/manual/intro.xml: Document LWG 2021 status.
99 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
100 memcmp with null pointers.
101 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
104 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
107 * include/profile/array (array::data): Use _S_ptr.
108 * include/debug/array (array::data): Likewise.
111 * include/std/array (__array_traits::_S_ptr): New function.
112 (array::data): Use _S_ptr to avoid creating invalid reference.
113 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
114 dg-error line numbers.
115 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
118 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
120 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
121 instead of downcasting.
122 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
123 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
124 (_Rb_tree::_S_iter): Remove.
125 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
126 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
127 instead of _S_lower_bound_tr
128 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
129 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
130 instead of calling _S_lower_bound_tr.
131 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
132 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
133 instead of calling _S_upper_bound_tr.
134 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
135 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
136 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
137 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
138 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
139 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
140 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
141 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
144 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
145 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
147 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
148 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
149 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
150 alignment of _Tp as a member subobject, not as a complete object.
151 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
152 _Link_type manually as it might not be in the debug info.
154 2015-05-26 Doug Evans <dje@google.com>
156 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
158 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
161 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
163 * include/bits/locale_conv.h: Fix copyright years.
164 * include/bits/quoted_string.h: Likewise.
165 * src/filesystem/Makefile.am: Likewise.
166 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
167 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
169 * testsuite/22_locale/conversions/string/1.cc: Likewise.
170 * testsuite/22_locale/conversions/string/2.cc: Likewise.
171 * testsuite/22_locale/conversions/string/3.cc: Likewise.
172 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
174 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
176 * testsuite/util/testsuite_fs.h: Likewise.
178 2015-05-23 François Dumont fdumont@gcc.gnu.org>
181 * include/debug/functions.h (__check_sorted_aux): Cast expression to
184 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
187 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
188 Don't use isync. Use lwsync if available.
189 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
190 powerpc cpu definition.
192 2015-05-21 Jason Merrill <jason@redhat.com>
194 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
195 * libsupc++/del_op.cc: Likewise.
197 2015-05-20 François Dumont fdumont@gcc.gnu.org>
199 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
201 (_Error_formatter::_M_print_type): New.
203 (_Error_formatter::_Parameter::_M_print_field): Use latter.
204 (_Error_formatter::_M_print_type): Implement latter using
205 __cxaabiv1::__cxa_demangle to print demangled type name.
207 * include/bits/cpp_type_traits.h
208 (std::move_iterator): Delete declaration.
209 (std::__is_move_iterator<move_iterator>): Move partial specialization...
210 * include/bits/stl_iterator.h: ... here.
211 (std::__miter_base): Overloads for std::reverse_iterator and
213 * include/bits/stl_algobase.h (std::__miter_base): Provide default
216 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
218 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
221 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
222 overload for pointers.
223 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
224 808590.cc: Add -std=gnu++03 switch.
225 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
226 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
227 * testsuite/23_containers/vector/modifiers/push_back/
228 strong_guarantee.cc: New.
230 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
232 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
233 (operator==(const list&, const list&)): If size() is O(1) compare
234 sizes before comparing each element.
235 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
236 (list::resize): Use _M_resize_pos.
238 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
240 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
242 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
243 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
244 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
246 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
248 * configure.host: Define cpu_defines_dir for ARM.
249 * config/cpu/arm/cpu_defines.h: New file.
251 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
253 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
254 missing constructors.
255 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
257 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
258 missing constructors.
259 * include/debug/unordered_set (unordered_set, unordered_multiset):
261 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
262 missing constructors.
263 * include/profile/unordered_set (unordered_set, unordered_multiset):
266 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
268 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
269 use throughout the file.
270 (make_file_type): New function.
271 (file_size(const path&, error_code&)): Report an error for anything
272 that isn't a regular file.
273 (status(const path&), symlink_status(const path&)): Do not throw for
274 file_type::not_found.
275 (temp_directory_path()): Check additional environment variables.
276 * testsuite/experimental/filesystem/operations/exists.cc: New.
277 * testsuite/experimental/filesystem/operations/file_size.cc: New.
278 * testsuite/experimental/filesystem/operations/status.cc: New.
279 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
282 2015-05-14 Nathan Myers <ncm@cantrip.org>
283 Jonathan Wakely <jwakely@redhat.com>
286 * include/std/unordered_map (unordered_map, unordered_multimap): Add
287 missing constructors.
288 * include/std/unordered_set (unordered_set, unordered_multiset):
290 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
291 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
292 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
293 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
295 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
298 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
300 * config.h.in: Regenerate.
301 * configure: Regenerate.
302 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
303 not return after copying contents. Use fchmod, fchmodat, and sendfile
305 (current_path, permissions, space): Use errno not return value.
308 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
310 * config.h.in: Regenerate.
311 * configure: Regenerate.
312 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
314 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
316 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
317 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
318 * config.h.in: Regenerate.
319 * configure: Likewise.
320 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
321 __USING_SJLJ_EXCEPTIONS__.
322 * libsupc++/eh_throw.cc: Likewise.
323 * libsupc++/eh_ptr.cc: Likewise.
324 * doc/html/manual/appendix_porting.html: Remove
325 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
326 * doc/xml/manual/build_hacking.xml: Likewise.
327 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
328 * doc/xml/manual/configure.xml: Likewise.
330 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
332 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
333 for nullptr (LWG 2415).
334 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
335 construction from empty unique_ptr.
336 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
337 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
339 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
341 * testsuite/20_util/raw_storage_iterator/base.cc: New.
343 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
344 Remove explicit (LWG 2407).
346 * include/bits/basic_string.h (basic_string::basic_string()): Make
347 noexcept conditional on allocator (LWG 2455).
349 * include/std/complex (polar): Check for negative rho (LWG 2459).
351 * include/experimental/tuple (apply): Handle pointers to member (LWG
353 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
354 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
355 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
357 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
359 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
360 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
361 * testsuite/23_containers/forward_list/allocator/minimal.cc:
363 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
364 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
365 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
366 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
367 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
369 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
371 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
373 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
375 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
377 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
378 * configure: Regenerate.
380 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
382 * Makefile.in: Regenerated with automake-1.11.6.
383 * aclocal.m4: Likewise.
384 * configure: Likewise.
385 * doc/Makefile.in: Likewise.
386 * include/Makefile.in: Likewise.
387 * libsupc++/Makefile.in: Likewise.
388 * po/Makefile.in: Likewise.
389 * python/Makefile.in: Likewise.
390 * src/Makefile.in: Likewise.
391 * src/c++11/Makefile.in: Likewise.
392 * src/c++98/Makefile.in: Likewise.
393 * src/filesystem/Makefile.in: Likewise.
394 * testsuite/Makefile.in: Likewise.
396 2015-05-09 Jason Merrill <jason@redhat.com>
398 * testsuite/20_util/headers/functional/synopsis.cc: Add
399 _GLIBCXX14_CONSTEXPR.
400 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
402 2015-05-08 Jason Merrill <jason@redhat.com>
404 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
405 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
406 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
407 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
408 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
409 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
410 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
411 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
412 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
413 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
414 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
416 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
417 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
418 Adjust expected errors.
419 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
421 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
423 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
425 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
427 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
429 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
431 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
433 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
435 * testsuite/23_containers/vector/requirements/dr438
436 /constructor_1_neg.cc: Likewise.
437 * testsuite/23_containers/vector/requirements/dr438
438 /constructor_2_neg.cc: Likewise.
439 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
441 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
442 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
443 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
444 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
445 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
447 * testsuite/ext/array_allocator/check_deallocate_null.cc:
449 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
450 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
451 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
452 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
454 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
456 * testsuite/tr1/2_general_utilities/shared_ptr/assign
457 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
458 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
459 Add -std=c++98 -fno-show-column.
460 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
462 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
464 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
465 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
467 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
468 * src/c++98/Makefile.in: Regenerate.
469 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
470 * src/Makefile.in: Regenerate.
472 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
475 * include/std/future (async): Change default policy to launch::async.
477 * include/experimental/any (any::_Storage): Fix alignment of buffer.
478 (any::_Internal): Check alignment of type.
479 * testsuite/experimental/any/cons/aligned.cc: New.
480 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
482 * include/experimental/iterator (ostream_joiner): Simplify by using
483 the injected-class-name and the ostream_type typedef.
485 * include/experimental/iterator: New. Define ostream_joiner.
486 * include/Makefile.am: Add new header.
487 * include/Makefile.in: Regenerate.
488 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
489 * testsuite/experimental/iterator/ostream_joiner.cc: New.
490 * testsuite/experimental/iterator/requirements.cc: New.
491 * doc/xml/manual/status_cxx2017.xml: Update status.
492 * doc/html/manual/status.html: Regenerate.
494 * include/experimental/numeric: New. Define gcd and lcm.
495 * include/Makefile.am: Add new header.
496 * include/Makefile.in: Regenerate.
497 * testsuite/experimental/numeric/gcd.cc: New.
498 * testsuite/experimental/numeric/lcm.cc: New.
499 * doc/xml/manual/status_cxx2017.xml: Update status.
500 * doc/html/manual/status.html: Regenerate.
502 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
504 Revert addition of feature macros from other headers per latest SD-6.
505 * include/experimental/deque: Remove feature-test macro.
506 * include/experimental/forward_list: Ditto.
507 * include/experimental/list: Ditto.
508 * include/experimental/map: Ditto.
509 * include/experimental/set: Ditto.
510 * include/experimental/string: Ditto.
511 * include/experimental/unordered_map: Ditto.
512 * include/experimental/unordered_set: Ditto.
514 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
516 * include/experimental/any (any::_Storage): Make non-copyable.
517 (any::any): Do not copy _Storage object.
518 (any::operator=): Implement more efficiently than swapping.
519 (any::swap): Use new _Op_xfer operation.
520 (any::_Op::_Op_xfer): New enumerator.
521 (_Manager_internal::_S_alloc): Remove unused function.
522 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
523 parameter instead of returning a _Storage object.
524 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
525 _Op_xfer operation for moving and swapping.
526 * testsuite/experimental/any/cons/nontrivial.cc: New.
527 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
529 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
531 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
535 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
536 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
537 and fix tests for forward_as_tuple and tie.
539 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
540 Set timespec members explicitly instead of with a braced-init-list.
541 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
543 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
545 * include/experimental/deque: Add feature-test macro.
546 * include/experimental/forward_list: Ditto.
547 * include/experimental/list: Ditto.
548 * include/experimental/map: Ditto.
549 * include/experimental/set: Ditto.
550 * include/experimental/string: Ditto.
551 * include/experimental/unordered_map: Ditto.
552 * include/experimental/unordered_set: Ditto.
554 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
556 * include/experimental/memory: Correct feature-test macro.
558 * include/experimental/memory: Add feature-test macro.
559 * include/experimental/vector: Likewise.
560 * doc/xml/manual/status_cxx2017.xml: Update status.
561 * doc/html/manual/status.html: Regenerate.
563 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
565 Implement observer_ptr.
566 * include/Makefile.am: Add new header.
567 * include/Makefile.in: Regenerate.
568 * include/experimental/memory: New.
569 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
570 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
571 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
572 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
573 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
574 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
575 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
576 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
578 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
580 * src/filesystem/path.cc (path::compare): Do not copy strings.
582 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
584 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
585 * configure: Regenerate.
586 * config.h.in: Regenerate.
587 * configure.ac: Check for utime.h
588 * include/experimental/fs_path.h (path::string<>)
589 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
590 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
591 closedir, dirent, readdir_r): Replace dummy functions with #error.
592 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
593 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
594 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
595 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
596 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
599 * include/experimental/fs_path.h (path::_List): Use vector instead of
601 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
602 * src/filesystem/path.cc: Use std::prev instead of decrementing
603 rvalues. Fix whitespace.
604 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
605 Do not decrement iterators before begin.
607 * include/experimental/fs_dir.h: Fix use of non-reserved names.
608 * include/experimental/fs_ops.h: Likewise.
609 * include/experimental/fs_path.h: Likewise.
610 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
611 C++11 when checking for support.
613 * include/bits/locale_classes.h (locale::facet): Delete copy
614 operations in C++11 mode.
616 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
618 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
619 * configure: Regenerate.
621 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
623 Inline one-line erasure dispatch functions.
624 * include/experimental/forward_list (erase_if(), erase()): Inline.
625 * include/experimental/list (erase_if(), erase()): Inline.
626 * include/experimental/map (erase_if(*)): Inline.
627 * include/experimental/set (erase_if(*)): Inline.
628 * include/experimental/string (erase_if(), erase()): Inline.
629 * include/experimental/unordered_map (erase_if(*)): Inline.
630 * include/experimental/unordered_set (erase_if(*)): Inline.
632 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
634 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
635 * doc/xml/manual/status_cxx2011.xml: Update status tables.
636 * doc/xml/manual/status_cxx2014.xml: Likewise.
637 * doc/xml/manual/status_cxx2017.xml: New.
638 * doc/xml/manual/using.xml: Fix typo.
639 * doc/html/*: Regenerate.
641 * include/std/memory (pointer_safety, declare_reachable,
642 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
643 get_pointer_safety): Define.
644 * testsuite/20_util/pointer_safety/1.cc: New.
646 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
648 Implement N4100 File System TS
649 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
650 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
651 * config.h.in: Regenerate.
652 * configure: Regenerate.
653 * configure.ac: Enable filesystem TS and check its dependencies.
654 * include/Makefile.am: Add new headers.
655 * include/Makefile.in: Regenerate.
656 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
657 __str_codecvt_out): Move code conversion logic from wstring_convert
658 into new global functions.
659 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
661 (wstring_convert::_M_conv): Remove.
662 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
663 * include/experimental/filesystem: New.
664 * include/experimental/fs_dir.h: New.
665 * include/experimental/fs_fwd.h: New.
666 * include/experimental/fs_ops.h: New.
667 * include/experimental/fs_path.h: New.
668 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
669 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
670 * src/Makefile.am (SUBDIRS): Add filesystem.
671 * src/Makefile.in: Regenerate.
672 * src/filesystem/Makefile.am: New.
673 * src/filesystem/Makefile.in: New.
674 * src/filesystem/dir.cc: New.
675 * src/filesystem/ops.cc: New.
676 * src/filesystem/path.cc: New.
677 * testsuite/experimental/filesystem/operations/absolute.cc: New.
678 * testsuite/experimental/filesystem/operations/copy.cc: New.
679 * testsuite/experimental/filesystem/operations/current_path.cc: New.
680 * testsuite/experimental/filesystem/path/append/path.cc: New.
681 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
682 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
683 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
684 * testsuite/experimental/filesystem/path/compare/path.cc: New.
685 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
686 * testsuite/experimental/filesystem/path/concat/path.cc: New.
687 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
688 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
689 * testsuite/experimental/filesystem/path/construct/default.cc: New.
690 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
691 * testsuite/experimental/filesystem/path/construct/range.cc: New.
692 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
693 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
694 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
696 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
698 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
700 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
702 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
704 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
705 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
707 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
708 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
709 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
711 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
713 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
715 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
717 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
718 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
719 * testsuite/experimental/filesystem/path/query/empty.cc: New.
720 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
721 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
722 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
724 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
726 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
728 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
730 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
732 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
733 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
734 * testsuite/util/testsuite_fs.h: New.
736 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
738 Add fundamentals TR container erasure.
739 * include/Makefile.am: Add new headers.
740 * include/Makefile.in: Add new headers.
741 * include/experimental/array: New.
742 * include/experimental/deque: New.
743 * include/experimental/erase_if.tcc: New.
744 * include/experimental/forward_list: New.
745 * include/experimental/list: New.
746 * include/experimental/map: New.
747 * include/experimental/set: New.
748 * include/experimental/string: New.
749 * include/experimental/unordered_map: New.
750 * include/experimental/unordered_set: New.
751 * include/experimental/vector: New.
752 * testsuite/experimental/deque/erasure.cc: New.
753 * testsuite/experimental/forward_list/erasure.cc: New.
754 * testsuite/experimental/list/erasure.cc: New.
755 * testsuite/experimental/map/erasure.cc: New.
756 * testsuite/experimental/set/erasure.cc: New.
757 * testsuite/experimental/string/erasure.cc: New.
758 * testsuite/experimental/unordered_map/erasure.cc: New.
759 * testsuite/experimental/unordered_set/erasure.cc: New.
760 * testsuite/experimental/vector/erasure.cc: New.
762 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
764 * include/bits/cpp_type_traits.h
765 (__gnu_cxx::__is_normal_iterator): Delete.
766 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
767 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
768 (std::__niter_base): Overloads for std::reverse_iterator,
769 __gnu_cxx::__normal_iterator and std::move_iterator.
771 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
773 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
775 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
776 Remove usage of latter and compute size of the prime numbers array
779 2015-04-29 Doug Evans <dje@google.com>
782 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
783 Replace all lookups of "bool" with this.
784 (get_std_size_type): New function. Replace all lookups of std::size_t
786 (*Worker): New method get_result_type.
787 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
788 (ListWorkerBase.__init__): New arg val_type. All callers updated.
789 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
790 Delete setting of name, enabled.
791 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
792 updated. Delete setting of name.
793 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
794 libstdc++ xmethod matchers.
795 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
796 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
797 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
798 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
799 * testsuite/libstdc++-xmethods/list.cc: Ditto.
800 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
801 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
803 2015-04-29 Doug Evans <dje@google.com>
805 Use consistent naming for value type attributes.
806 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
808 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
809 (ArrayFrontWorker, ArrayBackWorker): Ditto.
810 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
811 (DequeWorkerBase): Rename elemtype to val_type.
812 (ForwardListWorkerBase): Rename _elem_type to _val_type.
813 (ForwardListFrontWorker): Ditto. And rename elem_address to
815 (ForwardListMethodsMatcher): Rename elem_type to val_type.
816 (VectorWorkerBase): Rename _elemtype to _val_type.
818 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
821 * include/std/functional (__check_func_return_type): Use is_same to
822 avoid using _is_convertible on incomplete types.
823 * testsuite/20_util/function/65760.cc: New.
826 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
828 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
829 time_get::_M_extract_num, time_get::_M_extract_name,
830 time_get::_M_extract_wday_or_month): Likewise.
831 * include/bits/stl_algo.h (__includes, __replace_copy_if,
832 __is_sorted_until, __is_permutation, transform): Likewise.
833 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
834 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
835 * include/bits/stl_numeric.h (inner_product): Likewise.
836 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
837 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
838 input_iterator_wrapper): Declare unusable comma operator.
839 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
840 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
843 2015-04-28 Doug Evans <dje@google.com>
845 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
848 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
850 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
853 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
855 * Makefile.am (SUBDIRS): Move python to hosted_source.
856 * Makefile.in: Regenerate.
857 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
858 * configure: Regenerate.
860 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
863 * include/std/limits (numeric_limits): Add missing unsigned.
865 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
867 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
869 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
872 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
873 Handle enumeration types larger than sizeof(long).
874 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
876 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
877 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
879 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
880 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
882 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
885 * include/bits/forward_list.h (forward_list::splice_after): Add
887 * include/bits/forward_list.tcc (forward_list::splice_after):
891 * include/bits/random.h (seed_seq) Define copy constructor and copy
892 assignment as deleted.
893 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
895 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
896 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
897 Use -std=gnu++1z. Check feature-test macro.
899 * include/std/type_traits (void_t): Add.
900 * testsuite/20_util/void_t/1.cc: New.
902 2015-04-28 Tim Shen <timshen@google.com>
904 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
905 * include/bits/regex_automaton.tcc: Throw exception when parsing
906 back-reference with flag __polynomial.
907 * include/bits/regex_constants.h: Add extension flag
908 syntax_option_type __polynomial.
909 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
910 Alternative operation will be fixed in the coming refactoring.
911 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
912 loose match_search_debug to use DFS only.
914 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
917 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
918 Make the generated test program fail gracefully if the target
919 doesn't support passing command-line arguments.
921 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
922 Jonathan Wakely <jwakely@redhat.com>
924 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
925 Return false or zero if the library is built without exceptions.
926 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
927 the library is built without exceptions.
929 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
931 * config/abi/pre/gnu.ver: Fix comment.
933 Add support for std::uncaught_exceptions.
934 * acinclude.m4: Bump libtool_VERSION.
935 * config/abi/pre/gnu.ver: Export the new symbol.
936 * configure: Regenerate.
937 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
938 * libsupc++/exception (uncaught_exceptions): New.
939 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
940 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
942 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
943 Michael Hanselmann <public@hansmi.ch>
946 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
948 * testsuite/18_support/exception_ptr/62258.cc: New.
950 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
952 * doc/xml/manual/extensions.xml: Add cross-reference.
953 * doc/html/manual/ext_compile_checks.html: Regenerate.
955 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
957 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
958 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
960 2015-04-22 Renlin Li <renlin.li@arm.com>
962 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
963 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
964 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
965 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
966 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
968 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
970 * doc/xml/manual/configure.xml: Update descriptions of options
971 affecting dual ABI and add cross-references.
972 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
973 * doc/xml/manual/using.xml: Document ABI transition.
974 * doc/html/*: Regenerate.
976 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
977 * doc/xml/manual/using.xml: Document newer -std options. Use better
978 examples of nested namespaces.
980 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
982 * doc/xml/manual/concurrency_extensions.xml: Update documentation
984 * doc/xml/manual/using.xml: Likewise. Improve markup.
985 * doc/html/*: Regenerate.
987 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
989 * scripts/extract_symvers.pl: Ignore elfdump error output.
991 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
994 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
995 _List_const_iterator): Declare.
996 (__distance): Declare new overloads for _List_iterator and
997 _List_const_iterator.
998 * include/bits/stl_list.h (__distance): New overloads for
999 _List_iterator and _List_const_iterator.
1000 * testsuite/23_containers/list/61347.cc: New testcase.
1002 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
1004 * doc/xml/manual/evolution.xml: Fix typos.
1005 * doc/html/manual/api.html: Regenerate.
1007 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
1009 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
1010 alignment is larger-equal, not equal, to default alignment.
1012 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
1015 * config/abi/pre/gnu.ver: Export base object constructors for
1017 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1018 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1019 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1020 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1021 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1022 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1023 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1024 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1025 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
1026 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1027 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1028 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1029 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1030 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1031 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1032 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1033 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1034 * testsuite/27_io/basic_fstream/cons/base.cc: New.
1036 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
1038 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
1039 * doc/html/*: Regenerate.
1041 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
1043 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1045 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
1047 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1049 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1051 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
1053 * doc/xml/manual/test.xml: Improve documentation on running a subset
1055 * doc/html/manual/test.html: Regenerate.
1057 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1059 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1060 for GCC 5.1 release.
1061 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
1064 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
1066 * include/std/shared_mutex (shared_timed_mutex): Add comments to
1067 explain the logic in the non-pthread_rwlock_t version.
1068 (_Mutex): Remove redundant type.
1069 (_M_n_readers): Rename to _S_max_readers.
1070 (_M_write_entered, _M_readers): New convenience functions.
1071 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
1072 functions. Use predicates with condition variables. Simplify bitwise
1074 (try_lock_for, try_shared_lock_for): Convert duration to time_point
1075 and call try_lock_until or try_shared_lock_until respectively.
1076 (try_lock_until, try_shared_lock_until): Wait on the condition
1077 variables until the specified time passes.
1078 (unlock): Add Debug Mode assertion.
1079 (unlock_shared): Add Debug Mode assertion.
1080 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
1082 * include/std/shared_mutex (shared_timed_mutex): Only use
1083 pthread_rwlock_t when the POSIX Timeouts option is supported.
1084 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
1085 dg-require-gthreads-timed.
1086 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1087 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1088 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1090 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
1092 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1094 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
1095 Richard Henderson <rth@redhat.com>
1098 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
1100 * include/std/atomic (atomic): For types with a power of two size set
1101 alignment to at least the size.
1102 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1103 * testsuite/29_atomics/atomic/65147.cc: New.
1104 * testsuite/29_atomics/atomic_integral/65147.cc: New.
1106 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1108 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1109 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1110 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1112 2015-04-07 Jakub Jelinek <jakub@redhat.com>
1114 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1115 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1116 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1117 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1118 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1119 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1120 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1121 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1123 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
1126 * config/abi/pre/gnu.ver: Export operator+ for new strings.
1127 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
1128 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
1130 2015-03-28 Tim Shen <timshen@google.com>
1133 * include/bits/regex_constants.h: Use constexpr variables for flags.
1134 * testsuite/28_regex/constants/constexpr.cc: New testcase.
1136 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
1139 * include/std/chrono: Add using-directive for literals to std::chrono.
1140 * testsuite/20_util/duration/literals/65499.cc: New.
1142 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
1146 * include/std/thread (this_thread::sleep_for): Check for negative
1148 (this_thread::sleep_until): Check for times in the past.
1149 * testsuite/30_threads/this_thread/58038.cc: New.
1150 * testsuite/30_threads/this_thread/60421.cc: New.
1152 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
1156 * include/std/atomic (atomic<T>): Increase alignment for types with
1157 the same size as one of the integral types.
1158 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1159 * testsuite/29_atomics/atomic/62259.cc: New.
1161 2015-03-26 Richard Henderson <rth@redhat.com>
1164 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
1165 a fake pointer indicating type alignment.
1166 (__atomic_base<T *>::is_lock_free): Likewise.
1167 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
1169 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
1172 * testsuite/21_strings/basic_string/pthread33394.cc: Use
1173 dg-additional-options.
1175 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
1178 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
1180 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
1182 * testsuite/27_io/rvalue_streams-2.cc: New.
1184 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
1187 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
1189 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
1192 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
1193 * configure: Regenerate.
1194 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
1195 system_category): Use macros for versioned namespace.
1196 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
1198 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
1200 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
1201 test for unused for ARM.
1202 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
1203 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
1205 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
1207 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
1208 * include/ext/codecvt_specializations.h (encoding_state,
1209 encoding_char_traits): Remove abi-tag and use inline namespace.
1210 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
1212 2015-03-19 Jason Merrill <jason@redhat.com>
1214 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
1215 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
1217 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
1220 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
1221 get_catalogs): Add abi-tag.
1222 * include/ext/codecvt_specializations.h (encoding_state,
1223 encoding_char_traits): Likewise.
1224 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
1225 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
1226 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
1227 money_get_shim, money_put_shim, messages_shim): Likewise.
1228 * src/c++11/future.cc (future_error_category::message): Likewise.
1229 * src/c++11/system_error.cc (generic_error_category::message,
1230 system_error_category::message): Likewise.
1231 (__sso_string): Disable -Wabi-tag warnings.
1233 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
1236 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
1237 implementation for old glibc. Fix whitespace.
1239 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
1240 Torvald Riegel <triegel@redhat.com>
1242 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
1243 * config.h.in: Regenerate.
1244 * configure: Regenerate.
1245 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
1246 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
1247 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
1248 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
1251 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
1253 * libsupc++/nested_exception.h: Do not try to derive from final
1255 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
1258 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
1259 unused exception variable.
1260 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1261 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
1263 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
1265 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
1267 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
1268 * configure: Regenerate.
1270 * include/experimental/system_error: Fix include guard.
1272 2015-03-12 Renlin Li <renlin.li@arm.com>
1274 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
1277 2015-03-10 Tim Shen <timshen@google.com>
1280 * include/bits/regex.h (match_results<>::size,
1281 match_results<>::position, match_results<>::str,
1282 match_results<>::operator[], match_results<>::prefix,
1283 match_results<>::suffix, match_results<>::end,
1284 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
1285 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
1286 global __unmatched_sub. Add unmatched submatch as part of
1288 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
1289 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
1290 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
1293 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
1296 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
1297 for newlib targets. Really fix mixed line-endings this time.
1299 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
1301 * include/std/future (future_error(error_code)): Construct base
1302 class with error_code's message.
1303 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
1306 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
1308 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
1310 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
1311 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
1313 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
1316 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
1317 incomplete multibyte sequences correctly.
1318 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
1319 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
1320 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
1322 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
1323 Define convenience functions.
1324 (read_utf8_code_point): Return relevant constant to distinguish
1325 incomplete characters from invalid sequences.
1326 (read_utf16_code_point): Likewise. Check for invalid sequences.
1327 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
1328 (utf16_out): Check for invalid sequences.
1329 (utf16_span): Fix condition.
1330 (ucs2_out): Use is_high_surrogate.
1331 (ucs2_in): Use incomplete_mb_character constant and fix condition.
1332 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
1333 * testsuite/22_locale/conversions/buffer/1.cc: New.
1334 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
1335 char32_t instead of wchar_t.
1336 * testsuite/22_locale/conversions/string/3.cc: New.
1338 2015-03-03 Iain Sandoe <iain@codesourcery.com>
1341 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
1342 visibility for Darwin.
1343 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
1345 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
1347 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
1350 * include/std/scoped_allocator (__inner_type_impl,
1351 scoped_allocator_adaptor): Add defaulted copy assignment and move
1352 assignment operators.
1353 * testsuite/20_util/scoped_allocator/65279.cc: New.
1355 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
1358 * include/std/stdexcept (__sso_string): Don't use non-static member
1361 2015-02-28 Matthias Klose <doko@ubuntu.com>
1364 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
1366 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
1368 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
1369 * doc/html/manual/status.html: Regenerate.
1371 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
1374 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
1377 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
1379 * doc/html/manual/status.html: Regenerate.
1381 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
1384 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
1385 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
1387 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
1390 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
1391 (test01): Add explanatory comment. Keep only the bd1 sub-test and
1392 split out bd2, bd3, bd4, and bd5 sub-tests into...
1393 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
1394 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
1395 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
1396 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
1397 New separate files with the old parts.
1399 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
1401 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
1403 (utf16_in): Pass mode argument to write_utf16_code_point.
1404 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
1406 * testsuite/22_locale/codecvt/char16_t.cc: New.
1407 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
1409 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
1410 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
1412 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
1413 Jonathan Wakely <jwakely@redhat.com>
1415 * testsuite/22_locale/codecvt/char32_t.cc: New.
1417 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
1420 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
1421 empty string gets null-terminated.
1422 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
1424 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
1426 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
1427 mixed line-endings introduced in last change.
1429 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
1431 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
1432 for __NEWLIB__ macro with a dejagnu set macro.
1433 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
1435 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1438 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
1439 special case for '\n'.
1440 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
1442 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
1444 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
1446 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
1449 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
1451 * include/c_std/cstdio (gets): Likewise.
1452 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
1453 with attributes used in darwin headers.
1455 2015-01-29 Jakub Jelinek <jakub@redhat.com>
1457 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
1458 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
1459 * configure: Regenerated.
1461 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
1463 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
1464 after vtv_cygmin is set.
1465 * configure: Regenerated.
1467 2015-01-29 Matthias Klose <doko@ubuntu.com>
1469 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
1471 * configure: Regenerate.
1473 2015-01-29 Caroline Tice <cmtice@google.com>
1475 Committing VTV Cywin/Ming patch for Patrick Wollgast
1476 * configure: Regenerate.
1477 * libsupc++/Makefile.in: Regenerate.
1478 * src/Makefile.in: Regenerate.
1480 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
1482 * include/bits/atomic_base.h: Use __always_inline__ instead of
1484 * include/bits/atomic_futex.h: Likewise.
1485 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
1486 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
1487 __packed__ instead of packed.
1488 * include/std/shared_mutex: Use __unused__ instead of unused.
1489 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
1490 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
1491 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
1493 2015-01-28 Caroline Tice <cmtice@google.com>
1495 Committing VTV Cywin/Ming patch for Patrick Wollgast
1496 * acinclude.m4: Define VTV_CYGMIN.
1497 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
1498 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
1499 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
1500 for Cygwin and MinGW.
1501 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
1502 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
1503 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
1505 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
1508 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
1509 * libsupc++/Makefile.in: Regenerate.
1510 * src/c++11/Makefile.in: Regenerate.
1512 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1514 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
1515 check for unsupported.
1516 (v3_target_compile_as_c): Likewise.
1518 2015-01-28 Richard Biener <rguenther@suse.de>
1521 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
1523 (pool::allocate): Adjust allocation size and alignment to
1525 (pool::free): Adjust pointer offsetting.
1527 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
1530 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
1531 shared_timed_mutex::try_lock_until): Only define when POSIX thread
1532 timeouts option is supported.
1533 (shared_timed_mutex::try_shared_lock_for,
1534 shared_timed_mutex::try_shared_lock_until): Likewise.
1536 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
1539 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
1540 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
1541 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
1542 and use cache's _M_grouping field.
1543 (__numpunct_fill_cache): Likewise.
1544 (__moneypunct_fill_cache): Improve comments.
1546 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
1548 * testsuite/23_containers/set/operations/2.cc: Add test for
1549 non-transparent comparison function.
1551 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
1554 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
1555 Remove SH4A inline asm and lock based implementations and use the
1556 defaults from ext/atomicity.h.
1558 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
1560 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
1561 new std::string constructors for byname facets.
1563 2015-01-22 Richard Biener <rguenther@suse.de>
1566 * libsupc++/eh_alloc.cc: Include new.
1567 (bitmask_type): Remove.
1568 (one_buffer): Likewise.
1569 (emergency_buffer): Likewise.
1570 (emergency_used): Likewise.
1571 (dependents_buffer): Likewise.
1572 (dependents_used): Likewise.
1573 (class pool): New custom fixed-size arena, variable size object
1575 (emergency_pool): New global.
1576 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
1577 (__cxxabiv1::__cxa_free_exception): Likewise.
1578 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
1579 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
1581 2015-01-22 Tim Shen <timshen@google.com>
1584 * include/bits/regex.h (basic_regex<>::basic_regex,
1585 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
1587 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
1589 2015-01-22 Tim Shen <timshen@google.com>
1592 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
1593 regex_traits<>::lookup_classname): Correctly narrow input chars.
1594 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
1596 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
1598 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
1600 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
1602 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
1604 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
1606 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
1607 * doc/xml/manual/status_cxx2014.xml: Update status.
1608 * doc/html/manual/status.html: Regenerate.
1610 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
1613 * include/experimental/optional (bad_optional_access): Add default
1615 * testsuite/experimental/optional/requirements.cc: Test for default
1618 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
1620 * include/bits/stl_map.h (map::find<>, map::count<>,
1621 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
1622 member function templates to perform heterogeneous lookup.
1623 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
1624 multimap::lower_bound<>, multimap::upper_bound<>,
1625 multimap::equal_range<>): Likewise.
1626 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
1627 multiset::lower_bound<>, multiset::upper_bound<>,
1628 multiset::equal_range<>): Likewise.
1629 * include/bits/stl_set.h (set::find<>, set::count<>,
1630 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
1631 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
1632 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
1633 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
1634 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
1635 * testsuite/23_containers/map/operations/2.cc: New.
1636 * testsuite/23_containers/multimap/operations/2.cc: New.
1637 * testsuite/23_containers/multiset/operations/2.cc: New.
1638 * testsuite/23_containers/set/operations/2.cc: New.
1640 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
1642 * config/abi/pre/gnu.ver: Export new constructors.
1643 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
1644 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
1645 specializations and declare explicit instantiations.
1646 * include/bits/locale_classes.h (locale, collate_byname): Add string
1648 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
1650 * include/bits/locale_facets_nonio.h (time_get_byname,
1651 time_put_byname, moneypunct_byname, messages_byname): Likewise.
1652 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
1653 codecvt_byname<char32_t>): Define explicit instantiations.
1654 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
1655 Instantiate string constructors.
1656 (ctype_byname): Define string constructor.
1657 * testsuite/22_locale/codecvt_byname/1.cc: New.
1658 * testsuite/22_locale/collate_byname/1.cc: New.
1659 * testsuite/22_locale/ctype_byname/2.cc: New.
1660 * testsuite/22_locale/messages_byname/1.cc: New.
1661 * testsuite/22_locale/moneypunct_byname/1.cc: New.
1662 * testsuite/22_locale/numpunct_byname/1.cc: New.
1664 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
1667 * include/std/atomic (atomic_init): Define.
1668 * testsuite/29_atomics/atomic/64658.cc: New.
1670 2015-01-19 Tim Shen <timshen@google.com>
1673 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
1674 regex_traits<>::lookup_classname): Support forward iterators.
1675 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
1676 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
1678 2015-01-19 Tim Shen <timshen@google.com>
1682 * include/bits/regex.h (basic_regex<>::basic_regex,
1683 basic_regex<>::assign, basic_regex<>::imbue,
1684 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
1685 imbuing basic_regex; Make assign() transactional against exception.
1686 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
1687 __compile_nfa SFINAE.
1688 * include/std/regex: Adjust include order to avoid __compile_nfa
1689 forward declaration.
1690 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
1691 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
1693 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
1694 Jonathan Wakely <jwakely@redhat.com>
1696 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
1697 on overloads for arrays.
1698 (cbegin, cend, rbegin, rend, crbegin, crend): New.
1699 * testsuite/24_iterators/range_access_cpp14.cc: New.
1701 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
1704 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
1705 end of the second range.
1706 * testsuite/25_algorithms/is_permutation/64646.cc: New.
1708 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
1710 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
1711 * doc/html/manual/status.html: Regenerate.
1713 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
1715 * include/bits/atomic_futex.h: Use mutex and condition_variable when
1716 atomic int is not lock-free. Make member variables private.
1717 * src/c++11/futex.cc: Likewise.
1719 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
1721 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
1724 * include/bits/atomic_futex.h: Use appropriate config macros for
1725 availability of std::mutex, std::condition and std::chrono.
1727 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1728 Jonathan Wakely <jwakely@redhat.com>
1730 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
1731 * doc/html/*: Regenerate.
1733 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
1737 * include/bits/algorithmfwd.h (rotate): Return an iterator.
1738 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
1739 * testsuite/25_algorithms/rotate/dr488.cc: New.
1740 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
1741 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
1743 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
1746 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
1749 * include/bits/atomic_base.h: Remove atomic integral typedefs as
1750 synonyms for __atomic_base<int> etc.
1751 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
1752 likewise for all atomic integral types.
1753 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
1754 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1756 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
1759 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
1760 and define one-element specialization.
1761 * testsuite/20_util/tuple/56785.cc: New.
1763 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
1765 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
1766 Remove unused header.
1767 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
1769 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
1772 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
1774 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
1775 * include/std/locale: Include new header.
1776 * include/Makefile.am: Add it.
1777 * include/Makefile.in: Regenerate.
1778 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
1779 * testsuite/22_locale/conversions/string/1.cc: New.
1780 * testsuite/22_locale/conversions/string/2.cc: New.
1781 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
1782 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
1785 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
1787 * config/abi/pre/gnu.ver: Export new symbols.
1788 * include/Makefile.am: Add codecvt.
1789 * include/Makefile.in: Regenerate.
1790 * include/std/codecvt: New header.
1791 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
1792 __codecvt_utf8_utf16_base): Define specializations.
1793 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
1794 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
1795 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
1798 2015-01-16 Torvald Riegel <triegel@redhat.com>
1800 * src/c++11/futex.cc: New file.
1801 * include/bits/atomic_futex.h: New file.
1802 * include/std/future (__future_base::_State_baseV2): Use
1803 atomic_futex_unsigned instead of mutex+condvar.
1804 * src/c++11/futex.cc: Likewise.
1805 * include/Makefile.am: Add atomic_futex.h.
1806 * include/Makefile.in: Likewise.
1807 * src/c++11/Makefile.am: Add futex.cc.
1808 * src/c++11/Makefile.in: Likewise.
1810 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
1812 * acinclude.m4: Fix typo in comment.
1813 * configure: Regenerate.
1814 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
1815 codecvt<char16_t, char, mbstate_t>): Declare specializations.
1816 * include/bits/locale_facets.h: Reserve space for new specializations.
1817 * src/c++11/Makefile.am: Add codecvt.cc.
1818 * src/c++11/Makefile.in: Regenerate.
1819 * src/c++11/codecvt.cc: New.
1820 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
1822 * src/c++98/Makefile.in: Regenerate.
1823 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
1824 * src/c++98/localename.cc: Likewise.
1825 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
1826 * testsuite/22_locale/codecvt/utf8.cc: New.
1827 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
1828 specializations are installed in locale objects.
1830 2015-01-16 Torvald Riegel <triegel@redhat.com>
1832 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
1835 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
1838 * config/abi/pre/gnu.ver: Export fstream functions using new string.
1840 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
1843 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
1847 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
1849 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
1851 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
1852 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
1853 Multi Processing Runtime Library".
1855 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
1858 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
1859 is_assignable arguments.
1860 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
1863 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
1865 * libsupc++/unwind-cxx.h: Revert previous commit.
1867 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
1869 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
1871 2015-01-09 Tim Shen <timshen@google.com>
1874 * include/bits/regex.h (match_results<>::swap): Use std::swap
1876 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
1878 * testsuite/28_regex/match_results/swap.cc: New testcase.
1880 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
1883 * include/std/type_traits (has_trivial_default_constructor,
1884 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
1886 * testsuite/20_util/has_trivial_copy_assign/requirements/
1887 explicit_instantiation.cc: Use -Wno-deprecated.
1888 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
1890 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
1891 * testsuite/20_util/has_trivial_copy_constructor/requirements/
1892 explicit_instantiation.cc: Likewise.
1893 * testsuite/20_util/has_trivial_copy_constructor/requirements/
1894 typedefs.cc: Likewise.
1895 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
1896 * testsuite/20_util/has_trivial_default_constructor/requirements/
1897 explicit_instantiation.c: Likewise.
1898 * testsuite/20_util/has_trivial_default_constructor/requirements/
1899 typedefs.cc: Likewise.
1900 * testsuite/20_util/has_trivial_default_constructor/value.cc:
1902 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
1904 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
1905 * testsuite/util/testsuite_common_types.h: Likewise.
1907 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
1909 * include/bits/hashtable_policy.h: Use __bool_constant.
1911 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
1913 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
1914 * libsupc++/Makefile.in: Regenerate.
1916 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
1918 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
1920 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1922 Update copyright years.
1924 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
1927 * testsuite/18_support/exception_ptr/64241.cc: Use
1928 dg-require-atomic-builtins.
1930 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
1932 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
1935 2015-01-02 Tim Shen <timshen@google.com>
1938 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
1939 iterator, since the original one shouldn't be mutated.
1941 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1944 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
1945 (string::insert): Likewise.
1946 (string::replace): Likewise.
1947 (wstring::erase): Likewise.
1948 (wstring::insert): Likewise.
1949 (wstring::replace): Likewise.
1950 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
1952 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
1955 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
1957 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
1960 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
1961 Revert removal of dg-require-string-conversions.
1962 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
1964 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
1966 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
1968 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
1970 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
1972 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
1974 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
1976 * testsuite/21_strings/basic_string/numeric_conversions/char/
1977 stoull.cc: Likewise.
1978 * testsuite/21_strings/basic_string/numeric_conversions/char/
1979 to_string.cc: Likewise.
1981 Copyright (C) 2015 Free Software Foundation, Inc.
1983 Copying and distribution of this file, with or without modification,
1984 are permitted in any medium without royalty provided the copyright
1985 notice and this notice are preserved.