1 2015-08-26 Jonathan Wakely <jwakely@redhat.com>
3 * include/debug/map.h (map::try_emplace, map::insert_or_assign):
5 * include/debug/unordered_map (unordered_map::try_emplace,
6 unordered_map::insert_or_assign): Define.
9 * src/c++11/debug.cc (_S_debug_messages): Give internal linkage.
11 2015-08-24 François Dumont <fdumont@gcc.gnu.org>
14 * include/debug/formatter.h (_Debug_msg_id::__msg_irreflexive_ordering):
16 * include/debug/functions.h (_Irreflexive_checker): New.
17 (__is_irreflexive, __is_irreflexive_pred): New.
18 * include/debug/macros.h
19 (__glibcxx_check_irreflexive, __glibcxx_check_irreflexive_pred): New
21 (__glibcxx_check_irreflexive2, __glibcxx_check_irreflexive_pred2): New
22 macros limited to post-C++11 mode.
23 * include/debug/debug.h
24 (__glibcxx_requires_irreflexive, __glibcxx_requires_irreflexive_pred):
25 New macros, use latter.
26 (__glibcxx_requires_irreflexive2, __glibcxx_requires_irreflexive_pred2):
28 * include/bits/stl_algo.h
29 (partial_sort_copy): Add irreflexive debug check.
30 (partial_sort_copy): Likewise.
31 (lower_bound): Likewise.
32 (upper_bound): Likewise.
33 (equal_range): Likewise.
34 (binary_search): Likewise.
35 (inplace_merge): Likewise.
37 (next_permutation): Likewise.
38 (prev_permutation): Likewise.
39 (is_sorted_until): Likewise.
40 (minmax_element): Likewise.
41 (partial_sort): Likewise.
42 (nth_element): Likewise.
45 (stable_sort): Likewise.
46 (set_union): Likewise.
47 (set_intersection): Likewise.
48 (set_difference): Likewise.
49 (set_symmetric_difference): Likewise.
50 (min_element): Likewise.
51 (max_element): Likewise.
52 * include/bits/stl_algobase.h
53 (lower_bound): Likewise.
54 (lexicographical_compare): Likewise.
55 * include/bits/stl_heap.h
56 (push_heap): Likewise.
58 (make_heap): Likewise.
59 (sort_heap): Likewise.
60 (is_heap_until): Likewise.
61 * testsuite/25_algorithms/lexicographical_compare/debug/
62 irreflexive_neg.cc: New.
63 * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: New.
64 * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
67 2015-08-24 Jonathan Wakely <jwakely@redhat.com>
70 * include/bits/char_traits.h (char_traits<char>::compare,
71 char_traits<char>::find, char_traits<char>::move,
72 char_traits<char>::copy, char_traits<char>::assign): Check for zero
74 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find,
75 char_traits<wchar_t>::move, char_traits<wchar_t>::copy,
76 char_traits<wchar_t>::assign): Likewise.
77 (char_traits<char16_t>::move, char_traits<char16_t>::copy): Likewise.
78 (char_traits<char32_t>::move, char_traits<char32_t>::copy): Likewise.
79 * include/ext/pod_char_traits.h (char_traits<character<>>::move,
80 char_traits<character<>>::copy): Likewise.
81 * testsuite/21_strings/char_traits/requirements/char/65049.cc: New.
82 * testsuite/21_strings/char_traits/requirements/char16_t/65049.cc:
84 * testsuite/21_strings/char_traits/requirements/char32_t/65049.cc:
86 * testsuite/21_strings/char_traits/requirements/wchar_t/65049.cc:
90 * include/bits/random.tcc
91 (poisson_distribution::param_type::_M_initialize): Use max<double>.
92 (binomial_distribution::param_type::_M_initialize): Likewise.
93 * testsuite/17_intro/headers/c++200x/67309.cc: New.
94 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Remove
97 2015-08-20 Jonathan Wakely <jwakely@redhat.com>
100 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Do not run
102 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
104 * include/experimental/any (__any_caster): Define at namespace scope
105 so the name is visible to name lookup.
106 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
108 * python/Makefile.am: Ensure gdb.py is installed for libstdc++ not
110 * python/Makefile.in: Regenerate.
112 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
114 * include/c_global/cmath: Fix typo in comment.
116 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
118 * include/c_global/cmath: Revert fix for libstdc++/58625, no
119 longer necessary (__builtin_signbit is now type-generic).
121 2015-08-18 Jonathan Wakely <jwakely@redhat.com>
124 * testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc:
125 Fix use of safe-bool idiom that isn't valid in C++11.
127 * include/bits/ptr_traits.h: Include <bits/move.h> for addressof.
130 * doc/xml/manual/configure.xml (manual.intro.setup.configure): Add
131 caveats for --enable-concept-checks. Improve link text.
132 * doc/xml/manual/diagnostics.xml (std.diagnostics.concept_checking):
134 * doc/html/*: Regenerate.
135 * include/bits/stl_deque.h (deque): Only use concept checks in C++03.
136 * include/bits/stl_stack.h (stack): Likewise.
137 * include/bits/stl_vector.h (vector): Likewise.
139 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
141 * include/experimental/any (any::operator=(const any&)): Move check
143 (any::operator=(any&&)): Add check for self-assignment.
144 (any::operator=(_ValueType&&)): Constrain template argument.
145 (any::swap(any&)): Add check for self-swap.
146 * testsuite/experimental/any/assign/self.cc: Test move and swap.
147 * testsuite/experimental/any/misc/any_cast_neg.cc: Update dg-error.
149 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
151 * include/experimental/array: Add feature-test macro.
152 * testsuite/experimental/array/neg.cc: Update dg-error.
154 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
156 * testsuite/experimental/array/neg.s: Remove.
157 * testsuite/experimental/array/neg.ii.gz: Remove.
159 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
161 Implement std::experimental::fundamentals_v2::make_array and
162 std::experimental::fundamentals_v2::to_array.
163 * include/Makefile.am: Add array.
164 * include/Makefile.in: Add array.
165 * include/experimental/array: New.
166 * testsuite/experimental/array/make_array.cc: Likewise.
167 * testsuite/experimental/array/neg.cc: Likewise.
168 * doc/html/manual/status.html: Mark make_array as Y.
169 * doc/xml/manual/status_cxx2017.xml: Likewise.
171 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
173 * include/bits/alloc_traits.h: Add feature-test macro.
174 * include/bits/allocator.h: Likewise.
175 * include/bits/range_access.h: Likewise.
176 * include/bits/stl_map.h: Likewise.
177 * include/bits/unordered_map.h: Likewise.
179 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
181 * testsuite/30_threads/mutex/unlock/2.cc: New.
182 * testsuite/30_threads/recursive_mutex/unlock/2.cc: New.
183 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: New.
184 * testsuite/30_threads/shared_mutex/unlock/1.cc: New.
185 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: New.
186 * testsuite/30_threads/timed_mutex/unlock/2.cc: New.
188 2015-08-13 Eelis van der Weegen <eelis@eelis.net>
190 * include/std/shared_mutex (shared_mutex::unlock()): Fix typo.
192 2015-08-12 Caroline Tice <cmtice@google.com>
194 PR 66521, Contributed by Eric Gallager
195 * acinclude.m4 (VTV_CXXLINKFLAGS): Make this variable OS-specific, and
196 fix the rpath flag to work properly for darwin.
197 * configure: Regenerated.
199 2015-08-12 Jonathan Wakely <jwakely@redhat.com>
201 * doc/xml/manual/appendix_contributing.xml: Update patch email policy.
202 * doc/xml/manual/status_cxx2017.xml: Update status table.
203 * doc/html/manual/*: Regenerate.
205 2015-08-09 Ville Voutilainen <ville.voutilainen@gmail.com>
207 Implement N4279, Improved insertion interface for unique-key maps.
208 * include/bits/stl_map.h (try_emplace, insert_or_assign): New.
209 * include/bits/stl_tree.h (_M_get_insert_unique_pos,
210 _M_get_insert_equal_pos, _M_get_insert_hint_unique_pos,
211 _M_get_insert_hint_equal_pos): Make public.
212 * include/bits/unordered_map.h (try_emplace, insert_or_assign): New.
213 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
215 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
216 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
218 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
221 2015-08-08 Ville Voutilainen <ville.voutilainen@gmail.com>
223 Implement N4089 Safe conversions in unique_ptr<T[]> (LWG 2118)
224 and N4366 LWG 2228: Missing SFINAE rule in unique_ptr
226 * include/bits/unique_ptr.h
227 (__remove_cv, __is_derived_Tp): Remove.
228 (default_delete::default_delete(const default_delete<_Up[]>)):
229 Constrain with array convertibility.
230 (default_delete::operator(_Up*)): Turn into a template,
231 constrain with array convertibility.
232 (__safe_conversion_up): New, single object version.
233 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Constrain with deleter
235 (unique_ptr::operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
236 is_assignable as a constraint.
237 (__safe_conversion_up): Array version, renamed from __safe_conversion,
238 updated to implement N4089.
239 (__safe_conversion_raw): New.
240 (unique_ptr(_Up)): Turn into a template, constrain with array
243 typename conditional<is_reference<deleter_type>::value,
244 deleter_type, const deleter_type&>::type)): Likewise.
245 (unique_ptr(_Up, typename
246 remove_reference<deleter_type>::type&&)): Likewise.
247 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Likewise.
248 (operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
249 is_assignable as a constraint (array version).
250 (reset(_Up)): Turn into a template, constrain with array
252 (reset(nullptr_t)): New.
253 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
254 * testsuite/20_util/unique_ptr/assign/48635.cc: Likewise.
255 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
256 * testsuite/20_util/unique_ptr/assign/cv_qual.cc: Likewise.
257 * testsuite/20_util/unique_ptr/cons/cv_qual.cc: Likewise.
258 * testsuite/20_util/unique_ptr/dr2228.cc: New.
259 * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Adjust.
261 2015-08-05 Nikolai Bozhenov <n.bozhenov@samsung.com>
263 * testsuite/20_util/enable_shared_from_this/cons/constexpr.cc: Remove
264 redundant -save-temps option.
265 * testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise.
266 * testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
267 * testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.
268 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
269 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
271 2015-08-03 Jonathan Wakely <jwakely@redhat.com>
274 * include/bits/range_access.h (size, empty, data): Fix _N bad name.
276 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
278 * testsuite/experimental/filesystem/operations/current_path.cc: Use
279 canonical paths for comparisons.
281 2015-07-30 Tim Shen <timshen@google.com>
283 * include/bits/regex_automaton.h (_State_base, _State<>):
284 Remove _TraitsT dependency from _State<>; Make matcher member
285 into the union to reduce struct size.
286 * include/bits/regex_automaton.tcc (_State_base<>::_M_print,
287 _State_base<>::_M_dot, _StateSeq<>::_M_clone):
288 Adjust to fit the interface. Factor out common parts in
289 _M_clone as _State<>::_M_has_alt.
290 * include/bits/regex_executor.h (_Executer<>::_M_lookahead):
291 Only pass state id instead of the whole state.
292 * include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
293 _Executer<>::_M_lookahead): Adjust to fit the interface.
294 * include/std/regex: Include <ext/aligned_buffer.h>
296 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
298 * include/experimental/any (any::operator=(const any&)): Check for
300 * testsuite/experimental/any/assign/self.cc: New.
301 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
303 2015-07-29 Jonathan Wakely <jwakely@redhat.com>
306 * testsuite/lib/libstdc++.exp (v3-build_support): Compile
307 testsuite_shared.cc with -std=gnu++98.
309 2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
311 * include/bits/range_access.h: Change class to typename in every
313 (size, empty, data): New functions from N4280.
314 * testsuite/24_iterators/container_access.cc: New.
317 * include/bits/functional_hash.h (__hash_enum): New.
318 (hash): Derive from __hash_enum.
319 * testsuite/20_util/hash/60970.cc: New.
321 2015-07-29 Tim Shen <timshen@google.com>
324 * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
325 _BracketMatcher<>::_M_add_collating_element): Change signature
326 to make checking the and of bracket expression easier.
327 * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
328 Treat '-' as a valid literal if it's at the end of bracket expression.
329 * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
332 2015-07-24 Jonathan Wakely <jwakely@redhat.com>
334 * include/bits/atomic_futex.h [_GLIBCXX_HAVE_LINUX_FUTEX]
335 (_M_load_and_test_until): Whitespace.
336 (_M_load_and_test): Value-initialize the unused durations.
337 (_M_load_when_equal): Add missing return value.
339 2015-07-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
341 * fragment.am (AM_CPPFLAGS): Add CPPFLAGS.
342 * Makefile.in: Regenerate.
343 * doc/Makefile.in: Regenerate.
344 * include/Makefile.in: Regenerate.
345 * libsupc++/Makefile.in: Regenerate.
346 * po/Makefile.in: Regenerate.
347 * python/Makefile.in: Regenerate.
348 * src/Makefile.in: Regenerate.
349 * src/c++11/Makefile.in: Regenerate.
350 * src/c++98/Makefile.in: Regenerate.
351 * src/filesystem/Makefile.in: Regenerate.
352 * testsuite/Makefile.in: Regenerate.
354 2015-07-23 DJ Delorie <dj@redhat.com>
356 * include/bits/functional_hash.h: Add specializations for __intN
359 * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp (__gnu_pbds):
360 Guard against values that might exceed size_t's precision.
362 2015-07-20 Jason Merrill <jason@redhat.com>
364 * include/bits/c++config: Fix abi_tag in special modes.
366 2015-07-19 Jonathan Wakely <jwakely@redhat.com>
368 * doc/xml/manual/status_cxx2017.xml: Fix URL for N4279.
369 * doc/html/manual/status.html: Regenerate.
371 2015-07-17 Jonathan Wakely <jwakely@redhat.com>
373 * doc/xml/manual/status_cxx2011.xml: Add caveats for native_handle.
374 * doc/html/manual/status.html: Regenerate.
376 2015-07-16 François Dumont <fdumont@gcc.gnu.org>
378 * include/bits/stl_algobase.h (__miter_base): Move...
379 * include/bits/cpp_type_traits.h: ...here.
380 * include/debug/functions.h (__foreign_iterator_aux): Use latter.
381 * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
383 2015-07-13 Jonathan Wakely <jwakely@redhat.com>
386 * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
387 endianness bit in mode.
388 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
390 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
391 * include/bits/forward_list.h (forward_list::swap): Make noexcept
393 * include/bits/hashtable.h (_Hashtable::swap): Do not use
395 * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
397 * include/bits/stl_deque.h (deque::swap): Likewise.
398 (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
399 * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
400 (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
401 * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
402 _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
403 * include/bits/stl_multimap.h (multimap::swap,
404 swap(multimap&, multimap&)): Likewise.
405 * include/bits/stl_multiset.h (multiset::swap,
406 swap(multiset&, multiset&)): Likewise.
407 * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
408 * include/bits/stl_tree.h (_Rb_tree::swap,
409 swap(_Rb_tree&, _Rb_tree&)): Likewise.
410 * include/bits/stl_vector.h (vector::swap): Make noexcept
412 (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
413 * include/debug/deque (deque::swap, swap): Likewise.
414 * include/debug/forward_list (swap): Add noexcept.
415 * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
416 * include/debug/map.h (map::swap, swap): Likewise.
417 * include/debug/multimap.h (multimap::swap, swap): Likewise.
418 * include/debug/multiset.h (multiset::Swap, swap): Likewise.
419 * include/debug/set.h (set::swap, swap): Likewise.
420 * include/debug/unordered_map (unordered_map::swap,
421 unordered_multimap::swap, swap): Likewise.
422 * include/debug/unordered_set (unordered_set::swap,
423 unordered_multiset::swap, swap): Likewise.
424 * include/debug/vector (vector::swap, swap): Likewise.
425 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
427 * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
428 * include/profile/forward_list (swap): Add noexcept.
429 * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
430 * include/profile/map.h (map::swap, swap): Likewise.
431 * include/profile/multimap.h (multimap::swap, swap): Likewise.
432 * include/profile/multiset.h (multiset::swap, swap): Likewise.
433 * include/profile/set.h (set::swap, swap): Likewise.
434 * include/profile/unordered_map (swap): Likewise.
435 * include/profile/unordered_set (swap): Likewise.
436 * include/profile/vector (vector::swap, swap): Likewise. Remove
437 overloads for swapping rvalues.
438 * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
439 for noexcept on swap.
440 * testsuite/23_containers/forward_list/allocator/noexcept.cc:
442 * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
443 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
444 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
445 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
446 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
447 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
449 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
451 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
453 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
455 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
456 * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
457 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
460 2015-07-13 John Marino <gnugcc@marino.st>
462 * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
463 _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
464 _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
466 2015-07-05 François Dumont <fdumont@gcc.gnu.org>
468 * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
470 * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
473 2015-07-03 Jonathan Wakely <jwakely@redhat.com>
475 * doc/xml/manual/status_cxx2017.xml: Update status table.
476 * doc/html/manual/*: Regenerate.
478 2015-07-03 Ville Voutilainen <ville.voutilainen@gmail.com>
480 Implement std::experimental::fundamentals_v2::propagate_const.
481 * include/Makefile.am: Add propagate_const.
482 * include/Makefile.in: Regenerate.
483 * include/experimental/propagate_const: New.
484 * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
485 * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
486 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
488 * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
489 * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
490 * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
491 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
492 * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
493 * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
494 * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
495 * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
496 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
497 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
498 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
499 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
500 * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
501 * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
503 2015-07-02 Jonathan Wakely <jwakely@redhat.com>
505 * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
506 --with-default-libstdcxx-abi
507 * configure: Regenerate.
508 * doc/xml/manual/configure.xml: Document valid arguments.
510 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
512 * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
513 to avoid unused variable warning.
514 (__set_and_release): Use __p after __atomic_store to avoid unused
517 2015-07-01 Jonathan Wakely <jwakely@redhat.com>
519 * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
520 (__allocator_traits_base): New base class.
521 (__alloc_rebind): Reimplement in terms of detection idiom.
522 (allocator_traits): Derive from __allocator_traits_base. Reimplement
523 nested types in terms of detection idiom. Simplify SFINAE constraints
524 on overloaded static member functions.
525 * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
527 * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
528 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
529 dg-error line number.
531 * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
532 __ptrtr_rebind, __ptrtr_not_void): Remove
533 (__get_first_arg, __replace_first_arg, __make_not_void): Define new
535 (__detected_or_): New detection trait.
536 (pointer_traits): Use new traits.
537 * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
538 * testsuite/20_util/pointer_traits/requirements/
539 explicit_instantiation.cc: Use valid arguments to pointer_traits.
541 * doc/xml/manual/status_cxx2017.xml: Update status table.
542 * include/experimental/type_traits (void_t, is_detected,
543 is_detected_v, detected_t, detected_or, detected_or_t,
544 is_detected_exact, is_detected_exact_v, is_detected_convertible,
545 is_detected_convertible_v): Define.
546 * include/std/type_traits (__detector, __detected_or, __detected_or_t,
547 __detected_or_t_): Define.
548 * testsuite/experimental/type_traits/detection.cc: New.
550 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
552 * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
553 * doc/Makefile.in: Regenerate.
555 * include/bits/stl_pair.h: Replace class keyword with typename.
557 2015-06-30 Ville Voutilainen <ville.voutilainen@gmail.com>
559 Implement N4387, "Improving pair and tuple", and LWG 2367.
561 * include/bits/stl_pair.h (_ConstructiblePair,
562 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
563 _ImplicitlyMoveConvertiblePair): New.
564 (pair()): Constrain it.
565 (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
566 pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
567 pair(pair<_U1, _U2>&&)): Make conditionally explicit.
568 * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
569 (tuple()): Constrain it.
570 (tuple(const _UElements&...), tuple(_UElements&&...),
571 tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
572 tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
573 tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
574 tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
575 tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
576 tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
577 tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
578 tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
579 conditionally explicit.
580 * include/experimental/functional (__boyer_moore_array_base): Name
581 array type explicitly instead of using an empty braced-init-list.
582 * testsuite/20_util/pair/cons/explicit_construct.cc: New.
583 * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
584 * testsuite/20_util/pair/requirements/dr2367.cc: New.
585 * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
586 * testsuite/20_util/tuple/requirements/dr2367.cc: New.
588 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
590 * configure: Regenerate.
592 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
594 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
596 * include/debug/functions.h
597 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
598 * include/debug/safe_iterator.h
599 (__gnu_debug::_Sequence_traits): New.
600 (__gnu_debug::__get_distance_from_begin): New.
601 (__gnu_debug::__get_distance_to_end): New.
602 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
603 distance information. Add optional check_dereferenceable parameter,
605 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
606 default definition...
607 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
608 (__gnu_debug::__unsafe): Likewise.
609 * include/debug/helper_functions.h: ...here. New.
610 (__gnu_debug::__unsafe): New helper function to remove safe iterator
612 * include/debug/stl_iterator.h: New. Include latter.
613 * include/bits/stl_iterator.h: Include latter in debug mode.
614 * include/debug/stl_iterator.tcc: Adapt.
615 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
616 overload for _Safe_local_iterator.
617 (__gnu_debug::__unsafe): Likewise.
618 * include/debug/safe_local_iterator.tcc: Adapt.
619 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
620 (__glibcxx_check_insert_range): Add _Dist parameter.
621 (__glibcxx_check_insert_range_after): Likewise.
622 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
623 _GLIBCXX_DEBUG_PEDASSERT.
624 * include/debug/deque (deque<>::assign): Remove iterator debug layer
626 (deque<>::insert): Likewise.
627 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
628 (forward_list<>::splice_after): Use latter.
629 (forward_list<>::assign): Remove iterator debug layer when possible.
630 (forward_list<>::insert_after): Likewise.
631 (__gnu_debug::_Sequence_traits<>): Partial specialization.
632 * include/debug/list (list<>::assign): Remove iterator debug layer when
634 (list<>::insert): Likewise.
635 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
636 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
638 * include/debug/multimap.h (multimap<>::insert): Likewise.
639 * include/debug/set.h (set<>::insert): Likewise.
640 * include/debug/multiset.h (multiset<>::insert): Likewise.
641 * include/debug/string (basic_string<>::append, basic_string<>::assign,
642 basic_string<>::insert, basic_string<>::replace): Likewise.
643 * include/debug/unordered_map
644 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
645 * include/debug/unordered_set
646 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
647 * include/debug/vector
648 (vector<>::assign, vector<>::insert): Likewise.
649 * include/Makefile.am: Add new debug headers.
650 * include/Makefile.in: Regenerate.
652 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
654 * doc/xml/manual/intro.xml: Document LWG 2108 status.
655 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
657 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
658 * include/bits/forward_list.h
659 (forward_list::operator=(forward_list&&)): Use __bool_constant.
660 (forward_list::swap(forward_list&)): Add noexcept.
661 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
663 (_Hashtable::swap(_Hashtable&)): Likewise.
664 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
665 Use _Alloc_traits::is_always_equal.
666 (deque::operator=(deque&&)): Likewise.
667 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
669 (swap(deque&, deque&)): Add noexcept.
670 * include/bits/stl_list.h (list::operator=(list&&)): Use
672 (swap(list&, list&)): Add noexcept.
673 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
675 (swap(map&, map&)): Add noexcept.
676 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
677 _Compare in noexcept.
678 (swap(multimap&, multimap&)): Add noexcept.
679 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
680 _Compare in noexcept.
681 (swap(multiset&, multiset&)): Add noexcept.
682 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
684 (swap(set&, set&)): Add noexcept.
685 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
686 _Compare in noexcept.
687 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
689 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
691 (swap(vector&, vector&)): Add noexcept.
692 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
693 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
694 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
695 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
696 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
698 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
699 __allocator_always_compares_equal.
700 * include/ext/array_allocator.h (array_allocator::is_always_equal):
702 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
703 __propagate_on_move, __propagate_on_swap): Remove.
704 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
705 scoped_allocator_adaptor::propagate_on_container_move_assignment,
706 scoped_allocator_adaptor::propagate_on_container_swap): Define with
707 __and_ instead of __any_of.
708 (scoped_allocator_adaptor::is_always_equal): Define.
709 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
710 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
711 derive from true_type or false_type.
712 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
713 is_always_equal member and remove the trait specialization.
714 * testsuite/23_containers/vector/52591.cc: Likewise.
715 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
716 Adjust dg-error line number.
717 * testsuite/23_containers/deque/requirements/dr438/
718 constructor_1_neg.cc: Likewise.
719 * testsuite/23_containers/deque/requirements/dr438/
720 constructor_2_neg.cc: Likewise.
721 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
723 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
725 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
727 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
729 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
731 * testsuite/23_containers/vector/requirements/dr438/
732 constructor_1_neg.cc: Likewise.
733 * testsuite/23_containers/vector/requirements/dr438/
734 constructor_2_neg.cc: Likewise.
735 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
738 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
739 * include/bits/stl_map.h (map::map()): Likewise.
740 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
741 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
742 * include/bits/stl_set.h (set::set()): Likewise.
744 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
746 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
748 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
750 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
752 (basic_string<>::back()): Likewise.
753 (basic_string<>::pop_back()): Likewise.
755 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
757 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
758 dg-error line numbers.
759 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
762 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
764 * include/debug/array: Include <array>. Add version namespace when
765 specializing tuple interface to array. Add specialization for
766 __is_tuple_like_impl.
767 * include/profile/array: Likewise.
768 * include/std/array: Include <utility>. Add specialization for
769 __is_tuple_like_impl.
771 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
772 * include/std/utility: ... here. Include <type_traits>.
773 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
774 dg-error line number.
775 * testsuite/23_containers/array/tuple_interface/
776 tuple_element_debug_neg.cc: Likewise.
778 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
780 * testsuite/26_numerics/complex/value_operations/1.cc: Use
781 non-negative rho argument.
783 * include/debug/list (__gnu_debug::list): Use allocator-aware
784 _Safe_container base.
785 * include/debug/string (__gnu_debug::basic_string): Use
786 allocator-aware _Safe_container base for cxx11 ABI.
788 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
789 (wstring_convert): Move into __cxx11 namespace.
790 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
794 * include/bits/stl_uninitialized.h
795 (__uninitialized_copy::__uninit_copy): Cast expression to void.
797 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
800 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
801 (list::list(const list&)): Use allocator propagation trait. Use
802 _M_assign_dispatch to copy elements.
803 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
804 (_List_node::_M_valptr()): Add accessor for stored value.
805 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
806 (_List_base, list): Use allocator traits.
807 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
808 (_List_base::_M_move_nodes): New function.
809 (_List_base(_List_base&&)): Use _M_move_nodes.
810 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
811 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
813 (list(size_type)): Add allocator parameter.
814 (list(const list&)): Use allocator propagation trait.
815 (list(const list&, const allocator_type&)): New constructor.
816 (list(list&&, const allocator_type&)): Likewise.
817 (list::operator=(list&&), list::swap(list&)): Use allocator
819 (list::_M_move_assign): New functions.
820 * include/debug/list: Add allocator-extended constructors.
821 * include/profile/list: Likewise.
822 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
823 function to get value from _List_node.
824 (StdListPrinter): Use get_value_from_list_node.
825 * testsuite/23_containers/list/allocator/copy.cc: New.
826 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
827 * testsuite/23_containers/list/allocator/minimal.cc: New.
828 * testsuite/23_containers/list/allocator/move.cc: New.
829 * testsuite/23_containers/list/allocator/move_assign.cc: New.
830 * testsuite/23_containers/list/allocator/noexcept.cc: New.
831 * testsuite/23_containers/list/allocator/swap.cc: New.
832 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
833 Adjust dg-prune-output line number.
834 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
836 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
839 * include/bits/forward_list.h
840 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
842 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
843 (forward_list(const _Alloc&)): Split default constructor out to
845 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
847 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
848 swap call with two assignments.
849 * include/bits/forward_list.tcc
850 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
851 move elements when allocators are not equal.
852 * include/debug/forward_list (forward_list(const allocator_type&)):
853 Split default constructor out to separate function.
854 * include/profile/forward_list (forward_list(const _Alloc&)):
857 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
858 Remove unnecessary uses of operator& and static_cast.
859 * include/bits/forward_list.tcc
860 (forward_list::operator=(const forward_list&)): Use __addressof
861 instead of operator&.
862 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
863 Remove invalid static_casts.
864 * include/debug/forward_list: Use __addressof instead of operator&.
865 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
867 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
868 __is_nothrow_swappable.
870 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
872 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
874 * include/bits/list.tcc (list::operator=(const list&), list::merge):
875 Use __addressof instead of operator&.
876 (list::sort): Use array-to-pointer decay instead of operator&.
877 * include/bits/stl_list.h (list::splice): Use __addressof instead of
879 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
881 * include/debug/functions.h (__check_singular): Likewise.
882 * include/debug/list (list::splice, list::merge): Likewise.
883 * testsuite/23_containers/list/modifiers/addressof.cc: New.
886 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
889 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
891 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
894 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
897 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
901 * config/cpu/alpha/atomic_word.h: Remove.
902 * config/cpu/ia64/atomic_word.h: Remove.
903 * config/cpu/powerpc/atomic_word.h: Remove.
904 * config/os/aix/atomic_word.h: Remove.
905 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
906 Use generic definition.
908 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
912 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
913 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
914 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
915 * include/ext/atomicity.h: Likewise.
916 * include/tr1/shared_ptr.h: Likewise.
917 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
919 (__set_and_release): Likewise.
920 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
922 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
923 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
926 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
928 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
929 debug and profile modes.
930 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
931 for swap in C++11 and later.
933 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
936 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
939 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
942 * testsuite/22_locale/conversions/string/66441.cc: New.
943 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
944 in the output string for BOM and complete result.
947 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
948 for single UTF-16 units.
949 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
951 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
953 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
954 outer scope and rename to ...
955 (std::__hash_is_transparent<>): ... this.
956 * include/debug/stl_map.h (map::find<>,
957 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
958 member function templates to perform heterogeneous lookup.
959 * include/debug/stl_multimap.h (multimap::find<>,
960 multimap::lower_bound<>, multimap::upper_bound<>,
961 multimap::equal_range<>): Likewise.
962 * include/debug/stl_multiset.h (multiset::find<>,
963 multiset::lower_bound<>, multiset::upper_bound<>,
964 multiset::equal_range<>): Likewise.
965 * include/debug/stl_set.h (set::find<>,
966 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
967 * include/profile/stl_map.h (map::find<>, map::count<>,
968 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
969 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
970 multimap::lower_bound<>, multimap::upper_bound<>,
971 multimap::equal_range<>): Likewise.
972 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
973 multiset::lower_bound<>, multiset::upper_bound<>,
974 multiset::equal_range<>): Likewise.
975 * include/profile/stl_set.h (set::find<>, set::count<>,
976 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
977 * testsuite/23_containers/map/operations/1.cc: Check const variants.
978 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
979 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
980 * testsuite/23_containers/set/operations/1.cc: Likewise.
982 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
984 * doc/xml/manual/status_cxx2017.xml: Update status tables.
985 * doc/html/manual/*: Regenerate.
986 * include/std/type_traits (bool_constant): Define.
987 * testsuite/20_util/bool_constant/requirements.cc: New.
988 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
989 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
991 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
994 * include/std/shared_mutex (__shared_mutex_pthread,
995 __shared_mutex_cv): New helper types implementing the shared mutex
997 (shared_mutex): New type for C++17.
998 (shared_timed_mutex): Derive from one of the new helper types.
999 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
1000 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
1001 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
1002 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
1004 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
1005 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
1007 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
1009 Add __is_nothrow_swappable and take it into use.
1010 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
1011 * include/bits/move.h (swap): Add constraints in C++11 and later.
1012 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
1013 for the free swap function for pair.
1014 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
1015 for the free swap functions for queue and priority_queue.
1016 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
1017 for the free swap function for stack.
1018 * include/debug/array (swap): Use __is_nothrow_swappable
1019 for the free swap function for array.
1020 * include/profile/array (swap): Likewise.
1021 * include/std/array (swap): Likewise.
1022 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
1023 * include/std/type_traits (__is_swappable_impl::__is_swappable,
1024 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
1025 * testsuite/20_util/is_nothrow_swappable/requirements/
1026 explicit_instantiation.cc: New.
1027 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
1029 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
1031 2015-06-03 François Dumont fdumont@gcc.gnu.org>
1033 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
1035 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
1037 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
1038 * doc/html/manual/*: Regenerate.
1040 * doc/html/ext/lwg-active.html: Update to R93.
1041 * doc/html/ext/lwg-closed.html: Likewise.
1042 * doc/html/ext/lwg-defects.html: Likewise.
1043 * doc/html/manual/*: Regenerate.
1044 * doc/xml/manual/intro.xml: Document status of several DRs.
1046 2015-06-02 Renlin Li <renlin.li@arm.com>
1048 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
1050 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
1052 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
1053 environment variable.
1055 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
1058 * include/bits/stl_algobase.h (__fill_a): Check length before calling
1061 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
1063 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
1064 instead of checking for null pointers.
1065 (__lexicographical_compare<true>::__lc): Only check shorter length.
1067 2015-05-29 François Dumont fdumont@gcc.gnu.org>
1069 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
1070 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
1071 * include/debug/assertions.h: ...here, new.
1072 * include/debug/formatter.h
1073 (_Error_formatter::_Is_iterator_value_type): New.
1074 (_Error_formatter::_Is_instance): New.
1075 (_Error_formatter::_Parameter): Make public and not friend anymore.
1076 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
1077 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
1079 (_Error_formatter::_Parameter::_Type): New.
1080 (_Error_formatter::_Parameter::_Instance): New, inherit from
1082 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
1083 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
1084 overloads take iterator through a const reference.
1085 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
1087 (_Parameter(const _Type&, const char*, _Is_instance)): New.
1088 (_Error_formatter::_M_print_type): Delete.
1089 (_Error_formatter::_M_iterator_value_type): New.
1090 (_Error_formatter::_M_instance): New.
1091 * include/Makefile.am: Add new above debug file.
1092 * include/Makefile.in: Regenerate.
1093 * include/debug/functions.h
1094 (__check_dereferenceable(const _Safe_iterator<>&),
1095 __valid_range(const _Safe_iterator<>&),
1096 __is_safe_random_iterator<_Safe_iterator<>>): Move...
1097 * include/debug/safe_iterator.h: ... here.
1098 Replace debug.h include with assertions.h.
1099 (__check_singular_aux): Move...
1100 * include/debug/safe_base.h: ... here.
1101 * include/debug/functions.h
1102 (__check_dereferenceable(const _Safe_local_iterator<>&),
1103 __valid_range(const _Safe_local_iterator<>&): Move...
1104 * include/debug/safe_local_iterator.h: ...here.
1105 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
1106 Remove _Safe_iterator declaration.
1107 * include/debug/safe_unordered_container.h: Replace debug.h with
1109 * include/debug/array: Replace safe_sequence.h include with
1110 formatter.h and macros.h.
1111 * include/debug/deque: Include functions.tcc.
1112 * include/debug/forward_list: Likewise.
1113 * include/debug/list: Likewise.
1114 * include/debug/string: Likewise.
1115 * include/debug/vector: Likewise.
1116 * include/bits/unique_ptr.h: Replace debug.h include with new
1118 * include/bits/stl_iterator_base_funcs.h: Likewise.
1119 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
1120 Adjust dg-error line number.
1121 * testsuite/23_containers/array/tuple_interface/
1122 tuple_element_debug_neg.cc: Likewise.
1123 * src/c++11/debug.cc: Adapt.
1125 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
1127 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
1128 * doc/html/manual/*: Regenerate.
1130 * include/std/future (__async_result_of): New alias template.
1131 (async): Use __async_result_of to pass decayed types to result_of.
1132 * testsuite/30_threads/async/lwg2021.cc: New.
1133 * doc/xml/manual/intro.xml: Document LWG 2021 status.
1136 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
1137 memcmp with null pointers.
1138 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
1141 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
1144 * include/profile/array (array::data): Use _S_ptr.
1145 * include/debug/array (array::data): Likewise.
1148 * include/std/array (__array_traits::_S_ptr): New function.
1149 (array::data): Use _S_ptr to avoid creating invalid reference.
1150 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
1151 dg-error line numbers.
1152 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1155 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
1157 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
1158 instead of downcasting.
1159 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
1160 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
1161 (_Rb_tree::_S_iter): Remove.
1162 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
1163 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
1164 instead of _S_lower_bound_tr
1165 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
1166 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
1167 instead of calling _S_lower_bound_tr.
1168 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
1169 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
1170 instead of calling _S_upper_bound_tr.
1171 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
1172 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
1173 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
1174 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
1175 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
1176 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
1177 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
1178 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
1181 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
1182 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
1184 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
1185 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
1186 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
1187 alignment of _Tp as a member subobject, not as a complete object.
1188 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
1189 _Link_type manually as it might not be in the debug info.
1191 2015-05-26 Doug Evans <dje@google.com>
1193 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
1195 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
1198 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
1200 * include/bits/locale_conv.h: Fix copyright years.
1201 * include/bits/quoted_string.h: Likewise.
1202 * src/filesystem/Makefile.am: Likewise.
1203 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
1204 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
1206 * testsuite/22_locale/conversions/string/1.cc: Likewise.
1207 * testsuite/22_locale/conversions/string/2.cc: Likewise.
1208 * testsuite/22_locale/conversions/string/3.cc: Likewise.
1209 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
1211 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
1213 * testsuite/util/testsuite_fs.h: Likewise.
1215 2015-05-23 François Dumont fdumont@gcc.gnu.org>
1218 * include/debug/functions.h (__check_sorted_aux): Cast expression to
1221 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
1224 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
1225 Don't use isync. Use lwsync if available.
1226 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
1227 powerpc cpu definition.
1229 2015-05-21 Jason Merrill <jason@redhat.com>
1231 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
1232 * libsupc++/del_op.cc: Likewise.
1234 2015-05-20 François Dumont fdumont@gcc.gnu.org>
1236 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
1238 (_Error_formatter::_M_print_type): New.
1239 * src/c++11/debug.cc
1240 (_Error_formatter::_Parameter::_M_print_field): Use latter.
1241 (_Error_formatter::_M_print_type): Implement latter using
1242 __cxaabiv1::__cxa_demangle to print demangled type name.
1244 * include/bits/cpp_type_traits.h
1245 (std::move_iterator): Delete declaration.
1246 (std::__is_move_iterator<move_iterator>): Move partial specialization...
1247 * include/bits/stl_iterator.h: ... here.
1248 (std::__miter_base): Overloads for std::reverse_iterator and
1250 * include/bits/stl_algobase.h (std::__miter_base): Provide default
1253 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
1255 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
1258 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
1259 overload for pointers.
1260 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
1261 808590.cc: Add -std=gnu++03 switch.
1262 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
1263 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
1264 * testsuite/23_containers/vector/modifiers/push_back/
1265 strong_guarantee.cc: New.
1267 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
1269 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
1270 (operator==(const list&, const list&)): If size() is O(1) compare
1271 sizes before comparing each element.
1272 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
1273 (list::resize): Use _M_resize_pos.
1275 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
1277 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
1279 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
1280 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
1281 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
1283 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1285 * configure.host: Define cpu_defines_dir for ARM.
1286 * config/cpu/arm/cpu_defines.h: New file.
1288 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
1290 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
1291 missing constructors.
1292 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
1294 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
1295 missing constructors.
1296 * include/debug/unordered_set (unordered_set, unordered_multiset):
1298 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
1299 missing constructors.
1300 * include/profile/unordered_set (unordered_set, unordered_multiset):
1303 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
1305 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
1306 use throughout the file.
1307 (make_file_type): New function.
1308 (file_size(const path&, error_code&)): Report an error for anything
1309 that isn't a regular file.
1310 (status(const path&), symlink_status(const path&)): Do not throw for
1311 file_type::not_found.
1312 (temp_directory_path()): Check additional environment variables.
1313 * testsuite/experimental/filesystem/operations/exists.cc: New.
1314 * testsuite/experimental/filesystem/operations/file_size.cc: New.
1315 * testsuite/experimental/filesystem/operations/status.cc: New.
1316 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1319 2015-05-14 Nathan Myers <ncm@cantrip.org>
1320 Jonathan Wakely <jwakely@redhat.com>
1323 * include/std/unordered_map (unordered_map, unordered_multimap): Add
1324 missing constructors.
1325 * include/std/unordered_set (unordered_set, unordered_multiset):
1327 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
1328 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
1329 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
1330 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
1332 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
1335 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
1337 * config.h.in: Regenerate.
1338 * configure: Regenerate.
1339 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
1340 not return after copying contents. Use fchmod, fchmodat, and sendfile
1342 (current_path, permissions, space): Use errno not return value.
1345 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
1347 * config.h.in: Regenerate.
1348 * configure: Regenerate.
1349 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
1351 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
1353 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
1354 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
1355 * config.h.in: Regenerate.
1356 * configure: Likewise.
1357 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
1358 __USING_SJLJ_EXCEPTIONS__.
1359 * libsupc++/eh_throw.cc: Likewise.
1360 * libsupc++/eh_ptr.cc: Likewise.
1361 * doc/html/manual/appendix_porting.html: Remove
1362 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
1363 * doc/xml/manual/build_hacking.xml: Likewise.
1364 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
1365 * doc/xml/manual/configure.xml: Likewise.
1367 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
1369 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
1370 for nullptr (LWG 2415).
1371 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
1372 construction from empty unique_ptr.
1373 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
1374 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
1376 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
1378 * testsuite/20_util/raw_storage_iterator/base.cc: New.
1380 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
1381 Remove explicit (LWG 2407).
1383 * include/bits/basic_string.h (basic_string::basic_string()): Make
1384 noexcept conditional on allocator (LWG 2455).
1386 * include/std/complex (polar): Check for negative rho (LWG 2459).
1388 * include/experimental/tuple (apply): Handle pointers to member (LWG
1390 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
1391 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
1392 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
1394 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
1396 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
1397 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
1398 * testsuite/23_containers/forward_list/allocator/minimal.cc:
1400 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
1401 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
1402 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
1403 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
1404 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
1406 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
1408 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
1410 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
1412 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
1414 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
1415 * configure: Regenerate.
1417 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1419 * Makefile.in: Regenerated with automake-1.11.6.
1420 * aclocal.m4: Likewise.
1421 * configure: Likewise.
1422 * doc/Makefile.in: Likewise.
1423 * include/Makefile.in: Likewise.
1424 * libsupc++/Makefile.in: Likewise.
1425 * po/Makefile.in: Likewise.
1426 * python/Makefile.in: Likewise.
1427 * src/Makefile.in: Likewise.
1428 * src/c++11/Makefile.in: Likewise.
1429 * src/c++98/Makefile.in: Likewise.
1430 * src/filesystem/Makefile.in: Likewise.
1431 * testsuite/Makefile.in: Likewise.
1433 2015-05-09 Jason Merrill <jason@redhat.com>
1435 * testsuite/20_util/headers/functional/synopsis.cc: Add
1436 _GLIBCXX14_CONSTEXPR.
1437 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
1439 2015-05-08 Jason Merrill <jason@redhat.com>
1441 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
1442 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
1443 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
1444 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
1445 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
1446 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
1447 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
1448 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
1449 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
1450 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
1451 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
1453 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
1454 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1455 Adjust expected errors.
1456 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1458 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1460 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1462 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1464 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1466 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1468 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1470 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1472 * testsuite/23_containers/vector/requirements/dr438
1473 /constructor_1_neg.cc: Likewise.
1474 * testsuite/23_containers/vector/requirements/dr438
1475 /constructor_2_neg.cc: Likewise.
1476 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1478 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
1479 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
1480 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
1481 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
1482 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
1483 Add -Wno-deprecated.
1484 * testsuite/ext/array_allocator/check_deallocate_null.cc:
1485 Add -Wno-deprecated.
1486 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
1487 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
1488 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
1489 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
1491 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
1493 * testsuite/tr1/2_general_utilities/shared_ptr/assign
1494 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
1495 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
1496 Add -std=c++98 -fno-show-column.
1497 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
1499 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
1501 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
1502 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
1504 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1505 * src/c++98/Makefile.in: Regenerate.
1506 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1507 * src/Makefile.in: Regenerate.
1509 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
1512 * include/std/future (async): Change default policy to launch::async.
1514 * include/experimental/any (any::_Storage): Fix alignment of buffer.
1515 (any::_Internal): Check alignment of type.
1516 * testsuite/experimental/any/cons/aligned.cc: New.
1517 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1519 * include/experimental/iterator (ostream_joiner): Simplify by using
1520 the injected-class-name and the ostream_type typedef.
1522 * include/experimental/iterator: New. Define ostream_joiner.
1523 * include/Makefile.am: Add new header.
1524 * include/Makefile.in: Regenerate.
1525 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
1526 * testsuite/experimental/iterator/ostream_joiner.cc: New.
1527 * testsuite/experimental/iterator/requirements.cc: New.
1528 * doc/xml/manual/status_cxx2017.xml: Update status.
1529 * doc/html/manual/status.html: Regenerate.
1531 * include/experimental/numeric: New. Define gcd and lcm.
1532 * include/Makefile.am: Add new header.
1533 * include/Makefile.in: Regenerate.
1534 * testsuite/experimental/numeric/gcd.cc: New.
1535 * testsuite/experimental/numeric/lcm.cc: New.
1536 * doc/xml/manual/status_cxx2017.xml: Update status.
1537 * doc/html/manual/status.html: Regenerate.
1539 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
1541 Revert addition of feature macros from other headers per latest SD-6.
1542 * include/experimental/deque: Remove feature-test macro.
1543 * include/experimental/forward_list: Ditto.
1544 * include/experimental/list: Ditto.
1545 * include/experimental/map: Ditto.
1546 * include/experimental/set: Ditto.
1547 * include/experimental/string: Ditto.
1548 * include/experimental/unordered_map: Ditto.
1549 * include/experimental/unordered_set: Ditto.
1551 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
1553 * include/experimental/any (any::_Storage): Make non-copyable.
1554 (any::any): Do not copy _Storage object.
1555 (any::operator=): Implement more efficiently than swapping.
1556 (any::swap): Use new _Op_xfer operation.
1557 (any::_Op::_Op_xfer): New enumerator.
1558 (_Manager_internal::_S_alloc): Remove unused function.
1559 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
1560 parameter instead of returning a _Storage object.
1561 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
1562 _Op_xfer operation for moving and swapping.
1563 * testsuite/experimental/any/cons/nontrivial.cc: New.
1564 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1566 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
1568 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
1572 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
1573 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
1574 and fix tests for forward_as_tuple and tie.
1576 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
1577 Set timespec members explicitly instead of with a braced-init-list.
1578 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
1580 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
1582 * include/experimental/deque: Add feature-test macro.
1583 * include/experimental/forward_list: Ditto.
1584 * include/experimental/list: Ditto.
1585 * include/experimental/map: Ditto.
1586 * include/experimental/set: Ditto.
1587 * include/experimental/string: Ditto.
1588 * include/experimental/unordered_map: Ditto.
1589 * include/experimental/unordered_set: Ditto.
1591 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1593 * include/experimental/memory: Correct feature-test macro.
1595 * include/experimental/memory: Add feature-test macro.
1596 * include/experimental/vector: Likewise.
1597 * doc/xml/manual/status_cxx2017.xml: Update status.
1598 * doc/html/manual/status.html: Regenerate.
1600 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
1602 Implement observer_ptr.
1603 * include/Makefile.am: Add new header.
1604 * include/Makefile.in: Regenerate.
1605 * include/experimental/memory: New.
1606 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
1607 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
1608 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
1609 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
1610 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
1611 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
1612 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
1613 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
1615 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1617 * src/filesystem/path.cc (path::compare): Do not copy strings.
1619 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
1621 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
1622 * configure: Regenerate.
1623 * config.h.in: Regenerate.
1624 * configure.ac: Check for utime.h
1625 * include/experimental/fs_path.h (path::string<>)
1626 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
1627 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
1628 closedir, dirent, readdir_r): Replace dummy functions with #error.
1629 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
1630 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
1631 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
1632 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
1633 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
1636 * include/experimental/fs_path.h (path::_List): Use vector instead of
1638 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
1639 * src/filesystem/path.cc: Use std::prev instead of decrementing
1640 rvalues. Fix whitespace.
1641 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1642 Do not decrement iterators before begin.
1644 * include/experimental/fs_dir.h: Fix use of non-reserved names.
1645 * include/experimental/fs_ops.h: Likewise.
1646 * include/experimental/fs_path.h: Likewise.
1647 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
1648 C++11 when checking for support.
1650 * include/bits/locale_classes.h (locale::facet): Delete copy
1651 operations in C++11 mode.
1653 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
1655 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
1656 * configure: Regenerate.
1658 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1660 Inline one-line erasure dispatch functions.
1661 * include/experimental/forward_list (erase_if(), erase()): Inline.
1662 * include/experimental/list (erase_if(), erase()): Inline.
1663 * include/experimental/map (erase_if(*)): Inline.
1664 * include/experimental/set (erase_if(*)): Inline.
1665 * include/experimental/string (erase_if(), erase()): Inline.
1666 * include/experimental/unordered_map (erase_if(*)): Inline.
1667 * include/experimental/unordered_set (erase_if(*)): Inline.
1669 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1671 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
1672 * doc/xml/manual/status_cxx2011.xml: Update status tables.
1673 * doc/xml/manual/status_cxx2014.xml: Likewise.
1674 * doc/xml/manual/status_cxx2017.xml: New.
1675 * doc/xml/manual/using.xml: Fix typo.
1676 * doc/html/*: Regenerate.
1678 * include/std/memory (pointer_safety, declare_reachable,
1679 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
1680 get_pointer_safety): Define.
1681 * testsuite/20_util/pointer_safety/1.cc: New.
1683 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
1685 Implement N4100 File System TS
1686 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
1687 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
1688 * config.h.in: Regenerate.
1689 * configure: Regenerate.
1690 * configure.ac: Enable filesystem TS and check its dependencies.
1691 * include/Makefile.am: Add new headers.
1692 * include/Makefile.in: Regenerate.
1693 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
1694 __str_codecvt_out): Move code conversion logic from wstring_convert
1695 into new global functions.
1696 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
1698 (wstring_convert::_M_conv): Remove.
1699 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
1700 * include/experimental/filesystem: New.
1701 * include/experimental/fs_dir.h: New.
1702 * include/experimental/fs_fwd.h: New.
1703 * include/experimental/fs_ops.h: New.
1704 * include/experimental/fs_path.h: New.
1705 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
1706 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
1707 * src/Makefile.am (SUBDIRS): Add filesystem.
1708 * src/Makefile.in: Regenerate.
1709 * src/filesystem/Makefile.am: New.
1710 * src/filesystem/Makefile.in: New.
1711 * src/filesystem/dir.cc: New.
1712 * src/filesystem/ops.cc: New.
1713 * src/filesystem/path.cc: New.
1714 * testsuite/experimental/filesystem/operations/absolute.cc: New.
1715 * testsuite/experimental/filesystem/operations/copy.cc: New.
1716 * testsuite/experimental/filesystem/operations/current_path.cc: New.
1717 * testsuite/experimental/filesystem/path/append/path.cc: New.
1718 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
1719 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
1720 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
1721 * testsuite/experimental/filesystem/path/compare/path.cc: New.
1722 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
1723 * testsuite/experimental/filesystem/path/concat/path.cc: New.
1724 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
1725 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
1726 * testsuite/experimental/filesystem/path/construct/default.cc: New.
1727 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
1728 * testsuite/experimental/filesystem/path/construct/range.cc: New.
1729 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
1730 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
1731 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1733 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
1735 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
1737 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
1739 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
1741 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
1742 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
1744 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
1745 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
1746 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
1748 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
1750 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
1752 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
1754 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
1755 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
1756 * testsuite/experimental/filesystem/path/query/empty.cc: New.
1757 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
1758 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
1759 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
1761 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
1763 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
1765 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
1767 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
1769 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
1770 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
1771 * testsuite/util/testsuite_fs.h: New.
1773 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1775 Add fundamentals TR container erasure.
1776 * include/Makefile.am: Add new headers.
1777 * include/Makefile.in: Add new headers.
1778 * include/experimental/array: New.
1779 * include/experimental/deque: New.
1780 * include/experimental/erase_if.tcc: New.
1781 * include/experimental/forward_list: New.
1782 * include/experimental/list: New.
1783 * include/experimental/map: New.
1784 * include/experimental/set: New.
1785 * include/experimental/string: New.
1786 * include/experimental/unordered_map: New.
1787 * include/experimental/unordered_set: New.
1788 * include/experimental/vector: New.
1789 * testsuite/experimental/deque/erasure.cc: New.
1790 * testsuite/experimental/forward_list/erasure.cc: New.
1791 * testsuite/experimental/list/erasure.cc: New.
1792 * testsuite/experimental/map/erasure.cc: New.
1793 * testsuite/experimental/set/erasure.cc: New.
1794 * testsuite/experimental/string/erasure.cc: New.
1795 * testsuite/experimental/unordered_map/erasure.cc: New.
1796 * testsuite/experimental/unordered_set/erasure.cc: New.
1797 * testsuite/experimental/vector/erasure.cc: New.
1799 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
1801 * include/bits/cpp_type_traits.h
1802 (__gnu_cxx::__is_normal_iterator): Delete.
1803 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
1804 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
1805 (std::__niter_base): Overloads for std::reverse_iterator,
1806 __gnu_cxx::__normal_iterator and std::move_iterator.
1808 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
1810 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
1812 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
1813 Remove usage of latter and compute size of the prime numbers array
1816 2015-04-29 Doug Evans <dje@google.com>
1819 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
1820 Replace all lookups of "bool" with this.
1821 (get_std_size_type): New function. Replace all lookups of std::size_t
1823 (*Worker): New method get_result_type.
1824 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
1825 (ListWorkerBase.__init__): New arg val_type. All callers updated.
1826 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
1827 Delete setting of name, enabled.
1828 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
1829 updated. Delete setting of name.
1830 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
1831 libstdc++ xmethod matchers.
1832 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
1833 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
1834 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
1835 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
1836 * testsuite/libstdc++-xmethods/list.cc: Ditto.
1837 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
1838 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
1840 2015-04-29 Doug Evans <dje@google.com>
1842 Use consistent naming for value type attributes.
1843 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
1845 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
1846 (ArrayFrontWorker, ArrayBackWorker): Ditto.
1847 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
1848 (DequeWorkerBase): Rename elemtype to val_type.
1849 (ForwardListWorkerBase): Rename _elem_type to _val_type.
1850 (ForwardListFrontWorker): Ditto. And rename elem_address to
1852 (ForwardListMethodsMatcher): Rename elem_type to val_type.
1853 (VectorWorkerBase): Rename _elemtype to _val_type.
1855 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
1858 * include/std/functional (__check_func_return_type): Use is_same to
1859 avoid using _is_convertible on incomplete types.
1860 * testsuite/20_util/function/65760.cc: New.
1863 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
1865 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
1866 time_get::_M_extract_num, time_get::_M_extract_name,
1867 time_get::_M_extract_wday_or_month): Likewise.
1868 * include/bits/stl_algo.h (__includes, __replace_copy_if,
1869 __is_sorted_until, __is_permutation, transform): Likewise.
1870 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
1871 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
1872 * include/bits/stl_numeric.h (inner_product): Likewise.
1873 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
1874 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
1875 input_iterator_wrapper): Declare unusable comma operator.
1876 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
1877 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
1880 2015-04-28 Doug Evans <dje@google.com>
1882 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
1885 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1887 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
1890 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1892 * Makefile.am (SUBDIRS): Move python to hosted_source.
1893 * Makefile.in: Regenerate.
1894 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
1895 * configure: Regenerate.
1897 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
1900 * include/std/limits (numeric_limits): Add missing unsigned.
1902 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
1904 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
1906 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
1909 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
1910 Handle enumeration types larger than sizeof(long).
1911 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
1913 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
1914 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1916 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
1917 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
1919 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
1922 * include/bits/forward_list.h (forward_list::splice_after): Add
1924 * include/bits/forward_list.tcc (forward_list::splice_after):
1928 * include/bits/random.h (seed_seq) Define copy constructor and copy
1929 assignment as deleted.
1930 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
1932 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
1933 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
1934 Use -std=gnu++1z. Check feature-test macro.
1936 * include/std/type_traits (void_t): Add.
1937 * testsuite/20_util/void_t/1.cc: New.
1939 2015-04-28 Tim Shen <timshen@google.com>
1941 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
1942 * include/bits/regex_automaton.tcc: Throw exception when parsing
1943 back-reference with flag __polynomial.
1944 * include/bits/regex_constants.h: Add extension flag
1945 syntax_option_type __polynomial.
1946 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
1947 Alternative operation will be fixed in the coming refactoring.
1948 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
1949 loose match_search_debug to use DFS only.
1951 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
1954 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
1955 Make the generated test program fail gracefully if the target
1956 doesn't support passing command-line arguments.
1958 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
1959 Jonathan Wakely <jwakely@redhat.com>
1961 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
1962 Return false or zero if the library is built without exceptions.
1963 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
1964 the library is built without exceptions.
1966 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
1968 * config/abi/pre/gnu.ver: Fix comment.
1970 Add support for std::uncaught_exceptions.
1971 * acinclude.m4: Bump libtool_VERSION.
1972 * config/abi/pre/gnu.ver: Export the new symbol.
1973 * configure: Regenerate.
1974 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
1975 * libsupc++/exception (uncaught_exceptions): New.
1976 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
1977 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
1979 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
1980 Michael Hanselmann <public@hansmi.ch>
1983 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
1984 uncaught exceptions.
1985 * testsuite/18_support/exception_ptr/62258.cc: New.
1987 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
1989 * doc/xml/manual/extensions.xml: Add cross-reference.
1990 * doc/html/manual/ext_compile_checks.html: Regenerate.
1992 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1994 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
1995 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
1997 2015-04-22 Renlin Li <renlin.li@arm.com>
1999 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
2000 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
2001 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
2002 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
2003 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
2005 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
2007 * doc/xml/manual/configure.xml: Update descriptions of options
2008 affecting dual ABI and add cross-references.
2009 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
2010 * doc/xml/manual/using.xml: Document ABI transition.
2011 * doc/html/*: Regenerate.
2013 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
2014 * doc/xml/manual/using.xml: Document newer -std options. Use better
2015 examples of nested namespaces.
2017 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
2019 * doc/xml/manual/concurrency_extensions.xml: Update documentation
2021 * doc/xml/manual/using.xml: Likewise. Improve markup.
2022 * doc/html/*: Regenerate.
2024 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2026 * scripts/extract_symvers.pl: Ignore elfdump error output.
2028 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
2031 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
2032 _List_const_iterator): Declare.
2033 (__distance): Declare new overloads for _List_iterator and
2034 _List_const_iterator.
2035 * include/bits/stl_list.h (__distance): New overloads for
2036 _List_iterator and _List_const_iterator.
2037 * testsuite/23_containers/list/61347.cc: New testcase.
2039 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
2041 * doc/xml/manual/evolution.xml: Fix typos.
2042 * doc/html/manual/api.html: Regenerate.
2044 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
2046 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
2047 alignment is larger-equal, not equal, to default alignment.
2049 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
2052 * config/abi/pre/gnu.ver: Export base object constructors for
2054 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2055 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
2056 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
2057 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2058 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2059 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2060 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
2061 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2062 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
2063 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2064 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2065 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
2066 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
2067 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
2068 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2069 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2070 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
2071 * testsuite/27_io/basic_fstream/cons/base.cc: New.
2073 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
2075 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
2076 * doc/html/*: Regenerate.
2078 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
2080 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
2082 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
2084 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
2086 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2088 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
2090 * doc/xml/manual/test.xml: Improve documentation on running a subset
2092 * doc/html/manual/test.html: Regenerate.
2094 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2096 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
2097 for GCC 5.1 release.
2098 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
2101 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
2103 * include/std/shared_mutex (shared_timed_mutex): Add comments to
2104 explain the logic in the non-pthread_rwlock_t version.
2105 (_Mutex): Remove redundant type.
2106 (_M_n_readers): Rename to _S_max_readers.
2107 (_M_write_entered, _M_readers): New convenience functions.
2108 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
2109 functions. Use predicates with condition variables. Simplify bitwise
2111 (try_lock_for, try_shared_lock_for): Convert duration to time_point
2112 and call try_lock_until or try_shared_lock_until respectively.
2113 (try_lock_until, try_shared_lock_until): Wait on the condition
2114 variables until the specified time passes.
2115 (unlock): Add Debug Mode assertion.
2116 (unlock_shared): Add Debug Mode assertion.
2117 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
2119 * include/std/shared_mutex (shared_timed_mutex): Only use
2120 pthread_rwlock_t when the POSIX Timeouts option is supported.
2121 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
2122 dg-require-gthreads-timed.
2123 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
2124 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
2125 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
2127 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
2129 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
2131 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
2132 Richard Henderson <rth@redhat.com>
2135 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
2137 * include/std/atomic (atomic): For types with a power of two size set
2138 alignment to at least the size.
2139 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2140 * testsuite/29_atomics/atomic/65147.cc: New.
2141 * testsuite/29_atomics/atomic_integral/65147.cc: New.
2143 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2145 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
2146 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
2147 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
2149 2015-04-07 Jakub Jelinek <jakub@redhat.com>
2151 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2152 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2153 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2154 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2155 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2156 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2157 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2158 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2160 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
2163 * config/abi/pre/gnu.ver: Export operator+ for new strings.
2164 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
2165 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
2167 2015-03-28 Tim Shen <timshen@google.com>
2170 * include/bits/regex_constants.h: Use constexpr variables for flags.
2171 * testsuite/28_regex/constants/constexpr.cc: New testcase.
2173 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
2176 * include/std/chrono: Add using-directive for literals to std::chrono.
2177 * testsuite/20_util/duration/literals/65499.cc: New.
2179 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
2183 * include/std/thread (this_thread::sleep_for): Check for negative
2185 (this_thread::sleep_until): Check for times in the past.
2186 * testsuite/30_threads/this_thread/58038.cc: New.
2187 * testsuite/30_threads/this_thread/60421.cc: New.
2189 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
2193 * include/std/atomic (atomic<T>): Increase alignment for types with
2194 the same size as one of the integral types.
2195 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2196 * testsuite/29_atomics/atomic/62259.cc: New.
2198 2015-03-26 Richard Henderson <rth@redhat.com>
2201 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
2202 a fake pointer indicating type alignment.
2203 (__atomic_base<T *>::is_lock_free): Likewise.
2204 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
2206 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
2209 * testsuite/21_strings/basic_string/pthread33394.cc: Use
2210 dg-additional-options.
2212 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
2215 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
2217 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
2219 * testsuite/27_io/rvalue_streams-2.cc: New.
2221 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
2224 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
2226 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
2229 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
2230 * configure: Regenerate.
2231 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
2232 system_category): Use macros for versioned namespace.
2233 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
2235 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
2237 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
2238 test for unused for ARM.
2239 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
2240 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
2242 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
2244 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
2245 * include/ext/codecvt_specializations.h (encoding_state,
2246 encoding_char_traits): Remove abi-tag and use inline namespace.
2247 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
2249 2015-03-19 Jason Merrill <jason@redhat.com>
2251 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
2252 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
2254 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2257 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
2258 get_catalogs): Add abi-tag.
2259 * include/ext/codecvt_specializations.h (encoding_state,
2260 encoding_char_traits): Likewise.
2261 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
2262 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
2263 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
2264 money_get_shim, money_put_shim, messages_shim): Likewise.
2265 * src/c++11/future.cc (future_error_category::message): Likewise.
2266 * src/c++11/system_error.cc (generic_error_category::message,
2267 system_error_category::message): Likewise.
2268 (__sso_string): Disable -Wabi-tag warnings.
2270 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2273 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
2274 implementation for old glibc. Fix whitespace.
2276 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2277 Torvald Riegel <triegel@redhat.com>
2279 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
2280 * config.h.in: Regenerate.
2281 * configure: Regenerate.
2282 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
2283 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
2284 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
2285 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
2288 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
2290 * libsupc++/nested_exception.h: Do not try to derive from final
2292 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
2295 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
2296 unused exception variable.
2297 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
2298 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
2300 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
2302 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
2304 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
2305 * configure: Regenerate.
2307 * include/experimental/system_error: Fix include guard.
2309 2015-03-12 Renlin Li <renlin.li@arm.com>
2311 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
2314 2015-03-10 Tim Shen <timshen@google.com>
2317 * include/bits/regex.h (match_results<>::size,
2318 match_results<>::position, match_results<>::str,
2319 match_results<>::operator[], match_results<>::prefix,
2320 match_results<>::suffix, match_results<>::end,
2321 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
2322 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
2323 global __unmatched_sub. Add unmatched submatch as part of
2325 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
2326 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
2327 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
2330 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
2333 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
2334 for newlib targets. Really fix mixed line-endings this time.
2336 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
2338 * include/std/future (future_error(error_code)): Construct base
2339 class with error_code's message.
2340 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
2343 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
2345 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
2347 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
2348 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
2350 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
2353 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
2354 incomplete multibyte sequences correctly.
2355 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
2356 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
2357 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
2359 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
2360 Define convenience functions.
2361 (read_utf8_code_point): Return relevant constant to distinguish
2362 incomplete characters from invalid sequences.
2363 (read_utf16_code_point): Likewise. Check for invalid sequences.
2364 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
2365 (utf16_out): Check for invalid sequences.
2366 (utf16_span): Fix condition.
2367 (ucs2_out): Use is_high_surrogate.
2368 (ucs2_in): Use incomplete_mb_character constant and fix condition.
2369 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
2370 * testsuite/22_locale/conversions/buffer/1.cc: New.
2371 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
2372 char32_t instead of wchar_t.
2373 * testsuite/22_locale/conversions/string/3.cc: New.
2375 2015-03-03 Iain Sandoe <iain@codesourcery.com>
2378 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
2379 visibility for Darwin.
2380 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
2382 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
2384 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
2387 * include/std/scoped_allocator (__inner_type_impl,
2388 scoped_allocator_adaptor): Add defaulted copy assignment and move
2389 assignment operators.
2390 * testsuite/20_util/scoped_allocator/65279.cc: New.
2392 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
2395 * include/std/stdexcept (__sso_string): Don't use non-static member
2398 2015-02-28 Matthias Klose <doko@ubuntu.com>
2401 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
2403 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
2405 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
2406 * doc/html/manual/status.html: Regenerate.
2408 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
2411 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
2414 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
2416 * doc/html/manual/status.html: Regenerate.
2418 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
2421 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
2422 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
2424 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
2427 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
2428 (test01): Add explanatory comment. Keep only the bd1 sub-test and
2429 split out bd2, bd3, bd4, and bd5 sub-tests into...
2430 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
2431 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
2432 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
2433 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
2434 New separate files with the old parts.
2436 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
2438 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
2440 (utf16_in): Pass mode argument to write_utf16_code_point.
2441 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
2443 * testsuite/22_locale/codecvt/char16_t.cc: New.
2444 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
2446 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
2447 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
2449 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2450 Jonathan Wakely <jwakely@redhat.com>
2452 * testsuite/22_locale/codecvt/char32_t.cc: New.
2454 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
2457 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
2458 empty string gets null-terminated.
2459 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
2461 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
2463 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
2464 mixed line-endings introduced in last change.
2466 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
2468 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
2469 for __NEWLIB__ macro with a dejagnu set macro.
2470 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2472 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2475 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
2476 special case for '\n'.
2477 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2479 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
2481 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
2483 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
2486 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
2488 * include/c_std/cstdio (gets): Likewise.
2489 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
2490 with attributes used in darwin headers.
2492 2015-01-29 Jakub Jelinek <jakub@redhat.com>
2494 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
2495 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
2496 * configure: Regenerated.
2498 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
2500 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2501 after vtv_cygmin is set.
2502 * configure: Regenerated.
2504 2015-01-29 Matthias Klose <doko@ubuntu.com>
2506 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2508 * configure: Regenerate.
2510 2015-01-29 Caroline Tice <cmtice@google.com>
2512 Committing VTV Cywin/Ming patch for Patrick Wollgast
2513 * configure: Regenerate.
2514 * libsupc++/Makefile.in: Regenerate.
2515 * src/Makefile.in: Regenerate.
2517 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
2519 * include/bits/atomic_base.h: Use __always_inline__ instead of
2521 * include/bits/atomic_futex.h: Likewise.
2522 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
2523 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
2524 __packed__ instead of packed.
2525 * include/std/shared_mutex: Use __unused__ instead of unused.
2526 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
2527 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
2528 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
2530 2015-01-28 Caroline Tice <cmtice@google.com>
2532 Committing VTV Cywin/Ming patch for Patrick Wollgast
2533 * acinclude.m4: Define VTV_CYGMIN.
2534 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
2535 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
2536 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
2537 for Cygwin and MinGW.
2538 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
2539 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
2540 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
2542 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
2545 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
2546 * libsupc++/Makefile.in: Regenerate.
2547 * src/c++11/Makefile.in: Regenerate.
2549 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2551 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
2552 check for unsupported.
2553 (v3_target_compile_as_c): Likewise.
2555 2015-01-28 Richard Biener <rguenther@suse.de>
2558 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
2560 (pool::allocate): Adjust allocation size and alignment to
2562 (pool::free): Adjust pointer offsetting.
2564 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
2567 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
2568 shared_timed_mutex::try_lock_until): Only define when POSIX thread
2569 timeouts option is supported.
2570 (shared_timed_mutex::try_shared_lock_for,
2571 shared_timed_mutex::try_shared_lock_until): Likewise.
2573 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
2576 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
2577 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
2578 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
2579 and use cache's _M_grouping field.
2580 (__numpunct_fill_cache): Likewise.
2581 (__moneypunct_fill_cache): Improve comments.
2583 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
2585 * testsuite/23_containers/set/operations/2.cc: Add test for
2586 non-transparent comparison function.
2588 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
2591 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
2592 Remove SH4A inline asm and lock based implementations and use the
2593 defaults from ext/atomicity.h.
2595 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
2597 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
2598 new std::string constructors for byname facets.
2600 2015-01-22 Richard Biener <rguenther@suse.de>
2603 * libsupc++/eh_alloc.cc: Include new.
2604 (bitmask_type): Remove.
2605 (one_buffer): Likewise.
2606 (emergency_buffer): Likewise.
2607 (emergency_used): Likewise.
2608 (dependents_buffer): Likewise.
2609 (dependents_used): Likewise.
2610 (class pool): New custom fixed-size arena, variable size object
2612 (emergency_pool): New global.
2613 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
2614 (__cxxabiv1::__cxa_free_exception): Likewise.
2615 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
2616 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
2618 2015-01-22 Tim Shen <timshen@google.com>
2621 * include/bits/regex.h (basic_regex<>::basic_regex,
2622 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
2624 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
2626 2015-01-22 Tim Shen <timshen@google.com>
2629 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2630 regex_traits<>::lookup_classname): Correctly narrow input chars.
2631 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
2633 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2635 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
2637 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2639 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
2641 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2643 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
2644 * doc/xml/manual/status_cxx2014.xml: Update status.
2645 * doc/html/manual/status.html: Regenerate.
2647 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2650 * include/experimental/optional (bad_optional_access): Add default
2652 * testsuite/experimental/optional/requirements.cc: Test for default
2655 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2657 * include/bits/stl_map.h (map::find<>, map::count<>,
2658 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
2659 member function templates to perform heterogeneous lookup.
2660 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
2661 multimap::lower_bound<>, multimap::upper_bound<>,
2662 multimap::equal_range<>): Likewise.
2663 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
2664 multiset::lower_bound<>, multiset::upper_bound<>,
2665 multiset::equal_range<>): Likewise.
2666 * include/bits/stl_set.h (set::find<>, set::count<>,
2667 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2668 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
2669 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
2670 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
2671 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
2672 * testsuite/23_containers/map/operations/2.cc: New.
2673 * testsuite/23_containers/multimap/operations/2.cc: New.
2674 * testsuite/23_containers/multiset/operations/2.cc: New.
2675 * testsuite/23_containers/set/operations/2.cc: New.
2677 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2679 * config/abi/pre/gnu.ver: Export new constructors.
2680 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
2681 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
2682 specializations and declare explicit instantiations.
2683 * include/bits/locale_classes.h (locale, collate_byname): Add string
2685 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
2687 * include/bits/locale_facets_nonio.h (time_get_byname,
2688 time_put_byname, moneypunct_byname, messages_byname): Likewise.
2689 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
2690 codecvt_byname<char32_t>): Define explicit instantiations.
2691 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
2692 Instantiate string constructors.
2693 (ctype_byname): Define string constructor.
2694 * testsuite/22_locale/codecvt_byname/1.cc: New.
2695 * testsuite/22_locale/collate_byname/1.cc: New.
2696 * testsuite/22_locale/ctype_byname/2.cc: New.
2697 * testsuite/22_locale/messages_byname/1.cc: New.
2698 * testsuite/22_locale/moneypunct_byname/1.cc: New.
2699 * testsuite/22_locale/numpunct_byname/1.cc: New.
2701 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2704 * include/std/atomic (atomic_init): Define.
2705 * testsuite/29_atomics/atomic/64658.cc: New.
2707 2015-01-19 Tim Shen <timshen@google.com>
2710 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2711 regex_traits<>::lookup_classname): Support forward iterators.
2712 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
2713 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
2715 2015-01-19 Tim Shen <timshen@google.com>
2719 * include/bits/regex.h (basic_regex<>::basic_regex,
2720 basic_regex<>::assign, basic_regex<>::imbue,
2721 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
2722 imbuing basic_regex; Make assign() transactional against exception.
2723 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
2724 __compile_nfa SFINAE.
2725 * include/std/regex: Adjust include order to avoid __compile_nfa
2726 forward declaration.
2727 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
2728 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
2730 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
2731 Jonathan Wakely <jwakely@redhat.com>
2733 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
2734 on overloads for arrays.
2735 (cbegin, cend, rbegin, rend, crbegin, crend): New.
2736 * testsuite/24_iterators/range_access_cpp14.cc: New.
2738 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2741 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
2742 end of the second range.
2743 * testsuite/25_algorithms/is_permutation/64646.cc: New.
2745 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2747 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
2748 * doc/html/manual/status.html: Regenerate.
2750 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
2752 * include/bits/atomic_futex.h: Use mutex and condition_variable when
2753 atomic int is not lock-free. Make member variables private.
2754 * src/c++11/futex.cc: Likewise.
2756 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
2758 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2761 * include/bits/atomic_futex.h: Use appropriate config macros for
2762 availability of std::mutex, std::condition and std::chrono.
2764 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2765 Jonathan Wakely <jwakely@redhat.com>
2767 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
2768 * doc/html/*: Regenerate.
2770 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2774 * include/bits/algorithmfwd.h (rotate): Return an iterator.
2775 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
2776 * testsuite/25_algorithms/rotate/dr488.cc: New.
2777 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
2778 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2780 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
2783 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2786 * include/bits/atomic_base.h: Remove atomic integral typedefs as
2787 synonyms for __atomic_base<int> etc.
2788 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
2789 likewise for all atomic integral types.
2790 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
2791 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2793 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2796 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
2797 and define one-element specialization.
2798 * testsuite/20_util/tuple/56785.cc: New.
2800 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
2802 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
2803 Remove unused header.
2804 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
2806 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2809 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2811 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
2812 * include/std/locale: Include new header.
2813 * include/Makefile.am: Add it.
2814 * include/Makefile.in: Regenerate.
2815 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
2816 * testsuite/22_locale/conversions/string/1.cc: New.
2817 * testsuite/22_locale/conversions/string/2.cc: New.
2818 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
2819 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
2822 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2824 * config/abi/pre/gnu.ver: Export new symbols.
2825 * include/Makefile.am: Add codecvt.
2826 * include/Makefile.in: Regenerate.
2827 * include/std/codecvt: New header.
2828 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
2829 __codecvt_utf8_utf16_base): Define specializations.
2830 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
2831 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
2832 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
2835 2015-01-16 Torvald Riegel <triegel@redhat.com>
2837 * src/c++11/futex.cc: New file.
2838 * include/bits/atomic_futex.h: New file.
2839 * include/std/future (__future_base::_State_baseV2): Use
2840 atomic_futex_unsigned instead of mutex+condvar.
2841 * src/c++11/futex.cc: Likewise.
2842 * include/Makefile.am: Add atomic_futex.h.
2843 * include/Makefile.in: Likewise.
2844 * src/c++11/Makefile.am: Add futex.cc.
2845 * src/c++11/Makefile.in: Likewise.
2847 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
2849 * acinclude.m4: Fix typo in comment.
2850 * configure: Regenerate.
2851 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
2852 codecvt<char16_t, char, mbstate_t>): Declare specializations.
2853 * include/bits/locale_facets.h: Reserve space for new specializations.
2854 * src/c++11/Makefile.am: Add codecvt.cc.
2855 * src/c++11/Makefile.in: Regenerate.
2856 * src/c++11/codecvt.cc: New.
2857 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
2859 * src/c++98/Makefile.in: Regenerate.
2860 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
2861 * src/c++98/localename.cc: Likewise.
2862 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
2863 * testsuite/22_locale/codecvt/utf8.cc: New.
2864 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
2865 specializations are installed in locale objects.
2867 2015-01-16 Torvald Riegel <triegel@redhat.com>
2869 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
2872 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
2875 * config/abi/pre/gnu.ver: Export fstream functions using new string.
2877 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
2880 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
2884 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
2886 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
2888 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
2889 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
2890 Multi Processing Runtime Library".
2892 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
2895 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
2896 is_assignable arguments.
2897 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
2900 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2902 * libsupc++/unwind-cxx.h: Revert previous commit.
2904 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2906 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
2908 2015-01-09 Tim Shen <timshen@google.com>
2911 * include/bits/regex.h (match_results<>::swap): Use std::swap
2913 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
2915 * testsuite/28_regex/match_results/swap.cc: New testcase.
2917 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
2920 * include/std/type_traits (has_trivial_default_constructor,
2921 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
2923 * testsuite/20_util/has_trivial_copy_assign/requirements/
2924 explicit_instantiation.cc: Use -Wno-deprecated.
2925 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
2927 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
2928 * testsuite/20_util/has_trivial_copy_constructor/requirements/
2929 explicit_instantiation.cc: Likewise.
2930 * testsuite/20_util/has_trivial_copy_constructor/requirements/
2931 typedefs.cc: Likewise.
2932 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
2933 * testsuite/20_util/has_trivial_default_constructor/requirements/
2934 explicit_instantiation.c: Likewise.
2935 * testsuite/20_util/has_trivial_default_constructor/requirements/
2936 typedefs.cc: Likewise.
2937 * testsuite/20_util/has_trivial_default_constructor/value.cc:
2939 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
2941 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
2942 * testsuite/util/testsuite_common_types.h: Likewise.
2944 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
2946 * include/bits/hashtable_policy.h: Use __bool_constant.
2948 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
2950 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
2951 * libsupc++/Makefile.in: Regenerate.
2953 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
2955 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
2957 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2959 Update copyright years.
2961 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
2964 * testsuite/18_support/exception_ptr/64241.cc: Use
2965 dg-require-atomic-builtins.
2967 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2969 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
2972 2015-01-02 Tim Shen <timshen@google.com>
2975 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
2976 iterator, since the original one shouldn't be mutated.
2978 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2981 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
2982 (string::insert): Likewise.
2983 (string::replace): Likewise.
2984 (wstring::erase): Likewise.
2985 (wstring::insert): Likewise.
2986 (wstring::replace): Likewise.
2987 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
2989 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2992 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
2994 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
2997 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
2998 Revert removal of dg-require-string-conversions.
2999 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
3001 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
3003 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
3005 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
3007 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
3009 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
3011 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
3013 * testsuite/21_strings/basic_string/numeric_conversions/char/
3014 stoull.cc: Likewise.
3015 * testsuite/21_strings/basic_string/numeric_conversions/char/
3016 to_string.cc: Likewise.
3018 Copyright (C) 2015 Free Software Foundation, Inc.
3020 Copying and distribution of this file, with or without modification,
3021 are permitted in any medium without royalty provided the copyright
3022 notice and this notice are preserved.