1 2013-11-19 Jonathan Wakely <jwakely.gcc@gmail.com>
3 * doc/xml/manual/status_cxx2014.xml: Create new table for TS statuses.
5 2013-11-18 Jonathan Wakely <jwakely.gcc@gmail.com>
7 * include/bits/shared_ptr_base.h (_Sp_counted_base<_S_single>): Use
9 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line number.
10 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
12 2013-11-16 Edward Smith-Rowland <3dw4rd@verizon.net>
14 Implement N3762 string_view: a non-owning reference to a string.
15 * include/Makefile.am: Add string_view and string_view.tcc.
16 * include/Makefile.in: Regenerate.
17 * include/experimental/string_view: Implement basic_string_view.
18 * include/experimental/string_view.tcc: Implement basic_string_view.
19 * testsuite/experimental/string_view/capacity/1.cc: New.
20 * testsuite/experimental/string_view/cons/char/1.cc: New.
21 * testsuite/experimental/string_view/cons/char/2.cc: New.
22 * testsuite/experimental/string_view/cons/char/3.cc: New.
23 * testsuite/experimental/string_view/cons/wchar_t/1.cc: New.
24 * testsuite/experimental/string_view/cons/wchar_t/2.cc: New.
25 * testsuite/experimental/string_view/cons/wchar_t/3.cc: New.
26 * testsuite/experimental/string_view/element_access/char/1.cc: New.
27 * testsuite/experimental/string_view/element_access/char/2.cc: New.
28 * testsuite/experimental/string_view/element_access/char/empty.cc: New.
29 * testsuite/experimental/string_view/element_access/char/front_back.cc:
31 * testsuite/experimental/string_view/element_access/wchar_t/1.cc: New.
32 * testsuite/experimental/string_view/element_access/wchar_t/2.cc: New.
33 * testsuite/experimental/string_view/element_access/wchar_t/empty.cc:
35 * testsuite/experimental/string_view/element_access/wchar_t/
37 * testsuite/experimental/string_view/include.cc: New.
38 * testsuite/experimental/string_view/inserters/char/1.cc: New.
39 * testsuite/experimental/string_view/inserters/char/2.cc: New.
40 * testsuite/experimental/string_view/inserters/char/3.cc: New.
41 * testsuite/experimental/string_view/inserters/pod/10081-out.cc: New.
42 * testsuite/experimental/string_view/inserters/wchar_t/1.cc: New.
43 * testsuite/experimental/string_view/inserters/wchar_t/2.cc: New.
44 * testsuite/experimental/string_view/inserters/wchar_t/3.cc: New.
45 * testsuite/experimental/string_view/literals/types.cc: New.
46 * testsuite/experimental/string_view/literals/values.cc: New.
47 * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
49 * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
51 * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
53 * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
55 * testsuite/experimental/string_view/operations/compare/char/1.cc: New.
56 * testsuite/experimental/string_view/operations/compare/char/13650.cc:
58 * testsuite/experimental/string_view/operations/compare/wchar_t/1.cc:
60 * testsuite/experimental/string_view/operations/compare/wchar_t/
62 * testsuite/experimental/string_view/operations/data/char/1.cc: New.
63 * testsuite/experimental/string_view/operations/data/wchar_t/1.cc: New.
64 * testsuite/experimental/string_view/operations/find/char/1.cc: New.
65 * testsuite/experimental/string_view/operations/find/char/2.cc: New.
66 * testsuite/experimental/string_view/operations/find/char/3.cc: New.
67 * testsuite/experimental/string_view/operations/find/char/4.cc: New.
68 * testsuite/experimental/string_view/operations/find/wchar_t/1.cc: New.
69 * testsuite/experimental/string_view/operations/find/wchar_t/2.cc: New.
70 * testsuite/experimental/string_view/operations/find/wchar_t/3.cc: New.
71 * testsuite/experimental/string_view/operations/find/wchar_t/4.cc: New.
72 * testsuite/experimental/string_view/operations/rfind/char/1.cc: New.
73 * testsuite/experimental/string_view/operations/rfind/char/2.cc: New.
74 * testsuite/experimental/string_view/operations/rfind/char/3.cc: New.
75 * testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc: New.
76 * testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc: New.
77 * testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc: New.
78 * testsuite/experimental/string_view/operations/substr/char/1.cc: New.
79 * testsuite/experimental/string_view/operations/substr/wchar_t/1.cc:
81 * testsuite/experimental/string_view/operators/char/2.cc: New.
82 * testsuite/experimental/string_view/operators/wchar_t/2.cc: New.
83 * testsuite/experimental/string_view/range_access/char/1.cc: New.
84 * testsuite/experimental/string_view/range_access/wchar_t/1.cc: New.
85 * testsuite/experimental/string_view/requirements/
86 explicit_instantiation/1.cc: New.
87 * testsuite/experimental/string_view/requirements/
88 explicit_instantiation/char/1.cc: New.
89 * testsuite/experimental/string_view/requirements/
90 explicit_instantiation/char16_t/1.cc: New.
91 * testsuite/experimental/string_view/requirements/
92 explicit_instantiation/char32_t/1.cc: New.
93 * testsuite/experimental/string_view/requirements/
94 explicit_instantiation/wchar_t/1.cc: New.
95 * testsuite/experimental/string_view/requirements/typedefs.cc: New.
96 * testsuite/experimental/string_view/types/1.cc: New.
98 2013-11-16 François Dumont <fdumont@gcc.gnu.org>
100 * testsuite/23_containers/unordered_set/55043.cc (equal): Add
101 missing & on rhs parameter.
103 2013-11-15 Jonathan Wakely <jwakely.gcc@gmail.com>
105 * include/bits/stl_bvector.h (vector<bool>::emplace_back()): LWG 2187:
107 (vector<bool>::emplace()): Likewise.
108 * testsuite/23_containers/vector/bool/emplace.cc: New.
110 2013-11-15 Ondřej Bílka <neleai@seznam.cz>
111 Jonathan Wakely <jwakely.gcc@gmail.com>
113 * doc/xml/manual/build_hacking.xml: Fix documentation typos.
114 * doc/xml/manual/configure.xml: Likewise.
115 * include/bits/atomic_base.h: Fix typos in comments.
116 * include/bits/random.h: Likewise.
117 * include/ext/cast.h: Likewise.
118 * libsupc++/cxxabi.h: Likewise.
119 * testsuite/ext/pb_ds/example/hash_illegal_resize.cc: Likewise.
120 * testsuite/tr1/5_numerical_facilities/special_functions/testcase.h:
122 * testsuite/util/exception/safety.h: Likewise.
123 * testsuite/util/testsuite_containers.h: Likewise.
124 * testsuite/util/testsuite_hooks.cc: Likewise.
126 2013-11-15 Jonathan Wakely <jwakely.gcc@gmail.com>
128 * include/bits/stl_map.h (map): Implement C++11 allocator-aware
129 container requirements.
130 * include/bits/stl_multimap.h (multimap): Likewise.
131 * include/bits/stl_multiset.h (multiset): Likewise.
132 * include/bits/stl_set.h (set): Likewise.
133 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_buffer and
134 add accessors for value.
135 (_Rb_tree_iterator, _Rb_tree_const_iterator): Use _Rb_tree_node
137 (_Rb_tree): Use allocator_traits and implement support for sets and
138 maps the be allocator-aware.
139 * include/bits/forward_list.h (_Fwd_list_base::_M_create_node): Do
140 not zero-initialize storage buffer.
141 * include/bits/hashtable_policy.h (_Hashtable_alloc::_M_allocate_node):
143 * include/bits/stl_vector.h (vector(vector&&, const allocator_type&)):
144 Add conditional noexcept specification.
145 * doc/xml/manual/status_cxx2011.xml: Update status of containers.
146 * testsuite/util/testsuite_allocator.h: Re-indent.
147 * testsuite/23_containers/forward_list/allocator/copy.cc: Test
148 allocator-extended copy constructor.
149 * testsuite/23_containers/unordered_map/allocator/copy.cc: Likewise.
150 * testsuite/23_containers/unordered_multimap/allocator/copy.cc:
152 * testsuite/23_containers/unordered_multiset/allocator/copy.cc:
154 * testsuite/23_containers/unordered_set/allocator/copy.cc: Likewise.
155 * testsuite/23_containers/vector/allocator/copy.cc: Likewise.
156 * testsuite/23_containers/forward_list/allocator/move.cc: New.
157 * testsuite/23_containers/unordered_map/allocator/move.cc: New.
158 * testsuite/23_containers/unordered_multimap/allocator/move.cc: New.
159 * testsuite/23_containers/unordered_multiset/allocator/move.cc: New.
160 * testsuite/23_containers/unordered_set/allocator/move.cc: New.
161 * testsuite/23_containers/vector/allocator/move.cc: New.
162 * testsuite/23_containers/map/allocator/copy.cc: New.
163 * testsuite/23_containers/map/allocator/copy_assign.cc: New.
164 * testsuite/23_containers/map/allocator/minimal.cc: New.
165 * testsuite/23_containers/map/allocator/move.cc: New.
166 * testsuite/23_containers/map/allocator/move_assign.cc: New.
167 * testsuite/23_containers/map/allocator/noexcept.cc: New.
168 * testsuite/23_containers/map/allocator/swap.cc: New.
169 * testsuite/23_containers/multimap/allocator/copy.cc: New.
170 * testsuite/23_containers/multimap/allocator/copy_assign.cc: New.
171 * testsuite/23_containers/multimap/allocator/minimal.cc: New.
172 * testsuite/23_containers/multimap/allocator/move.cc: New.
173 * testsuite/23_containers/multimap/allocator/move_assign.cc: New.
174 * testsuite/23_containers/multimap/allocator/noexcept.cc: New.
175 * testsuite/23_containers/multimap/allocator/swap.cc: New.
176 * testsuite/23_containers/multiset/allocator/copy.cc: New.
177 * testsuite/23_containers/multiset/allocator/copy_assign.cc: New.
178 * testsuite/23_containers/multiset/allocator/minimal.cc: New.
179 * testsuite/23_containers/multiset/allocator/move.cc: New.
180 * testsuite/23_containers/multiset/allocator/move_assign.cc: New.
181 * testsuite/23_containers/multiset/allocator/noexcept.cc: New.
182 * testsuite/23_containers/multiset/allocator/swap.cc: New.
183 * testsuite/23_containers/set/allocator/copy.cc: New.
184 * testsuite/23_containers/set/allocator/copy_assign.cc: New.
185 * testsuite/23_containers/set/allocator/minimal.cc: New.
186 * testsuite/23_containers/set/allocator/move.cc: New.
187 * testsuite/23_containers/set/allocator/move_assign.cc: New.
188 * testsuite/23_containers/set/allocator/noexcept.cc: New.
189 * testsuite/23_containers/set/allocator/swap.cc: New.
190 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
191 Adjust dg-error line number.
192 * testsuite/23_containers/vector/requirements/dr438/
193 constructor_1_neg.cc: Likewise.
194 * testsuite/23_containers/vector/requirements/dr438/
195 constructor_2_neg.cc: Likewise.
196 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
199 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
201 * scripts/extract_symvers.in: Ignore <localentry: > fields
202 in readelf --symbols output.
204 2013-11-14 Jonathan Wakely <jwakely.gcc@gmail.com>
206 * include/bits/alloc_traits.h (__allow_copy_cons): Remove.
207 (__check_copy_constructible): Likewise.
208 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
209 Do not derive from __check_copy_constructible.
210 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
212 * testsuite/23_containers/unordered_map/55043.cc: It is no longer
213 necessary for is_copy_constructible to be correct to use nested
214 unordered containers.
215 * testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
216 * testsuite/23_containers/unordered_set/55043.cc: Likewise.
217 * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
219 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
222 * include/ext/pod_char_traits.h: Uglify V, I and S.
224 2013-11-11 Jonathan Wakely <jwakely.gcc@gmail.com>
227 * include/std/mutex (__timed_mutex_impl::__clock_t): Use
228 high_resolution_clock for absolute timeouts, because
229 pthread_mutex_timedlock uses CLOCK_REALTIME not CLOCK_MONOTONIC.
230 (__timed_mutex_impl::_M_try_lock_for): Use steady_clock for relative
231 timeouts as per [thread.req.timing].
232 (__timed_mutex_impl::_M_try_lock_until<Clock,Duration>): Convert to
233 __clock_t time point instead of using _M_try_lock_for.
235 2013-11-09 Jonathan Wakely <jwakely.gcc@gmail.com>
238 * include/bits/stl_algobase.h (__copy_move::__copy_m): Use assertion
239 to prevent using memmove() on non-assignable types.
240 (__copy_move_backward::__copy_move_b): Likewise.
241 * include/bits/stl_uninitialized.h (uninitialized_copy
242 uninitialized_copy_n, uninitialized_fill, uninitialized_fill_n,
243 __uninitialized_default, __uninitialized_default_n): Check for
244 assignable as well as trivial.
245 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
247 * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
249 * testsuite/20_util/specialized_algorithms/uninitialized_fill/
251 * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/
253 * testsuite/25_algorithms/copy/58982.cc: New.
254 * testsuite/25_algorithms/copy_n/58982.cc: New.
256 2013-11-08 François Dumont <fdumont@gcc.gnu.org>
258 * include/debug/safe_iterator.h (_BeforeBeginHelper<>::_S_Is):
259 Take only a const safe iterator reference.
260 (_BeforeBeginHelper<>::_S_Is_beginnest): Likewise.
261 (__get_distance): Take only one type of iterator.
262 (_Safe_iterator<>::_M_valid_range<>): Not template anymore.
263 (_Safe_iterator<>::_M_get_sequence()): Return pointer to const
264 sequence from a const_iterator and a pointer to sequence from an
266 * include/debug/safe_iterator.tcc: Adapt.
267 * include/debug/safe_local_iterator.h
268 (_Safe_local_iterator<>::_M_valid_range<>): Not template anymore.
269 (_Safe_local_iterator<>::_M_get_sequence()): Return pointer to
270 const sequence from a const_iterator and a pointer to sequence
272 * include/debug/safe_local_iterator.tcc: Adapt.
273 * include/debug/forward_list
274 (_BeforeBeginHelper<std::__debug::forward_list<>>): Adapt.
276 2013-11-08 Jonathan Wakely <jwakely.gcc@gmail.com>
278 * include/bits/regex_automaton.h (__detail::_State): Split
279 non-dependent parts into new _State_base.
280 (__detail::_NFA): Likewise for _NFA_base. Use std::move() to avoid
281 copies when inserting _MatcherT and _StateT objects.
282 * include/bits/regex_automaton.tcc: Move member definitions to base
283 class. Qualify dependent names.
284 * include/bits/regex_compiler.h (__detail::_Compiler::_M_get_nfa): Make
285 non-const and use std::move to avoid copying.
286 * include/bits/regex_compiler.tcc: Likewise.
287 * include/bits/regex_executor.h (__detail::_Executor::_M_is_word): Use
288 array, so past-the-end iterator is valid.
290 * include/bits/regex_automaton.h (__detail::_State, __detail::_NFA,
291 __detail::_StateSeq): Remove redundant _CharT template parameters.
292 * include/bits/regex_automaton.tcc: Likewise.
293 * include/bits/regex_compiler.h (__detail::_Compiler): Likewise.
294 (__compile_nfa): Add object generator for _Compiler.
295 * include/bits/regex_compiler.tcc: Remove _CharT template parameters.
296 * include/bits/regex_executor.h: Likewise.
297 * include/bits/regex_executor.tcc: Likewise.
298 * include/bits/regex.h (basic_regex): Assert char_type matches. Use
299 __compile_nfa object generator. Remove _CharT template parameter.
301 * include/bits/regex_compiler.h (__detail::_AnyMatcher,
302 __detail::_CharMatcher, __detail::_BracketMatcher): Remove redundant
303 _CharT template parameters.
304 * include/bits/regex_compiler.tcc: Likewise.
306 * include/bits/regex_compiler.h (__detail::__compile_nfa): Overload
307 so that std::basic_string<C> and std::vector<C> iterators dispatch to
308 the const C* compiler.
310 * include/bits/regex_compiler.h (__detail::__has_contiguous_iter):
311 vector<bool> storage is not contiguous.
313 2013-11-06 Jonathan Wakely <jwakely.gcc@gmail.com>
315 * include/bits/regex_automaton.h (_S_opcode_word_boundry): Rename to
316 _S_opcode_word_boundary.
317 * include/bits/regex_automaton.tcc: Likewise.
318 * include/bits/regex_executor.h (__detail::_Executor::_M_word_boundry):
319 Rename to _M_word_boundary.
320 * include/bits/regex_executor.tcc: Likewise.
322 2013-11-05 Jonathan Wakely <jwakely.gcc@gmail.com>
324 N3655 C++1y TransformationTraits Redux
325 * include/std/type_traits (remove_const_t, remove_volatile_t,
326 remove_cv_t, add_const_t, add_volatile_t, add_cv_t, remove_reference_t,
327 add_lvalue_reference_t, add_rvalue_reference_t, make_signed_t,
328 make_unsigned_t, remove_extent_t, remove_all_extents_t,
329 remove_pointer_t, add_pointer_t, aligned_storage_t, decay_t,
330 enable_if_t, conditional_t, common_type_t, underlying_type_t,
331 result_of_t): Define.
332 * doc/xml/manual/status_cxx2014.xml: Update.
333 * testsuite/20_util/add_lvalue_reference/requirements/typedefs-3.cc:
335 * testsuite/20_util/add_rvalue_reference/requirements/typedefs-3.cc:
337 * testsuite/20_util/common_type/requirements/typedefs-3.cc: New.
338 * testsuite/20_util/conditional/requirements/typedefs-2.cc: New.
339 * testsuite/20_util/decay/requirements/typedefs-2.cc: New.
340 * testsuite/20_util/enable_if/requirements/typedefs-2.cc: New.
341 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
342 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
343 * testsuite/20_util/remove_reference/requirements/typedefs.cc: New.
344 * testsuite/20_util/result_of/requirements/typedefs.cc: New.
345 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New.
346 * testsuite/20_util/common_type/requirements/typedefs-2.cc: Change to
348 * testsuite/20_util/decay/requirements/typedefs.cc: Likewise.
349 * testsuite/20_util/make_signed/requirements/typedefs-1.cc: Likewise.
350 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
352 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
354 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
357 2013-11-05 Jonathan Wakely <jwakely.gcc@gmail.com>
359 * doc/xml/manual/status_cxx2011.xml: Document aligned_union as
362 2013-11-05 Jonathan Wakely <jwakely.gcc@gmail.com>
363 Paolo Carlini <paolo.carlini@oracle.com>
365 * include/experimental/optional: Use __and_<> and __not_<> in
366 conditions. Style fixes.
367 (__constexpr_addressof, swap): Make inline.
368 * testsuite/experimental/optional/cons/copy.cc: Adjust constants for
370 * testsuite/experimental/optional/cons/move.cc: Likewise.
371 * testsuite/experimental/optional/cons/value.cc: Likewise.
372 * testsuite/experimental/optional/constexpr/cons/value.cc: Likewise.
374 2013-11-01 Michael Brune <lucdanton@free.fr>
376 * include/bits/enable_special_members.h: New.
377 * include/experimental/optional: New.
378 * include/Makefile.am: Handle include/experimental.
379 * include/Makefile.in: Regenerate.
380 * testsuite/libstdc++-dg/conformance.exp: Run tests from
381 testsuite/experimental sub-directory.
382 * testsuite/experimental/optional/assignment/1.cc: New.
383 * testsuite/experimental/optional/assignment/2.cc: New.
384 * testsuite/experimental/optional/assignment/3.cc: New.
385 * testsuite/experimental/optional/assignment/4.cc: New.
386 * testsuite/experimental/optional/assignment/5.cc: New.
387 * testsuite/experimental/optional/assignment/6.cc: New.
388 * testsuite/experimental/optional/cons/copy.cc: New.
389 * testsuite/experimental/optional/cons/default.cc: New.
390 * testsuite/experimental/optional/cons/move.cc: New.
391 * testsuite/experimental/optional/cons/value.cc: New.
392 * testsuite/experimental/optional/constexpr/cons/default.cc: New.
393 * testsuite/experimental/optional/constexpr/cons/value.cc: New.
394 * testsuite/experimental/optional/constexpr/in_place.cc: New.
395 * testsuite/experimental/optional/constexpr/make_optional.cc: New.
396 * testsuite/experimental/optional/constexpr/nullopt.cc: New.
397 * testsuite/experimental/optional/constexpr/observers/1.cc: New.
398 * testsuite/experimental/optional/constexpr/observers/2.cc: New.
399 * testsuite/experimental/optional/constexpr/observers/3.cc: New.
400 * testsuite/experimental/optional/constexpr/observers/4.cc: New.
401 * testsuite/experimental/optional/constexpr/observers/5.cc: New.
402 * testsuite/experimental/optional/constexpr/relops/1.cc: New.
403 * testsuite/experimental/optional/constexpr/relops/2.cc: New.
404 * testsuite/experimental/optional/constexpr/relops/3.cc: New.
405 * testsuite/experimental/optional/constexpr/relops/4.cc: New.
406 * testsuite/experimental/optional/constexpr/relops/5.cc: New.
407 * testsuite/experimental/optional/constexpr/relops/6.cc: New.
408 * testsuite/experimental/optional/in_place.cc: New.
409 * testsuite/experimental/optional/make_optional.cc: New.
410 * testsuite/experimental/optional/nullopt.cc: New.
411 * testsuite/experimental/optional/observers/1.cc: New.
412 * testsuite/experimental/optional/observers/2.cc: New.
413 * testsuite/experimental/optional/observers/3.cc: New.
414 * testsuite/experimental/optional/observers/4.cc: New.
415 * testsuite/experimental/optional/observers/5.cc: New.
416 * testsuite/experimental/optional/relops/1.cc: New.
417 * testsuite/experimental/optional/relops/2.cc: New.
418 * testsuite/experimental/optional/relops/3.cc: New.
419 * testsuite/experimental/optional/relops/4.cc: New.
420 * testsuite/experimental/optional/relops/5.cc: New.
421 * testsuite/experimental/optional/relops/6.cc: New.
422 * testsuite/experimental/optional/requirements.cc: New.
423 * testsuite/experimental/optional/swap/1.cc: New.
425 2013-11-01 Jonathan Wakely <jwakely.gcc@gmail.com>
427 * include/bits/stl_function.h (logical_not<void>): Add noexcept.
429 2013-11-01 Paolo Carlini <paolo.carlini@oracle.com>
432 * include/c_global/cstdio: Undef getchar.
434 2013-11-01 Jonathan Wakely <jwakely.gcc@gmail.com>
436 N3421 C++1y Transparent functors
437 * include/bits/stl_function.h (plus<void>, minus<void>,
438 multiplies<void>, divides<void>, modulus<void>, negate<void>,
439 equal_to<void>, not_equal_to<void>, greater<void>, less<void>,
440 greater_equal<void>, less_equal<void>, logical_and<void>,
441 logical_or<void>, logical_not<void>, bit_and<void>, bit_or<void>,
442 bit_xor<void>, bit_not<void>): Define.
443 * doc/xml/manual/status_cxx2014.xml: Update.
444 * testsuite/20_util/function_objects/comparisons_void.cc: New.
446 2013-10-31 Jonathan Wakely <jwakely.gcc@gmail.com>
448 * include/std/tuple (_Index_tuple, _Build_index_tuple): Move to
450 * include/std/utility (integer_sequence, make_integer_sequence,
451 index_sequence, make_index_sequence, index_sequence_for): Define.
452 * doc/xml/manual/status_cxx2014.xml: Update.
453 * testsuite/20_util/integer_sequence/intseq.cc: New.
454 * testsuite/20_util/integer_sequence/requirements/typedefs.cc: New.
456 2013-10-31 Steve Ellcey <sellcey@mips.com>
458 * configure.ac: Add header checks for fenv.h and complex.h.
459 * configure: Regenerate.
461 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
463 Implement C++14 digit separators.
464 * include/include/bits/parse_numbers.h: Change struct _Digit<_Base, '`'>
465 to struct _Digit<_Base, '\''>.
467 2013-10-31 Paolo Carlini <paolo.carlini@oracle.com>
469 * testsuite/20_util/default_delete/48631_neg.cc: Tweak dg-prune.
471 2013-10-30 Jonathan Wakely <jwakely.gcc@gmail.com>
473 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: Fix
474 and enable VERIFY tests.
476 2013-10-30 Jonathan Wakely <jwakely.gcc@gmail.com>
478 * include/bits/shared_ptr (__shared_ptr): Assert non-void pointer.
479 * include/bits/shared_ptr (default_delete): Likewise.
480 * testsuite/20_util/shared_ptr/cons/58839.cc: Do not use
481 default_delete<void>.
482 * testsuite/20_util/shared_ptr/cons/void_neg.cc: New.
483 * testsuite/20_util/default_delete/void_neg.cc: New.
484 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
485 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
487 2013-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
490 * include/bits/shared_ptr_base.h
491 (__shared_ptr<T>::__shared_ptr(unique_ptr<U,D>&&)): Only use addressof
492 when unique_ptr<U,D>::pointer is not a built-in pointer type.
493 * testsuite/20_util/shared_ptr/cons/58839.cc: New.
494 * testsuite/20_util/enable_shared_from_this/members/assign.cc: New.
495 * testsuite/20_util/enable_shared_from_this/members/unique_ptr.cc: New.
497 2013-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
499 * include/bits/hashtable.cc (__access_protected_ctor): Define and use
500 new type instead of _Hashtable_ebo_helper.
501 * testsuite/23_containers/unordered_set/
502 not_default_constructible_hash_neg.cc: Adjust line number.
504 2013-10-28 Tim Shen <timshen91@gmail.com>
506 * regex_executor.tcc: Add comments.
508 2013-10-26 Tim Shen <timshen91@gmail.com>
510 * include/bits/regex.h: Remove unnecessary friends.
511 * include/bits/regex.tcc (__regex_algo_impl<>): Move __get_executor
513 * include/bits/regex_executor.h: Remove _DFSExecutor and _BFSExecutor;
514 they are merged into _Executor. Eliminate quantifier tracking part, so
516 * include/bits/regex_executor.tcc: Implement _Executor.
517 * testsuite/28_regex/algorithms/regex_match/ecma/char/ungreedy.cc: New.
518 * testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: Adjust
520 * testsuite/performance/28_regex/split.h: New.
521 * testsuite/performance/28_regex/split_bfs.cc: New.
522 * testsuite/util/testsuite_regex.h: Adjust behavior of two-executors
523 agreement judger: do not compare match_results when executor return
526 2013-10-25 François Dumont <fdumont@gcc.gnu.org>
528 * include/debug/formatter.h (__check_singular): Add const on
530 * include/debug/functions.h (__check_singular): Likewise.
531 (__check_singular(const _Safe_iterator<_Ite, _Seq>&)): Delete.
532 (__check_dereferenceable(const _Ite&)): Add const on iterator
534 (__check_dereferenceable(const _Safe_local_iterator<>&)): New.
535 * include/debug/safe_iterator.h (__check_singular_aux): Review
537 * testsuite/23_containers/vector/debug/debug_functions.cc: New.
538 * testsuite/23_containers/unordered_set/debug/debug_functions.cc:
541 2013-10-23 Chris Jefferson <chris@bubblescope.net>
542 Paolo Carlini <paolo.carlini@oracle.com>
544 * testsuite/util/testsuite_containergen.h: New.
545 * testsuite/util/testsuite_iterators.h (test_container<>::val): Add.
546 * testsuite/25_algorithms/nth_element/random_test.cc: New, use the
548 * testsuite/25_algorithms/partial_sort/random_test.cc: Likewise.
549 * testsuite/25_algorithms/partial_sort_copy/random_test.cc: Likewise.
550 * testsuite/25_algorithms/sort/random_test.cc: Likewise.
552 2013-10-23 Jason Merrill <jason@redhat.com>
554 * include/bits/hashtable.h (_Hashtable): Force EBO for _Hash_code_base.
556 2013-10-23 Paolo Carlini <paolo.carlini@oracle.com>
559 * include/std/chrono (minutes, hours): Change typedefs to uniformly
561 * testsuite/20_util/duration/arithmetic/58850.cc: New.
563 2013-10-23 Paolo Carlini <paolo.carlini@oracle.com>
565 * testsuite/decimal/pr58815.cc: Fix thinko.
567 2013-10-23 Paolo Carlini <paolo.carlini@oracle.com>
570 * include/decimal/decimal (decimal32::operator long long(),
571 decimal64::operator long long(), decimal128::operator long long()):
572 Add in c++11 mode per n3407.
573 * testsuite/decimal/pr58815.cc: New.
575 2013-10-22 Edward Smith-Rowland <3dw4rd@verizon.net>
577 * include/bits/basic_string.h (operator""s): Remove space between quotes
578 and literal identifier.
579 * include/std/chrono (operator""h, operator""min, operator""s,
580 operator""ms, operator""us, operator""ns): Ditto.
582 2013-10-22 Ed Smith-Rowland <3dw4rd@verizon.net>
584 Implement N3779 - User-defined Literals for std::complex,
585 part 2 of UDL for Standard Library Types
586 * include/std/complex: Add complex literal operators.
587 * testsuite/26_numerics/complex/literals/types.cc: New.
588 * testsuite/26_numerics/complex/literals/values.cc: New.
590 2013-10-21 Edward Smith-Rowland <3dw4rd@verizon.net>
594 * include/tr2/dynamic_bitset
595 (__dynamic_bitset_base<_WordT, _Alloc>::_M_are_all_aux,
596 __dynamic_bitset_base<_WordT, _Alloc>::_M_do_count):
597 Use __builtin_popcountll() instead of __builtin_popcountl().
598 * include/tr2/dynamic_bitset.tcc
599 (__dynamic_bitset_base<_WordT, _Alloc>::_M_do_find_first,
600 __dynamic_bitset_base<_WordT, _Alloc>::_M_do_find_next):
601 Use __builtin_ctzll() instead of __builtin_ctzl().
603 2013-10-20 Tim Shen <timshen91@gmail.com>
605 * include/bits/regex.h: Remove virtual class _Automaton.
606 * include/bits/regex_automaton.h: Likewise.
607 * include/bits/regex.tcc: Adjust comment for policy changing.
608 * include/bits/regex_executor.h: Update comments of complexity.
609 * include/bits/regex_executor.tcc: Adjust executor choosing
610 policy. Now DFS executor is the default one.
611 * testsuite/util/testsuite_regex.h (regex_match_debug,
612 regex_search_debug): Adjust for policy changing.
614 2013-10-20 Chris Jefferson <chris@bubblescope.net>
615 Paolo Carlini <paolo.carlini@oracle.com>
618 * include/bits/stl_algo.h (__unguarded_partition_pivot): Change
619 __last - 2 to __last - 1.
620 * testsuite/25_algorithms/nth_element/58800.cc: New
622 2013-10-18 Edward Smith-Rowland <3dw4rd@verizon.net>
625 * include/tr2/dynamic_bitset (_M_resize, resize): Use input value
626 to set bits; (_M_do_left_shift, _M_do_right_shift, _M_do_to_ulong,
627 _M_do_to_ullong, _M_do_find_first, _M_do_find_next, _M_copy_from_ptr,
628 operator>>): Move long methods outline to...
629 * include/tr2/dynamic_bitset.tcc: New.
630 * include/Makefile.am: Add dynamic_bitset.tcc.
631 * include/Makefile.in: Add dynamic_bitset.tcc.
632 * testsuite/tr2/dynamic_bitset/pr58729.cc: New.
634 2013-10-18 Tim Shen <timshen91@gmail.com>
636 * include/bits/regex_scanner.tcc: (_Scanner<>::_M_scan_normal,
637 _Scanner<>::_M_eat_escape_ecma, _Scanner<>::_M_eat_escape_posix,
638 _Scanner<>::_M_eat_escape_awk): Narrow character before finding in maps.
639 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/cjk_match.cc:
642 2013-10-17 Tim Shen <timshen91@gmail.com>
644 * include/bits/regex.h (regex_token_iterator<>::regex_token_iterator):
645 Fix initialization orders in initialization list and add explicit braces
646 for potentially ambiguous(actually not) `else` branch to eliminate
648 * include/bits/regex_automaton.h (_NFA<>::_NFA): Likewise.
649 * include/bits/regex_compiler.h (_CharMatcher<>::_CharMatcher,
650 _BracketMatcher<>::_BracketMatcher): Likewise.
651 * include/bits/regex_compiler.tcc (_Compiler<>::_Compiler,
652 _Compiler<>::_M_atom): Likewise.
653 * include/bits/regex_executor.h (_Executor<>::_Executor): Likewise.
654 * include/bits/regex_executor.tcc (_DFSExecutor<>::_M_dfs,
655 _Executor<>::_M_word_boundry): Likewise.
656 * include/bits/regex_scanner.tcc (_Scanner<>::_Scanner,
657 _Scanner<>::_M_eat_class): Likewise.
658 * include/bits/regex.tcc (__regex_algo_impl<>,
659 regex_iterator<>::operator++): Likewise, and remove unused typedef.
661 2013-10-16 Tim Shen <timshen91@gmail.com>
663 * include/bits/regex.h (regex_token_iterator<>::regex_token_iterator):
664 Add initialization for _M_has_m1.
665 * include/bits/regex.tcc (regex_token_iterator<>::operator=): Add return
668 2013-10-15 Diego Novillo <dnovillo@google.com>
670 * testsuite/20_util/exchange/1.cc: Add missing function
673 2013-10-15 Tim Shen <timshen91@gmail.com>
676 * include/bits/regex_automaton.h (_Automaton<>::~_Automaton): Fix memory
678 * include/bits/regex_executor.h (_Executor<>::~_Executor): Likewise.
680 2013-10-11 H.J. Lu <hongjiu.lu@intel.com>
682 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
684 2013-10-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
686 * testsuite/29_atomics/atomic/cons/49445.cc
687 (dg-require-atomic-builtins): Add.
689 2013-10-09 Jonathan Wakely <jwakely.gcc@gmail.com>
691 * testsuite/20_util/shared_ptr/cons/58659.cc: Use VERIFY instead of
694 2013-10-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
696 * testsuite/20_util/shared_ptr/cons/58659.cc: Use __builtin_abort().
698 2013-10-08 Jonathan Wakely <jwakely.gcc@gmail.com>
700 * testsuite/*: Remove stray semi-colons after function definitions.
702 2013-10-08 Jonathan Wakely <jwakely.gcc@gmail.com>
705 * include/bits/shared_ptr_base.h (__shared_count::__shared_count(P,D)):
706 Delegate to constructor taking allocator.
707 (__shared_count::_S_create_from_up): Inline into ...
708 (__shared_count::__shared_count(unique_ptr<Y,D>&&): Here. Use
709 std::conditional instead of constrained overloads. Allocate memory
710 using the allocator type that will be used for deallocation.
711 * testsuite/20_util/shared_ptr/cons/58659.cc: New.
712 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust.
714 2013-10-08 Tim Shen <timshen91@gmail.com>
716 * include/bits/regex_executor.h: Add _TodoList class.
717 * include/bits/regex_executor.tcc (_BFSExecutor<>::_M_main): Add
718 _M_match_stack and _M_stack to make everything faster. Break if
719 _M_stack is empty, to reduce unnecessary idling.
720 * testsuite/performance/28_regex/split.cc: New.
722 2013-10-06 Tim Shen <timshen91@gmail.com>
724 * include/bits/regex.h: (regex_token_iterator<>::regex_token_iterator):
726 * include/bits/regex.tcc: (regex_replace<>): Remove default parameter.
728 2013-10-06 Tim Shen <timshen91@gmail.com>
730 * include/bits/regex.h (__regex_algo_impl<>, regex_match<>,
731 regex_search<>): New abstract function for regex_match and regex_search.
732 * include/bits/regex.tcc (__regex_algo_impl<>): Implement.
733 * include/bits/regex_executor.h
734 (_Executor<>::_M_lookahead,
735 _DFSExecutor<>::_M_clone,
736 _BFSExecutor<>::_M_clone): Let _M_clone to choose which executor to
738 * include/bits/regex_executor.tcc (__get_executor<>): Update the
739 definition to support __policy.
740 * testsuite/28_regex/algorithms/regex_match/awk/cstring_01.cc: Use
742 * testsuite/28_regex/algorithms/regex_match/basic/empty_range.cc: Same.
743 * testsuite/28_regex/algorithms/regex_match/basic/string_01.cc: Same.
744 * testsuite/28_regex/algorithms/regex_match/basic/string_range_00_03.cc:
746 * testsuite/28_regex/algorithms/regex_match/basic/string_range_01_03.cc:
748 * testsuite/28_regex/algorithms/regex_match/basic/string_range_02_03.cc:
750 * testsuite/28_regex/algorithms/regex_match/ecma/char/53622.cc: Same.
751 * testsuite/28_regex/algorithms/regex_match/ecma/char/57173.cc: Same.
752 * testsuite/28_regex/algorithms/regex_match/ecma/char/58576.cc: Same.
753 * testsuite/28_regex/algorithms/regex_match/ecma/char/anymatcher.cc:
755 * testsuite/28_regex/algorithms/regex_match/ecma/char/backref.cc: Same.
756 * testsuite/28_regex/algorithms/regex_match/ecma/char/empty_range.cc:
758 * testsuite/28_regex/algorithms/regex_match/ecma/char/emptygroup.cc:
760 * testsuite/28_regex/algorithms/regex_match/ecma/char/hex.cc: Same.
761 * testsuite/28_regex/algorithms/regex_match/ecma/char/quoted_char.cc:
763 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/anymatcher.cc:
765 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/hex.cc: Same.
766 * testsuite/28_regex/algorithms/regex_match/extended/
767 string_bracket_01.cc: Same.
768 * testsuite/28_regex/algorithms/regex_match/extended/cstring_plus.cc:
770 * testsuite/28_regex/algorithms/regex_match/extended/
771 string_questionmark.cc: Same.
772 * testsuite/28_regex/algorithms/regex_match/extended/cstring_range.cc:
774 * testsuite/28_regex/algorithms/regex_match/extended/string_any.cc:
776 * testsuite/28_regex/algorithms/regex_match/extended/
777 string_dispatch_01.cc: Same.
778 * testsuite/28_regex/algorithms/regex_match/extended/
779 string_range_00_03.cc: Same.
780 * testsuite/28_regex/algorithms/regex_match/extended/
781 string_range_01_03.cc: Same.
782 * testsuite/28_regex/algorithms/regex_match/extended/
783 string_range_02_03.cc: Same.
784 * testsuite/28_regex/algorithms/regex_match/extended/wstring_locale.cc:
786 * testsuite/28_regex/algorithms/regex_search/basic/string_01.cc: Same.
787 * testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc: Same.
788 * testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: Same.
789 * testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: Same.
790 * testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc: Same.
791 * testsuite/28_regex/match_results/format.cc: Same.
792 * testsuite/util/testsuite_regex.h
793 (regex_match_debug<>, regex_search_debug<>): Implement.
795 2013-10-06 Oleg Endo <olegendo@gcc.gnu.org>
796 Paolo Carlini <paolo.carlini@oracle.com>
799 * include/c_global/cmath (signbit): Use __builtin_signbitf and
802 2013-10-03 Tim Shen <timshen91@gmail.com>
804 * include/bits/regex_executor.tcc (_DFSExecutor<>::_M_dfs): Fix wrong
805 backup variable initialization.
807 2013-10-03 John Woolverton <jdwoolverton@gmail.com>
810 * include/std/vector: Fix garbled line in HP Copyright.
812 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
814 * libsupc++/del_op.cc (operator delete): Don't test for 0 before free.
815 * libsupc++/del_opnt.cc (free): Only declare if freestanding.
816 (operator delete): Qualify free with std::.
818 2013-10-02 Jonathan Wakely <jwakely.gcc@gmail.com>
819 Daniel Krugler <daniel.kruegler@gmail.com>
822 * include/std/functional (function::_CheckResult): Move to namespace
823 scope and rename to __check_func_return_type.
824 * testsuite/20_util/function/58569.cc: New.
826 2013-10-02 Jonathan Wakely <jwakely.gcc@gmail.com>
829 * include/bits/shared_ptr_base.h
830 (_Sp_counted_ptr_inplace::_M_get_deleter()): Cast away cv-quals.
831 * testsuite/20_util/shared_ptr/creation/58594.cc: New.
833 2013-10-02 Tim Shen <timshen91@gmail.com>
835 * include/bits/regex_compiler.h
836 (_BracketMatcher<>::_M_add_equivalence_class): Implement it correctly.
837 * include/bits/regex_compiler.tcc (_BracketMatcher<>::operator()):
838 Add _M_equiv_set support.
839 * testsuite/28_regex/algorithms/regex_match/extended/
840 cstring_bracket_01.cc: Add new "[[=a=]]" testcase.
842 2013-10-01 Tim Shen <timshen91@gmail.com>
844 * doc/xml/manual/status_cxx2011.xml: Change "is not implemented" to
845 "is not correctly implemented".
847 2013-10-01 Tim Shen <timshen91@gmail.com>
849 * doc/xml/manual/status_cxx2011.xml: Update regex status.
850 * include/bits/regex.h (match_results<>::begin,
851 match_results<>::cbegin, match_results<>::end, match_results<>::cend):
852 [28.10.3.13], [28.10.3.14] Always iterate the range [0, size()-2).
854 2013-10-01 François Dumont <fdumont@gcc.gnu.org>
856 * include/parallel/algobase.h (mismatch, equal): Provide parallel
857 version for N3671 overloads.
859 2013-10-01 Paul Pluzhnikov <ppluzhnikov@google.com>
861 * src/c++11/snprintf_lite.cc: Add missing
862 _GLIBCXX_{BEGIN,END}_NAMESPACE_VERSION
864 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
866 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Also check for
867 _Unwind_SjLj_Register when deciding if to set enable_sjlj_exceptions.
868 * configure: Regenerate.
870 2013-10-01 Tim Shen <timshen91@gmail.com>
873 * include/bits/regex_automaton.tcc (_NFA<>::_M_eliminate_dummy)
874 (_StateSeq<>::_M_clone): Add _S_opcode_subexpr_lookahead branch.
875 * testsuite/28_regex/algorithms/regex_match/ecma/char/58576.cc: New.
877 2013-09-30 Paolo Carlini <paolo.carlini@oracle.com>
879 * include/parallel/algo.h (__find_switch): Use __binder2nd.
881 2013-09-30 Chris Jefferson <chris@bubblescope.net>
884 * include/bits/stl_algo.h (__move_median_first): Rename to
885 __move_median_to_first, change to take an addition argument.
886 (__unguarded_partition_pivot): Adjust.
887 * testsuite/performance/25_algorithms/sort.cc: New.
888 * testsuite/performance/25_algorithms/sort_heap.cc: Likewise.
889 * testsuite/performance/25_algorithms/stable_sort.cc: Likewise.
891 2013-09-28 François Dumont <fdumont@gcc.gnu.org>
893 * include/bits/stl_algo.h (remove_copy, remove_copy_if): Declare
895 (rotate_copy, stable_partition, partial_sort_copy): Likewise.
896 (lower_bound, upper_bound, equal_range, inplace_merge): Likewise.
897 (includes, next_permutation, prev_permutation): Likewise.
898 (replace_copy, replace_copy_if, is_sorted_until): Likewise.
899 (minmax_element, is_permutation, adjacent_find): Likewise.
900 (count, count_if, search, search_n, merge): Likewise.
901 (set_intersection, set_difference): Likewise.
902 (set_symmetric_difference, min_element, max_element): Likewise.
903 * include/bits/stl_algobase.h (lower_bound): Likewise.
904 (lexicographical_compare, mismatch): Likewise.
906 2013-09-28 Tim Shen <timshen91@gmail.com>
908 * include/bits/regex_scanner.tcc (_Scanner<>::_M_eat_escape_posix):
909 Let ordinary char escaping in POSIX be valid.
910 * testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc: Test this
913 2013-09-27 François Dumont <fdumont@gcc.gnu.org>
915 * include/bits/predefined_ops.h: New.
916 * include/bits/stl_heap.h: Include <bits/predefined_ops.h>.
917 (__is_heap_until, __push_heap, __adjust_heap, __pop_heap): Remove
921 (make_heap): Adapt to use latter.
923 (sort_heap): Adapt to use latter.
924 * include/bits/algobase.h: Include <bits/predefined_ops.h>.
925 (__lexicographical_compare_impl): New.
926 (__lexicographical_compare<false>::__lc): Adapt to use latter.
927 (lexicographical_compare): Likewise.
928 (__lower_bound): New.
929 (lower_bound): Adapt to use latter.
930 (equal): Use _GLIBCXX_STD_A::equal in N3671 overloads.
932 (mismatch): Use latter.
933 * include/bits/algo.h: Include <bits/predefined_ops.h>. Remove
934 <functional> include.
935 (__move_median_first, __find, __find_if, __find_if_not): Remove
937 (__find_end): Likewise.
938 (__search_n): Rename into ...
939 (__search_n_aux): ... this.
940 (__search_n): Renew, use latter.
941 (search_n): Use latter.
943 (search): Use latter.
944 (__find_end): Likewise.
945 (__remove_copy_if): New.
946 (remove_copy): Use latter.
947 (__adjacent_find): New.
948 (adjacent_find): Use latter.
950 (unique): Use latter.
951 (__unique_copy): Remove algo duplication.
952 (__stable_partition): New.
953 (stable_partition): Use latter.
954 (__heap_select): Remove algo duplication, use __make_heap.
955 (__partial_sort): New, use latter.
956 (partial_sort): Use latter.
957 (__partial_sort_copy): New.
958 (partial_sort_copy): Use latter.
959 (__unguarded_linear_insert, __insertion_sort): Remove algo
961 (__unguarded_insertion_sort, __final_insertion_sort): Likewise.
962 (__unguarded_partition, __unguarded_partition_pivot): Likewise.
963 (__partial_sort): New.
964 (partial_sort): Use latter.
967 (lower_bound): Use __lower_bound.
968 (__upper_bound): New.
969 (upper_bound): Use latter.
970 (__equal_range): New.
971 (equal_range): Use latter.
972 (__move_merge_adaptive, __move_merge_adaptive_backward): Remove
974 (__merge_adaptive, __merge_without_buffer): Likewise.
975 (__inplace_merge): New.
976 (inplace_merge): Use latter.
977 (__move_merge, __merge_sort_loop, __chunk_insertion_sort): Remove
979 (__merge_sort_with_buffer, __stable_sort_adaptive): Likewise.
980 (__inplace_stable_sort): Likewise.
982 (includes): Use latter.
983 (__next_permutation): New.
984 (next_permutation): Use latter.
985 (__prev_permutation): New.
986 (prev_permutation): Use latter.
987 (__replace_copy_if): New.
988 (replace_copy): Use latter.
989 (__is_sorted_until): New.
990 (is_sorted_unitl): Use latter.
991 (__minmax_element): New.
992 (minmax_element): Use latter.
993 (__is_permutation): New.
994 (is_permutation): Use latter.
995 (__adjacent_find): New.
996 (adjacent_find): Use latter.
999 (count_if): Likewise.
1001 (merge): Use latter.
1002 (__stable_sort): New.
1003 (stable_sort): Use latter.
1005 (set_union): Use latter.
1006 (__set_intersection): New.
1007 (set_intersection): Use latter.
1008 (__set_difference): New.
1009 (set_difference): Use latter.
1010 (__set_symmetric_difference): New.
1011 (set_symmetric_difference): Use latter.
1012 (__min_element): New.
1013 (min_element): Use latter.
1014 (__max_element): New.
1015 (max_element): Use latter.
1016 * include/Makefile.am: Add predefined_ops.h.
1017 * include/Makefile.in: Regenerate.
1018 * include/parallel/algobase.h (equal, mismatch): Add overloads
1020 * testsuite/25_algorithms/is_permutation/vectorbool.cc: New.
1021 * testsuite/25_algorithms/adjacent_find/vectorbool.cc: Likewise.
1022 * testsuite/25_algorithms/find/vectorbool.cc: Likewise.
1023 * testsuite/25_algorithms/find_if/vectorbool.cc: Likewise.
1024 * testsuite/25_algorithms/find_first_of/vectorbool.cc: Likewise.
1025 * testsuite/25_algorithms/heap/vectorbool.cc: Likewise.
1026 * testsuite/25_algorithms/find_end/vectorbool.cc: Likewise.
1027 * testsuite/25_algorithms/find_if_not/vectorbool.cc: Likewise.
1029 2013-09-27 Jonathan Wakely <jwakely.gcc@gmail.com>
1032 * include/std/functional
1033 (_Function_base::_Base_manager::_M_not_empty_function): Fix overload
1035 * testsuite/20_util/function/cons/57465.cc: New.
1037 2013-09-26 Tim Shen <timshen91@gmail.com>
1039 * regex_error.h: Remove _S_error_last to follow the standard.
1040 * regex_scanner.tcc:
1041 (_Scanner<_FwdIter>::_M_scan_in_brace): Change error_brace to
1043 (_Scanner<>::_M_eat_escape_posix): Extended doesn't support
1045 * testsuite/28_regex/algorithms/regex_match/ecma/char/53622.cc:
1046 Move here from ../../extended.
1047 * testsuite/28_regex/algorithms/regex_match/ecma/char/57173.cc:
1050 2013-09-25 Marc Glisse <marc.glisse@inria.fr>
1053 * include/bits/forward_list.h (_Fwd_list_node_base::_M_transfer_after):
1055 (_Fwd_list_iterator) [_Fwd_list_iterator, operator*, operator->,
1056 operator++, operator==, operator!=, _M_next]: Likewise.
1057 (_Fwd_list_const_iterator) [_Fwd_list_const_iterator, operator*,
1058 operator->, operator++, operator==, operator!=, _M_next]: Likewise.
1059 (operator==(const _Fwd_list_iterator&, const _Fwd_list_const_iterator&),
1060 operator!=(const _Fwd_list_iterator&, const _Fwd_list_const_iterator&)):
1062 * include/bits/hashtable_policy.h (_Hash_node_base::_Hash_node_base,
1063 _Hash_node::_M_next, _Node_iterator_base::_Node_iterator_base,
1064 _Node_iterator_base::_M_incr, operator==(const _Node_iterator_base&,
1065 const _Node_iterator_base&), operator!=(const _Node_iterator_base&,
1066 const _Node_iterator_base&)): Likewise.
1067 (_Node_iterator) [_Node_iterator, operator*, operator->, operator++]:
1069 (_Node_const_iterator) [_Node_const_iterator, operator*, operator->,
1070 operator++]: Likewise.
1071 * include/debug/safe_iterator.h (_Safe_iterator) [_Safe_iterator,
1072 operator=, operator*, operator->, operator++, operator--, operator[],
1073 operator+=, operator+, operator-=, operator-, base, operator _Iterator]:
1075 (operator==(const _Safe_iterator&, const _Safe_iterator&),
1076 operator!=(const _Safe_iterator&, const _Safe_iterator&),
1077 operator<(const _Safe_iterator&, const _Safe_iterator&),
1078 operator<=(const _Safe_iterator&, const _Safe_iterator&),
1079 operator>(const _Safe_iterator&, const _Safe_iterator&),
1080 operator>=(const _Safe_iterator&, const _Safe_iterator&),
1081 operator-(const _Safe_iterator&, const _Safe_iterator&),
1082 operator+(difference_type, const _Safe_iterator&)): Likewise.
1083 * include/profile/iterator_tracker.h (__iterator_tracker)
1084 [__iterator_tracker, base, operator _Iterator, operator->, operator++,
1085 operator--, operator=, operator*, operator[], operator+=, operator+,
1086 operator-=, operator-]: Likewise.
1087 (operator==(const __iterator_tracker&, const __iterator_tracker&),
1088 operator!=(const __iterator_tracker&, const __iterator_tracker&),
1089 operator<(const __iterator_tracker&, const __iterator_tracker&),
1090 operator<=(const __iterator_tracker&, const __iterator_tracker&),
1091 operator>(const __iterator_tracker&, const __iterator_tracker&),
1092 operator>=(const __iterator_tracker&, const __iterator_tracker&),
1093 operator-(const __iterator_tracker&, const __iterator_tracker&),
1094 operator+(difference_type, const __iterator_tracker&)): Likewise.
1096 2013-09-24 Marc Glisse <marc.glisse@inria.fr>
1100 * include/bits/basic_string.h (basic_string)
1101 [basic_string(basic_string&&)]: Make the noexcept conditional.
1102 [operator=(basic_string&&), assign(basic_string&&)]: Link to PR 58265.
1103 [begin(), end(), rbegin(), rend(), clear]: Remove noexcept.
1104 [pop_back]: Comment on the lack of noexcept.
1105 * include/debug/string (basic_string) [basic_string(const _Allocator&),
1106 basic_string(basic_string&&), begin(), end(), rbegin(), rend(), clear,
1107 operator[](size_type), pop_back]: Comment out noexcept, until vstring
1108 replaces basic_string.
1110 2013-09-24 Tim Shen <timshen91@gmail.com>
1112 * include/Makefile.am: Add regex.tcc.
1113 * include/Makefile.in: Regenerate.
1114 * include/bits/regex.h: Remove definitions to regex.tcc.
1115 * include/bits/regex.tcc: New.
1116 (match_results::format, regex_replace): Implement;
1117 * include/bits/regex_compiler.h: Move _M_flags to the top of class
1118 member list, because other members' initialization depend on it.
1119 * include/bits/regex_compiler.tcc
1120 (_Compiler<>::_Compiler): Adjust member initializations.
1121 (_Compiler<>::_M_quantifier): Fix ungreedy interval quantifier.
1122 * include/bits/regex_executor.h: Remove _RegexT from _*Executor classes.
1123 In the future, all regex classes may refactor to *Impl style.
1124 * include/bits/regex_executor.tcc (_Executor::_M_set_results):
1125 Merge identical code from _*Executor classes.
1126 * testsuite/28_regex/algorithms/regex_match/extended/
1127 string_dispatch_01.cc (fake_match<>): Adjust the hacking-style testcase
1128 caller for new __get_executors interface.
1129 * testsuite/28_regex/algorithms/regex_replace/char/basic_replace.cc:
1131 * testsuite/28_regex/match_results/format.cc: New.
1132 * testsuite/28_regex/traits/char/lookup_collatename.cc: Remove digraph
1134 * testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: Likewise.
1136 2013-09-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1138 * src/c++11/snprintf_lite.cc (__concat_size_t): Use
1139 unsigned long long conditionally.
1141 2013-09-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1143 * src/c++11/snprintf_lite.cc (__concat_size_t): Use only
1144 std::__int_to_char<unsigned long long>()
1146 2013-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
1148 * include/bits/functexcept.h (__throw_out_of_range_fmt): New.
1149 * src/c++11/functexcept.cc (__throw_out_of_range_fmt): New.
1150 * src/c++11/snprintf_lite.cc: New.
1151 * src/c++11/Makefile.am: Add snprintf_lite.cc.
1152 * src/c++11/Makefile.in: Regenerate.
1153 * config/abi/pre/gnu.ver: Add _ZSt24__throw_out_of_range_fmtPKcz.
1154 * include/std/array (at): Use __throw_out_of_range_fmt.
1155 * include/debug/array (at): Likewise.
1156 * include/profile/array (at): Likewise.
1157 * include/std/bitset (_M_check_initial_position, _M_check): New.
1158 (bitset::bitset): Use _M_check_initial_position.
1159 (set, reset, flip, test): Use _M_check.
1160 * include/ext/vstring.h (_M_check, at): Use __throw_out_of_range_fmt.
1161 * include/bits/stl_vector.h (_M_range_check): Likewise.
1162 * include/bits/stl_bvector.h (_M_range_check): Likewise.
1163 * include/bits/stl_deque.h (_M_range_check): Likewise.
1164 * include/bits/basic_string.h (_M_check, at): Likewise.
1165 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust.
1166 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise.
1167 * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc:
1169 * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc:
1171 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Likewise.
1172 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise.
1173 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1175 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1177 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: Likewise.
1178 * testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc:
1180 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
1181 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Likewise.
1182 * testsuite/util/exception/safety.h (generate): Use __throw_out_of_range_fmt.
1184 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1187 * testsuite/lib/libstdc++.exp (libstdc++_init): Prepend
1188 -fdiagnostics-color=never to cxxflags.
1190 2013-09-20 Marc Glisse <marc.glisse@inria.fr>
1193 * include/bits/allocator.h (__alloc_swap::_S_do_it,
1194 __shrink_to_fit_aux::_S_do_it): Mark as noexcept.
1195 * include/bits/basic_string.h (basic_string::_Rep) [_S_empty_rep,
1196 _M_is_leaked, _M_is_shared, _M_set_leaked, _M_set_sharable,
1197 _M_set_length_and_sharable, _M_dispose]: Likewise.
1198 (basic_string::_Alloc_hider::_Alloc_hider): Likewise.
1199 (basic_string) [_M_data, _M_rep, _M_ibegin, _M_iend, _M_limit,
1200 _M_disjunct, _M_copy, _M_move, _M_assign, _S_copy_chars, _S_compare,
1201 _S_empty_rep, shrink_to_fit, operator[] const, front const, back const]:
1203 [clear]: Link to PR 56166.
1204 [swap]: Link to PR 58265.
1205 * include/bits/stl_deque.h (_Deque_iterator) [_S_buffer_size,
1206 _Deque_iterator, _M_const_cast, operator*, operator->, operator++,
1207 operator--, operator+=, operator+, operator-=, operator-, operator[],
1208 _M_set_node]: Mark as noexcept.
1209 (operator==(const _Deque_iterator&, const _Deque_iterator&),
1210 operator!=(const _Deque_iterator&, const _Deque_iterator&),
1211 operator<(const _Deque_iterator&, const _Deque_iterator&),
1212 operator>(const _Deque_iterator&, const _Deque_iterator&),
1213 operator<=(const _Deque_iterator&, const _Deque_iterator&),
1214 operator>=(const _Deque_iterator&, const _Deque_iterator&),
1215 operator-(const _Deque_iterator&, const _Deque_iterator&),
1216 operator+(ptrdiff_t, const _Deque_iterator&)): Likewise.
1217 (_Deque_base) [_Deque_base(const allocator_type&)]: Add missing call to
1219 [~_Deque_base, _M_deallocate_node, _M_deallocate_map, _M_destroy_nodes]:
1221 (_Deque_base::_Deque_impl) [_Deque_impl(const _Tp_alloc_type&),
1222 _Deque_impl(_Tp_alloc_type&&)]: Likewise.
1223 (deque) [_S_buffer_size, operator=(deque&&), shrink_to_fit, operator[],
1224 front, back, pop_front, pop_back, swap]: Likewise.
1225 [deque(), deque(const allocator_type&)]: Merge.
1226 * include/debug/deque (deque) [operator=(deque&&), shrink_to_fit,
1227 operator[], front, back, pop_front, pop_back, swap]: Mark as noexcept.
1228 * include/profile/deque (deque) [operator=(deque&&), operator[], front,
1229 back, pop_front, pop_back, swap]: Likewise.
1230 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1232 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1234 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1236 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1239 2013-09-20 Alan Modra <amodra@gmail.com>
1241 * configure: Regenerate.
1243 2013-09-19 Marc Glisse <marc.glisse@inria.fr>
1246 * include/bits/stl_tree.h (_Rb_tree_node_base) [_S_minimum, _S_maximum]:
1248 (_Rb_tree_iterator) [_Rb_tree_iterator, operator*, operator->,
1249 operator++, operator--, operator==, operator!=]: Likewise.
1250 (_Rb_tree_const_iterator) [_Rb_tree_const_iterator, _M_const_cast,
1251 operator*, operator->, operator++, operator--, operator==, operator!=]:
1253 (operator==(const _Rb_tree_iterator&, const _Rb_tree_const_iterator&),
1254 operator!=(const _Rb_tree_iterator&, const _Rb_tree_const_iterator&)):
1256 (_Rb_tree) [_M_put_node, _M_destroy_node, _M_root, _M_leftmost,
1257 _M_rightmost, _M_begin, _M_end, _S_left, _S_right, _S_minimum,
1258 _S_maximum]: Likewise.
1259 * include/debug/string (basic_string) [basic_string(const _Allocator&),
1260 shrink_to_fit, operator[], pop_back]: Likewise.
1261 * include/ext/vstring.h (__versa_string) [_M_limit, _M_disjunct,
1262 _M_ibegin, _M_iend, __versa_string(const _Alloc&),
1263 operator=(__versa_string&&), shrink_to_fit, operator[], front,
1264 back, assign(__versa_string&&), swap]: Likewise.
1265 (__versa_string) [__versa_string(), __versa_string(const _Alloc&)]:
1268 2013-09-18 Marc Glisse <marc.glisse@inria.fr>
1271 * include/bits/stl_iterator.h (__normal_iterator) [__normal_iterator,
1272 _M_const_cast, operator*, operator->, operator++, operator--,
1273 operator[], operator+=, operator+, operator-=, operator-, base]:
1275 (operator==(const __normal_iterator&, const __normal_iterator&),
1276 operator!=(const __normal_iterator&, const __normal_iterator&),
1277 operator<(const __normal_iterator&, const __normal_iterator&),
1278 operator>(const __normal_iterator&, const __normal_iterator&),
1279 operator<=(const __normal_iterator&, const __normal_iterator&),
1280 operator>=(const __normal_iterator&, const __normal_iterator&),
1281 operator-(const __normal_iterator&, const __normal_iterator&),
1282 operator+(difference_type, const __normal_iterator&)): Likewise.
1283 * include/bits/stl_list.h (list) [splice, _M_check_equal_allocators]:
1285 (list::_M_check_equal_allocators): Abort instead of throwing.
1286 * include/debug/array (array) [operator[], front, back]: Mark as
1288 * include/profile/array (array) [operator[], front, back]: Likewise.
1289 * include/std/array (array) [operator[], front, back]: Likewise.
1290 * include/debug/list (list::splice): Likewise.
1291 * include/profile/list (list::splice): Likewise.
1292 * testsuite/23_containers/list/operations/5.cc: Remove file.
1293 * testsuite/23_containers/list/operations/5.h: Likewise.
1295 2013-09-18 Tim Shen <timshen91@gmail.com>
1297 * include/bits/regex.h: Add friend classes.
1298 (match_results<>::position, regex_iterator<>::operator++):
1299 Implement position specification in regex_iterator.
1300 (regex_match<>, regex_search<>):
1301 Move match_results initializations to these function. Remove `todo`.
1302 * include/bits/regex_compiler.tcc:
1303 (_Compiler<>::_M_quantifier): Fix greedy/ungreedy of interval matching.
1304 * include/bits/regex_constants.h:
1305 Fix indentation. Change match_flag_type to enum type.
1306 * include/bits/regex_executor.h:
1307 Merge identical code to the base class _Executor.
1308 Support flags in regex_constants.
1309 * include/bits/regex_executor.tcc: Likewise.
1310 * include/bits/regex_scanner.h: Add comments.
1311 * include/bits/regex_scanner.tcc: Same.
1312 * testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc:
1314 * testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: New.
1315 * testsuite/28_regex/iterators/regex_iterator/char/
1316 string_position_01.cc: Remove `xfail`.
1317 * testsuite/28_regex/iterators/regex_iterator/wchar_t/string_02.cc:
1318 Remove `xfail` and make the case really work.
1320 2013-09-18 Paolo Carlini <paolo.carlini@oracle.com>
1322 * testsuite/performance/25_algorithms/search_n.cc: Fix typo.
1324 2013-09-18 Marc Glisse <marc.glisse@inria.fr>
1327 * include/bits/list.tcc (_List_base::_M_clear, list::erase): Mark as
1329 * include/bits/stl_list.h (_List_iterator) [_List_iterator,
1330 _M_const_cast, operator*, operator->, operator++, operator--,
1331 operator==, operator!=]: Likewise.
1332 (_List_const_iterator) [_List_const_iterator, _M_const_cast, operator*,
1333 operator->, operator++, operator--, operator==, operator!=]: Likewise.
1334 (operator==(const _List_iterator&, const _List_const_iterator&),
1335 operator!=(const _List_iterator&, const _List_const_iterator&)):
1337 (_List_impl) [_List_impl(const _Node_alloc_type&),
1338 _List_impl(_Node_alloc_type&&)]: Likewise.
1339 (_List_base) [_M_put_node, _List_base(const _Node_alloc_type&),
1340 _List_base(_List_base&&), _M_clear, _M_init]: Likewise.
1341 (list) [list(), list(const allocator_type&)]: Merge.
1342 (list) [list(const allocator_type&), front, back, pop_front, pop_back,
1343 erase, _M_erase]: Mark as noexcept.
1344 * include/debug/list (list) [list(const _Allocator&), front, back,
1345 pop_front, pop_back, _M_erase, erase]: Likewise.
1346 * include/profile/list (list) [list(const _Allocator&), front, back,
1347 pop_front, pop_back, erase]: Likewise.
1348 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1350 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1352 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1354 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1357 2013-09-17 Marc Glisse <marc.glisse@inria.fr>
1360 * include/bits/stl_vector.h (vector::vector(),
1361 vector::vector(const allocator_type&)): Merge.
1362 (_Vector_impl::_Vector_impl(_Tp_alloc_type const&),
1363 _Vector_impl::_Vector_impl(_Tp_alloc_type&&),
1364 _Vector_impl::_M_swap_data,
1365 _Vector_base::_Vector_base(const allocator_type&),
1366 _Vector_base::_Vector_base(allocator_type&&),
1367 _Vector_base::_Vector_base(_Vector_base&&), _Vector_base::~_Vector_base,
1368 vector::vector(const allocator_type&), vector::operator[],
1369 vector::operator[] const, vector::front, vector::front const,
1370 vector::back, vector::back const, vector::pop_back,
1371 vector::_M_erase_at_end): Mark as noexcept.
1372 * include/debug/vector (vector::vector(const _Allocator&),
1373 vector::operator[], vector::operator[] const, vector::front,
1374 vector::front const, vector::back, vector::back const, vector::pop_back,
1375 _M_requires_reallocation, _M_update_guaranteed_capacity,
1376 _M_invalidate_after_nth): Mark as noexcept.
1377 * include/profile/vector (vector::vector(const _Allocator&),
1378 vector::operator[], vector::operator[] const, vector::front,
1379 vector::front const, vector::back, vector::back const): Mark as
1381 (vector::vector(vector&&, const _Allocator&)): Remove wrong noexcept.
1382 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1384 * testsuite/23_containers/vector/requirements/dr438/
1385 constructor_1_neg.cc: Likewise.
1386 * testsuite/23_containers/vector/requirements/dr438/
1387 constructor_2_neg.cc: Likewise.
1388 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1391 2013-09-14 Tim Shen <timshen91@gmail.com>
1393 * include/bits/regex.h (regex_match<>, regex_search<>):
1394 Change regex_executor caller. Now use their return value instead
1395 of checking __m[0].matched to find out if it's successful.
1396 (regex_search<>): Move the search logic to regex_executor.
1397 * include/bits/regex_automaton.h: Add some new _Opcode. Refactor
1399 * include/bits/regex_automaton.tcc: Add DEBUG dump for new
1400 _Opcode. Refactor _NFA::_M_insert_*.
1401 * include/bits/regex_compiler.h (_Compiler<>::_M_get_nfa):
1402 Use make_shared instead of construct by hand.
1403 * include/bits/regex_compiler.tcc: Implement _Compiler<>::_M_assertion.
1404 * include/bits/regex_constants.h: Fix indentation and line breaking.
1405 * include/bits/regex_executor.h: Add _ResultsEntry to support
1406 greedy/ungreedy mode. Move regex_search logic here.
1407 * include/bits/regex_executor.tcc: Implement assertions and
1408 greedy/ungreedy matching.
1409 * include/bits/regex_scanner.h: Add a new token _S_token_ungreedy.
1410 * include/bits/regex_scanner.tcc: Parse a new token _S_token_ungreedy.
1411 * testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc: New.
1412 * testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: New.
1413 * testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc:
1416 2013-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1419 * include/ext/sso_string_base.h (__sso_string_base<>::
1420 __sso_string_base(__sso_string_base&&)): Fix thinkos about
1421 _M_length vs _M_set_length.
1422 * testsuite/ext/vstring/cons/58415-1.cc: New.
1423 * testsuite/ext/vstring/cons/58415-2.cc: Likewise.
1425 2013-09-12 Paolo Carlini <paolo.carlini@oracle.com>
1428 * include/bits/stl_iterator.h (__normal_iterator<>::operator[],
1429 operator+=, operator+, operator-=, operator-): Take the argument
1431 * testsuite/24_iterators/normal_iterator/58403.cc: New.
1433 2013-09-11 Mitsuru Kariya <kariya_mitsuru@hotmail.com>
1434 Chris Jefferson <chris@bubblescope.net>
1437 * include/bits/stl_algo.h (search_n): Fix to guarantee a number
1438 of comparisons <= number of elements in the range.
1439 * testsuite/25_algorithms/search_n/58358.cc: New.
1440 * testsuite/25_algorithms/search_n/iterator.cc: Extend.
1442 2013-09-10 Ed Smith-Rowland <3dw4rd@verizon.net>
1444 * testsuite/28_regex/traits/wchar_t/value.cc: Change template args
1445 from char to wchar_t, literals from 'x' to L'x'.
1447 2013-09-10 Kai Tietz <ktietz@redhat.com>
1450 * config/abi/pre/gnu-versioned-namespace.ver: Add thunk _ZTv0_n12_NS*
1453 2013-09-07 Paolo Carlini <paolo.carlini@oracle.com>
1456 * include/bits/stl_algobase.h (copy_backward): Fix documentation
1459 2013-09-05 Tim Shen <timshen91@gmail.com>
1461 * include/bits/regex_automaton.h: Add dummy node type. Rewrite
1463 * include/bits/regex_automaton.tcc: Implement them.
1464 * include/bits/regex_compiler.h: Rewrite _Compiler to use new
1465 _StateSeq interfaces.
1466 * include/bits/regex_compiler.tcc: Implement them.
1467 * include/bits/regex_scanner.h: Add word boundry assertion token.
1468 * include/bits/regex_scanner.tcc (_Scanner<>::_M_eat_escape_ecma):
1469 Support word boundry.
1470 * testsuite/28_regex/algorithms/regex_match/basic/
1471 string_range_02_03.cc: Remove "xfail".
1472 * testsuite/28_regex/algorithms/regex_match/extended/cstring_plus.cc:
1474 * testsuite/28_regex/algorithms/regex_match/extended/
1475 string_range_02_03.cc: Likewise.
1476 * testsuite/28_regex/algorithms/regex_match/extended/
1477 cstring_questionmark.cc: Remove xfail and get correct length of
1479 * testsuite/28_regex/algorithms/regex_match/extended/
1480 string_range_00_03.cc: Likewise.
1481 * testsuite/28_regex/algorithms/regex_match/ecma/char/quoted_char.cc:
1483 * testsuite/28_regex/algorithms/regex_match/extended/cstring_range.cc:
1485 * testsuite/28_regex/iterators/regex_iterator/wchar_t/string_02.cc: New.
1487 2013-09-03 Paolo Carlini <paolo.carlini@oracle.com>
1490 * include/bits/random.tcc (negative_binomial_distribution<>::
1491 operator()(_UniformRandomNumberGenerator&, const param_type&)):
1492 Fix typo in template argument.
1493 * testsuite/26_numerics/random/negative_binomial_distribution/
1494 operators/58302.cc: New.
1496 2013-09-02 Tim Shen <timshen91@gmail.com>
1498 * regex_automaton.h: Rearrange _NFA's layout.
1499 * include/bits/regex_compiler.h: Add _AnyMatcher and _CharMatcher.
1500 Rearrange _BracketMatcher's layout.
1501 (_BracketMatcher<>::_M_add_char): Use set instead of vector for
1503 (_BracketMatcher<>::_M_add_collating_element): Likewise.
1504 (_BracketMatcher<>::_M_make_range): Likewise.
1505 * include/bits/regex_compiler.tcc (_Compiler<>::_M_atom): Use
1506 appropriate constructors of matchers above.
1507 * testsuite/28_regex/algorithms/regex_match/ecma/char/anymatcher.cc:
1509 * testsuite/28_regex/algorithms/regex_match/ecma/char/backref.cc: New.
1510 * testsuite/28_regex/algorithms/regex_match/ecma/char/empty_range.cc:
1512 * testsuite/28_regex/algorithms/regex_match/ecma/char/emptygroup.cc:
1514 * testsuite/28_regex/algorithms/regex_match/ecma/char/hex.cc: New.
1515 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/anymatcher.cc:
1517 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/hex.cc: New.
1519 2013-08-30 François Dumont <fdumont@gcc.gnu.org>
1522 * include/debug/functions.h (__foreign_iterator_aux4): Use
1523 sequence const_pointer as common type to compare pointers. Add a
1524 fallback overload in case pointers cannot be cast to sequence
1526 * testsuite/23_containers/vector/modifiers/insert/58148.cc: New.
1528 2013-08-30 François Dumont <fdumont@gcc.gnu.org>
1531 * include/debug/macros.h (__glibcxx_check_partitioned_lower): Add
1532 __gnu_debug::__base calls on iterators passed to internal debug
1534 (__glibcxx_check_partitioned_lower_pred): Likewise.
1535 (__glibcxx_check_partitioned_upper): Likewise.
1536 (__glibcxx_check_partitioned_upper_pred): Likewise.
1537 (__glibcxx_check_sorted): Likewise.
1538 (__glibcxx_check_sorted_pred): Likewise.
1539 (__glibcxx_check_sorted_set): Likewise.
1540 (__glibcxx_check_sorted_set_pred): Likewise.
1541 * include/debug/functions.h (__check_partitioned_lower):
1542 Remove code to detect safe iterators.
1543 (__check_partitioned_upper): Likewise.
1544 (__check_sorted): Likewise.
1546 2013-08-29 Tim Shen <timshen91@gmail.com>
1548 * include/bits/regex.h (basic_regex<>::assign): Don't lose _M_traits.
1549 (regex_iterator<>::regex_iterator): Return nullptr when regex_search
1551 (regex_token_iterator<>::_M_end_of_seq): Should be defined true when
1552 _M_result is(not isn't) nullptr.
1553 * include/bits/regex_compiler.h: Store _Compiler::_M_traits by reference
1554 instead of by value.
1555 * include/bits/regex_executor.h (_DFSExecutor<>::_DFSExecutor): Add
1556 _M_traits to _DFSExecutor.
1557 * include/bits/regex_executor.tcc (__get_executor<>): Pass traits to
1559 * testsuite/28_regex/algorithms/regex_match/extended/wstring_locale.cc:
1561 * testsuite/28_regex/iterators/regex_token_iterator/wchar_t/
1564 2013-08-26 Tim Shen <timshen91@gmail.com>
1566 * include/Makefile.am: Add regex_scanner.{h,tcc}.
1567 * include/Makefile.in: Regenerate.
1568 * include/bits/regex.h (match_search): Handle the `__first == __last`
1569 situation correctly.
1570 * include/bits/regex_compiler.h: Move _Scanner...
1571 * include/bits/regex_scanner.h: ...to here. New.
1572 * include/bits/regex_compiler.tcc: Move _Scanner...
1573 * include/bits/regex_scanner.tcc: ...to here, too. New.
1574 * include/bits/regex_executor.tcc: Use value instead of reference for
1576 * include/std/regex: Add regex_scanner.h
1577 * testsuite/28_regex/algorithms/regex_match/awk/cstring_01.cc: New.
1578 * testsuite/28_regex/algorithms/regex_match/basic/empty_range.cc: New.
1579 * testsuite/28_regex/algorithms/regex_match/ecma/cstring_hex.cc: New.
1580 * testsuite/28_regex/algorithms/regex_match/ecma/empty_range.cc: New.
1581 * testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc: New.
1583 2013-08-22 Tim Shen <timshen91@gmail.com>
1585 * include/bits/regex.h: Replace 8 spaces in indentation with a tab.
1586 * include/bits/regex_automaton.h: Same.
1587 * include/bits/regex_automaton.tcc: Same.
1588 * include/bits/regex_compiler.h: Same.
1589 * include/bits/regex_compiler.tcc: Same.
1590 * include/bits/regex_constants.h: Same.
1591 * include/bits/regex_executor.h: Same.
1592 * include/bits/regex_executor.tcc: Same.
1594 2013-08-22 Tim Shen <timshen91@gmail.com>
1596 * include/bits/regex.h: Executor caller.
1597 * include/bits/regex_executor.h: Fix empty grouping problem.
1598 * include/bits/regex_executor.tcc: Same.
1599 * testsuite/28_regex/algorithms/regex_match/ecma/cstring_emptygroup.cc:
1602 2013-08-20 Phil Muldoon <pmuldoon@redhat.com>
1605 http://sourceware.org/bugzilla/show_bug.cgi?id=15195
1607 * python/libstdcxx/v6/printers.py (Printer.__call__): If a value
1608 is a reference, fetch referenced value.
1609 (RxPrinter.invoke): Ditto.
1610 * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add -O0
1611 flag. Add referenced value tests.
1613 2013-08-20 Tim Shen <timshen91@gmail.com>
1615 * include/bits/regex_constants.h: Add underlying `unsigned int` for
1616 enum syntax_option_type.
1618 2013-08-18 Tim Shen <timshen91@gmail.com>
1620 * include/bits/regex_automaton.h: _S_opcode_backref.
1621 * include/bits/regex_automaton.tcc: Backref automaton support.
1622 * include/bits/regex_compiler.tcc: Parsing support.
1623 * include/bits/regex_executor.h: Add _M_traits for _DFSExecutor.
1624 * include/bits/regex_executor.tcc: Add _S_opcode_backref support.
1625 * testsuite/28_regex/algorithms/regex_match/ecma/string_backref.cc: New.
1627 2013-08-16 Tim Shen <timshen91@gmail.com>
1629 * include/bits/regex.h (regex_traits<>::transform_primary):
1630 Avoid past-the-end dereferences.
1632 2013-08-14 Paolo Carlini <paolo.carlini@oracle.com>
1635 * include/bits/basic_string.h (basic_string<>::operator[]): Fix
1636 _GLIBCXX_DEBUG_PEDASSERT check vs C++11.
1637 * include/ext/vstring.h: Likewise.
1638 * testsuite/21_strings/basic_string/element_access/char/58163.cc:
1640 * testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc:
1642 * testsuite/ext/vstring/element_access/char/58163.cc: Likewise.
1643 * testsuite/ext/vstring/element_access/wchar_t/58163.cc: Likewise.
1645 2013-08-14 Uros Bizjak <ubizjak@gmail.com>
1647 * src/c++98/compatibility.cc (_ZTIe): Use
1648 reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
1652 2013-08-09 Tim Shen <timshen91@gmail.com>
1654 * include/bits/regex_constants.h: Change syntax_option_type to enum
1657 2013-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1659 * include/bits/regex.h: Replace _A, _B, _C, _R by _Ap, _Bp, _Cp, _Rp.
1661 2013-08-08 François Dumont <fdumont@gcc.gnu.org>
1663 * include/bits/hashtable_policy.h (_Hashtable_alloc): New.
1664 (_ReuseOrAllocNode, _AllocNode): Adapt to use latter rather than
1666 (_Before_begin<>): Remove.
1667 * include/bits/hashtable.h (_Hashtable): Inherit from
1668 _Hashtable_alloc and adapt. Restore _M_before_begin field.
1669 * src/c++11/hashtable_c++0x.cc: Add ext/alloc_traits.h include.
1670 * python/libstdcxx/v6/printers.py (StdHashtableIterator): Adapt
1671 access to hashtable before begin.
1672 * testsuite/23_containers/unordered_set/
1673 not_default_constructible_hash_neg.cc: Adapt dg-error line number.
1674 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
1677 2013-08-07 Tim Shen <timshen91@gmail.com>
1679 * include/Makefile.am: Adjust to new files.
1680 * include/Makefile.in: Regenerate.
1681 * include/bits/regex.h: Adjust to new interfaces.
1682 * include/bits/regex_automaton.h: New.
1683 * include/bits/regex_automaton.tcc: New.
1684 * include/bits/regex_compiler.h: Adjust to new files.
1685 * include/bits/regex_compiler.tcc: New.
1686 * include/bits/regex_constants.h: Tail spaces.
1687 * include/bits/regex_error.h: Likewise.
1688 * include/bits/regex_executor.h: New.
1689 * include/bits/regex_executor.tcc: New.
1690 * include/std/regex: Adjust to new files.
1691 * testsuite/28_regex/algorithms/regex_match/extended/
1692 string_dispatch_01.cc: Adjust to new interfaces.
1694 2013-08-07 Paolo Carlini <paolo.carlini@oracle.com>
1696 * include/ext/atomicity.h: Add #pragma GCC system_header.
1698 2013-08-07 Paolo Carlini <paolo.carlini@oracle.com>
1701 * include/bits/random.h (cauchy_distribution<>::min,
1702 extreme_value_distribution<>::min, normal_distribution<>::min,
1703 student_t_distribution<>::min): Fix.
1704 * include/ext/random (normal_mv_distribution<>::min): Likewise.
1705 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1707 testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
1709 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1711 testsuite/26_numerics/random/extreme_value_distribution/cons/
1712 default.cc: Likewise.
1713 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1715 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
1717 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1719 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
1721 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1722 * testsuite/ext/random/normal_mv_distribution/cons/default.cc: Likewise.
1724 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1726 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
1729 * testsuite/ext/von_mises_distribution/*: Move to...
1730 * testsuite/ext/random/von_mises_distribution/*: ... here.
1731 * testsuite/ext/triangular_distribution/*: Move to...
1732 * testsuite/ext/random/triangular_distribution/*: ... here.
1734 2013-08-06 Caroline Tice <cmtice@google.com>
1736 * fragment.am: Add XTEMPLATE_FLAGS.
1737 * configure.ac: Add definitions for --enable-vtable-verify.
1738 * acinclude.m4: Add --enable-vtable-verify and
1739 --disable-vtable-verify; define --enable-vtable-verify; define
1740 VTV_CXXFLAGS, VTV_PCH_CXXFLAGS and VTV_CXXLINKFLAGS.
1741 * config/abi/pre/gnu.ver: Export symbols for vtable verification.
1742 * libsupc++/Makefile.am: Define vtv_sources and add it to
1743 libsupc___la_SOURCES and libsupc__convenience_la_SOURCES.
1744 * libsupc++/vtv_stubs.cc: New file.
1745 * include/Makefile.am: Add VTV_PCH_CXXFLAGS to PCHFLAGS.
1746 * src/Makefile.am: Add VTV_CXXFLAGS to AM_CXXFLAGS; add
1747 VTV_CXXLINKFLAGS to CXXLINK.
1748 * src/c++98/Makefile.am: Comment out XTEMPLATE_FLAGS; add VTV_CXXFLAGS
1749 to AM_CXXFLAGS; add VTV_CXXXLINKFLAGS to CXXLINK.
1750 * src/C++11/Makefile.am: Ditto.
1751 * doc/xml/manual/configure.xml: Add entry for --enable-vtable-verify.
1752 * scripts/testsuite_flags.in: Add cxxvtvflags to Usage; cause
1753 cxxvtvflags to use VTV_CXXFLAGS and VTV_CXXLINKFLAGS.
1754 * testsuite/lib/libstdc++.exp: Add cxxvtvflags; add code to locate
1755 libvtv if --enable-vtable-verify was used; set cxxvtvflags; add
1756 cxxvtvflags to cxx_final.
1757 * testsuite/18_support/bad_exception/23591_thread-1.c: Add
1758 -fvtable-verify=none to compiler flags.
1759 * testsuite/17_intro/freestanding.cc: Add -fvtable-verify=none
1761 * configure: Regenerated.
1762 * Makefile.in: Regenerated.
1763 * python/Makefile.in: Regenerated.
1764 * include/Makefile.in: Regenerated.
1765 * libsupc++/Makefile.in: Regenerated.
1766 * config.h.in: Regenerated.
1767 * po/Makefile.in: Regenerated.
1768 * src/Makefile.in: Regenerated.
1769 * src/c++98/Makefile.in: Regenerated.
1770 * src/c++11/Makefile.in: Regenerated.
1771 * doc/Makefile.in: Regenerated.
1772 * testsuite/Makefile.in: Regenerated.
1774 2013-08-06 Paolo Carlini <paolo.carlini@oracle.com>
1776 Revert the last commit.
1778 2013-08-06 François Dumont <fdumont@gcc.gnu.org>
1780 * include/bits/hashtable_policy.h (_Hashtable_alloc): New.
1781 (_ReuseOrAllocNode, _AllocNode): Adapt to use latter rather than
1783 (_Before_begin<>): Remove.
1784 * include/bits/hashtable.h (_Hashtable): Inherit from
1785 _Hashtable_alloc and adapt. Restore _M_before_begin field.
1786 * python/libstdcxx/v6/printers.py (StdHashtableIterator): Adapt
1787 access to hashtable before begin.
1788 * testsuite/23_containers/unordered_set/
1789 not_default_constructible_hash_neg.cc: Adapt dg-error line number.
1790 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
1793 2013-08-03 Tim Shen <timshen91@gmail.com>
1795 Implement bracket expression.
1796 * include/bits/regex.h: Remove constexpr from "|=", etc.
1797 * include/bits/regex_compiler.h: Parse bracket expression.
1798 * include/bits/regex_nfa.h: _Comparator and _BracketMatcher(old
1800 * include/bits/regex_nfa.tcc: Implement them.
1801 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
1802 from regex_search to regex_match.
1803 * testsuite/28_regex/algorithms/regex_match/extended/
1804 cstring_bracket_01.cc: New.
1806 2013-08-02 Paolo Carlini <paolo.carlini@oracle.com>
1808 * include/debug/functions.h (__foreign_iterator_aux4):
1809 Initialize __l and __ge.
1811 2013-08-02 Paolo Carlini <paolo.carlini@oracle.com>
1814 * include/debug/functions.h: Include <bits/move.h>; minor formatting
1816 (__foreign_iterator_aux4): Declare __l and __ge constexpr.
1817 * include/debug/safe_iterator.h (_Safe_iterator<>::operator->):
1819 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::
1820 operator->): Likewise.
1822 2013-08-01 François Dumont <fdumont@gcc.gnu.org>
1825 * include/debug/formatter.h (_Debug_msg_id): Add
1826 __msg_insert_itself_range entry.
1827 * include/debug/functions.h (_Insert_range_from_self_is_safe<>):
1828 New, indicate container types supporting self range insertion in
1830 (__foreign_iterator): New, check if an iterator points to a given
1832 * include/debug/macros.h (__glibcxx_check_insert_range): Add check
1833 using __foreign_iterator.
1834 (__gibcxx_check_insert_range_after): Likewise.
1835 * include/debug/string (_Insert_range_from_self_is_safe<>):
1836 Partially specialized to mark __gnu_debug::basic_string<> as
1837 supporting self range insert.
1838 * include/debug/list (_Insert_range_from_self_is_safe<>):
1839 Partially specialized to mark std::list as supporting self range
1840 insert if _GLIBCXX_DEBUG_PEDANTIC is not defined.
1841 * include/debug/forward_list (_Insert_range_from_self_is_safe<>):
1843 * src/c++11/debug.cc (_S_debug_messages): Add
1844 __msg_insert_itself_range_entry message.
1845 (_Error_formatter::_Parameter::_M_print_description): Display
1846 iterator sequence address rather than sequence address when the
1847 parameter type is an iterator.
1848 (_Error_formatter::_M_print_word): Enhance behavior when
1849 displaying a word with an appended '\n'.
1850 * testsuite/util/debug/checks.h (check_insert4<>): New.
1851 * testsuite/23_containers/deque/debug/insert5_neg.cc: New.
1852 * testsuite/23_containers/vector/debug/insert5_neg.cc: Likewise.
1853 * testsuite/23_containers/vector/debug/insert6_neg.cc: Likewise.
1854 * testsuite/23_containers/vector/debug/57779_neg.cc: Likewise.
1855 * testsuite/23_containers/list/debug/insert5_neg.cc: Likewise.
1856 * testsuite/23_containers/forward_list/debug/insert_after4_neg.cc:
1859 2013-08-01 Fabien Chêne <fabien@gcc.gnu.org>
1862 * include/tr1/cmath: Remove pow(double,double) overload, remove a
1863 duplicated comment about DR 550. Add a comment to explain the
1865 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: New.
1867 2013-07-31 Tim Shen <timshen91@gmail.com>
1869 Thompson matcher refactored. Fix grouping problem.
1870 * include/bits/regex.h: Use a dispatcher _M_get_matcher().
1871 * include/bits/regex_compiler.h: Tweak for auto switching.
1872 * include/bits/regex_grep_matcher.h: Class structure.
1873 * include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
1874 matcher) refactoring.
1875 * include/bits/regex_nfa.h: Change _Results's interfaces.
1876 * include/std/regex: Includes <map> and <queue>.
1877 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
1879 * testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
1881 * testsuite/28_regex/algorithms/regex_match/extended/
1882 string_dispatch_01.cc: New.
1884 2013-07-31 Paolo Carlini <paolo.carlini@oracle.com>
1887 * include/bits/stl_bvector.h: Use friend struct hash intead of
1888 friend class hash to work around useless warnings produced by
1890 * include/std/bitset: Likewise.
1892 2013-07-31 Paolo Carlini <paolo.carlini@oracle.com>
1894 * src/c++11/functexcept.cc: Do not include the whole <regex>.
1895 * src/c++11/regex.cc: Likewise.
1897 2013-07-31 Tim Shen <timshen91@gmail.com>
1901 2013-07-31 Tim Shen <timshen91@gmail.com>
1903 Thompson matcher refactored. Fix grouping problem.
1904 * include/bits/regex.h: Use a dispatcher _M_get_matcher().
1905 * include/bits/regex_compiler.h: Tweak for auto switching.
1906 * include/bits/regex_grep_matcher.h: Class structure.
1907 * include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
1908 matcher) refactoring.
1909 * include/bits/regex_nfa.h: Change _Results's interfaces.
1910 * include/std/regex: Includes <map> and <queue>.
1911 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
1913 * testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
1915 * testsuite/28_regex/algorithms/regex_match/extended/
1916 string_dispatch_01.cc: New.
1918 2013-07-30 Paolo Carlini <paolo.carlini@oracle.com>
1922 2013-07-30 Tim Shen <timshen91@gmail.com>
1924 Thompson matcher refactored. Fix grouping problem.
1925 * include/bits/regex.h: Use a dispatcher _M_get_matcher().
1926 * include/bits/regex_compiler.h: Tweak for auto switching.
1927 * include/bits/regex_grep_matcher.h: Class structure.
1928 * include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
1929 matcher) refactoring.
1930 * include/bits/regex_nfa.h: Change _Results's interfaces.
1931 * include/std/regex: Includes <map> and <queue>.
1932 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
1934 * testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
1936 * testsuite/28_regex/algorithms/regex_match/extended/
1937 string_dispatch_01.cc: New.
1939 2013-07-29 Nathan Froyd <froydnj@gcc.gnu.org>
1941 * include/std/atomic (compare_exchange_weak, compare_exchange_strong):
1942 Add call to __cmpexch_failure_order.
1943 * testsuite/util/testsuite_common_types.h
1944 (compare_exchange_order_lowering): New generator.
1945 * testsuite/29_atomics/atomic/requirements/compare_exchange_lowering.cc:
1948 2013-07-25 Paolo Carlini <paolo.carlini@oracle.com>
1950 * include/std/complex (pow(const complex<>&, int)): Enable in
1952 * testsuite/26_numerics/complex/dr844.cc: Adjust.
1953 * doc/xml/manual/intro.xml: Update.
1955 2013-07-25 Tim Shen <timshen91@gmail.com>
1957 Add documents and comments.
1958 * include/bits/regex.h: Documents and comments.
1959 * include/bits/regex_grep_matcher.h: Likewise.
1960 * include/bits/regex_grep_matcher.tcc: Likewise.
1961 * testsuite/28_regex/iterators/regex_iterator/char/
1962 string_position_01.cc: New.
1964 2013-07-24 Paolo Carlini <paolo.carlini@oracle.com>
1967 * doc/xml/manual/status_cxx2011.xml: Note missing time_get::get and
1970 2013-07-24 Paolo Carlini <paolo.carlini@oracle.com>
1972 * include/bits/random.h (random_device): Avoid using the FILE type.
1973 * include/std/random: Do not include <cstdio>.
1974 * src/c++11/random.cc: ... include it here.
1975 (random_device::_M_init, random_device::_M_fini,
1976 random_device::_M_getval): Cast back and forth void* and FILE*.
1978 2013-07-24 Tim Shen <timshen91@gmail.com>
1980 Reimplment matcher using Depth-first search(backtracking).
1983 * include/bits/regex.h: regex_match() and regex_search().
1984 * include/bits/regex_cursor.h: Fix _M_set_pos().
1985 * include/bits/regex_grep_matcher.h: add _M_dfs_match().
1986 * include/bits/regex_grep_matcher.tcc: Implement it.
1987 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc: New.
1988 * testsuite/28_regex/algorithms/regex_match/extended/57173.cc: New.
1989 * testsuite/28_regex/algorithms/regex_search/basic/string_01.cc:
1992 2013-07-23 Tim Shen <timshen91@gmail.com>
1994 Implement regex_iterator and regex_token_iterator.
1995 * include/bits/regex.h: regex_iterator and regex_token_iterator.
1996 * testsuite/28_regex/iterators/regex_iterator/char/string_01.cc:
1998 * testsuite/28_regex/iterators/regex_iterator/wchar_t/string_01.cc:
2000 * testsuite/28_regex/iterators/regex_token_iterator/char/string_01.cc:
2002 * testsuite/28_regex/iterators/regex_token_iterator/wchar_t/
2005 2013-07-23 Paolo Carlini <paolo.carlini@oracle.com>
2007 * include/std/random: Add back <cstdio> include.
2008 * src/c++11/random.cc: Don't include <cstdio> here.
2010 2013-07-22 Jason Merrill <jason@redhat.com>
2013 * libsupc++/atexit_thread.cc (run): Delete cleanup elts.
2015 2013-07-22 Paolo Carlini <paolo.carlini@oracle.com>
2018 * src/c++11/random.cc (random_device::_M_getval): If possible, use
2019 read instead of std::fread.
2020 * include/std/random: Do not include <cstdio> unnecessarily.
2022 2013-07-21 Tim Shen <timshen91@gmail.com>
2024 Partially implement regex_search.
2025 * include/bits/regex.h: regex_search.
2026 * include/bits/regex_grep_matcher.h: _M_search_from_first.
2027 * include/bits/regex_grep_matcher.tcc: Implement it.
2028 * testsuite/28_regex/algorithms/regex_search/basic/string_01.cc: New.
2030 2013-07-21 Jonathan Wakely <jwakely.gcc@gmail.com>
2033 * include/std/condition_variable (condition_variable_any): Move into
2034 inline namespace _V2 and replace mutex member with shared_ptr<mutex>.
2035 * src/c++11/condition_variable.cc (condition_variable_any): Move
2037 * src/c++11/compatibility-condvar.cc (condition_variable_any): Here.
2038 * src/Makefile.am: Add new source file.
2039 * src/Makefile.in: Regenerate.
2041 2013-07-09 Tim Shen <timshen91@gmail.com>
2043 Implement class regex_traits.
2044 * include/bits/regex.h: Implement lookup_classname and
2045 lookup_collatename; modify isctype; partially implement
2047 * testsuite/28_regex/traits/char/isctype.cc: Add more test cases.
2048 * testsuite/28_regex/traits/char/lookup_classname.cc: Likewise.
2049 * testsuite/28_regex/traits/char/lookup_collatename.cc: Likewise.
2050 * testsuite/28_regex/traits/char/transform_primary.cc: Likewise.
2051 * testsuite/28_regex/traits/wchar_t/isctype.cc: New.
2052 * testsuite/28_regex/traits/wchar_t/lookup_classname.cc: New.
2053 * testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: New.
2054 * testsuite/28_regex/traits/wchar_t/transform_primary.cc: New.
2056 2013-07-07 Ed Smith-Rowland <3dw4rd@verizon.net>
2058 * doc/xml/manual/status_cxx2014.xml: Add links for papers.
2060 2013-07-05 François Dumont <fdumont@gcc.gnu.org>
2062 * include/bits/hashtable_policy.h (_ReuseOrAllocNode): Use forward
2064 (_MoveReuseOrAllocNode): Remove.
2065 (_Insert_base): Take a functor defining how the node is generated.
2066 * include/bits/hashtable.h: Adapt.
2067 (operator=(initializer_list<value_type>)): Reuse node if any.
2068 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
2069 Adjust dg-error line number.
2070 * testsuite/23_containers/unordered_set/
2071 not_default_constructible_hash_neg.cc: Likewise.
2073 2013-07-05 Paolo Carlini <paolo.carlini@oracle.com>
2075 * testsuite/23_containers/deque/modifiers/insert/const_iterator.cc:
2076 Tweak, avoid potential undefined behavior.
2077 * testsuite/23_containers/list/modifiers/insert/const_iterator.cc:
2079 * testsuite/23_containers/vector/bool/modifiers/insert/
2080 const_iterator.cc: Likewise.
2081 * testsuite/23_containers/vector/modifiers/insert/const_iterator.cc:
2084 2013-07-04 Veres Lajos <vlajos@gmail.com>
2085 Jonathan Wakely <jwakely.gcc@gmail.com>
2087 * config/locale/generic/codecvt_members.cc: Fix typo.
2088 * configure.host: Likewise.
2089 * doc/html/manual/policy_data_structures_design.html: Likewise.
2090 * doc/xml/manual/policy_data_structures.xml: Likewise.
2091 * include/bits/hashtable.h: Likewise.
2092 * include/bits/random.h: Likewise.
2093 * include/profile/impl/profiler_trace.h: Likewise.
2094 * testsuite/23_containers/deque/cons/2.cc: Likewise.
2095 * testsuite/23_containers/deque/debug/shrink_to_fit.cc: Likewise.
2096 * testsuite/ext/pb_ds/example/basic_multimap.cc: Likewise.
2097 * testsuite/performance/23_containers/insert_erase/41975.cc: Likewise.
2099 2013-07-04 Ray Chason <chasonr@newsguy.com>
2100 Paolo Carlini <paolo.carlini@oracle.com>
2103 * include/bits/regex.h (regex_token_iterator<>::operator==,
2104 regex_token_iterator<>::operator!=, regex_token_iterator<>::operator*,
2105 regex_token_iterator<>::operator->): Declare const.
2107 2013-07-01 Paolo Carlini <paolo.carlini@oracle.com>
2109 * include/bits/stl_list.h (list<>::insert(iterator,
2110 size_type, const value_type&), list<>::insert(iterator,
2111 initializer_list<>), list<>::insert(iterator, _InputIterator,
2112 _InputIterator), list<>::splice(iterator, list&&),
2113 list<>::splice(iterator, list&), list<>::splice(iterator, list&&,
2114 iterator), list<>::splice(iterator, list&, iterator),
2115 list<>::splice(iterator, list&&, iterator, iterator),
2116 list<>::splice(iterator, list&, iterator, iterator)): Adjust C++11
2117 signatures to take const_iterator(s).
2118 * include/bits/list.tcc (list<>::insert(const_iterator, size_type,
2119 const value_type&), list<>::insert(const_iterator, _InputIterator,
2120 _InputIterator)): Define.
2121 * include/ext/vstring.h (__versa_string<>::insert(iterator,
2122 size_type, _CharT), __versa_string<>::insert(iterator,
2123 _InputIterator, _InputIterator), __versa_string<>::insert(iterator,
2124 std::initializer_list<>), __versa_string<>::replace(iterator,
2125 iterator, _InputIterator, _InputIterator), __versa_string<>::
2126 replace(iterator, iterator, std::initializer_list<>)): Adjust C++11
2127 signatures to take const_iterator(s).
2128 (__versa_string<>::_M_replace_dispatch): Take const_iterators.
2129 * include/ext/vstring.tcc: Likewise.
2130 * include/debug/list: Adjust.
2131 * include/profile/list: Likewise.
2132 * testsuite/23_containers/list/operations/splice/const_iterator.cc:
2134 * testsuite/23_containers/list/modifiers/insert/const_iterator.cc:
2136 * testsuite/ext/vstring/modifiers/insert/char/const_iterator.cc:
2138 * testsuite/ext/vstring/modifiers/insert/wchar_t/const_iterator.cc:
2140 * testsuite/ext/vstring/modifiers/replace/char/const_iterator.cc:
2142 * testsuite/ext/vstring/modifiers/replace/wchar_t/const_iterator.cc:
2145 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2146 Adjust dg-error line number.
2147 * testsuite/23_containers/list/requirements/dr438/
2148 constructor_1_neg.cc: Likewise.
2149 * testsuite/23_containers/list/requirements/dr438/
2150 constructor_2_neg.cc: Likewise.
2151 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2154 2013-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2156 * include/bits/stl_deque.h (deque<>::insert(iterator,
2157 size_type, const value_type&), deque<>::insert(iterator,
2158 initializer_list<>), deque<>::insert(iterator, _InputIterator,
2159 _InputIterator)): Adjust C++11 signatures to take a const_iterator.
2160 * include/bits/stl_vector.h: Likewise.
2161 * include/bits/stl_bvector.h: Likewise.
2162 * include/debug/deque: Adjust.
2163 * include/debug/vector: Likewise.
2164 * include/profile/deque: Likewise.
2165 * include/profile/vector: Likewise.
2166 * testsuite/23_containers/deque/modifiers/insert/const_iterator.cc:
2168 * testsuite/23_containers/vector/bool/modifiers/insert/
2169 const_iterator.cc: Likewise.
2170 * testsuite/23_containers/vector/modifiers/insert/const_iterator.cc:
2173 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2174 Adjust dg-error line number.
2175 * testsuite/23_containers/deque/requirements/dr438/
2176 constructor_1_neg.cc: Likewise.
2177 * testsuite/23_containers/deque/requirements/dr438/
2178 constructor_2_neg.cc: Likewise.
2179 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2181 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2183 * testsuite/23_containers/vector/requirements/dr438/
2184 constructor_1_neg.cc: Likewise.
2185 * testsuite/23_containers/vector/requirements/dr438/
2186 constructor_2_neg.cc: Likewise.
2187 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2190 2013-06-29 François Dumont <fdumont@gcc.gnu.org>
2192 * include/bits/hashtable_policy.h (_Insert_base): Consider hint in
2194 * include/bits/hashtable.h: Likewise.
2195 * testsuite/23_containers/unordered_multimap/insert/hint.cc: New.
2196 * testsuite/performance/23_containers/insert/unordered_multiset_hint.cc:
2198 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
2199 Adjust dg-error line number.
2200 * testsuite/23_containers/unordered_set/
2201 not_default_constructible_hash_neg.cc: Likewise.
2202 * doc/xml/manual/containers.xml: Document hinting in unordered
2205 2013-06-27 Paolo Carlini <paolo.carlini@oracle.com>
2207 * testsuite/21_strings/basic_string/operations/*: Move inside
2208 testsuite/21_strings/basic_string/operations/data/.
2209 * testsuite/21_strings/basic_string/compare/*: Move inside
2210 testsuite/21_strings/basic_string/operations/.
2211 * testsuite/21_strings/basic_string/find/*: Likewise.
2212 * testsuite/21_strings/basic_string/rfind/*: Likewise.
2213 * testsuite/21_strings/basic_string/substr/*: Likewise.
2215 2013-06-27 Paolo Carlini <paolo.carlini@oracle.com>
2217 * testsuite/21_strings/basic_string/append/*: Move inside
2218 testsuite/21_strings/basic_string/modifiers/.
2219 * testsuite/21_strings/basic_string/assign/*: Likewise.
2220 * testsuite/21_strings/basic_string/insert/*: Likewise.
2221 * testsuite/21_strings/basic_string/replace/*: Likewise.
2222 * testsuite/21_strings/basic_string/modifiers/pop_back/char/
2223 pop_back.cc: Rename to 1.cc.
2224 * testsuite/21_strings/basic_string/modifiers/pop_back/wchar_t/
2225 pop_back.cc: Likewise.
2226 * testsuite/ext/vstring/assign/*: Move inside
2227 testsuite/ext/vstring/modifiers/.
2229 2013-06-27 Paolo Carlini <paolo.carlini@oracle.com>
2231 * include/bits/stl_deque.h (deque<>::insert(iterator,
2232 const value_type&), deque<>::insert(iterator, value_type&&),
2233 deque<>::emplace(iterator, _Args&&...)): Adjust C++11 signatures to
2234 take a const_iterator.
2235 (deque<>::erase): Simplify.
2236 * include/bits/stl_list.h: Likewise.
2237 (_List_iterator<>::_M_const_cast): Add.
2238 * include/bits/stl_vector.h: Likewise.
2239 * include/bits/stl_bvector.h: Likewise.
2240 (_Bit_iterator::_M_const_cast): Add.
2241 * include/bits/deque.tcc: Adjust definitions.
2242 * include/bits/list.tcc: Likewise.
2243 * include/bits/vector.tcc: Likewise.
2244 * include/bits/stl_iterator.h (__normal_iterator<>::_M_const_cast):
2245 Define trivial version in C++98 mode.
2246 * include/ext/vstring.h (__versa_string<>::insert(iterator, _CharT),
2247 __versa_string<>::replace(iterator, iterator, const __versa_string&),
2248 __versa_string<>::replace(iterator, iterator, const _CharT*,
2249 size_type), __versa_string<>::replace(iterator, iterator,
2250 const _CharT*), __versa_string<>::replace(iterator, iterator,
2251 size_type, _CharT)): Adjust C++11 signatures to take a pair of
2253 * include/debug/deque: Adjust.
2254 * include/debug/list: Likewise.
2255 * include/debug/vector: Likewise.
2256 * include/profile/deque: Likewise.
2257 * include/profile/list: Likewise.
2258 * include/profile/vector: Likewise.
2259 (vector<>::emplace): Add.
2260 * testsuite/util/exception/safety.h: Update.
2261 * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
2263 * testsuite/23_containers/deque/modifiers/insert/const_iterator.cc:
2265 * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
2267 * testsuite/23_containers/list/modifiers/insert/const_iterator.cc:
2269 * testsuite/23_containers/vector/bool/modifiers/insert/
2270 const_iterator.cc: Likewise.
2271 * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
2273 * testsuite/23_containers/vector/modifiers/insert/const_iterator.cc:
2275 * testsuite/ext/vstring/modifiers/insert/char/const_iterator.cc:
2277 * testsuite/ext/vstring/modifiers/insert/wchar_t/const_iterator.cc:
2279 * testsuite/ext/vstring/modifiers/replace/char/const_iterator.cc:
2281 * testsuite/ext/vstring/modifiers/replace/wchar_t/const_iterator.cc:
2284 * testsuite/ext/vstring/modifiers/char/54577.cc: Move to testsuite/
2285 ext/vstring/modifiers/erase/char/.
2286 * testsuite/ext/vstring/modifiers/wchar_t/54577.cc: Move to testsuite/
2287 ext/vstring/modifiers/wchar_t/.
2288 * testsuite/ext/vstring/modifiers/char/pop_back.cc: Move to testsuite/
2289 ext/vstring/modifiers/pop_back/char/.
2290 * testsuite/ext/vstring/modifiers/wchar_t/pop_back.cc: Move to
2291 testsuite/ext/vstring/modifiers/pop_back/wchar_t/.
2293 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2294 Adjust dg-error line number.
2295 * testsuite/23_containers/deque/requirements/dr438/
2296 constructor_1_neg.cc: Likewise.
2297 * testsuite/23_containers/deque/requirements/dr438/
2298 constructor_2_neg.cc: Likewise.
2299 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2301 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2303 * testsuite/23_containers/list/requirements/dr438/
2304 constructor_1_neg.cc: Likewise.
2305 * testsuite/23_containers/list/requirements/dr438/
2306 constructor_2_neg.cc: Likewise.
2307 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2309 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2311 * testsuite/23_containers/vector/requirements/dr438/
2312 constructor_1_neg.cc: Likewise.
2313 * testsuite/23_containers/vector/requirements/dr438/
2314 constructor_2_neg.cc: Likewise.
2315 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2318 2013-06-25 Ed Smith-Rowland <3dw4rd@verizon.net>
2320 Status page for C++2014 library features
2321 * doc/xml/faq.xml: Add link to new C++14 status page.
2322 * doc/xml/manual/intro.xml: Ditto.
2323 * doc/xml/manual/status_cxx2014.xml: New.
2325 2013-06-25 Paolo Carlini <paolo.carlini@oracle.com>
2327 * testsuite/23_containers/map/modifiers/erase/abi_tag.cc: Avoid
2328 spurious fails with check-debug.
2329 * testsuite/23_containers/multimap/modifiers/erase/abi_tag.cc:
2331 * testsuite/23_containers/set/modifiers/erase/abi_tag.cc: Likewise.
2332 * testsuite/23_containers/multiset/modifiers/erase/abi_tag.cc:
2335 2013-06-25 Paolo Carlini <paolo.carlini@oracle.com>
2338 * include/bits/char_traits.h (char_traits<char>::lt): Implement
2340 * testsuite/21_strings/char_traits/requirements/char/57704.cc: New.
2342 2013-06-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
2345 * include/c_global/cstdlib (atexit, at_quick_exit): If !_GLIBCC_HOSTED,
2346 declare per the letter of the C++ standard in terms of void.
2347 * include/c_std/cstdlib: Likewise.
2349 2013-06-22 Paolo Carlini <paolo.carlini@oracle.com>
2352 * include/bits/random.h (binomial_distribution<>::_M_waiting):
2353 Add double parameter.
2354 * include/bits/random.tcc (binomial_distribution<>::operator()
2355 (_UniformRandomNumberGenerator&, const param_type&)): Pass
2356 __param._M_q to _M_waiting.
2357 (_M_waiting): Adjust.
2358 * testsuite/26_numerics/random/binomial_distribution/
2359 operators/values.cc: Add tests.
2361 2013-06-21 Paolo Carlini <paolo.carlini@oracle.com>
2364 * include/std/valarray (valarray<>::operator=(const _Expr<>&)):
2365 Implement correctly C++11 26.6.2.3/1.
2366 * testsuite/26_numerics/valarray/dr630-3.C: New.
2368 2013-06-18 Jonathan Wakely <jwakely.gcc@gmail.com>
2371 * include/std/mutex (timed_mutex, recursive_timed_mutex): Move common
2372 functionality to new __timed_mutex_impl mixin. Overload try_lock_until
2373 to handle conversion between different clocks. Replace constrained
2374 __try_lock_for_impl overloads with conditional increment.
2375 * include/std/shared_mutex (shared_mutex::_Mutex): Use the new mixin.
2376 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: New.
2378 2013-06-17 Jonathan Wakely <jwakely.gcc@gmail.com>
2379 Chris Jefferson <chris@bubblescope.net>
2381 * include/bits/stl_algobase.h (equal): Make C++14 overloads from N3671
2382 dispatch to traditional std::equal for random-access iterators.
2383 (__equal2_aux, __equal2): Remove.
2384 (__equal::equal): Remove unused overloads.
2385 * include/bits/stl_algo.h (is_permutation): Fix typos.
2387 2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
2389 * include/std/shared_mutex (shared_lock::operator=): Add missing
2392 2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
2395 * include/bits/forward_list.h (_Fwd_list_base): Convert to/from
2396 allocator's pointer type.
2397 * include/bits/hashtable.h (_Hashtable): Likewise.
2398 * testsuite/util/testsuite_allocator.h (CustomPointerAlloc): Add.
2399 * testsuite/23_containers/forward_list/allocator/ext_ptr.cc: New.
2400 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: New.
2401 * testsuite/23_containers/vector/allocator/ext_ptr.cc: New.
2403 2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
2405 * include/std/shared_mutex: Implement N3659.
2406 * include/bits/c++14_warning.h: New.
2407 * include/Makefile.am: Add new headers.
2408 * include/Makefile.in: Regenerate.
2409 * testsuite/30_threads/shared_lock/cons/1.cc: New.
2410 * testsuite/30_threads/shared_lock/locking/2.cc: New.
2411 * testsuite/30_threads/shared_lock/cons/2.cc: New.
2412 * testsuite/30_threads/shared_lock/locking/3.cc: New.
2413 * testsuite/30_threads/shared_lock/cons/3.cc: New.
2414 * testsuite/30_threads/shared_lock/locking/4.cc: New.
2415 * testsuite/30_threads/shared_lock/cons/4.cc: New.
2416 * testsuite/30_threads/shared_lock/modifiers/1.cc: New.
2417 * testsuite/30_threads/shared_lock/cons/5.cc: New.
2418 * testsuite/30_threads/shared_lock/modifiers/2.cc: New.
2419 * testsuite/30_threads/shared_lock/cons/6.cc: New.
2420 * testsuite/30_threads/shared_lock/requirements/
2421 explicit_instantiation.cc: New.
2422 * testsuite/30_threads/shared_lock/locking/1.cc: New.
2423 * testsuite/30_threads/shared_lock/requirements/typedefs.cc: New.
2424 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
2425 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
2426 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
2427 * testsuite/30_threads/shared_mutex/requirements/
2428 standard_layout.cc: New.
2429 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
2430 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
2432 2013-06-15 Paolo Carlini <paolo.carlini@oracle.com>
2435 * include/bits/unordered_map.h (unordered_map<>::insert,
2436 unordered_multimap<>::insert): Use std::forward, not std::move.
2437 * testsuite/23_containers/unordered_map/insert/57619.C: New.
2438 * testsuite/23_containers/unordered_multimap/insert/57619.C: Likewise.
2440 2013-06-14 Alan Modra <amodra@gmail.com>
2442 * configure.host (abi_baseline_pair): Match powerpc64*.
2444 2013-06-13 Daniel Krugler <daniel.kruegler@gmail.com>
2446 * include/std/type_traits (is_function): Support ref-qualified
2448 (is_copy_constructible, is_move_constructible, is_copy_assignable,
2449 is_move_assignable, is_nothrow_copy_constructible,
2450 is_nothrow_move_constructible, is_nothrow_copy_assignable,
2451 is_nothrow_move_assignable): Implement LWG 2196.
2452 (add_lvalue_reference, add_rvalue_reference, add_pointer): Implement
2454 (__strip_reference_wrapper<<const reference_wrapper<_Tp>>): Remove,
2456 * testsuite/20_util/add_lvalue_reference/value.cc: Extend.
2457 * testsuite/20_util/add_rvalue_reference/value.cc: Likewise.
2458 * testsuite/20_util/decay/requirements/typedefs.cc: Likewise.
2459 * testsuite/20_util/is_assignable/value.cc: Likewise.
2460 * testsuite/20_util/is_constructible/value-2.cc: Likewise.
2461 * testsuite/20_util/is_copy_assignable/value.cc: Likewise.
2462 * testsuite/20_util/is_copy_constructible/value.cc: Likewise.
2463 * testsuite/20_util/is_function/value.cc: Likewise.
2464 * testsuite/20_util/is_move_assignable/value.cc: Likewise.
2465 * testsuite/20_util/is_move_constructible/value.cc: Likewise.
2466 * testsuite/20_util/is_nothrow_copy_assignable/value.cc: Likewise.
2467 * testsuite/20_util/is_nothrow_copy_constructible/value.cc: Likewise.
2468 * testsuite/20_util/is_nothrow_move_assignable/value.cc: Likewise.
2469 * testsuite/20_util/is_nothrow_move_constructible/value.cc: Likewise.
2471 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
2473 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2475 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2478 2013-06-13 Paolo Carlini <paolo.carlini@oracle.com>
2480 * include/tr1/modified_bessel_func.tcc (__gnu_cxx::__airy_ai(),
2481 __gnu_cxx::__airy_bi()): Remove.
2482 * testsuite/tr1/5_numerical_facilities/special_functions/
2483 10_cyl_bessel_k/airy.cc: Fix.
2485 2013-06-12 Ed Smith-Rowland <3dw4rd@verizon.net>
2488 * include/tr1/modified_bessel_func.tcc (__airy): Remove return
2490 (__gnu_cxx::__airy_ai(), __gnu_cxx::__airy_bi()): New functions.
2491 * testsuite/tr1/5_numerical_facilities/special_functions/
2492 10_cyl_bessel_k/airy.cc: New.
2494 2013-06-11 Ed Smith-Rowland <3dw4rd@verizon.net>
2496 Fix library literals error involving namespace __detail.
2497 * include/std/chrono: Rename __detail to __select_type. Reformat.
2498 * include/bits/basic_string.h: Reformat.
2499 * testsuite/20_util/duration/literals/ns_detail.cc: New.
2501 2013-06-11 Paolo Carlini <paolo.carlini@oracle.com>
2504 * include/c_global/cstddef (max_align_t): Add to namespace std.
2505 * include/c_std/cstddef: Likewise.
2506 * testsuite/18_support/max_align_t/requirements/1.cc: New.
2507 * testsuite/18_support/max_align_t/requirements/2.cc: Likewise.
2509 2013-06-10 Benjamin Kosnik <bkoz@redhat.com>
2511 * include/bits/c++config (_GLIBCXX_ABI_TAG_CXX11): Add.
2512 * include/bits/stl_map.h (erase): Use abi_tag when C++11.
2513 * include/bits/stl_multimap.h: Same.
2514 * include/bits/stl_multiset.h: Same.
2515 * include/bits/stl_set.h: Same.
2516 * include/bits/stl_tree.h: Same.
2517 * include/std/complex (real, imag): Use macro for abi_tag.
2519 * testsuite/lib/libstdc++.exp: Disable inlinling with -fno-inline.
2520 * testsuite/util/testsuite_containers.h (erase_external): New
2522 (erase_external_iterators): Same.
2523 (linkage_check_cxx98_cxx11_erase): Same.
2524 (linkage_check_cxx98_cxx11_erase_iterators): Same.
2525 * testsuite/util/testsuite_shared.cc: Define.
2526 * testsuite/23_containers/map/modifiers/erase/abi_tag.cc: New.
2527 * testsuite/23_containers/map/modifiers/erase/
2528 dr130-linkage-check.cc: New.
2529 * testsuite/23_containers/multimap/modifiers/erase/abi_tag.cc: New.
2530 * testsuite/23_containers/multimap/modifiers/erase/
2531 dr130-linkage-check.cc: New.
2532 * testsuite/23_containers/multiset/modifiers/erase/abi_tag.cc: New.
2533 * testsuite/23_containers/multiset/modifiers/erase/
2534 dr130-linkage-check.cc: New.
2535 * testsuite/23_containers/set/modifiers/erase/abi_tag.cc: New.
2536 * testsuite/23_containers/set/modifiers/erase/dr130-linkage-check.cc:
2538 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line number.
2540 * testsuite/23_containers/map/dr130.cc: Move...
2541 * testsuite/23_containers/map/modifiers/dr130.cc: ...here.
2542 * testsuite/23_containers/multimap/dr130.cc: Move ...
2543 * testsuite/23_containers/multimap/modifiers/dr130.cc: ...here.
2544 * testsuite/23_containers/multiset/dr130.cc: Move...
2545 * testsuite/23_containers/multiset/modifiers/dr130.cc: ...here.
2546 * testsuite/23_containers/set/dr130.cc: Move...
2547 * testsuite/23_containers/set/modifiers/dr130.cc: ...here.
2549 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
2551 * testsuite/17_intro/headers/c++1998/49745.cc: Extend current
2552 handling of Linux-based x86 systems to cover all GNU systems.
2553 * testsuite/18_support/bad_exception/23591_thread-1.c: Likewise.
2554 * testsuite/18_support/pthread_guard.cc: Likewise.
2555 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
2557 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc:
2559 * testsuite/21_strings/basic_string/pthread18185.cc: Likewise.
2560 * testsuite/21_strings/basic_string/pthread4.cc: Likewise.
2561 * testsuite/22_locale/ctype/is/char/2.cc: Likewise.
2562 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
2563 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
2564 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
2565 * testsuite/23_containers/list/pthread1.cc: Likewise.
2566 * testsuite/23_containers/list/pthread5.cc: Likewise.
2567 * testsuite/23_containers/map/pthread6.cc: Likewise.
2568 * testsuite/23_containers/vector/debug/multithreaded_swap.cc:
2570 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
2572 * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise.
2573 * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise.
2574 * testsuite/30_threads/async/42819.cc: Likewise.
2575 * testsuite/30_threads/async/49668.cc: Likewise.
2576 * testsuite/30_threads/async/54297.cc: Likewise.
2577 * testsuite/30_threads/async/any.cc: Likewise.
2578 * testsuite/30_threads/async/async.cc: Likewise.
2579 * testsuite/30_threads/async/launch.cc: Likewise.
2580 * testsuite/30_threads/async/sync.cc: Likewise.
2581 * testsuite/30_threads/call_once/39909.cc: Likewise.
2582 * testsuite/30_threads/call_once/49668.cc: Likewise.
2583 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
2584 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
2585 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
2586 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
2587 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
2588 * testsuite/30_threads/condition_variable/members/53841.cc:
2590 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
2592 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
2593 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
2594 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
2595 * testsuite/30_threads/condition_variable_any/members/1.cc:
2597 * testsuite/30_threads/condition_variable_any/members/2.cc:
2599 * testsuite/30_threads/future/cons/move.cc: Likewise.
2600 * testsuite/30_threads/future/members/45133.cc: Likewise.
2601 * testsuite/30_threads/future/members/get.cc: Likewise.
2602 * testsuite/30_threads/future/members/get2.cc: Likewise.
2603 * testsuite/30_threads/future/members/share.cc: Likewise.
2604 * testsuite/30_threads/future/members/valid.cc: Likewise.
2605 * testsuite/30_threads/future/members/wait.cc: Likewise.
2606 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
2607 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
2608 * testsuite/30_threads/lock/1.cc: Likewise.
2609 * testsuite/30_threads/lock/2.cc: Likewise.
2610 * testsuite/30_threads/lock/3.cc: Likewise.
2611 * testsuite/30_threads/lock/4.cc: Likewise.
2612 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
2613 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
2614 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
2615 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
2616 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
2617 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
2618 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
2619 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
2620 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
2621 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
2622 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
2623 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
2624 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
2625 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
2626 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
2627 * testsuite/30_threads/packaged_task/cons/move_assign.cc:
2629 * testsuite/30_threads/packaged_task/members/get_future.cc:
2631 * testsuite/30_threads/packaged_task/members/get_future2.cc:
2633 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
2634 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
2635 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
2636 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
2637 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
2638 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
2639 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
2640 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
2641 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
2642 * testsuite/30_threads/promise/cons/1.cc: Likewise.
2643 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
2644 * testsuite/30_threads/promise/cons/move.cc: Likewise.
2645 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
2646 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
2647 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
2648 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
2649 * testsuite/30_threads/promise/members/set_exception2.cc:
2651 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
2652 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
2653 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
2654 * testsuite/30_threads/promise/members/swap.cc: Likewise.
2655 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
2656 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
2658 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
2659 * testsuite/30_threads/recursive_mutex/native_handle/1.cc:
2661 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
2663 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
2664 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
2665 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
2666 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
2667 * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
2669 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
2670 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
2671 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
2673 * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc:
2675 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc:
2677 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc:
2679 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
2681 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
2683 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
2685 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
2687 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
2689 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc:
2691 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
2692 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
2693 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
2694 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
2695 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
2696 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
2697 * testsuite/30_threads/shared_future/members/wait_for.cc:
2699 * testsuite/30_threads/shared_future/members/wait_until.cc:
2701 * testsuite/30_threads/this_thread/1.cc: Likewise.
2702 * testsuite/30_threads/this_thread/2.cc: Likewise.
2703 * testsuite/30_threads/this_thread/3.cc: Likewise.
2704 * testsuite/30_threads/this_thread/4.cc: Likewise.
2705 * testsuite/30_threads/thread/cons/1.cc: Likewise.
2706 * testsuite/30_threads/thread/cons/2.cc: Likewise.
2707 * testsuite/30_threads/thread/cons/3.cc: Likewise.
2708 * testsuite/30_threads/thread/cons/4.cc: Likewise.
2709 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
2710 * testsuite/30_threads/thread/cons/5.cc: Likewise.
2711 * testsuite/30_threads/thread/cons/6.cc: Likewise.
2712 * testsuite/30_threads/thread/cons/7.cc: Likewise.
2713 * testsuite/30_threads/thread/cons/8.cc: Likewise.
2714 * testsuite/30_threads/thread/cons/9.cc: Likewise.
2715 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
2716 * testsuite/30_threads/thread/members/1.cc: Likewise.
2717 * testsuite/30_threads/thread/members/2.cc: Likewise.
2718 * testsuite/30_threads/thread/members/3.cc: Likewise.
2719 * testsuite/30_threads/thread/members/4.cc: Likewise.
2720 * testsuite/30_threads/thread/members/5.cc: Likewise.
2721 * testsuite/30_threads/thread/members/hardware_concurrency.cc:
2723 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
2724 * testsuite/30_threads/thread/native_handle/typesizes.cc:
2726 * testsuite/30_threads/thread/swap/1.cc: Likewise.
2727 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
2728 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc:
2730 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
2731 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
2732 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc:
2734 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
2735 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
2736 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
2737 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
2738 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
2739 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
2740 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
2741 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
2742 * testsuite/30_threads/try_lock/1.cc: Likewise.
2743 * testsuite/30_threads/try_lock/2.cc: Likewise.
2744 * testsuite/30_threads/try_lock/3.cc: Likewise.
2745 * testsuite/30_threads/try_lock/4.cc: Likewise.
2746 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
2747 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
2748 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
2749 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
2750 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
2751 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
2752 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
2753 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
2754 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
2755 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
2756 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
2757 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
2758 * testsuite/ext/mt_allocator/22309_thread.cc: Likewise.
2759 * testsuite/ext/profile/mh.cc: Likewise.
2760 * testsuite/ext/rope/pthread7-rope.cc: Likewise.
2761 * testsuite/lib/libstdc++.exp (libstdc++_init): Likewise.
2762 * testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc:
2764 * testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc:
2766 * testsuite/util/testsuite_performance.h: Extend current handling
2767 of Linux-based systems to cover all glibc-based systems.
2769 2013-06-09 Jonathan Wakely <jwakely.gcc@gmail.com>
2771 * include/std/mutex (call_once): Remove parentheses to fix error in
2772 c++1y and gnu++1y mode.
2773 * testsuite/30_threads/mutex/try_lock/2.cc: Call try_lock() in new
2774 thread to avoid undefined behaviour.
2776 2013-06-08 Ed Smith-Rowland <3dw4rd@verizon.net>
2778 Simplify and clean up library literals.
2779 * include/std/chrono: Simplify namespace and versioning management.
2780 * include/bits/basic_string.h: Ditto.
2781 * testsuite/20_util/duration/literals/types.cc: Remove bogus comment.
2782 * testsuite/20_util/duration/literals/values.cc: Ditto.
2783 * testsuite/21_strings/basic_string/literals/types.cc: Ditto.
2784 * testsuite/21_strings/basic_string/literals/values.cc: Ditto.
2786 2013-06-08 Ed Smith-Rowland <3dw4rd@verizon.net>
2788 Implement N3654 - Quoted Strings Library Proposal
2789 * include/std/iomanip: Add quoted(String, Char delim, Char escape)
2790 manipulators and supporting machinery in c++1y mode.
2791 * testsuite/27_io/manipulators/standard/char/quoted.cc: New.
2792 * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: New.
2794 2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2796 * include/bits/alloc_traits.h (allocator_traits::max_size()): LWG
2799 2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2801 * include/bits/stl_algo.h (is_permutation): Add overloads from N3671.
2802 * include/bits/stl_algobase.h (equal, mismatch): Likewise.
2803 * testsuite/25_algorithms/equal/1.cc: Remove duplicate test case.
2804 * testsuite/25_algorithms/equal/2.cc: New.
2805 * testsuite/25_algorithms/equal/check_type2.cc: New.
2806 * testsuite/25_algorithms/is_permutationqual/2.cc: New.
2807 * testsuite/25_algorithms/is_permutationqual/check_type2.cc: New.
2808 * testsuite/25_algorithms/mismatch/2.cc: New.
2809 * testsuite/25_algorithms/mismatch/check_type2.cc: New.
2810 * testsuite/util/testsuite_iterators.h: Fix spelling.
2812 2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2814 * include/std/type-traits (integral_constant::operator()): Implement
2816 * testsuite/20_util/integral_constant/call_operator.cc: New.
2817 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
2819 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2821 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2824 2013-06-07 Uros Bizjak <ubizjak@gmail.com>
2826 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
2828 2013-06-05 Tom Tromey <tromey@redhat.com>
2830 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Use -O0.
2832 2013-06-03 Paolo Carlini <paolo.carlini@oracle.com>
2835 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
2837 2013-06-01 Ed Smith-Rowland <3dw4rd@verizon.net>
2839 * include/std/chrono: Collapse redundant 'inline' from 'inline
2841 * include/std/tuple: Ditto.
2842 * include/bits/move.h: Ditto.
2844 2013-05-30 Ed Smith-Rowland <3dw4rd@verizon.net>
2846 Implement N3642 - User-defined Literals for Standard Library Types
2847 * include/bits/parse_numbers.h: New.
2848 * include/std/chrono: Add duration literal operators.
2849 * include/bits/basic_string.h: Add string literal operators.
2850 * include/Makefile.in: Add parse_numbers.h.
2851 * include/Makefile.am: Ditto.
2852 * testsuite/20_util/duration/literals/values.cc: New.
2853 * testsuite/20_util/duration/literals/types.cc: New.
2854 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust.
2855 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Adjust.
2856 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Adjust.
2857 * testsuite/21_strings/basic_string/literals/values.cc: New.
2858 * testsuite/21_strings/basic_string/literals/types.cc: New.
2860 2013-05-28 Jonathan Wakely <jwakely.gcc@gmail.com>
2862 * src/c++11/compatibility-chrono.cc (steady_clock::now()): If
2863 !_GLIBCXX_USE_GETTIMEOFDAY perform conversion inline instead of
2864 calling non-existent from_time_t.
2866 2013-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2868 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt:
2871 2013-05-24 Benjamin Kosnik <bkoz@redhat.com>
2873 * include/std/chrono: Wrap clocks in inline namespace _V2.
2874 * src/c++11/chrono.cc: Same.
2875 * src/c++11/compatibility-chrono.cc: Revert to previous chrono.cc
2876 file, with default configure macros selected.
2878 * config/abi/pre/gnu.ver (GLIBCXX_3.4.19): Use symbols from inline
2880 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Fix up.
2882 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Regenerated.
2883 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Regenerated.
2884 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2886 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
2888 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2889 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2891 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Regenerated.
2892 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Regenerated.
2893 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Regenerated.
2894 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerated.
2895 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Regenerated.
2896 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt:
2898 * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerated.
2899 * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Regenerated.
2901 2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2903 * config/os/solaris/solaris2.9/os_defines.h [!CLOCK_MONOTONIC]
2904 (CLOCK_MONOTONIC): Define.
2906 2013-05-24 Paolo Carlini <paolo.carlini@oracle.com>
2908 * include/ext/type_traits.h (__is_null_pointer): Add std::nullptr_t
2911 * include/bits/cpp_type_traits.h (__is_fundamental): Remove, unused.
2913 2013-05-24 Jakub Jelinek <jakub@redhat.com>
2915 * src/c++11/chrono.cc: If _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL,
2916 include unistd.h and sys/syscall.h. If _GLIBCXX_COMPATIBILITY_CXX0X,
2917 don't define system_clock::is_steady, system_clock::now() and
2918 steady_clock::is_steady.
2919 (std::chrono::system_clock::now()): If
2920 _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL, call
2921 syscall (SYS_clock_gettime, ...) instead of clock_gettime (...).
2922 (std::chrono::system_clock::now()): Likewise. Add weak attribute
2923 if _GLIBCXX_COMPATIBILITY_CXX0X and compatibility-chrono.cc will
2925 * src/Makefile.am (cxx11_sources): Add compatibility-chrono.cc.
2926 (compatibility-chrono.lo, compatibility-chrono.o): New goals.
2927 * src/c++11/compatibility-chrono.cc: New file.
2928 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): On linux*, check for
2929 syscall (SYS_clock_gettime, CLOCK_MONOTONIC, &tp).
2930 * testsuite/util/testsuite_abi.cc (check_version): Add
2931 GLIBCXX_3.4.20 version and make it the latest.
2932 * config/abi/pre/gnu.ver (_ZNSt6chrono12steady_clock3nowEv): Export
2933 also @@GLIBCXX_3.4.19. Move all symbols so far added for GCC 4.9 to
2934 @@GLIBCXX_3.4.20 instead.
2935 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Regenerated.
2936 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Regenerated.
2937 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2939 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
2941 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2942 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2944 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Regenerated.
2945 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Regenerated.
2946 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Regenerated.
2947 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerated.
2948 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Regenerated.
2949 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt:
2951 * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerated.
2952 * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Regenerated.
2953 * config.h.in: Regenerated.
2954 * src/Makefile.in: Regenerated.
2955 * configure: Regenerated.
2957 2013-05-23 Matthias Klose <doko@ubuntu.com>
2959 * include/Makefile.am (bits_headers): Remove ${bits_host_headers}.
2960 (ext_headers): Remove ${ext_host_headers}.
2961 (stamp-${host_alias}): Create ${host_builddir}/../ext.
2962 (stamp-host): Link ${bits_host_headers} and ${ext_host_headers}.
2963 (install-headers): Install ${bits_host_headers} and ${ext_host_headers}.
2964 * include/Makefile.in: Regenerate.
2965 * include/ext/random: Include ext/opt_random.h.
2967 2013-05-22 Jonathan Wakely <jwakely.gcc@gmail.com>
2969 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add KIND=auto to
2970 enable features if target OS is known to support them.
2971 * configure.ac (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Default to 'auto'.
2972 * configure: Regenerate.
2974 2013-05-21 Jonathan Wakely <jwakely.gcc@gmail.com>
2977 * include/std/functional (__invoke): Do not form function types with
2978 abstract return type.
2979 * testsuite/20_util/reference_wrapper/invoke-3.cc: New.
2981 2013-05-19 Jonathan Wakely <jwakely.gcc@gmail.com>
2983 * include/std/tuple (get): Implement N3670.
2984 * include/std/utility (get): Likewise.
2985 * testsuite/20_util/pair/get.cc: Move to ...
2986 * testsuite/20_util/pair/astuple/get.cc: Here.
2987 * testsuite/20_util/pair/astuple/astuple.cc: New.
2988 * testsuite/20_util/pair/astuple/constexpr_get.cc: New.
2989 * testsuite/20_util/pair/astuple/constexpr_get_by_type.cc: New.
2990 * testsuite/20_util/pair/astuple/get_by_type.cc: New.
2991 * testsuite/20_util/pair/astuple/get_by_type_neg.cc: New.
2992 * testsuite/20_util/pair/astuple/get_neg.cc: New.
2993 * testsuite/20_util/tuple/element_access/constexpr_get_by_type.cc: New.
2994 * testsuite/20_util/tuple/element_access/get2_by_type.cc: New.
2995 * testsuite/20_util/tuple/element_access/get_by_type.cc: New.
2997 2013-05-19 Paolo Carlini <paolo.carlini@oracle.com>
2999 * Revert last commit.
3001 2013-05-19 Matthias Klose <doko@ubuntu.com>
3003 * include/Makefile.am (bits_headers): Remove ${bits_host_headers}.
3004 (ext_headers): Remove ${ext_host_headers}.
3005 (stamp-${host_alias}): Create ${host_builddir}/../ext.
3006 (stamp-host): Link ${bits_host_headers} and ${ext_host_headers}.
3007 (install-headers): Install ${bits_host_headers} and ${ext_host_headers}.
3008 * include/Makefile.in: Regenerate.
3010 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3012 * include/std/system_error (error_category::error_category()): LWG
3013 2145: Declare public and constexpr.
3014 * src/c++11/system_error.cc (error_category::error_category()): Move
3016 * src/c++11/compatibility-c++0x.cc: Here.
3018 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3020 * include/std/typeindex (type_index::name()): LWG 2144: Add noexcept.
3022 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3024 * include/bits/unique_ptr.h (make_unique): Declare inline.
3025 (unique_ptr<T[],D>::reset()): Combine two overloads into one.
3026 (default_delete, unique_ptr): Add doxygen comments.
3027 * include/bits/shared_ptr_base.h: Improve doxygen comments.
3028 * include/bits/shared_ptr.h: Likewise.
3029 * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line
3031 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
3033 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3035 * doc/xml/manual/status_cxx2011.xml: Fix markup error.
3037 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3039 * doc/xml/manual/status_cxx2011.xml: Fix markup error.
3041 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3043 * include/std/utility (exchange): Define.
3044 * testsuite/20_util/exchange/1.cc: New.
3046 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3048 * include/bits/unique_ptr.h (make_unique): Define.
3049 * testsuite/20_util/unique_ptr/creation/single.cc: New.
3050 * testsuite/20_util/unique_ptr/creation/array.cc: New.
3051 * testsuite/20_util/unique_ptr/creation/array_neg.cc: New.
3053 2013-05-15 François Dumont <fdumont@gcc.gnu.org>
3055 * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Fix
3056 rendering of std::tr1 unordered containers iterator.
3057 (StdHashtableIterator): New, render std unordered containers iterator.
3058 * testsuite/libstdc++-prettyprinters/tr1.cc: New.
3060 2013-05-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3062 * include/bits/basic_string.h (getline): Fix doxygen comments.
3064 2013-05-14 Paolo Carlini <paolo.carlini@oracle.com>
3066 * include/bits/stl_iterator.h (__normal_iterator<>::_M_const_cast):
3067 Use std::pointer_traits.
3069 2013-05-13 Benjamin Kosnik <bkoz@redhat.com>
3071 * libsupc++/Makefile.am (sources): Add bad_array_length.cc,
3073 * libsupc++/Makefile.in: Regenerate.
3074 * libsupc++/bad_array_length.cc: Tweak.
3075 * libsupc++/bad_array_new.cc: Tweak.
3077 2013-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3080 * include/bits/stl_deque.h (erase): Fix signatures in C++11 mode.
3081 (_Deque_iterator<>::_M_const_cast): Add.
3082 (deque<>::_M_erase): Declare.
3083 * include/bits/deque.tcc: ... and define.
3084 * include/bits/stl_list.h (erase): Fix signatures in C++11 mode.
3085 (_List_const_iterator<>::_M_const_cast): Add.
3086 * include/bits/list.tcc (erase (iterator)): Fix.
3087 * include/bits/stl_iterator.h (__normal_iterator<>::_M_const_cast):
3088 Add; include <ext/cast.h>.
3089 * include/bits/stl_vector.h (erase): Fix signatures in C++11 mode.
3090 (vector<>::_M_erase): Declare.
3091 * include/bits/stl_bvector.h: Likewise.
3092 * include/bits/vector.tcc (vector<>::_M_erase): Define.
3093 * include/ext/vstring.h (erase): Fix signatures in C++11 mode.
3094 * include/debug/deque: Adjust.
3095 * include/debug/list: Likewise.
3096 * include/debug/vector: Likewise.
3097 * include/profile/deque: Likewise.
3098 * include/profile/list: Likewise.
3099 * include/profile/vector: Likewise.
3100 * testsuite/util/exception/safety.h (erase_base<deque>,
3101 erase_base<deque>, erase_base<vector>): Remove.
3102 (erase_base<__versa_string>): Update.
3103 * testsuite/ext/vstring/modifiers/char/54577.cc: New.
3104 * testsuite/ext/vstring/modifiers/wchar_t/54577.cc: Likewise.
3105 * testsuite/23_containers/deque/modifiers/erase/54577.cc: Likewise.
3106 * testsuite/23_containers/list/modifiers/erase/54577.cc: Likewise.
3107 * testsuite/23_containers/vector/bool/modifiers/erase/54577.cc:
3109 * testsuite/23_containers/vector/modifiers/erase/54577.cc: Likewise.
3110 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
3111 Adjust dg-error line numbers.
3112 * testsuite/23_containers/deque/requirements/dr438/
3113 constructor_1_neg.cc: Likewise.
3114 * testsuite/23_containers/deque/requirements/dr438/
3115 constructor_2_neg.cc: Likewise.
3116 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
3118 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3120 * testsuite/23_containers/list/requirements/dr438/
3121 constructor_1_neg.cc: Likewise.
3122 * testsuite/23_containers/list/requirements/dr438/
3123 constructor_2_neg.cc: Likewise.
3124 * testsuite/23_containers/list/requirements/dr438/
3125 insert_neg.cc: Likewise.
3126 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3128 * testsuite/23_containers/vector/requirements/dr438/
3129 constructor_1_neg.cc: Likewise.
3130 * testsuite/23_containers/vector/requirements/dr438/
3131 constructor_2_neg.cc: Likewise.
3132 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3135 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
3137 * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.8.
3139 2013-05-08 Jason Merrill <jason@redhat.com>
3141 Add std::bad_array_length (N3639)
3142 * libsupc++/new: Add std::bad_array_length.
3143 * libsupc++/bad_array_length.cc: New.
3144 * libsupc++/eh_aux_runtime.cc: Add __cxa_bad_array_length.
3145 * libsupc++/Makefile.in: Build them.
3146 * config/abi/pre/gnu.ver: Add new symbols.
3147 * config/abi/pre/gnu-versioned-namespace.ver: Add new symbols.
3149 2013-05-08 Andi Kleen <ak@linux.intel.com>
3152 * libstdc++-v3/include/bits/atomic_base.h
3153 (_GLIBCXX_ALWAYS_INLINE): Add new macro.
3154 (atomic_thread_fence, atomic_signal_fence, test_and_set,
3155 clear, store, load, exchange, compare_exchange_weak)
3156 compare_exchange_strong, fetch_add, fetch_sub, fetch_and,
3157 fetch_or, fetch_xor): Mark _GLIBCXX_ALWAYS_INLINE.
3159 2013-05-08 Jason Merrill <jason@redhat.com>
3161 Add std::bad_array_new_length (N2932)
3162 * libsupc++/new: Add std::bad_array_new_length.
3163 * libsupc++/bad_array_new.cc: New.
3164 * libsupc++/eh_aux_runtime.cc: Add __cxa_throw_bad_array_new_length.
3165 * libsupc++/Makefile.in: Build them.
3166 * config/abi/pre/gnu.ver: Add new symbols.
3167 * config/abi/pre/gnu-versioned-namespace.ver: Add new symbols.
3169 2013-05-08 Andoni Morales Alastruey <ylatuya@gmail.com>
3172 * include/Makefile.am (_GLIBCXX___MINGW32_GLIBCXX___): Modify
3174 * include/Makefile.in: Regenerated.
3176 2013-05-07 François Dumont <fdumont@gcc.gnu.org>
3178 * include/profile/unordered_base.h: New.
3179 * include/Makefile.am: Add new profile header.
3180 * include/Makefile.in: Regenerate.
3181 * include/profile/impl/profiler.h
3182 (__profcxx_inefficient_hash_is_on): New macro.
3183 * include/profile/unordered_map (std::profile::unordered_map<>):
3184 Use new _Unordered_profile base class. Use default implementations
3185 for special functions.
3186 (std::profile::unordered_multimap<>): Likewise.
3187 * include/profile/unordered_set (std::profile::unordered_set<>):
3189 (std::profile::unordered_multiset<>): Likewise.
3190 * testsuite/23_containers/unordered_multiset/55043.cc: Fix
3191 MoveOnly equality operator signature.
3193 2013-05-02 Paolo Carlini <paolo.carlini@oracle.com>
3195 * testsuite/tr1/4_metaprogramming/integral_constant/requirements/
3196 constexpr_data.cc: Move...
3197 * testsuite/20_util/integral_constant/requirements/constexpr_data.cc:
3199 * testsuite/20_util/integral_constant/requirements/
3200 explicit_instantiation.cc: New.
3201 * testsuite/20_util/integral_constant/requirements/typedefs.cc:
3203 * testsuite/20_util/integral_constant/static_definition.cc: Likewise.
3204 * testsuite/20_util/integral_constant/true_false_type_typedefs.cc:
3206 * testsuite/20_util/integral_constant/true_false_value.cc: Likewise.
3207 * testsuite/20_util/integral_constant/operator_value_type.cc: Likewise.
3209 2013-05-02 Paolo Carlini <paolo.carlini@oracle.com>
3211 * include/std/type_traits (is_null_pointer): Add.
3212 (__is_nullptr_t): Implement in terms of the latter.
3213 (is_fundamental, is_scalar): Adjust.
3214 * testsuite/20_util/is_null_pointer/requirements/
3215 explicit_instantiation.cc: New.
3216 * testsuite/20_util/is_null_pointer/requirements/typedefs.cc:
3218 * testsuite/20_util/is_null_pointer/value.cc: Likewise.
3219 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
3221 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3223 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
3226 2013-05-02 Paolo Carlini <paolo.carlini@oracle.com>
3228 * include/c_global/cstdio: Add comment about LWG 2249.
3229 * include/c_std/cstdio: Likewise.
3231 2013-04-28 Jonathan Wakely <jwakely.gcc@gmail.com>
3233 * include/bits/hashtable_policy.h (_Hashtable_ebo_helper): Fix
3235 * include/std/mutex (__recursive_mutex_base): Likewise.
3237 2013-04-28 Jonathan Wakely <jwakely.gcc@gmail.com>
3240 * include/bits/shared_ptr_base (_Sp_ebo_helper): Helper class to
3241 implement EBO safely.
3242 (_Sp_counted_base::_M_get_deleter): Add noexcept.
3243 (_Sp_counter_ptr): Use noexcept instead of comments.
3244 (_Sp_counted_deleter): Likewise. Use _Sp_ebo_helper.
3245 (_Sp_counted_ptr_inplace): Likewise.
3246 * testsuite/20_util/shared_ptr/cons/51365.cc: New.
3247 * testsuite/20_util/shared_ptr/cons/52924.cc: Add rebind member to
3248 custom allocator and test construction with custom allocator.
3249 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
3252 2013-04-26 Paolo Carlini <paolo.carlini@oracle.com>
3254 * testsuite/23_containers/unordered_set/insert/move_range.cc: Adjust
3255 dialect to -std=gnu++11.
3257 2013-04-26 François Dumont <fdumont@gcc.gnu.org>
3259 * include/bits/hashtable_policy.h
3260 (_Insert_base<>::insert<_It>(_It, _It)): Enable move semantics.
3261 * testsuite/23_containers/unordered_set/insert/move_range.cc: New.
3263 2013-04-26 Paolo Carlini <paolo.carlini@oracle.com>
3265 * include/c_global/cstdio (gets): Provide only in C++98 and C++11.
3266 * include/c_std/cstdio (gets): Likewise.
3267 * testsuite/27_io/headers/cstdio/functions_std.cc: Adjust.
3269 2013-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3272 * include/debug/unordered_map (unordered_map, unordered_multimap):
3273 Fix default allocator type.
3274 * include/profile/unordered_map (unordered_map, unordered_multimap):
3276 * include/bits/unordered_map.h: Fix comments.
3278 2013-04-24 Jonathan Wakely <jwakely.gcc@gmail.com>
3281 * libsupc++/exception_ptr.h (copy_exception): Deprecate and
3282 move implementation to make_exception_ptr.
3283 * include/std/future (_State_base::_M_break_promise): Replace
3284 copy_exception with make_exception_ptr.
3285 * testsuite/18_support/exception_ptr/move.cc: Likewise.
3286 * testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise.
3287 * testsuite/30_threads/future/members/get2.cc: Likewise.
3288 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
3289 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
3290 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
3291 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
3293 2013-04-22 Jason Merrill <jason@redhat.com>
3295 * src/c++11/hashtable_c++0x.cc: Include ext/aligned_buffer.h.
3297 * testsuite/lib/prune.exp (libstdc++-dg-prune): Also ignore "In
3298 substitution" lines.
3300 * testsuite/20_util/is_assignable/value.cc: Comment out tests involving
3302 * testsuite/20_util/is_constructible/value-2.cc: Likewise.
3303 * testsuite/20_util/reference_wrapper/result_type.cc: Likewise.
3304 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
3306 2013-04-22 François Dumont <fdumont@gcc.gnu.org>
3308 * include/bits/hashtable_policy.h: Add C++11 allocator support.
3309 * include/bits/hashtable.h: Likewise.
3310 * include/bits/unordered_set.h: Likewise.
3311 * include/bits/unordered_map.h: Likewise.
3312 * include/debug/unordered_set: Likewise.
3313 * include/debug/unordered_map: Likewise.
3314 * include/std/unordered_set: Remove bits/algobase.h
3315 include. Replace bits/alloc_traits.h by ext/alloc_traits.h.
3316 * include/std/unordered_map: Likewise.
3317 * include/ext/throw_allocator.h: Add checks on calls to allocator
3319 (std::hash<__gnu_cxx::throw_value_limit>): Add conditional throw.
3320 (std::hash<__gnu_cxx::throw_value_random>): Likewise.
3321 * testsuite/util/regression/rand/priority_queue
3322 /container_rand_regression_test.tcc: Adapt.
3323 * testsuite/util/regression/rand/assoc
3324 /container_rand_regression_test.tcc: Likewise.
3325 * testsuite/util/testsuite_counter_type.h: Add count of destructors.
3326 * testsuite/23_containers/unordered_set
3327 /not_default_constructible_hash_neg.cc: Adjust dg-error line number.
3328 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Likewise.
3329 * testsuite/23_containers/unordered_set/allocator/copy.cc: New.
3330 * testsuite/23_containers/unordered_set/allocator/copy_assign.cc: New.
3331 * testsuite/23_containers/unordered_set/allocator/minimal.cc: New.
3332 * testsuite/23_containers/unordered_set/allocator/move_assign.cc: New.
3333 * testsuite/23_containers/unordered_set/allocator/noexcept.cc: New.
3334 * testsuite/23_containers/unordered_set/allocator/swap.cc: New.
3335 * testsuite/23_containers/unordered_multiset/allocator/copy.cc: New.
3336 * testsuite/23_containers/unordered_multiset/allocator/copy_assign.cc:
3338 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc: New.
3339 * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc:
3341 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc: New.
3342 * testsuite/23_containers/unordered_multiset/allocator/swap.cc: New.
3343 * testsuite/23_containers/unordered_map/allocator/copy.cc: New.
3344 * testsuite/23_containers/unordered_map/allocator/copy_assign.cc: New.
3345 * testsuite/23_containers/unordered_map/allocator/minimal.cc: New.
3346 * testsuite/23_containers/unordered_map/allocator/move_assign.cc: New.
3347 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
3349 * testsuite/23_containers/unordered_map/allocator/swap.cc: New.
3350 * testsuite/23_containers/unordered_multimap/allocator/copy.cc: New.
3351 * testsuite/23_containers/unordered_multimap/allocator/copy_assign.cc:
3353 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc: New.
3354 * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc:
3356 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc: New.
3357 * testsuite/23_containers/unordered_multimap/allocator/swap.cc: New.
3359 2013-04-22 Paolo Carlini <paolo.carlini@oracle.com>
3361 * include/std/type_traits (is_signed): Simplify.
3362 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3363 Adjust dg-error line numbers.
3364 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
3366 * testsuite/20_util/declval/requirements/1_neg.cc: Likewise.
3368 2013-04-22 Paolo Carlini <paolo.carlini@oracle.com>
3371 * include/std/complex (complex<float>::real, complex<float>::imag,
3372 complex<double>::real, complex<double>::imag,
3373 complex<long double>::real, complex<long double>::imag): Declare
3374 as const member functions.
3375 * include/std/type_traits (integral_constant<>::operator value_type):
3378 2013-04-22 Paolo Carlini <paolo.carlini@oracle.com>
3381 * include/bits/stl_heap.h (pop_heap): Avoid self move-assignment.
3382 * testsuite/25_algorithms/pop_heap/57010.cc: New.
3384 2013-04-21 Evgeniy Stepanov <eugenis@google.com>
3386 * src/c++11/system_error.cc (generic_category_instance): Add
3388 (system_category_instance): Likewise.
3389 * src/c++11/future.cc (__fec): Likewise.
3391 2013-04-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3393 * doc/xml/manual/extensions.xml: Fix anachronism.
3395 2013-04-09 Tom Tromey <tromey@redhat.com>
3397 * configure, config.h.in: Rebuild.
3398 * configure.ac: Use GLIBCXX_CHECK_SDT_H. Don't check for
3400 * acinclude.m4 (GLIBCXX_CHECK_SDT_H): New defun.
3402 2013-04-09 Uros Bizjak <ubizjak@gmail.com>
3404 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3406 2013-04-08 Paolo Carlini <paolo.carlini@oracle.com>
3408 * testsuite/libstdc++-prettyprinters/cxx11.cc: Include <memory>.
3410 2013-04-07 Jonathan Wakely <jwakely.gcc@gmail.com>
3412 * include/Makefile.am: Add ext/aligned_buffer.h
3413 * include/Makefile.in: Regenerate.
3414 * include/ext/aligned_buffer.h: New.
3415 * include/std/future (_Result): Use __aligned_buffer.
3416 * include/bits/forward_list.h (_Fwd_list_node): Likewise.
3417 * include/bits/shared_ptr_base.h (_Sp_counted_ptr_inplace): Likewise.
3418 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error line
3421 2013-04-07 Jonathan Wakely <jwakely.gcc@gmail.com>
3423 * include/bits/forward_list.h: Only include required headers.
3424 (forward_list::reference): Define directly, not using __alloc_traits.
3425 (forward_list::const_reference): Likewise.
3427 2013-04-07 François Dumont <fdumont@gcc.gnu.org>
3429 * include/std/functional (_Derives_from_unary_function): Remove.
3430 (_Derives_from_binary_function): Remove.
3431 * include/std/type_traits (__sfinae_types): Remove.
3432 (__is_assignable_helper): Adapt.
3433 (__is_convertible_helper): Adapt.
3434 (_GLIBCXX_HAS_NESTED_TYPE): Adapt.
3435 Remove several explicit instantiations of integral_constant.
3436 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Adapt.
3437 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3438 Adapt dg-error line number.
3439 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
3441 * testsuite/20_util/declval/requirements/1_neg.cc: Likewise.
3442 * testsuite/20_util/bind/ref_neg.cc: Likewise.
3444 2013-04-05 Jonathan Wakely <jwakely.gcc@gmail.com>
3447 * libsupc++/eh_ptr.cc (rethrow_exception): Use get_unexpected() and
3448 get_terminate() accessors.
3449 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
3450 * libsupc++/eh_terminate.cc: Use mutex when atomic builtins not
3452 * libsupc++/new_handler.cc: Likewise.
3454 2013-04-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3456 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.19 version.
3458 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3461 * include/debug/array (tuple_size, tuple_element): Do not declare.
3462 * include/profile/array: Likewise.
3463 * testsuite/23_containers/array/tuple_interface/
3464 tuple_element_debug_neg.cc: Adjust dg-error line number.
3466 2013-04-03 Jonathan Wakely <jwakely.gcc@gmail.com>
3468 * libsupc++/exception (get_terminate(), get_unexpected()): Declare.
3469 * libsupc++/eh_terminate.cc (get_terminate() , set_unexpected()):
3471 (set_terminate(terminate_handler)): Set atomically.
3472 (set_unexpected(terminate_handler)): Likewise.
3473 * libsupc++/new (get_new_handler()): Declare.
3474 * libsupc++/new_handler.cc (get_new_handler()): Define.
3475 (set_new_handler(new_handler)): Set atomically.
3476 (__new_handler): Use internal linkage.
3477 * libsupc++/new_op.cc (operator new): Use get_new_handler().
3478 * libsupc++/new_opnt.cc (operator new): Likewise.
3479 * acinclude.m4: Bump libtool_VERSION to 6:19:0.
3480 * configure: Regenerate.
3481 * libsupc++/Makefile.am: Compile above files with -std=gnu++11.
3482 * libsupc++/Makefile.in: Regenerate.
3483 * config/abi/pre/gnu.ver: Add new exports.
3484 * doc/xml/manual/status_cxx2011.xml: Update.
3485 * testsuite/18_support/headers/exception/synopsis.cc: Check accessors
3487 * testsuite/18_support/headers/new/synopsis.cc: Likewise.
3488 * testsuite/18_support/new_handler.cc: New.
3489 * testsuite/18_support/terminate_handler.cc: New.
3490 * testsuite/18_support/unexpected_handler.cc: New.
3492 2013-04-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3494 * doc/xml/manual/appendix_contributing.xml: Remove broken link and
3495 defer to general documentation on contributing to GCC.
3496 * doc/html/*: Regenerate.
3498 2013-03-30 Gerald Pfeifer <gerald@pfeifer.com>
3500 * doc/xml/manual/allocator.xml: Adjust link to Dr.Dobb's article.
3502 * doc/xml/manual/appendix_contributing.xml: Adjust link to GNU
3505 * doc/xml/manual/debug.xml: Adjust link for ThreadSanitizer.
3507 * doc/xml/manual/debug_mode.xml: Adjust link for SafeSTL.
3509 * doc/xml/manual/documentation_hacking.xml: Adjust Doxygen link.
3511 * doc/xml/manual/messages.xml: Adjust link to Java API specs.
3513 * doc/xml/manual/policy_data_structures: Remove direct link to
3514 IBM Haifa Research Labs.
3516 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
3517 for biblio.maverik_lowerbounds and biblio.nelson96stlpq.
3519 * doc/xml/manual/profile_mode.xml: Adjust two links to acm.org
3522 * doc/xml/manual/shared_ptr.xml: Use canonical address for
3525 2013-03-27 Kai Tietz <ktietz@redhat.com>
3527 * crossconfig.m4: Add support for cygwin x64 target.
3528 * configure: Regenerated.
3530 2013-03-25 Kai Tietz <ktietz@redhat.com>
3532 * testsuite/18_support/50594.cc: For mingw-targets use only static
3534 * testsuite/19_diagnostics/error_category/operators/equal.cc
3535 * testsuite/19_diagnostics/error_code/cons/1.cc
3536 * testsuite/19_diagnostics/error_code/operators/bool.cc
3537 * testsuite/19_diagnostics/error_code/operators/equal.cc
3538 * testsuite/19_diagnostics/error_code/operators/not_equal.cc
3539 * testsuite/19_diagnostics/error_condition/cons/1.cc
3540 * testsuite/19_diagnostics/error_condition/operators/bool.cc
3541 * testsuite/19_diagnostics/error_condition/operators/equal.cc
3542 * testsuite/19_diagnostics/error_condition/operators/not_equal.cc
3543 * testsuite/23_containers/set/requirements/exception/basic.cc
3544 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc
3545 * testsuite/lib/dg-options.exp (dg-additional-options): New option.
3547 2013-03-24 Jonathan Wakely <jwakely.gcc@gmail.com>
3550 * include/ext/debug_allocator.h (debug_allocator): Add missing members
3551 to meet allocator requirements.
3552 * testsuite/ext/debug_allocator/56170.cc: New.
3554 2013-03-22 Paolo Carlini <paolo.carlini@oracle.com>
3557 * include/std/chrono (__is_ratio): Uglify T.
3559 2013-03-18 Paolo Carlini <paolo.carlini@oracle.com>
3561 PR libstdc++/55977 (partial, std::vector and std::deque bits)
3562 * include/bits/stl_vector.h (_M_range_initialize(_InputIterator,
3563 _InputIterator, std::input_iterator_tag)): Use emplace_back.
3564 * include/bits/deque.tcc (_M_range_initialize(_InputIterator,
3565 _InputIterator, std::input_iterator_tag)): Likewise.
3566 * testsuite/23_containers/vector/cons/55977.cc: New.
3567 * testsuite/23_containers/deque/cons/55977.cc: Likewise.
3568 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3569 Adjust dg-error line number.
3570 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3573 2013-03-17 Paolo Carlini <paolo.carlini@oracle.com>
3576 * include/bits/stl_list.h (_M_initialize_dispatch(_InputIterator,
3577 _InputIterator, __false_type)): Use emplace_back.
3578 * testsuite/23_containers/list/cons/55979.cc: New.
3579 * testsuite/23_containers/list/modifiers/1.h: Adjust.
3580 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3581 Adjust dg-error line number.
3583 2013-03-16 Jason Merrill <jason@redhat.com>
3586 * testsuite/20_util/pair/piecewise2.cc (test01): Use std::move.
3588 2013-03-16 Jonathan Wakely <jwakely.gcc@gmail.com>
3591 * libsupc++/exception_ptr.h (type_info): Declare.
3593 2013-03-16 Jonathan Wakely <jwakely.gcc@gmail.com>
3596 * include/std/mutex (lock_guard, unique_lock, lock): Define without
3597 depending on _GLIBCXX_HAS_GTHREADS.
3598 * testsuite/30_threads/lock_guard/cons/1.cc: Run on all targets.
3600 2013-03-16 Jonathan Wakely <jwakely.gcc@gmail.com>
3603 * include/std/future (__future_base::_Result): Add result_type
3605 (__future_base::_S_allocate_result): Overload for std::allocator.
3606 (__future_base::_Task_setter): Use _Result::result_type instead of
3607 deducing the type from the task.
3608 (__future_base::_Task_state): Store allocator to allow shared state
3609 to be reset. Replace std::function with member of target object type
3611 (__future_base::_Task_state_base): New abstract base class.
3612 (__future_base::_Task_state_base::_M_run): New virtual function to
3613 invoke type-erased target object.
3614 (__future_base::_Task_state_base::_M_reset): New virtual function to
3615 create new shared_state using same target object and allocator.
3616 (__future_base::__create_task_state): Allocate a new _Task_state.
3617 (packaged_task::packaged_task): Use __create_task_state.
3618 (packaged_task::reset): Use _Task_state_base::_M_reset.
3619 * testsuite/30_threads/packaged_task/cons/56492.cc: New.
3621 2013-03-15 Tom Tromey <tromey@redhat.com>
3623 * libsupc++/unwind-cxx.h: Include sys/sdt.h if detected.
3624 (PROBE2): New macro.
3625 * libsupc++/eh_throw.cc (__cxa_throw, __cxa_rethrow): Add probe.
3626 * libsupc++/eh_catch.cc (__cxa_begin_catch): Add probe.
3627 * configure.ac: Check for sys/sdt.h.
3628 * configure, config.h.in: Rebuild.
3630 2013-03-14 Jonathan Wakely <jwakely.gcc@gmail.com>
3633 * include/bits/stl_tree.h (_Rb_tree::_M_create_node): Use
3634 allocator_traits instead of calling construct directly.
3635 * testsuite/23_containers/map/56613.cc: New.
3637 2013-03-13 Benjamin Kosnik <bkoz@redhat.com>
3639 * doc/html/*: Regenerate.
3641 2013-03-13 Paolo Carlini <paolo.carlini@oracle.com>
3644 * include/std/type_traits (is_fundamental): Add std::nullptr_t.
3645 * testsuite/20_util/is_fundamental/value.cc: Extend.
3646 * testsuite/20_util/is_compound/value.cc: Likewise.
3648 2013-03-09 Paolo Carlini <paolo.carlini@oracle.com>
3650 * testsuite/20_util/function_objects/mem_fn/55463.cc: Avoid
3653 2013-03-08 Benjamin Kosnik <bkoz@redhat.com>
3655 * include/bits/memoryfwd.h: New. Centralize forward declarations.
3656 * include/bits/algorithmfwd.h: Consistent comments.
3657 * include/bits/localefwd.h: Same.
3658 * include/ext/vstring_fwd.h: Same.
3659 * include/parallel/algorithmfwd.h: Same.
3660 * include/parallel/numericfwd.h: Same.
3661 * include/std/iosfwd: Same.
3663 * include/bits/alloc_traits.h: Include memoryfwd.h, remove allocator
3665 * include/ext/alloc_traits.h: Remove allocator forward decl.
3666 * include/bits/stl_construct.h: Same.
3667 * include/bits/stringfwd.h: Include memoryfwd.h, remove allocator
3668 forward decl. Consistent comments.
3670 * doc/doxygen/user.cfg.in (TEMPLATE_RELATIONS): To NO.
3672 * include/Makefile.am (bits_headers): Add memoryfwd.h.
3673 * include/Makefile.in: Regenerate.
3676 2013-03-08 François Dumont <fdumont@gcc.gnu.org>
3678 * include/bits/vector.tcc (vector<>operator=(const vector<>&):
3679 Reset pointers after deallocation when memory can be reused.
3680 * testsuite/23_containers/vector/allocator/minimal.cc: Insert
3681 elements to really challenge C++11 allocator integration.
3682 * testsuite/23_containers/vector/allocator/copy.cc: Likewise.
3683 * testsuite/23_containers/vector/allocator/copy_assign.cc:
3685 * testsuite/23_containers/vector/allocator/move_assign.cc:
3687 * testsuite/23_containers/vector/allocator/swap.cc: Likewise and
3688 swap vector back before checks on memory/personality mapping are
3690 * testsuite/23_containers/forward_list/allocator/minimal.cc:
3691 Insert element to really challenge C++11 allocator integration.
3692 * testsuite/23_containers/forward_list/allocator/copy.cc:
3694 * testsuite/23_containers/forward_list/allocator/copy_assign.cc:
3696 * testsuite/23_containers/forward_list/allocator/move_assign.cc:
3698 * testsuite/23_containers/forward_list/allocator/swap.cc: Likewise
3699 and swap forward_list back before checks on memory/personality
3700 mapping are performed.
3702 2013-03-07 Jakub Jelinek <jakub@redhat.com>
3704 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3705 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
3706 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
3708 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
3709 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
3710 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
3711 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
3712 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
3713 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
3715 2013-03-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3717 * scripts/extract_symvers.pl: Omit symbols bound to base
3719 * scripts/extract_symvers.in: Likewise.
3720 * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerate.
3721 * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Likewise.
3722 * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
3723 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3724 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3726 2013-03-04 Ulrich Drepper <drepper@gmail.com>
3728 * include/ext/random (__gnu_cxx::von_mises_distribution<>):
3729 Optimize generation function by pulling computation of __r into the
3730 constructor for param_type. Also compare _M_mu in operator==.
3733 2013-03-02 Ulrich Drepper <drepper@gmail.com>
3735 Add triangular and von Mises distributions.
3736 * include/ext/random: Include <ext/cmath>.
3737 Add __gnu_cxx::triangular_distribution<> and
3738 __gnu_cxx::von_mises_distribution<> classes.
3739 * include/ext/random.tcc: Add out-of-line functions for
3740 __gnu_cxx::triangular_distribution<> and
3741 __gnu_cxx::von_mises_distribution<>.
3742 * testsuite/ext/triangular_distribution/cons/default.cc: New file.
3743 * testsuite/ext/triangular_distribution/cons/parms.cc: New file.
3744 * testsuite/ext/triangular_distribution/operators/serialize.cc:
3746 * testsuite/ext/triangular_distribution/operators/equal.cc:
3748 * testsuite/ext/triangular_distribution/operators/inequal.cc:
3750 * testsuite/ext/triangular_distribution/requirements/typedefs.cc:
3752 * testsuite/ext/triangular_distribution/requirements/
3753 explicit_instantiation/1.cc: New file.
3754 * testsuite/ext/von_mises_distribution/cons/default.cc: New file.
3755 * testsuite/ext/von_mises_distribution/cons/parms.cc: New file.
3756 * testsuite/ext/von_mises_distribution/operators/serialize.cc:
3758 * testsuite/ext/von_mises_distribution/operators/equal.cc: New file.
3759 * testsuite/ext/von_mises_distribution/operators/inequal.cc:
3761 * testsuite/ext/von_mises_distribution/requirements/typedefs.cc:
3763 * testsuite/ext/von_mises_distribution/requirements/
3764 explicit_instantiation/1.cc: New file.
3767 * include/Makefile.am (ext_headers): Add cmath.
3768 * include/Makefile.in: Regenerated.
3769 * include/ext/cmath: New file.
3771 2013-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3773 * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerate.
3774 * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Likewise.
3775 * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
3776 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3777 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3779 2013-02-26 Jonathan Wakely <jwakely.gcc@gmail.com>
3782 * include/bits/atomic_base.h (atomic_flag): Fix narrowing conversion.
3783 * testsuite/29_atomics/atomic/operators/56012.cc: New.
3786 * include/std/atomic (atomic<bool>::operator=(bool) volatile): Add
3788 * testsuite/29_atomics/atomic/operators/56011.cc: New.
3790 2013-02-25 Jason Merrill <jason@redhat.com>
3792 * configure.ac: Check for __cxa_thread_atexit_impl.
3793 * libsupc++/atexit_thread.cc (__cxa_thread_atexit): Just forward
3795 * config.h.in, configure: Regenerate.
3797 2013-02-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3799 * include/std/streambuf (basic_streambuf): Use injected class name
3800 instead of non-standard __streambuf_type typedef. Fix unclosed Doxygen
3803 2013-02-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3805 * doc/html/faq.html: Fix spelling.
3806 * doc/xml/faq.xml: Likewise.
3807 * include/bits/basic_ios.h: Likewise.
3808 * include/bits/regex.h: Likewise.
3809 * include/std/istream: Likewise.
3810 * include/std/streambuf: Likewise.
3812 2013-02-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3814 * testsuite/23_containers/unordered_set/55043.cc: Add missing
3815 namespace qualification.
3816 * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
3818 2013-02-19 Benjamin Kosnik <bkoz@redhat.com>
3820 * doc/doxygen/user.cfg.in: Set __cplusplus to 201103L. Change to
3821 _GLIBCXX_INCLUDE_AS_CXX11. DIRECTORY_GRAPH, MARKDOWN_SUPPORT,
3822 AUTOLINK_SUPPORT to NO. Update to doxygen 1.8.3.1.
3823 * include/bits/stl_pair.h: Add to utilities group.
3824 * include/std/tuple: Same.
3825 * include/std/typeindex: Same.
3827 * include/bits/stringfwd.h: Fix markup.
3828 * include/std/limits: Same.
3829 * include/std/type_traits: Same.
3830 * include/tr1/memory: Same.
3831 * include/tr1/regex: Same.
3832 * scripts/run_doxygen: Comment.
3833 * testsuite/20_util/uses_allocator/cons_neg.cc: Fixup line numbers.
3835 2013-02-14 Jason Merrill <jason@redhat.com>
3837 * testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
3838 test if unsupported.
3840 2013-02-13 Marc Glisse <marc.glisse@inria.fr>
3843 * include/std/complex (complex): Undefine.
3844 * include/c_compatibility/complex.h (complex): Only undefine if
3845 <complex> has been included.
3846 * testsuite/26_numerics/complex/56111.cc: New testcase.
3848 2013-02-13 François Dumont <fdumont@gcc.gnu.org>
3850 * include/bits/hashtable_policy.h (_Hash_code_base): Restore
3851 default constructor protected.
3852 * include/bits/hashtable.h: static assert that _Hash_code_base has
3853 a default constructor available through inheritance.
3855 2013-02-12 Paolo Carlini <paolo.carlini@oracle.com>
3857 * include/c_std/cstdlib (at_quick_exit, quick_exit): Provide in
3860 2013-02-12 Julian Brown <julian@codesourcery.com>
3862 * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc (test01):
3863 Don't expect dots after abbreviated weekday names for ru_RU for
3864 glibc versions >= 2.17.
3865 * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc (test01):
3868 2013-02-12 Paolo Carlini <paolo.carlini@oracle.com>
3870 * include/bits/random.tcc (__transform): Remove.
3872 (discrete_distribution<>::param_type::_M_initialize): Adjust.
3873 (piecewise_constant_distribution<>::param_type::_M_initialize):
3875 (piecewise_linear_distribution<>::param_type::_M_initialize):
3878 2013-02-11 Benjamin Kosnik <bkoz@redhat.com>
3880 * src/c++11/Makefile.am (hashtable_c++0x.lo, hashtable_c++0x.o):
3881 Use -fimplicit-templates.
3882 * src/c++11/Makefile.in: Regenerate.
3883 * src/c++11/hashtable_c++0x.cc: Remove instantiation for
3884 std::lower_bound template.
3886 2013-02-11 Paolo Carlini <paolo.carlini@oracle.com>
3888 * include/c_std/cstdlib (at_quick_exit, quick_exit): Do not declare.
3889 * include/c_global/cstdlib (at_quick_exit, quick_exit): Declare only
3890 in C++11 mode and if available in the underlying C library.
3891 * testsuite/18_support/quick_exit/quick_exit.cc: Compile with
3892 -std=gnu++11; check _GLIBCXX_HAVE_AT_QUICK_EXIT and
3893 _GLIBCXX_HAVE_QUICK_EXIT.
3895 2013-02-11 Benjamin Kosnik <bkoz@redhat.com>
3897 * doc/html/*: Regenerate.
3899 2013-02-11 Jason Merrill <jason@redhat.com>
3901 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE): New.
3902 (GLIBCXX_CHECK_STDLIB_SUPPORT): Check for atexit and at_quick_exit.
3903 * config.h.in, configure: Regenerate.
3904 * include/c_std/cstdlib: Add atexit and at_quick_exit.
3905 * include/c_global/cstdlib: Add atexit and at_quick_exit.
3906 * testsuite/18_support/quick_exit/quick_exit.cc: New.
3908 2013-02-11 Paolo Carlini <paolo.carlini@oracle.com>
3912 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3915 * include/bits/basic_ios.h: Replace operator void*() const
3916 with explicit operator bool() const in C++11 and greater.
3917 * testsuite/27_io/basic_ios/pr56193.cc: New file.
3919 2013-02-10 François Dumont <fdumont@gcc.gnu.org>
3920 Jonathan Wakely <jwakely.gcc@gmail.com>
3922 * doc/xml/manual/containers.xml: Add section on unordered containers.
3923 * doc/xml/manual/using.xml: Fix incomplete sentence.
3925 2013-02-10 Jonathan Wakely <jwakely.gcc@gmail.com>
3928 * include/bits/hashtable.h (__cache_default): Check if hash function
3930 * testsuite/23_containers/unordered_set/56267.cc: New.
3931 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
3932 dg-error line number.
3933 * testsuite/23_containers/unordered_set/
3934 not_default_constructible_hash_neg.cc: Likewise.
3937 * include/bits/hashtable_policy.h (_Hash_code_base): Make default
3939 * testsuite/23_containers/unordered_set/56278.cc: New.
3941 2013-02-09 François Dumont <fdumont@gcc.gnu.org>
3943 * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series): Code
3946 2013-02-08 Edward Smith-Rowland <3dw4rd@verizon.net>
3949 * include/tr1/special_function_util.h: Remove spurious const
3950 from numeric arguments.
3951 * include/tr1/riemann_zeta.tcc: Likewise.
3952 * include/tr1/exp_integral.tcc: Likewise.
3953 * include/tr1/bessel_function.tcc: Likewise.
3954 * include/tr1/hypergeometric.tcc: Likewise.
3955 * include/tr1/modified_bessel_func.tcc: Likewise.
3956 * include/tr1/poly_laguerre.tcc: Likewise.
3957 * include/tr1/gamma.tcc: Likewise.
3958 * include/tr1/legendre_function.tcc: Likewise.
3959 * include/tr1/poly_hermite.tcc: Likewise.
3960 * include/tr1/ell_integral.tcc: Likewise.
3961 * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series):
3962 If argument is zero return function value.
3963 * testsuite/tr1/5_numerical_facilities/special_functions/
3964 08_cyl_bessel_i/pr56216.cc: New.
3966 2013-02-07 Paolo Carlini <paolo.carlini@oracle.com>
3968 * testsuite/27_io/basic_ios/pr56193.cc: Tweak.
3970 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3973 * include/bits/basic_ios.h: Replace operator void*() const
3974 with explicit operator bool() const in C++11 and greater.
3975 * testsuite/27_io/basic_ios/pr56193.cc: New file.
3977 2013-02-04 Dodji Seketeli <dodji@redhat.com>
3979 Add missing explicit instantiation for std::lower_bound template
3980 * libstdc++-v3/src/c++11/hashtable_c++0x.cc (namespace std): Add
3981 missing instantiation for std::lower_bound template.
3983 2013-02-04 François Dumont <fdumont@gcc.gnu.org>
3985 * include/bits/functional_hash.h (std::__is_fast_hash<>): New.
3986 * include/bits/basic_string.h: Specialize previous to mark
3987 std::hash for string types as slow.
3988 * include/bits/hashtable.h (__cache_default): Replace is_integral
3989 with __is_fast_hash.
3990 * src/c++11/hash_c++0x.cc: Add type_traits include.
3991 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
3992 Adapt dg-error line number.
3993 * testsuite/23_containers/unordered_set/
3994 not_default_constructible_hash_neg.cc: Likewise.
3996 2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3997 Paolo Carlini <paolo.carlini@oracle.com>
3999 PR libstdc++/56202 (again)
4000 * include/bits/random.tcc (binomial_distribution<>::
4001 _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Fix thinko
4004 * include/bits/random.h: Fix comment typo.
4006 2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4007 Paolo Carlini <paolo.carlini@oracle.com>
4010 * include/bits/random.tcc (binomial_distribution<>::
4011 _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Avoid
4014 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4016 Update copyright years.
4017 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc,
4018 testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc,
4019 testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc,
4020 testsuite/23_containers/deque/requirements/dr438/insert_neg.cc,
4021 testsuite/23_containers/list/requirements/dr438/assign_neg.cc,
4022 testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc,
4023 testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc,
4024 testsuite/23_containers/list/requirements/dr438/insert_neg.cc,
4025 testsuite/23_containers/vector/requirements/dr438/assign_neg.cc,
4026 testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc,
4027 testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc,
4028 testsuite/23_containers/vector/requirements/dr438/insert_neg.cc,
4029 testsuite/29_atomics/atomic/cons/assign_neg.cc,
4030 testsuite/29_atomics/atomic/cons/copy_neg.cc,
4031 testsuite/29_atomics/atomic_integral/cons/assign_neg.cc,
4032 testsuite/29_atomics/atomic_integral/cons/copy_neg.cc,
4033 testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc,
4034 testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc,
4035 testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
4036 Update lines in dg error matches.
4038 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4040 * config/os/mingw32/ctype_inline.h: Fix copyright typo.
4042 2013-02-01 François Dumont <fdumont@gcc.gnu.org>
4044 * include/bits/hashtable_policy.h
4045 (_Prime_rehash_policy::_M_next_bkt)
4046 (_Prime_rehash_policy::_M_need_rehash): Move definition...
4047 * src/c++11/hashtable_c++0x.cc: ... here.
4048 * src/shared/hashtable-aux.cc: Remove c++config.h include.
4049 * config/abi/gnu.ver (GLIBCXX_3.4.18): Export _Prime_rehash_policy
4052 2013-01-29 Jason Merrill <jason@redhat.com>
4055 * config/abi/pre/gnu.ver: Don't export construction vtables.
4056 * config/abi/pre/gnu-versioned-namespace.ver: Likewise.
4058 2013-01-28 Jonathan Wakely <jwakely.gcc@gmail.com>
4061 * include/bits/hashtable_policy.h (insert(_Pair&&)): Use _M_emplace
4062 to construct value_type explicitly before trying to extract the key.
4063 * testsuite/23_containers/unordered_map/cons/56112.cc: New.
4065 2013-01-28 François Dumont <fdumont@gcc.gnu.org>
4067 * include/bits/hashtable_policy.h (_Local_iterator_base): Use
4068 _Hashtable_ebo_helper to embed functors into the local_iterator
4069 when necessary. Pass information about functors involved in hash
4071 * include/bits/hashtable.h (__cache_default): Do not cache for
4072 builtin integral types unless the hash functor is not noexcept
4073 qualified or is not default constructible. Adapt static assertions
4074 and local iterator instantiations.
4075 * include/debug/unordered_set
4076 (std::__debug::unordered_set<>::erase): Detect local iterators to
4077 invalidate using contained node rather than generating a dummy
4078 local_iterator instance.
4079 (std::__debug::unordered_multiset<>::erase): Likewise.
4080 * include/debug/unordered_map
4081 (std::__debug::unordered_map<>::erase): Likewise.
4082 (std::__debug::unordered_multimap<>::erase): Likewise.
4083 * testsuite/performance/23_containers/insert_erase/41975.cc: Test
4084 std::tr1 and std versions of unordered_set regardless of any
4085 macro. Add test on default cache behavior.
4086 * testsuite/performance/23_containers/insert/54075.cc: Likewise.
4087 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
4089 * testsuite/23_containers/unordered_set/
4090 not_default_constructible_hash_neg.cc: New.
4091 * testsuite/23_containers/unordered_set/buckets/swap.cc: New.
4093 2013-01-24 Paolo Carlini <paolo.carlini@oracle.com>
4096 * include/std/complex (pow(const complex<>&, int)): Avoid __n
4099 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4101 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
4102 Tightten scan-assembler-times regexps, add dg-additional-options for
4103 ia32, add -g0 -fno-exceptions -fno-asynchronous-unwind-tables to
4106 2013-01-12 Andi Kleen <ak@linux.intel.com>
4107 Jonathan Wakely <jwakely.gcc@gmail.com>
4110 * include/bits/atomic_base.h (__memory_order_modifier): Add
4111 __memory_order_mask, __memory_order_modifier_mask,
4112 __memory_order_hle_acquire, __memory_order_hle_release.
4113 (operator|,operator&): Add.
4114 (__cmpexch_failure_order): Rename to __cmpexch_failure_order2.
4115 (__cmpexch_failure_order): Add.
4116 (clear, store, load, compare_exchange_weak, compare_exchange_strong):
4118 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
4121 2013-01-19 Jonathan Wakely <jwakely.gcc@gmail.com>
4124 * include/std/future (_State_base::_S_check(const shared_ptr<T>&)):
4126 (__basic_future::_M_get_result()): Const qualify.
4127 (shared_future::get()): Likewise.
4128 * testsuite/30_threads/shared_future/members/get.cc: Use const
4131 2013-01-16 Jonathan Wakely <jwakely.gcc@gmail.com>
4133 PR libstdc++/55043 (again)
4134 * include/bits/alloc_traits.h (allocator_traits::construct): Disable
4135 unless construction would be well-formed.
4136 (__allow_copy_cons, __check_copy_constructible): Define.
4137 * include/bits/unordered_map.h (__check_copy_constructible): Use as
4138 base class so copy constructor will be deleted if appropriate.
4139 (is_copy_constructible): Remove specialization.
4140 * include/bits/unordered_set.h: Likewise.
4141 * include/debug/unordered_map.h: Undo previous commit. Default copy
4142 and move constructors.
4143 * include/debug/unordered_set.h: Likewise.
4144 * include/profile/unordered_map.h: Undo previous commit.
4145 * include/profile/unordered_set.h: Likewise.
4146 * testsuite/23_containers/unordered_map/55043.cc: Fix test.
4147 * testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
4148 * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
4149 * testsuite/23_containers/unordered_set/55043.cc: Likewise.
4150 * testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL,
4151 cannot support incomplete types.
4152 * testsuite/23_containers/unordered_multimap/requirements/53339.cc:
4155 2013-01-16 Jonathan Wakely <jwakely.gcc@gmail.com>
4158 * include/std/unordered_map: Include alloc_traits.h
4159 * include/std/unordered_set: Likewise.
4160 * include/bits/alloc_traits.h: Define __is_copy_insertable.
4161 * include/bits/unordered_map.h: Use it.
4162 * include/bits/unordered_set.h: Likewise.
4163 * include/debug/unordered_map.h: Likewise.
4164 * include/debug/unordered_set.h: Likewise.
4165 * include/profile/unordered_map.h: Likewise.
4166 * include/profile/unordered_set.h: Likewise.
4167 * include/bits/hashtable.h: Fix comment typos.
4168 * testsuite/23_containers/unordered_map/55043.cc: New.
4169 * testsuite/23_containers/unordered_multimap/55043.cc: New.
4170 * testsuite/23_containers/unordered_multiset/55043.cc: New.
4171 * testsuite/23_containers/unordered_set/55043.cc: New.
4173 2013-01-03 Janis Johnson <janisjo@codesourcery.com>
4175 * testsuite/lib/gdb-test.exp (gdb_batch_check): Catch error running
4178 2013-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4180 * doc/xml/manual/status_cxx2011.xml: Document that N3189 is missing.
4182 2013-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4185 * include/std/functional (_Mem_fn::operator()): Fix constraints to
4187 * testsuite/20_util/function_objects/mem_fn/55908.cc: New.
4188 * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers.
4190 2013-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4193 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Restrict test to
4195 * configure: Regenerate.
4197 2013-01-07 Jonathan Wakely <jwakely.gcc@gmail.com>
4200 * src/c++11/shared_ptr.cc (bad_weak_ptr::what()): Correct string.
4201 * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Verify
4205 * include/std/functional (bad_function_call::what()): Declare.
4206 * src/c++11/functional.cc (bad_function_call::what()): Define.
4207 * config/abi/pre/gnu.ver (bad_function_call::what()): Export.
4208 * testsuite/20_util/bad_function_call/what.cc: New.
4210 2013-01-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4212 * include/bits/unordered_map.h: Fix typo in comments.
4213 * doc/xml/manual/status_cxx2011.xml: Add implementation-defined bucket
4214 counts for unordered associative containers.
4216 2013-01-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4218 * doc/xml/manual/abi.xml: Update library and symbol versions.
4220 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4222 * include/ext/pb_ds/detail/splay_tree_/insert_fn_imps.hpp: Fix typo
4224 * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
4227 Copyright (C) 2013 Free Software Foundation, Inc.
4229 Copying and distribution of this file, with or without modification,
4230 are permitted in any medium without royalty provided the copyright
4231 notice and this notice are preserved.