1 2015-08-03 Jonathan Wakely <jwakely@redhat.com>
4 * include/bits/range_access.h (size, empty, data): Fix _N bad name.
6 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
8 * testsuite/experimental/filesystem/operations/current_path.cc: Use
9 canonical paths for comparisons.
11 2015-07-30 Tim Shen <timshen@google.com>
13 * include/bits/regex_automaton.h (_State_base, _State<>):
14 Remove _TraitsT dependency from _State<>; Make matcher member
15 into the union to reduce struct size.
16 * include/bits/regex_automaton.tcc (_State_base<>::_M_print,
17 _State_base<>::_M_dot, _StateSeq<>::_M_clone):
18 Adjust to fit the interface. Factor out common parts in
19 _M_clone as _State<>::_M_has_alt.
20 * include/bits/regex_executor.h (_Executer<>::_M_lookahead):
21 Only pass state id instead of the whole state.
22 * include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
23 _Executer<>::_M_lookahead): Adjust to fit the interface.
24 * include/std/regex: Include <ext/aligned_buffer.h>
26 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
28 * include/experimental/any (any::operator=(const any&)): Check for
30 * testsuite/experimental/any/assign/self.cc: New.
31 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
33 2015-07-29 Jonathan Wakely <jwakely@redhat.com>
36 * testsuite/lib/libstdc++.exp (v3-build_support): Compile
37 testsuite_shared.cc with -std=gnu++98.
39 2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
41 * include/bits/range_access.h: Change class to typename in every
43 (size, empty, data): New functions from N4280.
44 * testsuite/24_iterators/container_access.cc: New.
47 * include/bits/functional_hash.h (__hash_enum): New.
48 (hash): Derive from __hash_enum.
49 * testsuite/20_util/hash/60970.cc: New.
51 2015-07-29 Tim Shen <timshen@google.com>
54 * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
55 _BracketMatcher<>::_M_add_collating_element): Change signature
56 to make checking the and of bracket expression easier.
57 * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
58 Treat '-' as a valid literal if it's at the end of bracket expression.
59 * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
62 2015-07-24 Jonathan Wakely <jwakely@redhat.com>
64 * include/bits/atomic_futex.h [_GLIBCXX_HAVE_LINUX_FUTEX]
65 (_M_load_and_test_until): Whitespace.
66 (_M_load_and_test): Value-initialize the unused durations.
67 (_M_load_when_equal): Add missing return value.
69 2015-07-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
71 * fragment.am (AM_CPPFLAGS): Add CPPFLAGS.
72 * Makefile.in: Regenerate.
73 * doc/Makefile.in: Regenerate.
74 * include/Makefile.in: Regenerate.
75 * libsupc++/Makefile.in: Regenerate.
76 * po/Makefile.in: Regenerate.
77 * python/Makefile.in: Regenerate.
78 * src/Makefile.in: Regenerate.
79 * src/c++11/Makefile.in: Regenerate.
80 * src/c++98/Makefile.in: Regenerate.
81 * src/filesystem/Makefile.in: Regenerate.
82 * testsuite/Makefile.in: Regenerate.
84 2015-07-23 DJ Delorie <dj@redhat.com>
86 * include/bits/functional_hash.h: Add specializations for __intN
89 * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp (__gnu_pbds):
90 Guard against values that might exceed size_t's precision.
92 2015-07-20 Jason Merrill <jason@redhat.com>
94 * include/bits/c++config: Fix abi_tag in special modes.
96 2015-07-19 Jonathan Wakely <jwakely@redhat.com>
98 * doc/xml/manual/status_cxx2017.xml: Fix URL for N4279.
99 * doc/html/manual/status.html: Regenerate.
101 2015-07-17 Jonathan Wakely <jwakely@redhat.com>
103 * doc/xml/manual/status_cxx2011.xml: Add caveats for native_handle.
104 * doc/html/manual/status.html: Regenerate.
106 2015-07-16 François Dumont <fdumont@gcc.gnu.org>
108 * include/bits/stl_algobase.h (__miter_base): Move...
109 * include/bits/cpp_type_traits.h: ...here.
110 * include/debug/functions.h (__foreign_iterator_aux): Use latter.
111 * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
113 2015-07-13 Jonathan Wakely <jwakely@redhat.com>
116 * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
117 endianness bit in mode.
118 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
120 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
121 * include/bits/forward_list.h (forward_list::swap): Make noexcept
123 * include/bits/hashtable.h (_Hashtable::swap): Do not use
125 * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
127 * include/bits/stl_deque.h (deque::swap): Likewise.
128 (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
129 * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
130 (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
131 * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
132 _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
133 * include/bits/stl_multimap.h (multimap::swap,
134 swap(multimap&, multimap&)): Likewise.
135 * include/bits/stl_multiset.h (multiset::swap,
136 swap(multiset&, multiset&)): Likewise.
137 * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
138 * include/bits/stl_tree.h (_Rb_tree::swap,
139 swap(_Rb_tree&, _Rb_tree&)): Likewise.
140 * include/bits/stl_vector.h (vector::swap): Make noexcept
142 (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
143 * include/debug/deque (deque::swap, swap): Likewise.
144 * include/debug/forward_list (swap): Add noexcept.
145 * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
146 * include/debug/map.h (map::swap, swap): Likewise.
147 * include/debug/multimap.h (multimap::swap, swap): Likewise.
148 * include/debug/multiset.h (multiset::Swap, swap): Likewise.
149 * include/debug/set.h (set::swap, swap): Likewise.
150 * include/debug/unordered_map (unordered_map::swap,
151 unordered_multimap::swap, swap): Likewise.
152 * include/debug/unordered_set (unordered_set::swap,
153 unordered_multiset::swap, swap): Likewise.
154 * include/debug/vector (vector::swap, swap): Likewise.
155 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
157 * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
158 * include/profile/forward_list (swap): Add noexcept.
159 * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
160 * include/profile/map.h (map::swap, swap): Likewise.
161 * include/profile/multimap.h (multimap::swap, swap): Likewise.
162 * include/profile/multiset.h (multiset::swap, swap): Likewise.
163 * include/profile/set.h (set::swap, swap): Likewise.
164 * include/profile/unordered_map (swap): Likewise.
165 * include/profile/unordered_set (swap): Likewise.
166 * include/profile/vector (vector::swap, swap): Likewise. Remove
167 overloads for swapping rvalues.
168 * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
169 for noexcept on swap.
170 * testsuite/23_containers/forward_list/allocator/noexcept.cc:
172 * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
173 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
174 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
175 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
176 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
177 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
179 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
181 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
183 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
185 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
186 * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
187 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
190 2015-07-13 John Marino <gnugcc@marino.st>
192 * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
193 _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
194 _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
196 2015-07-05 François Dumont <fdumont@gcc.gnu.org>
198 * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
200 * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
203 2015-07-03 Jonathan Wakely <jwakely@redhat.com>
205 * doc/xml/manual/status_cxx2017.xml: Update status table.
206 * doc/html/manual/*: Regenerate.
208 2015-07-03 Ville Voutilainen <ville.voutilainen@gmail.com>
210 Implement std::experimental::fundamentals_v2::propagate_const.
211 * include/Makefile.am: Add propagate_const.
212 * include/Makefile.in: Regenerate.
213 * include/experimental/propagate_const: New.
214 * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
215 * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
216 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
218 * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
219 * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
220 * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
221 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
222 * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
223 * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
224 * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
225 * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
226 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
227 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
228 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
229 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
230 * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
231 * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
233 2015-07-02 Jonathan Wakely <jwakely@redhat.com>
235 * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
236 --with-default-libstdcxx-abi
237 * configure: Regenerate.
238 * doc/xml/manual/configure.xml: Document valid arguments.
240 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
242 * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
243 to avoid unused variable warning.
244 (__set_and_release): Use __p after __atomic_store to avoid unused
247 2015-07-01 Jonathan Wakely <jwakely@redhat.com>
249 * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
250 (__allocator_traits_base): New base class.
251 (__alloc_rebind): Reimplement in terms of detection idiom.
252 (allocator_traits): Derive from __allocator_traits_base. Reimplement
253 nested types in terms of detection idiom. Simplify SFINAE constraints
254 on overloaded static member functions.
255 * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
257 * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
258 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
259 dg-error line number.
261 * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
262 __ptrtr_rebind, __ptrtr_not_void): Remove
263 (__get_first_arg, __replace_first_arg, __make_not_void): Define new
265 (__detected_or_): New detection trait.
266 (pointer_traits): Use new traits.
267 * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
268 * testsuite/20_util/pointer_traits/requirements/
269 explicit_instantiation.cc: Use valid arguments to pointer_traits.
271 * doc/xml/manual/status_cxx2017.xml: Update status table.
272 * include/experimental/type_traits (void_t, is_detected,
273 is_detected_v, detected_t, detected_or, detected_or_t,
274 is_detected_exact, is_detected_exact_v, is_detected_convertible,
275 is_detected_convertible_v): Define.
276 * include/std/type_traits (__detector, __detected_or, __detected_or_t,
277 __detected_or_t_): Define.
278 * testsuite/experimental/type_traits/detection.cc: New.
280 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
282 * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
283 * doc/Makefile.in: Regenerate.
285 * include/bits/stl_pair.h: Replace class keyword with typename.
287 2015-06-30 Ville Voutilainen <ville.voutilainen@gmail.com>
289 Implement N4387, "Improving pair and tuple", and LWG 2367.
291 * include/bits/stl_pair.h (_ConstructiblePair,
292 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
293 _ImplicitlyMoveConvertiblePair): New.
294 (pair()): Constrain it.
295 (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
296 pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
297 pair(pair<_U1, _U2>&&)): Make conditionally explicit.
298 * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
299 (tuple()): Constrain it.
300 (tuple(const _UElements&...), tuple(_UElements&&...),
301 tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
302 tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
303 tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
304 tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
305 tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
306 tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
307 tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
308 tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
309 conditionally explicit.
310 * include/experimental/functional (__boyer_moore_array_base): Name
311 array type explicitly instead of using an empty braced-init-list.
312 * testsuite/20_util/pair/cons/explicit_construct.cc: New.
313 * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
314 * testsuite/20_util/pair/requirements/dr2367.cc: New.
315 * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
316 * testsuite/20_util/tuple/requirements/dr2367.cc: New.
318 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
320 * configure: Regenerate.
322 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
324 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
326 * include/debug/functions.h
327 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
328 * include/debug/safe_iterator.h
329 (__gnu_debug::_Sequence_traits): New.
330 (__gnu_debug::__get_distance_from_begin): New.
331 (__gnu_debug::__get_distance_to_end): New.
332 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
333 distance information. Add optional check_dereferenceable parameter,
335 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
336 default definition...
337 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
338 (__gnu_debug::__unsafe): Likewise.
339 * include/debug/helper_functions.h: ...here. New.
340 (__gnu_debug::__unsafe): New helper function to remove safe iterator
342 * include/debug/stl_iterator.h: New. Include latter.
343 * include/bits/stl_iterator.h: Include latter in debug mode.
344 * include/debug/stl_iterator.tcc: Adapt.
345 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
346 overload for _Safe_local_iterator.
347 (__gnu_debug::__unsafe): Likewise.
348 * include/debug/safe_local_iterator.tcc: Adapt.
349 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
350 (__glibcxx_check_insert_range): Add _Dist parameter.
351 (__glibcxx_check_insert_range_after): Likewise.
352 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
353 _GLIBCXX_DEBUG_PEDASSERT.
354 * include/debug/deque (deque<>::assign): Remove iterator debug layer
356 (deque<>::insert): Likewise.
357 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
358 (forward_list<>::splice_after): Use latter.
359 (forward_list<>::assign): Remove iterator debug layer when possible.
360 (forward_list<>::insert_after): Likewise.
361 (__gnu_debug::_Sequence_traits<>): Partial specialization.
362 * include/debug/list (list<>::assign): Remove iterator debug layer when
364 (list<>::insert): Likewise.
365 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
366 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
368 * include/debug/multimap.h (multimap<>::insert): Likewise.
369 * include/debug/set.h (set<>::insert): Likewise.
370 * include/debug/multiset.h (multiset<>::insert): Likewise.
371 * include/debug/string (basic_string<>::append, basic_string<>::assign,
372 basic_string<>::insert, basic_string<>::replace): Likewise.
373 * include/debug/unordered_map
374 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
375 * include/debug/unordered_set
376 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
377 * include/debug/vector
378 (vector<>::assign, vector<>::insert): Likewise.
379 * include/Makefile.am: Add new debug headers.
380 * include/Makefile.in: Regenerate.
382 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
384 * doc/xml/manual/intro.xml: Document LWG 2108 status.
385 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
387 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
388 * include/bits/forward_list.h
389 (forward_list::operator=(forward_list&&)): Use __bool_constant.
390 (forward_list::swap(forward_list&)): Add noexcept.
391 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
393 (_Hashtable::swap(_Hashtable&)): Likewise.
394 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
395 Use _Alloc_traits::is_always_equal.
396 (deque::operator=(deque&&)): Likewise.
397 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
399 (swap(deque&, deque&)): Add noexcept.
400 * include/bits/stl_list.h (list::operator=(list&&)): Use
402 (swap(list&, list&)): Add noexcept.
403 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
405 (swap(map&, map&)): Add noexcept.
406 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
407 _Compare in noexcept.
408 (swap(multimap&, multimap&)): Add noexcept.
409 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
410 _Compare in noexcept.
411 (swap(multiset&, multiset&)): Add noexcept.
412 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
414 (swap(set&, set&)): Add noexcept.
415 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
416 _Compare in noexcept.
417 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
419 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
421 (swap(vector&, vector&)): Add noexcept.
422 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
423 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
424 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
425 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
426 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
428 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
429 __allocator_always_compares_equal.
430 * include/ext/array_allocator.h (array_allocator::is_always_equal):
432 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
433 __propagate_on_move, __propagate_on_swap): Remove.
434 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
435 scoped_allocator_adaptor::propagate_on_container_move_assignment,
436 scoped_allocator_adaptor::propagate_on_container_swap): Define with
437 __and_ instead of __any_of.
438 (scoped_allocator_adaptor::is_always_equal): Define.
439 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
440 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
441 derive from true_type or false_type.
442 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
443 is_always_equal member and remove the trait specialization.
444 * testsuite/23_containers/vector/52591.cc: Likewise.
445 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
446 Adjust dg-error line number.
447 * testsuite/23_containers/deque/requirements/dr438/
448 constructor_1_neg.cc: Likewise.
449 * testsuite/23_containers/deque/requirements/dr438/
450 constructor_2_neg.cc: Likewise.
451 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
453 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
455 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
457 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
459 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
461 * testsuite/23_containers/vector/requirements/dr438/
462 constructor_1_neg.cc: Likewise.
463 * testsuite/23_containers/vector/requirements/dr438/
464 constructor_2_neg.cc: Likewise.
465 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
468 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
469 * include/bits/stl_map.h (map::map()): Likewise.
470 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
471 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
472 * include/bits/stl_set.h (set::set()): Likewise.
474 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
476 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
478 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
480 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
482 (basic_string<>::back()): Likewise.
483 (basic_string<>::pop_back()): Likewise.
485 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
487 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
488 dg-error line numbers.
489 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
492 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
494 * include/debug/array: Include <array>. Add version namespace when
495 specializing tuple interface to array. Add specialization for
496 __is_tuple_like_impl.
497 * include/profile/array: Likewise.
498 * include/std/array: Include <utility>. Add specialization for
499 __is_tuple_like_impl.
501 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
502 * include/std/utility: ... here. Include <type_traits>.
503 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
504 dg-error line number.
505 * testsuite/23_containers/array/tuple_interface/
506 tuple_element_debug_neg.cc: Likewise.
508 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
510 * testsuite/26_numerics/complex/value_operations/1.cc: Use
511 non-negative rho argument.
513 * include/debug/list (__gnu_debug::list): Use allocator-aware
514 _Safe_container base.
515 * include/debug/string (__gnu_debug::basic_string): Use
516 allocator-aware _Safe_container base for cxx11 ABI.
518 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
519 (wstring_convert): Move into __cxx11 namespace.
520 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
524 * include/bits/stl_uninitialized.h
525 (__uninitialized_copy::__uninit_copy): Cast expression to void.
527 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
530 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
531 (list::list(const list&)): Use allocator propagation trait. Use
532 _M_assign_dispatch to copy elements.
533 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
534 (_List_node::_M_valptr()): Add accessor for stored value.
535 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
536 (_List_base, list): Use allocator traits.
537 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
538 (_List_base::_M_move_nodes): New function.
539 (_List_base(_List_base&&)): Use _M_move_nodes.
540 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
541 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
543 (list(size_type)): Add allocator parameter.
544 (list(const list&)): Use allocator propagation trait.
545 (list(const list&, const allocator_type&)): New constructor.
546 (list(list&&, const allocator_type&)): Likewise.
547 (list::operator=(list&&), list::swap(list&)): Use allocator
549 (list::_M_move_assign): New functions.
550 * include/debug/list: Add allocator-extended constructors.
551 * include/profile/list: Likewise.
552 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
553 function to get value from _List_node.
554 (StdListPrinter): Use get_value_from_list_node.
555 * testsuite/23_containers/list/allocator/copy.cc: New.
556 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
557 * testsuite/23_containers/list/allocator/minimal.cc: New.
558 * testsuite/23_containers/list/allocator/move.cc: New.
559 * testsuite/23_containers/list/allocator/move_assign.cc: New.
560 * testsuite/23_containers/list/allocator/noexcept.cc: New.
561 * testsuite/23_containers/list/allocator/swap.cc: New.
562 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
563 Adjust dg-prune-output line number.
564 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
566 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
569 * include/bits/forward_list.h
570 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
572 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
573 (forward_list(const _Alloc&)): Split default constructor out to
575 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
577 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
578 swap call with two assignments.
579 * include/bits/forward_list.tcc
580 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
581 move elements when allocators are not equal.
582 * include/debug/forward_list (forward_list(const allocator_type&)):
583 Split default constructor out to separate function.
584 * include/profile/forward_list (forward_list(const _Alloc&)):
587 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
588 Remove unnecessary uses of operator& and static_cast.
589 * include/bits/forward_list.tcc
590 (forward_list::operator=(const forward_list&)): Use __addressof
591 instead of operator&.
592 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
593 Remove invalid static_casts.
594 * include/debug/forward_list: Use __addressof instead of operator&.
595 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
597 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
598 __is_nothrow_swappable.
600 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
602 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
604 * include/bits/list.tcc (list::operator=(const list&), list::merge):
605 Use __addressof instead of operator&.
606 (list::sort): Use array-to-pointer decay instead of operator&.
607 * include/bits/stl_list.h (list::splice): Use __addressof instead of
609 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
611 * include/debug/functions.h (__check_singular): Likewise.
612 * include/debug/list (list::splice, list::merge): Likewise.
613 * testsuite/23_containers/list/modifiers/addressof.cc: New.
616 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
619 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
621 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
624 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
627 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
631 * config/cpu/alpha/atomic_word.h: Remove.
632 * config/cpu/ia64/atomic_word.h: Remove.
633 * config/cpu/powerpc/atomic_word.h: Remove.
634 * config/os/aix/atomic_word.h: Remove.
635 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
636 Use generic definition.
638 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
642 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
643 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
644 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
645 * include/ext/atomicity.h: Likewise.
646 * include/tr1/shared_ptr.h: Likewise.
647 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
649 (__set_and_release): Likewise.
650 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
652 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
653 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
656 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
658 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
659 debug and profile modes.
660 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
661 for swap in C++11 and later.
663 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
666 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
669 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
672 * testsuite/22_locale/conversions/string/66441.cc: New.
673 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
674 in the output string for BOM and complete result.
677 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
678 for single UTF-16 units.
679 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
681 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
683 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
684 outer scope and rename to ...
685 (std::__hash_is_transparent<>): ... this.
686 * include/debug/stl_map.h (map::find<>,
687 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
688 member function templates to perform heterogeneous lookup.
689 * include/debug/stl_multimap.h (multimap::find<>,
690 multimap::lower_bound<>, multimap::upper_bound<>,
691 multimap::equal_range<>): Likewise.
692 * include/debug/stl_multiset.h (multiset::find<>,
693 multiset::lower_bound<>, multiset::upper_bound<>,
694 multiset::equal_range<>): Likewise.
695 * include/debug/stl_set.h (set::find<>,
696 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
697 * include/profile/stl_map.h (map::find<>, map::count<>,
698 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
699 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
700 multimap::lower_bound<>, multimap::upper_bound<>,
701 multimap::equal_range<>): Likewise.
702 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
703 multiset::lower_bound<>, multiset::upper_bound<>,
704 multiset::equal_range<>): Likewise.
705 * include/profile/stl_set.h (set::find<>, set::count<>,
706 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
707 * testsuite/23_containers/map/operations/1.cc: Check const variants.
708 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
709 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
710 * testsuite/23_containers/set/operations/1.cc: Likewise.
712 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
714 * doc/xml/manual/status_cxx2017.xml: Update status tables.
715 * doc/html/manual/*: Regenerate.
716 * include/std/type_traits (bool_constant): Define.
717 * testsuite/20_util/bool_constant/requirements.cc: New.
718 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
719 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
721 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
724 * include/std/shared_mutex (__shared_mutex_pthread,
725 __shared_mutex_cv): New helper types implementing the shared mutex
727 (shared_mutex): New type for C++17.
728 (shared_timed_mutex): Derive from one of the new helper types.
729 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
730 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
731 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
732 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
734 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
735 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
737 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
739 Add __is_nothrow_swappable and take it into use.
740 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
741 * include/bits/move.h (swap): Add constraints in C++11 and later.
742 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
743 for the free swap function for pair.
744 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
745 for the free swap functions for queue and priority_queue.
746 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
747 for the free swap function for stack.
748 * include/debug/array (swap): Use __is_nothrow_swappable
749 for the free swap function for array.
750 * include/profile/array (swap): Likewise.
751 * include/std/array (swap): Likewise.
752 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
753 * include/std/type_traits (__is_swappable_impl::__is_swappable,
754 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
755 * testsuite/20_util/is_nothrow_swappable/requirements/
756 explicit_instantiation.cc: New.
757 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
759 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
761 2015-06-03 François Dumont fdumont@gcc.gnu.org>
763 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
765 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
767 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
768 * doc/html/manual/*: Regenerate.
770 * doc/html/ext/lwg-active.html: Update to R93.
771 * doc/html/ext/lwg-closed.html: Likewise.
772 * doc/html/ext/lwg-defects.html: Likewise.
773 * doc/html/manual/*: Regenerate.
774 * doc/xml/manual/intro.xml: Document status of several DRs.
776 2015-06-02 Renlin Li <renlin.li@arm.com>
778 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
780 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
782 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
783 environment variable.
785 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
788 * include/bits/stl_algobase.h (__fill_a): Check length before calling
791 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
793 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
794 instead of checking for null pointers.
795 (__lexicographical_compare<true>::__lc): Only check shorter length.
797 2015-05-29 François Dumont fdumont@gcc.gnu.org>
799 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
800 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
801 * include/debug/assertions.h: ...here, new.
802 * include/debug/formatter.h
803 (_Error_formatter::_Is_iterator_value_type): New.
804 (_Error_formatter::_Is_instance): New.
805 (_Error_formatter::_Parameter): Make public and not friend anymore.
806 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
807 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
809 (_Error_formatter::_Parameter::_Type): New.
810 (_Error_formatter::_Parameter::_Instance): New, inherit from
812 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
813 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
814 overloads take iterator through a const reference.
815 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
817 (_Parameter(const _Type&, const char*, _Is_instance)): New.
818 (_Error_formatter::_M_print_type): Delete.
819 (_Error_formatter::_M_iterator_value_type): New.
820 (_Error_formatter::_M_instance): New.
821 * include/Makefile.am: Add new above debug file.
822 * include/Makefile.in: Regenerate.
823 * include/debug/functions.h
824 (__check_dereferenceable(const _Safe_iterator<>&),
825 __valid_range(const _Safe_iterator<>&),
826 __is_safe_random_iterator<_Safe_iterator<>>): Move...
827 * include/debug/safe_iterator.h: ... here.
828 Replace debug.h include with assertions.h.
829 (__check_singular_aux): Move...
830 * include/debug/safe_base.h: ... here.
831 * include/debug/functions.h
832 (__check_dereferenceable(const _Safe_local_iterator<>&),
833 __valid_range(const _Safe_local_iterator<>&): Move...
834 * include/debug/safe_local_iterator.h: ...here.
835 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
836 Remove _Safe_iterator declaration.
837 * include/debug/safe_unordered_container.h: Replace debug.h with
839 * include/debug/array: Replace safe_sequence.h include with
840 formatter.h and macros.h.
841 * include/debug/deque: Include functions.tcc.
842 * include/debug/forward_list: Likewise.
843 * include/debug/list: Likewise.
844 * include/debug/string: Likewise.
845 * include/debug/vector: Likewise.
846 * include/bits/unique_ptr.h: Replace debug.h include with new
848 * include/bits/stl_iterator_base_funcs.h: Likewise.
849 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
850 Adjust dg-error line number.
851 * testsuite/23_containers/array/tuple_interface/
852 tuple_element_debug_neg.cc: Likewise.
853 * src/c++11/debug.cc: Adapt.
855 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
857 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
858 * doc/html/manual/*: Regenerate.
860 * include/std/future (__async_result_of): New alias template.
861 (async): Use __async_result_of to pass decayed types to result_of.
862 * testsuite/30_threads/async/lwg2021.cc: New.
863 * doc/xml/manual/intro.xml: Document LWG 2021 status.
866 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
867 memcmp with null pointers.
868 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
871 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
874 * include/profile/array (array::data): Use _S_ptr.
875 * include/debug/array (array::data): Likewise.
878 * include/std/array (__array_traits::_S_ptr): New function.
879 (array::data): Use _S_ptr to avoid creating invalid reference.
880 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
881 dg-error line numbers.
882 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
885 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
887 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
888 instead of downcasting.
889 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
890 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
891 (_Rb_tree::_S_iter): Remove.
892 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
893 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
894 instead of _S_lower_bound_tr
895 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
896 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
897 instead of calling _S_lower_bound_tr.
898 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
899 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
900 instead of calling _S_upper_bound_tr.
901 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
902 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
903 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
904 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
905 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
906 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
907 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
908 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
911 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
912 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
914 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
915 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
916 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
917 alignment of _Tp as a member subobject, not as a complete object.
918 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
919 _Link_type manually as it might not be in the debug info.
921 2015-05-26 Doug Evans <dje@google.com>
923 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
925 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
928 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
930 * include/bits/locale_conv.h: Fix copyright years.
931 * include/bits/quoted_string.h: Likewise.
932 * src/filesystem/Makefile.am: Likewise.
933 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
934 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
936 * testsuite/22_locale/conversions/string/1.cc: Likewise.
937 * testsuite/22_locale/conversions/string/2.cc: Likewise.
938 * testsuite/22_locale/conversions/string/3.cc: Likewise.
939 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
941 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
943 * testsuite/util/testsuite_fs.h: Likewise.
945 2015-05-23 François Dumont fdumont@gcc.gnu.org>
948 * include/debug/functions.h (__check_sorted_aux): Cast expression to
951 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
954 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
955 Don't use isync. Use lwsync if available.
956 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
957 powerpc cpu definition.
959 2015-05-21 Jason Merrill <jason@redhat.com>
961 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
962 * libsupc++/del_op.cc: Likewise.
964 2015-05-20 François Dumont fdumont@gcc.gnu.org>
966 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
968 (_Error_formatter::_M_print_type): New.
970 (_Error_formatter::_Parameter::_M_print_field): Use latter.
971 (_Error_formatter::_M_print_type): Implement latter using
972 __cxaabiv1::__cxa_demangle to print demangled type name.
974 * include/bits/cpp_type_traits.h
975 (std::move_iterator): Delete declaration.
976 (std::__is_move_iterator<move_iterator>): Move partial specialization...
977 * include/bits/stl_iterator.h: ... here.
978 (std::__miter_base): Overloads for std::reverse_iterator and
980 * include/bits/stl_algobase.h (std::__miter_base): Provide default
983 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
985 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
988 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
989 overload for pointers.
990 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
991 808590.cc: Add -std=gnu++03 switch.
992 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
993 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
994 * testsuite/23_containers/vector/modifiers/push_back/
995 strong_guarantee.cc: New.
997 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
999 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
1000 (operator==(const list&, const list&)): If size() is O(1) compare
1001 sizes before comparing each element.
1002 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
1003 (list::resize): Use _M_resize_pos.
1005 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
1007 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
1009 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
1010 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
1011 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
1013 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1015 * configure.host: Define cpu_defines_dir for ARM.
1016 * config/cpu/arm/cpu_defines.h: New file.
1018 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
1020 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
1021 missing constructors.
1022 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
1024 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
1025 missing constructors.
1026 * include/debug/unordered_set (unordered_set, unordered_multiset):
1028 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
1029 missing constructors.
1030 * include/profile/unordered_set (unordered_set, unordered_multiset):
1033 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
1035 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
1036 use throughout the file.
1037 (make_file_type): New function.
1038 (file_size(const path&, error_code&)): Report an error for anything
1039 that isn't a regular file.
1040 (status(const path&), symlink_status(const path&)): Do not throw for
1041 file_type::not_found.
1042 (temp_directory_path()): Check additional environment variables.
1043 * testsuite/experimental/filesystem/operations/exists.cc: New.
1044 * testsuite/experimental/filesystem/operations/file_size.cc: New.
1045 * testsuite/experimental/filesystem/operations/status.cc: New.
1046 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1049 2015-05-14 Nathan Myers <ncm@cantrip.org>
1050 Jonathan Wakely <jwakely@redhat.com>
1053 * include/std/unordered_map (unordered_map, unordered_multimap): Add
1054 missing constructors.
1055 * include/std/unordered_set (unordered_set, unordered_multiset):
1057 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
1058 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
1059 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
1060 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
1062 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
1065 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
1067 * config.h.in: Regenerate.
1068 * configure: Regenerate.
1069 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
1070 not return after copying contents. Use fchmod, fchmodat, and sendfile
1072 (current_path, permissions, space): Use errno not return value.
1075 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
1077 * config.h.in: Regenerate.
1078 * configure: Regenerate.
1079 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
1081 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
1083 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
1084 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
1085 * config.h.in: Regenerate.
1086 * configure: Likewise.
1087 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
1088 __USING_SJLJ_EXCEPTIONS__.
1089 * libsupc++/eh_throw.cc: Likewise.
1090 * libsupc++/eh_ptr.cc: Likewise.
1091 * doc/html/manual/appendix_porting.html: Remove
1092 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
1093 * doc/xml/manual/build_hacking.xml: Likewise.
1094 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
1095 * doc/xml/manual/configure.xml: Likewise.
1097 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
1099 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
1100 for nullptr (LWG 2415).
1101 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
1102 construction from empty unique_ptr.
1103 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
1104 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
1106 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
1108 * testsuite/20_util/raw_storage_iterator/base.cc: New.
1110 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
1111 Remove explicit (LWG 2407).
1113 * include/bits/basic_string.h (basic_string::basic_string()): Make
1114 noexcept conditional on allocator (LWG 2455).
1116 * include/std/complex (polar): Check for negative rho (LWG 2459).
1118 * include/experimental/tuple (apply): Handle pointers to member (LWG
1120 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
1121 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
1122 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
1124 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
1126 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
1127 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
1128 * testsuite/23_containers/forward_list/allocator/minimal.cc:
1130 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
1131 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
1132 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
1133 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
1134 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
1136 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
1138 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
1140 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
1142 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
1144 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
1145 * configure: Regenerate.
1147 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1149 * Makefile.in: Regenerated with automake-1.11.6.
1150 * aclocal.m4: Likewise.
1151 * configure: Likewise.
1152 * doc/Makefile.in: Likewise.
1153 * include/Makefile.in: Likewise.
1154 * libsupc++/Makefile.in: Likewise.
1155 * po/Makefile.in: Likewise.
1156 * python/Makefile.in: Likewise.
1157 * src/Makefile.in: Likewise.
1158 * src/c++11/Makefile.in: Likewise.
1159 * src/c++98/Makefile.in: Likewise.
1160 * src/filesystem/Makefile.in: Likewise.
1161 * testsuite/Makefile.in: Likewise.
1163 2015-05-09 Jason Merrill <jason@redhat.com>
1165 * testsuite/20_util/headers/functional/synopsis.cc: Add
1166 _GLIBCXX14_CONSTEXPR.
1167 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
1169 2015-05-08 Jason Merrill <jason@redhat.com>
1171 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
1172 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
1173 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
1174 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
1175 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
1176 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
1177 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
1178 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
1179 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
1180 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
1181 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
1183 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
1184 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1185 Adjust expected errors.
1186 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1188 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1190 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1192 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1194 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1196 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1198 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1200 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1202 * testsuite/23_containers/vector/requirements/dr438
1203 /constructor_1_neg.cc: Likewise.
1204 * testsuite/23_containers/vector/requirements/dr438
1205 /constructor_2_neg.cc: Likewise.
1206 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1208 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
1209 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
1210 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
1211 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
1212 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
1213 Add -Wno-deprecated.
1214 * testsuite/ext/array_allocator/check_deallocate_null.cc:
1215 Add -Wno-deprecated.
1216 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
1217 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
1218 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
1219 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
1221 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
1223 * testsuite/tr1/2_general_utilities/shared_ptr/assign
1224 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
1225 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
1226 Add -std=c++98 -fno-show-column.
1227 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
1229 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
1231 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
1232 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
1234 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1235 * src/c++98/Makefile.in: Regenerate.
1236 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1237 * src/Makefile.in: Regenerate.
1239 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
1242 * include/std/future (async): Change default policy to launch::async.
1244 * include/experimental/any (any::_Storage): Fix alignment of buffer.
1245 (any::_Internal): Check alignment of type.
1246 * testsuite/experimental/any/cons/aligned.cc: New.
1247 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1249 * include/experimental/iterator (ostream_joiner): Simplify by using
1250 the injected-class-name and the ostream_type typedef.
1252 * include/experimental/iterator: New. Define ostream_joiner.
1253 * include/Makefile.am: Add new header.
1254 * include/Makefile.in: Regenerate.
1255 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
1256 * testsuite/experimental/iterator/ostream_joiner.cc: New.
1257 * testsuite/experimental/iterator/requirements.cc: New.
1258 * doc/xml/manual/status_cxx2017.xml: Update status.
1259 * doc/html/manual/status.html: Regenerate.
1261 * include/experimental/numeric: New. Define gcd and lcm.
1262 * include/Makefile.am: Add new header.
1263 * include/Makefile.in: Regenerate.
1264 * testsuite/experimental/numeric/gcd.cc: New.
1265 * testsuite/experimental/numeric/lcm.cc: New.
1266 * doc/xml/manual/status_cxx2017.xml: Update status.
1267 * doc/html/manual/status.html: Regenerate.
1269 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
1271 Revert addition of feature macros from other headers per latest SD-6.
1272 * include/experimental/deque: Remove feature-test macro.
1273 * include/experimental/forward_list: Ditto.
1274 * include/experimental/list: Ditto.
1275 * include/experimental/map: Ditto.
1276 * include/experimental/set: Ditto.
1277 * include/experimental/string: Ditto.
1278 * include/experimental/unordered_map: Ditto.
1279 * include/experimental/unordered_set: Ditto.
1281 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
1283 * include/experimental/any (any::_Storage): Make non-copyable.
1284 (any::any): Do not copy _Storage object.
1285 (any::operator=): Implement more efficiently than swapping.
1286 (any::swap): Use new _Op_xfer operation.
1287 (any::_Op::_Op_xfer): New enumerator.
1288 (_Manager_internal::_S_alloc): Remove unused function.
1289 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
1290 parameter instead of returning a _Storage object.
1291 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
1292 _Op_xfer operation for moving and swapping.
1293 * testsuite/experimental/any/cons/nontrivial.cc: New.
1294 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1296 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
1298 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
1302 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
1303 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
1304 and fix tests for forward_as_tuple and tie.
1306 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
1307 Set timespec members explicitly instead of with a braced-init-list.
1308 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
1310 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
1312 * include/experimental/deque: Add feature-test macro.
1313 * include/experimental/forward_list: Ditto.
1314 * include/experimental/list: Ditto.
1315 * include/experimental/map: Ditto.
1316 * include/experimental/set: Ditto.
1317 * include/experimental/string: Ditto.
1318 * include/experimental/unordered_map: Ditto.
1319 * include/experimental/unordered_set: Ditto.
1321 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1323 * include/experimental/memory: Correct feature-test macro.
1325 * include/experimental/memory: Add feature-test macro.
1326 * include/experimental/vector: Likewise.
1327 * doc/xml/manual/status_cxx2017.xml: Update status.
1328 * doc/html/manual/status.html: Regenerate.
1330 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
1332 Implement observer_ptr.
1333 * include/Makefile.am: Add new header.
1334 * include/Makefile.in: Regenerate.
1335 * include/experimental/memory: New.
1336 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
1337 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
1338 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
1339 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
1340 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
1341 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
1342 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
1343 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
1345 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1347 * src/filesystem/path.cc (path::compare): Do not copy strings.
1349 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
1351 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
1352 * configure: Regenerate.
1353 * config.h.in: Regenerate.
1354 * configure.ac: Check for utime.h
1355 * include/experimental/fs_path.h (path::string<>)
1356 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
1357 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
1358 closedir, dirent, readdir_r): Replace dummy functions with #error.
1359 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
1360 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
1361 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
1362 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
1363 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
1366 * include/experimental/fs_path.h (path::_List): Use vector instead of
1368 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
1369 * src/filesystem/path.cc: Use std::prev instead of decrementing
1370 rvalues. Fix whitespace.
1371 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1372 Do not decrement iterators before begin.
1374 * include/experimental/fs_dir.h: Fix use of non-reserved names.
1375 * include/experimental/fs_ops.h: Likewise.
1376 * include/experimental/fs_path.h: Likewise.
1377 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
1378 C++11 when checking for support.
1380 * include/bits/locale_classes.h (locale::facet): Delete copy
1381 operations in C++11 mode.
1383 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
1385 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
1386 * configure: Regenerate.
1388 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1390 Inline one-line erasure dispatch functions.
1391 * include/experimental/forward_list (erase_if(), erase()): Inline.
1392 * include/experimental/list (erase_if(), erase()): Inline.
1393 * include/experimental/map (erase_if(*)): Inline.
1394 * include/experimental/set (erase_if(*)): Inline.
1395 * include/experimental/string (erase_if(), erase()): Inline.
1396 * include/experimental/unordered_map (erase_if(*)): Inline.
1397 * include/experimental/unordered_set (erase_if(*)): Inline.
1399 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1401 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
1402 * doc/xml/manual/status_cxx2011.xml: Update status tables.
1403 * doc/xml/manual/status_cxx2014.xml: Likewise.
1404 * doc/xml/manual/status_cxx2017.xml: New.
1405 * doc/xml/manual/using.xml: Fix typo.
1406 * doc/html/*: Regenerate.
1408 * include/std/memory (pointer_safety, declare_reachable,
1409 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
1410 get_pointer_safety): Define.
1411 * testsuite/20_util/pointer_safety/1.cc: New.
1413 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
1415 Implement N4100 File System TS
1416 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
1417 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
1418 * config.h.in: Regenerate.
1419 * configure: Regenerate.
1420 * configure.ac: Enable filesystem TS and check its dependencies.
1421 * include/Makefile.am: Add new headers.
1422 * include/Makefile.in: Regenerate.
1423 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
1424 __str_codecvt_out): Move code conversion logic from wstring_convert
1425 into new global functions.
1426 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
1428 (wstring_convert::_M_conv): Remove.
1429 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
1430 * include/experimental/filesystem: New.
1431 * include/experimental/fs_dir.h: New.
1432 * include/experimental/fs_fwd.h: New.
1433 * include/experimental/fs_ops.h: New.
1434 * include/experimental/fs_path.h: New.
1435 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
1436 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
1437 * src/Makefile.am (SUBDIRS): Add filesystem.
1438 * src/Makefile.in: Regenerate.
1439 * src/filesystem/Makefile.am: New.
1440 * src/filesystem/Makefile.in: New.
1441 * src/filesystem/dir.cc: New.
1442 * src/filesystem/ops.cc: New.
1443 * src/filesystem/path.cc: New.
1444 * testsuite/experimental/filesystem/operations/absolute.cc: New.
1445 * testsuite/experimental/filesystem/operations/copy.cc: New.
1446 * testsuite/experimental/filesystem/operations/current_path.cc: New.
1447 * testsuite/experimental/filesystem/path/append/path.cc: New.
1448 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
1449 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
1450 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
1451 * testsuite/experimental/filesystem/path/compare/path.cc: New.
1452 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
1453 * testsuite/experimental/filesystem/path/concat/path.cc: New.
1454 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
1455 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
1456 * testsuite/experimental/filesystem/path/construct/default.cc: New.
1457 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
1458 * testsuite/experimental/filesystem/path/construct/range.cc: New.
1459 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
1460 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
1461 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1463 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1465 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1467 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1469 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1471 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
1472 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1474 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
1475 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
1476 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1478 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1480 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1482 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1484 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
1485 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
1486 * testsuite/experimental/filesystem/path/query/empty.cc: New.
1487 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
1488 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
1489 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1491 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1493 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1495 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1497 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1499 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
1500 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
1501 * testsuite/util/testsuite_fs.h: New.
1503 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1505 Add fundamentals TR container erasure.
1506 * include/Makefile.am: Add new headers.
1507 * include/Makefile.in: Add new headers.
1508 * include/experimental/array: New.
1509 * include/experimental/deque: New.
1510 * include/experimental/erase_if.tcc: New.
1511 * include/experimental/forward_list: New.
1512 * include/experimental/list: New.
1513 * include/experimental/map: New.
1514 * include/experimental/set: New.
1515 * include/experimental/string: New.
1516 * include/experimental/unordered_map: New.
1517 * include/experimental/unordered_set: New.
1518 * include/experimental/vector: New.
1519 * testsuite/experimental/deque/erasure.cc: New.
1520 * testsuite/experimental/forward_list/erasure.cc: New.
1521 * testsuite/experimental/list/erasure.cc: New.
1522 * testsuite/experimental/map/erasure.cc: New.
1523 * testsuite/experimental/set/erasure.cc: New.
1524 * testsuite/experimental/string/erasure.cc: New.
1525 * testsuite/experimental/unordered_map/erasure.cc: New.
1526 * testsuite/experimental/unordered_set/erasure.cc: New.
1527 * testsuite/experimental/vector/erasure.cc: New.
1529 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
1531 * include/bits/cpp_type_traits.h
1532 (__gnu_cxx::__is_normal_iterator): Delete.
1533 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
1534 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
1535 (std::__niter_base): Overloads for std::reverse_iterator,
1536 __gnu_cxx::__normal_iterator and std::move_iterator.
1538 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
1540 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
1542 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
1543 Remove usage of latter and compute size of the prime numbers array
1546 2015-04-29 Doug Evans <dje@google.com>
1549 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
1550 Replace all lookups of "bool" with this.
1551 (get_std_size_type): New function. Replace all lookups of std::size_t
1553 (*Worker): New method get_result_type.
1554 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
1555 (ListWorkerBase.__init__): New arg val_type. All callers updated.
1556 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
1557 Delete setting of name, enabled.
1558 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
1559 updated. Delete setting of name.
1560 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
1561 libstdc++ xmethod matchers.
1562 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
1563 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
1564 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
1565 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
1566 * testsuite/libstdc++-xmethods/list.cc: Ditto.
1567 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
1568 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
1570 2015-04-29 Doug Evans <dje@google.com>
1572 Use consistent naming for value type attributes.
1573 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
1575 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
1576 (ArrayFrontWorker, ArrayBackWorker): Ditto.
1577 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
1578 (DequeWorkerBase): Rename elemtype to val_type.
1579 (ForwardListWorkerBase): Rename _elem_type to _val_type.
1580 (ForwardListFrontWorker): Ditto. And rename elem_address to
1582 (ForwardListMethodsMatcher): Rename elem_type to val_type.
1583 (VectorWorkerBase): Rename _elemtype to _val_type.
1585 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
1588 * include/std/functional (__check_func_return_type): Use is_same to
1589 avoid using _is_convertible on incomplete types.
1590 * testsuite/20_util/function/65760.cc: New.
1593 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
1595 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
1596 time_get::_M_extract_num, time_get::_M_extract_name,
1597 time_get::_M_extract_wday_or_month): Likewise.
1598 * include/bits/stl_algo.h (__includes, __replace_copy_if,
1599 __is_sorted_until, __is_permutation, transform): Likewise.
1600 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
1601 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
1602 * include/bits/stl_numeric.h (inner_product): Likewise.
1603 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
1604 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
1605 input_iterator_wrapper): Declare unusable comma operator.
1606 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
1607 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
1610 2015-04-28 Doug Evans <dje@google.com>
1612 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
1615 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1617 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
1620 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1622 * Makefile.am (SUBDIRS): Move python to hosted_source.
1623 * Makefile.in: Regenerate.
1624 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
1625 * configure: Regenerate.
1627 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
1630 * include/std/limits (numeric_limits): Add missing unsigned.
1632 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
1634 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
1636 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1639 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
1640 Handle enumeration types larger than sizeof(long).
1641 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
1643 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
1644 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1646 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
1647 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
1649 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
1652 * include/bits/forward_list.h (forward_list::splice_after): Add
1654 * include/bits/forward_list.tcc (forward_list::splice_after):
1658 * include/bits/random.h (seed_seq) Define copy constructor and copy
1659 assignment as deleted.
1660 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
1662 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
1663 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
1664 Use -std=gnu++1z. Check feature-test macro.
1666 * include/std/type_traits (void_t): Add.
1667 * testsuite/20_util/void_t/1.cc: New.
1669 2015-04-28 Tim Shen <timshen@google.com>
1671 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
1672 * include/bits/regex_automaton.tcc: Throw exception when parsing
1673 back-reference with flag __polynomial.
1674 * include/bits/regex_constants.h: Add extension flag
1675 syntax_option_type __polynomial.
1676 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
1677 Alternative operation will be fixed in the coming refactoring.
1678 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
1679 loose match_search_debug to use DFS only.
1681 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
1684 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
1685 Make the generated test program fail gracefully if the target
1686 doesn't support passing command-line arguments.
1688 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
1689 Jonathan Wakely <jwakely@redhat.com>
1691 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
1692 Return false or zero if the library is built without exceptions.
1693 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
1694 the library is built without exceptions.
1696 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
1698 * config/abi/pre/gnu.ver: Fix comment.
1700 Add support for std::uncaught_exceptions.
1701 * acinclude.m4: Bump libtool_VERSION.
1702 * config/abi/pre/gnu.ver: Export the new symbol.
1703 * configure: Regenerate.
1704 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
1705 * libsupc++/exception (uncaught_exceptions): New.
1706 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
1707 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
1709 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
1710 Michael Hanselmann <public@hansmi.ch>
1713 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
1714 uncaught exceptions.
1715 * testsuite/18_support/exception_ptr/62258.cc: New.
1717 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
1719 * doc/xml/manual/extensions.xml: Add cross-reference.
1720 * doc/html/manual/ext_compile_checks.html: Regenerate.
1722 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1724 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
1725 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
1727 2015-04-22 Renlin Li <renlin.li@arm.com>
1729 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
1730 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
1731 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
1732 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
1733 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
1735 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
1737 * doc/xml/manual/configure.xml: Update descriptions of options
1738 affecting dual ABI and add cross-references.
1739 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
1740 * doc/xml/manual/using.xml: Document ABI transition.
1741 * doc/html/*: Regenerate.
1743 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
1744 * doc/xml/manual/using.xml: Document newer -std options. Use better
1745 examples of nested namespaces.
1747 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
1749 * doc/xml/manual/concurrency_extensions.xml: Update documentation
1751 * doc/xml/manual/using.xml: Likewise. Improve markup.
1752 * doc/html/*: Regenerate.
1754 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1756 * scripts/extract_symvers.pl: Ignore elfdump error output.
1758 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
1761 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
1762 _List_const_iterator): Declare.
1763 (__distance): Declare new overloads for _List_iterator and
1764 _List_const_iterator.
1765 * include/bits/stl_list.h (__distance): New overloads for
1766 _List_iterator and _List_const_iterator.
1767 * testsuite/23_containers/list/61347.cc: New testcase.
1769 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
1771 * doc/xml/manual/evolution.xml: Fix typos.
1772 * doc/html/manual/api.html: Regenerate.
1774 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
1776 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
1777 alignment is larger-equal, not equal, to default alignment.
1779 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
1782 * config/abi/pre/gnu.ver: Export base object constructors for
1784 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1785 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1786 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1787 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1788 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1789 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1790 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1791 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1792 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
1793 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1794 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1795 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1796 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1797 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1798 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1799 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1800 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1801 * testsuite/27_io/basic_fstream/cons/base.cc: New.
1803 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
1805 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
1806 * doc/html/*: Regenerate.
1808 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
1810 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
1812 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
1814 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
1816 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
1818 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
1820 * doc/xml/manual/test.xml: Improve documentation on running a subset
1822 * doc/html/manual/test.html: Regenerate.
1824 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1826 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
1827 for GCC 5.1 release.
1828 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
1831 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
1833 * include/std/shared_mutex (shared_timed_mutex): Add comments to
1834 explain the logic in the non-pthread_rwlock_t version.
1835 (_Mutex): Remove redundant type.
1836 (_M_n_readers): Rename to _S_max_readers.
1837 (_M_write_entered, _M_readers): New convenience functions.
1838 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
1839 functions. Use predicates with condition variables. Simplify bitwise
1841 (try_lock_for, try_shared_lock_for): Convert duration to time_point
1842 and call try_lock_until or try_shared_lock_until respectively.
1843 (try_lock_until, try_shared_lock_until): Wait on the condition
1844 variables until the specified time passes.
1845 (unlock): Add Debug Mode assertion.
1846 (unlock_shared): Add Debug Mode assertion.
1847 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
1849 * include/std/shared_mutex (shared_timed_mutex): Only use
1850 pthread_rwlock_t when the POSIX Timeouts option is supported.
1851 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
1852 dg-require-gthreads-timed.
1853 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1854 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1855 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1857 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
1859 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
1861 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
1862 Richard Henderson <rth@redhat.com>
1865 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
1867 * include/std/atomic (atomic): For types with a power of two size set
1868 alignment to at least the size.
1869 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1870 * testsuite/29_atomics/atomic/65147.cc: New.
1871 * testsuite/29_atomics/atomic_integral/65147.cc: New.
1873 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1875 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1876 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1877 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1879 2015-04-07 Jakub Jelinek <jakub@redhat.com>
1881 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1882 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
1883 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
1884 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
1885 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1886 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
1887 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
1888 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
1890 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
1893 * config/abi/pre/gnu.ver: Export operator+ for new strings.
1894 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
1895 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
1897 2015-03-28 Tim Shen <timshen@google.com>
1900 * include/bits/regex_constants.h: Use constexpr variables for flags.
1901 * testsuite/28_regex/constants/constexpr.cc: New testcase.
1903 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
1906 * include/std/chrono: Add using-directive for literals to std::chrono.
1907 * testsuite/20_util/duration/literals/65499.cc: New.
1909 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
1913 * include/std/thread (this_thread::sleep_for): Check for negative
1915 (this_thread::sleep_until): Check for times in the past.
1916 * testsuite/30_threads/this_thread/58038.cc: New.
1917 * testsuite/30_threads/this_thread/60421.cc: New.
1919 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
1923 * include/std/atomic (atomic<T>): Increase alignment for types with
1924 the same size as one of the integral types.
1925 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1926 * testsuite/29_atomics/atomic/62259.cc: New.
1928 2015-03-26 Richard Henderson <rth@redhat.com>
1931 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
1932 a fake pointer indicating type alignment.
1933 (__atomic_base<T *>::is_lock_free): Likewise.
1934 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
1936 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
1939 * testsuite/21_strings/basic_string/pthread33394.cc: Use
1940 dg-additional-options.
1942 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
1945 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
1947 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
1949 * testsuite/27_io/rvalue_streams-2.cc: New.
1951 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
1954 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
1956 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
1959 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
1960 * configure: Regenerate.
1961 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
1962 system_category): Use macros for versioned namespace.
1963 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
1965 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
1967 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
1968 test for unused for ARM.
1969 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
1970 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
1972 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
1974 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
1975 * include/ext/codecvt_specializations.h (encoding_state,
1976 encoding_char_traits): Remove abi-tag and use inline namespace.
1977 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
1979 2015-03-19 Jason Merrill <jason@redhat.com>
1981 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
1982 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
1984 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
1987 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
1988 get_catalogs): Add abi-tag.
1989 * include/ext/codecvt_specializations.h (encoding_state,
1990 encoding_char_traits): Likewise.
1991 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
1992 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
1993 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
1994 money_get_shim, money_put_shim, messages_shim): Likewise.
1995 * src/c++11/future.cc (future_error_category::message): Likewise.
1996 * src/c++11/system_error.cc (generic_error_category::message,
1997 system_error_category::message): Likewise.
1998 (__sso_string): Disable -Wabi-tag warnings.
2000 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2003 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
2004 implementation for old glibc. Fix whitespace.
2006 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2007 Torvald Riegel <triegel@redhat.com>
2009 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
2010 * config.h.in: Regenerate.
2011 * configure: Regenerate.
2012 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
2013 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
2014 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
2015 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
2018 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
2020 * libsupc++/nested_exception.h: Do not try to derive from final
2022 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
2025 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
2026 unused exception variable.
2027 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
2028 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
2030 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
2032 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
2034 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
2035 * configure: Regenerate.
2037 * include/experimental/system_error: Fix include guard.
2039 2015-03-12 Renlin Li <renlin.li@arm.com>
2041 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
2044 2015-03-10 Tim Shen <timshen@google.com>
2047 * include/bits/regex.h (match_results<>::size,
2048 match_results<>::position, match_results<>::str,
2049 match_results<>::operator[], match_results<>::prefix,
2050 match_results<>::suffix, match_results<>::end,
2051 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
2052 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
2053 global __unmatched_sub. Add unmatched submatch as part of
2055 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
2056 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
2057 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
2060 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
2063 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
2064 for newlib targets. Really fix mixed line-endings this time.
2066 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
2068 * include/std/future (future_error(error_code)): Construct base
2069 class with error_code's message.
2070 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
2073 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
2075 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
2077 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
2078 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
2080 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
2083 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
2084 incomplete multibyte sequences correctly.
2085 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
2086 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
2087 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
2089 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
2090 Define convenience functions.
2091 (read_utf8_code_point): Return relevant constant to distinguish
2092 incomplete characters from invalid sequences.
2093 (read_utf16_code_point): Likewise. Check for invalid sequences.
2094 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
2095 (utf16_out): Check for invalid sequences.
2096 (utf16_span): Fix condition.
2097 (ucs2_out): Use is_high_surrogate.
2098 (ucs2_in): Use incomplete_mb_character constant and fix condition.
2099 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
2100 * testsuite/22_locale/conversions/buffer/1.cc: New.
2101 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
2102 char32_t instead of wchar_t.
2103 * testsuite/22_locale/conversions/string/3.cc: New.
2105 2015-03-03 Iain Sandoe <iain@codesourcery.com>
2108 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
2109 visibility for Darwin.
2110 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
2112 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
2114 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
2117 * include/std/scoped_allocator (__inner_type_impl,
2118 scoped_allocator_adaptor): Add defaulted copy assignment and move
2119 assignment operators.
2120 * testsuite/20_util/scoped_allocator/65279.cc: New.
2122 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
2125 * include/std/stdexcept (__sso_string): Don't use non-static member
2128 2015-02-28 Matthias Klose <doko@ubuntu.com>
2131 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
2133 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
2135 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
2136 * doc/html/manual/status.html: Regenerate.
2138 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
2141 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
2144 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
2146 * doc/html/manual/status.html: Regenerate.
2148 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
2151 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
2152 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
2154 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
2157 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
2158 (test01): Add explanatory comment. Keep only the bd1 sub-test and
2159 split out bd2, bd3, bd4, and bd5 sub-tests into...
2160 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
2161 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
2162 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
2163 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
2164 New separate files with the old parts.
2166 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
2168 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
2170 (utf16_in): Pass mode argument to write_utf16_code_point.
2171 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
2173 * testsuite/22_locale/codecvt/char16_t.cc: New.
2174 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
2176 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
2177 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
2179 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2180 Jonathan Wakely <jwakely@redhat.com>
2182 * testsuite/22_locale/codecvt/char32_t.cc: New.
2184 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
2187 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
2188 empty string gets null-terminated.
2189 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
2191 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
2193 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
2194 mixed line-endings introduced in last change.
2196 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
2198 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
2199 for __NEWLIB__ macro with a dejagnu set macro.
2200 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2202 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2205 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
2206 special case for '\n'.
2207 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2209 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
2211 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
2213 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
2216 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
2218 * include/c_std/cstdio (gets): Likewise.
2219 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
2220 with attributes used in darwin headers.
2222 2015-01-29 Jakub Jelinek <jakub@redhat.com>
2224 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
2225 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
2226 * configure: Regenerated.
2228 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
2230 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2231 after vtv_cygmin is set.
2232 * configure: Regenerated.
2234 2015-01-29 Matthias Klose <doko@ubuntu.com>
2236 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2238 * configure: Regenerate.
2240 2015-01-29 Caroline Tice <cmtice@google.com>
2242 Committing VTV Cywin/Ming patch for Patrick Wollgast
2243 * configure: Regenerate.
2244 * libsupc++/Makefile.in: Regenerate.
2245 * src/Makefile.in: Regenerate.
2247 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
2249 * include/bits/atomic_base.h: Use __always_inline__ instead of
2251 * include/bits/atomic_futex.h: Likewise.
2252 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
2253 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
2254 __packed__ instead of packed.
2255 * include/std/shared_mutex: Use __unused__ instead of unused.
2256 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
2257 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
2258 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
2260 2015-01-28 Caroline Tice <cmtice@google.com>
2262 Committing VTV Cywin/Ming patch for Patrick Wollgast
2263 * acinclude.m4: Define VTV_CYGMIN.
2264 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
2265 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
2266 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
2267 for Cygwin and MinGW.
2268 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
2269 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
2270 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
2272 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
2275 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
2276 * libsupc++/Makefile.in: Regenerate.
2277 * src/c++11/Makefile.in: Regenerate.
2279 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2281 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
2282 check for unsupported.
2283 (v3_target_compile_as_c): Likewise.
2285 2015-01-28 Richard Biener <rguenther@suse.de>
2288 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
2290 (pool::allocate): Adjust allocation size and alignment to
2292 (pool::free): Adjust pointer offsetting.
2294 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
2297 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
2298 shared_timed_mutex::try_lock_until): Only define when POSIX thread
2299 timeouts option is supported.
2300 (shared_timed_mutex::try_shared_lock_for,
2301 shared_timed_mutex::try_shared_lock_until): Likewise.
2303 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
2306 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
2307 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
2308 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
2309 and use cache's _M_grouping field.
2310 (__numpunct_fill_cache): Likewise.
2311 (__moneypunct_fill_cache): Improve comments.
2313 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
2315 * testsuite/23_containers/set/operations/2.cc: Add test for
2316 non-transparent comparison function.
2318 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
2321 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
2322 Remove SH4A inline asm and lock based implementations and use the
2323 defaults from ext/atomicity.h.
2325 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
2327 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
2328 new std::string constructors for byname facets.
2330 2015-01-22 Richard Biener <rguenther@suse.de>
2333 * libsupc++/eh_alloc.cc: Include new.
2334 (bitmask_type): Remove.
2335 (one_buffer): Likewise.
2336 (emergency_buffer): Likewise.
2337 (emergency_used): Likewise.
2338 (dependents_buffer): Likewise.
2339 (dependents_used): Likewise.
2340 (class pool): New custom fixed-size arena, variable size object
2342 (emergency_pool): New global.
2343 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
2344 (__cxxabiv1::__cxa_free_exception): Likewise.
2345 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
2346 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
2348 2015-01-22 Tim Shen <timshen@google.com>
2351 * include/bits/regex.h (basic_regex<>::basic_regex,
2352 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
2354 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
2356 2015-01-22 Tim Shen <timshen@google.com>
2359 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2360 regex_traits<>::lookup_classname): Correctly narrow input chars.
2361 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
2363 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2365 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
2367 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2369 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
2371 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2373 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
2374 * doc/xml/manual/status_cxx2014.xml: Update status.
2375 * doc/html/manual/status.html: Regenerate.
2377 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2380 * include/experimental/optional (bad_optional_access): Add default
2382 * testsuite/experimental/optional/requirements.cc: Test for default
2385 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2387 * include/bits/stl_map.h (map::find<>, map::count<>,
2388 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
2389 member function templates to perform heterogeneous lookup.
2390 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
2391 multimap::lower_bound<>, multimap::upper_bound<>,
2392 multimap::equal_range<>): Likewise.
2393 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
2394 multiset::lower_bound<>, multiset::upper_bound<>,
2395 multiset::equal_range<>): Likewise.
2396 * include/bits/stl_set.h (set::find<>, set::count<>,
2397 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2398 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
2399 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
2400 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
2401 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
2402 * testsuite/23_containers/map/operations/2.cc: New.
2403 * testsuite/23_containers/multimap/operations/2.cc: New.
2404 * testsuite/23_containers/multiset/operations/2.cc: New.
2405 * testsuite/23_containers/set/operations/2.cc: New.
2407 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2409 * config/abi/pre/gnu.ver: Export new constructors.
2410 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
2411 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
2412 specializations and declare explicit instantiations.
2413 * include/bits/locale_classes.h (locale, collate_byname): Add string
2415 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
2417 * include/bits/locale_facets_nonio.h (time_get_byname,
2418 time_put_byname, moneypunct_byname, messages_byname): Likewise.
2419 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
2420 codecvt_byname<char32_t>): Define explicit instantiations.
2421 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
2422 Instantiate string constructors.
2423 (ctype_byname): Define string constructor.
2424 * testsuite/22_locale/codecvt_byname/1.cc: New.
2425 * testsuite/22_locale/collate_byname/1.cc: New.
2426 * testsuite/22_locale/ctype_byname/2.cc: New.
2427 * testsuite/22_locale/messages_byname/1.cc: New.
2428 * testsuite/22_locale/moneypunct_byname/1.cc: New.
2429 * testsuite/22_locale/numpunct_byname/1.cc: New.
2431 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2434 * include/std/atomic (atomic_init): Define.
2435 * testsuite/29_atomics/atomic/64658.cc: New.
2437 2015-01-19 Tim Shen <timshen@google.com>
2440 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2441 regex_traits<>::lookup_classname): Support forward iterators.
2442 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
2443 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
2445 2015-01-19 Tim Shen <timshen@google.com>
2449 * include/bits/regex.h (basic_regex<>::basic_regex,
2450 basic_regex<>::assign, basic_regex<>::imbue,
2451 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
2452 imbuing basic_regex; Make assign() transactional against exception.
2453 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
2454 __compile_nfa SFINAE.
2455 * include/std/regex: Adjust include order to avoid __compile_nfa
2456 forward declaration.
2457 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
2458 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
2460 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
2461 Jonathan Wakely <jwakely@redhat.com>
2463 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
2464 on overloads for arrays.
2465 (cbegin, cend, rbegin, rend, crbegin, crend): New.
2466 * testsuite/24_iterators/range_access_cpp14.cc: New.
2468 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2471 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
2472 end of the second range.
2473 * testsuite/25_algorithms/is_permutation/64646.cc: New.
2475 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2477 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
2478 * doc/html/manual/status.html: Regenerate.
2480 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2482 * include/bits/atomic_futex.h: Use mutex and condition_variable when
2483 atomic int is not lock-free. Make member variables private.
2484 * src/c++11/futex.cc: Likewise.
2486 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
2488 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2491 * include/bits/atomic_futex.h: Use appropriate config macros for
2492 availability of std::mutex, std::condition and std::chrono.
2494 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2495 Jonathan Wakely <jwakely@redhat.com>
2497 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
2498 * doc/html/*: Regenerate.
2500 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2504 * include/bits/algorithmfwd.h (rotate): Return an iterator.
2505 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
2506 * testsuite/25_algorithms/rotate/dr488.cc: New.
2507 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
2508 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2510 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2513 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2516 * include/bits/atomic_base.h: Remove atomic integral typedefs as
2517 synonyms for __atomic_base<int> etc.
2518 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
2519 likewise for all atomic integral types.
2520 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
2521 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2523 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2526 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
2527 and define one-element specialization.
2528 * testsuite/20_util/tuple/56785.cc: New.
2530 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2532 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
2533 Remove unused header.
2534 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
2536 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2539 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2541 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
2542 * include/std/locale: Include new header.
2543 * include/Makefile.am: Add it.
2544 * include/Makefile.in: Regenerate.
2545 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
2546 * testsuite/22_locale/conversions/string/1.cc: New.
2547 * testsuite/22_locale/conversions/string/2.cc: New.
2548 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
2549 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
2552 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2554 * config/abi/pre/gnu.ver: Export new symbols.
2555 * include/Makefile.am: Add codecvt.
2556 * include/Makefile.in: Regenerate.
2557 * include/std/codecvt: New header.
2558 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
2559 __codecvt_utf8_utf16_base): Define specializations.
2560 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
2561 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
2562 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2565 2015-01-16 Torvald Riegel <triegel@redhat.com>
2567 * src/c++11/futex.cc: New file.
2568 * include/bits/atomic_futex.h: New file.
2569 * include/std/future (__future_base::_State_baseV2): Use
2570 atomic_futex_unsigned instead of mutex+condvar.
2571 * src/c++11/futex.cc: Likewise.
2572 * include/Makefile.am: Add atomic_futex.h.
2573 * include/Makefile.in: Likewise.
2574 * src/c++11/Makefile.am: Add futex.cc.
2575 * src/c++11/Makefile.in: Likewise.
2577 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2579 * acinclude.m4: Fix typo in comment.
2580 * configure: Regenerate.
2581 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
2582 codecvt<char16_t, char, mbstate_t>): Declare specializations.
2583 * include/bits/locale_facets.h: Reserve space for new specializations.
2584 * src/c++11/Makefile.am: Add codecvt.cc.
2585 * src/c++11/Makefile.in: Regenerate.
2586 * src/c++11/codecvt.cc: New.
2587 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
2589 * src/c++98/Makefile.in: Regenerate.
2590 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
2591 * src/c++98/localename.cc: Likewise.
2592 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
2593 * testsuite/22_locale/codecvt/utf8.cc: New.
2594 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
2595 specializations are installed in locale objects.
2597 2015-01-16 Torvald Riegel <triegel@redhat.com>
2599 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
2602 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
2605 * config/abi/pre/gnu.ver: Export fstream functions using new string.
2607 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
2610 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
2614 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
2616 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2618 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
2619 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
2620 Multi Processing Runtime Library".
2622 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
2625 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
2626 is_assignable arguments.
2627 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
2630 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2632 * libsupc++/unwind-cxx.h: Revert previous commit.
2634 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2636 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
2638 2015-01-09 Tim Shen <timshen@google.com>
2641 * include/bits/regex.h (match_results<>::swap): Use std::swap
2643 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
2645 * testsuite/28_regex/match_results/swap.cc: New testcase.
2647 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
2650 * include/std/type_traits (has_trivial_default_constructor,
2651 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
2653 * testsuite/20_util/has_trivial_copy_assign/requirements/
2654 explicit_instantiation.cc: Use -Wno-deprecated.
2655 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
2657 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
2658 * testsuite/20_util/has_trivial_copy_constructor/requirements/
2659 explicit_instantiation.cc: Likewise.
2660 * testsuite/20_util/has_trivial_copy_constructor/requirements/
2661 typedefs.cc: Likewise.
2662 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
2663 * testsuite/20_util/has_trivial_default_constructor/requirements/
2664 explicit_instantiation.c: Likewise.
2665 * testsuite/20_util/has_trivial_default_constructor/requirements/
2666 typedefs.cc: Likewise.
2667 * testsuite/20_util/has_trivial_default_constructor/value.cc:
2669 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
2671 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
2672 * testsuite/util/testsuite_common_types.h: Likewise.
2674 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
2676 * include/bits/hashtable_policy.h: Use __bool_constant.
2678 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
2680 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
2681 * libsupc++/Makefile.in: Regenerate.
2683 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
2685 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
2687 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2689 Update copyright years.
2691 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
2694 * testsuite/18_support/exception_ptr/64241.cc: Use
2695 dg-require-atomic-builtins.
2697 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2699 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
2702 2015-01-02 Tim Shen <timshen@google.com>
2705 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
2706 iterator, since the original one shouldn't be mutated.
2708 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2711 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
2712 (string::insert): Likewise.
2713 (string::replace): Likewise.
2714 (wstring::erase): Likewise.
2715 (wstring::insert): Likewise.
2716 (wstring::replace): Likewise.
2717 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
2719 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2722 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
2724 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2727 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
2728 Revert removal of dg-require-string-conversions.
2729 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
2731 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
2733 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
2735 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
2737 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
2739 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
2741 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
2743 * testsuite/21_strings/basic_string/numeric_conversions/char/
2744 stoull.cc: Likewise.
2745 * testsuite/21_strings/basic_string/numeric_conversions/char/
2746 to_string.cc: Likewise.
2748 Copyright (C) 2015 Free Software Foundation, Inc.
2750 Copying and distribution of this file, with or without modification,
2751 are permitted in any medium without royalty provided the copyright
2752 notice and this notice are preserved.