1 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
3 * include/c_global/cmath: Revert fix for libstdc++/58625, no
4 longer necessary (__builtin_signbit is now type-generic).
6 2015-08-18 Jonathan Wakely <jwakely@redhat.com>
9 * testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc:
10 Fix use of safe-bool idiom that isn't valid in C++11.
12 * include/bits/ptr_traits.h: Include <bits/move.h> for addressof.
15 * doc/xml/manual/configure.xml (manual.intro.setup.configure): Add
16 caveats for --enable-concept-checks. Improve link text.
17 * doc/xml/manual/diagnostics.xml (std.diagnostics.concept_checking):
19 * doc/html/*: Regenerate.
20 * include/bits/stl_deque.h (deque): Only use concept checks in C++03.
21 * include/bits/stl_stack.h (stack): Likewise.
22 * include/bits/stl_vector.h (vector): Likewise.
24 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
26 * include/experimental/any (any::operator=(const any&)): Move check
28 (any::operator=(any&&)): Add check for self-assignment.
29 (any::operator=(_ValueType&&)): Constrain template argument.
30 (any::swap(any&)): Add check for self-swap.
31 * testsuite/experimental/any/assign/self.cc: Test move and swap.
32 * testsuite/experimental/any/misc/any_cast_neg.cc: Update dg-error.
34 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
36 * include/experimental/array: Add feature-test macro.
37 * testsuite/experimental/array/neg.cc: Update dg-error.
39 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
41 * testsuite/experimental/array/neg.s: Remove.
42 * testsuite/experimental/array/neg.ii.gz: Remove.
44 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
46 Implement std::experimental::fundamentals_v2::make_array and
47 std::experimental::fundamentals_v2::to_array.
48 * include/Makefile.am: Add array.
49 * include/Makefile.in: Add array.
50 * include/experimental/array: New.
51 * testsuite/experimental/array/make_array.cc: Likewise.
52 * testsuite/experimental/array/neg.cc: Likewise.
53 * doc/html/manual/status.html: Mark make_array as Y.
54 * doc/xml/manual/status_cxx2017.xml: Likewise.
56 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
58 * include/bits/alloc_traits.h: Add feature-test macro.
59 * include/bits/allocator.h: Likewise.
60 * include/bits/range_access.h: Likewise.
61 * include/bits/stl_map.h: Likewise.
62 * include/bits/unordered_map.h: Likewise.
64 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
66 * testsuite/30_threads/mutex/unlock/2.cc: New.
67 * testsuite/30_threads/recursive_mutex/unlock/2.cc: New.
68 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: New.
69 * testsuite/30_threads/shared_mutex/unlock/1.cc: New.
70 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: New.
71 * testsuite/30_threads/timed_mutex/unlock/2.cc: New.
73 2015-08-13 Eelis van der Weegen <eelis@eelis.net>
75 * include/std/shared_mutex (shared_mutex::unlock()): Fix typo.
77 2015-08-12 Caroline Tice <cmtice@google.com>
79 PR 66521, Contributed by Eric Gallager
80 * acinclude.m4 (VTV_CXXLINKFLAGS): Make this variable OS-specific, and
81 fix the rpath flag to work properly for darwin.
82 * configure: Regenerated.
84 2015-08-12 Jonathan Wakely <jwakely@redhat.com>
86 * doc/xml/manual/appendix_contributing.xml: Update patch email policy.
87 * doc/xml/manual/status_cxx2017.xml: Update status table.
88 * doc/html/manual/*: Regenerate.
90 2015-08-09 Ville Voutilainen <ville.voutilainen@gmail.com>
92 Implement N4279, Improved insertion interface for unique-key maps.
93 * include/bits/stl_map.h (try_emplace, insert_or_assign): New.
94 * include/bits/stl_tree.h (_M_get_insert_unique_pos,
95 _M_get_insert_equal_pos, _M_get_insert_hint_unique_pos,
96 _M_get_insert_hint_equal_pos): Make public.
97 * include/bits/unordered_map.h (try_emplace, insert_or_assign): New.
98 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
100 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
101 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
103 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
106 2015-08-08 Ville Voutilainen <ville.voutilainen@gmail.com>
108 Implement N4089 Safe conversions in unique_ptr<T[]> (LWG 2118)
109 and N4366 LWG 2228: Missing SFINAE rule in unique_ptr
111 * include/bits/unique_ptr.h
112 (__remove_cv, __is_derived_Tp): Remove.
113 (default_delete::default_delete(const default_delete<_Up[]>)):
114 Constrain with array convertibility.
115 (default_delete::operator(_Up*)): Turn into a template,
116 constrain with array convertibility.
117 (__safe_conversion_up): New, single object version.
118 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Constrain with deleter
120 (unique_ptr::operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
121 is_assignable as a constraint.
122 (__safe_conversion_up): Array version, renamed from __safe_conversion,
123 updated to implement N4089.
124 (__safe_conversion_raw): New.
125 (unique_ptr(_Up)): Turn into a template, constrain with array
128 typename conditional<is_reference<deleter_type>::value,
129 deleter_type, const deleter_type&>::type)): Likewise.
130 (unique_ptr(_Up, typename
131 remove_reference<deleter_type>::type&&)): Likewise.
132 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Likewise.
133 (operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
134 is_assignable as a constraint (array version).
135 (reset(_Up)): Turn into a template, constrain with array
137 (reset(nullptr_t)): New.
138 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
139 * testsuite/20_util/unique_ptr/assign/48635.cc: Likewise.
140 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
141 * testsuite/20_util/unique_ptr/assign/cv_qual.cc: Likewise.
142 * testsuite/20_util/unique_ptr/cons/cv_qual.cc: Likewise.
143 * testsuite/20_util/unique_ptr/dr2228.cc: New.
144 * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Adjust.
146 2015-08-05 Nikolai Bozhenov <n.bozhenov@samsung.com>
148 * testsuite/20_util/enable_shared_from_this/cons/constexpr.cc: Remove
149 redundant -save-temps option.
150 * testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise.
151 * testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
152 * testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.
153 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
154 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
156 2015-08-03 Jonathan Wakely <jwakely@redhat.com>
159 * include/bits/range_access.h (size, empty, data): Fix _N bad name.
161 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
163 * testsuite/experimental/filesystem/operations/current_path.cc: Use
164 canonical paths for comparisons.
166 2015-07-30 Tim Shen <timshen@google.com>
168 * include/bits/regex_automaton.h (_State_base, _State<>):
169 Remove _TraitsT dependency from _State<>; Make matcher member
170 into the union to reduce struct size.
171 * include/bits/regex_automaton.tcc (_State_base<>::_M_print,
172 _State_base<>::_M_dot, _StateSeq<>::_M_clone):
173 Adjust to fit the interface. Factor out common parts in
174 _M_clone as _State<>::_M_has_alt.
175 * include/bits/regex_executor.h (_Executer<>::_M_lookahead):
176 Only pass state id instead of the whole state.
177 * include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
178 _Executer<>::_M_lookahead): Adjust to fit the interface.
179 * include/std/regex: Include <ext/aligned_buffer.h>
181 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
183 * include/experimental/any (any::operator=(const any&)): Check for
185 * testsuite/experimental/any/assign/self.cc: New.
186 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
188 2015-07-29 Jonathan Wakely <jwakely@redhat.com>
191 * testsuite/lib/libstdc++.exp (v3-build_support): Compile
192 testsuite_shared.cc with -std=gnu++98.
194 2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
196 * include/bits/range_access.h: Change class to typename in every
198 (size, empty, data): New functions from N4280.
199 * testsuite/24_iterators/container_access.cc: New.
202 * include/bits/functional_hash.h (__hash_enum): New.
203 (hash): Derive from __hash_enum.
204 * testsuite/20_util/hash/60970.cc: New.
206 2015-07-29 Tim Shen <timshen@google.com>
209 * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
210 _BracketMatcher<>::_M_add_collating_element): Change signature
211 to make checking the and of bracket expression easier.
212 * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
213 Treat '-' as a valid literal if it's at the end of bracket expression.
214 * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
217 2015-07-24 Jonathan Wakely <jwakely@redhat.com>
219 * include/bits/atomic_futex.h [_GLIBCXX_HAVE_LINUX_FUTEX]
220 (_M_load_and_test_until): Whitespace.
221 (_M_load_and_test): Value-initialize the unused durations.
222 (_M_load_when_equal): Add missing return value.
224 2015-07-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
226 * fragment.am (AM_CPPFLAGS): Add CPPFLAGS.
227 * Makefile.in: Regenerate.
228 * doc/Makefile.in: Regenerate.
229 * include/Makefile.in: Regenerate.
230 * libsupc++/Makefile.in: Regenerate.
231 * po/Makefile.in: Regenerate.
232 * python/Makefile.in: Regenerate.
233 * src/Makefile.in: Regenerate.
234 * src/c++11/Makefile.in: Regenerate.
235 * src/c++98/Makefile.in: Regenerate.
236 * src/filesystem/Makefile.in: Regenerate.
237 * testsuite/Makefile.in: Regenerate.
239 2015-07-23 DJ Delorie <dj@redhat.com>
241 * include/bits/functional_hash.h: Add specializations for __intN
244 * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp (__gnu_pbds):
245 Guard against values that might exceed size_t's precision.
247 2015-07-20 Jason Merrill <jason@redhat.com>
249 * include/bits/c++config: Fix abi_tag in special modes.
251 2015-07-19 Jonathan Wakely <jwakely@redhat.com>
253 * doc/xml/manual/status_cxx2017.xml: Fix URL for N4279.
254 * doc/html/manual/status.html: Regenerate.
256 2015-07-17 Jonathan Wakely <jwakely@redhat.com>
258 * doc/xml/manual/status_cxx2011.xml: Add caveats for native_handle.
259 * doc/html/manual/status.html: Regenerate.
261 2015-07-16 François Dumont <fdumont@gcc.gnu.org>
263 * include/bits/stl_algobase.h (__miter_base): Move...
264 * include/bits/cpp_type_traits.h: ...here.
265 * include/debug/functions.h (__foreign_iterator_aux): Use latter.
266 * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
268 2015-07-13 Jonathan Wakely <jwakely@redhat.com>
271 * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
272 endianness bit in mode.
273 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
275 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
276 * include/bits/forward_list.h (forward_list::swap): Make noexcept
278 * include/bits/hashtable.h (_Hashtable::swap): Do not use
280 * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
282 * include/bits/stl_deque.h (deque::swap): Likewise.
283 (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
284 * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
285 (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
286 * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
287 _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
288 * include/bits/stl_multimap.h (multimap::swap,
289 swap(multimap&, multimap&)): Likewise.
290 * include/bits/stl_multiset.h (multiset::swap,
291 swap(multiset&, multiset&)): Likewise.
292 * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
293 * include/bits/stl_tree.h (_Rb_tree::swap,
294 swap(_Rb_tree&, _Rb_tree&)): Likewise.
295 * include/bits/stl_vector.h (vector::swap): Make noexcept
297 (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
298 * include/debug/deque (deque::swap, swap): Likewise.
299 * include/debug/forward_list (swap): Add noexcept.
300 * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
301 * include/debug/map.h (map::swap, swap): Likewise.
302 * include/debug/multimap.h (multimap::swap, swap): Likewise.
303 * include/debug/multiset.h (multiset::Swap, swap): Likewise.
304 * include/debug/set.h (set::swap, swap): Likewise.
305 * include/debug/unordered_map (unordered_map::swap,
306 unordered_multimap::swap, swap): Likewise.
307 * include/debug/unordered_set (unordered_set::swap,
308 unordered_multiset::swap, swap): Likewise.
309 * include/debug/vector (vector::swap, swap): Likewise.
310 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
312 * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
313 * include/profile/forward_list (swap): Add noexcept.
314 * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
315 * include/profile/map.h (map::swap, swap): Likewise.
316 * include/profile/multimap.h (multimap::swap, swap): Likewise.
317 * include/profile/multiset.h (multiset::swap, swap): Likewise.
318 * include/profile/set.h (set::swap, swap): Likewise.
319 * include/profile/unordered_map (swap): Likewise.
320 * include/profile/unordered_set (swap): Likewise.
321 * include/profile/vector (vector::swap, swap): Likewise. Remove
322 overloads for swapping rvalues.
323 * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
324 for noexcept on swap.
325 * testsuite/23_containers/forward_list/allocator/noexcept.cc:
327 * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
328 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
329 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
330 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
331 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
332 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
334 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
336 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
338 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
340 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
341 * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
342 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
345 2015-07-13 John Marino <gnugcc@marino.st>
347 * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
348 _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
349 _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
351 2015-07-05 François Dumont <fdumont@gcc.gnu.org>
353 * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
355 * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
358 2015-07-03 Jonathan Wakely <jwakely@redhat.com>
360 * doc/xml/manual/status_cxx2017.xml: Update status table.
361 * doc/html/manual/*: Regenerate.
363 2015-07-03 Ville Voutilainen <ville.voutilainen@gmail.com>
365 Implement std::experimental::fundamentals_v2::propagate_const.
366 * include/Makefile.am: Add propagate_const.
367 * include/Makefile.in: Regenerate.
368 * include/experimental/propagate_const: New.
369 * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
370 * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
371 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
373 * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
374 * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
375 * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
376 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
377 * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
378 * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
379 * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
380 * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
381 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
382 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
383 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
384 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
385 * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
386 * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
388 2015-07-02 Jonathan Wakely <jwakely@redhat.com>
390 * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
391 --with-default-libstdcxx-abi
392 * configure: Regenerate.
393 * doc/xml/manual/configure.xml: Document valid arguments.
395 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
397 * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
398 to avoid unused variable warning.
399 (__set_and_release): Use __p after __atomic_store to avoid unused
402 2015-07-01 Jonathan Wakely <jwakely@redhat.com>
404 * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
405 (__allocator_traits_base): New base class.
406 (__alloc_rebind): Reimplement in terms of detection idiom.
407 (allocator_traits): Derive from __allocator_traits_base. Reimplement
408 nested types in terms of detection idiom. Simplify SFINAE constraints
409 on overloaded static member functions.
410 * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
412 * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
413 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
414 dg-error line number.
416 * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
417 __ptrtr_rebind, __ptrtr_not_void): Remove
418 (__get_first_arg, __replace_first_arg, __make_not_void): Define new
420 (__detected_or_): New detection trait.
421 (pointer_traits): Use new traits.
422 * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
423 * testsuite/20_util/pointer_traits/requirements/
424 explicit_instantiation.cc: Use valid arguments to pointer_traits.
426 * doc/xml/manual/status_cxx2017.xml: Update status table.
427 * include/experimental/type_traits (void_t, is_detected,
428 is_detected_v, detected_t, detected_or, detected_or_t,
429 is_detected_exact, is_detected_exact_v, is_detected_convertible,
430 is_detected_convertible_v): Define.
431 * include/std/type_traits (__detector, __detected_or, __detected_or_t,
432 __detected_or_t_): Define.
433 * testsuite/experimental/type_traits/detection.cc: New.
435 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
437 * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
438 * doc/Makefile.in: Regenerate.
440 * include/bits/stl_pair.h: Replace class keyword with typename.
442 2015-06-30 Ville Voutilainen <ville.voutilainen@gmail.com>
444 Implement N4387, "Improving pair and tuple", and LWG 2367.
446 * include/bits/stl_pair.h (_ConstructiblePair,
447 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
448 _ImplicitlyMoveConvertiblePair): New.
449 (pair()): Constrain it.
450 (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
451 pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
452 pair(pair<_U1, _U2>&&)): Make conditionally explicit.
453 * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
454 (tuple()): Constrain it.
455 (tuple(const _UElements&...), tuple(_UElements&&...),
456 tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
457 tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
458 tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
459 tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
460 tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
461 tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
462 tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
463 tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
464 conditionally explicit.
465 * include/experimental/functional (__boyer_moore_array_base): Name
466 array type explicitly instead of using an empty braced-init-list.
467 * testsuite/20_util/pair/cons/explicit_construct.cc: New.
468 * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
469 * testsuite/20_util/pair/requirements/dr2367.cc: New.
470 * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
471 * testsuite/20_util/tuple/requirements/dr2367.cc: New.
473 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
475 * configure: Regenerate.
477 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
479 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
481 * include/debug/functions.h
482 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
483 * include/debug/safe_iterator.h
484 (__gnu_debug::_Sequence_traits): New.
485 (__gnu_debug::__get_distance_from_begin): New.
486 (__gnu_debug::__get_distance_to_end): New.
487 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
488 distance information. Add optional check_dereferenceable parameter,
490 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
491 default definition...
492 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
493 (__gnu_debug::__unsafe): Likewise.
494 * include/debug/helper_functions.h: ...here. New.
495 (__gnu_debug::__unsafe): New helper function to remove safe iterator
497 * include/debug/stl_iterator.h: New. Include latter.
498 * include/bits/stl_iterator.h: Include latter in debug mode.
499 * include/debug/stl_iterator.tcc: Adapt.
500 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
501 overload for _Safe_local_iterator.
502 (__gnu_debug::__unsafe): Likewise.
503 * include/debug/safe_local_iterator.tcc: Adapt.
504 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
505 (__glibcxx_check_insert_range): Add _Dist parameter.
506 (__glibcxx_check_insert_range_after): Likewise.
507 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
508 _GLIBCXX_DEBUG_PEDASSERT.
509 * include/debug/deque (deque<>::assign): Remove iterator debug layer
511 (deque<>::insert): Likewise.
512 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
513 (forward_list<>::splice_after): Use latter.
514 (forward_list<>::assign): Remove iterator debug layer when possible.
515 (forward_list<>::insert_after): Likewise.
516 (__gnu_debug::_Sequence_traits<>): Partial specialization.
517 * include/debug/list (list<>::assign): Remove iterator debug layer when
519 (list<>::insert): Likewise.
520 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
521 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
523 * include/debug/multimap.h (multimap<>::insert): Likewise.
524 * include/debug/set.h (set<>::insert): Likewise.
525 * include/debug/multiset.h (multiset<>::insert): Likewise.
526 * include/debug/string (basic_string<>::append, basic_string<>::assign,
527 basic_string<>::insert, basic_string<>::replace): Likewise.
528 * include/debug/unordered_map
529 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
530 * include/debug/unordered_set
531 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
532 * include/debug/vector
533 (vector<>::assign, vector<>::insert): Likewise.
534 * include/Makefile.am: Add new debug headers.
535 * include/Makefile.in: Regenerate.
537 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
539 * doc/xml/manual/intro.xml: Document LWG 2108 status.
540 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
542 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
543 * include/bits/forward_list.h
544 (forward_list::operator=(forward_list&&)): Use __bool_constant.
545 (forward_list::swap(forward_list&)): Add noexcept.
546 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
548 (_Hashtable::swap(_Hashtable&)): Likewise.
549 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
550 Use _Alloc_traits::is_always_equal.
551 (deque::operator=(deque&&)): Likewise.
552 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
554 (swap(deque&, deque&)): Add noexcept.
555 * include/bits/stl_list.h (list::operator=(list&&)): Use
557 (swap(list&, list&)): Add noexcept.
558 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
560 (swap(map&, map&)): Add noexcept.
561 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
562 _Compare in noexcept.
563 (swap(multimap&, multimap&)): Add noexcept.
564 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
565 _Compare in noexcept.
566 (swap(multiset&, multiset&)): Add noexcept.
567 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
569 (swap(set&, set&)): Add noexcept.
570 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
571 _Compare in noexcept.
572 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
574 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
576 (swap(vector&, vector&)): Add noexcept.
577 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
578 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
579 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
580 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
581 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
583 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
584 __allocator_always_compares_equal.
585 * include/ext/array_allocator.h (array_allocator::is_always_equal):
587 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
588 __propagate_on_move, __propagate_on_swap): Remove.
589 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
590 scoped_allocator_adaptor::propagate_on_container_move_assignment,
591 scoped_allocator_adaptor::propagate_on_container_swap): Define with
592 __and_ instead of __any_of.
593 (scoped_allocator_adaptor::is_always_equal): Define.
594 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
595 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
596 derive from true_type or false_type.
597 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
598 is_always_equal member and remove the trait specialization.
599 * testsuite/23_containers/vector/52591.cc: Likewise.
600 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
601 Adjust dg-error line number.
602 * testsuite/23_containers/deque/requirements/dr438/
603 constructor_1_neg.cc: Likewise.
604 * testsuite/23_containers/deque/requirements/dr438/
605 constructor_2_neg.cc: Likewise.
606 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
608 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
610 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
612 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
614 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
616 * testsuite/23_containers/vector/requirements/dr438/
617 constructor_1_neg.cc: Likewise.
618 * testsuite/23_containers/vector/requirements/dr438/
619 constructor_2_neg.cc: Likewise.
620 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
623 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
624 * include/bits/stl_map.h (map::map()): Likewise.
625 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
626 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
627 * include/bits/stl_set.h (set::set()): Likewise.
629 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
631 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
633 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
635 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
637 (basic_string<>::back()): Likewise.
638 (basic_string<>::pop_back()): Likewise.
640 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
642 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
643 dg-error line numbers.
644 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
647 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
649 * include/debug/array: Include <array>. Add version namespace when
650 specializing tuple interface to array. Add specialization for
651 __is_tuple_like_impl.
652 * include/profile/array: Likewise.
653 * include/std/array: Include <utility>. Add specialization for
654 __is_tuple_like_impl.
656 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
657 * include/std/utility: ... here. Include <type_traits>.
658 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
659 dg-error line number.
660 * testsuite/23_containers/array/tuple_interface/
661 tuple_element_debug_neg.cc: Likewise.
663 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
665 * testsuite/26_numerics/complex/value_operations/1.cc: Use
666 non-negative rho argument.
668 * include/debug/list (__gnu_debug::list): Use allocator-aware
669 _Safe_container base.
670 * include/debug/string (__gnu_debug::basic_string): Use
671 allocator-aware _Safe_container base for cxx11 ABI.
673 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
674 (wstring_convert): Move into __cxx11 namespace.
675 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
679 * include/bits/stl_uninitialized.h
680 (__uninitialized_copy::__uninit_copy): Cast expression to void.
682 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
685 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
686 (list::list(const list&)): Use allocator propagation trait. Use
687 _M_assign_dispatch to copy elements.
688 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
689 (_List_node::_M_valptr()): Add accessor for stored value.
690 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
691 (_List_base, list): Use allocator traits.
692 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
693 (_List_base::_M_move_nodes): New function.
694 (_List_base(_List_base&&)): Use _M_move_nodes.
695 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
696 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
698 (list(size_type)): Add allocator parameter.
699 (list(const list&)): Use allocator propagation trait.
700 (list(const list&, const allocator_type&)): New constructor.
701 (list(list&&, const allocator_type&)): Likewise.
702 (list::operator=(list&&), list::swap(list&)): Use allocator
704 (list::_M_move_assign): New functions.
705 * include/debug/list: Add allocator-extended constructors.
706 * include/profile/list: Likewise.
707 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
708 function to get value from _List_node.
709 (StdListPrinter): Use get_value_from_list_node.
710 * testsuite/23_containers/list/allocator/copy.cc: New.
711 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
712 * testsuite/23_containers/list/allocator/minimal.cc: New.
713 * testsuite/23_containers/list/allocator/move.cc: New.
714 * testsuite/23_containers/list/allocator/move_assign.cc: New.
715 * testsuite/23_containers/list/allocator/noexcept.cc: New.
716 * testsuite/23_containers/list/allocator/swap.cc: New.
717 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
718 Adjust dg-prune-output line number.
719 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
721 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
724 * include/bits/forward_list.h
725 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
727 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
728 (forward_list(const _Alloc&)): Split default constructor out to
730 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
732 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
733 swap call with two assignments.
734 * include/bits/forward_list.tcc
735 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
736 move elements when allocators are not equal.
737 * include/debug/forward_list (forward_list(const allocator_type&)):
738 Split default constructor out to separate function.
739 * include/profile/forward_list (forward_list(const _Alloc&)):
742 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
743 Remove unnecessary uses of operator& and static_cast.
744 * include/bits/forward_list.tcc
745 (forward_list::operator=(const forward_list&)): Use __addressof
746 instead of operator&.
747 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
748 Remove invalid static_casts.
749 * include/debug/forward_list: Use __addressof instead of operator&.
750 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
752 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
753 __is_nothrow_swappable.
755 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
757 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
759 * include/bits/list.tcc (list::operator=(const list&), list::merge):
760 Use __addressof instead of operator&.
761 (list::sort): Use array-to-pointer decay instead of operator&.
762 * include/bits/stl_list.h (list::splice): Use __addressof instead of
764 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
766 * include/debug/functions.h (__check_singular): Likewise.
767 * include/debug/list (list::splice, list::merge): Likewise.
768 * testsuite/23_containers/list/modifiers/addressof.cc: New.
771 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
774 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
776 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
779 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
782 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
786 * config/cpu/alpha/atomic_word.h: Remove.
787 * config/cpu/ia64/atomic_word.h: Remove.
788 * config/cpu/powerpc/atomic_word.h: Remove.
789 * config/os/aix/atomic_word.h: Remove.
790 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
791 Use generic definition.
793 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
797 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
798 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
799 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
800 * include/ext/atomicity.h: Likewise.
801 * include/tr1/shared_ptr.h: Likewise.
802 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
804 (__set_and_release): Likewise.
805 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
807 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
808 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
811 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
813 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
814 debug and profile modes.
815 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
816 for swap in C++11 and later.
818 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
821 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
824 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
827 * testsuite/22_locale/conversions/string/66441.cc: New.
828 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
829 in the output string for BOM and complete result.
832 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
833 for single UTF-16 units.
834 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
836 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
838 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
839 outer scope and rename to ...
840 (std::__hash_is_transparent<>): ... this.
841 * include/debug/stl_map.h (map::find<>,
842 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
843 member function templates to perform heterogeneous lookup.
844 * include/debug/stl_multimap.h (multimap::find<>,
845 multimap::lower_bound<>, multimap::upper_bound<>,
846 multimap::equal_range<>): Likewise.
847 * include/debug/stl_multiset.h (multiset::find<>,
848 multiset::lower_bound<>, multiset::upper_bound<>,
849 multiset::equal_range<>): Likewise.
850 * include/debug/stl_set.h (set::find<>,
851 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
852 * include/profile/stl_map.h (map::find<>, map::count<>,
853 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
854 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
855 multimap::lower_bound<>, multimap::upper_bound<>,
856 multimap::equal_range<>): Likewise.
857 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
858 multiset::lower_bound<>, multiset::upper_bound<>,
859 multiset::equal_range<>): Likewise.
860 * include/profile/stl_set.h (set::find<>, set::count<>,
861 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
862 * testsuite/23_containers/map/operations/1.cc: Check const variants.
863 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
864 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
865 * testsuite/23_containers/set/operations/1.cc: Likewise.
867 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
869 * doc/xml/manual/status_cxx2017.xml: Update status tables.
870 * doc/html/manual/*: Regenerate.
871 * include/std/type_traits (bool_constant): Define.
872 * testsuite/20_util/bool_constant/requirements.cc: New.
873 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
874 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
876 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
879 * include/std/shared_mutex (__shared_mutex_pthread,
880 __shared_mutex_cv): New helper types implementing the shared mutex
882 (shared_mutex): New type for C++17.
883 (shared_timed_mutex): Derive from one of the new helper types.
884 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
885 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
886 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
887 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
889 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
890 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
892 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
894 Add __is_nothrow_swappable and take it into use.
895 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
896 * include/bits/move.h (swap): Add constraints in C++11 and later.
897 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
898 for the free swap function for pair.
899 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
900 for the free swap functions for queue and priority_queue.
901 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
902 for the free swap function for stack.
903 * include/debug/array (swap): Use __is_nothrow_swappable
904 for the free swap function for array.
905 * include/profile/array (swap): Likewise.
906 * include/std/array (swap): Likewise.
907 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
908 * include/std/type_traits (__is_swappable_impl::__is_swappable,
909 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
910 * testsuite/20_util/is_nothrow_swappable/requirements/
911 explicit_instantiation.cc: New.
912 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
914 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
916 2015-06-03 François Dumont fdumont@gcc.gnu.org>
918 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
920 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
922 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
923 * doc/html/manual/*: Regenerate.
925 * doc/html/ext/lwg-active.html: Update to R93.
926 * doc/html/ext/lwg-closed.html: Likewise.
927 * doc/html/ext/lwg-defects.html: Likewise.
928 * doc/html/manual/*: Regenerate.
929 * doc/xml/manual/intro.xml: Document status of several DRs.
931 2015-06-02 Renlin Li <renlin.li@arm.com>
933 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
935 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
937 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
938 environment variable.
940 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
943 * include/bits/stl_algobase.h (__fill_a): Check length before calling
946 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
948 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
949 instead of checking for null pointers.
950 (__lexicographical_compare<true>::__lc): Only check shorter length.
952 2015-05-29 François Dumont fdumont@gcc.gnu.org>
954 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
955 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
956 * include/debug/assertions.h: ...here, new.
957 * include/debug/formatter.h
958 (_Error_formatter::_Is_iterator_value_type): New.
959 (_Error_formatter::_Is_instance): New.
960 (_Error_formatter::_Parameter): Make public and not friend anymore.
961 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
962 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
964 (_Error_formatter::_Parameter::_Type): New.
965 (_Error_formatter::_Parameter::_Instance): New, inherit from
967 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
968 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
969 overloads take iterator through a const reference.
970 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
972 (_Parameter(const _Type&, const char*, _Is_instance)): New.
973 (_Error_formatter::_M_print_type): Delete.
974 (_Error_formatter::_M_iterator_value_type): New.
975 (_Error_formatter::_M_instance): New.
976 * include/Makefile.am: Add new above debug file.
977 * include/Makefile.in: Regenerate.
978 * include/debug/functions.h
979 (__check_dereferenceable(const _Safe_iterator<>&),
980 __valid_range(const _Safe_iterator<>&),
981 __is_safe_random_iterator<_Safe_iterator<>>): Move...
982 * include/debug/safe_iterator.h: ... here.
983 Replace debug.h include with assertions.h.
984 (__check_singular_aux): Move...
985 * include/debug/safe_base.h: ... here.
986 * include/debug/functions.h
987 (__check_dereferenceable(const _Safe_local_iterator<>&),
988 __valid_range(const _Safe_local_iterator<>&): Move...
989 * include/debug/safe_local_iterator.h: ...here.
990 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
991 Remove _Safe_iterator declaration.
992 * include/debug/safe_unordered_container.h: Replace debug.h with
994 * include/debug/array: Replace safe_sequence.h include with
995 formatter.h and macros.h.
996 * include/debug/deque: Include functions.tcc.
997 * include/debug/forward_list: Likewise.
998 * include/debug/list: Likewise.
999 * include/debug/string: Likewise.
1000 * include/debug/vector: Likewise.
1001 * include/bits/unique_ptr.h: Replace debug.h include with new
1003 * include/bits/stl_iterator_base_funcs.h: Likewise.
1004 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
1005 Adjust dg-error line number.
1006 * testsuite/23_containers/array/tuple_interface/
1007 tuple_element_debug_neg.cc: Likewise.
1008 * src/c++11/debug.cc: Adapt.
1010 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
1012 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
1013 * doc/html/manual/*: Regenerate.
1015 * include/std/future (__async_result_of): New alias template.
1016 (async): Use __async_result_of to pass decayed types to result_of.
1017 * testsuite/30_threads/async/lwg2021.cc: New.
1018 * doc/xml/manual/intro.xml: Document LWG 2021 status.
1021 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
1022 memcmp with null pointers.
1023 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
1026 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
1029 * include/profile/array (array::data): Use _S_ptr.
1030 * include/debug/array (array::data): Likewise.
1033 * include/std/array (__array_traits::_S_ptr): New function.
1034 (array::data): Use _S_ptr to avoid creating invalid reference.
1035 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
1036 dg-error line numbers.
1037 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1040 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
1042 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
1043 instead of downcasting.
1044 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
1045 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
1046 (_Rb_tree::_S_iter): Remove.
1047 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
1048 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
1049 instead of _S_lower_bound_tr
1050 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
1051 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
1052 instead of calling _S_lower_bound_tr.
1053 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
1054 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
1055 instead of calling _S_upper_bound_tr.
1056 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
1057 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
1058 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
1059 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
1060 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
1061 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
1062 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
1063 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
1066 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
1067 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
1069 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
1070 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
1071 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
1072 alignment of _Tp as a member subobject, not as a complete object.
1073 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
1074 _Link_type manually as it might not be in the debug info.
1076 2015-05-26 Doug Evans <dje@google.com>
1078 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
1080 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
1083 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
1085 * include/bits/locale_conv.h: Fix copyright years.
1086 * include/bits/quoted_string.h: Likewise.
1087 * src/filesystem/Makefile.am: Likewise.
1088 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
1089 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
1091 * testsuite/22_locale/conversions/string/1.cc: Likewise.
1092 * testsuite/22_locale/conversions/string/2.cc: Likewise.
1093 * testsuite/22_locale/conversions/string/3.cc: Likewise.
1094 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
1096 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
1098 * testsuite/util/testsuite_fs.h: Likewise.
1100 2015-05-23 François Dumont fdumont@gcc.gnu.org>
1103 * include/debug/functions.h (__check_sorted_aux): Cast expression to
1106 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
1109 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
1110 Don't use isync. Use lwsync if available.
1111 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
1112 powerpc cpu definition.
1114 2015-05-21 Jason Merrill <jason@redhat.com>
1116 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
1117 * libsupc++/del_op.cc: Likewise.
1119 2015-05-20 François Dumont fdumont@gcc.gnu.org>
1121 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
1123 (_Error_formatter::_M_print_type): New.
1124 * src/c++11/debug.cc
1125 (_Error_formatter::_Parameter::_M_print_field): Use latter.
1126 (_Error_formatter::_M_print_type): Implement latter using
1127 __cxaabiv1::__cxa_demangle to print demangled type name.
1129 * include/bits/cpp_type_traits.h
1130 (std::move_iterator): Delete declaration.
1131 (std::__is_move_iterator<move_iterator>): Move partial specialization...
1132 * include/bits/stl_iterator.h: ... here.
1133 (std::__miter_base): Overloads for std::reverse_iterator and
1135 * include/bits/stl_algobase.h (std::__miter_base): Provide default
1138 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
1140 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
1143 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
1144 overload for pointers.
1145 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
1146 808590.cc: Add -std=gnu++03 switch.
1147 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
1148 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
1149 * testsuite/23_containers/vector/modifiers/push_back/
1150 strong_guarantee.cc: New.
1152 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
1154 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
1155 (operator==(const list&, const list&)): If size() is O(1) compare
1156 sizes before comparing each element.
1157 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
1158 (list::resize): Use _M_resize_pos.
1160 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
1162 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
1164 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
1165 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
1166 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
1168 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1170 * configure.host: Define cpu_defines_dir for ARM.
1171 * config/cpu/arm/cpu_defines.h: New file.
1173 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
1175 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
1176 missing constructors.
1177 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
1179 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
1180 missing constructors.
1181 * include/debug/unordered_set (unordered_set, unordered_multiset):
1183 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
1184 missing constructors.
1185 * include/profile/unordered_set (unordered_set, unordered_multiset):
1188 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
1190 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
1191 use throughout the file.
1192 (make_file_type): New function.
1193 (file_size(const path&, error_code&)): Report an error for anything
1194 that isn't a regular file.
1195 (status(const path&), symlink_status(const path&)): Do not throw for
1196 file_type::not_found.
1197 (temp_directory_path()): Check additional environment variables.
1198 * testsuite/experimental/filesystem/operations/exists.cc: New.
1199 * testsuite/experimental/filesystem/operations/file_size.cc: New.
1200 * testsuite/experimental/filesystem/operations/status.cc: New.
1201 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1204 2015-05-14 Nathan Myers <ncm@cantrip.org>
1205 Jonathan Wakely <jwakely@redhat.com>
1208 * include/std/unordered_map (unordered_map, unordered_multimap): Add
1209 missing constructors.
1210 * include/std/unordered_set (unordered_set, unordered_multiset):
1212 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
1213 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
1214 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
1215 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
1217 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
1220 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
1222 * config.h.in: Regenerate.
1223 * configure: Regenerate.
1224 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
1225 not return after copying contents. Use fchmod, fchmodat, and sendfile
1227 (current_path, permissions, space): Use errno not return value.
1230 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
1232 * config.h.in: Regenerate.
1233 * configure: Regenerate.
1234 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
1236 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
1238 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
1239 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
1240 * config.h.in: Regenerate.
1241 * configure: Likewise.
1242 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
1243 __USING_SJLJ_EXCEPTIONS__.
1244 * libsupc++/eh_throw.cc: Likewise.
1245 * libsupc++/eh_ptr.cc: Likewise.
1246 * doc/html/manual/appendix_porting.html: Remove
1247 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
1248 * doc/xml/manual/build_hacking.xml: Likewise.
1249 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
1250 * doc/xml/manual/configure.xml: Likewise.
1252 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
1254 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
1255 for nullptr (LWG 2415).
1256 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
1257 construction from empty unique_ptr.
1258 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
1259 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
1261 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
1263 * testsuite/20_util/raw_storage_iterator/base.cc: New.
1265 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
1266 Remove explicit (LWG 2407).
1268 * include/bits/basic_string.h (basic_string::basic_string()): Make
1269 noexcept conditional on allocator (LWG 2455).
1271 * include/std/complex (polar): Check for negative rho (LWG 2459).
1273 * include/experimental/tuple (apply): Handle pointers to member (LWG
1275 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
1276 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
1277 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
1279 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
1281 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
1282 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
1283 * testsuite/23_containers/forward_list/allocator/minimal.cc:
1285 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
1286 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
1287 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
1288 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
1289 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
1291 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
1293 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
1295 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
1297 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
1299 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
1300 * configure: Regenerate.
1302 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1304 * Makefile.in: Regenerated with automake-1.11.6.
1305 * aclocal.m4: Likewise.
1306 * configure: Likewise.
1307 * doc/Makefile.in: Likewise.
1308 * include/Makefile.in: Likewise.
1309 * libsupc++/Makefile.in: Likewise.
1310 * po/Makefile.in: Likewise.
1311 * python/Makefile.in: Likewise.
1312 * src/Makefile.in: Likewise.
1313 * src/c++11/Makefile.in: Likewise.
1314 * src/c++98/Makefile.in: Likewise.
1315 * src/filesystem/Makefile.in: Likewise.
1316 * testsuite/Makefile.in: Likewise.
1318 2015-05-09 Jason Merrill <jason@redhat.com>
1320 * testsuite/20_util/headers/functional/synopsis.cc: Add
1321 _GLIBCXX14_CONSTEXPR.
1322 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
1324 2015-05-08 Jason Merrill <jason@redhat.com>
1326 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
1327 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
1328 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
1329 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
1330 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
1331 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
1332 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
1333 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
1334 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
1335 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
1336 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
1338 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
1339 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1340 Adjust expected errors.
1341 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1343 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1345 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1347 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1349 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1351 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1353 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1355 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1357 * testsuite/23_containers/vector/requirements/dr438
1358 /constructor_1_neg.cc: Likewise.
1359 * testsuite/23_containers/vector/requirements/dr438
1360 /constructor_2_neg.cc: Likewise.
1361 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1363 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
1364 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
1365 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
1366 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
1367 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
1368 Add -Wno-deprecated.
1369 * testsuite/ext/array_allocator/check_deallocate_null.cc:
1370 Add -Wno-deprecated.
1371 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
1372 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
1373 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
1374 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
1376 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
1378 * testsuite/tr1/2_general_utilities/shared_ptr/assign
1379 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
1380 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
1381 Add -std=c++98 -fno-show-column.
1382 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
1384 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
1386 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
1387 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
1389 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1390 * src/c++98/Makefile.in: Regenerate.
1391 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1392 * src/Makefile.in: Regenerate.
1394 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
1397 * include/std/future (async): Change default policy to launch::async.
1399 * include/experimental/any (any::_Storage): Fix alignment of buffer.
1400 (any::_Internal): Check alignment of type.
1401 * testsuite/experimental/any/cons/aligned.cc: New.
1402 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1404 * include/experimental/iterator (ostream_joiner): Simplify by using
1405 the injected-class-name and the ostream_type typedef.
1407 * include/experimental/iterator: New. Define ostream_joiner.
1408 * include/Makefile.am: Add new header.
1409 * include/Makefile.in: Regenerate.
1410 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
1411 * testsuite/experimental/iterator/ostream_joiner.cc: New.
1412 * testsuite/experimental/iterator/requirements.cc: New.
1413 * doc/xml/manual/status_cxx2017.xml: Update status.
1414 * doc/html/manual/status.html: Regenerate.
1416 * include/experimental/numeric: New. Define gcd and lcm.
1417 * include/Makefile.am: Add new header.
1418 * include/Makefile.in: Regenerate.
1419 * testsuite/experimental/numeric/gcd.cc: New.
1420 * testsuite/experimental/numeric/lcm.cc: New.
1421 * doc/xml/manual/status_cxx2017.xml: Update status.
1422 * doc/html/manual/status.html: Regenerate.
1424 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
1426 Revert addition of feature macros from other headers per latest SD-6.
1427 * include/experimental/deque: Remove feature-test macro.
1428 * include/experimental/forward_list: Ditto.
1429 * include/experimental/list: Ditto.
1430 * include/experimental/map: Ditto.
1431 * include/experimental/set: Ditto.
1432 * include/experimental/string: Ditto.
1433 * include/experimental/unordered_map: Ditto.
1434 * include/experimental/unordered_set: Ditto.
1436 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
1438 * include/experimental/any (any::_Storage): Make non-copyable.
1439 (any::any): Do not copy _Storage object.
1440 (any::operator=): Implement more efficiently than swapping.
1441 (any::swap): Use new _Op_xfer operation.
1442 (any::_Op::_Op_xfer): New enumerator.
1443 (_Manager_internal::_S_alloc): Remove unused function.
1444 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
1445 parameter instead of returning a _Storage object.
1446 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
1447 _Op_xfer operation for moving and swapping.
1448 * testsuite/experimental/any/cons/nontrivial.cc: New.
1449 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1451 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
1453 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
1457 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
1458 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
1459 and fix tests for forward_as_tuple and tie.
1461 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
1462 Set timespec members explicitly instead of with a braced-init-list.
1463 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
1465 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
1467 * include/experimental/deque: Add feature-test macro.
1468 * include/experimental/forward_list: Ditto.
1469 * include/experimental/list: Ditto.
1470 * include/experimental/map: Ditto.
1471 * include/experimental/set: Ditto.
1472 * include/experimental/string: Ditto.
1473 * include/experimental/unordered_map: Ditto.
1474 * include/experimental/unordered_set: Ditto.
1476 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1478 * include/experimental/memory: Correct feature-test macro.
1480 * include/experimental/memory: Add feature-test macro.
1481 * include/experimental/vector: Likewise.
1482 * doc/xml/manual/status_cxx2017.xml: Update status.
1483 * doc/html/manual/status.html: Regenerate.
1485 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
1487 Implement observer_ptr.
1488 * include/Makefile.am: Add new header.
1489 * include/Makefile.in: Regenerate.
1490 * include/experimental/memory: New.
1491 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
1492 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
1493 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
1494 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
1495 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
1496 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
1497 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
1498 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
1500 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1502 * src/filesystem/path.cc (path::compare): Do not copy strings.
1504 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
1506 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
1507 * configure: Regenerate.
1508 * config.h.in: Regenerate.
1509 * configure.ac: Check for utime.h
1510 * include/experimental/fs_path.h (path::string<>)
1511 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
1512 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
1513 closedir, dirent, readdir_r): Replace dummy functions with #error.
1514 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
1515 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
1516 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
1517 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
1518 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
1521 * include/experimental/fs_path.h (path::_List): Use vector instead of
1523 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
1524 * src/filesystem/path.cc: Use std::prev instead of decrementing
1525 rvalues. Fix whitespace.
1526 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1527 Do not decrement iterators before begin.
1529 * include/experimental/fs_dir.h: Fix use of non-reserved names.
1530 * include/experimental/fs_ops.h: Likewise.
1531 * include/experimental/fs_path.h: Likewise.
1532 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
1533 C++11 when checking for support.
1535 * include/bits/locale_classes.h (locale::facet): Delete copy
1536 operations in C++11 mode.
1538 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
1540 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
1541 * configure: Regenerate.
1543 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1545 Inline one-line erasure dispatch functions.
1546 * include/experimental/forward_list (erase_if(), erase()): Inline.
1547 * include/experimental/list (erase_if(), erase()): Inline.
1548 * include/experimental/map (erase_if(*)): Inline.
1549 * include/experimental/set (erase_if(*)): Inline.
1550 * include/experimental/string (erase_if(), erase()): Inline.
1551 * include/experimental/unordered_map (erase_if(*)): Inline.
1552 * include/experimental/unordered_set (erase_if(*)): Inline.
1554 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1556 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
1557 * doc/xml/manual/status_cxx2011.xml: Update status tables.
1558 * doc/xml/manual/status_cxx2014.xml: Likewise.
1559 * doc/xml/manual/status_cxx2017.xml: New.
1560 * doc/xml/manual/using.xml: Fix typo.
1561 * doc/html/*: Regenerate.
1563 * include/std/memory (pointer_safety, declare_reachable,
1564 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
1565 get_pointer_safety): Define.
1566 * testsuite/20_util/pointer_safety/1.cc: New.
1568 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
1570 Implement N4100 File System TS
1571 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
1572 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
1573 * config.h.in: Regenerate.
1574 * configure: Regenerate.
1575 * configure.ac: Enable filesystem TS and check its dependencies.
1576 * include/Makefile.am: Add new headers.
1577 * include/Makefile.in: Regenerate.
1578 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
1579 __str_codecvt_out): Move code conversion logic from wstring_convert
1580 into new global functions.
1581 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
1583 (wstring_convert::_M_conv): Remove.
1584 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
1585 * include/experimental/filesystem: New.
1586 * include/experimental/fs_dir.h: New.
1587 * include/experimental/fs_fwd.h: New.
1588 * include/experimental/fs_ops.h: New.
1589 * include/experimental/fs_path.h: New.
1590 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
1591 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
1592 * src/Makefile.am (SUBDIRS): Add filesystem.
1593 * src/Makefile.in: Regenerate.
1594 * src/filesystem/Makefile.am: New.
1595 * src/filesystem/Makefile.in: New.
1596 * src/filesystem/dir.cc: New.
1597 * src/filesystem/ops.cc: New.
1598 * src/filesystem/path.cc: New.
1599 * testsuite/experimental/filesystem/operations/absolute.cc: New.
1600 * testsuite/experimental/filesystem/operations/copy.cc: New.
1601 * testsuite/experimental/filesystem/operations/current_path.cc: New.
1602 * testsuite/experimental/filesystem/path/append/path.cc: New.
1603 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
1604 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
1605 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
1606 * testsuite/experimental/filesystem/path/compare/path.cc: New.
1607 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
1608 * testsuite/experimental/filesystem/path/concat/path.cc: New.
1609 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
1610 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
1611 * testsuite/experimental/filesystem/path/construct/default.cc: New.
1612 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
1613 * testsuite/experimental/filesystem/path/construct/range.cc: New.
1614 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
1615 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
1616 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1618 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1620 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1622 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1624 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1626 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
1627 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1629 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
1630 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
1631 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1633 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1635 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1637 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1639 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
1640 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
1641 * testsuite/experimental/filesystem/path/query/empty.cc: New.
1642 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
1643 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
1644 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1646 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1648 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1650 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1652 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1654 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
1655 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
1656 * testsuite/util/testsuite_fs.h: New.
1658 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1660 Add fundamentals TR container erasure.
1661 * include/Makefile.am: Add new headers.
1662 * include/Makefile.in: Add new headers.
1663 * include/experimental/array: New.
1664 * include/experimental/deque: New.
1665 * include/experimental/erase_if.tcc: New.
1666 * include/experimental/forward_list: New.
1667 * include/experimental/list: New.
1668 * include/experimental/map: New.
1669 * include/experimental/set: New.
1670 * include/experimental/string: New.
1671 * include/experimental/unordered_map: New.
1672 * include/experimental/unordered_set: New.
1673 * include/experimental/vector: New.
1674 * testsuite/experimental/deque/erasure.cc: New.
1675 * testsuite/experimental/forward_list/erasure.cc: New.
1676 * testsuite/experimental/list/erasure.cc: New.
1677 * testsuite/experimental/map/erasure.cc: New.
1678 * testsuite/experimental/set/erasure.cc: New.
1679 * testsuite/experimental/string/erasure.cc: New.
1680 * testsuite/experimental/unordered_map/erasure.cc: New.
1681 * testsuite/experimental/unordered_set/erasure.cc: New.
1682 * testsuite/experimental/vector/erasure.cc: New.
1684 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
1686 * include/bits/cpp_type_traits.h
1687 (__gnu_cxx::__is_normal_iterator): Delete.
1688 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
1689 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
1690 (std::__niter_base): Overloads for std::reverse_iterator,
1691 __gnu_cxx::__normal_iterator and std::move_iterator.
1693 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
1695 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
1697 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
1698 Remove usage of latter and compute size of the prime numbers array
1701 2015-04-29 Doug Evans <dje@google.com>
1704 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
1705 Replace all lookups of "bool" with this.
1706 (get_std_size_type): New function. Replace all lookups of std::size_t
1708 (*Worker): New method get_result_type.
1709 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
1710 (ListWorkerBase.__init__): New arg val_type. All callers updated.
1711 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
1712 Delete setting of name, enabled.
1713 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
1714 updated. Delete setting of name.
1715 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
1716 libstdc++ xmethod matchers.
1717 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
1718 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
1719 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
1720 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
1721 * testsuite/libstdc++-xmethods/list.cc: Ditto.
1722 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
1723 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
1725 2015-04-29 Doug Evans <dje@google.com>
1727 Use consistent naming for value type attributes.
1728 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
1730 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
1731 (ArrayFrontWorker, ArrayBackWorker): Ditto.
1732 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
1733 (DequeWorkerBase): Rename elemtype to val_type.
1734 (ForwardListWorkerBase): Rename _elem_type to _val_type.
1735 (ForwardListFrontWorker): Ditto. And rename elem_address to
1737 (ForwardListMethodsMatcher): Rename elem_type to val_type.
1738 (VectorWorkerBase): Rename _elemtype to _val_type.
1740 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
1743 * include/std/functional (__check_func_return_type): Use is_same to
1744 avoid using _is_convertible on incomplete types.
1745 * testsuite/20_util/function/65760.cc: New.
1748 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
1750 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
1751 time_get::_M_extract_num, time_get::_M_extract_name,
1752 time_get::_M_extract_wday_or_month): Likewise.
1753 * include/bits/stl_algo.h (__includes, __replace_copy_if,
1754 __is_sorted_until, __is_permutation, transform): Likewise.
1755 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
1756 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
1757 * include/bits/stl_numeric.h (inner_product): Likewise.
1758 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
1759 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
1760 input_iterator_wrapper): Declare unusable comma operator.
1761 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
1762 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
1765 2015-04-28 Doug Evans <dje@google.com>
1767 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
1770 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1772 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
1775 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1777 * Makefile.am (SUBDIRS): Move python to hosted_source.
1778 * Makefile.in: Regenerate.
1779 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
1780 * configure: Regenerate.
1782 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
1785 * include/std/limits (numeric_limits): Add missing unsigned.
1787 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
1789 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
1791 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1794 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
1795 Handle enumeration types larger than sizeof(long).
1796 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
1798 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
1799 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1801 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
1802 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
1804 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
1807 * include/bits/forward_list.h (forward_list::splice_after): Add
1809 * include/bits/forward_list.tcc (forward_list::splice_after):
1813 * include/bits/random.h (seed_seq) Define copy constructor and copy
1814 assignment as deleted.
1815 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
1817 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
1818 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
1819 Use -std=gnu++1z. Check feature-test macro.
1821 * include/std/type_traits (void_t): Add.
1822 * testsuite/20_util/void_t/1.cc: New.
1824 2015-04-28 Tim Shen <timshen@google.com>
1826 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
1827 * include/bits/regex_automaton.tcc: Throw exception when parsing
1828 back-reference with flag __polynomial.
1829 * include/bits/regex_constants.h: Add extension flag
1830 syntax_option_type __polynomial.
1831 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
1832 Alternative operation will be fixed in the coming refactoring.
1833 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
1834 loose match_search_debug to use DFS only.
1836 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
1839 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
1840 Make the generated test program fail gracefully if the target
1841 doesn't support passing command-line arguments.
1843 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
1844 Jonathan Wakely <jwakely@redhat.com>
1846 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
1847 Return false or zero if the library is built without exceptions.
1848 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
1849 the library is built without exceptions.
1851 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
1853 * config/abi/pre/gnu.ver: Fix comment.
1855 Add support for std::uncaught_exceptions.
1856 * acinclude.m4: Bump libtool_VERSION.
1857 * config/abi/pre/gnu.ver: Export the new symbol.
1858 * configure: Regenerate.
1859 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
1860 * libsupc++/exception (uncaught_exceptions): New.
1861 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
1862 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
1864 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
1865 Michael Hanselmann <public@hansmi.ch>
1868 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
1869 uncaught exceptions.
1870 * testsuite/18_support/exception_ptr/62258.cc: New.
1872 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
1874 * doc/xml/manual/extensions.xml: Add cross-reference.
1875 * doc/html/manual/ext_compile_checks.html: Regenerate.
1877 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1879 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
1880 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
1882 2015-04-22 Renlin Li <renlin.li@arm.com>
1884 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
1885 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
1886 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
1887 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
1888 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
1890 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
1892 * doc/xml/manual/configure.xml: Update descriptions of options
1893 affecting dual ABI and add cross-references.
1894 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
1895 * doc/xml/manual/using.xml: Document ABI transition.
1896 * doc/html/*: Regenerate.
1898 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
1899 * doc/xml/manual/using.xml: Document newer -std options. Use better
1900 examples of nested namespaces.
1902 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
1904 * doc/xml/manual/concurrency_extensions.xml: Update documentation
1906 * doc/xml/manual/using.xml: Likewise. Improve markup.
1907 * doc/html/*: Regenerate.
1909 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1911 * scripts/extract_symvers.pl: Ignore elfdump error output.
1913 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
1916 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
1917 _List_const_iterator): Declare.
1918 (__distance): Declare new overloads for _List_iterator and
1919 _List_const_iterator.
1920 * include/bits/stl_list.h (__distance): New overloads for
1921 _List_iterator and _List_const_iterator.
1922 * testsuite/23_containers/list/61347.cc: New testcase.
1924 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
1926 * doc/xml/manual/evolution.xml: Fix typos.
1927 * doc/html/manual/api.html: Regenerate.
1929 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
1931 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
1932 alignment is larger-equal, not equal, to default alignment.
1934 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
1937 * config/abi/pre/gnu.ver: Export base object constructors for
1939 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1940 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1941 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1942 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1943 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1944 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1945 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1946 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1947 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
1948 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1949 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1950 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1951 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1952 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1953 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1954 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1955 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1956 * testsuite/27_io/basic_fstream/cons/base.cc: New.
1958 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
1960 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
1961 * doc/html/*: Regenerate.
1963 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
1965 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1967 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
1969 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1971 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1973 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
1975 * doc/xml/manual/test.xml: Improve documentation on running a subset
1977 * doc/html/manual/test.html: Regenerate.
1979 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1981 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1982 for GCC 5.1 release.
1983 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
1986 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
1988 * include/std/shared_mutex (shared_timed_mutex): Add comments to
1989 explain the logic in the non-pthread_rwlock_t version.
1990 (_Mutex): Remove redundant type.
1991 (_M_n_readers): Rename to _S_max_readers.
1992 (_M_write_entered, _M_readers): New convenience functions.
1993 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
1994 functions. Use predicates with condition variables. Simplify bitwise
1996 (try_lock_for, try_shared_lock_for): Convert duration to time_point
1997 and call try_lock_until or try_shared_lock_until respectively.
1998 (try_lock_until, try_shared_lock_until): Wait on the condition
1999 variables until the specified time passes.
2000 (unlock): Add Debug Mode assertion.
2001 (unlock_shared): Add Debug Mode assertion.
2002 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
2004 * include/std/shared_mutex (shared_timed_mutex): Only use
2005 pthread_rwlock_t when the POSIX Timeouts option is supported.
2006 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
2007 dg-require-gthreads-timed.
2008 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
2009 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
2010 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
2012 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
2014 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
2016 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
2017 Richard Henderson <rth@redhat.com>
2020 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
2022 * include/std/atomic (atomic): For types with a power of two size set
2023 alignment to at least the size.
2024 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2025 * testsuite/29_atomics/atomic/65147.cc: New.
2026 * testsuite/29_atomics/atomic_integral/65147.cc: New.
2028 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2030 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
2031 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
2032 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
2034 2015-04-07 Jakub Jelinek <jakub@redhat.com>
2036 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2037 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2038 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2039 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2040 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2041 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2042 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2043 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2045 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
2048 * config/abi/pre/gnu.ver: Export operator+ for new strings.
2049 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
2050 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
2052 2015-03-28 Tim Shen <timshen@google.com>
2055 * include/bits/regex_constants.h: Use constexpr variables for flags.
2056 * testsuite/28_regex/constants/constexpr.cc: New testcase.
2058 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
2061 * include/std/chrono: Add using-directive for literals to std::chrono.
2062 * testsuite/20_util/duration/literals/65499.cc: New.
2064 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
2068 * include/std/thread (this_thread::sleep_for): Check for negative
2070 (this_thread::sleep_until): Check for times in the past.
2071 * testsuite/30_threads/this_thread/58038.cc: New.
2072 * testsuite/30_threads/this_thread/60421.cc: New.
2074 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
2078 * include/std/atomic (atomic<T>): Increase alignment for types with
2079 the same size as one of the integral types.
2080 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2081 * testsuite/29_atomics/atomic/62259.cc: New.
2083 2015-03-26 Richard Henderson <rth@redhat.com>
2086 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
2087 a fake pointer indicating type alignment.
2088 (__atomic_base<T *>::is_lock_free): Likewise.
2089 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
2091 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
2094 * testsuite/21_strings/basic_string/pthread33394.cc: Use
2095 dg-additional-options.
2097 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
2100 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
2102 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
2104 * testsuite/27_io/rvalue_streams-2.cc: New.
2106 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
2109 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
2111 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
2114 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
2115 * configure: Regenerate.
2116 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
2117 system_category): Use macros for versioned namespace.
2118 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
2120 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
2122 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
2123 test for unused for ARM.
2124 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
2125 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
2127 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
2129 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
2130 * include/ext/codecvt_specializations.h (encoding_state,
2131 encoding_char_traits): Remove abi-tag and use inline namespace.
2132 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
2134 2015-03-19 Jason Merrill <jason@redhat.com>
2136 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
2137 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
2139 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2142 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
2143 get_catalogs): Add abi-tag.
2144 * include/ext/codecvt_specializations.h (encoding_state,
2145 encoding_char_traits): Likewise.
2146 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
2147 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
2148 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
2149 money_get_shim, money_put_shim, messages_shim): Likewise.
2150 * src/c++11/future.cc (future_error_category::message): Likewise.
2151 * src/c++11/system_error.cc (generic_error_category::message,
2152 system_error_category::message): Likewise.
2153 (__sso_string): Disable -Wabi-tag warnings.
2155 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2158 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
2159 implementation for old glibc. Fix whitespace.
2161 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2162 Torvald Riegel <triegel@redhat.com>
2164 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
2165 * config.h.in: Regenerate.
2166 * configure: Regenerate.
2167 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
2168 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
2169 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
2170 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
2173 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
2175 * libsupc++/nested_exception.h: Do not try to derive from final
2177 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
2180 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
2181 unused exception variable.
2182 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
2183 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
2185 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
2187 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
2189 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
2190 * configure: Regenerate.
2192 * include/experimental/system_error: Fix include guard.
2194 2015-03-12 Renlin Li <renlin.li@arm.com>
2196 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
2199 2015-03-10 Tim Shen <timshen@google.com>
2202 * include/bits/regex.h (match_results<>::size,
2203 match_results<>::position, match_results<>::str,
2204 match_results<>::operator[], match_results<>::prefix,
2205 match_results<>::suffix, match_results<>::end,
2206 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
2207 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
2208 global __unmatched_sub. Add unmatched submatch as part of
2210 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
2211 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
2212 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
2215 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
2218 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
2219 for newlib targets. Really fix mixed line-endings this time.
2221 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
2223 * include/std/future (future_error(error_code)): Construct base
2224 class with error_code's message.
2225 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
2228 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
2230 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
2232 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
2233 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
2235 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
2238 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
2239 incomplete multibyte sequences correctly.
2240 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
2241 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
2242 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
2244 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
2245 Define convenience functions.
2246 (read_utf8_code_point): Return relevant constant to distinguish
2247 incomplete characters from invalid sequences.
2248 (read_utf16_code_point): Likewise. Check for invalid sequences.
2249 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
2250 (utf16_out): Check for invalid sequences.
2251 (utf16_span): Fix condition.
2252 (ucs2_out): Use is_high_surrogate.
2253 (ucs2_in): Use incomplete_mb_character constant and fix condition.
2254 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
2255 * testsuite/22_locale/conversions/buffer/1.cc: New.
2256 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
2257 char32_t instead of wchar_t.
2258 * testsuite/22_locale/conversions/string/3.cc: New.
2260 2015-03-03 Iain Sandoe <iain@codesourcery.com>
2263 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
2264 visibility for Darwin.
2265 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
2267 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
2269 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
2272 * include/std/scoped_allocator (__inner_type_impl,
2273 scoped_allocator_adaptor): Add defaulted copy assignment and move
2274 assignment operators.
2275 * testsuite/20_util/scoped_allocator/65279.cc: New.
2277 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
2280 * include/std/stdexcept (__sso_string): Don't use non-static member
2283 2015-02-28 Matthias Klose <doko@ubuntu.com>
2286 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
2288 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
2290 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
2291 * doc/html/manual/status.html: Regenerate.
2293 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
2296 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
2299 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
2301 * doc/html/manual/status.html: Regenerate.
2303 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
2306 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
2307 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
2309 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
2312 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
2313 (test01): Add explanatory comment. Keep only the bd1 sub-test and
2314 split out bd2, bd3, bd4, and bd5 sub-tests into...
2315 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
2316 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
2317 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
2318 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
2319 New separate files with the old parts.
2321 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
2323 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
2325 (utf16_in): Pass mode argument to write_utf16_code_point.
2326 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
2328 * testsuite/22_locale/codecvt/char16_t.cc: New.
2329 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
2331 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
2332 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
2334 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2335 Jonathan Wakely <jwakely@redhat.com>
2337 * testsuite/22_locale/codecvt/char32_t.cc: New.
2339 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
2342 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
2343 empty string gets null-terminated.
2344 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
2346 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
2348 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
2349 mixed line-endings introduced in last change.
2351 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
2353 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
2354 for __NEWLIB__ macro with a dejagnu set macro.
2355 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2357 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2360 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
2361 special case for '\n'.
2362 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2364 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
2366 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
2368 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
2371 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
2373 * include/c_std/cstdio (gets): Likewise.
2374 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
2375 with attributes used in darwin headers.
2377 2015-01-29 Jakub Jelinek <jakub@redhat.com>
2379 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
2380 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
2381 * configure: Regenerated.
2383 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
2385 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2386 after vtv_cygmin is set.
2387 * configure: Regenerated.
2389 2015-01-29 Matthias Klose <doko@ubuntu.com>
2391 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2393 * configure: Regenerate.
2395 2015-01-29 Caroline Tice <cmtice@google.com>
2397 Committing VTV Cywin/Ming patch for Patrick Wollgast
2398 * configure: Regenerate.
2399 * libsupc++/Makefile.in: Regenerate.
2400 * src/Makefile.in: Regenerate.
2402 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
2404 * include/bits/atomic_base.h: Use __always_inline__ instead of
2406 * include/bits/atomic_futex.h: Likewise.
2407 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
2408 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
2409 __packed__ instead of packed.
2410 * include/std/shared_mutex: Use __unused__ instead of unused.
2411 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
2412 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
2413 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
2415 2015-01-28 Caroline Tice <cmtice@google.com>
2417 Committing VTV Cywin/Ming patch for Patrick Wollgast
2418 * acinclude.m4: Define VTV_CYGMIN.
2419 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
2420 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
2421 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
2422 for Cygwin and MinGW.
2423 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
2424 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
2425 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
2427 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
2430 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
2431 * libsupc++/Makefile.in: Regenerate.
2432 * src/c++11/Makefile.in: Regenerate.
2434 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2436 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
2437 check for unsupported.
2438 (v3_target_compile_as_c): Likewise.
2440 2015-01-28 Richard Biener <rguenther@suse.de>
2443 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
2445 (pool::allocate): Adjust allocation size and alignment to
2447 (pool::free): Adjust pointer offsetting.
2449 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
2452 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
2453 shared_timed_mutex::try_lock_until): Only define when POSIX thread
2454 timeouts option is supported.
2455 (shared_timed_mutex::try_shared_lock_for,
2456 shared_timed_mutex::try_shared_lock_until): Likewise.
2458 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
2461 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
2462 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
2463 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
2464 and use cache's _M_grouping field.
2465 (__numpunct_fill_cache): Likewise.
2466 (__moneypunct_fill_cache): Improve comments.
2468 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
2470 * testsuite/23_containers/set/operations/2.cc: Add test for
2471 non-transparent comparison function.
2473 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
2476 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
2477 Remove SH4A inline asm and lock based implementations and use the
2478 defaults from ext/atomicity.h.
2480 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
2482 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
2483 new std::string constructors for byname facets.
2485 2015-01-22 Richard Biener <rguenther@suse.de>
2488 * libsupc++/eh_alloc.cc: Include new.
2489 (bitmask_type): Remove.
2490 (one_buffer): Likewise.
2491 (emergency_buffer): Likewise.
2492 (emergency_used): Likewise.
2493 (dependents_buffer): Likewise.
2494 (dependents_used): Likewise.
2495 (class pool): New custom fixed-size arena, variable size object
2497 (emergency_pool): New global.
2498 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
2499 (__cxxabiv1::__cxa_free_exception): Likewise.
2500 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
2501 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
2503 2015-01-22 Tim Shen <timshen@google.com>
2506 * include/bits/regex.h (basic_regex<>::basic_regex,
2507 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
2509 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
2511 2015-01-22 Tim Shen <timshen@google.com>
2514 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2515 regex_traits<>::lookup_classname): Correctly narrow input chars.
2516 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
2518 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2520 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
2522 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2524 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
2526 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2528 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
2529 * doc/xml/manual/status_cxx2014.xml: Update status.
2530 * doc/html/manual/status.html: Regenerate.
2532 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2535 * include/experimental/optional (bad_optional_access): Add default
2537 * testsuite/experimental/optional/requirements.cc: Test for default
2540 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2542 * include/bits/stl_map.h (map::find<>, map::count<>,
2543 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
2544 member function templates to perform heterogeneous lookup.
2545 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
2546 multimap::lower_bound<>, multimap::upper_bound<>,
2547 multimap::equal_range<>): Likewise.
2548 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
2549 multiset::lower_bound<>, multiset::upper_bound<>,
2550 multiset::equal_range<>): Likewise.
2551 * include/bits/stl_set.h (set::find<>, set::count<>,
2552 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2553 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
2554 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
2555 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
2556 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
2557 * testsuite/23_containers/map/operations/2.cc: New.
2558 * testsuite/23_containers/multimap/operations/2.cc: New.
2559 * testsuite/23_containers/multiset/operations/2.cc: New.
2560 * testsuite/23_containers/set/operations/2.cc: New.
2562 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2564 * config/abi/pre/gnu.ver: Export new constructors.
2565 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
2566 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
2567 specializations and declare explicit instantiations.
2568 * include/bits/locale_classes.h (locale, collate_byname): Add string
2570 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
2572 * include/bits/locale_facets_nonio.h (time_get_byname,
2573 time_put_byname, moneypunct_byname, messages_byname): Likewise.
2574 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
2575 codecvt_byname<char32_t>): Define explicit instantiations.
2576 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
2577 Instantiate string constructors.
2578 (ctype_byname): Define string constructor.
2579 * testsuite/22_locale/codecvt_byname/1.cc: New.
2580 * testsuite/22_locale/collate_byname/1.cc: New.
2581 * testsuite/22_locale/ctype_byname/2.cc: New.
2582 * testsuite/22_locale/messages_byname/1.cc: New.
2583 * testsuite/22_locale/moneypunct_byname/1.cc: New.
2584 * testsuite/22_locale/numpunct_byname/1.cc: New.
2586 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2589 * include/std/atomic (atomic_init): Define.
2590 * testsuite/29_atomics/atomic/64658.cc: New.
2592 2015-01-19 Tim Shen <timshen@google.com>
2595 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2596 regex_traits<>::lookup_classname): Support forward iterators.
2597 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
2598 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
2600 2015-01-19 Tim Shen <timshen@google.com>
2604 * include/bits/regex.h (basic_regex<>::basic_regex,
2605 basic_regex<>::assign, basic_regex<>::imbue,
2606 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
2607 imbuing basic_regex; Make assign() transactional against exception.
2608 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
2609 __compile_nfa SFINAE.
2610 * include/std/regex: Adjust include order to avoid __compile_nfa
2611 forward declaration.
2612 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
2613 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
2615 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
2616 Jonathan Wakely <jwakely@redhat.com>
2618 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
2619 on overloads for arrays.
2620 (cbegin, cend, rbegin, rend, crbegin, crend): New.
2621 * testsuite/24_iterators/range_access_cpp14.cc: New.
2623 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2626 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
2627 end of the second range.
2628 * testsuite/25_algorithms/is_permutation/64646.cc: New.
2630 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2632 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
2633 * doc/html/manual/status.html: Regenerate.
2635 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2637 * include/bits/atomic_futex.h: Use mutex and condition_variable when
2638 atomic int is not lock-free. Make member variables private.
2639 * src/c++11/futex.cc: Likewise.
2641 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
2643 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2646 * include/bits/atomic_futex.h: Use appropriate config macros for
2647 availability of std::mutex, std::condition and std::chrono.
2649 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2650 Jonathan Wakely <jwakely@redhat.com>
2652 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
2653 * doc/html/*: Regenerate.
2655 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2659 * include/bits/algorithmfwd.h (rotate): Return an iterator.
2660 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
2661 * testsuite/25_algorithms/rotate/dr488.cc: New.
2662 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
2663 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2665 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2668 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2671 * include/bits/atomic_base.h: Remove atomic integral typedefs as
2672 synonyms for __atomic_base<int> etc.
2673 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
2674 likewise for all atomic integral types.
2675 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
2676 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2678 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2681 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
2682 and define one-element specialization.
2683 * testsuite/20_util/tuple/56785.cc: New.
2685 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2687 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
2688 Remove unused header.
2689 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
2691 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2694 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2696 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
2697 * include/std/locale: Include new header.
2698 * include/Makefile.am: Add it.
2699 * include/Makefile.in: Regenerate.
2700 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
2701 * testsuite/22_locale/conversions/string/1.cc: New.
2702 * testsuite/22_locale/conversions/string/2.cc: New.
2703 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
2704 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
2707 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2709 * config/abi/pre/gnu.ver: Export new symbols.
2710 * include/Makefile.am: Add codecvt.
2711 * include/Makefile.in: Regenerate.
2712 * include/std/codecvt: New header.
2713 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
2714 __codecvt_utf8_utf16_base): Define specializations.
2715 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
2716 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
2717 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2720 2015-01-16 Torvald Riegel <triegel@redhat.com>
2722 * src/c++11/futex.cc: New file.
2723 * include/bits/atomic_futex.h: New file.
2724 * include/std/future (__future_base::_State_baseV2): Use
2725 atomic_futex_unsigned instead of mutex+condvar.
2726 * src/c++11/futex.cc: Likewise.
2727 * include/Makefile.am: Add atomic_futex.h.
2728 * include/Makefile.in: Likewise.
2729 * src/c++11/Makefile.am: Add futex.cc.
2730 * src/c++11/Makefile.in: Likewise.
2732 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2734 * acinclude.m4: Fix typo in comment.
2735 * configure: Regenerate.
2736 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
2737 codecvt<char16_t, char, mbstate_t>): Declare specializations.
2738 * include/bits/locale_facets.h: Reserve space for new specializations.
2739 * src/c++11/Makefile.am: Add codecvt.cc.
2740 * src/c++11/Makefile.in: Regenerate.
2741 * src/c++11/codecvt.cc: New.
2742 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
2744 * src/c++98/Makefile.in: Regenerate.
2745 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
2746 * src/c++98/localename.cc: Likewise.
2747 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
2748 * testsuite/22_locale/codecvt/utf8.cc: New.
2749 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
2750 specializations are installed in locale objects.
2752 2015-01-16 Torvald Riegel <triegel@redhat.com>
2754 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
2757 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
2760 * config/abi/pre/gnu.ver: Export fstream functions using new string.
2762 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
2765 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
2769 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
2771 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2773 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
2774 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
2775 Multi Processing Runtime Library".
2777 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
2780 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
2781 is_assignable arguments.
2782 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
2785 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2787 * libsupc++/unwind-cxx.h: Revert previous commit.
2789 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2791 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
2793 2015-01-09 Tim Shen <timshen@google.com>
2796 * include/bits/regex.h (match_results<>::swap): Use std::swap
2798 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
2800 * testsuite/28_regex/match_results/swap.cc: New testcase.
2802 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
2805 * include/std/type_traits (has_trivial_default_constructor,
2806 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
2808 * testsuite/20_util/has_trivial_copy_assign/requirements/
2809 explicit_instantiation.cc: Use -Wno-deprecated.
2810 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
2812 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
2813 * testsuite/20_util/has_trivial_copy_constructor/requirements/
2814 explicit_instantiation.cc: Likewise.
2815 * testsuite/20_util/has_trivial_copy_constructor/requirements/
2816 typedefs.cc: Likewise.
2817 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
2818 * testsuite/20_util/has_trivial_default_constructor/requirements/
2819 explicit_instantiation.c: Likewise.
2820 * testsuite/20_util/has_trivial_default_constructor/requirements/
2821 typedefs.cc: Likewise.
2822 * testsuite/20_util/has_trivial_default_constructor/value.cc:
2824 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
2826 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
2827 * testsuite/util/testsuite_common_types.h: Likewise.
2829 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
2831 * include/bits/hashtable_policy.h: Use __bool_constant.
2833 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
2835 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
2836 * libsupc++/Makefile.in: Regenerate.
2838 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
2840 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
2842 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2844 Update copyright years.
2846 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
2849 * testsuite/18_support/exception_ptr/64241.cc: Use
2850 dg-require-atomic-builtins.
2852 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2854 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
2857 2015-01-02 Tim Shen <timshen@google.com>
2860 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
2861 iterator, since the original one shouldn't be mutated.
2863 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2866 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
2867 (string::insert): Likewise.
2868 (string::replace): Likewise.
2869 (wstring::erase): Likewise.
2870 (wstring::insert): Likewise.
2871 (wstring::replace): Likewise.
2872 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
2874 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2877 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
2879 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2882 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
2883 Revert removal of dg-require-string-conversions.
2884 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
2886 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
2888 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
2890 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
2892 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
2894 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
2896 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
2898 * testsuite/21_strings/basic_string/numeric_conversions/char/
2899 stoull.cc: Likewise.
2900 * testsuite/21_strings/basic_string/numeric_conversions/char/
2901 to_string.cc: Likewise.
2903 Copyright (C) 2015 Free Software Foundation, Inc.
2905 Copying and distribution of this file, with or without modification,
2906 are permitted in any medium without royalty provided the copyright
2907 notice and this notice are preserved.