1 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
3 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
5 * include/debug/functions.h
6 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
7 * include/debug/safe_iterator.h
8 (__gnu_debug::_Sequence_traits): New.
9 (__gnu_debug::__get_distance_from_begin): New.
10 (__gnu_debug::__get_distance_to_end): New.
11 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
12 distance information. Add optional check_dereferenceable parameter,
14 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
16 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
17 (__gnu_debug::__unsafe): Likewise.
18 * include/debug/helper_functions.h: ...here. New.
19 (__gnu_debug::__unsafe): New helper function to remove safe iterator
21 * include/debug/stl_iterator.h: New. Include latter.
22 * include/bits/stl_iterator.h: Include latter in debug mode.
23 * include/debug/stl_iterator.tcc: Adapt.
24 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
25 overload for _Safe_local_iterator.
26 (__gnu_debug::__unsafe): Likewise.
27 * include/debug/safe_local_iterator.tcc: Adapt.
28 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
29 (__glibcxx_check_insert_range): Add _Dist parameter.
30 (__glibcxx_check_insert_range_after): Likewise.
31 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
32 _GLIBCXX_DEBUG_PEDASSERT.
33 * include/debug/deque (deque<>::assign): Remove iterator debug layer
35 (deque<>::insert): Likewise.
36 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
37 (forward_list<>::splice_after): Use latter.
38 (forward_list<>::assign): Remove iterator debug layer when possible.
39 (forward_list<>::insert_after): Likewise.
40 (__gnu_debug::_Sequence_traits<>): Partial specialization.
41 * include/debug/list (list<>::assign): Remove iterator debug layer when
43 (list<>::insert): Likewise.
44 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
45 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
47 * include/debug/multimap.h (multimap<>::insert): Likewise.
48 * include/debug/set.h (set<>::insert): Likewise.
49 * include/debug/multiset.h (multiset<>::insert): Likewise.
50 * include/debug/string (basic_string<>::append, basic_string<>::assign,
51 basic_string<>::insert, basic_string<>::replace): Likewise.
52 * include/debug/unordered_map
53 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
54 * include/debug/unordered_set
55 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
56 * include/debug/vector
57 (vector<>::assign, vector<>::insert): Likewise.
58 * include/Makefile.am: Add new debug headers.
59 * include/Makefile.in: Regenerate.
61 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
63 * doc/xml/manual/intro.xml: Document LWG 2108 status.
64 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
66 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
67 * include/bits/forward_list.h
68 (forward_list::operator=(forward_list&&)): Use __bool_constant.
69 (forward_list::swap(forward_list&)): Add noexcept.
70 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
72 (_Hashtable::swap(_Hashtable&)): Likewise.
73 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
74 Use _Alloc_traits::is_always_equal.
75 (deque::operator=(deque&&)): Likewise.
76 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
78 (swap(deque&, deque&)): Add noexcept.
79 * include/bits/stl_list.h (list::operator=(list&&)): Use
81 (swap(list&, list&)): Add noexcept.
82 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
84 (swap(map&, map&)): Add noexcept.
85 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
87 (swap(multimap&, multimap&)): Add noexcept.
88 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
90 (swap(multiset&, multiset&)): Add noexcept.
91 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
93 (swap(set&, set&)): Add noexcept.
94 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
96 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
98 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
100 (swap(vector&, vector&)): Add noexcept.
101 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
102 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
103 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
104 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
105 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
107 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
108 __allocator_always_compares_equal.
109 * include/ext/array_allocator.h (array_allocator::is_always_equal):
111 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
112 __propagate_on_move, __propagate_on_swap): Remove.
113 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
114 scoped_allocator_adaptor::propagate_on_container_move_assignment,
115 scoped_allocator_adaptor::propagate_on_container_swap): Define with
116 __and_ instead of __any_of.
117 (scoped_allocator_adaptor::is_always_equal): Define.
118 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
119 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
120 derive from true_type or false_type.
121 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
122 is_always_equal member and remove the trait specialization.
123 * testsuite/23_containers/vector/52591.cc: Likewise.
124 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
125 Adjust dg-error line number.
126 * testsuite/23_containers/deque/requirements/dr438/
127 constructor_1_neg.cc: Likewise.
128 * testsuite/23_containers/deque/requirements/dr438/
129 constructor_2_neg.cc: Likewise.
130 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
132 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
134 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
136 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
138 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
140 * testsuite/23_containers/vector/requirements/dr438/
141 constructor_1_neg.cc: Likewise.
142 * testsuite/23_containers/vector/requirements/dr438/
143 constructor_2_neg.cc: Likewise.
144 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
147 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
148 * include/bits/stl_map.h (map::map()): Likewise.
149 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
150 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
151 * include/bits/stl_set.h (set::set()): Likewise.
153 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
155 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
157 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
159 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
161 (basic_string<>::back()): Likewise.
162 (basic_string<>::pop_back()): Likewise.
164 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
166 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
167 dg-error line numbers.
168 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
171 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
173 * include/debug/array: Include <array>. Add version namespace when
174 specializing tuple interface to array. Add specialization for
175 __is_tuple_like_impl.
176 * include/profile/array: Likewise.
177 * include/std/array: Include <utility>. Add specialization for
178 __is_tuple_like_impl.
180 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
181 * include/std/utility: ... here. Include <type_traits>.
182 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
183 dg-error line number.
184 * testsuite/23_containers/array/tuple_interface/
185 tuple_element_debug_neg.cc: Likewise.
187 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
189 * testsuite/26_numerics/complex/value_operations/1.cc: Use
190 non-negative rho argument.
192 * include/debug/list (__gnu_debug::list): Use allocator-aware
193 _Safe_container base.
194 * include/debug/string (__gnu_debug::basic_string): Use
195 allocator-aware _Safe_container base for cxx11 ABI.
197 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
198 (wstring_convert): Move into __cxx11 namespace.
199 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
203 * include/bits/stl_uninitialized.h
204 (__uninitialized_copy::__uninit_copy): Cast expression to void.
206 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
209 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
210 (list::list(const list&)): Use allocator propagation trait. Use
211 _M_assign_dispatch to copy elements.
212 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
213 (_List_node::_M_valptr()): Add accessor for stored value.
214 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
215 (_List_base, list): Use allocator traits.
216 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
217 (_List_base::_M_move_nodes): New function.
218 (_List_base(_List_base&&)): Use _M_move_nodes.
219 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
220 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
222 (list(size_type)): Add allocator parameter.
223 (list(const list&)): Use allocator propagation trait.
224 (list(const list&, const allocator_type&)): New constructor.
225 (list(list&&, const allocator_type&)): Likewise.
226 (list::operator=(list&&), list::swap(list&)): Use allocator
228 (list::_M_move_assign): New functions.
229 * include/debug/list: Add allocator-extended constructors.
230 * include/profile/list: Likewise.
231 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
232 function to get value from _List_node.
233 (StdListPrinter): Use get_value_from_list_node.
234 * testsuite/23_containers/list/allocator/copy.cc: New.
235 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
236 * testsuite/23_containers/list/allocator/minimal.cc: New.
237 * testsuite/23_containers/list/allocator/move.cc: New.
238 * testsuite/23_containers/list/allocator/move_assign.cc: New.
239 * testsuite/23_containers/list/allocator/noexcept.cc: New.
240 * testsuite/23_containers/list/allocator/swap.cc: New.
241 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
242 Adjust dg-prune-output line number.
243 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
245 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
248 * include/bits/forward_list.h
249 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
251 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
252 (forward_list(const _Alloc&)): Split default constructor out to
254 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
256 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
257 swap call with two assignments.
258 * include/bits/forward_list.tcc
259 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
260 move elements when allocators are not equal.
261 * include/debug/forward_list (forward_list(const allocator_type&)):
262 Split default constructor out to separate function.
263 * include/profile/forward_list (forward_list(const _Alloc&)):
266 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
267 Remove unnecessary uses of operator& and static_cast.
268 * include/bits/forward_list.tcc
269 (forward_list::operator=(const forward_list&)): Use __addressof
270 instead of operator&.
271 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
272 Remove invalid static_casts.
273 * include/debug/forward_list: Use __addressof instead of operator&.
274 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
276 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
277 __is_nothrow_swappable.
279 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
281 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
283 * include/bits/list.tcc (list::operator=(const list&), list::merge):
284 Use __addressof instead of operator&.
285 (list::sort): Use array-to-pointer decay instead of operator&.
286 * include/bits/stl_list.h (list::splice): Use __addressof instead of
288 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
290 * include/debug/functions.h (__check_singular): Likewise.
291 * include/debug/list (list::splice, list::merge): Likewise.
292 * testsuite/23_containers/list/modifiers/addressof.cc: New.
295 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
298 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
300 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
303 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
306 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
310 * config/cpu/alpha/atomic_word.h: Remove.
311 * config/cpu/ia64/atomic_word.h: Remove.
312 * config/cpu/powerpc/atomic_word.h: Remove.
313 * config/os/aix/atomic_word.h: Remove.
314 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
315 Use generic definition.
317 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
321 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
322 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
323 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
324 * include/ext/atomicity.h: Likewise.
325 * include/tr1/shared_ptr.h: Likewise.
326 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
328 (__set_and_release): Likewise.
329 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
331 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
332 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
335 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
337 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
338 debug and profile modes.
339 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
340 for swap in C++11 and later.
342 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
345 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
348 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
351 * testsuite/22_locale/conversions/string/66441.cc: New.
352 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
353 in the output string for BOM and complete result.
356 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
357 for single UTF-16 units.
358 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
360 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
362 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
363 outer scope and rename to ...
364 (std::__hash_is_transparent<>): ... this.
365 * include/debug/stl_map.h (map::find<>,
366 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
367 member function templates to perform heterogeneous lookup.
368 * include/debug/stl_multimap.h (multimap::find<>,
369 multimap::lower_bound<>, multimap::upper_bound<>,
370 multimap::equal_range<>): Likewise.
371 * include/debug/stl_multiset.h (multiset::find<>,
372 multiset::lower_bound<>, multiset::upper_bound<>,
373 multiset::equal_range<>): Likewise.
374 * include/debug/stl_set.h (set::find<>,
375 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
376 * include/profile/stl_map.h (map::find<>, map::count<>,
377 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
378 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
379 multimap::lower_bound<>, multimap::upper_bound<>,
380 multimap::equal_range<>): Likewise.
381 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
382 multiset::lower_bound<>, multiset::upper_bound<>,
383 multiset::equal_range<>): Likewise.
384 * include/profile/stl_set.h (set::find<>, set::count<>,
385 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
386 * testsuite/23_containers/map/operations/1.cc: Check const variants.
387 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
388 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
389 * testsuite/23_containers/set/operations/1.cc: Likewise.
391 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
393 * doc/xml/manual/status_cxx2017.xml: Update status tables.
394 * doc/html/manual/*: Regenerate.
395 * include/std/type_traits (bool_constant): Define.
396 * testsuite/20_util/bool_constant/requirements.cc: New.
397 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
398 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
400 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
403 * include/std/shared_mutex (__shared_mutex_pthread,
404 __shared_mutex_cv): New helper types implementing the shared mutex
406 (shared_mutex): New type for C++17.
407 (shared_timed_mutex): Derive from one of the new helper types.
408 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
409 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
410 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
411 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
413 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
414 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
416 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
418 Add __is_nothrow_swappable and take it into use.
419 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
420 * include/bits/move.h (swap): Add constraints in C++11 and later.
421 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
422 for the free swap function for pair.
423 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
424 for the free swap functions for queue and priority_queue.
425 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
426 for the free swap function for stack.
427 * include/debug/array (swap): Use __is_nothrow_swappable
428 for the free swap function for array.
429 * include/profile/array (swap): Likewise.
430 * include/std/array (swap): Likewise.
431 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
432 * include/std/type_traits (__is_swappable_impl::__is_swappable,
433 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
434 * testsuite/20_util/is_nothrow_swappable/requirements/
435 explicit_instantiation.cc: New.
436 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
438 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
440 2015-06-03 François Dumont fdumont@gcc.gnu.org>
442 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
444 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
446 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
447 * doc/html/manual/*: Regenerate.
449 * doc/html/ext/lwg-active.html: Update to R93.
450 * doc/html/ext/lwg-closed.html: Likewise.
451 * doc/html/ext/lwg-defects.html: Likewise.
452 * doc/html/manual/*: Regenerate.
453 * doc/xml/manual/intro.xml: Document status of several DRs.
455 2015-06-02 Renlin Li <renlin.li@arm.com>
457 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
459 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
461 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
462 environment variable.
464 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
467 * include/bits/stl_algobase.h (__fill_a): Check length before calling
470 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
472 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
473 instead of checking for null pointers.
474 (__lexicographical_compare<true>::__lc): Only check shorter length.
476 2015-05-29 François Dumont fdumont@gcc.gnu.org>
478 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
479 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
480 * include/debug/assertions.h: ...here, new.
481 * include/debug/formatter.h
482 (_Error_formatter::_Is_iterator_value_type): New.
483 (_Error_formatter::_Is_instance): New.
484 (_Error_formatter::_Parameter): Make public and not friend anymore.
485 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
486 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
488 (_Error_formatter::_Parameter::_Type): New.
489 (_Error_formatter::_Parameter::_Instance): New, inherit from
491 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
492 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
493 overloads take iterator through a const reference.
494 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
496 (_Parameter(const _Type&, const char*, _Is_instance)): New.
497 (_Error_formatter::_M_print_type): Delete.
498 (_Error_formatter::_M_iterator_value_type): New.
499 (_Error_formatter::_M_instance): New.
500 * include/Makefile.am: Add new above debug file.
501 * include/Makefile.in: Regenerate.
502 * include/debug/functions.h
503 (__check_dereferenceable(const _Safe_iterator<>&),
504 __valid_range(const _Safe_iterator<>&),
505 __is_safe_random_iterator<_Safe_iterator<>>): Move...
506 * include/debug/safe_iterator.h: ... here.
507 Replace debug.h include with assertions.h.
508 (__check_singular_aux): Move...
509 * include/debug/safe_base.h: ... here.
510 * include/debug/functions.h
511 (__check_dereferenceable(const _Safe_local_iterator<>&),
512 __valid_range(const _Safe_local_iterator<>&): Move...
513 * include/debug/safe_local_iterator.h: ...here.
514 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
515 Remove _Safe_iterator declaration.
516 * include/debug/safe_unordered_container.h: Replace debug.h with
518 * include/debug/array: Replace safe_sequence.h include with
519 formatter.h and macros.h.
520 * include/debug/deque: Include functions.tcc.
521 * include/debug/forward_list: Likewise.
522 * include/debug/list: Likewise.
523 * include/debug/string: Likewise.
524 * include/debug/vector: Likewise.
525 * include/bits/unique_ptr.h: Replace debug.h include with new
527 * include/bits/stl_iterator_base_funcs.h: Likewise.
528 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
529 Adjust dg-error line number.
530 * testsuite/23_containers/array/tuple_interface/
531 tuple_element_debug_neg.cc: Likewise.
532 * src/c++11/debug.cc: Adapt.
534 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
536 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
537 * doc/html/manual/*: Regenerate.
539 * include/std/future (__async_result_of): New alias template.
540 (async): Use __async_result_of to pass decayed types to result_of.
541 * testsuite/30_threads/async/lwg2021.cc: New.
542 * doc/xml/manual/intro.xml: Document LWG 2021 status.
545 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
546 memcmp with null pointers.
547 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
550 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
553 * include/profile/array (array::data): Use _S_ptr.
554 * include/debug/array (array::data): Likewise.
557 * include/std/array (__array_traits::_S_ptr): New function.
558 (array::data): Use _S_ptr to avoid creating invalid reference.
559 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
560 dg-error line numbers.
561 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
564 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
566 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
567 instead of downcasting.
568 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
569 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
570 (_Rb_tree::_S_iter): Remove.
571 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
572 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
573 instead of _S_lower_bound_tr
574 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
575 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
576 instead of calling _S_lower_bound_tr.
577 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
578 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
579 instead of calling _S_upper_bound_tr.
580 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
581 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
582 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
583 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
584 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
585 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
586 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
587 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
590 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
591 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
593 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
594 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
595 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
596 alignment of _Tp as a member subobject, not as a complete object.
597 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
598 _Link_type manually as it might not be in the debug info.
600 2015-05-26 Doug Evans <dje@google.com>
602 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
604 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
607 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
609 * include/bits/locale_conv.h: Fix copyright years.
610 * include/bits/quoted_string.h: Likewise.
611 * src/filesystem/Makefile.am: Likewise.
612 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
613 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
615 * testsuite/22_locale/conversions/string/1.cc: Likewise.
616 * testsuite/22_locale/conversions/string/2.cc: Likewise.
617 * testsuite/22_locale/conversions/string/3.cc: Likewise.
618 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
620 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
622 * testsuite/util/testsuite_fs.h: Likewise.
624 2015-05-23 François Dumont fdumont@gcc.gnu.org>
627 * include/debug/functions.h (__check_sorted_aux): Cast expression to
630 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
633 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
634 Don't use isync. Use lwsync if available.
635 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
636 powerpc cpu definition.
638 2015-05-21 Jason Merrill <jason@redhat.com>
640 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
641 * libsupc++/del_op.cc: Likewise.
643 2015-05-20 François Dumont fdumont@gcc.gnu.org>
645 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
647 (_Error_formatter::_M_print_type): New.
649 (_Error_formatter::_Parameter::_M_print_field): Use latter.
650 (_Error_formatter::_M_print_type): Implement latter using
651 __cxaabiv1::__cxa_demangle to print demangled type name.
653 * include/bits/cpp_type_traits.h
654 (std::move_iterator): Delete declaration.
655 (std::__is_move_iterator<move_iterator>): Move partial specialization...
656 * include/bits/stl_iterator.h: ... here.
657 (std::__miter_base): Overloads for std::reverse_iterator and
659 * include/bits/stl_algobase.h (std::__miter_base): Provide default
662 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
664 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
667 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
668 overload for pointers.
669 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
670 808590.cc: Add -std=gnu++03 switch.
671 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
672 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
673 * testsuite/23_containers/vector/modifiers/push_back/
674 strong_guarantee.cc: New.
676 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
678 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
679 (operator==(const list&, const list&)): If size() is O(1) compare
680 sizes before comparing each element.
681 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
682 (list::resize): Use _M_resize_pos.
684 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
686 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
688 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
689 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
690 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
692 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
694 * configure.host: Define cpu_defines_dir for ARM.
695 * config/cpu/arm/cpu_defines.h: New file.
697 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
699 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
700 missing constructors.
701 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
703 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
704 missing constructors.
705 * include/debug/unordered_set (unordered_set, unordered_multiset):
707 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
708 missing constructors.
709 * include/profile/unordered_set (unordered_set, unordered_multiset):
712 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
714 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
715 use throughout the file.
716 (make_file_type): New function.
717 (file_size(const path&, error_code&)): Report an error for anything
718 that isn't a regular file.
719 (status(const path&), symlink_status(const path&)): Do not throw for
720 file_type::not_found.
721 (temp_directory_path()): Check additional environment variables.
722 * testsuite/experimental/filesystem/operations/exists.cc: New.
723 * testsuite/experimental/filesystem/operations/file_size.cc: New.
724 * testsuite/experimental/filesystem/operations/status.cc: New.
725 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
728 2015-05-14 Nathan Myers <ncm@cantrip.org>
729 Jonathan Wakely <jwakely@redhat.com>
732 * include/std/unordered_map (unordered_map, unordered_multimap): Add
733 missing constructors.
734 * include/std/unordered_set (unordered_set, unordered_multiset):
736 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
737 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
738 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
739 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
741 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
744 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
746 * config.h.in: Regenerate.
747 * configure: Regenerate.
748 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
749 not return after copying contents. Use fchmod, fchmodat, and sendfile
751 (current_path, permissions, space): Use errno not return value.
754 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
756 * config.h.in: Regenerate.
757 * configure: Regenerate.
758 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
760 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
762 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
763 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
764 * config.h.in: Regenerate.
765 * configure: Likewise.
766 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
767 __USING_SJLJ_EXCEPTIONS__.
768 * libsupc++/eh_throw.cc: Likewise.
769 * libsupc++/eh_ptr.cc: Likewise.
770 * doc/html/manual/appendix_porting.html: Remove
771 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
772 * doc/xml/manual/build_hacking.xml: Likewise.
773 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
774 * doc/xml/manual/configure.xml: Likewise.
776 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
778 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
779 for nullptr (LWG 2415).
780 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
781 construction from empty unique_ptr.
782 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
783 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
785 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
787 * testsuite/20_util/raw_storage_iterator/base.cc: New.
789 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
790 Remove explicit (LWG 2407).
792 * include/bits/basic_string.h (basic_string::basic_string()): Make
793 noexcept conditional on allocator (LWG 2455).
795 * include/std/complex (polar): Check for negative rho (LWG 2459).
797 * include/experimental/tuple (apply): Handle pointers to member (LWG
799 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
800 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
801 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
803 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
805 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
806 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
807 * testsuite/23_containers/forward_list/allocator/minimal.cc:
809 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
810 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
811 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
812 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
813 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
815 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
817 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
819 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
821 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
823 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
824 * configure: Regenerate.
826 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
828 * Makefile.in: Regenerated with automake-1.11.6.
829 * aclocal.m4: Likewise.
830 * configure: Likewise.
831 * doc/Makefile.in: Likewise.
832 * include/Makefile.in: Likewise.
833 * libsupc++/Makefile.in: Likewise.
834 * po/Makefile.in: Likewise.
835 * python/Makefile.in: Likewise.
836 * src/Makefile.in: Likewise.
837 * src/c++11/Makefile.in: Likewise.
838 * src/c++98/Makefile.in: Likewise.
839 * src/filesystem/Makefile.in: Likewise.
840 * testsuite/Makefile.in: Likewise.
842 2015-05-09 Jason Merrill <jason@redhat.com>
844 * testsuite/20_util/headers/functional/synopsis.cc: Add
845 _GLIBCXX14_CONSTEXPR.
846 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
848 2015-05-08 Jason Merrill <jason@redhat.com>
850 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
851 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
852 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
853 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
854 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
855 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
856 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
857 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
858 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
859 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
860 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
862 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
863 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
864 Adjust expected errors.
865 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
867 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
869 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
871 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
873 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
875 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
877 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
879 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
881 * testsuite/23_containers/vector/requirements/dr438
882 /constructor_1_neg.cc: Likewise.
883 * testsuite/23_containers/vector/requirements/dr438
884 /constructor_2_neg.cc: Likewise.
885 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
887 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
888 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
889 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
890 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
891 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
893 * testsuite/ext/array_allocator/check_deallocate_null.cc:
895 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
896 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
897 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
898 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
900 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
902 * testsuite/tr1/2_general_utilities/shared_ptr/assign
903 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
904 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
905 Add -std=c++98 -fno-show-column.
906 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
908 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
910 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
911 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
913 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
914 * src/c++98/Makefile.in: Regenerate.
915 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
916 * src/Makefile.in: Regenerate.
918 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
921 * include/std/future (async): Change default policy to launch::async.
923 * include/experimental/any (any::_Storage): Fix alignment of buffer.
924 (any::_Internal): Check alignment of type.
925 * testsuite/experimental/any/cons/aligned.cc: New.
926 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
928 * include/experimental/iterator (ostream_joiner): Simplify by using
929 the injected-class-name and the ostream_type typedef.
931 * include/experimental/iterator: New. Define ostream_joiner.
932 * include/Makefile.am: Add new header.
933 * include/Makefile.in: Regenerate.
934 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
935 * testsuite/experimental/iterator/ostream_joiner.cc: New.
936 * testsuite/experimental/iterator/requirements.cc: New.
937 * doc/xml/manual/status_cxx2017.xml: Update status.
938 * doc/html/manual/status.html: Regenerate.
940 * include/experimental/numeric: New. Define gcd and lcm.
941 * include/Makefile.am: Add new header.
942 * include/Makefile.in: Regenerate.
943 * testsuite/experimental/numeric/gcd.cc: New.
944 * testsuite/experimental/numeric/lcm.cc: New.
945 * doc/xml/manual/status_cxx2017.xml: Update status.
946 * doc/html/manual/status.html: Regenerate.
948 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
950 Revert addition of feature macros from other headers per latest SD-6.
951 * include/experimental/deque: Remove feature-test macro.
952 * include/experimental/forward_list: Ditto.
953 * include/experimental/list: Ditto.
954 * include/experimental/map: Ditto.
955 * include/experimental/set: Ditto.
956 * include/experimental/string: Ditto.
957 * include/experimental/unordered_map: Ditto.
958 * include/experimental/unordered_set: Ditto.
960 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
962 * include/experimental/any (any::_Storage): Make non-copyable.
963 (any::any): Do not copy _Storage object.
964 (any::operator=): Implement more efficiently than swapping.
965 (any::swap): Use new _Op_xfer operation.
966 (any::_Op::_Op_xfer): New enumerator.
967 (_Manager_internal::_S_alloc): Remove unused function.
968 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
969 parameter instead of returning a _Storage object.
970 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
971 _Op_xfer operation for moving and swapping.
972 * testsuite/experimental/any/cons/nontrivial.cc: New.
973 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
975 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
977 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
981 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
982 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
983 and fix tests for forward_as_tuple and tie.
985 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
986 Set timespec members explicitly instead of with a braced-init-list.
987 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
989 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
991 * include/experimental/deque: Add feature-test macro.
992 * include/experimental/forward_list: Ditto.
993 * include/experimental/list: Ditto.
994 * include/experimental/map: Ditto.
995 * include/experimental/set: Ditto.
996 * include/experimental/string: Ditto.
997 * include/experimental/unordered_map: Ditto.
998 * include/experimental/unordered_set: Ditto.
1000 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1002 * include/experimental/memory: Correct feature-test macro.
1004 * include/experimental/memory: Add feature-test macro.
1005 * include/experimental/vector: Likewise.
1006 * doc/xml/manual/status_cxx2017.xml: Update status.
1007 * doc/html/manual/status.html: Regenerate.
1009 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
1011 Implement observer_ptr.
1012 * include/Makefile.am: Add new header.
1013 * include/Makefile.in: Regenerate.
1014 * include/experimental/memory: New.
1015 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
1016 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
1017 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
1018 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
1019 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
1020 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
1021 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
1022 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
1024 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1026 * src/filesystem/path.cc (path::compare): Do not copy strings.
1028 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
1030 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
1031 * configure: Regenerate.
1032 * config.h.in: Regenerate.
1033 * configure.ac: Check for utime.h
1034 * include/experimental/fs_path.h (path::string<>)
1035 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
1036 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
1037 closedir, dirent, readdir_r): Replace dummy functions with #error.
1038 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
1039 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
1040 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
1041 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
1042 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
1045 * include/experimental/fs_path.h (path::_List): Use vector instead of
1047 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
1048 * src/filesystem/path.cc: Use std::prev instead of decrementing
1049 rvalues. Fix whitespace.
1050 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1051 Do not decrement iterators before begin.
1053 * include/experimental/fs_dir.h: Fix use of non-reserved names.
1054 * include/experimental/fs_ops.h: Likewise.
1055 * include/experimental/fs_path.h: Likewise.
1056 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
1057 C++11 when checking for support.
1059 * include/bits/locale_classes.h (locale::facet): Delete copy
1060 operations in C++11 mode.
1062 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
1064 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
1065 * configure: Regenerate.
1067 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1069 Inline one-line erasure dispatch functions.
1070 * include/experimental/forward_list (erase_if(), erase()): Inline.
1071 * include/experimental/list (erase_if(), erase()): Inline.
1072 * include/experimental/map (erase_if(*)): Inline.
1073 * include/experimental/set (erase_if(*)): Inline.
1074 * include/experimental/string (erase_if(), erase()): Inline.
1075 * include/experimental/unordered_map (erase_if(*)): Inline.
1076 * include/experimental/unordered_set (erase_if(*)): Inline.
1078 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1080 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
1081 * doc/xml/manual/status_cxx2011.xml: Update status tables.
1082 * doc/xml/manual/status_cxx2014.xml: Likewise.
1083 * doc/xml/manual/status_cxx2017.xml: New.
1084 * doc/xml/manual/using.xml: Fix typo.
1085 * doc/html/*: Regenerate.
1087 * include/std/memory (pointer_safety, declare_reachable,
1088 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
1089 get_pointer_safety): Define.
1090 * testsuite/20_util/pointer_safety/1.cc: New.
1092 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
1094 Implement N4100 File System TS
1095 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
1096 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
1097 * config.h.in: Regenerate.
1098 * configure: Regenerate.
1099 * configure.ac: Enable filesystem TS and check its dependencies.
1100 * include/Makefile.am: Add new headers.
1101 * include/Makefile.in: Regenerate.
1102 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
1103 __str_codecvt_out): Move code conversion logic from wstring_convert
1104 into new global functions.
1105 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
1107 (wstring_convert::_M_conv): Remove.
1108 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
1109 * include/experimental/filesystem: New.
1110 * include/experimental/fs_dir.h: New.
1111 * include/experimental/fs_fwd.h: New.
1112 * include/experimental/fs_ops.h: New.
1113 * include/experimental/fs_path.h: New.
1114 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
1115 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
1116 * src/Makefile.am (SUBDIRS): Add filesystem.
1117 * src/Makefile.in: Regenerate.
1118 * src/filesystem/Makefile.am: New.
1119 * src/filesystem/Makefile.in: New.
1120 * src/filesystem/dir.cc: New.
1121 * src/filesystem/ops.cc: New.
1122 * src/filesystem/path.cc: New.
1123 * testsuite/experimental/filesystem/operations/absolute.cc: New.
1124 * testsuite/experimental/filesystem/operations/copy.cc: New.
1125 * testsuite/experimental/filesystem/operations/current_path.cc: New.
1126 * testsuite/experimental/filesystem/path/append/path.cc: New.
1127 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
1128 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
1129 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
1130 * testsuite/experimental/filesystem/path/compare/path.cc: New.
1131 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
1132 * testsuite/experimental/filesystem/path/concat/path.cc: New.
1133 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
1134 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
1135 * testsuite/experimental/filesystem/path/construct/default.cc: New.
1136 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
1137 * testsuite/experimental/filesystem/path/construct/range.cc: New.
1138 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
1139 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
1140 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1142 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1144 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1146 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1148 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1150 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
1151 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1153 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
1154 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
1155 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1157 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1159 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1161 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1163 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
1164 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
1165 * testsuite/experimental/filesystem/path/query/empty.cc: New.
1166 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
1167 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
1168 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1170 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1172 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1174 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1176 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1178 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
1179 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
1180 * testsuite/util/testsuite_fs.h: New.
1182 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1184 Add fundamentals TR container erasure.
1185 * include/Makefile.am: Add new headers.
1186 * include/Makefile.in: Add new headers.
1187 * include/experimental/array: New.
1188 * include/experimental/deque: New.
1189 * include/experimental/erase_if.tcc: New.
1190 * include/experimental/forward_list: New.
1191 * include/experimental/list: New.
1192 * include/experimental/map: New.
1193 * include/experimental/set: New.
1194 * include/experimental/string: New.
1195 * include/experimental/unordered_map: New.
1196 * include/experimental/unordered_set: New.
1197 * include/experimental/vector: New.
1198 * testsuite/experimental/deque/erasure.cc: New.
1199 * testsuite/experimental/forward_list/erasure.cc: New.
1200 * testsuite/experimental/list/erasure.cc: New.
1201 * testsuite/experimental/map/erasure.cc: New.
1202 * testsuite/experimental/set/erasure.cc: New.
1203 * testsuite/experimental/string/erasure.cc: New.
1204 * testsuite/experimental/unordered_map/erasure.cc: New.
1205 * testsuite/experimental/unordered_set/erasure.cc: New.
1206 * testsuite/experimental/vector/erasure.cc: New.
1208 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
1210 * include/bits/cpp_type_traits.h
1211 (__gnu_cxx::__is_normal_iterator): Delete.
1212 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
1213 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
1214 (std::__niter_base): Overloads for std::reverse_iterator,
1215 __gnu_cxx::__normal_iterator and std::move_iterator.
1217 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
1219 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
1221 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
1222 Remove usage of latter and compute size of the prime numbers array
1225 2015-04-29 Doug Evans <dje@google.com>
1228 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
1229 Replace all lookups of "bool" with this.
1230 (get_std_size_type): New function. Replace all lookups of std::size_t
1232 (*Worker): New method get_result_type.
1233 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
1234 (ListWorkerBase.__init__): New arg val_type. All callers updated.
1235 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
1236 Delete setting of name, enabled.
1237 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
1238 updated. Delete setting of name.
1239 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
1240 libstdc++ xmethod matchers.
1241 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
1242 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
1243 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
1244 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
1245 * testsuite/libstdc++-xmethods/list.cc: Ditto.
1246 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
1247 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
1249 2015-04-29 Doug Evans <dje@google.com>
1251 Use consistent naming for value type attributes.
1252 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
1254 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
1255 (ArrayFrontWorker, ArrayBackWorker): Ditto.
1256 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
1257 (DequeWorkerBase): Rename elemtype to val_type.
1258 (ForwardListWorkerBase): Rename _elem_type to _val_type.
1259 (ForwardListFrontWorker): Ditto. And rename elem_address to
1261 (ForwardListMethodsMatcher): Rename elem_type to val_type.
1262 (VectorWorkerBase): Rename _elemtype to _val_type.
1264 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
1267 * include/std/functional (__check_func_return_type): Use is_same to
1268 avoid using _is_convertible on incomplete types.
1269 * testsuite/20_util/function/65760.cc: New.
1272 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
1274 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
1275 time_get::_M_extract_num, time_get::_M_extract_name,
1276 time_get::_M_extract_wday_or_month): Likewise.
1277 * include/bits/stl_algo.h (__includes, __replace_copy_if,
1278 __is_sorted_until, __is_permutation, transform): Likewise.
1279 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
1280 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
1281 * include/bits/stl_numeric.h (inner_product): Likewise.
1282 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
1283 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
1284 input_iterator_wrapper): Declare unusable comma operator.
1285 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
1286 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
1289 2015-04-28 Doug Evans <dje@google.com>
1291 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
1294 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1296 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
1299 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1301 * Makefile.am (SUBDIRS): Move python to hosted_source.
1302 * Makefile.in: Regenerate.
1303 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
1304 * configure: Regenerate.
1306 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
1309 * include/std/limits (numeric_limits): Add missing unsigned.
1311 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
1313 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
1315 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1318 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
1319 Handle enumeration types larger than sizeof(long).
1320 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
1322 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
1323 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1325 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
1326 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
1328 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
1331 * include/bits/forward_list.h (forward_list::splice_after): Add
1333 * include/bits/forward_list.tcc (forward_list::splice_after):
1337 * include/bits/random.h (seed_seq) Define copy constructor and copy
1338 assignment as deleted.
1339 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
1341 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
1342 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
1343 Use -std=gnu++1z. Check feature-test macro.
1345 * include/std/type_traits (void_t): Add.
1346 * testsuite/20_util/void_t/1.cc: New.
1348 2015-04-28 Tim Shen <timshen@google.com>
1350 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
1351 * include/bits/regex_automaton.tcc: Throw exception when parsing
1352 back-reference with flag __polynomial.
1353 * include/bits/regex_constants.h: Add extension flag
1354 syntax_option_type __polynomial.
1355 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
1356 Alternative operation will be fixed in the coming refactoring.
1357 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
1358 loose match_search_debug to use DFS only.
1360 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
1363 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
1364 Make the generated test program fail gracefully if the target
1365 doesn't support passing command-line arguments.
1367 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
1368 Jonathan Wakely <jwakely@redhat.com>
1370 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
1371 Return false or zero if the library is built without exceptions.
1372 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
1373 the library is built without exceptions.
1375 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
1377 * config/abi/pre/gnu.ver: Fix comment.
1379 Add support for std::uncaught_exceptions.
1380 * acinclude.m4: Bump libtool_VERSION.
1381 * config/abi/pre/gnu.ver: Export the new symbol.
1382 * configure: Regenerate.
1383 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
1384 * libsupc++/exception (uncaught_exceptions): New.
1385 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
1386 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
1388 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
1389 Michael Hanselmann <public@hansmi.ch>
1392 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
1393 uncaught exceptions.
1394 * testsuite/18_support/exception_ptr/62258.cc: New.
1396 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
1398 * doc/xml/manual/extensions.xml: Add cross-reference.
1399 * doc/html/manual/ext_compile_checks.html: Regenerate.
1401 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1403 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
1404 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
1406 2015-04-22 Renlin Li <renlin.li@arm.com>
1408 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
1409 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
1410 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
1411 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
1412 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
1414 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
1416 * doc/xml/manual/configure.xml: Update descriptions of options
1417 affecting dual ABI and add cross-references.
1418 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
1419 * doc/xml/manual/using.xml: Document ABI transition.
1420 * doc/html/*: Regenerate.
1422 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
1423 * doc/xml/manual/using.xml: Document newer -std options. Use better
1424 examples of nested namespaces.
1426 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
1428 * doc/xml/manual/concurrency_extensions.xml: Update documentation
1430 * doc/xml/manual/using.xml: Likewise. Improve markup.
1431 * doc/html/*: Regenerate.
1433 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1435 * scripts/extract_symvers.pl: Ignore elfdump error output.
1437 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
1440 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
1441 _List_const_iterator): Declare.
1442 (__distance): Declare new overloads for _List_iterator and
1443 _List_const_iterator.
1444 * include/bits/stl_list.h (__distance): New overloads for
1445 _List_iterator and _List_const_iterator.
1446 * testsuite/23_containers/list/61347.cc: New testcase.
1448 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
1450 * doc/xml/manual/evolution.xml: Fix typos.
1451 * doc/html/manual/api.html: Regenerate.
1453 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
1455 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
1456 alignment is larger-equal, not equal, to default alignment.
1458 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
1461 * config/abi/pre/gnu.ver: Export base object constructors for
1463 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1464 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1465 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1466 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1467 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1468 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1469 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1470 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1471 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
1472 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1473 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1474 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1475 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1476 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1477 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1478 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1479 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1480 * testsuite/27_io/basic_fstream/cons/base.cc: New.
1482 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
1484 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
1485 * doc/html/*: Regenerate.
1487 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
1489 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1491 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
1493 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1495 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1497 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
1499 * doc/xml/manual/test.xml: Improve documentation on running a subset
1501 * doc/html/manual/test.html: Regenerate.
1503 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1505 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1506 for GCC 5.1 release.
1507 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
1510 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
1512 * include/std/shared_mutex (shared_timed_mutex): Add comments to
1513 explain the logic in the non-pthread_rwlock_t version.
1514 (_Mutex): Remove redundant type.
1515 (_M_n_readers): Rename to _S_max_readers.
1516 (_M_write_entered, _M_readers): New convenience functions.
1517 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
1518 functions. Use predicates with condition variables. Simplify bitwise
1520 (try_lock_for, try_shared_lock_for): Convert duration to time_point
1521 and call try_lock_until or try_shared_lock_until respectively.
1522 (try_lock_until, try_shared_lock_until): Wait on the condition
1523 variables until the specified time passes.
1524 (unlock): Add Debug Mode assertion.
1525 (unlock_shared): Add Debug Mode assertion.
1526 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
1528 * include/std/shared_mutex (shared_timed_mutex): Only use
1529 pthread_rwlock_t when the POSIX Timeouts option is supported.
1530 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
1531 dg-require-gthreads-timed.
1532 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1533 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1534 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1536 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
1538 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1540 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
1541 Richard Henderson <rth@redhat.com>
1544 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
1546 * include/std/atomic (atomic): For types with a power of two size set
1547 alignment to at least the size.
1548 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1549 * testsuite/29_atomics/atomic/65147.cc: New.
1550 * testsuite/29_atomics/atomic_integral/65147.cc: New.
1552 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1554 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1555 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1556 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1558 2015-04-07 Jakub Jelinek <jakub@redhat.com>
1560 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1561 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1562 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1563 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1564 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1565 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1566 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1567 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1569 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
1572 * config/abi/pre/gnu.ver: Export operator+ for new strings.
1573 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
1574 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
1576 2015-03-28 Tim Shen <timshen@google.com>
1579 * include/bits/regex_constants.h: Use constexpr variables for flags.
1580 * testsuite/28_regex/constants/constexpr.cc: New testcase.
1582 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
1585 * include/std/chrono: Add using-directive for literals to std::chrono.
1586 * testsuite/20_util/duration/literals/65499.cc: New.
1588 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
1592 * include/std/thread (this_thread::sleep_for): Check for negative
1594 (this_thread::sleep_until): Check for times in the past.
1595 * testsuite/30_threads/this_thread/58038.cc: New.
1596 * testsuite/30_threads/this_thread/60421.cc: New.
1598 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
1602 * include/std/atomic (atomic<T>): Increase alignment for types with
1603 the same size as one of the integral types.
1604 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1605 * testsuite/29_atomics/atomic/62259.cc: New.
1607 2015-03-26 Richard Henderson <rth@redhat.com>
1610 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
1611 a fake pointer indicating type alignment.
1612 (__atomic_base<T *>::is_lock_free): Likewise.
1613 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
1615 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
1618 * testsuite/21_strings/basic_string/pthread33394.cc: Use
1619 dg-additional-options.
1621 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
1624 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
1626 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
1628 * testsuite/27_io/rvalue_streams-2.cc: New.
1630 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
1633 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
1635 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
1638 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
1639 * configure: Regenerate.
1640 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
1641 system_category): Use macros for versioned namespace.
1642 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
1644 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
1646 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
1647 test for unused for ARM.
1648 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
1649 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
1651 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
1653 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
1654 * include/ext/codecvt_specializations.h (encoding_state,
1655 encoding_char_traits): Remove abi-tag and use inline namespace.
1656 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
1658 2015-03-19 Jason Merrill <jason@redhat.com>
1660 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
1661 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
1663 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
1666 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
1667 get_catalogs): Add abi-tag.
1668 * include/ext/codecvt_specializations.h (encoding_state,
1669 encoding_char_traits): Likewise.
1670 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
1671 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
1672 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
1673 money_get_shim, money_put_shim, messages_shim): Likewise.
1674 * src/c++11/future.cc (future_error_category::message): Likewise.
1675 * src/c++11/system_error.cc (generic_error_category::message,
1676 system_error_category::message): Likewise.
1677 (__sso_string): Disable -Wabi-tag warnings.
1679 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
1682 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
1683 implementation for old glibc. Fix whitespace.
1685 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
1686 Torvald Riegel <triegel@redhat.com>
1688 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
1689 * config.h.in: Regenerate.
1690 * configure: Regenerate.
1691 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
1692 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
1693 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
1694 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
1697 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
1699 * libsupc++/nested_exception.h: Do not try to derive from final
1701 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
1704 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
1705 unused exception variable.
1706 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1707 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
1709 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
1711 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
1713 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
1714 * configure: Regenerate.
1716 * include/experimental/system_error: Fix include guard.
1718 2015-03-12 Renlin Li <renlin.li@arm.com>
1720 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
1723 2015-03-10 Tim Shen <timshen@google.com>
1726 * include/bits/regex.h (match_results<>::size,
1727 match_results<>::position, match_results<>::str,
1728 match_results<>::operator[], match_results<>::prefix,
1729 match_results<>::suffix, match_results<>::end,
1730 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
1731 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
1732 global __unmatched_sub. Add unmatched submatch as part of
1734 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
1735 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
1736 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
1739 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
1742 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
1743 for newlib targets. Really fix mixed line-endings this time.
1745 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
1747 * include/std/future (future_error(error_code)): Construct base
1748 class with error_code's message.
1749 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
1752 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
1754 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
1756 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
1757 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
1759 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
1762 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
1763 incomplete multibyte sequences correctly.
1764 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
1765 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
1766 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
1768 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
1769 Define convenience functions.
1770 (read_utf8_code_point): Return relevant constant to distinguish
1771 incomplete characters from invalid sequences.
1772 (read_utf16_code_point): Likewise. Check for invalid sequences.
1773 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
1774 (utf16_out): Check for invalid sequences.
1775 (utf16_span): Fix condition.
1776 (ucs2_out): Use is_high_surrogate.
1777 (ucs2_in): Use incomplete_mb_character constant and fix condition.
1778 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
1779 * testsuite/22_locale/conversions/buffer/1.cc: New.
1780 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
1781 char32_t instead of wchar_t.
1782 * testsuite/22_locale/conversions/string/3.cc: New.
1784 2015-03-03 Iain Sandoe <iain@codesourcery.com>
1787 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
1788 visibility for Darwin.
1789 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
1791 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
1793 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
1796 * include/std/scoped_allocator (__inner_type_impl,
1797 scoped_allocator_adaptor): Add defaulted copy assignment and move
1798 assignment operators.
1799 * testsuite/20_util/scoped_allocator/65279.cc: New.
1801 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
1804 * include/std/stdexcept (__sso_string): Don't use non-static member
1807 2015-02-28 Matthias Klose <doko@ubuntu.com>
1810 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
1812 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
1814 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
1815 * doc/html/manual/status.html: Regenerate.
1817 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
1820 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
1823 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
1825 * doc/html/manual/status.html: Regenerate.
1827 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
1830 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
1831 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
1833 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
1836 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
1837 (test01): Add explanatory comment. Keep only the bd1 sub-test and
1838 split out bd2, bd3, bd4, and bd5 sub-tests into...
1839 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
1840 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
1841 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
1842 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
1843 New separate files with the old parts.
1845 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
1847 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
1849 (utf16_in): Pass mode argument to write_utf16_code_point.
1850 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
1852 * testsuite/22_locale/codecvt/char16_t.cc: New.
1853 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
1855 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
1856 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
1858 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
1859 Jonathan Wakely <jwakely@redhat.com>
1861 * testsuite/22_locale/codecvt/char32_t.cc: New.
1863 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
1866 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
1867 empty string gets null-terminated.
1868 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
1870 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
1872 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
1873 mixed line-endings introduced in last change.
1875 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
1877 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
1878 for __NEWLIB__ macro with a dejagnu set macro.
1879 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
1881 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
1884 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
1885 special case for '\n'.
1886 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
1888 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
1890 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
1892 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
1895 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
1897 * include/c_std/cstdio (gets): Likewise.
1898 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
1899 with attributes used in darwin headers.
1901 2015-01-29 Jakub Jelinek <jakub@redhat.com>
1903 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
1904 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
1905 * configure: Regenerated.
1907 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
1909 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
1910 after vtv_cygmin is set.
1911 * configure: Regenerated.
1913 2015-01-29 Matthias Klose <doko@ubuntu.com>
1915 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
1917 * configure: Regenerate.
1919 2015-01-29 Caroline Tice <cmtice@google.com>
1921 Committing VTV Cywin/Ming patch for Patrick Wollgast
1922 * configure: Regenerate.
1923 * libsupc++/Makefile.in: Regenerate.
1924 * src/Makefile.in: Regenerate.
1926 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
1928 * include/bits/atomic_base.h: Use __always_inline__ instead of
1930 * include/bits/atomic_futex.h: Likewise.
1931 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
1932 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
1933 __packed__ instead of packed.
1934 * include/std/shared_mutex: Use __unused__ instead of unused.
1935 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
1936 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
1937 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
1939 2015-01-28 Caroline Tice <cmtice@google.com>
1941 Committing VTV Cywin/Ming patch for Patrick Wollgast
1942 * acinclude.m4: Define VTV_CYGMIN.
1943 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
1944 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
1945 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
1946 for Cygwin and MinGW.
1947 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
1948 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
1949 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
1951 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
1954 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
1955 * libsupc++/Makefile.in: Regenerate.
1956 * src/c++11/Makefile.in: Regenerate.
1958 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1960 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
1961 check for unsupported.
1962 (v3_target_compile_as_c): Likewise.
1964 2015-01-28 Richard Biener <rguenther@suse.de>
1967 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
1969 (pool::allocate): Adjust allocation size and alignment to
1971 (pool::free): Adjust pointer offsetting.
1973 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
1976 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
1977 shared_timed_mutex::try_lock_until): Only define when POSIX thread
1978 timeouts option is supported.
1979 (shared_timed_mutex::try_shared_lock_for,
1980 shared_timed_mutex::try_shared_lock_until): Likewise.
1982 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
1985 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
1986 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
1987 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
1988 and use cache's _M_grouping field.
1989 (__numpunct_fill_cache): Likewise.
1990 (__moneypunct_fill_cache): Improve comments.
1992 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
1994 * testsuite/23_containers/set/operations/2.cc: Add test for
1995 non-transparent comparison function.
1997 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
2000 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
2001 Remove SH4A inline asm and lock based implementations and use the
2002 defaults from ext/atomicity.h.
2004 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
2006 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
2007 new std::string constructors for byname facets.
2009 2015-01-22 Richard Biener <rguenther@suse.de>
2012 * libsupc++/eh_alloc.cc: Include new.
2013 (bitmask_type): Remove.
2014 (one_buffer): Likewise.
2015 (emergency_buffer): Likewise.
2016 (emergency_used): Likewise.
2017 (dependents_buffer): Likewise.
2018 (dependents_used): Likewise.
2019 (class pool): New custom fixed-size arena, variable size object
2021 (emergency_pool): New global.
2022 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
2023 (__cxxabiv1::__cxa_free_exception): Likewise.
2024 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
2025 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
2027 2015-01-22 Tim Shen <timshen@google.com>
2030 * include/bits/regex.h (basic_regex<>::basic_regex,
2031 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
2033 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
2035 2015-01-22 Tim Shen <timshen@google.com>
2038 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2039 regex_traits<>::lookup_classname): Correctly narrow input chars.
2040 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
2042 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2044 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
2046 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2048 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
2050 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2052 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
2053 * doc/xml/manual/status_cxx2014.xml: Update status.
2054 * doc/html/manual/status.html: Regenerate.
2056 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2059 * include/experimental/optional (bad_optional_access): Add default
2061 * testsuite/experimental/optional/requirements.cc: Test for default
2064 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2066 * include/bits/stl_map.h (map::find<>, map::count<>,
2067 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
2068 member function templates to perform heterogeneous lookup.
2069 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
2070 multimap::lower_bound<>, multimap::upper_bound<>,
2071 multimap::equal_range<>): Likewise.
2072 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
2073 multiset::lower_bound<>, multiset::upper_bound<>,
2074 multiset::equal_range<>): Likewise.
2075 * include/bits/stl_set.h (set::find<>, set::count<>,
2076 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2077 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
2078 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
2079 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
2080 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
2081 * testsuite/23_containers/map/operations/2.cc: New.
2082 * testsuite/23_containers/multimap/operations/2.cc: New.
2083 * testsuite/23_containers/multiset/operations/2.cc: New.
2084 * testsuite/23_containers/set/operations/2.cc: New.
2086 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2088 * config/abi/pre/gnu.ver: Export new constructors.
2089 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
2090 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
2091 specializations and declare explicit instantiations.
2092 * include/bits/locale_classes.h (locale, collate_byname): Add string
2094 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
2096 * include/bits/locale_facets_nonio.h (time_get_byname,
2097 time_put_byname, moneypunct_byname, messages_byname): Likewise.
2098 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
2099 codecvt_byname<char32_t>): Define explicit instantiations.
2100 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
2101 Instantiate string constructors.
2102 (ctype_byname): Define string constructor.
2103 * testsuite/22_locale/codecvt_byname/1.cc: New.
2104 * testsuite/22_locale/collate_byname/1.cc: New.
2105 * testsuite/22_locale/ctype_byname/2.cc: New.
2106 * testsuite/22_locale/messages_byname/1.cc: New.
2107 * testsuite/22_locale/moneypunct_byname/1.cc: New.
2108 * testsuite/22_locale/numpunct_byname/1.cc: New.
2110 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2113 * include/std/atomic (atomic_init): Define.
2114 * testsuite/29_atomics/atomic/64658.cc: New.
2116 2015-01-19 Tim Shen <timshen@google.com>
2119 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2120 regex_traits<>::lookup_classname): Support forward iterators.
2121 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
2122 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
2124 2015-01-19 Tim Shen <timshen@google.com>
2128 * include/bits/regex.h (basic_regex<>::basic_regex,
2129 basic_regex<>::assign, basic_regex<>::imbue,
2130 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
2131 imbuing basic_regex; Make assign() transactional against exception.
2132 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
2133 __compile_nfa SFINAE.
2134 * include/std/regex: Adjust include order to avoid __compile_nfa
2135 forward declaration.
2136 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
2137 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
2139 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
2140 Jonathan Wakely <jwakely@redhat.com>
2142 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
2143 on overloads for arrays.
2144 (cbegin, cend, rbegin, rend, crbegin, crend): New.
2145 * testsuite/24_iterators/range_access_cpp14.cc: New.
2147 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2150 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
2151 end of the second range.
2152 * testsuite/25_algorithms/is_permutation/64646.cc: New.
2154 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2156 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
2157 * doc/html/manual/status.html: Regenerate.
2159 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2161 * include/bits/atomic_futex.h: Use mutex and condition_variable when
2162 atomic int is not lock-free. Make member variables private.
2163 * src/c++11/futex.cc: Likewise.
2165 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
2167 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2170 * include/bits/atomic_futex.h: Use appropriate config macros for
2171 availability of std::mutex, std::condition and std::chrono.
2173 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2174 Jonathan Wakely <jwakely@redhat.com>
2176 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
2177 * doc/html/*: Regenerate.
2179 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2183 * include/bits/algorithmfwd.h (rotate): Return an iterator.
2184 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
2185 * testsuite/25_algorithms/rotate/dr488.cc: New.
2186 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
2187 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2189 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2192 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2195 * include/bits/atomic_base.h: Remove atomic integral typedefs as
2196 synonyms for __atomic_base<int> etc.
2197 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
2198 likewise for all atomic integral types.
2199 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
2200 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2202 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2205 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
2206 and define one-element specialization.
2207 * testsuite/20_util/tuple/56785.cc: New.
2209 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2211 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
2212 Remove unused header.
2213 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
2215 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2218 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2220 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
2221 * include/std/locale: Include new header.
2222 * include/Makefile.am: Add it.
2223 * include/Makefile.in: Regenerate.
2224 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
2225 * testsuite/22_locale/conversions/string/1.cc: New.
2226 * testsuite/22_locale/conversions/string/2.cc: New.
2227 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
2228 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
2231 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2233 * config/abi/pre/gnu.ver: Export new symbols.
2234 * include/Makefile.am: Add codecvt.
2235 * include/Makefile.in: Regenerate.
2236 * include/std/codecvt: New header.
2237 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
2238 __codecvt_utf8_utf16_base): Define specializations.
2239 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
2240 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
2241 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2244 2015-01-16 Torvald Riegel <triegel@redhat.com>
2246 * src/c++11/futex.cc: New file.
2247 * include/bits/atomic_futex.h: New file.
2248 * include/std/future (__future_base::_State_baseV2): Use
2249 atomic_futex_unsigned instead of mutex+condvar.
2250 * src/c++11/futex.cc: Likewise.
2251 * include/Makefile.am: Add atomic_futex.h.
2252 * include/Makefile.in: Likewise.
2253 * src/c++11/Makefile.am: Add futex.cc.
2254 * src/c++11/Makefile.in: Likewise.
2256 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2258 * acinclude.m4: Fix typo in comment.
2259 * configure: Regenerate.
2260 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
2261 codecvt<char16_t, char, mbstate_t>): Declare specializations.
2262 * include/bits/locale_facets.h: Reserve space for new specializations.
2263 * src/c++11/Makefile.am: Add codecvt.cc.
2264 * src/c++11/Makefile.in: Regenerate.
2265 * src/c++11/codecvt.cc: New.
2266 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
2268 * src/c++98/Makefile.in: Regenerate.
2269 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
2270 * src/c++98/localename.cc: Likewise.
2271 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
2272 * testsuite/22_locale/codecvt/utf8.cc: New.
2273 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
2274 specializations are installed in locale objects.
2276 2015-01-16 Torvald Riegel <triegel@redhat.com>
2278 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
2281 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
2284 * config/abi/pre/gnu.ver: Export fstream functions using new string.
2286 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
2289 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
2293 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
2295 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2297 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
2298 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
2299 Multi Processing Runtime Library".
2301 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
2304 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
2305 is_assignable arguments.
2306 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
2309 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2311 * libsupc++/unwind-cxx.h: Revert previous commit.
2313 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2315 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
2317 2015-01-09 Tim Shen <timshen@google.com>
2320 * include/bits/regex.h (match_results<>::swap): Use std::swap
2322 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
2324 * testsuite/28_regex/match_results/swap.cc: New testcase.
2326 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
2329 * include/std/type_traits (has_trivial_default_constructor,
2330 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
2332 * testsuite/20_util/has_trivial_copy_assign/requirements/
2333 explicit_instantiation.cc: Use -Wno-deprecated.
2334 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
2336 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
2337 * testsuite/20_util/has_trivial_copy_constructor/requirements/
2338 explicit_instantiation.cc: Likewise.
2339 * testsuite/20_util/has_trivial_copy_constructor/requirements/
2340 typedefs.cc: Likewise.
2341 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
2342 * testsuite/20_util/has_trivial_default_constructor/requirements/
2343 explicit_instantiation.c: Likewise.
2344 * testsuite/20_util/has_trivial_default_constructor/requirements/
2345 typedefs.cc: Likewise.
2346 * testsuite/20_util/has_trivial_default_constructor/value.cc:
2348 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
2350 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
2351 * testsuite/util/testsuite_common_types.h: Likewise.
2353 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
2355 * include/bits/hashtable_policy.h: Use __bool_constant.
2357 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
2359 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
2360 * libsupc++/Makefile.in: Regenerate.
2362 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
2364 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
2366 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2368 Update copyright years.
2370 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
2373 * testsuite/18_support/exception_ptr/64241.cc: Use
2374 dg-require-atomic-builtins.
2376 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2378 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
2381 2015-01-02 Tim Shen <timshen@google.com>
2384 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
2385 iterator, since the original one shouldn't be mutated.
2387 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2390 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
2391 (string::insert): Likewise.
2392 (string::replace): Likewise.
2393 (wstring::erase): Likewise.
2394 (wstring::insert): Likewise.
2395 (wstring::replace): Likewise.
2396 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
2398 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2401 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
2403 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2406 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
2407 Revert removal of dg-require-string-conversions.
2408 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
2410 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
2412 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
2414 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
2416 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
2418 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
2420 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
2422 * testsuite/21_strings/basic_string/numeric_conversions/char/
2423 stoull.cc: Likewise.
2424 * testsuite/21_strings/basic_string/numeric_conversions/char/
2425 to_string.cc: Likewise.
2427 Copyright (C) 2015 Free Software Foundation, Inc.
2429 Copying and distribution of this file, with or without modification,
2430 are permitted in any medium without royalty provided the copyright
2431 notice and this notice are preserved.