1 2015-09-04 Edward Smith-Rowland <3dw4rd@verizon.net>
2 Jonathan Wakely <jwakely@redhat.com>
4 Add C++11 header <cuchar>.
5 * acinclude.m4 (GLIBCXX_CHECK_UCHAR_H): Define.
6 * config.h.in: Regenerate.
7 * configure: Regenerate.
8 * configure.ac: Check for <uchar.h>.
9 * include/Makefile.am: Add new headers.
10 * include/Makefile.in: Regenerate.
11 * include/c/cuchar: New.
12 * include/c_compatibility/uchar.h: New.
13 * include/c_global/cuchar: New.
14 * include/c_std/cuchar: New.
15 * include/precompiled/stdc++.h: Include <cuchar>.
16 * testsuite/17_intro/headers/c++200x/stdc++.cc: Include <uchar.h>.
17 * testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc:
20 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
23 * include/c/cassert: Include <bits/c++config.h>.
24 * include/c/cerrno: Likewise.
25 * include/c/cfloat: Likewise.
26 * include/c/ciso646: Likewise.
27 * include/c/climits: Likewise.
28 * include/c_global/cassert: Likewise.
29 * include/c_global/cerrno: Likewise.
30 * include/c_global/cfloat: Likewise.
31 * include/c_global/ciso646: Likewise.
32 * include/c_global/climits: Likewise.
33 * include/c_std/cassert: Likewise.
34 * include/c_std/cerrno: Likewise.
35 * include/c_std/cfloat: Likewise.
36 * include/c_std/ciso646: Likewise.
37 * include/c_std/climits: Likewise.
39 2015-09-03 Jonathan Wakely <jwakely@redhat.com>
41 * include/bits/shared_ptr_base.h: Add required header.
42 * include/std/condition_variable: Likewise.
43 * include/std/mutex: Remove unused header.
44 * include/std/shared_mutex: Remove redundant header.
45 (shared_mutex::shared_mutex()): Replace throw with __throw_bad_alloc.
48 * src/c++11/debug.cc (_S_debug_messages): Make array const.
51 * include/experimental/functional (_Not_fn): Add exception
52 specifications and non-deduced return types.
53 (not_fn): Add exception specification and wrap pointer-to-member.
54 * testsuite/experimental/functional/not_fn.cc: Test in SFINAE context
55 and test pointer-to-member.
58 * include/bits/stl_iterator_base_funcs.h (next, prev): Add concept
60 * testsuite/24_iterators/operations/prev_neg.cc: New.
61 * testsuite/24_iterators/operations/next_neg.cc: New.
63 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
65 * testsuite/18_support/pthread_guard.cc: Add *-*-rtems* target
66 selector to all lines which contain a *-*-cygwin target selector.
67 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
68 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise.
69 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
70 * testsuite/21_strings/basic_string/pthread18185.cc: Likewise.
71 * testsuite/21_strings/basic_string/pthread33394.cc: Likewise.
72 * testsuite/21_strings/basic_string/pthread4.cc: Likewise.
73 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
74 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
75 * testsuite/23_containers/list/pthread1.cc: Likewise.
76 * testsuite/23_containers/list/pthread5.cc: Likewise.
77 * testsuite/23_containers/map/pthread6.cc: Likewise.
78 * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise.
79 * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise.
80 * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise.
81 * testsuite/30_threads/async/42819.cc: Likewise.
82 * testsuite/30_threads/async/49668.cc: Likewise.
83 * testsuite/30_threads/async/54297.cc: Likewise.
84 * testsuite/30_threads/async/any.cc: Likewise.
85 * testsuite/30_threads/async/async.cc: Likewise.
86 * testsuite/30_threads/async/launch.cc: Likewise.
87 * testsuite/30_threads/async/lwg2021.cc: Likewise.
88 * testsuite/30_threads/async/sync.cc: Likewise.
89 * testsuite/30_threads/call_once/39909.cc: Likewise.
90 * testsuite/30_threads/call_once/49668.cc: Likewise.
91 * testsuite/30_threads/call_once/60497.cc: Likewise.
92 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
93 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
94 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
95 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
96 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
97 * testsuite/30_threads/condition_variable/members/3.cc: Likewise.
98 * testsuite/30_threads/condition_variable/members/53841.cc: Likewise.
99 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
101 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
102 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
103 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
104 * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise.
105 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
106 * testsuite/30_threads/future/cons/move.cc: Likewise.
107 * testsuite/30_threads/future/members/45133.cc: Likewise.
108 * testsuite/30_threads/future/members/get.cc: Likewise.
109 * testsuite/30_threads/future/members/get2.cc: Likewise.
110 * testsuite/30_threads/future/members/share.cc: Likewise.
111 * testsuite/30_threads/future/members/valid.cc: Likewise.
112 * testsuite/30_threads/future/members/wait.cc: Likewise.
113 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
114 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
115 * testsuite/30_threads/lock/1.cc: Likewise.
116 * testsuite/30_threads/lock/2.cc: Likewise.
117 * testsuite/30_threads/lock/3.cc: Likewise.
118 * testsuite/30_threads/lock/4.cc: Likewise.
119 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
120 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
121 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
122 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
123 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
124 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
125 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
126 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
127 * testsuite/30_threads/mutex/unlock/2.cc: Likewise.
128 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
129 * testsuite/30_threads/packaged_task/60564.cc: Likewise.
130 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
131 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
132 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
133 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
134 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
135 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
136 * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise.
137 * testsuite/30_threads/packaged_task/members/at_thread_exit.cc:
139 * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise.
140 * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
141 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
142 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
143 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
144 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
145 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
146 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
147 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
148 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
149 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
150 * testsuite/30_threads/promise/60966.cc: Likewise.
151 * testsuite/30_threads/promise/cons/1.cc: Likewise.
152 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
153 * testsuite/30_threads/promise/cons/move.cc: Likewise.
154 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
155 * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise.
156 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
157 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
158 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
159 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
160 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
161 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
162 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
163 * testsuite/30_threads/promise/members/swap.cc: Likewise.
164 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
165 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
167 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
168 * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
169 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
171 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
172 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
173 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
174 * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise.
175 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
176 * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
178 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
179 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
180 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
182 * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc:
184 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
185 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
186 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
188 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
190 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
192 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
194 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
196 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
197 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise.
198 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
199 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
200 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
201 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
202 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
203 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
204 * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
205 * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
206 * testsuite/30_threads/shared_lock/cons/1.cc: Likewise.
207 * testsuite/30_threads/shared_lock/cons/2.cc: Likewise.
208 * testsuite/30_threads/shared_lock/cons/3.cc: Likewise.
209 * testsuite/30_threads/shared_lock/cons/4.cc: Likewise.
210 * testsuite/30_threads/shared_lock/cons/5.cc: Likewise.
211 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
212 * testsuite/30_threads/shared_lock/locking/1.cc: Likewise.
213 * testsuite/30_threads/shared_lock/locking/2.cc: Likewise.
214 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
215 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
216 * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise.
217 * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise.
218 * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise.
219 * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise.
220 * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise.
221 * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise.
222 * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise.
223 * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise.
224 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise.
225 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise.
226 * testsuite/30_threads/this_thread/1.cc: Likewise.
227 * testsuite/30_threads/this_thread/2.cc: Likewise.
228 * testsuite/30_threads/this_thread/3.cc: Likewise.
229 * testsuite/30_threads/this_thread/4.cc: Likewise.
230 * testsuite/30_threads/thread/cons/1.cc: Likewise.
231 * testsuite/30_threads/thread/cons/2.cc: Likewise.
232 * testsuite/30_threads/thread/cons/3.cc: Likewise.
233 * testsuite/30_threads/thread/cons/4.cc: Likewise.
234 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
235 * testsuite/30_threads/thread/cons/5.cc: Likewise.
236 * testsuite/30_threads/thread/cons/6.cc: Likewise.
237 * testsuite/30_threads/thread/cons/7.cc: Likewise.
238 * testsuite/30_threads/thread/cons/8.cc: Likewise.
239 * testsuite/30_threads/thread/cons/9.cc: Likewise.
240 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
241 * testsuite/30_threads/thread/members/1.cc: Likewise.
242 * testsuite/30_threads/thread/members/2.cc: Likewise.
243 * testsuite/30_threads/thread/members/3.cc: Likewise.
244 * testsuite/30_threads/thread/members/4.cc: Likewise.
245 * testsuite/30_threads/thread/members/5.cc: Likewise.
246 * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise.
247 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
248 * testsuite/30_threads/thread/swap/1.cc: Likewise.
249 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
250 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
251 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
252 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
253 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise.
254 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
255 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
256 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
257 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
258 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
259 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
260 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
261 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
262 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
263 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
264 * testsuite/30_threads/try_lock/1.cc: Likewise.
265 * testsuite/30_threads/try_lock/2.cc: Likewise.
266 * testsuite/30_threads/try_lock/3.cc: Likewise.
267 * testsuite/30_threads/try_lock/4.cc: Likewise.
268 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
269 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
270 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
271 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
272 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
273 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
274 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
275 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
276 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
277 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
278 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
279 * testsuite/ext/rope/pthread7-rope.cc: Likewise.
280 * testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc:
282 * testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc:
285 2015-09-02 Dmitry Vyukov <dvyukov@google.com>
287 * include/bits/basic_string.h: Fix data races on _M_refcount.
289 2015-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
292 * include/std/mutex (__timed_mutex_impl::_M_try_lock_until): Use
293 _Derived::_M_timedlock().
294 (timed_mutex): Add _M_timedlock() and make base class a friend.
295 (recursive_timed_mutex): Likewise.
297 2015-08-28 Tim Shen <timshen@google.com>
300 * include/bits/regex_scanner.tcc (_Scanner<>::_M_scan_normal):
301 Always returns ordinary char token if the char isn't
302 considered a special char.
303 * testsuite/28_regex/regression.cc: New test file for collecting
304 regression testcases from, typically, bugzilla.
306 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
309 * include/bits/range_access.h (valarray, begin, end): Declare.
310 * testsuite/26_numerics/valarray/range_access.cc: Test const
312 * testsuite/26_numerics/valarray/range_access2.cc: New.
314 2015-08-27 John Marino <gnugcc@marino.st>
316 * acinclude.m4 (*-*-dragonfly*): Change 7 locale support files
317 from generic to new DragonFly versions.
318 * configure: Regenerate.
319 * config/locale/dragonfly/c_locale.cc: Improve locale support.
320 * config/locale/dragonfly/ctype_members.cc: Likewise.
321 * config/os/bsd/dragonfly/ctype_configure_char.cc: Likewise.
322 * config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99.
323 * config/locale/dragonfly/c_locale.h: New.
324 * config/locale/dragonfly/codecvt_members.cc: New.
325 * config/locale/dragonfly/collate_members.cc: New.
326 * config/locale/dragonfly/monetary_members.cc: New.
327 * config/locale/dragonfly/numeric_members.cc: New.
328 * config/locale/dragonfly/time_members.cc: New.
329 * config/locale/dragonfly/time_members.h: New.
331 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
333 * configure: Regenerate.
335 2015-08-26 Edward Smith-Rowland <3dw4rd@verizon.net>
336 Jonathan Wakely <jwakely@redhat.com>
340 * include/bits/random.tcc (generate_canonical): Loop until we get a
341 result less than one.
342 * testsuite/26_numerics/random/uniform_real_distribution/operators/
345 2015-08-26 Jonathan Wakely <jwakely@redhat.com>
347 * include/bits/shared_ptr.h (__enable_shared_from_this_helper): Use
349 * include/bits/shared_ptr_base.h (weak_ptr::_M_assign): Don't assign
350 if ownership is already shared with a shared_ptr object.
351 (__enable_shared_from_this_helper): Use nullptr.
352 * testsuite/20_util/enable_shared_from_this/members/const.cc: New.
353 * testsuite/20_util/enable_shared_from_this/members/reinit.cc: New.
354 * testsuite/20_util/enable_shared_from_this/requirements/
355 explicit_instantiation.cc: Instantiate with const and incomplete types.
357 * include/debug/map.h (map::try_emplace, map::insert_or_assign):
359 * include/debug/unordered_map (unordered_map::try_emplace,
360 unordered_map::insert_or_assign): Define.
363 * src/c++11/debug.cc (_S_debug_messages): Give internal linkage.
365 2015-08-24 François Dumont <fdumont@gcc.gnu.org>
368 * include/debug/formatter.h (_Debug_msg_id::__msg_irreflexive_ordering):
370 * include/debug/functions.h (_Irreflexive_checker): New.
371 (__is_irreflexive, __is_irreflexive_pred): New.
372 * include/debug/macros.h
373 (__glibcxx_check_irreflexive, __glibcxx_check_irreflexive_pred): New
375 (__glibcxx_check_irreflexive2, __glibcxx_check_irreflexive_pred2): New
376 macros limited to post-C++11 mode.
377 * include/debug/debug.h
378 (__glibcxx_requires_irreflexive, __glibcxx_requires_irreflexive_pred):
379 New macros, use latter.
380 (__glibcxx_requires_irreflexive2, __glibcxx_requires_irreflexive_pred2):
382 * include/bits/stl_algo.h
383 (partial_sort_copy): Add irreflexive debug check.
384 (partial_sort_copy): Likewise.
385 (lower_bound): Likewise.
386 (upper_bound): Likewise.
387 (equal_range): Likewise.
388 (binary_search): Likewise.
389 (inplace_merge): Likewise.
390 (includes): Likewise.
391 (next_permutation): Likewise.
392 (prev_permutation): Likewise.
393 (is_sorted_until): Likewise.
394 (minmax_element): Likewise.
395 (partial_sort): Likewise.
396 (nth_element): Likewise.
399 (stable_sort): Likewise.
400 (set_union): Likewise.
401 (set_intersection): Likewise.
402 (set_difference): Likewise.
403 (set_symmetric_difference): Likewise.
404 (min_element): Likewise.
405 (max_element): Likewise.
406 * include/bits/stl_algobase.h
407 (lower_bound): Likewise.
408 (lexicographical_compare): Likewise.
409 * include/bits/stl_heap.h
410 (push_heap): Likewise.
411 (pop_heap): Likewise.
412 (make_heap): Likewise.
413 (sort_heap): Likewise.
414 (is_heap_until): Likewise.
415 * testsuite/25_algorithms/lexicographical_compare/debug/
416 irreflexive_neg.cc: New.
417 * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: New.
418 * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
421 2015-08-24 Jonathan Wakely <jwakely@redhat.com>
424 * include/bits/char_traits.h (char_traits<char>::compare,
425 char_traits<char>::find, char_traits<char>::move,
426 char_traits<char>::copy, char_traits<char>::assign): Check for zero
428 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find,
429 char_traits<wchar_t>::move, char_traits<wchar_t>::copy,
430 char_traits<wchar_t>::assign): Likewise.
431 (char_traits<char16_t>::move, char_traits<char16_t>::copy): Likewise.
432 (char_traits<char32_t>::move, char_traits<char32_t>::copy): Likewise.
433 * include/ext/pod_char_traits.h (char_traits<character<>>::move,
434 char_traits<character<>>::copy): Likewise.
435 * testsuite/21_strings/char_traits/requirements/char/65049.cc: New.
436 * testsuite/21_strings/char_traits/requirements/char16_t/65049.cc:
438 * testsuite/21_strings/char_traits/requirements/char32_t/65049.cc:
440 * testsuite/21_strings/char_traits/requirements/wchar_t/65049.cc:
444 * include/bits/random.tcc
445 (poisson_distribution::param_type::_M_initialize): Use max<double>.
446 (binomial_distribution::param_type::_M_initialize): Likewise.
447 * testsuite/17_intro/headers/c++200x/67309.cc: New.
448 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Remove
451 2015-08-20 Jonathan Wakely <jwakely@redhat.com>
454 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Do not run
456 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
458 * include/experimental/any (__any_caster): Define at namespace scope
459 so the name is visible to name lookup.
460 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
462 * python/Makefile.am: Ensure gdb.py is installed for libstdc++ not
464 * python/Makefile.in: Regenerate.
466 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
468 * include/c_global/cmath: Fix typo in comment.
470 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
472 * include/c_global/cmath: Revert fix for libstdc++/58625, no
473 longer necessary (__builtin_signbit is now type-generic).
475 2015-08-18 Jonathan Wakely <jwakely@redhat.com>
478 * testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc:
479 Fix use of safe-bool idiom that isn't valid in C++11.
481 * include/bits/ptr_traits.h: Include <bits/move.h> for addressof.
484 * doc/xml/manual/configure.xml (manual.intro.setup.configure): Add
485 caveats for --enable-concept-checks. Improve link text.
486 * doc/xml/manual/diagnostics.xml (std.diagnostics.concept_checking):
488 * doc/html/*: Regenerate.
489 * include/bits/stl_deque.h (deque): Only use concept checks in C++03.
490 * include/bits/stl_stack.h (stack): Likewise.
491 * include/bits/stl_vector.h (vector): Likewise.
493 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
495 * include/experimental/any (any::operator=(const any&)): Move check
497 (any::operator=(any&&)): Add check for self-assignment.
498 (any::operator=(_ValueType&&)): Constrain template argument.
499 (any::swap(any&)): Add check for self-swap.
500 * testsuite/experimental/any/assign/self.cc: Test move and swap.
501 * testsuite/experimental/any/misc/any_cast_neg.cc: Update dg-error.
503 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
505 * include/experimental/array: Add feature-test macro.
506 * testsuite/experimental/array/neg.cc: Update dg-error.
508 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
510 * testsuite/experimental/array/neg.s: Remove.
511 * testsuite/experimental/array/neg.ii.gz: Remove.
513 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
515 Implement std::experimental::fundamentals_v2::make_array and
516 std::experimental::fundamentals_v2::to_array.
517 * include/Makefile.am: Add array.
518 * include/Makefile.in: Add array.
519 * include/experimental/array: New.
520 * testsuite/experimental/array/make_array.cc: Likewise.
521 * testsuite/experimental/array/neg.cc: Likewise.
522 * doc/html/manual/status.html: Mark make_array as Y.
523 * doc/xml/manual/status_cxx2017.xml: Likewise.
525 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
527 * include/bits/alloc_traits.h: Add feature-test macro.
528 * include/bits/allocator.h: Likewise.
529 * include/bits/range_access.h: Likewise.
530 * include/bits/stl_map.h: Likewise.
531 * include/bits/unordered_map.h: Likewise.
533 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
535 * testsuite/30_threads/mutex/unlock/2.cc: New.
536 * testsuite/30_threads/recursive_mutex/unlock/2.cc: New.
537 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: New.
538 * testsuite/30_threads/shared_mutex/unlock/1.cc: New.
539 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: New.
540 * testsuite/30_threads/timed_mutex/unlock/2.cc: New.
542 2015-08-13 Eelis van der Weegen <eelis@eelis.net>
544 * include/std/shared_mutex (shared_mutex::unlock()): Fix typo.
546 2015-08-12 Caroline Tice <cmtice@google.com>
548 PR 66521, Contributed by Eric Gallager
549 * acinclude.m4 (VTV_CXXLINKFLAGS): Make this variable OS-specific, and
550 fix the rpath flag to work properly for darwin.
551 * configure: Regenerated.
553 2015-08-12 Jonathan Wakely <jwakely@redhat.com>
555 * doc/xml/manual/appendix_contributing.xml: Update patch email policy.
556 * doc/xml/manual/status_cxx2017.xml: Update status table.
557 * doc/html/manual/*: Regenerate.
559 2015-08-09 Ville Voutilainen <ville.voutilainen@gmail.com>
561 Implement N4279, Improved insertion interface for unique-key maps.
562 * include/bits/stl_map.h (try_emplace, insert_or_assign): New.
563 * include/bits/stl_tree.h (_M_get_insert_unique_pos,
564 _M_get_insert_equal_pos, _M_get_insert_hint_unique_pos,
565 _M_get_insert_hint_equal_pos): Make public.
566 * include/bits/unordered_map.h (try_emplace, insert_or_assign): New.
567 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
569 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
570 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
572 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
575 2015-08-08 Ville Voutilainen <ville.voutilainen@gmail.com>
577 Implement N4089 Safe conversions in unique_ptr<T[]> (LWG 2118)
578 and N4366 LWG 2228: Missing SFINAE rule in unique_ptr
580 * include/bits/unique_ptr.h
581 (__remove_cv, __is_derived_Tp): Remove.
582 (default_delete::default_delete(const default_delete<_Up[]>)):
583 Constrain with array convertibility.
584 (default_delete::operator(_Up*)): Turn into a template,
585 constrain with array convertibility.
586 (__safe_conversion_up): New, single object version.
587 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Constrain with deleter
589 (unique_ptr::operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
590 is_assignable as a constraint.
591 (__safe_conversion_up): Array version, renamed from __safe_conversion,
592 updated to implement N4089.
593 (__safe_conversion_raw): New.
594 (unique_ptr(_Up)): Turn into a template, constrain with array
597 typename conditional<is_reference<deleter_type>::value,
598 deleter_type, const deleter_type&>::type)): Likewise.
599 (unique_ptr(_Up, typename
600 remove_reference<deleter_type>::type&&)): Likewise.
601 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Likewise.
602 (operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
603 is_assignable as a constraint (array version).
604 (reset(_Up)): Turn into a template, constrain with array
606 (reset(nullptr_t)): New.
607 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
608 * testsuite/20_util/unique_ptr/assign/48635.cc: Likewise.
609 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
610 * testsuite/20_util/unique_ptr/assign/cv_qual.cc: Likewise.
611 * testsuite/20_util/unique_ptr/cons/cv_qual.cc: Likewise.
612 * testsuite/20_util/unique_ptr/dr2228.cc: New.
613 * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Adjust.
615 2015-08-05 Nikolai Bozhenov <n.bozhenov@samsung.com>
617 * testsuite/20_util/enable_shared_from_this/cons/constexpr.cc: Remove
618 redundant -save-temps option.
619 * testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise.
620 * testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
621 * testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.
622 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
623 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
625 2015-08-03 Jonathan Wakely <jwakely@redhat.com>
628 * include/bits/range_access.h (size, empty, data): Fix _N bad name.
630 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
632 * testsuite/experimental/filesystem/operations/current_path.cc: Use
633 canonical paths for comparisons.
635 2015-07-30 Tim Shen <timshen@google.com>
637 * include/bits/regex_automaton.h (_State_base, _State<>):
638 Remove _TraitsT dependency from _State<>; Make matcher member
639 into the union to reduce struct size.
640 * include/bits/regex_automaton.tcc (_State_base<>::_M_print,
641 _State_base<>::_M_dot, _StateSeq<>::_M_clone):
642 Adjust to fit the interface. Factor out common parts in
643 _M_clone as _State<>::_M_has_alt.
644 * include/bits/regex_executor.h (_Executer<>::_M_lookahead):
645 Only pass state id instead of the whole state.
646 * include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
647 _Executer<>::_M_lookahead): Adjust to fit the interface.
648 * include/std/regex: Include <ext/aligned_buffer.h>
650 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
652 * include/experimental/any (any::operator=(const any&)): Check for
654 * testsuite/experimental/any/assign/self.cc: New.
655 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
657 2015-07-29 Jonathan Wakely <jwakely@redhat.com>
660 * testsuite/lib/libstdc++.exp (v3-build_support): Compile
661 testsuite_shared.cc with -std=gnu++98.
663 2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
665 * include/bits/range_access.h: Change class to typename in every
667 (size, empty, data): New functions from N4280.
668 * testsuite/24_iterators/container_access.cc: New.
671 * include/bits/functional_hash.h (__hash_enum): New.
672 (hash): Derive from __hash_enum.
673 * testsuite/20_util/hash/60970.cc: New.
675 2015-07-29 Tim Shen <timshen@google.com>
678 * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
679 _BracketMatcher<>::_M_add_collating_element): Change signature
680 to make checking the and of bracket expression easier.
681 * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
682 Treat '-' as a valid literal if it's at the end of bracket expression.
683 * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
686 2015-07-24 Jonathan Wakely <jwakely@redhat.com>
688 * include/bits/atomic_futex.h [_GLIBCXX_HAVE_LINUX_FUTEX]
689 (_M_load_and_test_until): Whitespace.
690 (_M_load_and_test): Value-initialize the unused durations.
691 (_M_load_when_equal): Add missing return value.
693 2015-07-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
695 * fragment.am (AM_CPPFLAGS): Add CPPFLAGS.
696 * Makefile.in: Regenerate.
697 * doc/Makefile.in: Regenerate.
698 * include/Makefile.in: Regenerate.
699 * libsupc++/Makefile.in: Regenerate.
700 * po/Makefile.in: Regenerate.
701 * python/Makefile.in: Regenerate.
702 * src/Makefile.in: Regenerate.
703 * src/c++11/Makefile.in: Regenerate.
704 * src/c++98/Makefile.in: Regenerate.
705 * src/filesystem/Makefile.in: Regenerate.
706 * testsuite/Makefile.in: Regenerate.
708 2015-07-23 DJ Delorie <dj@redhat.com>
710 * include/bits/functional_hash.h: Add specializations for __intN
713 * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp (__gnu_pbds):
714 Guard against values that might exceed size_t's precision.
716 2015-07-20 Jason Merrill <jason@redhat.com>
718 * include/bits/c++config: Fix abi_tag in special modes.
720 2015-07-19 Jonathan Wakely <jwakely@redhat.com>
722 * doc/xml/manual/status_cxx2017.xml: Fix URL for N4279.
723 * doc/html/manual/status.html: Regenerate.
725 2015-07-17 Jonathan Wakely <jwakely@redhat.com>
727 * doc/xml/manual/status_cxx2011.xml: Add caveats for native_handle.
728 * doc/html/manual/status.html: Regenerate.
730 2015-07-16 François Dumont <fdumont@gcc.gnu.org>
732 * include/bits/stl_algobase.h (__miter_base): Move...
733 * include/bits/cpp_type_traits.h: ...here.
734 * include/debug/functions.h (__foreign_iterator_aux): Use latter.
735 * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
737 2015-07-13 Jonathan Wakely <jwakely@redhat.com>
740 * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
741 endianness bit in mode.
742 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
744 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
745 * include/bits/forward_list.h (forward_list::swap): Make noexcept
747 * include/bits/hashtable.h (_Hashtable::swap): Do not use
749 * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
751 * include/bits/stl_deque.h (deque::swap): Likewise.
752 (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
753 * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
754 (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
755 * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
756 _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
757 * include/bits/stl_multimap.h (multimap::swap,
758 swap(multimap&, multimap&)): Likewise.
759 * include/bits/stl_multiset.h (multiset::swap,
760 swap(multiset&, multiset&)): Likewise.
761 * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
762 * include/bits/stl_tree.h (_Rb_tree::swap,
763 swap(_Rb_tree&, _Rb_tree&)): Likewise.
764 * include/bits/stl_vector.h (vector::swap): Make noexcept
766 (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
767 * include/debug/deque (deque::swap, swap): Likewise.
768 * include/debug/forward_list (swap): Add noexcept.
769 * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
770 * include/debug/map.h (map::swap, swap): Likewise.
771 * include/debug/multimap.h (multimap::swap, swap): Likewise.
772 * include/debug/multiset.h (multiset::Swap, swap): Likewise.
773 * include/debug/set.h (set::swap, swap): Likewise.
774 * include/debug/unordered_map (unordered_map::swap,
775 unordered_multimap::swap, swap): Likewise.
776 * include/debug/unordered_set (unordered_set::swap,
777 unordered_multiset::swap, swap): Likewise.
778 * include/debug/vector (vector::swap, swap): Likewise.
779 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
781 * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
782 * include/profile/forward_list (swap): Add noexcept.
783 * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
784 * include/profile/map.h (map::swap, swap): Likewise.
785 * include/profile/multimap.h (multimap::swap, swap): Likewise.
786 * include/profile/multiset.h (multiset::swap, swap): Likewise.
787 * include/profile/set.h (set::swap, swap): Likewise.
788 * include/profile/unordered_map (swap): Likewise.
789 * include/profile/unordered_set (swap): Likewise.
790 * include/profile/vector (vector::swap, swap): Likewise. Remove
791 overloads for swapping rvalues.
792 * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
793 for noexcept on swap.
794 * testsuite/23_containers/forward_list/allocator/noexcept.cc:
796 * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
797 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
798 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
799 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
800 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
801 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
803 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
805 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
807 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
809 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
810 * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
811 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
814 2015-07-13 John Marino <gnugcc@marino.st>
816 * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
817 _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
818 _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
820 2015-07-05 François Dumont <fdumont@gcc.gnu.org>
822 * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
824 * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
827 2015-07-03 Jonathan Wakely <jwakely@redhat.com>
829 * doc/xml/manual/status_cxx2017.xml: Update status table.
830 * doc/html/manual/*: Regenerate.
832 2015-07-03 Ville Voutilainen <ville.voutilainen@gmail.com>
834 Implement std::experimental::fundamentals_v2::propagate_const.
835 * include/Makefile.am: Add propagate_const.
836 * include/Makefile.in: Regenerate.
837 * include/experimental/propagate_const: New.
838 * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
839 * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
840 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
842 * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
843 * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
844 * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
845 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
846 * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
847 * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
848 * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
849 * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
850 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
851 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
852 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
853 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
854 * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
855 * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
857 2015-07-02 Jonathan Wakely <jwakely@redhat.com>
859 * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
860 --with-default-libstdcxx-abi
861 * configure: Regenerate.
862 * doc/xml/manual/configure.xml: Document valid arguments.
864 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
866 * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
867 to avoid unused variable warning.
868 (__set_and_release): Use __p after __atomic_store to avoid unused
871 2015-07-01 Jonathan Wakely <jwakely@redhat.com>
873 * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
874 (__allocator_traits_base): New base class.
875 (__alloc_rebind): Reimplement in terms of detection idiom.
876 (allocator_traits): Derive from __allocator_traits_base. Reimplement
877 nested types in terms of detection idiom. Simplify SFINAE constraints
878 on overloaded static member functions.
879 * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
881 * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
882 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
883 dg-error line number.
885 * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
886 __ptrtr_rebind, __ptrtr_not_void): Remove
887 (__get_first_arg, __replace_first_arg, __make_not_void): Define new
889 (__detected_or_): New detection trait.
890 (pointer_traits): Use new traits.
891 * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
892 * testsuite/20_util/pointer_traits/requirements/
893 explicit_instantiation.cc: Use valid arguments to pointer_traits.
895 * doc/xml/manual/status_cxx2017.xml: Update status table.
896 * include/experimental/type_traits (void_t, is_detected,
897 is_detected_v, detected_t, detected_or, detected_or_t,
898 is_detected_exact, is_detected_exact_v, is_detected_convertible,
899 is_detected_convertible_v): Define.
900 * include/std/type_traits (__detector, __detected_or, __detected_or_t,
901 __detected_or_t_): Define.
902 * testsuite/experimental/type_traits/detection.cc: New.
904 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
906 * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
907 * doc/Makefile.in: Regenerate.
909 * include/bits/stl_pair.h: Replace class keyword with typename.
911 2015-06-30 Ville Voutilainen <ville.voutilainen@gmail.com>
913 Implement N4387, "Improving pair and tuple", and LWG 2367.
915 * include/bits/stl_pair.h (_ConstructiblePair,
916 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
917 _ImplicitlyMoveConvertiblePair): New.
918 (pair()): Constrain it.
919 (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
920 pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
921 pair(pair<_U1, _U2>&&)): Make conditionally explicit.
922 * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
923 (tuple()): Constrain it.
924 (tuple(const _UElements&...), tuple(_UElements&&...),
925 tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
926 tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
927 tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
928 tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
929 tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
930 tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
931 tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
932 tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
933 conditionally explicit.
934 * include/experimental/functional (__boyer_moore_array_base): Name
935 array type explicitly instead of using an empty braced-init-list.
936 * testsuite/20_util/pair/cons/explicit_construct.cc: New.
937 * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
938 * testsuite/20_util/pair/requirements/dr2367.cc: New.
939 * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
940 * testsuite/20_util/tuple/requirements/dr2367.cc: New.
942 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
944 * configure: Regenerate.
946 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
948 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
950 * include/debug/functions.h
951 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
952 * include/debug/safe_iterator.h
953 (__gnu_debug::_Sequence_traits): New.
954 (__gnu_debug::__get_distance_from_begin): New.
955 (__gnu_debug::__get_distance_to_end): New.
956 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
957 distance information. Add optional check_dereferenceable parameter,
959 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
960 default definition...
961 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
962 (__gnu_debug::__unsafe): Likewise.
963 * include/debug/helper_functions.h: ...here. New.
964 (__gnu_debug::__unsafe): New helper function to remove safe iterator
966 * include/debug/stl_iterator.h: New. Include latter.
967 * include/bits/stl_iterator.h: Include latter in debug mode.
968 * include/debug/stl_iterator.tcc: Adapt.
969 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
970 overload for _Safe_local_iterator.
971 (__gnu_debug::__unsafe): Likewise.
972 * include/debug/safe_local_iterator.tcc: Adapt.
973 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
974 (__glibcxx_check_insert_range): Add _Dist parameter.
975 (__glibcxx_check_insert_range_after): Likewise.
976 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
977 _GLIBCXX_DEBUG_PEDASSERT.
978 * include/debug/deque (deque<>::assign): Remove iterator debug layer
980 (deque<>::insert): Likewise.
981 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
982 (forward_list<>::splice_after): Use latter.
983 (forward_list<>::assign): Remove iterator debug layer when possible.
984 (forward_list<>::insert_after): Likewise.
985 (__gnu_debug::_Sequence_traits<>): Partial specialization.
986 * include/debug/list (list<>::assign): Remove iterator debug layer when
988 (list<>::insert): Likewise.
989 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
990 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
992 * include/debug/multimap.h (multimap<>::insert): Likewise.
993 * include/debug/set.h (set<>::insert): Likewise.
994 * include/debug/multiset.h (multiset<>::insert): Likewise.
995 * include/debug/string (basic_string<>::append, basic_string<>::assign,
996 basic_string<>::insert, basic_string<>::replace): Likewise.
997 * include/debug/unordered_map
998 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
999 * include/debug/unordered_set
1000 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
1001 * include/debug/vector
1002 (vector<>::assign, vector<>::insert): Likewise.
1003 * include/Makefile.am: Add new debug headers.
1004 * include/Makefile.in: Regenerate.
1006 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
1008 * doc/xml/manual/intro.xml: Document LWG 2108 status.
1009 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
1011 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
1012 * include/bits/forward_list.h
1013 (forward_list::operator=(forward_list&&)): Use __bool_constant.
1014 (forward_list::swap(forward_list&)): Add noexcept.
1015 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
1017 (_Hashtable::swap(_Hashtable&)): Likewise.
1018 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
1019 Use _Alloc_traits::is_always_equal.
1020 (deque::operator=(deque&&)): Likewise.
1021 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
1023 (swap(deque&, deque&)): Add noexcept.
1024 * include/bits/stl_list.h (list::operator=(list&&)): Use
1026 (swap(list&, list&)): Add noexcept.
1027 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
1029 (swap(map&, map&)): Add noexcept.
1030 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
1031 _Compare in noexcept.
1032 (swap(multimap&, multimap&)): Add noexcept.
1033 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
1034 _Compare in noexcept.
1035 (swap(multiset&, multiset&)): Add noexcept.
1036 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
1038 (swap(set&, set&)): Add noexcept.
1039 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
1040 _Compare in noexcept.
1041 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
1043 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
1045 (swap(vector&, vector&)): Add noexcept.
1046 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
1047 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
1048 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
1049 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
1050 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
1052 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
1053 __allocator_always_compares_equal.
1054 * include/ext/array_allocator.h (array_allocator::is_always_equal):
1056 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
1057 __propagate_on_move, __propagate_on_swap): Remove.
1058 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
1059 scoped_allocator_adaptor::propagate_on_container_move_assignment,
1060 scoped_allocator_adaptor::propagate_on_container_swap): Define with
1061 __and_ instead of __any_of.
1062 (scoped_allocator_adaptor::is_always_equal): Define.
1063 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
1064 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
1065 derive from true_type or false_type.
1066 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
1067 is_always_equal member and remove the trait specialization.
1068 * testsuite/23_containers/vector/52591.cc: Likewise.
1069 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1070 Adjust dg-error line number.
1071 * testsuite/23_containers/deque/requirements/dr438/
1072 constructor_1_neg.cc: Likewise.
1073 * testsuite/23_containers/deque/requirements/dr438/
1074 constructor_2_neg.cc: Likewise.
1075 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1077 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1079 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1081 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1083 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1085 * testsuite/23_containers/vector/requirements/dr438/
1086 constructor_1_neg.cc: Likewise.
1087 * testsuite/23_containers/vector/requirements/dr438/
1088 constructor_2_neg.cc: Likewise.
1089 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1092 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
1093 * include/bits/stl_map.h (map::map()): Likewise.
1094 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
1095 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
1096 * include/bits/stl_set.h (set::set()): Likewise.
1098 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
1100 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
1102 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
1104 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
1106 (basic_string<>::back()): Likewise.
1107 (basic_string<>::pop_back()): Likewise.
1109 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
1111 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
1112 dg-error line numbers.
1113 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1116 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
1118 * include/debug/array: Include <array>. Add version namespace when
1119 specializing tuple interface to array. Add specialization for
1120 __is_tuple_like_impl.
1121 * include/profile/array: Likewise.
1122 * include/std/array: Include <utility>. Add specialization for
1123 __is_tuple_like_impl.
1125 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
1126 * include/std/utility: ... here. Include <type_traits>.
1127 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
1128 dg-error line number.
1129 * testsuite/23_containers/array/tuple_interface/
1130 tuple_element_debug_neg.cc: Likewise.
1132 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
1134 * testsuite/26_numerics/complex/value_operations/1.cc: Use
1135 non-negative rho argument.
1137 * include/debug/list (__gnu_debug::list): Use allocator-aware
1138 _Safe_container base.
1139 * include/debug/string (__gnu_debug::basic_string): Use
1140 allocator-aware _Safe_container base for cxx11 ABI.
1142 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
1143 (wstring_convert): Move into __cxx11 namespace.
1144 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
1148 * include/bits/stl_uninitialized.h
1149 (__uninitialized_copy::__uninit_copy): Cast expression to void.
1151 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
1154 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
1155 (list::list(const list&)): Use allocator propagation trait. Use
1156 _M_assign_dispatch to copy elements.
1157 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
1158 (_List_node::_M_valptr()): Add accessor for stored value.
1159 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
1160 (_List_base, list): Use allocator traits.
1161 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
1162 (_List_base::_M_move_nodes): New function.
1163 (_List_base(_List_base&&)): Use _M_move_nodes.
1164 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
1165 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
1167 (list(size_type)): Add allocator parameter.
1168 (list(const list&)): Use allocator propagation trait.
1169 (list(const list&, const allocator_type&)): New constructor.
1170 (list(list&&, const allocator_type&)): Likewise.
1171 (list::operator=(list&&), list::swap(list&)): Use allocator
1173 (list::_M_move_assign): New functions.
1174 * include/debug/list: Add allocator-extended constructors.
1175 * include/profile/list: Likewise.
1176 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
1177 function to get value from _List_node.
1178 (StdListPrinter): Use get_value_from_list_node.
1179 * testsuite/23_containers/list/allocator/copy.cc: New.
1180 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
1181 * testsuite/23_containers/list/allocator/minimal.cc: New.
1182 * testsuite/23_containers/list/allocator/move.cc: New.
1183 * testsuite/23_containers/list/allocator/move_assign.cc: New.
1184 * testsuite/23_containers/list/allocator/noexcept.cc: New.
1185 * testsuite/23_containers/list/allocator/swap.cc: New.
1186 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1187 Adjust dg-prune-output line number.
1188 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1190 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1193 * include/bits/forward_list.h
1194 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
1196 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
1197 (forward_list(const _Alloc&)): Split default constructor out to
1199 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
1201 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
1202 swap call with two assignments.
1203 * include/bits/forward_list.tcc
1204 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
1205 move elements when allocators are not equal.
1206 * include/debug/forward_list (forward_list(const allocator_type&)):
1207 Split default constructor out to separate function.
1208 * include/profile/forward_list (forward_list(const _Alloc&)):
1211 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
1212 Remove unnecessary uses of operator& and static_cast.
1213 * include/bits/forward_list.tcc
1214 (forward_list::operator=(const forward_list&)): Use __addressof
1215 instead of operator&.
1216 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
1217 Remove invalid static_casts.
1218 * include/debug/forward_list: Use __addressof instead of operator&.
1219 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
1221 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
1222 __is_nothrow_swappable.
1224 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
1226 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
1228 * include/bits/list.tcc (list::operator=(const list&), list::merge):
1229 Use __addressof instead of operator&.
1230 (list::sort): Use array-to-pointer decay instead of operator&.
1231 * include/bits/stl_list.h (list::splice): Use __addressof instead of
1233 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
1235 * include/debug/functions.h (__check_singular): Likewise.
1236 * include/debug/list (list::splice, list::merge): Likewise.
1237 * testsuite/23_containers/list/modifiers/addressof.cc: New.
1240 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
1243 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
1245 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
1248 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
1251 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1255 * config/cpu/alpha/atomic_word.h: Remove.
1256 * config/cpu/ia64/atomic_word.h: Remove.
1257 * config/cpu/powerpc/atomic_word.h: Remove.
1258 * config/os/aix/atomic_word.h: Remove.
1259 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
1260 Use generic definition.
1262 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1266 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
1267 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
1268 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
1269 * include/ext/atomicity.h: Likewise.
1270 * include/tr1/shared_ptr.h: Likewise.
1271 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
1273 (__set_and_release): Likewise.
1274 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
1276 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
1277 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
1280 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
1282 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
1283 debug and profile modes.
1284 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
1285 for swap in C++11 and later.
1287 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
1290 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
1293 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
1296 * testsuite/22_locale/conversions/string/66441.cc: New.
1297 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
1298 in the output string for BOM and complete result.
1301 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
1302 for single UTF-16 units.
1303 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
1305 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
1307 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
1308 outer scope and rename to ...
1309 (std::__hash_is_transparent<>): ... this.
1310 * include/debug/stl_map.h (map::find<>,
1311 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
1312 member function templates to perform heterogeneous lookup.
1313 * include/debug/stl_multimap.h (multimap::find<>,
1314 multimap::lower_bound<>, multimap::upper_bound<>,
1315 multimap::equal_range<>): Likewise.
1316 * include/debug/stl_multiset.h (multiset::find<>,
1317 multiset::lower_bound<>, multiset::upper_bound<>,
1318 multiset::equal_range<>): Likewise.
1319 * include/debug/stl_set.h (set::find<>,
1320 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
1321 * include/profile/stl_map.h (map::find<>, map::count<>,
1322 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
1323 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
1324 multimap::lower_bound<>, multimap::upper_bound<>,
1325 multimap::equal_range<>): Likewise.
1326 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
1327 multiset::lower_bound<>, multiset::upper_bound<>,
1328 multiset::equal_range<>): Likewise.
1329 * include/profile/stl_set.h (set::find<>, set::count<>,
1330 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
1331 * testsuite/23_containers/map/operations/1.cc: Check const variants.
1332 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
1333 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
1334 * testsuite/23_containers/set/operations/1.cc: Likewise.
1336 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
1338 * doc/xml/manual/status_cxx2017.xml: Update status tables.
1339 * doc/html/manual/*: Regenerate.
1340 * include/std/type_traits (bool_constant): Define.
1341 * testsuite/20_util/bool_constant/requirements.cc: New.
1342 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
1343 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
1345 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1348 * include/std/shared_mutex (__shared_mutex_pthread,
1349 __shared_mutex_cv): New helper types implementing the shared mutex
1351 (shared_mutex): New type for C++17.
1352 (shared_timed_mutex): Derive from one of the new helper types.
1353 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
1354 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
1355 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
1356 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
1358 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
1359 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
1361 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
1363 Add __is_nothrow_swappable and take it into use.
1364 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
1365 * include/bits/move.h (swap): Add constraints in C++11 and later.
1366 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
1367 for the free swap function for pair.
1368 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
1369 for the free swap functions for queue and priority_queue.
1370 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
1371 for the free swap function for stack.
1372 * include/debug/array (swap): Use __is_nothrow_swappable
1373 for the free swap function for array.
1374 * include/profile/array (swap): Likewise.
1375 * include/std/array (swap): Likewise.
1376 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
1377 * include/std/type_traits (__is_swappable_impl::__is_swappable,
1378 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
1379 * testsuite/20_util/is_nothrow_swappable/requirements/
1380 explicit_instantiation.cc: New.
1381 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
1383 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
1385 2015-06-03 François Dumont fdumont@gcc.gnu.org>
1387 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
1389 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
1391 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
1392 * doc/html/manual/*: Regenerate.
1394 * doc/html/ext/lwg-active.html: Update to R93.
1395 * doc/html/ext/lwg-closed.html: Likewise.
1396 * doc/html/ext/lwg-defects.html: Likewise.
1397 * doc/html/manual/*: Regenerate.
1398 * doc/xml/manual/intro.xml: Document status of several DRs.
1400 2015-06-02 Renlin Li <renlin.li@arm.com>
1402 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
1404 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
1406 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
1407 environment variable.
1409 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
1412 * include/bits/stl_algobase.h (__fill_a): Check length before calling
1415 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
1417 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
1418 instead of checking for null pointers.
1419 (__lexicographical_compare<true>::__lc): Only check shorter length.
1421 2015-05-29 François Dumont fdumont@gcc.gnu.org>
1423 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
1424 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
1425 * include/debug/assertions.h: ...here, new.
1426 * include/debug/formatter.h
1427 (_Error_formatter::_Is_iterator_value_type): New.
1428 (_Error_formatter::_Is_instance): New.
1429 (_Error_formatter::_Parameter): Make public and not friend anymore.
1430 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
1431 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
1433 (_Error_formatter::_Parameter::_Type): New.
1434 (_Error_formatter::_Parameter::_Instance): New, inherit from
1436 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
1437 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
1438 overloads take iterator through a const reference.
1439 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
1441 (_Parameter(const _Type&, const char*, _Is_instance)): New.
1442 (_Error_formatter::_M_print_type): Delete.
1443 (_Error_formatter::_M_iterator_value_type): New.
1444 (_Error_formatter::_M_instance): New.
1445 * include/Makefile.am: Add new above debug file.
1446 * include/Makefile.in: Regenerate.
1447 * include/debug/functions.h
1448 (__check_dereferenceable(const _Safe_iterator<>&),
1449 __valid_range(const _Safe_iterator<>&),
1450 __is_safe_random_iterator<_Safe_iterator<>>): Move...
1451 * include/debug/safe_iterator.h: ... here.
1452 Replace debug.h include with assertions.h.
1453 (__check_singular_aux): Move...
1454 * include/debug/safe_base.h: ... here.
1455 * include/debug/functions.h
1456 (__check_dereferenceable(const _Safe_local_iterator<>&),
1457 __valid_range(const _Safe_local_iterator<>&): Move...
1458 * include/debug/safe_local_iterator.h: ...here.
1459 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
1460 Remove _Safe_iterator declaration.
1461 * include/debug/safe_unordered_container.h: Replace debug.h with
1463 * include/debug/array: Replace safe_sequence.h include with
1464 formatter.h and macros.h.
1465 * include/debug/deque: Include functions.tcc.
1466 * include/debug/forward_list: Likewise.
1467 * include/debug/list: Likewise.
1468 * include/debug/string: Likewise.
1469 * include/debug/vector: Likewise.
1470 * include/bits/unique_ptr.h: Replace debug.h include with new
1472 * include/bits/stl_iterator_base_funcs.h: Likewise.
1473 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
1474 Adjust dg-error line number.
1475 * testsuite/23_containers/array/tuple_interface/
1476 tuple_element_debug_neg.cc: Likewise.
1477 * src/c++11/debug.cc: Adapt.
1479 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
1481 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
1482 * doc/html/manual/*: Regenerate.
1484 * include/std/future (__async_result_of): New alias template.
1485 (async): Use __async_result_of to pass decayed types to result_of.
1486 * testsuite/30_threads/async/lwg2021.cc: New.
1487 * doc/xml/manual/intro.xml: Document LWG 2021 status.
1490 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
1491 memcmp with null pointers.
1492 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
1495 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
1498 * include/profile/array (array::data): Use _S_ptr.
1499 * include/debug/array (array::data): Likewise.
1502 * include/std/array (__array_traits::_S_ptr): New function.
1503 (array::data): Use _S_ptr to avoid creating invalid reference.
1504 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
1505 dg-error line numbers.
1506 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1509 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
1511 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
1512 instead of downcasting.
1513 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
1514 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
1515 (_Rb_tree::_S_iter): Remove.
1516 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
1517 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
1518 instead of _S_lower_bound_tr
1519 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
1520 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
1521 instead of calling _S_lower_bound_tr.
1522 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
1523 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
1524 instead of calling _S_upper_bound_tr.
1525 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
1526 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
1527 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
1528 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
1529 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
1530 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
1531 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
1532 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
1535 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
1536 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
1538 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
1539 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
1540 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
1541 alignment of _Tp as a member subobject, not as a complete object.
1542 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
1543 _Link_type manually as it might not be in the debug info.
1545 2015-05-26 Doug Evans <dje@google.com>
1547 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
1549 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
1552 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
1554 * include/bits/locale_conv.h: Fix copyright years.
1555 * include/bits/quoted_string.h: Likewise.
1556 * src/filesystem/Makefile.am: Likewise.
1557 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
1558 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
1560 * testsuite/22_locale/conversions/string/1.cc: Likewise.
1561 * testsuite/22_locale/conversions/string/2.cc: Likewise.
1562 * testsuite/22_locale/conversions/string/3.cc: Likewise.
1563 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
1565 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
1567 * testsuite/util/testsuite_fs.h: Likewise.
1569 2015-05-23 François Dumont fdumont@gcc.gnu.org>
1572 * include/debug/functions.h (__check_sorted_aux): Cast expression to
1575 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
1578 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
1579 Don't use isync. Use lwsync if available.
1580 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
1581 powerpc cpu definition.
1583 2015-05-21 Jason Merrill <jason@redhat.com>
1585 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
1586 * libsupc++/del_op.cc: Likewise.
1588 2015-05-20 François Dumont fdumont@gcc.gnu.org>
1590 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
1592 (_Error_formatter::_M_print_type): New.
1593 * src/c++11/debug.cc
1594 (_Error_formatter::_Parameter::_M_print_field): Use latter.
1595 (_Error_formatter::_M_print_type): Implement latter using
1596 __cxaabiv1::__cxa_demangle to print demangled type name.
1598 * include/bits/cpp_type_traits.h
1599 (std::move_iterator): Delete declaration.
1600 (std::__is_move_iterator<move_iterator>): Move partial specialization...
1601 * include/bits/stl_iterator.h: ... here.
1602 (std::__miter_base): Overloads for std::reverse_iterator and
1604 * include/bits/stl_algobase.h (std::__miter_base): Provide default
1607 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
1609 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
1612 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
1613 overload for pointers.
1614 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
1615 808590.cc: Add -std=gnu++03 switch.
1616 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
1617 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
1618 * testsuite/23_containers/vector/modifiers/push_back/
1619 strong_guarantee.cc: New.
1621 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
1623 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
1624 (operator==(const list&, const list&)): If size() is O(1) compare
1625 sizes before comparing each element.
1626 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
1627 (list::resize): Use _M_resize_pos.
1629 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
1631 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
1633 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
1634 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
1635 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
1637 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1639 * configure.host: Define cpu_defines_dir for ARM.
1640 * config/cpu/arm/cpu_defines.h: New file.
1642 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
1644 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
1645 missing constructors.
1646 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
1648 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
1649 missing constructors.
1650 * include/debug/unordered_set (unordered_set, unordered_multiset):
1652 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
1653 missing constructors.
1654 * include/profile/unordered_set (unordered_set, unordered_multiset):
1657 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
1659 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
1660 use throughout the file.
1661 (make_file_type): New function.
1662 (file_size(const path&, error_code&)): Report an error for anything
1663 that isn't a regular file.
1664 (status(const path&), symlink_status(const path&)): Do not throw for
1665 file_type::not_found.
1666 (temp_directory_path()): Check additional environment variables.
1667 * testsuite/experimental/filesystem/operations/exists.cc: New.
1668 * testsuite/experimental/filesystem/operations/file_size.cc: New.
1669 * testsuite/experimental/filesystem/operations/status.cc: New.
1670 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1673 2015-05-14 Nathan Myers <ncm@cantrip.org>
1674 Jonathan Wakely <jwakely@redhat.com>
1677 * include/std/unordered_map (unordered_map, unordered_multimap): Add
1678 missing constructors.
1679 * include/std/unordered_set (unordered_set, unordered_multiset):
1681 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
1682 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
1683 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
1684 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
1686 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
1689 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
1691 * config.h.in: Regenerate.
1692 * configure: Regenerate.
1693 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
1694 not return after copying contents. Use fchmod, fchmodat, and sendfile
1696 (current_path, permissions, space): Use errno not return value.
1699 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
1701 * config.h.in: Regenerate.
1702 * configure: Regenerate.
1703 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
1705 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
1707 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
1708 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
1709 * config.h.in: Regenerate.
1710 * configure: Likewise.
1711 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
1712 __USING_SJLJ_EXCEPTIONS__.
1713 * libsupc++/eh_throw.cc: Likewise.
1714 * libsupc++/eh_ptr.cc: Likewise.
1715 * doc/html/manual/appendix_porting.html: Remove
1716 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
1717 * doc/xml/manual/build_hacking.xml: Likewise.
1718 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
1719 * doc/xml/manual/configure.xml: Likewise.
1721 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
1723 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
1724 for nullptr (LWG 2415).
1725 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
1726 construction from empty unique_ptr.
1727 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
1728 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
1730 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
1732 * testsuite/20_util/raw_storage_iterator/base.cc: New.
1734 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
1735 Remove explicit (LWG 2407).
1737 * include/bits/basic_string.h (basic_string::basic_string()): Make
1738 noexcept conditional on allocator (LWG 2455).
1740 * include/std/complex (polar): Check for negative rho (LWG 2459).
1742 * include/experimental/tuple (apply): Handle pointers to member (LWG
1744 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
1745 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
1746 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
1748 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
1750 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
1751 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
1752 * testsuite/23_containers/forward_list/allocator/minimal.cc:
1754 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
1755 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
1756 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
1757 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
1758 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
1760 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
1762 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
1764 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
1766 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
1768 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
1769 * configure: Regenerate.
1771 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1773 * Makefile.in: Regenerated with automake-1.11.6.
1774 * aclocal.m4: Likewise.
1775 * configure: Likewise.
1776 * doc/Makefile.in: Likewise.
1777 * include/Makefile.in: Likewise.
1778 * libsupc++/Makefile.in: Likewise.
1779 * po/Makefile.in: Likewise.
1780 * python/Makefile.in: Likewise.
1781 * src/Makefile.in: Likewise.
1782 * src/c++11/Makefile.in: Likewise.
1783 * src/c++98/Makefile.in: Likewise.
1784 * src/filesystem/Makefile.in: Likewise.
1785 * testsuite/Makefile.in: Likewise.
1787 2015-05-09 Jason Merrill <jason@redhat.com>
1789 * testsuite/20_util/headers/functional/synopsis.cc: Add
1790 _GLIBCXX14_CONSTEXPR.
1791 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
1793 2015-05-08 Jason Merrill <jason@redhat.com>
1795 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
1796 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
1797 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
1798 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
1799 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
1800 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
1801 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
1802 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
1803 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
1804 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
1805 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
1807 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
1808 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1809 Adjust expected errors.
1810 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
1812 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
1814 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1816 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1818 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1820 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
1822 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1824 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1826 * testsuite/23_containers/vector/requirements/dr438
1827 /constructor_1_neg.cc: Likewise.
1828 * testsuite/23_containers/vector/requirements/dr438
1829 /constructor_2_neg.cc: Likewise.
1830 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1832 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
1833 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
1834 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
1835 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
1836 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
1837 Add -Wno-deprecated.
1838 * testsuite/ext/array_allocator/check_deallocate_null.cc:
1839 Add -Wno-deprecated.
1840 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
1841 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
1842 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
1843 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
1845 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
1847 * testsuite/tr1/2_general_utilities/shared_ptr/assign
1848 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
1849 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
1850 Add -std=c++98 -fno-show-column.
1851 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
1853 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
1855 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
1856 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
1858 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1859 * src/c++98/Makefile.in: Regenerate.
1860 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
1861 * src/Makefile.in: Regenerate.
1863 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
1866 * include/std/future (async): Change default policy to launch::async.
1868 * include/experimental/any (any::_Storage): Fix alignment of buffer.
1869 (any::_Internal): Check alignment of type.
1870 * testsuite/experimental/any/cons/aligned.cc: New.
1871 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1873 * include/experimental/iterator (ostream_joiner): Simplify by using
1874 the injected-class-name and the ostream_type typedef.
1876 * include/experimental/iterator: New. Define ostream_joiner.
1877 * include/Makefile.am: Add new header.
1878 * include/Makefile.in: Regenerate.
1879 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
1880 * testsuite/experimental/iterator/ostream_joiner.cc: New.
1881 * testsuite/experimental/iterator/requirements.cc: New.
1882 * doc/xml/manual/status_cxx2017.xml: Update status.
1883 * doc/html/manual/status.html: Regenerate.
1885 * include/experimental/numeric: New. Define gcd and lcm.
1886 * include/Makefile.am: Add new header.
1887 * include/Makefile.in: Regenerate.
1888 * testsuite/experimental/numeric/gcd.cc: New.
1889 * testsuite/experimental/numeric/lcm.cc: New.
1890 * doc/xml/manual/status_cxx2017.xml: Update status.
1891 * doc/html/manual/status.html: Regenerate.
1893 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
1895 Revert addition of feature macros from other headers per latest SD-6.
1896 * include/experimental/deque: Remove feature-test macro.
1897 * include/experimental/forward_list: Ditto.
1898 * include/experimental/list: Ditto.
1899 * include/experimental/map: Ditto.
1900 * include/experimental/set: Ditto.
1901 * include/experimental/string: Ditto.
1902 * include/experimental/unordered_map: Ditto.
1903 * include/experimental/unordered_set: Ditto.
1905 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
1907 * include/experimental/any (any::_Storage): Make non-copyable.
1908 (any::any): Do not copy _Storage object.
1909 (any::operator=): Implement more efficiently than swapping.
1910 (any::swap): Use new _Op_xfer operation.
1911 (any::_Op::_Op_xfer): New enumerator.
1912 (_Manager_internal::_S_alloc): Remove unused function.
1913 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
1914 parameter instead of returning a _Storage object.
1915 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
1916 _Op_xfer operation for moving and swapping.
1917 * testsuite/experimental/any/cons/nontrivial.cc: New.
1918 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1920 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
1922 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
1926 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
1927 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
1928 and fix tests for forward_as_tuple and tie.
1930 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
1931 Set timespec members explicitly instead of with a braced-init-list.
1932 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
1934 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
1936 * include/experimental/deque: Add feature-test macro.
1937 * include/experimental/forward_list: Ditto.
1938 * include/experimental/list: Ditto.
1939 * include/experimental/map: Ditto.
1940 * include/experimental/set: Ditto.
1941 * include/experimental/string: Ditto.
1942 * include/experimental/unordered_map: Ditto.
1943 * include/experimental/unordered_set: Ditto.
1945 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1947 * include/experimental/memory: Correct feature-test macro.
1949 * include/experimental/memory: Add feature-test macro.
1950 * include/experimental/vector: Likewise.
1951 * doc/xml/manual/status_cxx2017.xml: Update status.
1952 * doc/html/manual/status.html: Regenerate.
1954 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
1956 Implement observer_ptr.
1957 * include/Makefile.am: Add new header.
1958 * include/Makefile.in: Regenerate.
1959 * include/experimental/memory: New.
1960 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
1961 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
1962 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
1963 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
1964 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
1965 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
1966 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
1967 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
1969 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
1971 * src/filesystem/path.cc (path::compare): Do not copy strings.
1973 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
1975 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
1976 * configure: Regenerate.
1977 * config.h.in: Regenerate.
1978 * configure.ac: Check for utime.h
1979 * include/experimental/fs_path.h (path::string<>)
1980 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
1981 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
1982 closedir, dirent, readdir_r): Replace dummy functions with #error.
1983 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
1984 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
1985 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
1986 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
1987 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
1990 * include/experimental/fs_path.h (path::_List): Use vector instead of
1992 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
1993 * src/filesystem/path.cc: Use std::prev instead of decrementing
1994 rvalues. Fix whitespace.
1995 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
1996 Do not decrement iterators before begin.
1998 * include/experimental/fs_dir.h: Fix use of non-reserved names.
1999 * include/experimental/fs_ops.h: Likewise.
2000 * include/experimental/fs_path.h: Likewise.
2001 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
2002 C++11 when checking for support.
2004 * include/bits/locale_classes.h (locale::facet): Delete copy
2005 operations in C++11 mode.
2007 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
2009 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
2010 * configure: Regenerate.
2012 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2014 Inline one-line erasure dispatch functions.
2015 * include/experimental/forward_list (erase_if(), erase()): Inline.
2016 * include/experimental/list (erase_if(), erase()): Inline.
2017 * include/experimental/map (erase_if(*)): Inline.
2018 * include/experimental/set (erase_if(*)): Inline.
2019 * include/experimental/string (erase_if(), erase()): Inline.
2020 * include/experimental/unordered_map (erase_if(*)): Inline.
2021 * include/experimental/unordered_set (erase_if(*)): Inline.
2023 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
2025 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
2026 * doc/xml/manual/status_cxx2011.xml: Update status tables.
2027 * doc/xml/manual/status_cxx2014.xml: Likewise.
2028 * doc/xml/manual/status_cxx2017.xml: New.
2029 * doc/xml/manual/using.xml: Fix typo.
2030 * doc/html/*: Regenerate.
2032 * include/std/memory (pointer_safety, declare_reachable,
2033 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
2034 get_pointer_safety): Define.
2035 * testsuite/20_util/pointer_safety/1.cc: New.
2037 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
2039 Implement N4100 File System TS
2040 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
2041 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
2042 * config.h.in: Regenerate.
2043 * configure: Regenerate.
2044 * configure.ac: Enable filesystem TS and check its dependencies.
2045 * include/Makefile.am: Add new headers.
2046 * include/Makefile.in: Regenerate.
2047 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
2048 __str_codecvt_out): Move code conversion logic from wstring_convert
2049 into new global functions.
2050 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
2052 (wstring_convert::_M_conv): Remove.
2053 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
2054 * include/experimental/filesystem: New.
2055 * include/experimental/fs_dir.h: New.
2056 * include/experimental/fs_fwd.h: New.
2057 * include/experimental/fs_ops.h: New.
2058 * include/experimental/fs_path.h: New.
2059 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
2060 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
2061 * src/Makefile.am (SUBDIRS): Add filesystem.
2062 * src/Makefile.in: Regenerate.
2063 * src/filesystem/Makefile.am: New.
2064 * src/filesystem/Makefile.in: New.
2065 * src/filesystem/dir.cc: New.
2066 * src/filesystem/ops.cc: New.
2067 * src/filesystem/path.cc: New.
2068 * testsuite/experimental/filesystem/operations/absolute.cc: New.
2069 * testsuite/experimental/filesystem/operations/copy.cc: New.
2070 * testsuite/experimental/filesystem/operations/current_path.cc: New.
2071 * testsuite/experimental/filesystem/path/append/path.cc: New.
2072 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
2073 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
2074 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
2075 * testsuite/experimental/filesystem/path/compare/path.cc: New.
2076 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
2077 * testsuite/experimental/filesystem/path/concat/path.cc: New.
2078 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
2079 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
2080 * testsuite/experimental/filesystem/path/construct/default.cc: New.
2081 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
2082 * testsuite/experimental/filesystem/path/construct/range.cc: New.
2083 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
2084 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
2085 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
2087 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
2089 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
2091 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
2093 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
2095 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
2096 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
2098 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
2099 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
2100 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
2102 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
2104 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
2106 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
2108 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
2109 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
2110 * testsuite/experimental/filesystem/path/query/empty.cc: New.
2111 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
2112 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
2113 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
2115 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
2117 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
2119 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
2121 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
2123 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
2124 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
2125 * testsuite/util/testsuite_fs.h: New.
2127 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2129 Add fundamentals TR container erasure.
2130 * include/Makefile.am: Add new headers.
2131 * include/Makefile.in: Add new headers.
2132 * include/experimental/array: New.
2133 * include/experimental/deque: New.
2134 * include/experimental/erase_if.tcc: New.
2135 * include/experimental/forward_list: New.
2136 * include/experimental/list: New.
2137 * include/experimental/map: New.
2138 * include/experimental/set: New.
2139 * include/experimental/string: New.
2140 * include/experimental/unordered_map: New.
2141 * include/experimental/unordered_set: New.
2142 * include/experimental/vector: New.
2143 * testsuite/experimental/deque/erasure.cc: New.
2144 * testsuite/experimental/forward_list/erasure.cc: New.
2145 * testsuite/experimental/list/erasure.cc: New.
2146 * testsuite/experimental/map/erasure.cc: New.
2147 * testsuite/experimental/set/erasure.cc: New.
2148 * testsuite/experimental/string/erasure.cc: New.
2149 * testsuite/experimental/unordered_map/erasure.cc: New.
2150 * testsuite/experimental/unordered_set/erasure.cc: New.
2151 * testsuite/experimental/vector/erasure.cc: New.
2153 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
2155 * include/bits/cpp_type_traits.h
2156 (__gnu_cxx::__is_normal_iterator): Delete.
2157 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
2158 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
2159 (std::__niter_base): Overloads for std::reverse_iterator,
2160 __gnu_cxx::__normal_iterator and std::move_iterator.
2162 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
2164 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
2166 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
2167 Remove usage of latter and compute size of the prime numbers array
2170 2015-04-29 Doug Evans <dje@google.com>
2173 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
2174 Replace all lookups of "bool" with this.
2175 (get_std_size_type): New function. Replace all lookups of std::size_t
2177 (*Worker): New method get_result_type.
2178 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
2179 (ListWorkerBase.__init__): New arg val_type. All callers updated.
2180 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
2181 Delete setting of name, enabled.
2182 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
2183 updated. Delete setting of name.
2184 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
2185 libstdc++ xmethod matchers.
2186 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
2187 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
2188 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
2189 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
2190 * testsuite/libstdc++-xmethods/list.cc: Ditto.
2191 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
2192 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
2194 2015-04-29 Doug Evans <dje@google.com>
2196 Use consistent naming for value type attributes.
2197 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
2199 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
2200 (ArrayFrontWorker, ArrayBackWorker): Ditto.
2201 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
2202 (DequeWorkerBase): Rename elemtype to val_type.
2203 (ForwardListWorkerBase): Rename _elem_type to _val_type.
2204 (ForwardListFrontWorker): Ditto. And rename elem_address to
2206 (ForwardListMethodsMatcher): Rename elem_type to val_type.
2207 (VectorWorkerBase): Rename _elemtype to _val_type.
2209 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
2212 * include/std/functional (__check_func_return_type): Use is_same to
2213 avoid using _is_convertible on incomplete types.
2214 * testsuite/20_util/function/65760.cc: New.
2217 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
2219 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
2220 time_get::_M_extract_num, time_get::_M_extract_name,
2221 time_get::_M_extract_wday_or_month): Likewise.
2222 * include/bits/stl_algo.h (__includes, __replace_copy_if,
2223 __is_sorted_until, __is_permutation, transform): Likewise.
2224 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
2225 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
2226 * include/bits/stl_numeric.h (inner_product): Likewise.
2227 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
2228 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
2229 input_iterator_wrapper): Declare unusable comma operator.
2230 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
2231 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
2234 2015-04-28 Doug Evans <dje@google.com>
2236 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
2239 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
2241 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
2244 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
2246 * Makefile.am (SUBDIRS): Move python to hosted_source.
2247 * Makefile.in: Regenerate.
2248 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
2249 * configure: Regenerate.
2251 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
2254 * include/std/limits (numeric_limits): Add missing unsigned.
2256 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
2258 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
2260 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
2263 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
2264 Handle enumeration types larger than sizeof(long).
2265 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
2267 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
2268 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2270 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
2271 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
2273 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
2276 * include/bits/forward_list.h (forward_list::splice_after): Add
2278 * include/bits/forward_list.tcc (forward_list::splice_after):
2282 * include/bits/random.h (seed_seq) Define copy constructor and copy
2283 assignment as deleted.
2284 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
2286 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
2287 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
2288 Use -std=gnu++1z. Check feature-test macro.
2290 * include/std/type_traits (void_t): Add.
2291 * testsuite/20_util/void_t/1.cc: New.
2293 2015-04-28 Tim Shen <timshen@google.com>
2295 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
2296 * include/bits/regex_automaton.tcc: Throw exception when parsing
2297 back-reference with flag __polynomial.
2298 * include/bits/regex_constants.h: Add extension flag
2299 syntax_option_type __polynomial.
2300 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
2301 Alternative operation will be fixed in the coming refactoring.
2302 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
2303 loose match_search_debug to use DFS only.
2305 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
2308 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
2309 Make the generated test program fail gracefully if the target
2310 doesn't support passing command-line arguments.
2312 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
2313 Jonathan Wakely <jwakely@redhat.com>
2315 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
2316 Return false or zero if the library is built without exceptions.
2317 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
2318 the library is built without exceptions.
2320 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
2322 * config/abi/pre/gnu.ver: Fix comment.
2324 Add support for std::uncaught_exceptions.
2325 * acinclude.m4: Bump libtool_VERSION.
2326 * config/abi/pre/gnu.ver: Export the new symbol.
2327 * configure: Regenerate.
2328 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
2329 * libsupc++/exception (uncaught_exceptions): New.
2330 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
2331 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
2333 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
2334 Michael Hanselmann <public@hansmi.ch>
2337 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
2338 uncaught exceptions.
2339 * testsuite/18_support/exception_ptr/62258.cc: New.
2341 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
2343 * doc/xml/manual/extensions.xml: Add cross-reference.
2344 * doc/html/manual/ext_compile_checks.html: Regenerate.
2346 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
2348 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
2349 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
2351 2015-04-22 Renlin Li <renlin.li@arm.com>
2353 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
2354 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
2355 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
2356 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
2357 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
2359 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
2361 * doc/xml/manual/configure.xml: Update descriptions of options
2362 affecting dual ABI and add cross-references.
2363 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
2364 * doc/xml/manual/using.xml: Document ABI transition.
2365 * doc/html/*: Regenerate.
2367 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
2368 * doc/xml/manual/using.xml: Document newer -std options. Use better
2369 examples of nested namespaces.
2371 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
2373 * doc/xml/manual/concurrency_extensions.xml: Update documentation
2375 * doc/xml/manual/using.xml: Likewise. Improve markup.
2376 * doc/html/*: Regenerate.
2378 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2380 * scripts/extract_symvers.pl: Ignore elfdump error output.
2382 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
2385 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
2386 _List_const_iterator): Declare.
2387 (__distance): Declare new overloads for _List_iterator and
2388 _List_const_iterator.
2389 * include/bits/stl_list.h (__distance): New overloads for
2390 _List_iterator and _List_const_iterator.
2391 * testsuite/23_containers/list/61347.cc: New testcase.
2393 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
2395 * doc/xml/manual/evolution.xml: Fix typos.
2396 * doc/html/manual/api.html: Regenerate.
2398 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
2400 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
2401 alignment is larger-equal, not equal, to default alignment.
2403 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
2406 * config/abi/pre/gnu.ver: Export base object constructors for
2408 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2409 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
2410 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
2411 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2412 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2413 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2414 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
2415 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2416 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
2417 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2418 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2419 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
2420 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
2421 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
2422 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2423 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2424 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
2425 * testsuite/27_io/basic_fstream/cons/base.cc: New.
2427 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
2429 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
2430 * doc/html/*: Regenerate.
2432 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
2434 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
2436 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
2438 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
2440 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2442 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
2444 * doc/xml/manual/test.xml: Improve documentation on running a subset
2446 * doc/html/manual/test.html: Regenerate.
2448 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2450 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
2451 for GCC 5.1 release.
2452 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
2455 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
2457 * include/std/shared_mutex (shared_timed_mutex): Add comments to
2458 explain the logic in the non-pthread_rwlock_t version.
2459 (_Mutex): Remove redundant type.
2460 (_M_n_readers): Rename to _S_max_readers.
2461 (_M_write_entered, _M_readers): New convenience functions.
2462 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
2463 functions. Use predicates with condition variables. Simplify bitwise
2465 (try_lock_for, try_shared_lock_for): Convert duration to time_point
2466 and call try_lock_until or try_shared_lock_until respectively.
2467 (try_lock_until, try_shared_lock_until): Wait on the condition
2468 variables until the specified time passes.
2469 (unlock): Add Debug Mode assertion.
2470 (unlock_shared): Add Debug Mode assertion.
2471 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
2473 * include/std/shared_mutex (shared_timed_mutex): Only use
2474 pthread_rwlock_t when the POSIX Timeouts option is supported.
2475 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
2476 dg-require-gthreads-timed.
2477 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
2478 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
2479 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
2481 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
2483 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
2485 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
2486 Richard Henderson <rth@redhat.com>
2489 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
2491 * include/std/atomic (atomic): For types with a power of two size set
2492 alignment to at least the size.
2493 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2494 * testsuite/29_atomics/atomic/65147.cc: New.
2495 * testsuite/29_atomics/atomic_integral/65147.cc: New.
2497 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2499 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
2500 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
2501 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
2503 2015-04-07 Jakub Jelinek <jakub@redhat.com>
2505 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
2506 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2507 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2508 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2509 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
2510 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
2511 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
2512 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
2514 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
2517 * config/abi/pre/gnu.ver: Export operator+ for new strings.
2518 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
2519 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
2521 2015-03-28 Tim Shen <timshen@google.com>
2524 * include/bits/regex_constants.h: Use constexpr variables for flags.
2525 * testsuite/28_regex/constants/constexpr.cc: New testcase.
2527 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
2530 * include/std/chrono: Add using-directive for literals to std::chrono.
2531 * testsuite/20_util/duration/literals/65499.cc: New.
2533 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
2537 * include/std/thread (this_thread::sleep_for): Check for negative
2539 (this_thread::sleep_until): Check for times in the past.
2540 * testsuite/30_threads/this_thread/58038.cc: New.
2541 * testsuite/30_threads/this_thread/60421.cc: New.
2543 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
2547 * include/std/atomic (atomic<T>): Increase alignment for types with
2548 the same size as one of the integral types.
2549 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
2550 * testsuite/29_atomics/atomic/62259.cc: New.
2552 2015-03-26 Richard Henderson <rth@redhat.com>
2555 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
2556 a fake pointer indicating type alignment.
2557 (__atomic_base<T *>::is_lock_free): Likewise.
2558 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
2560 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
2563 * testsuite/21_strings/basic_string/pthread33394.cc: Use
2564 dg-additional-options.
2566 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
2569 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
2571 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
2573 * testsuite/27_io/rvalue_streams-2.cc: New.
2575 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
2578 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
2580 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
2583 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
2584 * configure: Regenerate.
2585 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
2586 system_category): Use macros for versioned namespace.
2587 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
2589 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
2591 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
2592 test for unused for ARM.
2593 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
2594 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
2596 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
2598 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
2599 * include/ext/codecvt_specializations.h (encoding_state,
2600 encoding_char_traits): Remove abi-tag and use inline namespace.
2601 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
2603 2015-03-19 Jason Merrill <jason@redhat.com>
2605 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
2606 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
2608 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2611 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
2612 get_catalogs): Add abi-tag.
2613 * include/ext/codecvt_specializations.h (encoding_state,
2614 encoding_char_traits): Likewise.
2615 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
2616 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
2617 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
2618 money_get_shim, money_put_shim, messages_shim): Likewise.
2619 * src/c++11/future.cc (future_error_category::message): Likewise.
2620 * src/c++11/system_error.cc (generic_error_category::message,
2621 system_error_category::message): Likewise.
2622 (__sso_string): Disable -Wabi-tag warnings.
2624 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2627 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
2628 implementation for old glibc. Fix whitespace.
2630 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
2631 Torvald Riegel <triegel@redhat.com>
2633 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
2634 * config.h.in: Regenerate.
2635 * configure: Regenerate.
2636 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
2637 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
2638 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
2639 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
2642 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
2644 * libsupc++/nested_exception.h: Do not try to derive from final
2646 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
2649 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
2650 unused exception variable.
2651 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
2652 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
2654 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
2656 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
2658 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
2659 * configure: Regenerate.
2661 * include/experimental/system_error: Fix include guard.
2663 2015-03-12 Renlin Li <renlin.li@arm.com>
2665 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
2668 2015-03-10 Tim Shen <timshen@google.com>
2671 * include/bits/regex.h (match_results<>::size,
2672 match_results<>::position, match_results<>::str,
2673 match_results<>::operator[], match_results<>::prefix,
2674 match_results<>::suffix, match_results<>::end,
2675 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
2676 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
2677 global __unmatched_sub. Add unmatched submatch as part of
2679 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
2680 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
2681 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
2684 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
2687 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
2688 for newlib targets. Really fix mixed line-endings this time.
2690 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
2692 * include/std/future (future_error(error_code)): Construct base
2693 class with error_code's message.
2694 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
2697 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
2699 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
2701 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
2702 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
2704 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
2707 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
2708 incomplete multibyte sequences correctly.
2709 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
2710 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
2711 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
2713 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
2714 Define convenience functions.
2715 (read_utf8_code_point): Return relevant constant to distinguish
2716 incomplete characters from invalid sequences.
2717 (read_utf16_code_point): Likewise. Check for invalid sequences.
2718 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
2719 (utf16_out): Check for invalid sequences.
2720 (utf16_span): Fix condition.
2721 (ucs2_out): Use is_high_surrogate.
2722 (ucs2_in): Use incomplete_mb_character constant and fix condition.
2723 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
2724 * testsuite/22_locale/conversions/buffer/1.cc: New.
2725 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
2726 char32_t instead of wchar_t.
2727 * testsuite/22_locale/conversions/string/3.cc: New.
2729 2015-03-03 Iain Sandoe <iain@codesourcery.com>
2732 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
2733 visibility for Darwin.
2734 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
2736 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
2738 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
2741 * include/std/scoped_allocator (__inner_type_impl,
2742 scoped_allocator_adaptor): Add defaulted copy assignment and move
2743 assignment operators.
2744 * testsuite/20_util/scoped_allocator/65279.cc: New.
2746 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
2749 * include/std/stdexcept (__sso_string): Don't use non-static member
2752 2015-02-28 Matthias Klose <doko@ubuntu.com>
2755 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
2757 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
2759 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
2760 * doc/html/manual/status.html: Regenerate.
2762 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
2765 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
2768 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
2770 * doc/html/manual/status.html: Regenerate.
2772 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
2775 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
2776 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
2778 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
2781 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
2782 (test01): Add explanatory comment. Keep only the bd1 sub-test and
2783 split out bd2, bd3, bd4, and bd5 sub-tests into...
2784 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
2785 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
2786 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
2787 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
2788 New separate files with the old parts.
2790 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
2792 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
2794 (utf16_in): Pass mode argument to write_utf16_code_point.
2795 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
2797 * testsuite/22_locale/codecvt/char16_t.cc: New.
2798 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
2800 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
2801 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
2803 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
2804 Jonathan Wakely <jwakely@redhat.com>
2806 * testsuite/22_locale/codecvt/char32_t.cc: New.
2808 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
2811 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
2812 empty string gets null-terminated.
2813 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
2815 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
2817 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
2818 mixed line-endings introduced in last change.
2820 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
2822 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
2823 for __NEWLIB__ macro with a dejagnu set macro.
2824 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2826 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2829 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
2830 special case for '\n'.
2831 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
2833 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
2835 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
2837 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
2840 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
2842 * include/c_std/cstdio (gets): Likewise.
2843 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
2844 with attributes used in darwin headers.
2846 2015-01-29 Jakub Jelinek <jakub@redhat.com>
2848 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
2849 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
2850 * configure: Regenerated.
2852 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
2854 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2855 after vtv_cygmin is set.
2856 * configure: Regenerated.
2858 2015-01-29 Matthias Klose <doko@ubuntu.com>
2860 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
2862 * configure: Regenerate.
2864 2015-01-29 Caroline Tice <cmtice@google.com>
2866 Committing VTV Cywin/Ming patch for Patrick Wollgast
2867 * configure: Regenerate.
2868 * libsupc++/Makefile.in: Regenerate.
2869 * src/Makefile.in: Regenerate.
2871 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
2873 * include/bits/atomic_base.h: Use __always_inline__ instead of
2875 * include/bits/atomic_futex.h: Likewise.
2876 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
2877 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
2878 __packed__ instead of packed.
2879 * include/std/shared_mutex: Use __unused__ instead of unused.
2880 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
2881 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
2882 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
2884 2015-01-28 Caroline Tice <cmtice@google.com>
2886 Committing VTV Cywin/Ming patch for Patrick Wollgast
2887 * acinclude.m4: Define VTV_CYGMIN.
2888 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
2889 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
2890 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
2891 for Cygwin and MinGW.
2892 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
2893 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
2894 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
2896 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
2899 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
2900 * libsupc++/Makefile.in: Regenerate.
2901 * src/c++11/Makefile.in: Regenerate.
2903 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2905 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
2906 check for unsupported.
2907 (v3_target_compile_as_c): Likewise.
2909 2015-01-28 Richard Biener <rguenther@suse.de>
2912 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
2914 (pool::allocate): Adjust allocation size and alignment to
2916 (pool::free): Adjust pointer offsetting.
2918 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
2921 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
2922 shared_timed_mutex::try_lock_until): Only define when POSIX thread
2923 timeouts option is supported.
2924 (shared_timed_mutex::try_shared_lock_for,
2925 shared_timed_mutex::try_shared_lock_until): Likewise.
2927 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
2930 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
2931 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
2932 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
2933 and use cache's _M_grouping field.
2934 (__numpunct_fill_cache): Likewise.
2935 (__moneypunct_fill_cache): Improve comments.
2937 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
2939 * testsuite/23_containers/set/operations/2.cc: Add test for
2940 non-transparent comparison function.
2942 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
2945 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
2946 Remove SH4A inline asm and lock based implementations and use the
2947 defaults from ext/atomicity.h.
2949 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
2951 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
2952 new std::string constructors for byname facets.
2954 2015-01-22 Richard Biener <rguenther@suse.de>
2957 * libsupc++/eh_alloc.cc: Include new.
2958 (bitmask_type): Remove.
2959 (one_buffer): Likewise.
2960 (emergency_buffer): Likewise.
2961 (emergency_used): Likewise.
2962 (dependents_buffer): Likewise.
2963 (dependents_used): Likewise.
2964 (class pool): New custom fixed-size arena, variable size object
2966 (emergency_pool): New global.
2967 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
2968 (__cxxabiv1::__cxa_free_exception): Likewise.
2969 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
2970 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
2972 2015-01-22 Tim Shen <timshen@google.com>
2975 * include/bits/regex.h (basic_regex<>::basic_regex,
2976 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
2978 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
2980 2015-01-22 Tim Shen <timshen@google.com>
2983 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
2984 regex_traits<>::lookup_classname): Correctly narrow input chars.
2985 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
2987 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2989 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
2991 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
2993 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
2995 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
2997 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
2998 * doc/xml/manual/status_cxx2014.xml: Update status.
2999 * doc/html/manual/status.html: Regenerate.
3001 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3004 * include/experimental/optional (bad_optional_access): Add default
3006 * testsuite/experimental/optional/requirements.cc: Test for default
3009 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3011 * include/bits/stl_map.h (map::find<>, map::count<>,
3012 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
3013 member function templates to perform heterogeneous lookup.
3014 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
3015 multimap::lower_bound<>, multimap::upper_bound<>,
3016 multimap::equal_range<>): Likewise.
3017 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
3018 multiset::lower_bound<>, multiset::upper_bound<>,
3019 multiset::equal_range<>): Likewise.
3020 * include/bits/stl_set.h (set::find<>, set::count<>,
3021 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
3022 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
3023 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
3024 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
3025 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
3026 * testsuite/23_containers/map/operations/2.cc: New.
3027 * testsuite/23_containers/multimap/operations/2.cc: New.
3028 * testsuite/23_containers/multiset/operations/2.cc: New.
3029 * testsuite/23_containers/set/operations/2.cc: New.
3031 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3033 * config/abi/pre/gnu.ver: Export new constructors.
3034 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
3035 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
3036 specializations and declare explicit instantiations.
3037 * include/bits/locale_classes.h (locale, collate_byname): Add string
3039 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
3041 * include/bits/locale_facets_nonio.h (time_get_byname,
3042 time_put_byname, moneypunct_byname, messages_byname): Likewise.
3043 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
3044 codecvt_byname<char32_t>): Define explicit instantiations.
3045 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
3046 Instantiate string constructors.
3047 (ctype_byname): Define string constructor.
3048 * testsuite/22_locale/codecvt_byname/1.cc: New.
3049 * testsuite/22_locale/collate_byname/1.cc: New.
3050 * testsuite/22_locale/ctype_byname/2.cc: New.
3051 * testsuite/22_locale/messages_byname/1.cc: New.
3052 * testsuite/22_locale/moneypunct_byname/1.cc: New.
3053 * testsuite/22_locale/numpunct_byname/1.cc: New.
3055 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3058 * include/std/atomic (atomic_init): Define.
3059 * testsuite/29_atomics/atomic/64658.cc: New.
3061 2015-01-19 Tim Shen <timshen@google.com>
3064 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
3065 regex_traits<>::lookup_classname): Support forward iterators.
3066 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
3067 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
3069 2015-01-19 Tim Shen <timshen@google.com>
3073 * include/bits/regex.h (basic_regex<>::basic_regex,
3074 basic_regex<>::assign, basic_regex<>::imbue,
3075 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
3076 imbuing basic_regex; Make assign() transactional against exception.
3077 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
3078 __compile_nfa SFINAE.
3079 * include/std/regex: Adjust include order to avoid __compile_nfa
3080 forward declaration.
3081 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
3082 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
3084 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
3085 Jonathan Wakely <jwakely@redhat.com>
3087 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
3088 on overloads for arrays.
3089 (cbegin, cend, rbegin, rend, crbegin, crend): New.
3090 * testsuite/24_iterators/range_access_cpp14.cc: New.
3092 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
3095 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
3096 end of the second range.
3097 * testsuite/25_algorithms/is_permutation/64646.cc: New.
3099 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
3101 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
3102 * doc/html/manual/status.html: Regenerate.
3104 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
3106 * include/bits/atomic_futex.h: Use mutex and condition_variable when
3107 atomic int is not lock-free. Make member variables private.
3108 * src/c++11/futex.cc: Likewise.
3110 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
3112 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3115 * include/bits/atomic_futex.h: Use appropriate config macros for
3116 availability of std::mutex, std::condition and std::chrono.
3118 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
3119 Jonathan Wakely <jwakely@redhat.com>
3121 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
3122 * doc/html/*: Regenerate.
3124 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3128 * include/bits/algorithmfwd.h (rotate): Return an iterator.
3129 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
3130 * testsuite/25_algorithms/rotate/dr488.cc: New.
3131 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
3132 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
3134 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
3137 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3140 * include/bits/atomic_base.h: Remove atomic integral typedefs as
3141 synonyms for __atomic_base<int> etc.
3142 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
3143 likewise for all atomic integral types.
3144 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
3145 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
3147 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3150 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
3151 and define one-element specialization.
3152 * testsuite/20_util/tuple/56785.cc: New.
3154 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3156 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
3157 Remove unused header.
3158 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
3160 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
3163 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
3165 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
3166 * include/std/locale: Include new header.
3167 * include/Makefile.am: Add it.
3168 * include/Makefile.in: Regenerate.
3169 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
3170 * testsuite/22_locale/conversions/string/1.cc: New.
3171 * testsuite/22_locale/conversions/string/2.cc: New.
3172 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
3173 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
3176 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
3178 * config/abi/pre/gnu.ver: Export new symbols.
3179 * include/Makefile.am: Add codecvt.
3180 * include/Makefile.in: Regenerate.
3181 * include/std/codecvt: New header.
3182 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
3183 __codecvt_utf8_utf16_base): Define specializations.
3184 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
3185 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
3186 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
3189 2015-01-16 Torvald Riegel <triegel@redhat.com>
3191 * src/c++11/futex.cc: New file.
3192 * include/bits/atomic_futex.h: New file.
3193 * include/std/future (__future_base::_State_baseV2): Use
3194 atomic_futex_unsigned instead of mutex+condvar.
3195 * src/c++11/futex.cc: Likewise.
3196 * include/Makefile.am: Add atomic_futex.h.
3197 * include/Makefile.in: Likewise.
3198 * src/c++11/Makefile.am: Add futex.cc.
3199 * src/c++11/Makefile.in: Likewise.
3201 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
3203 * acinclude.m4: Fix typo in comment.
3204 * configure: Regenerate.
3205 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
3206 codecvt<char16_t, char, mbstate_t>): Declare specializations.
3207 * include/bits/locale_facets.h: Reserve space for new specializations.
3208 * src/c++11/Makefile.am: Add codecvt.cc.
3209 * src/c++11/Makefile.in: Regenerate.
3210 * src/c++11/codecvt.cc: New.
3211 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
3213 * src/c++98/Makefile.in: Regenerate.
3214 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
3215 * src/c++98/localename.cc: Likewise.
3216 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
3217 * testsuite/22_locale/codecvt/utf8.cc: New.
3218 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
3219 specializations are installed in locale objects.
3221 2015-01-16 Torvald Riegel <triegel@redhat.com>
3223 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
3226 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
3229 * config/abi/pre/gnu.ver: Export fstream functions using new string.
3231 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
3234 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
3238 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
3240 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3242 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
3243 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
3244 Multi Processing Runtime Library".
3246 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
3249 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
3250 is_assignable arguments.
3251 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
3254 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3256 * libsupc++/unwind-cxx.h: Revert previous commit.
3258 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3260 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
3262 2015-01-09 Tim Shen <timshen@google.com>
3265 * include/bits/regex.h (match_results<>::swap): Use std::swap
3267 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
3269 * testsuite/28_regex/match_results/swap.cc: New testcase.
3271 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
3274 * include/std/type_traits (has_trivial_default_constructor,
3275 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
3277 * testsuite/20_util/has_trivial_copy_assign/requirements/
3278 explicit_instantiation.cc: Use -Wno-deprecated.
3279 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
3281 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
3282 * testsuite/20_util/has_trivial_copy_constructor/requirements/
3283 explicit_instantiation.cc: Likewise.
3284 * testsuite/20_util/has_trivial_copy_constructor/requirements/
3285 typedefs.cc: Likewise.
3286 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
3287 * testsuite/20_util/has_trivial_default_constructor/requirements/
3288 explicit_instantiation.c: Likewise.
3289 * testsuite/20_util/has_trivial_default_constructor/requirements/
3290 typedefs.cc: Likewise.
3291 * testsuite/20_util/has_trivial_default_constructor/value.cc:
3293 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
3295 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
3296 * testsuite/util/testsuite_common_types.h: Likewise.
3298 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
3300 * include/bits/hashtable_policy.h: Use __bool_constant.
3302 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
3304 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
3305 * libsupc++/Makefile.in: Regenerate.
3307 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
3309 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
3311 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3313 Update copyright years.
3315 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
3318 * testsuite/18_support/exception_ptr/64241.cc: Use
3319 dg-require-atomic-builtins.
3321 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
3323 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
3326 2015-01-02 Tim Shen <timshen@google.com>
3329 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
3330 iterator, since the original one shouldn't be mutated.
3332 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3335 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
3336 (string::insert): Likewise.
3337 (string::replace): Likewise.
3338 (wstring::erase): Likewise.
3339 (wstring::insert): Likewise.
3340 (wstring::replace): Likewise.
3341 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
3343 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
3346 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
3348 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
3351 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
3352 Revert removal of dg-require-string-conversions.
3353 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
3355 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
3357 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
3359 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
3361 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
3363 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
3365 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
3367 * testsuite/21_strings/basic_string/numeric_conversions/char/
3368 stoull.cc: Likewise.
3369 * testsuite/21_strings/basic_string/numeric_conversions/char/
3370 to_string.cc: Likewise.
3372 Copyright (C) 2015 Free Software Foundation, Inc.
3374 Copying and distribution of this file, with or without modification,
3375 are permitted in any medium without royalty provided the copyright
3376 notice and this notice are preserved.