1 2013-11-19 Jonathan Wakely <jwakely.gcc@gmail.com>
3 * testsuite/23_containers/forward_list/allocator/noexcept.cc: Change
4 to compile-only test. Adjust swap overload to handle rebound
6 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
7 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
8 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
9 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
10 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
12 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
14 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
16 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
18 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
19 * testsuite/23_containers/vector/allocator/swap.cc: Add elements
22 * config/abi/pre/gnu.ver (_ZNSt11regex_errorC*): Export regex_error
24 * testsuite/20_util/addressof/1.cc: Remove { dg-do compile }.
25 * testsuite/20_util/allocator_traits/members/destroy.cc: Likewise.
26 * testsuite/20_util/allocator_traits/members/select.cc: Likewise. Fix
28 * testsuite/28_regex/basic_regex/ctors/extended/cstring.cc: Likewise.
29 * testsuite/28_regex/init-list.cc: Likewise.
30 * testsuite/28_regex/regex_error/regex_error.cc: Likewise.
31 * testsuite/28_regex/sub_match/length.cc: Likewise. Add main.
32 * testsuite/28_regex/sub_match/cast_char.cc: Likewise. Fix test.
33 * testsuite/28_regex/sub_match/cast_wchar_t.cc: Likewise.
34 * testsuite/tr1/7_regular_expressions/regex/cons/char/
35 c_string_extended.cc: Delete.
37 2013-11-19 Paolo Carlini <paolo.carlini@oracle.com>
39 * include/experimental/string_view (_S_max_size): Remove.
40 (basic_string_view<>::max_size): Adjust.
41 * testsuite/experimental/string_view/capacity/1.cc: Clean-up.
42 * testsuite/experimental/string_view/inserters/pod/10081-out.cc:
45 2013-11-19 Jonathan Wakely <jwakely.gcc@gmail.com>
47 * doc/xml/manual/status_cxx2014.xml: Create new table for TS statuses.
49 2013-11-18 Jonathan Wakely <jwakely.gcc@gmail.com>
51 * include/bits/shared_ptr_base.h (_Sp_counted_base<_S_single>): Use
52 non-atomic operations.
53 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line number.
54 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
56 2013-11-16 Edward Smith-Rowland <3dw4rd@verizon.net>
58 Implement N3762 string_view: a non-owning reference to a string.
59 * include/Makefile.am: Add string_view and string_view.tcc.
60 * include/Makefile.in: Regenerate.
61 * include/experimental/string_view: Implement basic_string_view.
62 * include/experimental/string_view.tcc: Implement basic_string_view.
63 * testsuite/experimental/string_view/capacity/1.cc: New.
64 * testsuite/experimental/string_view/cons/char/1.cc: New.
65 * testsuite/experimental/string_view/cons/char/2.cc: New.
66 * testsuite/experimental/string_view/cons/char/3.cc: New.
67 * testsuite/experimental/string_view/cons/wchar_t/1.cc: New.
68 * testsuite/experimental/string_view/cons/wchar_t/2.cc: New.
69 * testsuite/experimental/string_view/cons/wchar_t/3.cc: New.
70 * testsuite/experimental/string_view/element_access/char/1.cc: New.
71 * testsuite/experimental/string_view/element_access/char/2.cc: New.
72 * testsuite/experimental/string_view/element_access/char/empty.cc: New.
73 * testsuite/experimental/string_view/element_access/char/front_back.cc:
75 * testsuite/experimental/string_view/element_access/wchar_t/1.cc: New.
76 * testsuite/experimental/string_view/element_access/wchar_t/2.cc: New.
77 * testsuite/experimental/string_view/element_access/wchar_t/empty.cc:
79 * testsuite/experimental/string_view/element_access/wchar_t/
81 * testsuite/experimental/string_view/include.cc: New.
82 * testsuite/experimental/string_view/inserters/char/1.cc: New.
83 * testsuite/experimental/string_view/inserters/char/2.cc: New.
84 * testsuite/experimental/string_view/inserters/char/3.cc: New.
85 * testsuite/experimental/string_view/inserters/pod/10081-out.cc: New.
86 * testsuite/experimental/string_view/inserters/wchar_t/1.cc: New.
87 * testsuite/experimental/string_view/inserters/wchar_t/2.cc: New.
88 * testsuite/experimental/string_view/inserters/wchar_t/3.cc: New.
89 * testsuite/experimental/string_view/literals/types.cc: New.
90 * testsuite/experimental/string_view/literals/values.cc: New.
91 * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc:
93 * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/
95 * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc:
97 * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/
99 * testsuite/experimental/string_view/operations/compare/char/1.cc: New.
100 * testsuite/experimental/string_view/operations/compare/char/13650.cc:
102 * testsuite/experimental/string_view/operations/compare/wchar_t/1.cc:
104 * testsuite/experimental/string_view/operations/compare/wchar_t/
106 * testsuite/experimental/string_view/operations/data/char/1.cc: New.
107 * testsuite/experimental/string_view/operations/data/wchar_t/1.cc: New.
108 * testsuite/experimental/string_view/operations/find/char/1.cc: New.
109 * testsuite/experimental/string_view/operations/find/char/2.cc: New.
110 * testsuite/experimental/string_view/operations/find/char/3.cc: New.
111 * testsuite/experimental/string_view/operations/find/char/4.cc: New.
112 * testsuite/experimental/string_view/operations/find/wchar_t/1.cc: New.
113 * testsuite/experimental/string_view/operations/find/wchar_t/2.cc: New.
114 * testsuite/experimental/string_view/operations/find/wchar_t/3.cc: New.
115 * testsuite/experimental/string_view/operations/find/wchar_t/4.cc: New.
116 * testsuite/experimental/string_view/operations/rfind/char/1.cc: New.
117 * testsuite/experimental/string_view/operations/rfind/char/2.cc: New.
118 * testsuite/experimental/string_view/operations/rfind/char/3.cc: New.
119 * testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc: New.
120 * testsuite/experimental/string_view/operations/rfind/wchar_t/2.cc: New.
121 * testsuite/experimental/string_view/operations/rfind/wchar_t/3.cc: New.
122 * testsuite/experimental/string_view/operations/substr/char/1.cc: New.
123 * testsuite/experimental/string_view/operations/substr/wchar_t/1.cc:
125 * testsuite/experimental/string_view/operators/char/2.cc: New.
126 * testsuite/experimental/string_view/operators/wchar_t/2.cc: New.
127 * testsuite/experimental/string_view/range_access/char/1.cc: New.
128 * testsuite/experimental/string_view/range_access/wchar_t/1.cc: New.
129 * testsuite/experimental/string_view/requirements/
130 explicit_instantiation/1.cc: New.
131 * testsuite/experimental/string_view/requirements/
132 explicit_instantiation/char/1.cc: New.
133 * testsuite/experimental/string_view/requirements/
134 explicit_instantiation/char16_t/1.cc: New.
135 * testsuite/experimental/string_view/requirements/
136 explicit_instantiation/char32_t/1.cc: New.
137 * testsuite/experimental/string_view/requirements/
138 explicit_instantiation/wchar_t/1.cc: New.
139 * testsuite/experimental/string_view/requirements/typedefs.cc: New.
140 * testsuite/experimental/string_view/types/1.cc: New.
142 2013-11-16 François Dumont <fdumont@gcc.gnu.org>
144 * testsuite/23_containers/unordered_set/55043.cc (equal): Add
145 missing & on rhs parameter.
147 2013-11-15 Jonathan Wakely <jwakely.gcc@gmail.com>
149 * include/bits/stl_bvector.h (vector<bool>::emplace_back()): LWG 2187:
151 (vector<bool>::emplace()): Likewise.
152 * testsuite/23_containers/vector/bool/emplace.cc: New.
154 2013-11-15 Ondřej Bílka <neleai@seznam.cz>
155 Jonathan Wakely <jwakely.gcc@gmail.com>
157 * doc/xml/manual/build_hacking.xml: Fix documentation typos.
158 * doc/xml/manual/configure.xml: Likewise.
159 * include/bits/atomic_base.h: Fix typos in comments.
160 * include/bits/random.h: Likewise.
161 * include/ext/cast.h: Likewise.
162 * libsupc++/cxxabi.h: Likewise.
163 * testsuite/ext/pb_ds/example/hash_illegal_resize.cc: Likewise.
164 * testsuite/tr1/5_numerical_facilities/special_functions/testcase.h:
166 * testsuite/util/exception/safety.h: Likewise.
167 * testsuite/util/testsuite_containers.h: Likewise.
168 * testsuite/util/testsuite_hooks.cc: Likewise.
170 2013-11-15 Jonathan Wakely <jwakely.gcc@gmail.com>
172 * include/bits/stl_map.h (map): Implement C++11 allocator-aware
173 container requirements.
174 * include/bits/stl_multimap.h (multimap): Likewise.
175 * include/bits/stl_multiset.h (multiset): Likewise.
176 * include/bits/stl_set.h (set): Likewise.
177 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_buffer and
178 add accessors for value.
179 (_Rb_tree_iterator, _Rb_tree_const_iterator): Use _Rb_tree_node
181 (_Rb_tree): Use allocator_traits and implement support for sets and
182 maps the be allocator-aware.
183 * include/bits/forward_list.h (_Fwd_list_base::_M_create_node): Do
184 not zero-initialize storage buffer.
185 * include/bits/hashtable_policy.h (_Hashtable_alloc::_M_allocate_node):
187 * include/bits/stl_vector.h (vector(vector&&, const allocator_type&)):
188 Add conditional noexcept specification.
189 * doc/xml/manual/status_cxx2011.xml: Update status of containers.
190 * testsuite/util/testsuite_allocator.h: Re-indent.
191 * testsuite/23_containers/forward_list/allocator/copy.cc: Test
192 allocator-extended copy constructor.
193 * testsuite/23_containers/unordered_map/allocator/copy.cc: Likewise.
194 * testsuite/23_containers/unordered_multimap/allocator/copy.cc:
196 * testsuite/23_containers/unordered_multiset/allocator/copy.cc:
198 * testsuite/23_containers/unordered_set/allocator/copy.cc: Likewise.
199 * testsuite/23_containers/vector/allocator/copy.cc: Likewise.
200 * testsuite/23_containers/forward_list/allocator/move.cc: New.
201 * testsuite/23_containers/unordered_map/allocator/move.cc: New.
202 * testsuite/23_containers/unordered_multimap/allocator/move.cc: New.
203 * testsuite/23_containers/unordered_multiset/allocator/move.cc: New.
204 * testsuite/23_containers/unordered_set/allocator/move.cc: New.
205 * testsuite/23_containers/vector/allocator/move.cc: New.
206 * testsuite/23_containers/map/allocator/copy.cc: New.
207 * testsuite/23_containers/map/allocator/copy_assign.cc: New.
208 * testsuite/23_containers/map/allocator/minimal.cc: New.
209 * testsuite/23_containers/map/allocator/move.cc: New.
210 * testsuite/23_containers/map/allocator/move_assign.cc: New.
211 * testsuite/23_containers/map/allocator/noexcept.cc: New.
212 * testsuite/23_containers/map/allocator/swap.cc: New.
213 * testsuite/23_containers/multimap/allocator/copy.cc: New.
214 * testsuite/23_containers/multimap/allocator/copy_assign.cc: New.
215 * testsuite/23_containers/multimap/allocator/minimal.cc: New.
216 * testsuite/23_containers/multimap/allocator/move.cc: New.
217 * testsuite/23_containers/multimap/allocator/move_assign.cc: New.
218 * testsuite/23_containers/multimap/allocator/noexcept.cc: New.
219 * testsuite/23_containers/multimap/allocator/swap.cc: New.
220 * testsuite/23_containers/multiset/allocator/copy.cc: New.
221 * testsuite/23_containers/multiset/allocator/copy_assign.cc: New.
222 * testsuite/23_containers/multiset/allocator/minimal.cc: New.
223 * testsuite/23_containers/multiset/allocator/move.cc: New.
224 * testsuite/23_containers/multiset/allocator/move_assign.cc: New.
225 * testsuite/23_containers/multiset/allocator/noexcept.cc: New.
226 * testsuite/23_containers/multiset/allocator/swap.cc: New.
227 * testsuite/23_containers/set/allocator/copy.cc: New.
228 * testsuite/23_containers/set/allocator/copy_assign.cc: New.
229 * testsuite/23_containers/set/allocator/minimal.cc: New.
230 * testsuite/23_containers/set/allocator/move.cc: New.
231 * testsuite/23_containers/set/allocator/move_assign.cc: New.
232 * testsuite/23_containers/set/allocator/noexcept.cc: New.
233 * testsuite/23_containers/set/allocator/swap.cc: New.
234 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
235 Adjust dg-error line number.
236 * testsuite/23_containers/vector/requirements/dr438/
237 constructor_1_neg.cc: Likewise.
238 * testsuite/23_containers/vector/requirements/dr438/
239 constructor_2_neg.cc: Likewise.
240 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
243 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
245 * scripts/extract_symvers.in: Ignore <localentry: > fields
246 in readelf --symbols output.
248 2013-11-14 Jonathan Wakely <jwakely.gcc@gmail.com>
250 * include/bits/alloc_traits.h (__allow_copy_cons): Remove.
251 (__check_copy_constructible): Likewise.
252 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
253 Do not derive from __check_copy_constructible.
254 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
256 * testsuite/23_containers/unordered_map/55043.cc: It is no longer
257 necessary for is_copy_constructible to be correct to use nested
258 unordered containers.
259 * testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
260 * testsuite/23_containers/unordered_set/55043.cc: Likewise.
261 * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
263 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
266 * include/ext/pod_char_traits.h: Uglify V, I and S.
268 2013-11-11 Jonathan Wakely <jwakely.gcc@gmail.com>
271 * include/std/mutex (__timed_mutex_impl::__clock_t): Use
272 high_resolution_clock for absolute timeouts, because
273 pthread_mutex_timedlock uses CLOCK_REALTIME not CLOCK_MONOTONIC.
274 (__timed_mutex_impl::_M_try_lock_for): Use steady_clock for relative
275 timeouts as per [thread.req.timing].
276 (__timed_mutex_impl::_M_try_lock_until<Clock,Duration>): Convert to
277 __clock_t time point instead of using _M_try_lock_for.
279 2013-11-09 Jonathan Wakely <jwakely.gcc@gmail.com>
282 * include/bits/stl_algobase.h (__copy_move::__copy_m): Use assertion
283 to prevent using memmove() on non-assignable types.
284 (__copy_move_backward::__copy_move_b): Likewise.
285 * include/bits/stl_uninitialized.h (uninitialized_copy
286 uninitialized_copy_n, uninitialized_fill, uninitialized_fill_n,
287 __uninitialized_default, __uninitialized_default_n): Check for
288 assignable as well as trivial.
289 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
291 * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
293 * testsuite/20_util/specialized_algorithms/uninitialized_fill/
295 * testsuite/20_util/specialized_algorithms/uninitialized_fill_n/
297 * testsuite/25_algorithms/copy/58982.cc: New.
298 * testsuite/25_algorithms/copy_n/58982.cc: New.
300 2013-11-08 François Dumont <fdumont@gcc.gnu.org>
302 * include/debug/safe_iterator.h (_BeforeBeginHelper<>::_S_Is):
303 Take only a const safe iterator reference.
304 (_BeforeBeginHelper<>::_S_Is_beginnest): Likewise.
305 (__get_distance): Take only one type of iterator.
306 (_Safe_iterator<>::_M_valid_range<>): Not template anymore.
307 (_Safe_iterator<>::_M_get_sequence()): Return pointer to const
308 sequence from a const_iterator and a pointer to sequence from an
310 * include/debug/safe_iterator.tcc: Adapt.
311 * include/debug/safe_local_iterator.h
312 (_Safe_local_iterator<>::_M_valid_range<>): Not template anymore.
313 (_Safe_local_iterator<>::_M_get_sequence()): Return pointer to
314 const sequence from a const_iterator and a pointer to sequence
316 * include/debug/safe_local_iterator.tcc: Adapt.
317 * include/debug/forward_list
318 (_BeforeBeginHelper<std::__debug::forward_list<>>): Adapt.
320 2013-11-08 Jonathan Wakely <jwakely.gcc@gmail.com>
322 * include/bits/regex_automaton.h (__detail::_State): Split
323 non-dependent parts into new _State_base.
324 (__detail::_NFA): Likewise for _NFA_base. Use std::move() to avoid
325 copies when inserting _MatcherT and _StateT objects.
326 * include/bits/regex_automaton.tcc: Move member definitions to base
327 class. Qualify dependent names.
328 * include/bits/regex_compiler.h (__detail::_Compiler::_M_get_nfa): Make
329 non-const and use std::move to avoid copying.
330 * include/bits/regex_compiler.tcc: Likewise.
331 * include/bits/regex_executor.h (__detail::_Executor::_M_is_word): Use
332 array, so past-the-end iterator is valid.
334 * include/bits/regex_automaton.h (__detail::_State, __detail::_NFA,
335 __detail::_StateSeq): Remove redundant _CharT template parameters.
336 * include/bits/regex_automaton.tcc: Likewise.
337 * include/bits/regex_compiler.h (__detail::_Compiler): Likewise.
338 (__compile_nfa): Add object generator for _Compiler.
339 * include/bits/regex_compiler.tcc: Remove _CharT template parameters.
340 * include/bits/regex_executor.h: Likewise.
341 * include/bits/regex_executor.tcc: Likewise.
342 * include/bits/regex.h (basic_regex): Assert char_type matches. Use
343 __compile_nfa object generator. Remove _CharT template parameter.
345 * include/bits/regex_compiler.h (__detail::_AnyMatcher,
346 __detail::_CharMatcher, __detail::_BracketMatcher): Remove redundant
347 _CharT template parameters.
348 * include/bits/regex_compiler.tcc: Likewise.
350 * include/bits/regex_compiler.h (__detail::__compile_nfa): Overload
351 so that std::basic_string<C> and std::vector<C> iterators dispatch to
352 the const C* compiler.
354 * include/bits/regex_compiler.h (__detail::__has_contiguous_iter):
355 vector<bool> storage is not contiguous.
357 2013-11-06 Jonathan Wakely <jwakely.gcc@gmail.com>
359 * include/bits/regex_automaton.h (_S_opcode_word_boundry): Rename to
360 _S_opcode_word_boundary.
361 * include/bits/regex_automaton.tcc: Likewise.
362 * include/bits/regex_executor.h (__detail::_Executor::_M_word_boundry):
363 Rename to _M_word_boundary.
364 * include/bits/regex_executor.tcc: Likewise.
366 2013-11-05 Jonathan Wakely <jwakely.gcc@gmail.com>
368 N3655 C++1y TransformationTraits Redux
369 * include/std/type_traits (remove_const_t, remove_volatile_t,
370 remove_cv_t, add_const_t, add_volatile_t, add_cv_t, remove_reference_t,
371 add_lvalue_reference_t, add_rvalue_reference_t, make_signed_t,
372 make_unsigned_t, remove_extent_t, remove_all_extents_t,
373 remove_pointer_t, add_pointer_t, aligned_storage_t, decay_t,
374 enable_if_t, conditional_t, common_type_t, underlying_type_t,
375 result_of_t): Define.
376 * doc/xml/manual/status_cxx2014.xml: Update.
377 * testsuite/20_util/add_lvalue_reference/requirements/typedefs-3.cc:
379 * testsuite/20_util/add_rvalue_reference/requirements/typedefs-3.cc:
381 * testsuite/20_util/common_type/requirements/typedefs-3.cc: New.
382 * testsuite/20_util/conditional/requirements/typedefs-2.cc: New.
383 * testsuite/20_util/decay/requirements/typedefs-2.cc: New.
384 * testsuite/20_util/enable_if/requirements/typedefs-2.cc: New.
385 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
386 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
387 * testsuite/20_util/remove_reference/requirements/typedefs.cc: New.
388 * testsuite/20_util/result_of/requirements/typedefs.cc: New.
389 * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New.
390 * testsuite/20_util/common_type/requirements/typedefs-2.cc: Change to
392 * testsuite/20_util/decay/requirements/typedefs.cc: Likewise.
393 * testsuite/20_util/make_signed/requirements/typedefs-1.cc: Likewise.
394 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
396 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
398 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
401 2013-11-05 Jonathan Wakely <jwakely.gcc@gmail.com>
403 * doc/xml/manual/status_cxx2011.xml: Document aligned_union as
406 2013-11-05 Jonathan Wakely <jwakely.gcc@gmail.com>
407 Paolo Carlini <paolo.carlini@oracle.com>
409 * include/experimental/optional: Use __and_<> and __not_<> in
410 conditions. Style fixes.
411 (__constexpr_addressof, swap): Make inline.
412 * testsuite/experimental/optional/cons/copy.cc: Adjust constants for
414 * testsuite/experimental/optional/cons/move.cc: Likewise.
415 * testsuite/experimental/optional/cons/value.cc: Likewise.
416 * testsuite/experimental/optional/constexpr/cons/value.cc: Likewise.
418 2013-11-01 Michael Brune <lucdanton@free.fr>
420 * include/bits/enable_special_members.h: New.
421 * include/experimental/optional: New.
422 * include/Makefile.am: Handle include/experimental.
423 * include/Makefile.in: Regenerate.
424 * testsuite/libstdc++-dg/conformance.exp: Run tests from
425 testsuite/experimental sub-directory.
426 * testsuite/experimental/optional/assignment/1.cc: New.
427 * testsuite/experimental/optional/assignment/2.cc: New.
428 * testsuite/experimental/optional/assignment/3.cc: New.
429 * testsuite/experimental/optional/assignment/4.cc: New.
430 * testsuite/experimental/optional/assignment/5.cc: New.
431 * testsuite/experimental/optional/assignment/6.cc: New.
432 * testsuite/experimental/optional/cons/copy.cc: New.
433 * testsuite/experimental/optional/cons/default.cc: New.
434 * testsuite/experimental/optional/cons/move.cc: New.
435 * testsuite/experimental/optional/cons/value.cc: New.
436 * testsuite/experimental/optional/constexpr/cons/default.cc: New.
437 * testsuite/experimental/optional/constexpr/cons/value.cc: New.
438 * testsuite/experimental/optional/constexpr/in_place.cc: New.
439 * testsuite/experimental/optional/constexpr/make_optional.cc: New.
440 * testsuite/experimental/optional/constexpr/nullopt.cc: New.
441 * testsuite/experimental/optional/constexpr/observers/1.cc: New.
442 * testsuite/experimental/optional/constexpr/observers/2.cc: New.
443 * testsuite/experimental/optional/constexpr/observers/3.cc: New.
444 * testsuite/experimental/optional/constexpr/observers/4.cc: New.
445 * testsuite/experimental/optional/constexpr/observers/5.cc: New.
446 * testsuite/experimental/optional/constexpr/relops/1.cc: New.
447 * testsuite/experimental/optional/constexpr/relops/2.cc: New.
448 * testsuite/experimental/optional/constexpr/relops/3.cc: New.
449 * testsuite/experimental/optional/constexpr/relops/4.cc: New.
450 * testsuite/experimental/optional/constexpr/relops/5.cc: New.
451 * testsuite/experimental/optional/constexpr/relops/6.cc: New.
452 * testsuite/experimental/optional/in_place.cc: New.
453 * testsuite/experimental/optional/make_optional.cc: New.
454 * testsuite/experimental/optional/nullopt.cc: New.
455 * testsuite/experimental/optional/observers/1.cc: New.
456 * testsuite/experimental/optional/observers/2.cc: New.
457 * testsuite/experimental/optional/observers/3.cc: New.
458 * testsuite/experimental/optional/observers/4.cc: New.
459 * testsuite/experimental/optional/observers/5.cc: New.
460 * testsuite/experimental/optional/relops/1.cc: New.
461 * testsuite/experimental/optional/relops/2.cc: New.
462 * testsuite/experimental/optional/relops/3.cc: New.
463 * testsuite/experimental/optional/relops/4.cc: New.
464 * testsuite/experimental/optional/relops/5.cc: New.
465 * testsuite/experimental/optional/relops/6.cc: New.
466 * testsuite/experimental/optional/requirements.cc: New.
467 * testsuite/experimental/optional/swap/1.cc: New.
469 2013-11-01 Jonathan Wakely <jwakely.gcc@gmail.com>
471 * include/bits/stl_function.h (logical_not<void>): Add noexcept.
473 2013-11-01 Paolo Carlini <paolo.carlini@oracle.com>
476 * include/c_global/cstdio: Undef getchar.
478 2013-11-01 Jonathan Wakely <jwakely.gcc@gmail.com>
480 N3421 C++1y Transparent functors
481 * include/bits/stl_function.h (plus<void>, minus<void>,
482 multiplies<void>, divides<void>, modulus<void>, negate<void>,
483 equal_to<void>, not_equal_to<void>, greater<void>, less<void>,
484 greater_equal<void>, less_equal<void>, logical_and<void>,
485 logical_or<void>, logical_not<void>, bit_and<void>, bit_or<void>,
486 bit_xor<void>, bit_not<void>): Define.
487 * doc/xml/manual/status_cxx2014.xml: Update.
488 * testsuite/20_util/function_objects/comparisons_void.cc: New.
490 2013-10-31 Jonathan Wakely <jwakely.gcc@gmail.com>
492 * include/std/tuple (_Index_tuple, _Build_index_tuple): Move to
494 * include/std/utility (integer_sequence, make_integer_sequence,
495 index_sequence, make_index_sequence, index_sequence_for): Define.
496 * doc/xml/manual/status_cxx2014.xml: Update.
497 * testsuite/20_util/integer_sequence/intseq.cc: New.
498 * testsuite/20_util/integer_sequence/requirements/typedefs.cc: New.
500 2013-10-31 Steve Ellcey <sellcey@mips.com>
502 * configure.ac: Add header checks for fenv.h and complex.h.
503 * configure: Regenerate.
505 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
507 Implement C++14 digit separators.
508 * include/include/bits/parse_numbers.h: Change struct _Digit<_Base, '`'>
509 to struct _Digit<_Base, '\''>.
511 2013-10-31 Paolo Carlini <paolo.carlini@oracle.com>
513 * testsuite/20_util/default_delete/48631_neg.cc: Tweak dg-prune.
515 2013-10-30 Jonathan Wakely <jwakely.gcc@gmail.com>
517 * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: Fix
518 and enable VERIFY tests.
520 2013-10-30 Jonathan Wakely <jwakely.gcc@gmail.com>
522 * include/bits/shared_ptr (__shared_ptr): Assert non-void pointer.
523 * include/bits/shared_ptr (default_delete): Likewise.
524 * testsuite/20_util/shared_ptr/cons/58839.cc: Do not use
525 default_delete<void>.
526 * testsuite/20_util/shared_ptr/cons/void_neg.cc: New.
527 * testsuite/20_util/default_delete/void_neg.cc: New.
528 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line numbers.
529 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
531 2013-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
534 * include/bits/shared_ptr_base.h
535 (__shared_ptr<T>::__shared_ptr(unique_ptr<U,D>&&)): Only use addressof
536 when unique_ptr<U,D>::pointer is not a built-in pointer type.
537 * testsuite/20_util/shared_ptr/cons/58839.cc: New.
538 * testsuite/20_util/enable_shared_from_this/members/assign.cc: New.
539 * testsuite/20_util/enable_shared_from_this/members/unique_ptr.cc: New.
541 2013-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
543 * include/bits/hashtable.cc (__access_protected_ctor): Define and use
544 new type instead of _Hashtable_ebo_helper.
545 * testsuite/23_containers/unordered_set/
546 not_default_constructible_hash_neg.cc: Adjust line number.
548 2013-10-28 Tim Shen <timshen91@gmail.com>
550 * regex_executor.tcc: Add comments.
552 2013-10-26 Tim Shen <timshen91@gmail.com>
554 * include/bits/regex.h: Remove unnecessary friends.
555 * include/bits/regex.tcc (__regex_algo_impl<>): Move __get_executor
557 * include/bits/regex_executor.h: Remove _DFSExecutor and _BFSExecutor;
558 they are merged into _Executor. Eliminate quantifier tracking part, so
560 * include/bits/regex_executor.tcc: Implement _Executor.
561 * testsuite/28_regex/algorithms/regex_match/ecma/char/ungreedy.cc: New.
562 * testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: Adjust
564 * testsuite/performance/28_regex/split.h: New.
565 * testsuite/performance/28_regex/split_bfs.cc: New.
566 * testsuite/util/testsuite_regex.h: Adjust behavior of two-executors
567 agreement judger: do not compare match_results when executor return
570 2013-10-25 François Dumont <fdumont@gcc.gnu.org>
572 * include/debug/formatter.h (__check_singular): Add const on
574 * include/debug/functions.h (__check_singular): Likewise.
575 (__check_singular(const _Safe_iterator<_Ite, _Seq>&)): Delete.
576 (__check_dereferenceable(const _Ite&)): Add const on iterator
578 (__check_dereferenceable(const _Safe_local_iterator<>&)): New.
579 * include/debug/safe_iterator.h (__check_singular_aux): Review
581 * testsuite/23_containers/vector/debug/debug_functions.cc: New.
582 * testsuite/23_containers/unordered_set/debug/debug_functions.cc:
585 2013-10-23 Chris Jefferson <chris@bubblescope.net>
586 Paolo Carlini <paolo.carlini@oracle.com>
588 * testsuite/util/testsuite_containergen.h: New.
589 * testsuite/util/testsuite_iterators.h (test_container<>::val): Add.
590 * testsuite/25_algorithms/nth_element/random_test.cc: New, use the
592 * testsuite/25_algorithms/partial_sort/random_test.cc: Likewise.
593 * testsuite/25_algorithms/partial_sort_copy/random_test.cc: Likewise.
594 * testsuite/25_algorithms/sort/random_test.cc: Likewise.
596 2013-10-23 Jason Merrill <jason@redhat.com>
598 * include/bits/hashtable.h (_Hashtable): Force EBO for _Hash_code_base.
600 2013-10-23 Paolo Carlini <paolo.carlini@oracle.com>
603 * include/std/chrono (minutes, hours): Change typedefs to uniformly
605 * testsuite/20_util/duration/arithmetic/58850.cc: New.
607 2013-10-23 Paolo Carlini <paolo.carlini@oracle.com>
609 * testsuite/decimal/pr58815.cc: Fix thinko.
611 2013-10-23 Paolo Carlini <paolo.carlini@oracle.com>
614 * include/decimal/decimal (decimal32::operator long long(),
615 decimal64::operator long long(), decimal128::operator long long()):
616 Add in c++11 mode per n3407.
617 * testsuite/decimal/pr58815.cc: New.
619 2013-10-22 Edward Smith-Rowland <3dw4rd@verizon.net>
621 * include/bits/basic_string.h (operator""s): Remove space between quotes
622 and literal identifier.
623 * include/std/chrono (operator""h, operator""min, operator""s,
624 operator""ms, operator""us, operator""ns): Ditto.
626 2013-10-22 Ed Smith-Rowland <3dw4rd@verizon.net>
628 Implement N3779 - User-defined Literals for std::complex,
629 part 2 of UDL for Standard Library Types
630 * include/std/complex: Add complex literal operators.
631 * testsuite/26_numerics/complex/literals/types.cc: New.
632 * testsuite/26_numerics/complex/literals/values.cc: New.
634 2013-10-21 Edward Smith-Rowland <3dw4rd@verizon.net>
638 * include/tr2/dynamic_bitset
639 (__dynamic_bitset_base<_WordT, _Alloc>::_M_are_all_aux,
640 __dynamic_bitset_base<_WordT, _Alloc>::_M_do_count):
641 Use __builtin_popcountll() instead of __builtin_popcountl().
642 * include/tr2/dynamic_bitset.tcc
643 (__dynamic_bitset_base<_WordT, _Alloc>::_M_do_find_first,
644 __dynamic_bitset_base<_WordT, _Alloc>::_M_do_find_next):
645 Use __builtin_ctzll() instead of __builtin_ctzl().
647 2013-10-20 Tim Shen <timshen91@gmail.com>
649 * include/bits/regex.h: Remove virtual class _Automaton.
650 * include/bits/regex_automaton.h: Likewise.
651 * include/bits/regex.tcc: Adjust comment for policy changing.
652 * include/bits/regex_executor.h: Update comments of complexity.
653 * include/bits/regex_executor.tcc: Adjust executor choosing
654 policy. Now DFS executor is the default one.
655 * testsuite/util/testsuite_regex.h (regex_match_debug,
656 regex_search_debug): Adjust for policy changing.
658 2013-10-20 Chris Jefferson <chris@bubblescope.net>
659 Paolo Carlini <paolo.carlini@oracle.com>
662 * include/bits/stl_algo.h (__unguarded_partition_pivot): Change
663 __last - 2 to __last - 1.
664 * testsuite/25_algorithms/nth_element/58800.cc: New
666 2013-10-18 Edward Smith-Rowland <3dw4rd@verizon.net>
669 * include/tr2/dynamic_bitset (_M_resize, resize): Use input value
670 to set bits; (_M_do_left_shift, _M_do_right_shift, _M_do_to_ulong,
671 _M_do_to_ullong, _M_do_find_first, _M_do_find_next, _M_copy_from_ptr,
672 operator>>): Move long methods outline to...
673 * include/tr2/dynamic_bitset.tcc: New.
674 * include/Makefile.am: Add dynamic_bitset.tcc.
675 * include/Makefile.in: Add dynamic_bitset.tcc.
676 * testsuite/tr2/dynamic_bitset/pr58729.cc: New.
678 2013-10-18 Tim Shen <timshen91@gmail.com>
680 * include/bits/regex_scanner.tcc: (_Scanner<>::_M_scan_normal,
681 _Scanner<>::_M_eat_escape_ecma, _Scanner<>::_M_eat_escape_posix,
682 _Scanner<>::_M_eat_escape_awk): Narrow character before finding in maps.
683 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/cjk_match.cc:
686 2013-10-17 Tim Shen <timshen91@gmail.com>
688 * include/bits/regex.h (regex_token_iterator<>::regex_token_iterator):
689 Fix initialization orders in initialization list and add explicit braces
690 for potentially ambiguous(actually not) `else` branch to eliminate
692 * include/bits/regex_automaton.h (_NFA<>::_NFA): Likewise.
693 * include/bits/regex_compiler.h (_CharMatcher<>::_CharMatcher,
694 _BracketMatcher<>::_BracketMatcher): Likewise.
695 * include/bits/regex_compiler.tcc (_Compiler<>::_Compiler,
696 _Compiler<>::_M_atom): Likewise.
697 * include/bits/regex_executor.h (_Executor<>::_Executor): Likewise.
698 * include/bits/regex_executor.tcc (_DFSExecutor<>::_M_dfs,
699 _Executor<>::_M_word_boundry): Likewise.
700 * include/bits/regex_scanner.tcc (_Scanner<>::_Scanner,
701 _Scanner<>::_M_eat_class): Likewise.
702 * include/bits/regex.tcc (__regex_algo_impl<>,
703 regex_iterator<>::operator++): Likewise, and remove unused typedef.
705 2013-10-16 Tim Shen <timshen91@gmail.com>
707 * include/bits/regex.h (regex_token_iterator<>::regex_token_iterator):
708 Add initialization for _M_has_m1.
709 * include/bits/regex.tcc (regex_token_iterator<>::operator=): Add return
712 2013-10-15 Diego Novillo <dnovillo@google.com>
714 * testsuite/20_util/exchange/1.cc: Add missing function
717 2013-10-15 Tim Shen <timshen91@gmail.com>
720 * include/bits/regex_automaton.h (_Automaton<>::~_Automaton): Fix memory
722 * include/bits/regex_executor.h (_Executor<>::~_Executor): Likewise.
724 2013-10-11 H.J. Lu <hongjiu.lu@intel.com>
726 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
728 2013-10-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
730 * testsuite/29_atomics/atomic/cons/49445.cc
731 (dg-require-atomic-builtins): Add.
733 2013-10-09 Jonathan Wakely <jwakely.gcc@gmail.com>
735 * testsuite/20_util/shared_ptr/cons/58659.cc: Use VERIFY instead of
738 2013-10-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
740 * testsuite/20_util/shared_ptr/cons/58659.cc: Use __builtin_abort().
742 2013-10-08 Jonathan Wakely <jwakely.gcc@gmail.com>
744 * testsuite/*: Remove stray semi-colons after function definitions.
746 2013-10-08 Jonathan Wakely <jwakely.gcc@gmail.com>
749 * include/bits/shared_ptr_base.h (__shared_count::__shared_count(P,D)):
750 Delegate to constructor taking allocator.
751 (__shared_count::_S_create_from_up): Inline into ...
752 (__shared_count::__shared_count(unique_ptr<Y,D>&&): Here. Use
753 std::conditional instead of constrained overloads. Allocate memory
754 using the allocator type that will be used for deallocation.
755 * testsuite/20_util/shared_ptr/cons/58659.cc: New.
756 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust.
758 2013-10-08 Tim Shen <timshen91@gmail.com>
760 * include/bits/regex_executor.h: Add _TodoList class.
761 * include/bits/regex_executor.tcc (_BFSExecutor<>::_M_main): Add
762 _M_match_stack and _M_stack to make everything faster. Break if
763 _M_stack is empty, to reduce unnecessary idling.
764 * testsuite/performance/28_regex/split.cc: New.
766 2013-10-06 Tim Shen <timshen91@gmail.com>
768 * include/bits/regex.h: (regex_token_iterator<>::regex_token_iterator):
770 * include/bits/regex.tcc: (regex_replace<>): Remove default parameter.
772 2013-10-06 Tim Shen <timshen91@gmail.com>
774 * include/bits/regex.h (__regex_algo_impl<>, regex_match<>,
775 regex_search<>): New abstract function for regex_match and regex_search.
776 * include/bits/regex.tcc (__regex_algo_impl<>): Implement.
777 * include/bits/regex_executor.h
778 (_Executor<>::_M_lookahead,
779 _DFSExecutor<>::_M_clone,
780 _BFSExecutor<>::_M_clone): Let _M_clone to choose which executor to
782 * include/bits/regex_executor.tcc (__get_executor<>): Update the
783 definition to support __policy.
784 * testsuite/28_regex/algorithms/regex_match/awk/cstring_01.cc: Use
786 * testsuite/28_regex/algorithms/regex_match/basic/empty_range.cc: Same.
787 * testsuite/28_regex/algorithms/regex_match/basic/string_01.cc: Same.
788 * testsuite/28_regex/algorithms/regex_match/basic/string_range_00_03.cc:
790 * testsuite/28_regex/algorithms/regex_match/basic/string_range_01_03.cc:
792 * testsuite/28_regex/algorithms/regex_match/basic/string_range_02_03.cc:
794 * testsuite/28_regex/algorithms/regex_match/ecma/char/53622.cc: Same.
795 * testsuite/28_regex/algorithms/regex_match/ecma/char/57173.cc: Same.
796 * testsuite/28_regex/algorithms/regex_match/ecma/char/58576.cc: Same.
797 * testsuite/28_regex/algorithms/regex_match/ecma/char/anymatcher.cc:
799 * testsuite/28_regex/algorithms/regex_match/ecma/char/backref.cc: Same.
800 * testsuite/28_regex/algorithms/regex_match/ecma/char/empty_range.cc:
802 * testsuite/28_regex/algorithms/regex_match/ecma/char/emptygroup.cc:
804 * testsuite/28_regex/algorithms/regex_match/ecma/char/hex.cc: Same.
805 * testsuite/28_regex/algorithms/regex_match/ecma/char/quoted_char.cc:
807 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/anymatcher.cc:
809 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/hex.cc: Same.
810 * testsuite/28_regex/algorithms/regex_match/extended/
811 string_bracket_01.cc: Same.
812 * testsuite/28_regex/algorithms/regex_match/extended/cstring_plus.cc:
814 * testsuite/28_regex/algorithms/regex_match/extended/
815 string_questionmark.cc: Same.
816 * testsuite/28_regex/algorithms/regex_match/extended/cstring_range.cc:
818 * testsuite/28_regex/algorithms/regex_match/extended/string_any.cc:
820 * testsuite/28_regex/algorithms/regex_match/extended/
821 string_dispatch_01.cc: Same.
822 * testsuite/28_regex/algorithms/regex_match/extended/
823 string_range_00_03.cc: Same.
824 * testsuite/28_regex/algorithms/regex_match/extended/
825 string_range_01_03.cc: Same.
826 * testsuite/28_regex/algorithms/regex_match/extended/
827 string_range_02_03.cc: Same.
828 * testsuite/28_regex/algorithms/regex_match/extended/wstring_locale.cc:
830 * testsuite/28_regex/algorithms/regex_search/basic/string_01.cc: Same.
831 * testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc: Same.
832 * testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: Same.
833 * testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: Same.
834 * testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc: Same.
835 * testsuite/28_regex/match_results/format.cc: Same.
836 * testsuite/util/testsuite_regex.h
837 (regex_match_debug<>, regex_search_debug<>): Implement.
839 2013-10-06 Oleg Endo <olegendo@gcc.gnu.org>
840 Paolo Carlini <paolo.carlini@oracle.com>
843 * include/c_global/cmath (signbit): Use __builtin_signbitf and
846 2013-10-03 Tim Shen <timshen91@gmail.com>
848 * include/bits/regex_executor.tcc (_DFSExecutor<>::_M_dfs): Fix wrong
849 backup variable initialization.
851 2013-10-03 John Woolverton <jdwoolverton@gmail.com>
854 * include/std/vector: Fix garbled line in HP Copyright.
856 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
858 * libsupc++/del_op.cc (operator delete): Don't test for 0 before free.
859 * libsupc++/del_opnt.cc (free): Only declare if freestanding.
860 (operator delete): Qualify free with std::.
862 2013-10-02 Jonathan Wakely <jwakely.gcc@gmail.com>
863 Daniel Krugler <daniel.kruegler@gmail.com>
866 * include/std/functional (function::_CheckResult): Move to namespace
867 scope and rename to __check_func_return_type.
868 * testsuite/20_util/function/58569.cc: New.
870 2013-10-02 Jonathan Wakely <jwakely.gcc@gmail.com>
873 * include/bits/shared_ptr_base.h
874 (_Sp_counted_ptr_inplace::_M_get_deleter()): Cast away cv-quals.
875 * testsuite/20_util/shared_ptr/creation/58594.cc: New.
877 2013-10-02 Tim Shen <timshen91@gmail.com>
879 * include/bits/regex_compiler.h
880 (_BracketMatcher<>::_M_add_equivalence_class): Implement it correctly.
881 * include/bits/regex_compiler.tcc (_BracketMatcher<>::operator()):
882 Add _M_equiv_set support.
883 * testsuite/28_regex/algorithms/regex_match/extended/
884 cstring_bracket_01.cc: Add new "[[=a=]]" testcase.
886 2013-10-01 Tim Shen <timshen91@gmail.com>
888 * doc/xml/manual/status_cxx2011.xml: Change "is not implemented" to
889 "is not correctly implemented".
891 2013-10-01 Tim Shen <timshen91@gmail.com>
893 * doc/xml/manual/status_cxx2011.xml: Update regex status.
894 * include/bits/regex.h (match_results<>::begin,
895 match_results<>::cbegin, match_results<>::end, match_results<>::cend):
896 [28.10.3.13], [28.10.3.14] Always iterate the range [0, size()-2).
898 2013-10-01 François Dumont <fdumont@gcc.gnu.org>
900 * include/parallel/algobase.h (mismatch, equal): Provide parallel
901 version for N3671 overloads.
903 2013-10-01 Paul Pluzhnikov <ppluzhnikov@google.com>
905 * src/c++11/snprintf_lite.cc: Add missing
906 _GLIBCXX_{BEGIN,END}_NAMESPACE_VERSION
908 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
910 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Also check for
911 _Unwind_SjLj_Register when deciding if to set enable_sjlj_exceptions.
912 * configure: Regenerate.
914 2013-10-01 Tim Shen <timshen91@gmail.com>
917 * include/bits/regex_automaton.tcc (_NFA<>::_M_eliminate_dummy)
918 (_StateSeq<>::_M_clone): Add _S_opcode_subexpr_lookahead branch.
919 * testsuite/28_regex/algorithms/regex_match/ecma/char/58576.cc: New.
921 2013-09-30 Paolo Carlini <paolo.carlini@oracle.com>
923 * include/parallel/algo.h (__find_switch): Use __binder2nd.
925 2013-09-30 Chris Jefferson <chris@bubblescope.net>
928 * include/bits/stl_algo.h (__move_median_first): Rename to
929 __move_median_to_first, change to take an addition argument.
930 (__unguarded_partition_pivot): Adjust.
931 * testsuite/performance/25_algorithms/sort.cc: New.
932 * testsuite/performance/25_algorithms/sort_heap.cc: Likewise.
933 * testsuite/performance/25_algorithms/stable_sort.cc: Likewise.
935 2013-09-28 François Dumont <fdumont@gcc.gnu.org>
937 * include/bits/stl_algo.h (remove_copy, remove_copy_if): Declare
939 (rotate_copy, stable_partition, partial_sort_copy): Likewise.
940 (lower_bound, upper_bound, equal_range, inplace_merge): Likewise.
941 (includes, next_permutation, prev_permutation): Likewise.
942 (replace_copy, replace_copy_if, is_sorted_until): Likewise.
943 (minmax_element, is_permutation, adjacent_find): Likewise.
944 (count, count_if, search, search_n, merge): Likewise.
945 (set_intersection, set_difference): Likewise.
946 (set_symmetric_difference, min_element, max_element): Likewise.
947 * include/bits/stl_algobase.h (lower_bound): Likewise.
948 (lexicographical_compare, mismatch): Likewise.
950 2013-09-28 Tim Shen <timshen91@gmail.com>
952 * include/bits/regex_scanner.tcc (_Scanner<>::_M_eat_escape_posix):
953 Let ordinary char escaping in POSIX be valid.
954 * testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc: Test this
957 2013-09-27 François Dumont <fdumont@gcc.gnu.org>
959 * include/bits/predefined_ops.h: New.
960 * include/bits/stl_heap.h: Include <bits/predefined_ops.h>.
961 (__is_heap_until, __push_heap, __adjust_heap, __pop_heap): Remove
965 (make_heap): Adapt to use latter.
967 (sort_heap): Adapt to use latter.
968 * include/bits/algobase.h: Include <bits/predefined_ops.h>.
969 (__lexicographical_compare_impl): New.
970 (__lexicographical_compare<false>::__lc): Adapt to use latter.
971 (lexicographical_compare): Likewise.
972 (__lower_bound): New.
973 (lower_bound): Adapt to use latter.
974 (equal): Use _GLIBCXX_STD_A::equal in N3671 overloads.
976 (mismatch): Use latter.
977 * include/bits/algo.h: Include <bits/predefined_ops.h>. Remove
978 <functional> include.
979 (__move_median_first, __find, __find_if, __find_if_not): Remove
981 (__find_end): Likewise.
982 (__search_n): Rename into ...
983 (__search_n_aux): ... this.
984 (__search_n): Renew, use latter.
985 (search_n): Use latter.
987 (search): Use latter.
988 (__find_end): Likewise.
989 (__remove_copy_if): New.
990 (remove_copy): Use latter.
991 (__adjacent_find): New.
992 (adjacent_find): Use latter.
994 (unique): Use latter.
995 (__unique_copy): Remove algo duplication.
996 (__stable_partition): New.
997 (stable_partition): Use latter.
998 (__heap_select): Remove algo duplication, use __make_heap.
999 (__partial_sort): New, use latter.
1000 (partial_sort): Use latter.
1001 (__partial_sort_copy): New.
1002 (partial_sort_copy): Use latter.
1003 (__unguarded_linear_insert, __insertion_sort): Remove algo
1005 (__unguarded_insertion_sort, __final_insertion_sort): Likewise.
1006 (__unguarded_partition, __unguarded_partition_pivot): Likewise.
1007 (__partial_sort): New.
1008 (partial_sort): Use latter.
1011 (lower_bound): Use __lower_bound.
1012 (__upper_bound): New.
1013 (upper_bound): Use latter.
1014 (__equal_range): New.
1015 (equal_range): Use latter.
1016 (__move_merge_adaptive, __move_merge_adaptive_backward): Remove
1018 (__merge_adaptive, __merge_without_buffer): Likewise.
1019 (__inplace_merge): New.
1020 (inplace_merge): Use latter.
1021 (__move_merge, __merge_sort_loop, __chunk_insertion_sort): Remove
1023 (__merge_sort_with_buffer, __stable_sort_adaptive): Likewise.
1024 (__inplace_stable_sort): Likewise.
1026 (includes): Use latter.
1027 (__next_permutation): New.
1028 (next_permutation): Use latter.
1029 (__prev_permutation): New.
1030 (prev_permutation): Use latter.
1031 (__replace_copy_if): New.
1032 (replace_copy): Use latter.
1033 (__is_sorted_until): New.
1034 (is_sorted_unitl): Use latter.
1035 (__minmax_element): New.
1036 (minmax_element): Use latter.
1037 (__is_permutation): New.
1038 (is_permutation): Use latter.
1039 (__adjacent_find): New.
1040 (adjacent_find): Use latter.
1042 (count): Use latter.
1043 (count_if): Likewise.
1045 (merge): Use latter.
1046 (__stable_sort): New.
1047 (stable_sort): Use latter.
1049 (set_union): Use latter.
1050 (__set_intersection): New.
1051 (set_intersection): Use latter.
1052 (__set_difference): New.
1053 (set_difference): Use latter.
1054 (__set_symmetric_difference): New.
1055 (set_symmetric_difference): Use latter.
1056 (__min_element): New.
1057 (min_element): Use latter.
1058 (__max_element): New.
1059 (max_element): Use latter.
1060 * include/Makefile.am: Add predefined_ops.h.
1061 * include/Makefile.in: Regenerate.
1062 * include/parallel/algobase.h (equal, mismatch): Add overloads
1064 * testsuite/25_algorithms/is_permutation/vectorbool.cc: New.
1065 * testsuite/25_algorithms/adjacent_find/vectorbool.cc: Likewise.
1066 * testsuite/25_algorithms/find/vectorbool.cc: Likewise.
1067 * testsuite/25_algorithms/find_if/vectorbool.cc: Likewise.
1068 * testsuite/25_algorithms/find_first_of/vectorbool.cc: Likewise.
1069 * testsuite/25_algorithms/heap/vectorbool.cc: Likewise.
1070 * testsuite/25_algorithms/find_end/vectorbool.cc: Likewise.
1071 * testsuite/25_algorithms/find_if_not/vectorbool.cc: Likewise.
1073 2013-09-27 Jonathan Wakely <jwakely.gcc@gmail.com>
1076 * include/std/functional
1077 (_Function_base::_Base_manager::_M_not_empty_function): Fix overload
1079 * testsuite/20_util/function/cons/57465.cc: New.
1081 2013-09-26 Tim Shen <timshen91@gmail.com>
1083 * regex_error.h: Remove _S_error_last to follow the standard.
1084 * regex_scanner.tcc:
1085 (_Scanner<_FwdIter>::_M_scan_in_brace): Change error_brace to
1087 (_Scanner<>::_M_eat_escape_posix): Extended doesn't support
1089 * testsuite/28_regex/algorithms/regex_match/ecma/char/53622.cc:
1090 Move here from ../../extended.
1091 * testsuite/28_regex/algorithms/regex_match/ecma/char/57173.cc:
1094 2013-09-25 Marc Glisse <marc.glisse@inria.fr>
1097 * include/bits/forward_list.h (_Fwd_list_node_base::_M_transfer_after):
1099 (_Fwd_list_iterator) [_Fwd_list_iterator, operator*, operator->,
1100 operator++, operator==, operator!=, _M_next]: Likewise.
1101 (_Fwd_list_const_iterator) [_Fwd_list_const_iterator, operator*,
1102 operator->, operator++, operator==, operator!=, _M_next]: Likewise.
1103 (operator==(const _Fwd_list_iterator&, const _Fwd_list_const_iterator&),
1104 operator!=(const _Fwd_list_iterator&, const _Fwd_list_const_iterator&)):
1106 * include/bits/hashtable_policy.h (_Hash_node_base::_Hash_node_base,
1107 _Hash_node::_M_next, _Node_iterator_base::_Node_iterator_base,
1108 _Node_iterator_base::_M_incr, operator==(const _Node_iterator_base&,
1109 const _Node_iterator_base&), operator!=(const _Node_iterator_base&,
1110 const _Node_iterator_base&)): Likewise.
1111 (_Node_iterator) [_Node_iterator, operator*, operator->, operator++]:
1113 (_Node_const_iterator) [_Node_const_iterator, operator*, operator->,
1114 operator++]: Likewise.
1115 * include/debug/safe_iterator.h (_Safe_iterator) [_Safe_iterator,
1116 operator=, operator*, operator->, operator++, operator--, operator[],
1117 operator+=, operator+, operator-=, operator-, base, operator _Iterator]:
1119 (operator==(const _Safe_iterator&, const _Safe_iterator&),
1120 operator!=(const _Safe_iterator&, const _Safe_iterator&),
1121 operator<(const _Safe_iterator&, const _Safe_iterator&),
1122 operator<=(const _Safe_iterator&, const _Safe_iterator&),
1123 operator>(const _Safe_iterator&, const _Safe_iterator&),
1124 operator>=(const _Safe_iterator&, const _Safe_iterator&),
1125 operator-(const _Safe_iterator&, const _Safe_iterator&),
1126 operator+(difference_type, const _Safe_iterator&)): Likewise.
1127 * include/profile/iterator_tracker.h (__iterator_tracker)
1128 [__iterator_tracker, base, operator _Iterator, operator->, operator++,
1129 operator--, operator=, operator*, operator[], operator+=, operator+,
1130 operator-=, operator-]: Likewise.
1131 (operator==(const __iterator_tracker&, const __iterator_tracker&),
1132 operator!=(const __iterator_tracker&, const __iterator_tracker&),
1133 operator<(const __iterator_tracker&, const __iterator_tracker&),
1134 operator<=(const __iterator_tracker&, const __iterator_tracker&),
1135 operator>(const __iterator_tracker&, const __iterator_tracker&),
1136 operator>=(const __iterator_tracker&, const __iterator_tracker&),
1137 operator-(const __iterator_tracker&, const __iterator_tracker&),
1138 operator+(difference_type, const __iterator_tracker&)): Likewise.
1140 2013-09-24 Marc Glisse <marc.glisse@inria.fr>
1144 * include/bits/basic_string.h (basic_string)
1145 [basic_string(basic_string&&)]: Make the noexcept conditional.
1146 [operator=(basic_string&&), assign(basic_string&&)]: Link to PR 58265.
1147 [begin(), end(), rbegin(), rend(), clear]: Remove noexcept.
1148 [pop_back]: Comment on the lack of noexcept.
1149 * include/debug/string (basic_string) [basic_string(const _Allocator&),
1150 basic_string(basic_string&&), begin(), end(), rbegin(), rend(), clear,
1151 operator[](size_type), pop_back]: Comment out noexcept, until vstring
1152 replaces basic_string.
1154 2013-09-24 Tim Shen <timshen91@gmail.com>
1156 * include/Makefile.am: Add regex.tcc.
1157 * include/Makefile.in: Regenerate.
1158 * include/bits/regex.h: Remove definitions to regex.tcc.
1159 * include/bits/regex.tcc: New.
1160 (match_results::format, regex_replace): Implement;
1161 * include/bits/regex_compiler.h: Move _M_flags to the top of class
1162 member list, because other members' initialization depend on it.
1163 * include/bits/regex_compiler.tcc
1164 (_Compiler<>::_Compiler): Adjust member initializations.
1165 (_Compiler<>::_M_quantifier): Fix ungreedy interval quantifier.
1166 * include/bits/regex_executor.h: Remove _RegexT from _*Executor classes.
1167 In the future, all regex classes may refactor to *Impl style.
1168 * include/bits/regex_executor.tcc (_Executor::_M_set_results):
1169 Merge identical code from _*Executor classes.
1170 * testsuite/28_regex/algorithms/regex_match/extended/
1171 string_dispatch_01.cc (fake_match<>): Adjust the hacking-style testcase
1172 caller for new __get_executors interface.
1173 * testsuite/28_regex/algorithms/regex_replace/char/basic_replace.cc:
1175 * testsuite/28_regex/match_results/format.cc: New.
1176 * testsuite/28_regex/traits/char/lookup_collatename.cc: Remove digraph
1178 * testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: Likewise.
1180 2013-09-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1182 * src/c++11/snprintf_lite.cc (__concat_size_t): Use
1183 unsigned long long conditionally.
1185 2013-09-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1187 * src/c++11/snprintf_lite.cc (__concat_size_t): Use only
1188 std::__int_to_char<unsigned long long>()
1190 2013-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
1192 * include/bits/functexcept.h (__throw_out_of_range_fmt): New.
1193 * src/c++11/functexcept.cc (__throw_out_of_range_fmt): New.
1194 * src/c++11/snprintf_lite.cc: New.
1195 * src/c++11/Makefile.am: Add snprintf_lite.cc.
1196 * src/c++11/Makefile.in: Regenerate.
1197 * config/abi/pre/gnu.ver: Add _ZSt24__throw_out_of_range_fmtPKcz.
1198 * include/std/array (at): Use __throw_out_of_range_fmt.
1199 * include/debug/array (at): Likewise.
1200 * include/profile/array (at): Likewise.
1201 * include/std/bitset (_M_check_initial_position, _M_check): New.
1202 (bitset::bitset): Use _M_check_initial_position.
1203 (set, reset, flip, test): Use _M_check.
1204 * include/ext/vstring.h (_M_check, at): Use __throw_out_of_range_fmt.
1205 * include/bits/stl_vector.h (_M_range_check): Likewise.
1206 * include/bits/stl_bvector.h (_M_range_check): Likewise.
1207 * include/bits/stl_deque.h (_M_range_check): Likewise.
1208 * include/bits/basic_string.h (_M_check, at): Likewise.
1209 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Adjust.
1210 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise.
1211 * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc:
1213 * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc:
1215 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Likewise.
1216 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise.
1217 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1219 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1221 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc: Likewise.
1222 * testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc:
1224 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
1225 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Likewise.
1226 * testsuite/util/exception/safety.h (generate): Use __throw_out_of_range_fmt.
1228 2013-09-20 Jakub Jelinek <jakub@redhat.com>
1231 * testsuite/lib/libstdc++.exp (libstdc++_init): Prepend
1232 -fdiagnostics-color=never to cxxflags.
1234 2013-09-20 Marc Glisse <marc.glisse@inria.fr>
1237 * include/bits/allocator.h (__alloc_swap::_S_do_it,
1238 __shrink_to_fit_aux::_S_do_it): Mark as noexcept.
1239 * include/bits/basic_string.h (basic_string::_Rep) [_S_empty_rep,
1240 _M_is_leaked, _M_is_shared, _M_set_leaked, _M_set_sharable,
1241 _M_set_length_and_sharable, _M_dispose]: Likewise.
1242 (basic_string::_Alloc_hider::_Alloc_hider): Likewise.
1243 (basic_string) [_M_data, _M_rep, _M_ibegin, _M_iend, _M_limit,
1244 _M_disjunct, _M_copy, _M_move, _M_assign, _S_copy_chars, _S_compare,
1245 _S_empty_rep, shrink_to_fit, operator[] const, front const, back const]:
1247 [clear]: Link to PR 56166.
1248 [swap]: Link to PR 58265.
1249 * include/bits/stl_deque.h (_Deque_iterator) [_S_buffer_size,
1250 _Deque_iterator, _M_const_cast, operator*, operator->, operator++,
1251 operator--, operator+=, operator+, operator-=, operator-, operator[],
1252 _M_set_node]: Mark as noexcept.
1253 (operator==(const _Deque_iterator&, const _Deque_iterator&),
1254 operator!=(const _Deque_iterator&, const _Deque_iterator&),
1255 operator<(const _Deque_iterator&, const _Deque_iterator&),
1256 operator>(const _Deque_iterator&, const _Deque_iterator&),
1257 operator<=(const _Deque_iterator&, const _Deque_iterator&),
1258 operator>=(const _Deque_iterator&, const _Deque_iterator&),
1259 operator-(const _Deque_iterator&, const _Deque_iterator&),
1260 operator+(ptrdiff_t, const _Deque_iterator&)): Likewise.
1261 (_Deque_base) [_Deque_base(const allocator_type&)]: Add missing call to
1263 [~_Deque_base, _M_deallocate_node, _M_deallocate_map, _M_destroy_nodes]:
1265 (_Deque_base::_Deque_impl) [_Deque_impl(const _Tp_alloc_type&),
1266 _Deque_impl(_Tp_alloc_type&&)]: Likewise.
1267 (deque) [_S_buffer_size, operator=(deque&&), shrink_to_fit, operator[],
1268 front, back, pop_front, pop_back, swap]: Likewise.
1269 [deque(), deque(const allocator_type&)]: Merge.
1270 * include/debug/deque (deque) [operator=(deque&&), shrink_to_fit,
1271 operator[], front, back, pop_front, pop_back, swap]: Mark as noexcept.
1272 * include/profile/deque (deque) [operator=(deque&&), operator[], front,
1273 back, pop_front, pop_back, swap]: Likewise.
1274 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1276 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1278 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1280 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1283 2013-09-20 Alan Modra <amodra@gmail.com>
1285 * configure: Regenerate.
1287 2013-09-19 Marc Glisse <marc.glisse@inria.fr>
1290 * include/bits/stl_tree.h (_Rb_tree_node_base) [_S_minimum, _S_maximum]:
1292 (_Rb_tree_iterator) [_Rb_tree_iterator, operator*, operator->,
1293 operator++, operator--, operator==, operator!=]: Likewise.
1294 (_Rb_tree_const_iterator) [_Rb_tree_const_iterator, _M_const_cast,
1295 operator*, operator->, operator++, operator--, operator==, operator!=]:
1297 (operator==(const _Rb_tree_iterator&, const _Rb_tree_const_iterator&),
1298 operator!=(const _Rb_tree_iterator&, const _Rb_tree_const_iterator&)):
1300 (_Rb_tree) [_M_put_node, _M_destroy_node, _M_root, _M_leftmost,
1301 _M_rightmost, _M_begin, _M_end, _S_left, _S_right, _S_minimum,
1302 _S_maximum]: Likewise.
1303 * include/debug/string (basic_string) [basic_string(const _Allocator&),
1304 shrink_to_fit, operator[], pop_back]: Likewise.
1305 * include/ext/vstring.h (__versa_string) [_M_limit, _M_disjunct,
1306 _M_ibegin, _M_iend, __versa_string(const _Alloc&),
1307 operator=(__versa_string&&), shrink_to_fit, operator[], front,
1308 back, assign(__versa_string&&), swap]: Likewise.
1309 (__versa_string) [__versa_string(), __versa_string(const _Alloc&)]:
1312 2013-09-18 Marc Glisse <marc.glisse@inria.fr>
1315 * include/bits/stl_iterator.h (__normal_iterator) [__normal_iterator,
1316 _M_const_cast, operator*, operator->, operator++, operator--,
1317 operator[], operator+=, operator+, operator-=, operator-, base]:
1319 (operator==(const __normal_iterator&, const __normal_iterator&),
1320 operator!=(const __normal_iterator&, const __normal_iterator&),
1321 operator<(const __normal_iterator&, const __normal_iterator&),
1322 operator>(const __normal_iterator&, const __normal_iterator&),
1323 operator<=(const __normal_iterator&, const __normal_iterator&),
1324 operator>=(const __normal_iterator&, const __normal_iterator&),
1325 operator-(const __normal_iterator&, const __normal_iterator&),
1326 operator+(difference_type, const __normal_iterator&)): Likewise.
1327 * include/bits/stl_list.h (list) [splice, _M_check_equal_allocators]:
1329 (list::_M_check_equal_allocators): Abort instead of throwing.
1330 * include/debug/array (array) [operator[], front, back]: Mark as
1332 * include/profile/array (array) [operator[], front, back]: Likewise.
1333 * include/std/array (array) [operator[], front, back]: Likewise.
1334 * include/debug/list (list::splice): Likewise.
1335 * include/profile/list (list::splice): Likewise.
1336 * testsuite/23_containers/list/operations/5.cc: Remove file.
1337 * testsuite/23_containers/list/operations/5.h: Likewise.
1339 2013-09-18 Tim Shen <timshen91@gmail.com>
1341 * include/bits/regex.h: Add friend classes.
1342 (match_results<>::position, regex_iterator<>::operator++):
1343 Implement position specification in regex_iterator.
1344 (regex_match<>, regex_search<>):
1345 Move match_results initializations to these function. Remove `todo`.
1346 * include/bits/regex_compiler.tcc:
1347 (_Compiler<>::_M_quantifier): Fix greedy/ungreedy of interval matching.
1348 * include/bits/regex_constants.h:
1349 Fix indentation. Change match_flag_type to enum type.
1350 * include/bits/regex_executor.h:
1351 Merge identical code to the base class _Executor.
1352 Support flags in regex_constants.
1353 * include/bits/regex_executor.tcc: Likewise.
1354 * include/bits/regex_scanner.h: Add comments.
1355 * include/bits/regex_scanner.tcc: Same.
1356 * testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc:
1358 * testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: New.
1359 * testsuite/28_regex/iterators/regex_iterator/char/
1360 string_position_01.cc: Remove `xfail`.
1361 * testsuite/28_regex/iterators/regex_iterator/wchar_t/string_02.cc:
1362 Remove `xfail` and make the case really work.
1364 2013-09-18 Paolo Carlini <paolo.carlini@oracle.com>
1366 * testsuite/performance/25_algorithms/search_n.cc: Fix typo.
1368 2013-09-18 Marc Glisse <marc.glisse@inria.fr>
1371 * include/bits/list.tcc (_List_base::_M_clear, list::erase): Mark as
1373 * include/bits/stl_list.h (_List_iterator) [_List_iterator,
1374 _M_const_cast, operator*, operator->, operator++, operator--,
1375 operator==, operator!=]: Likewise.
1376 (_List_const_iterator) [_List_const_iterator, _M_const_cast, operator*,
1377 operator->, operator++, operator--, operator==, operator!=]: Likewise.
1378 (operator==(const _List_iterator&, const _List_const_iterator&),
1379 operator!=(const _List_iterator&, const _List_const_iterator&)):
1381 (_List_impl) [_List_impl(const _Node_alloc_type&),
1382 _List_impl(_Node_alloc_type&&)]: Likewise.
1383 (_List_base) [_M_put_node, _List_base(const _Node_alloc_type&),
1384 _List_base(_List_base&&), _M_clear, _M_init]: Likewise.
1385 (list) [list(), list(const allocator_type&)]: Merge.
1386 (list) [list(const allocator_type&), front, back, pop_front, pop_back,
1387 erase, _M_erase]: Mark as noexcept.
1388 * include/debug/list (list) [list(const _Allocator&), front, back,
1389 pop_front, pop_back, _M_erase, erase]: Likewise.
1390 * include/profile/list (list) [list(const _Allocator&), front, back,
1391 pop_front, pop_back, erase]: Likewise.
1392 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1394 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1396 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1398 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1401 2013-09-17 Marc Glisse <marc.glisse@inria.fr>
1404 * include/bits/stl_vector.h (vector::vector(),
1405 vector::vector(const allocator_type&)): Merge.
1406 (_Vector_impl::_Vector_impl(_Tp_alloc_type const&),
1407 _Vector_impl::_Vector_impl(_Tp_alloc_type&&),
1408 _Vector_impl::_M_swap_data,
1409 _Vector_base::_Vector_base(const allocator_type&),
1410 _Vector_base::_Vector_base(allocator_type&&),
1411 _Vector_base::_Vector_base(_Vector_base&&), _Vector_base::~_Vector_base,
1412 vector::vector(const allocator_type&), vector::operator[],
1413 vector::operator[] const, vector::front, vector::front const,
1414 vector::back, vector::back const, vector::pop_back,
1415 vector::_M_erase_at_end): Mark as noexcept.
1416 * include/debug/vector (vector::vector(const _Allocator&),
1417 vector::operator[], vector::operator[] const, vector::front,
1418 vector::front const, vector::back, vector::back const, vector::pop_back,
1419 _M_requires_reallocation, _M_update_guaranteed_capacity,
1420 _M_invalidate_after_nth): Mark as noexcept.
1421 * include/profile/vector (vector::vector(const _Allocator&),
1422 vector::operator[], vector::operator[] const, vector::front,
1423 vector::front const, vector::back, vector::back const): Mark as
1425 (vector::vector(vector&&, const _Allocator&)): Remove wrong noexcept.
1426 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1428 * testsuite/23_containers/vector/requirements/dr438/
1429 constructor_1_neg.cc: Likewise.
1430 * testsuite/23_containers/vector/requirements/dr438/
1431 constructor_2_neg.cc: Likewise.
1432 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1435 2013-09-14 Tim Shen <timshen91@gmail.com>
1437 * include/bits/regex.h (regex_match<>, regex_search<>):
1438 Change regex_executor caller. Now use their return value instead
1439 of checking __m[0].matched to find out if it's successful.
1440 (regex_search<>): Move the search logic to regex_executor.
1441 * include/bits/regex_automaton.h: Add some new _Opcode. Refactor
1443 * include/bits/regex_automaton.tcc: Add DEBUG dump for new
1444 _Opcode. Refactor _NFA::_M_insert_*.
1445 * include/bits/regex_compiler.h (_Compiler<>::_M_get_nfa):
1446 Use make_shared instead of construct by hand.
1447 * include/bits/regex_compiler.tcc: Implement _Compiler<>::_M_assertion.
1448 * include/bits/regex_constants.h: Fix indentation and line breaking.
1449 * include/bits/regex_executor.h: Add _ResultsEntry to support
1450 greedy/ungreedy mode. Move regex_search logic here.
1451 * include/bits/regex_executor.tcc: Implement assertions and
1452 greedy/ungreedy matching.
1453 * include/bits/regex_scanner.h: Add a new token _S_token_ungreedy.
1454 * include/bits/regex_scanner.tcc: Parse a new token _S_token_ungreedy.
1455 * testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc: New.
1456 * testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: New.
1457 * testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc:
1460 2013-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1463 * include/ext/sso_string_base.h (__sso_string_base<>::
1464 __sso_string_base(__sso_string_base&&)): Fix thinkos about
1465 _M_length vs _M_set_length.
1466 * testsuite/ext/vstring/cons/58415-1.cc: New.
1467 * testsuite/ext/vstring/cons/58415-2.cc: Likewise.
1469 2013-09-12 Paolo Carlini <paolo.carlini@oracle.com>
1472 * include/bits/stl_iterator.h (__normal_iterator<>::operator[],
1473 operator+=, operator+, operator-=, operator-): Take the argument
1475 * testsuite/24_iterators/normal_iterator/58403.cc: New.
1477 2013-09-11 Mitsuru Kariya <kariya_mitsuru@hotmail.com>
1478 Chris Jefferson <chris@bubblescope.net>
1481 * include/bits/stl_algo.h (search_n): Fix to guarantee a number
1482 of comparisons <= number of elements in the range.
1483 * testsuite/25_algorithms/search_n/58358.cc: New.
1484 * testsuite/25_algorithms/search_n/iterator.cc: Extend.
1486 2013-09-10 Ed Smith-Rowland <3dw4rd@verizon.net>
1488 * testsuite/28_regex/traits/wchar_t/value.cc: Change template args
1489 from char to wchar_t, literals from 'x' to L'x'.
1491 2013-09-10 Kai Tietz <ktietz@redhat.com>
1494 * config/abi/pre/gnu-versioned-namespace.ver: Add thunk _ZTv0_n12_NS*
1497 2013-09-07 Paolo Carlini <paolo.carlini@oracle.com>
1500 * include/bits/stl_algobase.h (copy_backward): Fix documentation
1503 2013-09-05 Tim Shen <timshen91@gmail.com>
1505 * include/bits/regex_automaton.h: Add dummy node type. Rewrite
1507 * include/bits/regex_automaton.tcc: Implement them.
1508 * include/bits/regex_compiler.h: Rewrite _Compiler to use new
1509 _StateSeq interfaces.
1510 * include/bits/regex_compiler.tcc: Implement them.
1511 * include/bits/regex_scanner.h: Add word boundry assertion token.
1512 * include/bits/regex_scanner.tcc (_Scanner<>::_M_eat_escape_ecma):
1513 Support word boundry.
1514 * testsuite/28_regex/algorithms/regex_match/basic/
1515 string_range_02_03.cc: Remove "xfail".
1516 * testsuite/28_regex/algorithms/regex_match/extended/cstring_plus.cc:
1518 * testsuite/28_regex/algorithms/regex_match/extended/
1519 string_range_02_03.cc: Likewise.
1520 * testsuite/28_regex/algorithms/regex_match/extended/
1521 cstring_questionmark.cc: Remove xfail and get correct length of
1523 * testsuite/28_regex/algorithms/regex_match/extended/
1524 string_range_00_03.cc: Likewise.
1525 * testsuite/28_regex/algorithms/regex_match/ecma/char/quoted_char.cc:
1527 * testsuite/28_regex/algorithms/regex_match/extended/cstring_range.cc:
1529 * testsuite/28_regex/iterators/regex_iterator/wchar_t/string_02.cc: New.
1531 2013-09-03 Paolo Carlini <paolo.carlini@oracle.com>
1534 * include/bits/random.tcc (negative_binomial_distribution<>::
1535 operator()(_UniformRandomNumberGenerator&, const param_type&)):
1536 Fix typo in template argument.
1537 * testsuite/26_numerics/random/negative_binomial_distribution/
1538 operators/58302.cc: New.
1540 2013-09-02 Tim Shen <timshen91@gmail.com>
1542 * regex_automaton.h: Rearrange _NFA's layout.
1543 * include/bits/regex_compiler.h: Add _AnyMatcher and _CharMatcher.
1544 Rearrange _BracketMatcher's layout.
1545 (_BracketMatcher<>::_M_add_char): Use set instead of vector for
1547 (_BracketMatcher<>::_M_add_collating_element): Likewise.
1548 (_BracketMatcher<>::_M_make_range): Likewise.
1549 * include/bits/regex_compiler.tcc (_Compiler<>::_M_atom): Use
1550 appropriate constructors of matchers above.
1551 * testsuite/28_regex/algorithms/regex_match/ecma/char/anymatcher.cc:
1553 * testsuite/28_regex/algorithms/regex_match/ecma/char/backref.cc: New.
1554 * testsuite/28_regex/algorithms/regex_match/ecma/char/empty_range.cc:
1556 * testsuite/28_regex/algorithms/regex_match/ecma/char/emptygroup.cc:
1558 * testsuite/28_regex/algorithms/regex_match/ecma/char/hex.cc: New.
1559 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/anymatcher.cc:
1561 * testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/hex.cc: New.
1563 2013-08-30 François Dumont <fdumont@gcc.gnu.org>
1566 * include/debug/functions.h (__foreign_iterator_aux4): Use
1567 sequence const_pointer as common type to compare pointers. Add a
1568 fallback overload in case pointers cannot be cast to sequence
1570 * testsuite/23_containers/vector/modifiers/insert/58148.cc: New.
1572 2013-08-30 François Dumont <fdumont@gcc.gnu.org>
1575 * include/debug/macros.h (__glibcxx_check_partitioned_lower): Add
1576 __gnu_debug::__base calls on iterators passed to internal debug
1578 (__glibcxx_check_partitioned_lower_pred): Likewise.
1579 (__glibcxx_check_partitioned_upper): Likewise.
1580 (__glibcxx_check_partitioned_upper_pred): Likewise.
1581 (__glibcxx_check_sorted): Likewise.
1582 (__glibcxx_check_sorted_pred): Likewise.
1583 (__glibcxx_check_sorted_set): Likewise.
1584 (__glibcxx_check_sorted_set_pred): Likewise.
1585 * include/debug/functions.h (__check_partitioned_lower):
1586 Remove code to detect safe iterators.
1587 (__check_partitioned_upper): Likewise.
1588 (__check_sorted): Likewise.
1590 2013-08-29 Tim Shen <timshen91@gmail.com>
1592 * include/bits/regex.h (basic_regex<>::assign): Don't lose _M_traits.
1593 (regex_iterator<>::regex_iterator): Return nullptr when regex_search
1595 (regex_token_iterator<>::_M_end_of_seq): Should be defined true when
1596 _M_result is(not isn't) nullptr.
1597 * include/bits/regex_compiler.h: Store _Compiler::_M_traits by reference
1598 instead of by value.
1599 * include/bits/regex_executor.h (_DFSExecutor<>::_DFSExecutor): Add
1600 _M_traits to _DFSExecutor.
1601 * include/bits/regex_executor.tcc (__get_executor<>): Pass traits to
1603 * testsuite/28_regex/algorithms/regex_match/extended/wstring_locale.cc:
1605 * testsuite/28_regex/iterators/regex_token_iterator/wchar_t/
1608 2013-08-26 Tim Shen <timshen91@gmail.com>
1610 * include/Makefile.am: Add regex_scanner.{h,tcc}.
1611 * include/Makefile.in: Regenerate.
1612 * include/bits/regex.h (match_search): Handle the `__first == __last`
1613 situation correctly.
1614 * include/bits/regex_compiler.h: Move _Scanner...
1615 * include/bits/regex_scanner.h: ...to here. New.
1616 * include/bits/regex_compiler.tcc: Move _Scanner...
1617 * include/bits/regex_scanner.tcc: ...to here, too. New.
1618 * include/bits/regex_executor.tcc: Use value instead of reference for
1620 * include/std/regex: Add regex_scanner.h
1621 * testsuite/28_regex/algorithms/regex_match/awk/cstring_01.cc: New.
1622 * testsuite/28_regex/algorithms/regex_match/basic/empty_range.cc: New.
1623 * testsuite/28_regex/algorithms/regex_match/ecma/cstring_hex.cc: New.
1624 * testsuite/28_regex/algorithms/regex_match/ecma/empty_range.cc: New.
1625 * testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc: New.
1627 2013-08-22 Tim Shen <timshen91@gmail.com>
1629 * include/bits/regex.h: Replace 8 spaces in indentation with a tab.
1630 * include/bits/regex_automaton.h: Same.
1631 * include/bits/regex_automaton.tcc: Same.
1632 * include/bits/regex_compiler.h: Same.
1633 * include/bits/regex_compiler.tcc: Same.
1634 * include/bits/regex_constants.h: Same.
1635 * include/bits/regex_executor.h: Same.
1636 * include/bits/regex_executor.tcc: Same.
1638 2013-08-22 Tim Shen <timshen91@gmail.com>
1640 * include/bits/regex.h: Executor caller.
1641 * include/bits/regex_executor.h: Fix empty grouping problem.
1642 * include/bits/regex_executor.tcc: Same.
1643 * testsuite/28_regex/algorithms/regex_match/ecma/cstring_emptygroup.cc:
1646 2013-08-20 Phil Muldoon <pmuldoon@redhat.com>
1649 http://sourceware.org/bugzilla/show_bug.cgi?id=15195
1651 * python/libstdcxx/v6/printers.py (Printer.__call__): If a value
1652 is a reference, fetch referenced value.
1653 (RxPrinter.invoke): Ditto.
1654 * testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add -O0
1655 flag. Add referenced value tests.
1657 2013-08-20 Tim Shen <timshen91@gmail.com>
1659 * include/bits/regex_constants.h: Add underlying `unsigned int` for
1660 enum syntax_option_type.
1662 2013-08-18 Tim Shen <timshen91@gmail.com>
1664 * include/bits/regex_automaton.h: _S_opcode_backref.
1665 * include/bits/regex_automaton.tcc: Backref automaton support.
1666 * include/bits/regex_compiler.tcc: Parsing support.
1667 * include/bits/regex_executor.h: Add _M_traits for _DFSExecutor.
1668 * include/bits/regex_executor.tcc: Add _S_opcode_backref support.
1669 * testsuite/28_regex/algorithms/regex_match/ecma/string_backref.cc: New.
1671 2013-08-16 Tim Shen <timshen91@gmail.com>
1673 * include/bits/regex.h (regex_traits<>::transform_primary):
1674 Avoid past-the-end dereferences.
1676 2013-08-14 Paolo Carlini <paolo.carlini@oracle.com>
1679 * include/bits/basic_string.h (basic_string<>::operator[]): Fix
1680 _GLIBCXX_DEBUG_PEDASSERT check vs C++11.
1681 * include/ext/vstring.h: Likewise.
1682 * testsuite/21_strings/basic_string/element_access/char/58163.cc:
1684 * testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc:
1686 * testsuite/ext/vstring/element_access/char/58163.cc: Likewise.
1687 * testsuite/ext/vstring/element_access/wchar_t/58163.cc: Likewise.
1689 2013-08-14 Uros Bizjak <ubizjak@gmail.com>
1691 * src/c++98/compatibility.cc (_ZTIe): Use
1692 reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
1696 2013-08-09 Tim Shen <timshen91@gmail.com>
1698 * include/bits/regex_constants.h: Change syntax_option_type to enum
1701 2013-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1703 * include/bits/regex.h: Replace _A, _B, _C, _R by _Ap, _Bp, _Cp, _Rp.
1705 2013-08-08 François Dumont <fdumont@gcc.gnu.org>
1707 * include/bits/hashtable_policy.h (_Hashtable_alloc): New.
1708 (_ReuseOrAllocNode, _AllocNode): Adapt to use latter rather than
1710 (_Before_begin<>): Remove.
1711 * include/bits/hashtable.h (_Hashtable): Inherit from
1712 _Hashtable_alloc and adapt. Restore _M_before_begin field.
1713 * src/c++11/hashtable_c++0x.cc: Add ext/alloc_traits.h include.
1714 * python/libstdcxx/v6/printers.py (StdHashtableIterator): Adapt
1715 access to hashtable before begin.
1716 * testsuite/23_containers/unordered_set/
1717 not_default_constructible_hash_neg.cc: Adapt dg-error line number.
1718 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
1721 2013-08-07 Tim Shen <timshen91@gmail.com>
1723 * include/Makefile.am: Adjust to new files.
1724 * include/Makefile.in: Regenerate.
1725 * include/bits/regex.h: Adjust to new interfaces.
1726 * include/bits/regex_automaton.h: New.
1727 * include/bits/regex_automaton.tcc: New.
1728 * include/bits/regex_compiler.h: Adjust to new files.
1729 * include/bits/regex_compiler.tcc: New.
1730 * include/bits/regex_constants.h: Tail spaces.
1731 * include/bits/regex_error.h: Likewise.
1732 * include/bits/regex_executor.h: New.
1733 * include/bits/regex_executor.tcc: New.
1734 * include/std/regex: Adjust to new files.
1735 * testsuite/28_regex/algorithms/regex_match/extended/
1736 string_dispatch_01.cc: Adjust to new interfaces.
1738 2013-08-07 Paolo Carlini <paolo.carlini@oracle.com>
1740 * include/ext/atomicity.h: Add #pragma GCC system_header.
1742 2013-08-07 Paolo Carlini <paolo.carlini@oracle.com>
1745 * include/bits/random.h (cauchy_distribution<>::min,
1746 extreme_value_distribution<>::min, normal_distribution<>::min,
1747 student_t_distribution<>::min): Fix.
1748 * include/ext/random (normal_mv_distribution<>::min): Likewise.
1749 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
1751 testsuite/26_numerics/random/cauchy_distribution/cons/default.cc:
1753 * testsuite/26_numerics/random/extreme_value_distribution/cons/
1755 testsuite/26_numerics/random/extreme_value_distribution/cons/
1756 default.cc: Likewise.
1757 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
1759 * testsuite/26_numerics/random/normal_distribution/cons/default.cc:
1761 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
1763 * testsuite/26_numerics/random/student_t_distribution/cons/default.cc:
1765 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
1766 * testsuite/ext/random/normal_mv_distribution/cons/default.cc: Likewise.
1768 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
1770 * testsuite/26_numerics/random/exponential_distribution/cons/default.cc:
1773 * testsuite/ext/von_mises_distribution/*: Move to...
1774 * testsuite/ext/random/von_mises_distribution/*: ... here.
1775 * testsuite/ext/triangular_distribution/*: Move to...
1776 * testsuite/ext/random/triangular_distribution/*: ... here.
1778 2013-08-06 Caroline Tice <cmtice@google.com>
1780 * fragment.am: Add XTEMPLATE_FLAGS.
1781 * configure.ac: Add definitions for --enable-vtable-verify.
1782 * acinclude.m4: Add --enable-vtable-verify and
1783 --disable-vtable-verify; define --enable-vtable-verify; define
1784 VTV_CXXFLAGS, VTV_PCH_CXXFLAGS and VTV_CXXLINKFLAGS.
1785 * config/abi/pre/gnu.ver: Export symbols for vtable verification.
1786 * libsupc++/Makefile.am: Define vtv_sources and add it to
1787 libsupc___la_SOURCES and libsupc__convenience_la_SOURCES.
1788 * libsupc++/vtv_stubs.cc: New file.
1789 * include/Makefile.am: Add VTV_PCH_CXXFLAGS to PCHFLAGS.
1790 * src/Makefile.am: Add VTV_CXXFLAGS to AM_CXXFLAGS; add
1791 VTV_CXXLINKFLAGS to CXXLINK.
1792 * src/c++98/Makefile.am: Comment out XTEMPLATE_FLAGS; add VTV_CXXFLAGS
1793 to AM_CXXFLAGS; add VTV_CXXXLINKFLAGS to CXXLINK.
1794 * src/C++11/Makefile.am: Ditto.
1795 * doc/xml/manual/configure.xml: Add entry for --enable-vtable-verify.
1796 * scripts/testsuite_flags.in: Add cxxvtvflags to Usage; cause
1797 cxxvtvflags to use VTV_CXXFLAGS and VTV_CXXLINKFLAGS.
1798 * testsuite/lib/libstdc++.exp: Add cxxvtvflags; add code to locate
1799 libvtv if --enable-vtable-verify was used; set cxxvtvflags; add
1800 cxxvtvflags to cxx_final.
1801 * testsuite/18_support/bad_exception/23591_thread-1.c: Add
1802 -fvtable-verify=none to compiler flags.
1803 * testsuite/17_intro/freestanding.cc: Add -fvtable-verify=none
1805 * configure: Regenerated.
1806 * Makefile.in: Regenerated.
1807 * python/Makefile.in: Regenerated.
1808 * include/Makefile.in: Regenerated.
1809 * libsupc++/Makefile.in: Regenerated.
1810 * config.h.in: Regenerated.
1811 * po/Makefile.in: Regenerated.
1812 * src/Makefile.in: Regenerated.
1813 * src/c++98/Makefile.in: Regenerated.
1814 * src/c++11/Makefile.in: Regenerated.
1815 * doc/Makefile.in: Regenerated.
1816 * testsuite/Makefile.in: Regenerated.
1818 2013-08-06 Paolo Carlini <paolo.carlini@oracle.com>
1820 Revert the last commit.
1822 2013-08-06 François Dumont <fdumont@gcc.gnu.org>
1824 * include/bits/hashtable_policy.h (_Hashtable_alloc): New.
1825 (_ReuseOrAllocNode, _AllocNode): Adapt to use latter rather than
1827 (_Before_begin<>): Remove.
1828 * include/bits/hashtable.h (_Hashtable): Inherit from
1829 _Hashtable_alloc and adapt. Restore _M_before_begin field.
1830 * python/libstdcxx/v6/printers.py (StdHashtableIterator): Adapt
1831 access to hashtable before begin.
1832 * testsuite/23_containers/unordered_set/
1833 not_default_constructible_hash_neg.cc: Adapt dg-error line number.
1834 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
1837 2013-08-03 Tim Shen <timshen91@gmail.com>
1839 Implement bracket expression.
1840 * include/bits/regex.h: Remove constexpr from "|=", etc.
1841 * include/bits/regex_compiler.h: Parse bracket expression.
1842 * include/bits/regex_nfa.h: _Comparator and _BracketMatcher(old
1844 * include/bits/regex_nfa.tcc: Implement them.
1845 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
1846 from regex_search to regex_match.
1847 * testsuite/28_regex/algorithms/regex_match/extended/
1848 cstring_bracket_01.cc: New.
1850 2013-08-02 Paolo Carlini <paolo.carlini@oracle.com>
1852 * include/debug/functions.h (__foreign_iterator_aux4):
1853 Initialize __l and __ge.
1855 2013-08-02 Paolo Carlini <paolo.carlini@oracle.com>
1858 * include/debug/functions.h: Include <bits/move.h>; minor formatting
1860 (__foreign_iterator_aux4): Declare __l and __ge constexpr.
1861 * include/debug/safe_iterator.h (_Safe_iterator<>::operator->):
1863 * include/debug/safe_local_iterator.h (_Safe_local_iterator<>::
1864 operator->): Likewise.
1866 2013-08-01 François Dumont <fdumont@gcc.gnu.org>
1869 * include/debug/formatter.h (_Debug_msg_id): Add
1870 __msg_insert_itself_range entry.
1871 * include/debug/functions.h (_Insert_range_from_self_is_safe<>):
1872 New, indicate container types supporting self range insertion in
1874 (__foreign_iterator): New, check if an iterator points to a given
1876 * include/debug/macros.h (__glibcxx_check_insert_range): Add check
1877 using __foreign_iterator.
1878 (__gibcxx_check_insert_range_after): Likewise.
1879 * include/debug/string (_Insert_range_from_self_is_safe<>):
1880 Partially specialized to mark __gnu_debug::basic_string<> as
1881 supporting self range insert.
1882 * include/debug/list (_Insert_range_from_self_is_safe<>):
1883 Partially specialized to mark std::list as supporting self range
1884 insert if _GLIBCXX_DEBUG_PEDANTIC is not defined.
1885 * include/debug/forward_list (_Insert_range_from_self_is_safe<>):
1887 * src/c++11/debug.cc (_S_debug_messages): Add
1888 __msg_insert_itself_range_entry message.
1889 (_Error_formatter::_Parameter::_M_print_description): Display
1890 iterator sequence address rather than sequence address when the
1891 parameter type is an iterator.
1892 (_Error_formatter::_M_print_word): Enhance behavior when
1893 displaying a word with an appended '\n'.
1894 * testsuite/util/debug/checks.h (check_insert4<>): New.
1895 * testsuite/23_containers/deque/debug/insert5_neg.cc: New.
1896 * testsuite/23_containers/vector/debug/insert5_neg.cc: Likewise.
1897 * testsuite/23_containers/vector/debug/insert6_neg.cc: Likewise.
1898 * testsuite/23_containers/vector/debug/57779_neg.cc: Likewise.
1899 * testsuite/23_containers/list/debug/insert5_neg.cc: Likewise.
1900 * testsuite/23_containers/forward_list/debug/insert_after4_neg.cc:
1903 2013-08-01 Fabien Chêne <fabien@gcc.gnu.org>
1906 * include/tr1/cmath: Remove pow(double,double) overload, remove a
1907 duplicated comment about DR 550. Add a comment to explain the
1909 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: New.
1911 2013-07-31 Tim Shen <timshen91@gmail.com>
1913 Thompson matcher refactored. Fix grouping problem.
1914 * include/bits/regex.h: Use a dispatcher _M_get_matcher().
1915 * include/bits/regex_compiler.h: Tweak for auto switching.
1916 * include/bits/regex_grep_matcher.h: Class structure.
1917 * include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
1918 matcher) refactoring.
1919 * include/bits/regex_nfa.h: Change _Results's interfaces.
1920 * include/std/regex: Includes <map> and <queue>.
1921 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
1923 * testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
1925 * testsuite/28_regex/algorithms/regex_match/extended/
1926 string_dispatch_01.cc: New.
1928 2013-07-31 Paolo Carlini <paolo.carlini@oracle.com>
1931 * include/bits/stl_bvector.h: Use friend struct hash intead of
1932 friend class hash to work around useless warnings produced by
1934 * include/std/bitset: Likewise.
1936 2013-07-31 Paolo Carlini <paolo.carlini@oracle.com>
1938 * src/c++11/functexcept.cc: Do not include the whole <regex>.
1939 * src/c++11/regex.cc: Likewise.
1941 2013-07-31 Tim Shen <timshen91@gmail.com>
1945 2013-07-31 Tim Shen <timshen91@gmail.com>
1947 Thompson matcher refactored. Fix grouping problem.
1948 * include/bits/regex.h: Use a dispatcher _M_get_matcher().
1949 * include/bits/regex_compiler.h: Tweak for auto switching.
1950 * include/bits/regex_grep_matcher.h: Class structure.
1951 * include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
1952 matcher) refactoring.
1953 * include/bits/regex_nfa.h: Change _Results's interfaces.
1954 * include/std/regex: Includes <map> and <queue>.
1955 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
1957 * testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
1959 * testsuite/28_regex/algorithms/regex_match/extended/
1960 string_dispatch_01.cc: New.
1962 2013-07-30 Paolo Carlini <paolo.carlini@oracle.com>
1966 2013-07-30 Tim Shen <timshen91@gmail.com>
1968 Thompson matcher refactored. Fix grouping problem.
1969 * include/bits/regex.h: Use a dispatcher _M_get_matcher().
1970 * include/bits/regex_compiler.h: Tweak for auto switching.
1971 * include/bits/regex_grep_matcher.h: Class structure.
1972 * include/bits/regex_grep_matcher.tcc: _BFSMatcher(Thompson
1973 matcher) refactoring.
1974 * include/bits/regex_nfa.h: Change _Results's interfaces.
1975 * include/std/regex: Includes <map> and <queue>.
1976 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc:
1978 * testsuite/28_regex/algorithms/regex_match/extended/57173.cc:
1980 * testsuite/28_regex/algorithms/regex_match/extended/
1981 string_dispatch_01.cc: New.
1983 2013-07-29 Nathan Froyd <froydnj@gcc.gnu.org>
1985 * include/std/atomic (compare_exchange_weak, compare_exchange_strong):
1986 Add call to __cmpexch_failure_order.
1987 * testsuite/util/testsuite_common_types.h
1988 (compare_exchange_order_lowering): New generator.
1989 * testsuite/29_atomics/atomic/requirements/compare_exchange_lowering.cc:
1992 2013-07-25 Paolo Carlini <paolo.carlini@oracle.com>
1994 * include/std/complex (pow(const complex<>&, int)): Enable in
1996 * testsuite/26_numerics/complex/dr844.cc: Adjust.
1997 * doc/xml/manual/intro.xml: Update.
1999 2013-07-25 Tim Shen <timshen91@gmail.com>
2001 Add documents and comments.
2002 * include/bits/regex.h: Documents and comments.
2003 * include/bits/regex_grep_matcher.h: Likewise.
2004 * include/bits/regex_grep_matcher.tcc: Likewise.
2005 * testsuite/28_regex/iterators/regex_iterator/char/
2006 string_position_01.cc: New.
2008 2013-07-24 Paolo Carlini <paolo.carlini@oracle.com>
2011 * doc/xml/manual/status_cxx2011.xml: Note missing time_get::get and
2014 2013-07-24 Paolo Carlini <paolo.carlini@oracle.com>
2016 * include/bits/random.h (random_device): Avoid using the FILE type.
2017 * include/std/random: Do not include <cstdio>.
2018 * src/c++11/random.cc: ... include it here.
2019 (random_device::_M_init, random_device::_M_fini,
2020 random_device::_M_getval): Cast back and forth void* and FILE*.
2022 2013-07-24 Tim Shen <timshen91@gmail.com>
2024 Reimplment matcher using Depth-first search(backtracking).
2027 * include/bits/regex.h: regex_match() and regex_search().
2028 * include/bits/regex_cursor.h: Fix _M_set_pos().
2029 * include/bits/regex_grep_matcher.h: add _M_dfs_match().
2030 * include/bits/regex_grep_matcher.tcc: Implement it.
2031 * testsuite/28_regex/algorithms/regex_match/extended/53622.cc: New.
2032 * testsuite/28_regex/algorithms/regex_match/extended/57173.cc: New.
2033 * testsuite/28_regex/algorithms/regex_search/basic/string_01.cc:
2036 2013-07-23 Tim Shen <timshen91@gmail.com>
2038 Implement regex_iterator and regex_token_iterator.
2039 * include/bits/regex.h: regex_iterator and regex_token_iterator.
2040 * testsuite/28_regex/iterators/regex_iterator/char/string_01.cc:
2042 * testsuite/28_regex/iterators/regex_iterator/wchar_t/string_01.cc:
2044 * testsuite/28_regex/iterators/regex_token_iterator/char/string_01.cc:
2046 * testsuite/28_regex/iterators/regex_token_iterator/wchar_t/
2049 2013-07-23 Paolo Carlini <paolo.carlini@oracle.com>
2051 * include/std/random: Add back <cstdio> include.
2052 * src/c++11/random.cc: Don't include <cstdio> here.
2054 2013-07-22 Jason Merrill <jason@redhat.com>
2057 * libsupc++/atexit_thread.cc (run): Delete cleanup elts.
2059 2013-07-22 Paolo Carlini <paolo.carlini@oracle.com>
2062 * src/c++11/random.cc (random_device::_M_getval): If possible, use
2063 read instead of std::fread.
2064 * include/std/random: Do not include <cstdio> unnecessarily.
2066 2013-07-21 Tim Shen <timshen91@gmail.com>
2068 Partially implement regex_search.
2069 * include/bits/regex.h: regex_search.
2070 * include/bits/regex_grep_matcher.h: _M_search_from_first.
2071 * include/bits/regex_grep_matcher.tcc: Implement it.
2072 * testsuite/28_regex/algorithms/regex_search/basic/string_01.cc: New.
2074 2013-07-21 Jonathan Wakely <jwakely.gcc@gmail.com>
2077 * include/std/condition_variable (condition_variable_any): Move into
2078 inline namespace _V2 and replace mutex member with shared_ptr<mutex>.
2079 * src/c++11/condition_variable.cc (condition_variable_any): Move
2081 * src/c++11/compatibility-condvar.cc (condition_variable_any): Here.
2082 * src/Makefile.am: Add new source file.
2083 * src/Makefile.in: Regenerate.
2085 2013-07-09 Tim Shen <timshen91@gmail.com>
2087 Implement class regex_traits.
2088 * include/bits/regex.h: Implement lookup_classname and
2089 lookup_collatename; modify isctype; partially implement
2091 * testsuite/28_regex/traits/char/isctype.cc: Add more test cases.
2092 * testsuite/28_regex/traits/char/lookup_classname.cc: Likewise.
2093 * testsuite/28_regex/traits/char/lookup_collatename.cc: Likewise.
2094 * testsuite/28_regex/traits/char/transform_primary.cc: Likewise.
2095 * testsuite/28_regex/traits/wchar_t/isctype.cc: New.
2096 * testsuite/28_regex/traits/wchar_t/lookup_classname.cc: New.
2097 * testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: New.
2098 * testsuite/28_regex/traits/wchar_t/transform_primary.cc: New.
2100 2013-07-07 Ed Smith-Rowland <3dw4rd@verizon.net>
2102 * doc/xml/manual/status_cxx2014.xml: Add links for papers.
2104 2013-07-05 François Dumont <fdumont@gcc.gnu.org>
2106 * include/bits/hashtable_policy.h (_ReuseOrAllocNode): Use forward
2108 (_MoveReuseOrAllocNode): Remove.
2109 (_Insert_base): Take a functor defining how the node is generated.
2110 * include/bits/hashtable.h: Adapt.
2111 (operator=(initializer_list<value_type>)): Reuse node if any.
2112 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
2113 Adjust dg-error line number.
2114 * testsuite/23_containers/unordered_set/
2115 not_default_constructible_hash_neg.cc: Likewise.
2117 2013-07-05 Paolo Carlini <paolo.carlini@oracle.com>
2119 * testsuite/23_containers/deque/modifiers/insert/const_iterator.cc:
2120 Tweak, avoid potential undefined behavior.
2121 * testsuite/23_containers/list/modifiers/insert/const_iterator.cc:
2123 * testsuite/23_containers/vector/bool/modifiers/insert/
2124 const_iterator.cc: Likewise.
2125 * testsuite/23_containers/vector/modifiers/insert/const_iterator.cc:
2128 2013-07-04 Veres Lajos <vlajos@gmail.com>
2129 Jonathan Wakely <jwakely.gcc@gmail.com>
2131 * config/locale/generic/codecvt_members.cc: Fix typo.
2132 * configure.host: Likewise.
2133 * doc/html/manual/policy_data_structures_design.html: Likewise.
2134 * doc/xml/manual/policy_data_structures.xml: Likewise.
2135 * include/bits/hashtable.h: Likewise.
2136 * include/bits/random.h: Likewise.
2137 * include/profile/impl/profiler_trace.h: Likewise.
2138 * testsuite/23_containers/deque/cons/2.cc: Likewise.
2139 * testsuite/23_containers/deque/debug/shrink_to_fit.cc: Likewise.
2140 * testsuite/ext/pb_ds/example/basic_multimap.cc: Likewise.
2141 * testsuite/performance/23_containers/insert_erase/41975.cc: Likewise.
2143 2013-07-04 Ray Chason <chasonr@newsguy.com>
2144 Paolo Carlini <paolo.carlini@oracle.com>
2147 * include/bits/regex.h (regex_token_iterator<>::operator==,
2148 regex_token_iterator<>::operator!=, regex_token_iterator<>::operator*,
2149 regex_token_iterator<>::operator->): Declare const.
2151 2013-07-01 Paolo Carlini <paolo.carlini@oracle.com>
2153 * include/bits/stl_list.h (list<>::insert(iterator,
2154 size_type, const value_type&), list<>::insert(iterator,
2155 initializer_list<>), list<>::insert(iterator, _InputIterator,
2156 _InputIterator), list<>::splice(iterator, list&&),
2157 list<>::splice(iterator, list&), list<>::splice(iterator, list&&,
2158 iterator), list<>::splice(iterator, list&, iterator),
2159 list<>::splice(iterator, list&&, iterator, iterator),
2160 list<>::splice(iterator, list&, iterator, iterator)): Adjust C++11
2161 signatures to take const_iterator(s).
2162 * include/bits/list.tcc (list<>::insert(const_iterator, size_type,
2163 const value_type&), list<>::insert(const_iterator, _InputIterator,
2164 _InputIterator)): Define.
2165 * include/ext/vstring.h (__versa_string<>::insert(iterator,
2166 size_type, _CharT), __versa_string<>::insert(iterator,
2167 _InputIterator, _InputIterator), __versa_string<>::insert(iterator,
2168 std::initializer_list<>), __versa_string<>::replace(iterator,
2169 iterator, _InputIterator, _InputIterator), __versa_string<>::
2170 replace(iterator, iterator, std::initializer_list<>)): Adjust C++11
2171 signatures to take const_iterator(s).
2172 (__versa_string<>::_M_replace_dispatch): Take const_iterators.
2173 * include/ext/vstring.tcc: Likewise.
2174 * include/debug/list: Adjust.
2175 * include/profile/list: Likewise.
2176 * testsuite/23_containers/list/operations/splice/const_iterator.cc:
2178 * testsuite/23_containers/list/modifiers/insert/const_iterator.cc:
2180 * testsuite/ext/vstring/modifiers/insert/char/const_iterator.cc:
2182 * testsuite/ext/vstring/modifiers/insert/wchar_t/const_iterator.cc:
2184 * testsuite/ext/vstring/modifiers/replace/char/const_iterator.cc:
2186 * testsuite/ext/vstring/modifiers/replace/wchar_t/const_iterator.cc:
2189 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2190 Adjust dg-error line number.
2191 * testsuite/23_containers/list/requirements/dr438/
2192 constructor_1_neg.cc: Likewise.
2193 * testsuite/23_containers/list/requirements/dr438/
2194 constructor_2_neg.cc: Likewise.
2195 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2198 2013-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2200 * include/bits/stl_deque.h (deque<>::insert(iterator,
2201 size_type, const value_type&), deque<>::insert(iterator,
2202 initializer_list<>), deque<>::insert(iterator, _InputIterator,
2203 _InputIterator)): Adjust C++11 signatures to take a const_iterator.
2204 * include/bits/stl_vector.h: Likewise.
2205 * include/bits/stl_bvector.h: Likewise.
2206 * include/debug/deque: Adjust.
2207 * include/debug/vector: Likewise.
2208 * include/profile/deque: Likewise.
2209 * include/profile/vector: Likewise.
2210 * testsuite/23_containers/deque/modifiers/insert/const_iterator.cc:
2212 * testsuite/23_containers/vector/bool/modifiers/insert/
2213 const_iterator.cc: Likewise.
2214 * testsuite/23_containers/vector/modifiers/insert/const_iterator.cc:
2217 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2218 Adjust dg-error line number.
2219 * testsuite/23_containers/deque/requirements/dr438/
2220 constructor_1_neg.cc: Likewise.
2221 * testsuite/23_containers/deque/requirements/dr438/
2222 constructor_2_neg.cc: Likewise.
2223 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2225 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2227 * testsuite/23_containers/vector/requirements/dr438/
2228 constructor_1_neg.cc: Likewise.
2229 * testsuite/23_containers/vector/requirements/dr438/
2230 constructor_2_neg.cc: Likewise.
2231 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2234 2013-06-29 François Dumont <fdumont@gcc.gnu.org>
2236 * include/bits/hashtable_policy.h (_Insert_base): Consider hint in
2238 * include/bits/hashtable.h: Likewise.
2239 * testsuite/23_containers/unordered_multimap/insert/hint.cc: New.
2240 * testsuite/performance/23_containers/insert/unordered_multiset_hint.cc:
2242 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
2243 Adjust dg-error line number.
2244 * testsuite/23_containers/unordered_set/
2245 not_default_constructible_hash_neg.cc: Likewise.
2246 * doc/xml/manual/containers.xml: Document hinting in unordered
2249 2013-06-27 Paolo Carlini <paolo.carlini@oracle.com>
2251 * testsuite/21_strings/basic_string/operations/*: Move inside
2252 testsuite/21_strings/basic_string/operations/data/.
2253 * testsuite/21_strings/basic_string/compare/*: Move inside
2254 testsuite/21_strings/basic_string/operations/.
2255 * testsuite/21_strings/basic_string/find/*: Likewise.
2256 * testsuite/21_strings/basic_string/rfind/*: Likewise.
2257 * testsuite/21_strings/basic_string/substr/*: Likewise.
2259 2013-06-27 Paolo Carlini <paolo.carlini@oracle.com>
2261 * testsuite/21_strings/basic_string/append/*: Move inside
2262 testsuite/21_strings/basic_string/modifiers/.
2263 * testsuite/21_strings/basic_string/assign/*: Likewise.
2264 * testsuite/21_strings/basic_string/insert/*: Likewise.
2265 * testsuite/21_strings/basic_string/replace/*: Likewise.
2266 * testsuite/21_strings/basic_string/modifiers/pop_back/char/
2267 pop_back.cc: Rename to 1.cc.
2268 * testsuite/21_strings/basic_string/modifiers/pop_back/wchar_t/
2269 pop_back.cc: Likewise.
2270 * testsuite/ext/vstring/assign/*: Move inside
2271 testsuite/ext/vstring/modifiers/.
2273 2013-06-27 Paolo Carlini <paolo.carlini@oracle.com>
2275 * include/bits/stl_deque.h (deque<>::insert(iterator,
2276 const value_type&), deque<>::insert(iterator, value_type&&),
2277 deque<>::emplace(iterator, _Args&&...)): Adjust C++11 signatures to
2278 take a const_iterator.
2279 (deque<>::erase): Simplify.
2280 * include/bits/stl_list.h: Likewise.
2281 (_List_iterator<>::_M_const_cast): Add.
2282 * include/bits/stl_vector.h: Likewise.
2283 * include/bits/stl_bvector.h: Likewise.
2284 (_Bit_iterator::_M_const_cast): Add.
2285 * include/bits/deque.tcc: Adjust definitions.
2286 * include/bits/list.tcc: Likewise.
2287 * include/bits/vector.tcc: Likewise.
2288 * include/bits/stl_iterator.h (__normal_iterator<>::_M_const_cast):
2289 Define trivial version in C++98 mode.
2290 * include/ext/vstring.h (__versa_string<>::insert(iterator, _CharT),
2291 __versa_string<>::replace(iterator, iterator, const __versa_string&),
2292 __versa_string<>::replace(iterator, iterator, const _CharT*,
2293 size_type), __versa_string<>::replace(iterator, iterator,
2294 const _CharT*), __versa_string<>::replace(iterator, iterator,
2295 size_type, _CharT)): Adjust C++11 signatures to take a pair of
2297 * include/debug/deque: Adjust.
2298 * include/debug/list: Likewise.
2299 * include/debug/vector: Likewise.
2300 * include/profile/deque: Likewise.
2301 * include/profile/list: Likewise.
2302 * include/profile/vector: Likewise.
2303 (vector<>::emplace): Add.
2304 * testsuite/util/exception/safety.h: Update.
2305 * testsuite/23_containers/deque/modifiers/emplace/const_iterator.cc:
2307 * testsuite/23_containers/deque/modifiers/insert/const_iterator.cc:
2309 * testsuite/23_containers/list/modifiers/emplace/const_iterator.cc:
2311 * testsuite/23_containers/list/modifiers/insert/const_iterator.cc:
2313 * testsuite/23_containers/vector/bool/modifiers/insert/
2314 const_iterator.cc: Likewise.
2315 * testsuite/23_containers/vector/modifiers/emplace/const_iterator.cc:
2317 * testsuite/23_containers/vector/modifiers/insert/const_iterator.cc:
2319 * testsuite/ext/vstring/modifiers/insert/char/const_iterator.cc:
2321 * testsuite/ext/vstring/modifiers/insert/wchar_t/const_iterator.cc:
2323 * testsuite/ext/vstring/modifiers/replace/char/const_iterator.cc:
2325 * testsuite/ext/vstring/modifiers/replace/wchar_t/const_iterator.cc:
2328 * testsuite/ext/vstring/modifiers/char/54577.cc: Move to testsuite/
2329 ext/vstring/modifiers/erase/char/.
2330 * testsuite/ext/vstring/modifiers/wchar_t/54577.cc: Move to testsuite/
2331 ext/vstring/modifiers/wchar_t/.
2332 * testsuite/ext/vstring/modifiers/char/pop_back.cc: Move to testsuite/
2333 ext/vstring/modifiers/pop_back/char/.
2334 * testsuite/ext/vstring/modifiers/wchar_t/pop_back.cc: Move to
2335 testsuite/ext/vstring/modifiers/pop_back/wchar_t/.
2337 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2338 Adjust dg-error line number.
2339 * testsuite/23_containers/deque/requirements/dr438/
2340 constructor_1_neg.cc: Likewise.
2341 * testsuite/23_containers/deque/requirements/dr438/
2342 constructor_2_neg.cc: Likewise.
2343 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2345 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2347 * testsuite/23_containers/list/requirements/dr438/
2348 constructor_1_neg.cc: Likewise.
2349 * testsuite/23_containers/list/requirements/dr438/
2350 constructor_2_neg.cc: Likewise.
2351 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2353 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2355 * testsuite/23_containers/vector/requirements/dr438/
2356 constructor_1_neg.cc: Likewise.
2357 * testsuite/23_containers/vector/requirements/dr438/
2358 constructor_2_neg.cc: Likewise.
2359 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2362 2013-06-25 Ed Smith-Rowland <3dw4rd@verizon.net>
2364 Status page for C++2014 library features
2365 * doc/xml/faq.xml: Add link to new C++14 status page.
2366 * doc/xml/manual/intro.xml: Ditto.
2367 * doc/xml/manual/status_cxx2014.xml: New.
2369 2013-06-25 Paolo Carlini <paolo.carlini@oracle.com>
2371 * testsuite/23_containers/map/modifiers/erase/abi_tag.cc: Avoid
2372 spurious fails with check-debug.
2373 * testsuite/23_containers/multimap/modifiers/erase/abi_tag.cc:
2375 * testsuite/23_containers/set/modifiers/erase/abi_tag.cc: Likewise.
2376 * testsuite/23_containers/multiset/modifiers/erase/abi_tag.cc:
2379 2013-06-25 Paolo Carlini <paolo.carlini@oracle.com>
2382 * include/bits/char_traits.h (char_traits<char>::lt): Implement
2384 * testsuite/21_strings/char_traits/requirements/char/57704.cc: New.
2386 2013-06-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
2389 * include/c_global/cstdlib (atexit, at_quick_exit): If !_GLIBCC_HOSTED,
2390 declare per the letter of the C++ standard in terms of void.
2391 * include/c_std/cstdlib: Likewise.
2393 2013-06-22 Paolo Carlini <paolo.carlini@oracle.com>
2396 * include/bits/random.h (binomial_distribution<>::_M_waiting):
2397 Add double parameter.
2398 * include/bits/random.tcc (binomial_distribution<>::operator()
2399 (_UniformRandomNumberGenerator&, const param_type&)): Pass
2400 __param._M_q to _M_waiting.
2401 (_M_waiting): Adjust.
2402 * testsuite/26_numerics/random/binomial_distribution/
2403 operators/values.cc: Add tests.
2405 2013-06-21 Paolo Carlini <paolo.carlini@oracle.com>
2408 * include/std/valarray (valarray<>::operator=(const _Expr<>&)):
2409 Implement correctly C++11 26.6.2.3/1.
2410 * testsuite/26_numerics/valarray/dr630-3.C: New.
2412 2013-06-18 Jonathan Wakely <jwakely.gcc@gmail.com>
2415 * include/std/mutex (timed_mutex, recursive_timed_mutex): Move common
2416 functionality to new __timed_mutex_impl mixin. Overload try_lock_until
2417 to handle conversion between different clocks. Replace constrained
2418 __try_lock_for_impl overloads with conditional increment.
2419 * include/std/shared_mutex (shared_mutex::_Mutex): Use the new mixin.
2420 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: New.
2422 2013-06-17 Jonathan Wakely <jwakely.gcc@gmail.com>
2423 Chris Jefferson <chris@bubblescope.net>
2425 * include/bits/stl_algobase.h (equal): Make C++14 overloads from N3671
2426 dispatch to traditional std::equal for random-access iterators.
2427 (__equal2_aux, __equal2): Remove.
2428 (__equal::equal): Remove unused overloads.
2429 * include/bits/stl_algo.h (is_permutation): Fix typos.
2431 2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
2433 * include/std/shared_mutex (shared_lock::operator=): Add missing
2436 2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
2439 * include/bits/forward_list.h (_Fwd_list_base): Convert to/from
2440 allocator's pointer type.
2441 * include/bits/hashtable.h (_Hashtable): Likewise.
2442 * testsuite/util/testsuite_allocator.h (CustomPointerAlloc): Add.
2443 * testsuite/23_containers/forward_list/allocator/ext_ptr.cc: New.
2444 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: New.
2445 * testsuite/23_containers/vector/allocator/ext_ptr.cc: New.
2447 2013-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
2449 * include/std/shared_mutex: Implement N3659.
2450 * include/bits/c++14_warning.h: New.
2451 * include/Makefile.am: Add new headers.
2452 * include/Makefile.in: Regenerate.
2453 * testsuite/30_threads/shared_lock/cons/1.cc: New.
2454 * testsuite/30_threads/shared_lock/locking/2.cc: New.
2455 * testsuite/30_threads/shared_lock/cons/2.cc: New.
2456 * testsuite/30_threads/shared_lock/locking/3.cc: New.
2457 * testsuite/30_threads/shared_lock/cons/3.cc: New.
2458 * testsuite/30_threads/shared_lock/locking/4.cc: New.
2459 * testsuite/30_threads/shared_lock/cons/4.cc: New.
2460 * testsuite/30_threads/shared_lock/modifiers/1.cc: New.
2461 * testsuite/30_threads/shared_lock/cons/5.cc: New.
2462 * testsuite/30_threads/shared_lock/modifiers/2.cc: New.
2463 * testsuite/30_threads/shared_lock/cons/6.cc: New.
2464 * testsuite/30_threads/shared_lock/requirements/
2465 explicit_instantiation.cc: New.
2466 * testsuite/30_threads/shared_lock/locking/1.cc: New.
2467 * testsuite/30_threads/shared_lock/requirements/typedefs.cc: New.
2468 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
2469 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
2470 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
2471 * testsuite/30_threads/shared_mutex/requirements/
2472 standard_layout.cc: New.
2473 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
2474 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
2476 2013-06-15 Paolo Carlini <paolo.carlini@oracle.com>
2479 * include/bits/unordered_map.h (unordered_map<>::insert,
2480 unordered_multimap<>::insert): Use std::forward, not std::move.
2481 * testsuite/23_containers/unordered_map/insert/57619.C: New.
2482 * testsuite/23_containers/unordered_multimap/insert/57619.C: Likewise.
2484 2013-06-14 Alan Modra <amodra@gmail.com>
2486 * configure.host (abi_baseline_pair): Match powerpc64*.
2488 2013-06-13 Daniel Krugler <daniel.kruegler@gmail.com>
2490 * include/std/type_traits (is_function): Support ref-qualified
2492 (is_copy_constructible, is_move_constructible, is_copy_assignable,
2493 is_move_assignable, is_nothrow_copy_constructible,
2494 is_nothrow_move_constructible, is_nothrow_copy_assignable,
2495 is_nothrow_move_assignable): Implement LWG 2196.
2496 (add_lvalue_reference, add_rvalue_reference, add_pointer): Implement
2498 (__strip_reference_wrapper<<const reference_wrapper<_Tp>>): Remove,
2500 * testsuite/20_util/add_lvalue_reference/value.cc: Extend.
2501 * testsuite/20_util/add_rvalue_reference/value.cc: Likewise.
2502 * testsuite/20_util/decay/requirements/typedefs.cc: Likewise.
2503 * testsuite/20_util/is_assignable/value.cc: Likewise.
2504 * testsuite/20_util/is_constructible/value-2.cc: Likewise.
2505 * testsuite/20_util/is_copy_assignable/value.cc: Likewise.
2506 * testsuite/20_util/is_copy_constructible/value.cc: Likewise.
2507 * testsuite/20_util/is_function/value.cc: Likewise.
2508 * testsuite/20_util/is_move_assignable/value.cc: Likewise.
2509 * testsuite/20_util/is_move_constructible/value.cc: Likewise.
2510 * testsuite/20_util/is_nothrow_copy_assignable/value.cc: Likewise.
2511 * testsuite/20_util/is_nothrow_copy_constructible/value.cc: Likewise.
2512 * testsuite/20_util/is_nothrow_move_assignable/value.cc: Likewise.
2513 * testsuite/20_util/is_nothrow_move_constructible/value.cc: Likewise.
2515 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
2517 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2519 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2522 2013-06-13 Paolo Carlini <paolo.carlini@oracle.com>
2524 * include/tr1/modified_bessel_func.tcc (__gnu_cxx::__airy_ai(),
2525 __gnu_cxx::__airy_bi()): Remove.
2526 * testsuite/tr1/5_numerical_facilities/special_functions/
2527 10_cyl_bessel_k/airy.cc: Fix.
2529 2013-06-12 Ed Smith-Rowland <3dw4rd@verizon.net>
2532 * include/tr1/modified_bessel_func.tcc (__airy): Remove return
2534 (__gnu_cxx::__airy_ai(), __gnu_cxx::__airy_bi()): New functions.
2535 * testsuite/tr1/5_numerical_facilities/special_functions/
2536 10_cyl_bessel_k/airy.cc: New.
2538 2013-06-11 Ed Smith-Rowland <3dw4rd@verizon.net>
2540 Fix library literals error involving namespace __detail.
2541 * include/std/chrono: Rename __detail to __select_type. Reformat.
2542 * include/bits/basic_string.h: Reformat.
2543 * testsuite/20_util/duration/literals/ns_detail.cc: New.
2545 2013-06-11 Paolo Carlini <paolo.carlini@oracle.com>
2548 * include/c_global/cstddef (max_align_t): Add to namespace std.
2549 * include/c_std/cstddef: Likewise.
2550 * testsuite/18_support/max_align_t/requirements/1.cc: New.
2551 * testsuite/18_support/max_align_t/requirements/2.cc: Likewise.
2553 2013-06-10 Benjamin Kosnik <bkoz@redhat.com>
2555 * include/bits/c++config (_GLIBCXX_ABI_TAG_CXX11): Add.
2556 * include/bits/stl_map.h (erase): Use abi_tag when C++11.
2557 * include/bits/stl_multimap.h: Same.
2558 * include/bits/stl_multiset.h: Same.
2559 * include/bits/stl_set.h: Same.
2560 * include/bits/stl_tree.h: Same.
2561 * include/std/complex (real, imag): Use macro for abi_tag.
2563 * testsuite/lib/libstdc++.exp: Disable inlinling with -fno-inline.
2564 * testsuite/util/testsuite_containers.h (erase_external): New
2566 (erase_external_iterators): Same.
2567 (linkage_check_cxx98_cxx11_erase): Same.
2568 (linkage_check_cxx98_cxx11_erase_iterators): Same.
2569 * testsuite/util/testsuite_shared.cc: Define.
2570 * testsuite/23_containers/map/modifiers/erase/abi_tag.cc: New.
2571 * testsuite/23_containers/map/modifiers/erase/
2572 dr130-linkage-check.cc: New.
2573 * testsuite/23_containers/multimap/modifiers/erase/abi_tag.cc: New.
2574 * testsuite/23_containers/multimap/modifiers/erase/
2575 dr130-linkage-check.cc: New.
2576 * testsuite/23_containers/multiset/modifiers/erase/abi_tag.cc: New.
2577 * testsuite/23_containers/multiset/modifiers/erase/
2578 dr130-linkage-check.cc: New.
2579 * testsuite/23_containers/set/modifiers/erase/abi_tag.cc: New.
2580 * testsuite/23_containers/set/modifiers/erase/dr130-linkage-check.cc:
2582 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line number.
2584 * testsuite/23_containers/map/dr130.cc: Move...
2585 * testsuite/23_containers/map/modifiers/dr130.cc: ...here.
2586 * testsuite/23_containers/multimap/dr130.cc: Move ...
2587 * testsuite/23_containers/multimap/modifiers/dr130.cc: ...here.
2588 * testsuite/23_containers/multiset/dr130.cc: Move...
2589 * testsuite/23_containers/multiset/modifiers/dr130.cc: ...here.
2590 * testsuite/23_containers/set/dr130.cc: Move...
2591 * testsuite/23_containers/set/modifiers/dr130.cc: ...here.
2593 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
2595 * testsuite/17_intro/headers/c++1998/49745.cc: Extend current
2596 handling of Linux-based x86 systems to cover all GNU systems.
2597 * testsuite/18_support/bad_exception/23591_thread-1.c: Likewise.
2598 * testsuite/18_support/pthread_guard.cc: Likewise.
2599 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
2601 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc:
2603 * testsuite/21_strings/basic_string/pthread18185.cc: Likewise.
2604 * testsuite/21_strings/basic_string/pthread4.cc: Likewise.
2605 * testsuite/22_locale/ctype/is/char/2.cc: Likewise.
2606 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
2607 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
2608 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
2609 * testsuite/23_containers/list/pthread1.cc: Likewise.
2610 * testsuite/23_containers/list/pthread5.cc: Likewise.
2611 * testsuite/23_containers/map/pthread6.cc: Likewise.
2612 * testsuite/23_containers/vector/debug/multithreaded_swap.cc:
2614 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
2616 * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise.
2617 * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise.
2618 * testsuite/30_threads/async/42819.cc: Likewise.
2619 * testsuite/30_threads/async/49668.cc: Likewise.
2620 * testsuite/30_threads/async/54297.cc: Likewise.
2621 * testsuite/30_threads/async/any.cc: Likewise.
2622 * testsuite/30_threads/async/async.cc: Likewise.
2623 * testsuite/30_threads/async/launch.cc: Likewise.
2624 * testsuite/30_threads/async/sync.cc: Likewise.
2625 * testsuite/30_threads/call_once/39909.cc: Likewise.
2626 * testsuite/30_threads/call_once/49668.cc: Likewise.
2627 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
2628 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
2629 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
2630 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
2631 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
2632 * testsuite/30_threads/condition_variable/members/53841.cc:
2634 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
2636 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
2637 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
2638 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
2639 * testsuite/30_threads/condition_variable_any/members/1.cc:
2641 * testsuite/30_threads/condition_variable_any/members/2.cc:
2643 * testsuite/30_threads/future/cons/move.cc: Likewise.
2644 * testsuite/30_threads/future/members/45133.cc: Likewise.
2645 * testsuite/30_threads/future/members/get.cc: Likewise.
2646 * testsuite/30_threads/future/members/get2.cc: Likewise.
2647 * testsuite/30_threads/future/members/share.cc: Likewise.
2648 * testsuite/30_threads/future/members/valid.cc: Likewise.
2649 * testsuite/30_threads/future/members/wait.cc: Likewise.
2650 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
2651 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
2652 * testsuite/30_threads/lock/1.cc: Likewise.
2653 * testsuite/30_threads/lock/2.cc: Likewise.
2654 * testsuite/30_threads/lock/3.cc: Likewise.
2655 * testsuite/30_threads/lock/4.cc: Likewise.
2656 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
2657 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
2658 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
2659 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
2660 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
2661 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
2662 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
2663 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
2664 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
2665 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
2666 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
2667 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
2668 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
2669 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
2670 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
2671 * testsuite/30_threads/packaged_task/cons/move_assign.cc:
2673 * testsuite/30_threads/packaged_task/members/get_future.cc:
2675 * testsuite/30_threads/packaged_task/members/get_future2.cc:
2677 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
2678 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
2679 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
2680 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
2681 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
2682 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
2683 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
2684 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
2685 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
2686 * testsuite/30_threads/promise/cons/1.cc: Likewise.
2687 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
2688 * testsuite/30_threads/promise/cons/move.cc: Likewise.
2689 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
2690 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
2691 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
2692 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
2693 * testsuite/30_threads/promise/members/set_exception2.cc:
2695 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
2696 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
2697 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
2698 * testsuite/30_threads/promise/members/swap.cc: Likewise.
2699 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
2700 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
2702 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
2703 * testsuite/30_threads/recursive_mutex/native_handle/1.cc:
2705 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
2707 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
2708 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
2709 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
2710 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
2711 * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
2713 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
2714 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
2715 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
2717 * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc:
2719 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc:
2721 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc:
2723 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
2725 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
2727 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
2729 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
2731 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
2733 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc:
2735 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
2736 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
2737 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
2738 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
2739 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
2740 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
2741 * testsuite/30_threads/shared_future/members/wait_for.cc:
2743 * testsuite/30_threads/shared_future/members/wait_until.cc:
2745 * testsuite/30_threads/this_thread/1.cc: Likewise.
2746 * testsuite/30_threads/this_thread/2.cc: Likewise.
2747 * testsuite/30_threads/this_thread/3.cc: Likewise.
2748 * testsuite/30_threads/this_thread/4.cc: Likewise.
2749 * testsuite/30_threads/thread/cons/1.cc: Likewise.
2750 * testsuite/30_threads/thread/cons/2.cc: Likewise.
2751 * testsuite/30_threads/thread/cons/3.cc: Likewise.
2752 * testsuite/30_threads/thread/cons/4.cc: Likewise.
2753 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
2754 * testsuite/30_threads/thread/cons/5.cc: Likewise.
2755 * testsuite/30_threads/thread/cons/6.cc: Likewise.
2756 * testsuite/30_threads/thread/cons/7.cc: Likewise.
2757 * testsuite/30_threads/thread/cons/8.cc: Likewise.
2758 * testsuite/30_threads/thread/cons/9.cc: Likewise.
2759 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
2760 * testsuite/30_threads/thread/members/1.cc: Likewise.
2761 * testsuite/30_threads/thread/members/2.cc: Likewise.
2762 * testsuite/30_threads/thread/members/3.cc: Likewise.
2763 * testsuite/30_threads/thread/members/4.cc: Likewise.
2764 * testsuite/30_threads/thread/members/5.cc: Likewise.
2765 * testsuite/30_threads/thread/members/hardware_concurrency.cc:
2767 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
2768 * testsuite/30_threads/thread/native_handle/typesizes.cc:
2770 * testsuite/30_threads/thread/swap/1.cc: Likewise.
2771 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
2772 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc:
2774 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
2775 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
2776 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc:
2778 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
2779 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
2780 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
2781 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
2782 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
2783 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
2784 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
2785 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
2786 * testsuite/30_threads/try_lock/1.cc: Likewise.
2787 * testsuite/30_threads/try_lock/2.cc: Likewise.
2788 * testsuite/30_threads/try_lock/3.cc: Likewise.
2789 * testsuite/30_threads/try_lock/4.cc: Likewise.
2790 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
2791 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
2792 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
2793 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
2794 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
2795 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
2796 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
2797 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
2798 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
2799 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
2800 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
2801 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
2802 * testsuite/ext/mt_allocator/22309_thread.cc: Likewise.
2803 * testsuite/ext/profile/mh.cc: Likewise.
2804 * testsuite/ext/rope/pthread7-rope.cc: Likewise.
2805 * testsuite/lib/libstdc++.exp (libstdc++_init): Likewise.
2806 * testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc:
2808 * testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc:
2810 * testsuite/util/testsuite_performance.h: Extend current handling
2811 of Linux-based systems to cover all glibc-based systems.
2813 2013-06-09 Jonathan Wakely <jwakely.gcc@gmail.com>
2815 * include/std/mutex (call_once): Remove parentheses to fix error in
2816 c++1y and gnu++1y mode.
2817 * testsuite/30_threads/mutex/try_lock/2.cc: Call try_lock() in new
2818 thread to avoid undefined behaviour.
2820 2013-06-08 Ed Smith-Rowland <3dw4rd@verizon.net>
2822 Simplify and clean up library literals.
2823 * include/std/chrono: Simplify namespace and versioning management.
2824 * include/bits/basic_string.h: Ditto.
2825 * testsuite/20_util/duration/literals/types.cc: Remove bogus comment.
2826 * testsuite/20_util/duration/literals/values.cc: Ditto.
2827 * testsuite/21_strings/basic_string/literals/types.cc: Ditto.
2828 * testsuite/21_strings/basic_string/literals/values.cc: Ditto.
2830 2013-06-08 Ed Smith-Rowland <3dw4rd@verizon.net>
2832 Implement N3654 - Quoted Strings Library Proposal
2833 * include/std/iomanip: Add quoted(String, Char delim, Char escape)
2834 manipulators and supporting machinery in c++1y mode.
2835 * testsuite/27_io/manipulators/standard/char/quoted.cc: New.
2836 * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: New.
2838 2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2840 * include/bits/alloc_traits.h (allocator_traits::max_size()): LWG
2843 2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2845 * include/bits/stl_algo.h (is_permutation): Add overloads from N3671.
2846 * include/bits/stl_algobase.h (equal, mismatch): Likewise.
2847 * testsuite/25_algorithms/equal/1.cc: Remove duplicate test case.
2848 * testsuite/25_algorithms/equal/2.cc: New.
2849 * testsuite/25_algorithms/equal/check_type2.cc: New.
2850 * testsuite/25_algorithms/is_permutationqual/2.cc: New.
2851 * testsuite/25_algorithms/is_permutationqual/check_type2.cc: New.
2852 * testsuite/25_algorithms/mismatch/2.cc: New.
2853 * testsuite/25_algorithms/mismatch/check_type2.cc: New.
2854 * testsuite/util/testsuite_iterators.h: Fix spelling.
2856 2013-06-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2858 * include/std/type-traits (integral_constant::operator()): Implement
2860 * testsuite/20_util/integral_constant/call_operator.cc: New.
2861 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
2863 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2865 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2868 2013-06-07 Uros Bizjak <ubizjak@gmail.com>
2870 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
2872 2013-06-05 Tom Tromey <tromey@redhat.com>
2874 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Use -O0.
2876 2013-06-03 Paolo Carlini <paolo.carlini@oracle.com>
2879 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
2881 2013-06-01 Ed Smith-Rowland <3dw4rd@verizon.net>
2883 * include/std/chrono: Collapse redundant 'inline' from 'inline
2885 * include/std/tuple: Ditto.
2886 * include/bits/move.h: Ditto.
2888 2013-05-30 Ed Smith-Rowland <3dw4rd@verizon.net>
2890 Implement N3642 - User-defined Literals for Standard Library Types
2891 * include/bits/parse_numbers.h: New.
2892 * include/std/chrono: Add duration literal operators.
2893 * include/bits/basic_string.h: Add string literal operators.
2894 * include/Makefile.in: Add parse_numbers.h.
2895 * include/Makefile.am: Ditto.
2896 * testsuite/20_util/duration/literals/values.cc: New.
2897 * testsuite/20_util/duration/literals/types.cc: New.
2898 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust.
2899 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Adjust.
2900 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Adjust.
2901 * testsuite/21_strings/basic_string/literals/values.cc: New.
2902 * testsuite/21_strings/basic_string/literals/types.cc: New.
2904 2013-05-28 Jonathan Wakely <jwakely.gcc@gmail.com>
2906 * src/c++11/compatibility-chrono.cc (steady_clock::now()): If
2907 !_GLIBCXX_USE_GETTIMEOFDAY perform conversion inline instead of
2908 calling non-existent from_time_t.
2910 2013-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2912 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt:
2915 2013-05-24 Benjamin Kosnik <bkoz@redhat.com>
2917 * include/std/chrono: Wrap clocks in inline namespace _V2.
2918 * src/c++11/chrono.cc: Same.
2919 * src/c++11/compatibility-chrono.cc: Revert to previous chrono.cc
2920 file, with default configure macros selected.
2922 * config/abi/pre/gnu.ver (GLIBCXX_3.4.19): Use symbols from inline
2924 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Fix up.
2926 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Regenerated.
2927 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Regenerated.
2928 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2930 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
2932 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2933 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2935 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Regenerated.
2936 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Regenerated.
2937 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Regenerated.
2938 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerated.
2939 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Regenerated.
2940 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt:
2942 * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerated.
2943 * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Regenerated.
2945 2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2947 * config/os/solaris/solaris2.9/os_defines.h [!CLOCK_MONOTONIC]
2948 (CLOCK_MONOTONIC): Define.
2950 2013-05-24 Paolo Carlini <paolo.carlini@oracle.com>
2952 * include/ext/type_traits.h (__is_null_pointer): Add std::nullptr_t
2955 * include/bits/cpp_type_traits.h (__is_fundamental): Remove, unused.
2957 2013-05-24 Jakub Jelinek <jakub@redhat.com>
2959 * src/c++11/chrono.cc: If _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL,
2960 include unistd.h and sys/syscall.h. If _GLIBCXX_COMPATIBILITY_CXX0X,
2961 don't define system_clock::is_steady, system_clock::now() and
2962 steady_clock::is_steady.
2963 (std::chrono::system_clock::now()): If
2964 _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL, call
2965 syscall (SYS_clock_gettime, ...) instead of clock_gettime (...).
2966 (std::chrono::system_clock::now()): Likewise. Add weak attribute
2967 if _GLIBCXX_COMPATIBILITY_CXX0X and compatibility-chrono.cc will
2969 * src/Makefile.am (cxx11_sources): Add compatibility-chrono.cc.
2970 (compatibility-chrono.lo, compatibility-chrono.o): New goals.
2971 * src/c++11/compatibility-chrono.cc: New file.
2972 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): On linux*, check for
2973 syscall (SYS_clock_gettime, CLOCK_MONOTONIC, &tp).
2974 * testsuite/util/testsuite_abi.cc (check_version): Add
2975 GLIBCXX_3.4.20 version and make it the latest.
2976 * config/abi/pre/gnu.ver (_ZNSt6chrono12steady_clock3nowEv): Export
2977 also @@GLIBCXX_3.4.19. Move all symbols so far added for GCC 4.9 to
2978 @@GLIBCXX_3.4.20 instead.
2979 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Regenerated.
2980 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Regenerated.
2981 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt:
2983 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
2985 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2986 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt:
2988 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Regenerated.
2989 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Regenerated.
2990 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Regenerated.
2991 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerated.
2992 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Regenerated.
2993 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt:
2995 * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerated.
2996 * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Regenerated.
2997 * config.h.in: Regenerated.
2998 * src/Makefile.in: Regenerated.
2999 * configure: Regenerated.
3001 2013-05-23 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.
3009 * include/ext/random: Include ext/opt_random.h.
3011 2013-05-22 Jonathan Wakely <jwakely.gcc@gmail.com>
3013 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add KIND=auto to
3014 enable features if target OS is known to support them.
3015 * configure.ac (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Default to 'auto'.
3016 * configure: Regenerate.
3018 2013-05-21 Jonathan Wakely <jwakely.gcc@gmail.com>
3021 * include/std/functional (__invoke): Do not form function types with
3022 abstract return type.
3023 * testsuite/20_util/reference_wrapper/invoke-3.cc: New.
3025 2013-05-19 Jonathan Wakely <jwakely.gcc@gmail.com>
3027 * include/std/tuple (get): Implement N3670.
3028 * include/std/utility (get): Likewise.
3029 * testsuite/20_util/pair/get.cc: Move to ...
3030 * testsuite/20_util/pair/astuple/get.cc: Here.
3031 * testsuite/20_util/pair/astuple/astuple.cc: New.
3032 * testsuite/20_util/pair/astuple/constexpr_get.cc: New.
3033 * testsuite/20_util/pair/astuple/constexpr_get_by_type.cc: New.
3034 * testsuite/20_util/pair/astuple/get_by_type.cc: New.
3035 * testsuite/20_util/pair/astuple/get_by_type_neg.cc: New.
3036 * testsuite/20_util/pair/astuple/get_neg.cc: New.
3037 * testsuite/20_util/tuple/element_access/constexpr_get_by_type.cc: New.
3038 * testsuite/20_util/tuple/element_access/get2_by_type.cc: New.
3039 * testsuite/20_util/tuple/element_access/get_by_type.cc: New.
3041 2013-05-19 Paolo Carlini <paolo.carlini@oracle.com>
3043 * Revert last commit.
3045 2013-05-19 Matthias Klose <doko@ubuntu.com>
3047 * include/Makefile.am (bits_headers): Remove ${bits_host_headers}.
3048 (ext_headers): Remove ${ext_host_headers}.
3049 (stamp-${host_alias}): Create ${host_builddir}/../ext.
3050 (stamp-host): Link ${bits_host_headers} and ${ext_host_headers}.
3051 (install-headers): Install ${bits_host_headers} and ${ext_host_headers}.
3052 * include/Makefile.in: Regenerate.
3054 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3056 * include/std/system_error (error_category::error_category()): LWG
3057 2145: Declare public and constexpr.
3058 * src/c++11/system_error.cc (error_category::error_category()): Move
3060 * src/c++11/compatibility-c++0x.cc: Here.
3062 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3064 * include/std/typeindex (type_index::name()): LWG 2144: Add noexcept.
3066 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3068 * include/bits/unique_ptr.h (make_unique): Declare inline.
3069 (unique_ptr<T[],D>::reset()): Combine two overloads into one.
3070 (default_delete, unique_ptr): Add doxygen comments.
3071 * include/bits/shared_ptr_base.h: Improve doxygen comments.
3072 * include/bits/shared_ptr.h: Likewise.
3073 * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line
3075 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
3077 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3079 * doc/xml/manual/status_cxx2011.xml: Fix markup error.
3081 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3083 * doc/xml/manual/status_cxx2011.xml: Fix markup error.
3085 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3087 * include/std/utility (exchange): Define.
3088 * testsuite/20_util/exchange/1.cc: New.
3090 2013-05-18 Jonathan Wakely <jwakely.gcc@gmail.com>
3092 * include/bits/unique_ptr.h (make_unique): Define.
3093 * testsuite/20_util/unique_ptr/creation/single.cc: New.
3094 * testsuite/20_util/unique_ptr/creation/array.cc: New.
3095 * testsuite/20_util/unique_ptr/creation/array_neg.cc: New.
3097 2013-05-15 François Dumont <fdumont@gcc.gnu.org>
3099 * python/libstdcxx/v6/printers.py (Tr1HashtableIterator): Fix
3100 rendering of std::tr1 unordered containers iterator.
3101 (StdHashtableIterator): New, render std unordered containers iterator.
3102 * testsuite/libstdc++-prettyprinters/tr1.cc: New.
3104 2013-05-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3106 * include/bits/basic_string.h (getline): Fix doxygen comments.
3108 2013-05-14 Paolo Carlini <paolo.carlini@oracle.com>
3110 * include/bits/stl_iterator.h (__normal_iterator<>::_M_const_cast):
3111 Use std::pointer_traits.
3113 2013-05-13 Benjamin Kosnik <bkoz@redhat.com>
3115 * libsupc++/Makefile.am (sources): Add bad_array_length.cc,
3117 * libsupc++/Makefile.in: Regenerate.
3118 * libsupc++/bad_array_length.cc: Tweak.
3119 * libsupc++/bad_array_new.cc: Tweak.
3121 2013-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3124 * include/bits/stl_deque.h (erase): Fix signatures in C++11 mode.
3125 (_Deque_iterator<>::_M_const_cast): Add.
3126 (deque<>::_M_erase): Declare.
3127 * include/bits/deque.tcc: ... and define.
3128 * include/bits/stl_list.h (erase): Fix signatures in C++11 mode.
3129 (_List_const_iterator<>::_M_const_cast): Add.
3130 * include/bits/list.tcc (erase (iterator)): Fix.
3131 * include/bits/stl_iterator.h (__normal_iterator<>::_M_const_cast):
3132 Add; include <ext/cast.h>.
3133 * include/bits/stl_vector.h (erase): Fix signatures in C++11 mode.
3134 (vector<>::_M_erase): Declare.
3135 * include/bits/stl_bvector.h: Likewise.
3136 * include/bits/vector.tcc (vector<>::_M_erase): Define.
3137 * include/ext/vstring.h (erase): Fix signatures in C++11 mode.
3138 * include/debug/deque: Adjust.
3139 * include/debug/list: Likewise.
3140 * include/debug/vector: Likewise.
3141 * include/profile/deque: Likewise.
3142 * include/profile/list: Likewise.
3143 * include/profile/vector: Likewise.
3144 * testsuite/util/exception/safety.h (erase_base<deque>,
3145 erase_base<deque>, erase_base<vector>): Remove.
3146 (erase_base<__versa_string>): Update.
3147 * testsuite/ext/vstring/modifiers/char/54577.cc: New.
3148 * testsuite/ext/vstring/modifiers/wchar_t/54577.cc: Likewise.
3149 * testsuite/23_containers/deque/modifiers/erase/54577.cc: Likewise.
3150 * testsuite/23_containers/list/modifiers/erase/54577.cc: Likewise.
3151 * testsuite/23_containers/vector/bool/modifiers/erase/54577.cc:
3153 * testsuite/23_containers/vector/modifiers/erase/54577.cc: Likewise.
3154 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
3155 Adjust dg-error line numbers.
3156 * testsuite/23_containers/deque/requirements/dr438/
3157 constructor_1_neg.cc: Likewise.
3158 * testsuite/23_containers/deque/requirements/dr438/
3159 constructor_2_neg.cc: Likewise.
3160 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
3162 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3164 * testsuite/23_containers/list/requirements/dr438/
3165 constructor_1_neg.cc: Likewise.
3166 * testsuite/23_containers/list/requirements/dr438/
3167 constructor_2_neg.cc: Likewise.
3168 * testsuite/23_containers/list/requirements/dr438/
3169 insert_neg.cc: Likewise.
3170 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3172 * testsuite/23_containers/vector/requirements/dr438/
3173 constructor_1_neg.cc: Likewise.
3174 * testsuite/23_containers/vector/requirements/dr438/
3175 constructor_2_neg.cc: Likewise.
3176 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3179 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
3181 * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.8.
3183 2013-05-08 Jason Merrill <jason@redhat.com>
3185 Add std::bad_array_length (N3639)
3186 * libsupc++/new: Add std::bad_array_length.
3187 * libsupc++/bad_array_length.cc: New.
3188 * libsupc++/eh_aux_runtime.cc: Add __cxa_bad_array_length.
3189 * libsupc++/Makefile.in: Build them.
3190 * config/abi/pre/gnu.ver: Add new symbols.
3191 * config/abi/pre/gnu-versioned-namespace.ver: Add new symbols.
3193 2013-05-08 Andi Kleen <ak@linux.intel.com>
3196 * libstdc++-v3/include/bits/atomic_base.h
3197 (_GLIBCXX_ALWAYS_INLINE): Add new macro.
3198 (atomic_thread_fence, atomic_signal_fence, test_and_set,
3199 clear, store, load, exchange, compare_exchange_weak)
3200 compare_exchange_strong, fetch_add, fetch_sub, fetch_and,
3201 fetch_or, fetch_xor): Mark _GLIBCXX_ALWAYS_INLINE.
3203 2013-05-08 Jason Merrill <jason@redhat.com>
3205 Add std::bad_array_new_length (N2932)
3206 * libsupc++/new: Add std::bad_array_new_length.
3207 * libsupc++/bad_array_new.cc: New.
3208 * libsupc++/eh_aux_runtime.cc: Add __cxa_throw_bad_array_new_length.
3209 * libsupc++/Makefile.in: Build them.
3210 * config/abi/pre/gnu.ver: Add new symbols.
3211 * config/abi/pre/gnu-versioned-namespace.ver: Add new symbols.
3213 2013-05-08 Andoni Morales Alastruey <ylatuya@gmail.com>
3216 * include/Makefile.am (_GLIBCXX___MINGW32_GLIBCXX___): Modify
3218 * include/Makefile.in: Regenerated.
3220 2013-05-07 François Dumont <fdumont@gcc.gnu.org>
3222 * include/profile/unordered_base.h: New.
3223 * include/Makefile.am: Add new profile header.
3224 * include/Makefile.in: Regenerate.
3225 * include/profile/impl/profiler.h
3226 (__profcxx_inefficient_hash_is_on): New macro.
3227 * include/profile/unordered_map (std::profile::unordered_map<>):
3228 Use new _Unordered_profile base class. Use default implementations
3229 for special functions.
3230 (std::profile::unordered_multimap<>): Likewise.
3231 * include/profile/unordered_set (std::profile::unordered_set<>):
3233 (std::profile::unordered_multiset<>): Likewise.
3234 * testsuite/23_containers/unordered_multiset/55043.cc: Fix
3235 MoveOnly equality operator signature.
3237 2013-05-02 Paolo Carlini <paolo.carlini@oracle.com>
3239 * testsuite/tr1/4_metaprogramming/integral_constant/requirements/
3240 constexpr_data.cc: Move...
3241 * testsuite/20_util/integral_constant/requirements/constexpr_data.cc:
3243 * testsuite/20_util/integral_constant/requirements/
3244 explicit_instantiation.cc: New.
3245 * testsuite/20_util/integral_constant/requirements/typedefs.cc:
3247 * testsuite/20_util/integral_constant/static_definition.cc: Likewise.
3248 * testsuite/20_util/integral_constant/true_false_type_typedefs.cc:
3250 * testsuite/20_util/integral_constant/true_false_value.cc: Likewise.
3251 * testsuite/20_util/integral_constant/operator_value_type.cc: Likewise.
3253 2013-05-02 Paolo Carlini <paolo.carlini@oracle.com>
3255 * include/std/type_traits (is_null_pointer): Add.
3256 (__is_nullptr_t): Implement in terms of the latter.
3257 (is_fundamental, is_scalar): Adjust.
3258 * testsuite/20_util/is_null_pointer/requirements/
3259 explicit_instantiation.cc: New.
3260 * testsuite/20_util/is_null_pointer/requirements/typedefs.cc:
3262 * testsuite/20_util/is_null_pointer/value.cc: Likewise.
3263 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
3265 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3267 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
3270 2013-05-02 Paolo Carlini <paolo.carlini@oracle.com>
3272 * include/c_global/cstdio: Add comment about LWG 2249.
3273 * include/c_std/cstdio: Likewise.
3275 2013-04-28 Jonathan Wakely <jwakely.gcc@gmail.com>
3277 * include/bits/hashtable_policy.h (_Hashtable_ebo_helper): Fix
3279 * include/std/mutex (__recursive_mutex_base): Likewise.
3281 2013-04-28 Jonathan Wakely <jwakely.gcc@gmail.com>
3284 * include/bits/shared_ptr_base (_Sp_ebo_helper): Helper class to
3285 implement EBO safely.
3286 (_Sp_counted_base::_M_get_deleter): Add noexcept.
3287 (_Sp_counter_ptr): Use noexcept instead of comments.
3288 (_Sp_counted_deleter): Likewise. Use _Sp_ebo_helper.
3289 (_Sp_counted_ptr_inplace): Likewise.
3290 * testsuite/20_util/shared_ptr/cons/51365.cc: New.
3291 * testsuite/20_util/shared_ptr/cons/52924.cc: Add rebind member to
3292 custom allocator and test construction with custom allocator.
3293 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
3296 2013-04-26 Paolo Carlini <paolo.carlini@oracle.com>
3298 * testsuite/23_containers/unordered_set/insert/move_range.cc: Adjust
3299 dialect to -std=gnu++11.
3301 2013-04-26 François Dumont <fdumont@gcc.gnu.org>
3303 * include/bits/hashtable_policy.h
3304 (_Insert_base<>::insert<_It>(_It, _It)): Enable move semantics.
3305 * testsuite/23_containers/unordered_set/insert/move_range.cc: New.
3307 2013-04-26 Paolo Carlini <paolo.carlini@oracle.com>
3309 * include/c_global/cstdio (gets): Provide only in C++98 and C++11.
3310 * include/c_std/cstdio (gets): Likewise.
3311 * testsuite/27_io/headers/cstdio/functions_std.cc: Adjust.
3313 2013-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3316 * include/debug/unordered_map (unordered_map, unordered_multimap):
3317 Fix default allocator type.
3318 * include/profile/unordered_map (unordered_map, unordered_multimap):
3320 * include/bits/unordered_map.h: Fix comments.
3322 2013-04-24 Jonathan Wakely <jwakely.gcc@gmail.com>
3325 * libsupc++/exception_ptr.h (copy_exception): Deprecate and
3326 move implementation to make_exception_ptr.
3327 * include/std/future (_State_base::_M_break_promise): Replace
3328 copy_exception with make_exception_ptr.
3329 * testsuite/18_support/exception_ptr/move.cc: Likewise.
3330 * testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise.
3331 * testsuite/30_threads/future/members/get2.cc: Likewise.
3332 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
3333 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
3334 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
3335 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
3337 2013-04-22 Jason Merrill <jason@redhat.com>
3339 * src/c++11/hashtable_c++0x.cc: Include ext/aligned_buffer.h.
3341 * testsuite/lib/prune.exp (libstdc++-dg-prune): Also ignore "In
3342 substitution" lines.
3344 * testsuite/20_util/is_assignable/value.cc: Comment out tests involving
3346 * testsuite/20_util/is_constructible/value-2.cc: Likewise.
3347 * testsuite/20_util/reference_wrapper/result_type.cc: Likewise.
3348 * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
3350 2013-04-22 François Dumont <fdumont@gcc.gnu.org>
3352 * include/bits/hashtable_policy.h: Add C++11 allocator support.
3353 * include/bits/hashtable.h: Likewise.
3354 * include/bits/unordered_set.h: Likewise.
3355 * include/bits/unordered_map.h: Likewise.
3356 * include/debug/unordered_set: Likewise.
3357 * include/debug/unordered_map: Likewise.
3358 * include/std/unordered_set: Remove bits/algobase.h
3359 include. Replace bits/alloc_traits.h by ext/alloc_traits.h.
3360 * include/std/unordered_map: Likewise.
3361 * include/ext/throw_allocator.h: Add checks on calls to allocator
3363 (std::hash<__gnu_cxx::throw_value_limit>): Add conditional throw.
3364 (std::hash<__gnu_cxx::throw_value_random>): Likewise.
3365 * testsuite/util/regression/rand/priority_queue
3366 /container_rand_regression_test.tcc: Adapt.
3367 * testsuite/util/regression/rand/assoc
3368 /container_rand_regression_test.tcc: Likewise.
3369 * testsuite/util/testsuite_counter_type.h: Add count of destructors.
3370 * testsuite/23_containers/unordered_set
3371 /not_default_constructible_hash_neg.cc: Adjust dg-error line number.
3372 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Likewise.
3373 * testsuite/23_containers/unordered_set/allocator/copy.cc: New.
3374 * testsuite/23_containers/unordered_set/allocator/copy_assign.cc: New.
3375 * testsuite/23_containers/unordered_set/allocator/minimal.cc: New.
3376 * testsuite/23_containers/unordered_set/allocator/move_assign.cc: New.
3377 * testsuite/23_containers/unordered_set/allocator/noexcept.cc: New.
3378 * testsuite/23_containers/unordered_set/allocator/swap.cc: New.
3379 * testsuite/23_containers/unordered_multiset/allocator/copy.cc: New.
3380 * testsuite/23_containers/unordered_multiset/allocator/copy_assign.cc:
3382 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc: New.
3383 * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc:
3385 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc: New.
3386 * testsuite/23_containers/unordered_multiset/allocator/swap.cc: New.
3387 * testsuite/23_containers/unordered_map/allocator/copy.cc: New.
3388 * testsuite/23_containers/unordered_map/allocator/copy_assign.cc: New.
3389 * testsuite/23_containers/unordered_map/allocator/minimal.cc: New.
3390 * testsuite/23_containers/unordered_map/allocator/move_assign.cc: New.
3391 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
3393 * testsuite/23_containers/unordered_map/allocator/swap.cc: New.
3394 * testsuite/23_containers/unordered_multimap/allocator/copy.cc: New.
3395 * testsuite/23_containers/unordered_multimap/allocator/copy_assign.cc:
3397 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc: New.
3398 * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc:
3400 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc: New.
3401 * testsuite/23_containers/unordered_multimap/allocator/swap.cc: New.
3403 2013-04-22 Paolo Carlini <paolo.carlini@oracle.com>
3405 * include/std/type_traits (is_signed): Simplify.
3406 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3407 Adjust dg-error line numbers.
3408 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
3410 * testsuite/20_util/declval/requirements/1_neg.cc: Likewise.
3412 2013-04-22 Paolo Carlini <paolo.carlini@oracle.com>
3415 * include/std/complex (complex<float>::real, complex<float>::imag,
3416 complex<double>::real, complex<double>::imag,
3417 complex<long double>::real, complex<long double>::imag): Declare
3418 as const member functions.
3419 * include/std/type_traits (integral_constant<>::operator value_type):
3422 2013-04-22 Paolo Carlini <paolo.carlini@oracle.com>
3425 * include/bits/stl_heap.h (pop_heap): Avoid self move-assignment.
3426 * testsuite/25_algorithms/pop_heap/57010.cc: New.
3428 2013-04-21 Evgeniy Stepanov <eugenis@google.com>
3430 * src/c++11/system_error.cc (generic_category_instance): Add
3432 (system_category_instance): Likewise.
3433 * src/c++11/future.cc (__fec): Likewise.
3435 2013-04-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3437 * doc/xml/manual/extensions.xml: Fix anachronism.
3439 2013-04-09 Tom Tromey <tromey@redhat.com>
3441 * configure, config.h.in: Rebuild.
3442 * configure.ac: Use GLIBCXX_CHECK_SDT_H. Don't check for
3444 * acinclude.m4 (GLIBCXX_CHECK_SDT_H): New defun.
3446 2013-04-09 Uros Bizjak <ubizjak@gmail.com>
3448 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3450 2013-04-08 Paolo Carlini <paolo.carlini@oracle.com>
3452 * testsuite/libstdc++-prettyprinters/cxx11.cc: Include <memory>.
3454 2013-04-07 Jonathan Wakely <jwakely.gcc@gmail.com>
3456 * include/Makefile.am: Add ext/aligned_buffer.h
3457 * include/Makefile.in: Regenerate.
3458 * include/ext/aligned_buffer.h: New.
3459 * include/std/future (_Result): Use __aligned_buffer.
3460 * include/bits/forward_list.h (_Fwd_list_node): Likewise.
3461 * include/bits/shared_ptr_base.h (_Sp_counted_ptr_inplace): Likewise.
3462 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error line
3465 2013-04-07 Jonathan Wakely <jwakely.gcc@gmail.com>
3467 * include/bits/forward_list.h: Only include required headers.
3468 (forward_list::reference): Define directly, not using __alloc_traits.
3469 (forward_list::const_reference): Likewise.
3471 2013-04-07 François Dumont <fdumont@gcc.gnu.org>
3473 * include/std/functional (_Derives_from_unary_function): Remove.
3474 (_Derives_from_binary_function): Remove.
3475 * include/std/type_traits (__sfinae_types): Remove.
3476 (__is_assignable_helper): Adapt.
3477 (__is_convertible_helper): Adapt.
3478 (_GLIBCXX_HAS_NESTED_TYPE): Adapt.
3479 Remove several explicit instantiations of integral_constant.
3480 * testsuite/20_util/reference_wrapper/typedefs-3.cc: Adapt.
3481 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3482 Adapt dg-error line number.
3483 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
3485 * testsuite/20_util/declval/requirements/1_neg.cc: Likewise.
3486 * testsuite/20_util/bind/ref_neg.cc: Likewise.
3488 2013-04-05 Jonathan Wakely <jwakely.gcc@gmail.com>
3491 * libsupc++/eh_ptr.cc (rethrow_exception): Use get_unexpected() and
3492 get_terminate() accessors.
3493 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
3494 * libsupc++/eh_terminate.cc: Use mutex when atomic builtins not
3496 * libsupc++/new_handler.cc: Likewise.
3498 2013-04-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3500 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.19 version.
3502 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3505 * include/debug/array (tuple_size, tuple_element): Do not declare.
3506 * include/profile/array: Likewise.
3507 * testsuite/23_containers/array/tuple_interface/
3508 tuple_element_debug_neg.cc: Adjust dg-error line number.
3510 2013-04-03 Jonathan Wakely <jwakely.gcc@gmail.com>
3512 * libsupc++/exception (get_terminate(), get_unexpected()): Declare.
3513 * libsupc++/eh_terminate.cc (get_terminate() , set_unexpected()):
3515 (set_terminate(terminate_handler)): Set atomically.
3516 (set_unexpected(terminate_handler)): Likewise.
3517 * libsupc++/new (get_new_handler()): Declare.
3518 * libsupc++/new_handler.cc (get_new_handler()): Define.
3519 (set_new_handler(new_handler)): Set atomically.
3520 (__new_handler): Use internal linkage.
3521 * libsupc++/new_op.cc (operator new): Use get_new_handler().
3522 * libsupc++/new_opnt.cc (operator new): Likewise.
3523 * acinclude.m4: Bump libtool_VERSION to 6:19:0.
3524 * configure: Regenerate.
3525 * libsupc++/Makefile.am: Compile above files with -std=gnu++11.
3526 * libsupc++/Makefile.in: Regenerate.
3527 * config/abi/pre/gnu.ver: Add new exports.
3528 * doc/xml/manual/status_cxx2011.xml: Update.
3529 * testsuite/18_support/headers/exception/synopsis.cc: Check accessors
3531 * testsuite/18_support/headers/new/synopsis.cc: Likewise.
3532 * testsuite/18_support/new_handler.cc: New.
3533 * testsuite/18_support/terminate_handler.cc: New.
3534 * testsuite/18_support/unexpected_handler.cc: New.
3536 2013-04-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3538 * doc/xml/manual/appendix_contributing.xml: Remove broken link and
3539 defer to general documentation on contributing to GCC.
3540 * doc/html/*: Regenerate.
3542 2013-03-30 Gerald Pfeifer <gerald@pfeifer.com>
3544 * doc/xml/manual/allocator.xml: Adjust link to Dr.Dobb's article.
3546 * doc/xml/manual/appendix_contributing.xml: Adjust link to GNU
3549 * doc/xml/manual/debug.xml: Adjust link for ThreadSanitizer.
3551 * doc/xml/manual/debug_mode.xml: Adjust link for SafeSTL.
3553 * doc/xml/manual/documentation_hacking.xml: Adjust Doxygen link.
3555 * doc/xml/manual/messages.xml: Adjust link to Java API specs.
3557 * doc/xml/manual/policy_data_structures: Remove direct link to
3558 IBM Haifa Research Labs.
3560 * doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
3561 for biblio.maverik_lowerbounds and biblio.nelson96stlpq.
3563 * doc/xml/manual/profile_mode.xml: Adjust two links to acm.org
3566 * doc/xml/manual/shared_ptr.xml: Use canonical address for
3569 2013-03-27 Kai Tietz <ktietz@redhat.com>
3571 * crossconfig.m4: Add support for cygwin x64 target.
3572 * configure: Regenerated.
3574 2013-03-25 Kai Tietz <ktietz@redhat.com>
3576 * testsuite/18_support/50594.cc: For mingw-targets use only static
3578 * testsuite/19_diagnostics/error_category/operators/equal.cc
3579 * testsuite/19_diagnostics/error_code/cons/1.cc
3580 * testsuite/19_diagnostics/error_code/operators/bool.cc
3581 * testsuite/19_diagnostics/error_code/operators/equal.cc
3582 * testsuite/19_diagnostics/error_code/operators/not_equal.cc
3583 * testsuite/19_diagnostics/error_condition/cons/1.cc
3584 * testsuite/19_diagnostics/error_condition/operators/bool.cc
3585 * testsuite/19_diagnostics/error_condition/operators/equal.cc
3586 * testsuite/19_diagnostics/error_condition/operators/not_equal.cc
3587 * testsuite/23_containers/set/requirements/exception/basic.cc
3588 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc
3589 * testsuite/lib/dg-options.exp (dg-additional-options): New option.
3591 2013-03-24 Jonathan Wakely <jwakely.gcc@gmail.com>
3594 * include/ext/debug_allocator.h (debug_allocator): Add missing members
3595 to meet allocator requirements.
3596 * testsuite/ext/debug_allocator/56170.cc: New.
3598 2013-03-22 Paolo Carlini <paolo.carlini@oracle.com>
3601 * include/std/chrono (__is_ratio): Uglify T.
3603 2013-03-18 Paolo Carlini <paolo.carlini@oracle.com>
3605 PR libstdc++/55977 (partial, std::vector and std::deque bits)
3606 * include/bits/stl_vector.h (_M_range_initialize(_InputIterator,
3607 _InputIterator, std::input_iterator_tag)): Use emplace_back.
3608 * include/bits/deque.tcc (_M_range_initialize(_InputIterator,
3609 _InputIterator, std::input_iterator_tag)): Likewise.
3610 * testsuite/23_containers/vector/cons/55977.cc: New.
3611 * testsuite/23_containers/deque/cons/55977.cc: Likewise.
3612 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3613 Adjust dg-error line number.
3614 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3617 2013-03-17 Paolo Carlini <paolo.carlini@oracle.com>
3620 * include/bits/stl_list.h (_M_initialize_dispatch(_InputIterator,
3621 _InputIterator, __false_type)): Use emplace_back.
3622 * testsuite/23_containers/list/cons/55979.cc: New.
3623 * testsuite/23_containers/list/modifiers/1.h: Adjust.
3624 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3625 Adjust dg-error line number.
3627 2013-03-16 Jason Merrill <jason@redhat.com>
3630 * testsuite/20_util/pair/piecewise2.cc (test01): Use std::move.
3632 2013-03-16 Jonathan Wakely <jwakely.gcc@gmail.com>
3635 * libsupc++/exception_ptr.h (type_info): Declare.
3637 2013-03-16 Jonathan Wakely <jwakely.gcc@gmail.com>
3640 * include/std/mutex (lock_guard, unique_lock, lock): Define without
3641 depending on _GLIBCXX_HAS_GTHREADS.
3642 * testsuite/30_threads/lock_guard/cons/1.cc: Run on all targets.
3644 2013-03-16 Jonathan Wakely <jwakely.gcc@gmail.com>
3647 * include/std/future (__future_base::_Result): Add result_type
3649 (__future_base::_S_allocate_result): Overload for std::allocator.
3650 (__future_base::_Task_setter): Use _Result::result_type instead of
3651 deducing the type from the task.
3652 (__future_base::_Task_state): Store allocator to allow shared state
3653 to be reset. Replace std::function with member of target object type
3655 (__future_base::_Task_state_base): New abstract base class.
3656 (__future_base::_Task_state_base::_M_run): New virtual function to
3657 invoke type-erased target object.
3658 (__future_base::_Task_state_base::_M_reset): New virtual function to
3659 create new shared_state using same target object and allocator.
3660 (__future_base::__create_task_state): Allocate a new _Task_state.
3661 (packaged_task::packaged_task): Use __create_task_state.
3662 (packaged_task::reset): Use _Task_state_base::_M_reset.
3663 * testsuite/30_threads/packaged_task/cons/56492.cc: New.
3665 2013-03-15 Tom Tromey <tromey@redhat.com>
3667 * libsupc++/unwind-cxx.h: Include sys/sdt.h if detected.
3668 (PROBE2): New macro.
3669 * libsupc++/eh_throw.cc (__cxa_throw, __cxa_rethrow): Add probe.
3670 * libsupc++/eh_catch.cc (__cxa_begin_catch): Add probe.
3671 * configure.ac: Check for sys/sdt.h.
3672 * configure, config.h.in: Rebuild.
3674 2013-03-14 Jonathan Wakely <jwakely.gcc@gmail.com>
3677 * include/bits/stl_tree.h (_Rb_tree::_M_create_node): Use
3678 allocator_traits instead of calling construct directly.
3679 * testsuite/23_containers/map/56613.cc: New.
3681 2013-03-13 Benjamin Kosnik <bkoz@redhat.com>
3683 * doc/html/*: Regenerate.
3685 2013-03-13 Paolo Carlini <paolo.carlini@oracle.com>
3688 * include/std/type_traits (is_fundamental): Add std::nullptr_t.
3689 * testsuite/20_util/is_fundamental/value.cc: Extend.
3690 * testsuite/20_util/is_compound/value.cc: Likewise.
3692 2013-03-09 Paolo Carlini <paolo.carlini@oracle.com>
3694 * testsuite/20_util/function_objects/mem_fn/55463.cc: Avoid
3697 2013-03-08 Benjamin Kosnik <bkoz@redhat.com>
3699 * include/bits/memoryfwd.h: New. Centralize forward declarations.
3700 * include/bits/algorithmfwd.h: Consistent comments.
3701 * include/bits/localefwd.h: Same.
3702 * include/ext/vstring_fwd.h: Same.
3703 * include/parallel/algorithmfwd.h: Same.
3704 * include/parallel/numericfwd.h: Same.
3705 * include/std/iosfwd: Same.
3707 * include/bits/alloc_traits.h: Include memoryfwd.h, remove allocator
3709 * include/ext/alloc_traits.h: Remove allocator forward decl.
3710 * include/bits/stl_construct.h: Same.
3711 * include/bits/stringfwd.h: Include memoryfwd.h, remove allocator
3712 forward decl. Consistent comments.
3714 * doc/doxygen/user.cfg.in (TEMPLATE_RELATIONS): To NO.
3716 * include/Makefile.am (bits_headers): Add memoryfwd.h.
3717 * include/Makefile.in: Regenerate.
3720 2013-03-08 François Dumont <fdumont@gcc.gnu.org>
3722 * include/bits/vector.tcc (vector<>operator=(const vector<>&):
3723 Reset pointers after deallocation when memory can be reused.
3724 * testsuite/23_containers/vector/allocator/minimal.cc: Insert
3725 elements to really challenge C++11 allocator integration.
3726 * testsuite/23_containers/vector/allocator/copy.cc: Likewise.
3727 * testsuite/23_containers/vector/allocator/copy_assign.cc:
3729 * testsuite/23_containers/vector/allocator/move_assign.cc:
3731 * testsuite/23_containers/vector/allocator/swap.cc: Likewise and
3732 swap vector back before checks on memory/personality mapping are
3734 * testsuite/23_containers/forward_list/allocator/minimal.cc:
3735 Insert element to really challenge C++11 allocator integration.
3736 * testsuite/23_containers/forward_list/allocator/copy.cc:
3738 * testsuite/23_containers/forward_list/allocator/copy_assign.cc:
3740 * testsuite/23_containers/forward_list/allocator/move_assign.cc:
3742 * testsuite/23_containers/forward_list/allocator/swap.cc: Likewise
3743 and swap forward_list back before checks on memory/personality
3744 mapping are performed.
3746 2013-03-07 Jakub Jelinek <jakub@redhat.com>
3748 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3749 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
3750 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
3752 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
3753 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
3754 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
3755 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
3756 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
3757 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
3759 2013-03-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3761 * scripts/extract_symvers.pl: Omit symbols bound to base
3763 * scripts/extract_symvers.in: Likewise.
3764 * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerate.
3765 * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Likewise.
3766 * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
3767 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3768 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3770 2013-03-04 Ulrich Drepper <drepper@gmail.com>
3772 * include/ext/random (__gnu_cxx::von_mises_distribution<>):
3773 Optimize generation function by pulling computation of __r into the
3774 constructor for param_type. Also compare _M_mu in operator==.
3777 2013-03-02 Ulrich Drepper <drepper@gmail.com>
3779 Add triangular and von Mises distributions.
3780 * include/ext/random: Include <ext/cmath>.
3781 Add __gnu_cxx::triangular_distribution<> and
3782 __gnu_cxx::von_mises_distribution<> classes.
3783 * include/ext/random.tcc: Add out-of-line functions for
3784 __gnu_cxx::triangular_distribution<> and
3785 __gnu_cxx::von_mises_distribution<>.
3786 * testsuite/ext/triangular_distribution/cons/default.cc: New file.
3787 * testsuite/ext/triangular_distribution/cons/parms.cc: New file.
3788 * testsuite/ext/triangular_distribution/operators/serialize.cc:
3790 * testsuite/ext/triangular_distribution/operators/equal.cc:
3792 * testsuite/ext/triangular_distribution/operators/inequal.cc:
3794 * testsuite/ext/triangular_distribution/requirements/typedefs.cc:
3796 * testsuite/ext/triangular_distribution/requirements/
3797 explicit_instantiation/1.cc: New file.
3798 * testsuite/ext/von_mises_distribution/cons/default.cc: New file.
3799 * testsuite/ext/von_mises_distribution/cons/parms.cc: New file.
3800 * testsuite/ext/von_mises_distribution/operators/serialize.cc:
3802 * testsuite/ext/von_mises_distribution/operators/equal.cc: New file.
3803 * testsuite/ext/von_mises_distribution/operators/inequal.cc:
3805 * testsuite/ext/von_mises_distribution/requirements/typedefs.cc:
3807 * testsuite/ext/von_mises_distribution/requirements/
3808 explicit_instantiation/1.cc: New file.
3811 * include/Makefile.am (ext_headers): Add cmath.
3812 * include/Makefile.in: Regenerated.
3813 * include/ext/cmath: New file.
3815 2013-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3817 * config/abi/post/solaris2.9/baseline_symbols.txt: Regenerate.
3818 * config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Likewise.
3819 * config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
3820 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3821 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3823 2013-02-26 Jonathan Wakely <jwakely.gcc@gmail.com>
3826 * include/bits/atomic_base.h (atomic_flag): Fix narrowing conversion.
3827 * testsuite/29_atomics/atomic/operators/56012.cc: New.
3830 * include/std/atomic (atomic<bool>::operator=(bool) volatile): Add
3832 * testsuite/29_atomics/atomic/operators/56011.cc: New.
3834 2013-02-25 Jason Merrill <jason@redhat.com>
3836 * configure.ac: Check for __cxa_thread_atexit_impl.
3837 * libsupc++/atexit_thread.cc (__cxa_thread_atexit): Just forward
3839 * config.h.in, configure: Regenerate.
3841 2013-02-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3843 * include/std/streambuf (basic_streambuf): Use injected class name
3844 instead of non-standard __streambuf_type typedef. Fix unclosed Doxygen
3847 2013-02-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3849 * doc/html/faq.html: Fix spelling.
3850 * doc/xml/faq.xml: Likewise.
3851 * include/bits/basic_ios.h: Likewise.
3852 * include/bits/regex.h: Likewise.
3853 * include/std/istream: Likewise.
3854 * include/std/streambuf: Likewise.
3856 2013-02-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3858 * testsuite/23_containers/unordered_set/55043.cc: Add missing
3859 namespace qualification.
3860 * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
3862 2013-02-19 Benjamin Kosnik <bkoz@redhat.com>
3864 * doc/doxygen/user.cfg.in: Set __cplusplus to 201103L. Change to
3865 _GLIBCXX_INCLUDE_AS_CXX11. DIRECTORY_GRAPH, MARKDOWN_SUPPORT,
3866 AUTOLINK_SUPPORT to NO. Update to doxygen 1.8.3.1.
3867 * include/bits/stl_pair.h: Add to utilities group.
3868 * include/std/tuple: Same.
3869 * include/std/typeindex: Same.
3871 * include/bits/stringfwd.h: Fix markup.
3872 * include/std/limits: Same.
3873 * include/std/type_traits: Same.
3874 * include/tr1/memory: Same.
3875 * include/tr1/regex: Same.
3876 * scripts/run_doxygen: Comment.
3877 * testsuite/20_util/uses_allocator/cons_neg.cc: Fixup line numbers.
3879 2013-02-14 Jason Merrill <jason@redhat.com>
3881 * testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
3882 test if unsupported.
3884 2013-02-13 Marc Glisse <marc.glisse@inria.fr>
3887 * include/std/complex (complex): Undefine.
3888 * include/c_compatibility/complex.h (complex): Only undefine if
3889 <complex> has been included.
3890 * testsuite/26_numerics/complex/56111.cc: New testcase.
3892 2013-02-13 François Dumont <fdumont@gcc.gnu.org>
3894 * include/bits/hashtable_policy.h (_Hash_code_base): Restore
3895 default constructor protected.
3896 * include/bits/hashtable.h: static assert that _Hash_code_base has
3897 a default constructor available through inheritance.
3899 2013-02-12 Paolo Carlini <paolo.carlini@oracle.com>
3901 * include/c_std/cstdlib (at_quick_exit, quick_exit): Provide in
3904 2013-02-12 Julian Brown <julian@codesourcery.com>
3906 * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc (test01):
3907 Don't expect dots after abbreviated weekday names for ru_RU for
3908 glibc versions >= 2.17.
3909 * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc (test01):
3912 2013-02-12 Paolo Carlini <paolo.carlini@oracle.com>
3914 * include/bits/random.tcc (__transform): Remove.
3916 (discrete_distribution<>::param_type::_M_initialize): Adjust.
3917 (piecewise_constant_distribution<>::param_type::_M_initialize):
3919 (piecewise_linear_distribution<>::param_type::_M_initialize):
3922 2013-02-11 Benjamin Kosnik <bkoz@redhat.com>
3924 * src/c++11/Makefile.am (hashtable_c++0x.lo, hashtable_c++0x.o):
3925 Use -fimplicit-templates.
3926 * src/c++11/Makefile.in: Regenerate.
3927 * src/c++11/hashtable_c++0x.cc: Remove instantiation for
3928 std::lower_bound template.
3930 2013-02-11 Paolo Carlini <paolo.carlini@oracle.com>
3932 * include/c_std/cstdlib (at_quick_exit, quick_exit): Do not declare.
3933 * include/c_global/cstdlib (at_quick_exit, quick_exit): Declare only
3934 in C++11 mode and if available in the underlying C library.
3935 * testsuite/18_support/quick_exit/quick_exit.cc: Compile with
3936 -std=gnu++11; check _GLIBCXX_HAVE_AT_QUICK_EXIT and
3937 _GLIBCXX_HAVE_QUICK_EXIT.
3939 2013-02-11 Benjamin Kosnik <bkoz@redhat.com>
3941 * doc/html/*: Regenerate.
3943 2013-02-11 Jason Merrill <jason@redhat.com>
3945 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE): New.
3946 (GLIBCXX_CHECK_STDLIB_SUPPORT): Check for atexit and at_quick_exit.
3947 * config.h.in, configure: Regenerate.
3948 * include/c_std/cstdlib: Add atexit and at_quick_exit.
3949 * include/c_global/cstdlib: Add atexit and at_quick_exit.
3950 * testsuite/18_support/quick_exit/quick_exit.cc: New.
3952 2013-02-11 Paolo Carlini <paolo.carlini@oracle.com>
3956 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
3959 * include/bits/basic_ios.h: Replace operator void*() const
3960 with explicit operator bool() const in C++11 and greater.
3961 * testsuite/27_io/basic_ios/pr56193.cc: New file.
3963 2013-02-10 François Dumont <fdumont@gcc.gnu.org>
3964 Jonathan Wakely <jwakely.gcc@gmail.com>
3966 * doc/xml/manual/containers.xml: Add section on unordered containers.
3967 * doc/xml/manual/using.xml: Fix incomplete sentence.
3969 2013-02-10 Jonathan Wakely <jwakely.gcc@gmail.com>
3972 * include/bits/hashtable.h (__cache_default): Check if hash function
3974 * testsuite/23_containers/unordered_set/56267.cc: New.
3975 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
3976 dg-error line number.
3977 * testsuite/23_containers/unordered_set/
3978 not_default_constructible_hash_neg.cc: Likewise.
3981 * include/bits/hashtable_policy.h (_Hash_code_base): Make default
3983 * testsuite/23_containers/unordered_set/56278.cc: New.
3985 2013-02-09 François Dumont <fdumont@gcc.gnu.org>
3987 * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series): Code
3990 2013-02-08 Edward Smith-Rowland <3dw4rd@verizon.net>
3993 * include/tr1/special_function_util.h: Remove spurious const
3994 from numeric arguments.
3995 * include/tr1/riemann_zeta.tcc: Likewise.
3996 * include/tr1/exp_integral.tcc: Likewise.
3997 * include/tr1/bessel_function.tcc: Likewise.
3998 * include/tr1/hypergeometric.tcc: Likewise.
3999 * include/tr1/modified_bessel_func.tcc: Likewise.
4000 * include/tr1/poly_laguerre.tcc: Likewise.
4001 * include/tr1/gamma.tcc: Likewise.
4002 * include/tr1/legendre_function.tcc: Likewise.
4003 * include/tr1/poly_hermite.tcc: Likewise.
4004 * include/tr1/ell_integral.tcc: Likewise.
4005 * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series):
4006 If argument is zero return function value.
4007 * testsuite/tr1/5_numerical_facilities/special_functions/
4008 08_cyl_bessel_i/pr56216.cc: New.
4010 2013-02-07 Paolo Carlini <paolo.carlini@oracle.com>
4012 * testsuite/27_io/basic_ios/pr56193.cc: Tweak.
4014 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
4017 * include/bits/basic_ios.h: Replace operator void*() const
4018 with explicit operator bool() const in C++11 and greater.
4019 * testsuite/27_io/basic_ios/pr56193.cc: New file.
4021 2013-02-04 Dodji Seketeli <dodji@redhat.com>
4023 Add missing explicit instantiation for std::lower_bound template
4024 * libstdc++-v3/src/c++11/hashtable_c++0x.cc (namespace std): Add
4025 missing instantiation for std::lower_bound template.
4027 2013-02-04 François Dumont <fdumont@gcc.gnu.org>
4029 * include/bits/functional_hash.h (std::__is_fast_hash<>): New.
4030 * include/bits/basic_string.h: Specialize previous to mark
4031 std::hash for string types as slow.
4032 * include/bits/hashtable.h (__cache_default): Replace is_integral
4033 with __is_fast_hash.
4034 * src/c++11/hash_c++0x.cc: Add type_traits include.
4035 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
4036 Adapt dg-error line number.
4037 * testsuite/23_containers/unordered_set/
4038 not_default_constructible_hash_neg.cc: Likewise.
4040 2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4041 Paolo Carlini <paolo.carlini@oracle.com>
4043 PR libstdc++/56202 (again)
4044 * include/bits/random.tcc (binomial_distribution<>::
4045 _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Fix thinko
4048 * include/bits/random.h: Fix comment typo.
4050 2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4051 Paolo Carlini <paolo.carlini@oracle.com>
4054 * include/bits/random.tcc (binomial_distribution<>::
4055 _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Avoid
4058 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4060 Update copyright years.
4061 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc,
4062 testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc,
4063 testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc,
4064 testsuite/23_containers/deque/requirements/dr438/insert_neg.cc,
4065 testsuite/23_containers/list/requirements/dr438/assign_neg.cc,
4066 testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc,
4067 testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc,
4068 testsuite/23_containers/list/requirements/dr438/insert_neg.cc,
4069 testsuite/23_containers/vector/requirements/dr438/assign_neg.cc,
4070 testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc,
4071 testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc,
4072 testsuite/23_containers/vector/requirements/dr438/insert_neg.cc,
4073 testsuite/29_atomics/atomic/cons/assign_neg.cc,
4074 testsuite/29_atomics/atomic/cons/copy_neg.cc,
4075 testsuite/29_atomics/atomic_integral/cons/assign_neg.cc,
4076 testsuite/29_atomics/atomic_integral/cons/copy_neg.cc,
4077 testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc,
4078 testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc,
4079 testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
4080 Update lines in dg error matches.
4082 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4084 * config/os/mingw32/ctype_inline.h: Fix copyright typo.
4086 2013-02-01 François Dumont <fdumont@gcc.gnu.org>
4088 * include/bits/hashtable_policy.h
4089 (_Prime_rehash_policy::_M_next_bkt)
4090 (_Prime_rehash_policy::_M_need_rehash): Move definition...
4091 * src/c++11/hashtable_c++0x.cc: ... here.
4092 * src/shared/hashtable-aux.cc: Remove c++config.h include.
4093 * config/abi/gnu.ver (GLIBCXX_3.4.18): Export _Prime_rehash_policy
4096 2013-01-29 Jason Merrill <jason@redhat.com>
4099 * config/abi/pre/gnu.ver: Don't export construction vtables.
4100 * config/abi/pre/gnu-versioned-namespace.ver: Likewise.
4102 2013-01-28 Jonathan Wakely <jwakely.gcc@gmail.com>
4105 * include/bits/hashtable_policy.h (insert(_Pair&&)): Use _M_emplace
4106 to construct value_type explicitly before trying to extract the key.
4107 * testsuite/23_containers/unordered_map/cons/56112.cc: New.
4109 2013-01-28 François Dumont <fdumont@gcc.gnu.org>
4111 * include/bits/hashtable_policy.h (_Local_iterator_base): Use
4112 _Hashtable_ebo_helper to embed functors into the local_iterator
4113 when necessary. Pass information about functors involved in hash
4115 * include/bits/hashtable.h (__cache_default): Do not cache for
4116 builtin integral types unless the hash functor is not noexcept
4117 qualified or is not default constructible. Adapt static assertions
4118 and local iterator instantiations.
4119 * include/debug/unordered_set
4120 (std::__debug::unordered_set<>::erase): Detect local iterators to
4121 invalidate using contained node rather than generating a dummy
4122 local_iterator instance.
4123 (std::__debug::unordered_multiset<>::erase): Likewise.
4124 * include/debug/unordered_map
4125 (std::__debug::unordered_map<>::erase): Likewise.
4126 (std::__debug::unordered_multimap<>::erase): Likewise.
4127 * testsuite/performance/23_containers/insert_erase/41975.cc: Test
4128 std::tr1 and std versions of unordered_set regardless of any
4129 macro. Add test on default cache behavior.
4130 * testsuite/performance/23_containers/insert/54075.cc: Likewise.
4131 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
4133 * testsuite/23_containers/unordered_set/
4134 not_default_constructible_hash_neg.cc: New.
4135 * testsuite/23_containers/unordered_set/buckets/swap.cc: New.
4137 2013-01-24 Paolo Carlini <paolo.carlini@oracle.com>
4140 * include/std/complex (pow(const complex<>&, int)): Avoid __n
4143 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4145 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
4146 Tightten scan-assembler-times regexps, add dg-additional-options for
4147 ia32, add -g0 -fno-exceptions -fno-asynchronous-unwind-tables to
4150 2013-01-12 Andi Kleen <ak@linux.intel.com>
4151 Jonathan Wakely <jwakely.gcc@gmail.com>
4154 * include/bits/atomic_base.h (__memory_order_modifier): Add
4155 __memory_order_mask, __memory_order_modifier_mask,
4156 __memory_order_hle_acquire, __memory_order_hle_release.
4157 (operator|,operator&): Add.
4158 (__cmpexch_failure_order): Rename to __cmpexch_failure_order2.
4159 (__cmpexch_failure_order): Add.
4160 (clear, store, load, compare_exchange_weak, compare_exchange_strong):
4162 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
4165 2013-01-19 Jonathan Wakely <jwakely.gcc@gmail.com>
4168 * include/std/future (_State_base::_S_check(const shared_ptr<T>&)):
4170 (__basic_future::_M_get_result()): Const qualify.
4171 (shared_future::get()): Likewise.
4172 * testsuite/30_threads/shared_future/members/get.cc: Use const
4175 2013-01-16 Jonathan Wakely <jwakely.gcc@gmail.com>
4177 PR libstdc++/55043 (again)
4178 * include/bits/alloc_traits.h (allocator_traits::construct): Disable
4179 unless construction would be well-formed.
4180 (__allow_copy_cons, __check_copy_constructible): Define.
4181 * include/bits/unordered_map.h (__check_copy_constructible): Use as
4182 base class so copy constructor will be deleted if appropriate.
4183 (is_copy_constructible): Remove specialization.
4184 * include/bits/unordered_set.h: Likewise.
4185 * include/debug/unordered_map.h: Undo previous commit. Default copy
4186 and move constructors.
4187 * include/debug/unordered_set.h: Likewise.
4188 * include/profile/unordered_map.h: Undo previous commit.
4189 * include/profile/unordered_set.h: Likewise.
4190 * testsuite/23_containers/unordered_map/55043.cc: Fix test.
4191 * testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
4192 * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
4193 * testsuite/23_containers/unordered_set/55043.cc: Likewise.
4194 * testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL,
4195 cannot support incomplete types.
4196 * testsuite/23_containers/unordered_multimap/requirements/53339.cc:
4199 2013-01-16 Jonathan Wakely <jwakely.gcc@gmail.com>
4202 * include/std/unordered_map: Include alloc_traits.h
4203 * include/std/unordered_set: Likewise.
4204 * include/bits/alloc_traits.h: Define __is_copy_insertable.
4205 * include/bits/unordered_map.h: Use it.
4206 * include/bits/unordered_set.h: Likewise.
4207 * include/debug/unordered_map.h: Likewise.
4208 * include/debug/unordered_set.h: Likewise.
4209 * include/profile/unordered_map.h: Likewise.
4210 * include/profile/unordered_set.h: Likewise.
4211 * include/bits/hashtable.h: Fix comment typos.
4212 * testsuite/23_containers/unordered_map/55043.cc: New.
4213 * testsuite/23_containers/unordered_multimap/55043.cc: New.
4214 * testsuite/23_containers/unordered_multiset/55043.cc: New.
4215 * testsuite/23_containers/unordered_set/55043.cc: New.
4217 2013-01-03 Janis Johnson <janisjo@codesourcery.com>
4219 * testsuite/lib/gdb-test.exp (gdb_batch_check): Catch error running
4222 2013-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4224 * doc/xml/manual/status_cxx2011.xml: Document that N3189 is missing.
4226 2013-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4229 * include/std/functional (_Mem_fn::operator()): Fix constraints to
4231 * testsuite/20_util/function_objects/mem_fn/55908.cc: New.
4232 * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers.
4234 2013-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4237 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Restrict test to
4239 * configure: Regenerate.
4241 2013-01-07 Jonathan Wakely <jwakely.gcc@gmail.com>
4244 * src/c++11/shared_ptr.cc (bad_weak_ptr::what()): Correct string.
4245 * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Verify
4249 * include/std/functional (bad_function_call::what()): Declare.
4250 * src/c++11/functional.cc (bad_function_call::what()): Define.
4251 * config/abi/pre/gnu.ver (bad_function_call::what()): Export.
4252 * testsuite/20_util/bad_function_call/what.cc: New.
4254 2013-01-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4256 * include/bits/unordered_map.h: Fix typo in comments.
4257 * doc/xml/manual/status_cxx2011.xml: Add implementation-defined bucket
4258 counts for unordered associative containers.
4260 2013-01-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4262 * doc/xml/manual/abi.xml: Update library and symbol versions.
4264 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4266 * include/ext/pb_ds/detail/splay_tree_/insert_fn_imps.hpp: Fix typo
4268 * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
4271 Copyright (C) 2013 Free Software Foundation, Inc.
4273 Copying and distribution of this file, with or without modification,
4274 are permitted in any medium without royalty provided the copyright
4275 notice and this notice are preserved.