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