2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob09b465216056cae61f1b89a48b97c5ac3ccd80c6
1 2015-05-02  Edward Smith-Rowland  <3dw4rd@verizon.net>
3         Revert addition of feature macros from other headers per latest SD-6.
4         * include/experimental/deque: Remove feature-test macro.
5         * include/experimental/forward_list: Ditto.
6         * include/experimental/list: Ditto.
7         * include/experimental/map: Ditto.
8         * include/experimental/set: Ditto.
9         * include/experimental/string: Ditto.
10         * include/experimental/unordered_map: Ditto.
11         * include/experimental/unordered_set: Ditto.
13 2015-05-02  Jonathan Wakely  <jwakely@redhat.com>
15         * include/experimental/any (any::_Storage): Make non-copyable.
16         (any::any): Do not copy _Storage object.
17         (any::operator=): Implement more efficiently than swapping.
18         (any::swap): Use new _Op_xfer operation.
19         (any::_Op::_Op_xfer): New enumerator.
20         (_Manager_internal::_S_alloc): Remove unused function.
21         (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
22         parameter instead of returning a _Storage object.
23         (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
24         _Op_xfer operation for moving and swapping.
25         * testsuite/experimental/any/cons/nontrivial.cc: New.
26         * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
28         * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
29         Declare.
30         * src/filesystem/path.cc (filesystem_error::~filesystem_error):
31         Define.
33         PR libstdc++/65978
34         * include/std/tuple (forward_as_tuple, tie): Add constexpr.
35         * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
36         and fix tests for forward_as_tuple and tie.
38         * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
39         Set timespec members explicitly instead of with a braced-init-list.
40         [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
42 2015-05-02  Edward Smith-Rowland  <3dw4rd@verizon.net>
44         * include/experimental/deque: Add feature-test macro.
45         * include/experimental/forward_list: Ditto.
46         * include/experimental/list: Ditto.
47         * include/experimental/map: Ditto.
48         * include/experimental/set: Ditto.
49         * include/experimental/string: Ditto.
50         * include/experimental/unordered_map: Ditto.
51         * include/experimental/unordered_set: Ditto.
53 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
55         * include/experimental/memory: Correct feature-test macro.
57         * include/experimental/memory: Add feature-test macro.
58         * include/experimental/vector: Likewise.
59         * doc/xml/manual/status_cxx2017.xml: Update status.
60         * doc/html/manual/status.html: Regenerate.
62 2015-05-01  Ville Voutilainen  <ville.voutilainen@gmail.com>
64         Implement observer_ptr.
65         * include/Makefile.am: Add new header.
66         * include/Makefile.in: Regenerate.
67         * include/experimental/memory: New.
68         * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
69         * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
70         * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
71         * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
72         * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
73         * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
74         * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
75         * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
77 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
79         * src/filesystem/path.cc (path::compare): Do not copy strings.
81         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
82         is not available.
83         (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
84         * configure: Regenerate.
85         * config.h.in: Regenerate.
86         * configure.ac: Check for utime.h
87         * include/experimental/fs_path.h (path::string<>)
88         [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
89         * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
90         closedir, dirent, readdir_r): Replace dummy functions with #error.
91         (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
92         * src/filesystem/ops.cc (do_stat, is_set): Make inline.
93         (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
94         (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
95         (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
96         error_code.
98         * include/experimental/fs_path.h (path::_List): Use vector instead of
99         list.
100         * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
101         * src/filesystem/path.cc: Use std::prev instead of decrementing
102         rvalues. Fix whitespace.
103         * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
104         Do not decrement iterators before begin.
106         * include/experimental/fs_dir.h: Fix use of non-reserved names.
107         * include/experimental/fs_ops.h: Likewise.
108         * include/experimental/fs_path.h: Likewise.
109         * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
110         C++11 when checking for support.
112         * include/bits/locale_classes.h (locale::facet): Delete copy
113         operations in C++11 mode.
115         * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
117         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
118         * configure: Regenerate.
120 2015-05-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
122         Inline one-line erasure dispatch functions.
123         * include/experimental/forward_list (erase_if(), erase()): Inline.
124         * include/experimental/list (erase_if(), erase()): Inline.
125         * include/experimental/map (erase_if(*)): Inline.
126         * include/experimental/set (erase_if(*)): Inline.
127         * include/experimental/string (erase_if(), erase()): Inline.
128         * include/experimental/unordered_map (erase_if(*)): Inline.
129         * include/experimental/unordered_set (erase_if(*)): Inline.
131 2015-05-01  Jonathan Wakely  <jwakely@redhat.com>
133         * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
134         * doc/xml/manual/status_cxx2011.xml: Update status tables.
135         * doc/xml/manual/status_cxx2014.xml: Likewise.
136         * doc/xml/manual/status_cxx2017.xml: New.
137         * doc/xml/manual/using.xml: Fix typo.
138         * doc/html/*: Regenerate.
140         * include/std/memory (pointer_safety, declare_reachable,
141         undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
142         get_pointer_safety): Define.
143         * testsuite/20_util/pointer_safety/1.cc: New.
145 2015-04-30  Jonathan Wakely  <jwakely@redhat.com>
147         Implement N4100 File System TS
148         * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
149         (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
150         * config.h.in: Regenerate.
151         * configure: Regenerate.
152         * configure.ac: Enable filesystem TS and check its dependencies.
153         * include/Makefile.am: Add new headers.
154         * include/Makefile.in: Regenerate.
155         * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
156         __str_codecvt_out): Move code conversion logic from wstring_convert
157         into new global functions.
158         (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
159         functions.
160         (wstring_convert::_M_conv): Remove.
161         * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
162         * include/experimental/filesystem: New.
163         * include/experimental/fs_dir.h: New.
164         * include/experimental/fs_fwd.h: New.
165         * include/experimental/fs_ops.h: New.
166         * include/experimental/fs_path.h: New.
167         * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
168         * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
169         * src/Makefile.am (SUBDIRS): Add filesystem.
170         * src/Makefile.in: Regenerate.
171         * src/filesystem/Makefile.am: New.
172         * src/filesystem/Makefile.in: New.
173         * src/filesystem/dir.cc: New.
174         * src/filesystem/ops.cc: New.
175         * src/filesystem/path.cc: New.
176         * testsuite/experimental/filesystem/operations/absolute.cc: New.
177         * testsuite/experimental/filesystem/operations/copy.cc: New.
178         * testsuite/experimental/filesystem/operations/current_path.cc: New.
179         * testsuite/experimental/filesystem/path/append/path.cc: New.
180         * testsuite/experimental/filesystem/path/assign/assign.cc: New.
181         * testsuite/experimental/filesystem/path/assign/copy.cc: New.
182         * testsuite/experimental/filesystem/path/compare/compare.cc: New.
183         * testsuite/experimental/filesystem/path/compare/path.cc: New.
184         * testsuite/experimental/filesystem/path/compare/strings.cc: New.
185         * testsuite/experimental/filesystem/path/concat/path.cc: New.
186         * testsuite/experimental/filesystem/path/concat/strings.cc: New.
187         * testsuite/experimental/filesystem/path/construct/copy.cc: New.
188         * testsuite/experimental/filesystem/path/construct/default.cc: New.
189         * testsuite/experimental/filesystem/path/construct/locale.cc: New.
190         * testsuite/experimental/filesystem/path/construct/range.cc: New.
191         * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
192         * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
193         * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
194         New.
195         * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
196         New.
197         * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
198         New.
199         * testsuite/experimental/filesystem/path/decompose/root_name.cc:
200         New.
201         * testsuite/experimental/filesystem/path/decompose/root_path.cc:
202         New.
203         * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
204         * testsuite/experimental/filesystem/path/generic/generic_string.cc:
205         New.
206         * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
207         * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
208         * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
209         New.
210         * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
211         New.
212         * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
213         New.
214         * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
215         New.
216         * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
217         * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
218         * testsuite/experimental/filesystem/path/query/empty.cc: New.
219         * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
220         * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
221         * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
222         New.
223         * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
224         New.
225         * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
226         New.
227         * testsuite/experimental/filesystem/path/query/has_root_name.cc:
228         New.
229         * testsuite/experimental/filesystem/path/query/has_root_path.cc:
230         New.
231         * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
232         * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
233         * testsuite/util/testsuite_fs.h: New.
235 2015-04-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
237         Add fundamentals TR container erasure.
238         * include/Makefile.am: Add new headers.
239         * include/Makefile.in: Add new headers.
240         * include/experimental/array: New.
241         * include/experimental/deque: New.
242         * include/experimental/erase_if.tcc: New.
243         * include/experimental/forward_list: New.
244         * include/experimental/list: New.
245         * include/experimental/map: New.
246         * include/experimental/set: New.
247         * include/experimental/string: New.
248         * include/experimental/unordered_map: New.
249         * include/experimental/unordered_set: New.
250         * include/experimental/vector: New.
251         * testsuite/experimental/deque/erasure.cc: New.
252         * testsuite/experimental/forward_list/erasure.cc: New.
253         * testsuite/experimental/list/erasure.cc: New.
254         * testsuite/experimental/map/erasure.cc: New.
255         * testsuite/experimental/set/erasure.cc: New.
256         * testsuite/experimental/string/erasure.cc: New.
257         * testsuite/experimental/unordered_map/erasure.cc: New.
258         * testsuite/experimental/unordered_set/erasure.cc: New.
259         * testsuite/experimental/vector/erasure.cc: New.
261 2015-04-30  François Dumont  <fdumont@gcc.gnu.org>
263         * include/bits/cpp_type_traits.h
264         (__gnu_cxx::__is_normal_iterator): Delete.
265         * include/bits/stl_algobase.h (std::__niter_base): Adapt.
266         * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
267         (std::__niter_base): Overloads for std::reverse_iterator,
268         __gnu_cxx::__normal_iterator and std::move_iterator.
270 2015-04-30  François Dumont  <fdumont@gcc.gnu.org>
272         * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
273         Delete.
274         * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
275         Remove usage of latter and compute size of the prime numbers array
276         locally.
278 2015-04-29  Doug Evans  <dje@google.com>
280         PR libstdc++/65839
281         * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
282         Replace all lookups of "bool" with this.
283         (get_std_size_type): New function.  Replace all lookups of std::size_t
284         with this.
285         (*Worker): New method get_result_type.
286         (DequeWorkerBase.__init__): New arg val_type.  All callers updated.
287         (ListWorkerBase.__init__): New arg val_type.  All callers updated.
288         (UniquePtrGetWorker.__init__): New arg elem_type.  All callers updated.
289         Delete setting of name, enabled.
290         (UniquePtrDerefWorker.__init__): New arg elem_type.  All callers
291         updated.  Delete setting of name.
292         (UniquePtrMethodsMatcher): Rewrite for consistency with all other
293         libstdc++ xmethod matchers.
294         * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
295         * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
296         * testsuite/libstdc++-xmethods/deque.cc: Ditto.
297         * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
298         * testsuite/libstdc++-xmethods/list.cc: Ditto.
299         * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
300         * testsuite/libstdc++-xmethods/vector.cc: Ditto.
302 2015-04-29  Doug Evans  <dje@google.com>
304         Use consistent naming for value type attributes.
305         * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
306         to _val_type.
307         (ArraySizeWorker, ArrayEmptyWorker): Ditto.
308         (ArrayFrontWorker, ArrayBackWorker): Ditto.
309         (ArrayAtWorker, ArraySubscriptWorker): Ditto.
310         (DequeWorkerBase): Rename elemtype to val_type.
311         (ForwardListWorkerBase): Rename _elem_type to _val_type.
312         (ForwardListFrontWorker): Ditto.  And rename elem_address to
313         val_address.
314         (ForwardListMethodsMatcher): Rename elem_type to val_type.
315         (VectorWorkerBase): Rename _elemtype to _val_type.
317 2015-04-29  Jonathan Wakely  <jwakely@redhat.com>
319         PR libstdc++/65760
320         * include/std/functional (__check_func_return_type): Use is_same to
321         avoid using _is_convertible on incomplete types.
322         * testsuite/20_util/function/65760.cc: New.
324         PR libstdc++/64657
325         * include/bits/basic_string (basic_string::_S_copy_chars): Cast
326         expression to void.
327         * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
328         time_get::_M_extract_num, time_get::_M_extract_name,
329         time_get::_M_extract_wday_or_month): Likewise.
330         * include/bits/stl_algo.h (__includes, __replace_copy_if,
331         __is_sorted_until, __is_permutation, transform): Likewise.
332         * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
333         __equal::equal, __lexicographical_compare_impl, equal): Likewise.
334         * include/bits/stl_numeric.h (inner_product): Likewise.
335         * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
336         * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
337         input_iterator_wrapper): Declare unusable comma operator.
338         * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
339         * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
340         New.
342 2015-04-28  Doug Evans  <dje@google.com>
344         * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
345         Define to zero.
347 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
349         * include/bits/stl_algo.h (random_shuffle): Only define for hosted
350         implementations.
352 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
354         * Makefile.am (SUBDIRS): Move python to hosted_source.
355         * Makefile.in: Regenerate.
356         * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
357         * configure: Regenerate.
359 2015-04-28  Marc Glisse  <marc.glisse@inria.fr>
361         PR libstdc++/65883
362         * include/std/limits (numeric_limits): Add missing unsigned.
364 2015-04-28  Stephan Bergmann  <sbergman@redhat.com>
366         * include/debug/vector (_Safe_vector::operator=): Add missing returns.
368 2015-04-28  Jonathan Wakely  <jwakely@redhat.com>
370         PR libstdc++/60333
371         * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
372         Handle enumeration types larger than sizeof(long).
373         (__make_signed_selector<_Tp, false, true>): Find unsigned type then
374         make it signed.
375         * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
376         * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
377         Likewise.
378         * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
379         * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
380         dg-error.
381         * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
383         PR libstdc++/61645
384         * include/bits/forward_list.h (forward_list::splice_after): Add
385         noexcept.
386         * include/bits/forward_list.tcc (forward_list::splice_after):
387         Likewise.
389         PR libstdc++/65631
390         * include/bits/random.h (seed_seq) Define copy constructor and copy
391         assignment as deleted.
392         * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
394         * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
395         * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
396         Use -std=gnu++1z. Check feature-test macro.
398         * include/std/type_traits (void_t): Add.
399         * testsuite/20_util/void_t/1.cc: New.
401 2015-04-28  Tim Shen  <timshen@google.com>
403         * include/bits/regex.tcc: Handle regex_constants::__polynomial.
404         * include/bits/regex_automaton.tcc: Throw exception when parsing
405         back-reference with flag __polynomial.
406         * include/bits/regex_constants.h: Add extension flag
407         syntax_option_type __polynomial.
408         * bits/regex_executor.tcc: Still let BFS process ECMAScript.
409         Alternative operation will be fixed in the coming refactoring.
410         * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
411         loose match_search_debug to use DFS only.
413 2015-04-27  Sandra Loosemore  <sandra@codesourcery.com>
415         PR libstdc++/65909
416         * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
417         Make the generated test program fail gracefully if the target
418         doesn't support passing command-line arguments.
420 2015-04-27  Federico Lenarduzzi  <federico.lenarduzzi@tallertechnologies.com>
421             Jonathan Wakely  <jwakely@redhat.com>
423         * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
424         Return false or zero if the library is built without exceptions.
425         * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
426         the library is built without exceptions.
428 2015-04-27  Ville Voutilainen  <ville.voutilainen@gmail.com>
430         * config/abi/pre/gnu.ver: Fix comment.
432         Add support for std::uncaught_exceptions.
433         * acinclude.m4: Bump libtool_VERSION.
434         * config/abi/pre/gnu.ver: Export the new symbol.
435         * configure: Regenerate.
436         * libsupc++/eh_catch.cc (uncaught_exceptions): New.
437         * libsupc++/exception (uncaught_exceptions): New.
438         * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
439         * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
441 2015-04-27  Dmitry Prokoptsev  <dprokoptsev@gmail.com>
442             Michael Hanselmann  <public@hansmi.ch>
444         PR libstdc++/62258
445         * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
446         uncaught exceptions.
447         * testsuite/18_support/exception_ptr/62258.cc: New.
449 2015-04-27  Jonathan Wakely  <jwakely@redhat.com>
451         * doc/xml/manual/extensions.xml: Add cross-reference.
452         * doc/html/manual/ext_compile_checks.html: Regenerate.
454 2015-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
456         * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
457         * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
459 2015-04-22  Renlin Li  <renlin.li@arm.com>
461         * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
462         * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
463         * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
464         * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
465         * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
467 2015-04-21  Jonathan Wakely  <jwakely@redhat.com>
469         * doc/xml/manual/configure.xml: Update descriptions of options
470         affecting dual ABI and add cross-references.
471         * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
472         * doc/xml/manual/using.xml: Document ABI transition.
473         * doc/html/*: Regenerate.
475         * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
476         * doc/xml/manual/using.xml: Document newer -std options. Use better
477         examples of nested namespaces.
479 2015-04-20  Jonathan Wakely  <jwakely@redhat.com>
481         * doc/xml/manual/concurrency_extensions.xml: Update documentation
482         on atomics.
483         * doc/xml/manual/using.xml: Likewise. Improve markup.
484         * doc/html/*: Regenerate.
486 2015-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
488         * scripts/extract_symvers.pl: Ignore elfdump error output.
490 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
492         PR libstdc++/61347
493         * include/bits/stl_iterator_base_funcs.h (_List_iterator,
494         _List_const_iterator): Declare.
495         (__distance): Declare new overloads for _List_iterator and
496         _List_const_iterator.
497         * include/bits/stl_list.h (__distance): New overloads for
498         _List_iterator and _List_const_iterator.
499         * testsuite/23_containers/list/61347.cc: New testcase.
501 2015-04-14  Jonathan Wakely  <jwakely@redhat.com>
503         * doc/xml/manual/evolution.xml: Fix typos.
504         * doc/html/manual/api.html: Regenerate.
506 2015-04-14  Hans-Peter Nilsson  <hp@axis.com>
508         * testsuite/29_atomics/atomic/62259.cc: Assert atomic
509         alignment is larger-equal, not equal, to default alignment.
511 2015-04-13  Jonathan Wakely  <jwakely@redhat.com>
513         PR libstdc++/65754
514         * config/abi/pre/gnu.ver: Export base object constructors for
515         fstreams.
516         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
517         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
518         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
519         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
520         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
521         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
522         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
523         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
524         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
525         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
526         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
527         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
528         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
529         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
530         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
531         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
532         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
533         * testsuite/27_io/basic_fstream/cons/base.cc: New.
535 2015-04-13  Jonathan Wakely  <jwakely@redhat.com>
537         * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
538         * doc/html/*: Regenerate.
540 2015-04-12  Uros Bizjak  <ubizjak@gmail.com>
542         * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
544 2015-04-10  Andreas Schwab  <schwab@linux-m68k.org>
546         * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
548         * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
550 2015-04-10  Jonathan Wakely  <jwakely@redhat.com>
552         * doc/xml/manual/test.xml: Improve documentation on running a subset
553         of tests.
554         * doc/html/manual/test.html: Regenerate.
556 2015-04-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
558         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
559         for GCC 5.1 release.
560         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
561         Likewise.
563 2015-04-10  Jonathan Wakely  <jwakely@redhat.com>
565         * include/std/shared_mutex (shared_timed_mutex): Add comments to
566         explain the logic in the non-pthread_rwlock_t version.
567         (_Mutex): Remove redundant type.
568         (_M_n_readers): Rename to _S_max_readers.
569         (_M_write_entered, _M_readers): New convenience functions.
570         (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
571         functions. Use predicates with condition variables. Simplify bitwise
572         operations.
573         (try_lock_for, try_shared_lock_for): Convert duration to time_point
574         and call try_lock_until or try_shared_lock_until respectively.
575         (try_lock_until, try_shared_lock_until): Wait on the condition
576         variables until the specified time passes.
577         (unlock): Add Debug Mode assertion.
578         (unlock_shared): Add Debug Mode assertion.
579         * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
581         * include/std/shared_mutex (shared_timed_mutex): Only use
582         pthread_rwlock_t when the POSIX Timeouts option is supported.
583         * testsuite/30_threads/shared_lock/cons/5.cc: Remove
584         dg-require-gthreads-timed.
585         * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
586         * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
587         * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
589 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
591         * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
593 2015-04-09  Jonathan Wakely  <jwakely@redhat.com>
594             Richard Henderson  <rth@redhat.com>
596         PR libstdc++/65147
597         * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
598         alignment.
599         * include/std/atomic (atomic): For types with a power of two size set
600         alignment to at least the size.
601         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
602         * testsuite/29_atomics/atomic/65147.cc: New.
603         * testsuite/29_atomics/atomic_integral/65147.cc: New.
605 2015-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
607         * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
608         * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
609         * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
611 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
613         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
614         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
615         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
616         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
617         * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
618         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
619         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
620         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
622 2015-03-30  Jonathan Wakely  <jwakely@redhat.com>
624         PR libstdc++/65630
625         * config/abi/pre/gnu.ver: Export operator+ for new strings.
626         * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
627         * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
629 2015-03-28  Tim Shen  <timshen@google.com>
631         PR libstdc++/65420
632         * include/bits/regex_constants.h: Use constexpr variables for flags.
633         * testsuite/28_regex/constants/constexpr.cc: New testcase.
635 2015-03-27  Jonathan Wakely  <jwakely@redhat.com>
637         PR libstdc++/65499
638         * include/std/chrono: Add using-directive for literals to std::chrono.
639         * testsuite/20_util/duration/literals/65499.cc: New.
641 2015-03-26  Jonathan Wakely  <jwakely@redhat.com>
643         PR libstdc++/58038
644         PR libstdc++/60421
645         * include/std/thread (this_thread::sleep_for): Check for negative
646         durations.
647         (this_thread::sleep_until): Check for times in the past.
648         * testsuite/30_threads/this_thread/58038.cc: New.
649         * testsuite/30_threads/this_thread/60421.cc: New.
651 2015-03-26  Jonathan Wakely  <jwakely@redhat.com>
653         PR libstdc++/62259
654         PR libstdc++/65147
655         * include/std/atomic (atomic<T>): Increase alignment for types with
656         the same size as one of the integral types.
657         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
658         * testsuite/29_atomics/atomic/62259.cc: New.
660 2015-03-26  Richard Henderson  <rth@redhat.com>
662         PR libstdc++/65033
663         * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
664         a fake pointer indicating type alignment.
665         (__atomic_base<T *>::is_lock_free): Likewise.
666         * include/std/atomic (atomic<T>::is_lock_free): Likewise.
668 2015-03-25  Alan Lawrence  <alan.lawrence@arm.com>
670         PR libstdc++/33394
671         * testsuite/21_strings/basic_string/pthread33394.cc: Use
672         dg-additional-options.
674 2015-03-25  Paolo Carlini  <paolo.carlini@oracle.com>
676         PR libstdc++/65543
677         * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
678         thinko in r150387.
679         * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
680         Likewise.
681         * testsuite/27_io/rvalue_streams-2.cc: New.
683 2015-03-24  Jonathan Wakely  <jwakely@redhat.com>
685         PR libstdc++/33394
686         * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
688 2015-03-23  Jonathan Wakely  <jwakely@redhat.com>
690         PR libstdc++/64967
691         * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
692         * configure: Regenerate.
693         * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
694         system_category): Use macros for versioned namespace.
695         * src/c++11/futex.cc: Add missing end macro for versioned namespace.
697 2015-03-20  James Greenhalgh  <james.greenhalgh@arm.com>
699         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
700         test for unused for ARM.
701         * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
702         * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
704 2015-03-20  Jonathan Wakely  <jwakely@redhat.com>
706         * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
707         * include/ext/codecvt_specializations.h (encoding_state,
708         encoding_char_traits): Remove abi-tag and use inline namespace.
709         * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
711 2015-03-19  Jason Merrill  <jason@redhat.com>
713         * config/locale/gnu/messages_members.cc: Revert abi-tag change.
714         * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
716 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
718         PR c++/65046
719         * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
720         get_catalogs): Add abi-tag.
721         * include/ext/codecvt_specializations.h (encoding_state,
722         encoding_char_traits): Likewise.
723         * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
724         * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
725         numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
726         money_get_shim, money_put_shim, messages_shim): Likewise.
727         * src/c++11/future.cc (future_error_category::message): Likewise.
728         * src/c++11/system_error.cc (generic_error_category::message,
729         system_error_category::message): Likewise.
730         (__sso_string): Disable -Wabi-tag warnings.
732 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
734         PR libstdc++/13631
735         * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
736         implementation for old glibc. Fix whitespace.
738 2015-03-18  Jonathan Wakely  <jwakely@redhat.com>
739             Torvald Riegel  <triegel@redhat.com>
741         * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
742         * config.h.in: Regenerate.
743         * configure: Regenerate.
744         * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
745         (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
746         (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
747         (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
748         EDEADLK.
750 2015-03-17  Jonathan Wakely  <jwakely@redhat.com>
752         * libsupc++/nested_exception.h: Do not try to derive from final
753         classes.
754         * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
755         final class.
757         * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
758         unused exception variable.
759         * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
760         * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
761         test.
762         * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
764 2015-03-13  Jonathan Wakely  <jwakely@redhat.com>
766         * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
767         * configure: Regenerate.
769         * include/experimental/system_error: Fix include guard.
771 2015-03-12  Renlin Li  <renlin.li@arm.com>
773         * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
774         wrapped target.
776 2015-03-10  Tim Shen  <timshen@google.com>
778         PR libstdc++/64441
779         * include/bits/regex.h (match_results<>::size,
780         match_results<>::position, match_results<>::str,
781         match_results<>::operator[], match_results<>::prefix,
782         match_results<>::suffix, match_results<>::end,
783         match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
784         match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
785         global __unmatched_sub. Add unmatched submatch as part of
786         match_results.
787         * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
788         regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
789         * testsuite/28_regex/match_results/out_of_range_submatches.cc:
790         New testcases.
792 2015-03-09  Jonathan Wakely  <jwakely@redhat.com>
794         PR libstdc++/64467
795         * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
796         for newlib targets. Really fix mixed line-endings this time.
798 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
800         * include/std/future (future_error(error_code)): Construct base
801         class with error_code's message.
802         * src/c++11/future.cc (future_error::what()): Do not call c_str() on
803         temporary string.
805 2015-03-05  Jonathan Wakely  <jwakely@redhat.com>
807         * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
808         noconv result.
809         * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
810         * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
812 2015-03-04  Jonathan Wakely  <jwakely@redhat.com>
814         PR libstdc++/64797
815         * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
816         incomplete multibyte sequences correctly.
817         * include/std/codecvt (codecvt_utf8, codecvt_utf16,
818         codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
819         * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
820         Define constants.
821         (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
822         Define convenience functions.
823         (read_utf8_code_point): Return relevant constant to distinguish
824         incomplete characters from invalid sequences.
825         (read_utf16_code_point): Likewise. Check for invalid sequences.
826         (ucs4_in, utf16_in): Use incomplete_mb_character constant.
827         (utf16_out): Check for invalid sequences.
828         (utf16_span): Fix condition.
829         (ucs2_out): Use is_high_surrogate.
830         (ucs2_in): Use incomplete_mb_character constant and fix condition.
831         * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
832         * testsuite/22_locale/conversions/buffer/1.cc: New.
833         * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
834         char32_t instead of wchar_t.
835         * testsuite/22_locale/conversions/string/3.cc: New.
837 2015-03-03  Iain Sandoe  <iain@codesourcery.com>
839         PR libstdc++/64883
840         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
841         visibility for Darwin.
842         * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
843         also deprecated.
844         * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
846 2015-03-02  Jonathan Wakely  <jwakely@redhat.com>
848         PR libstdc++/65279
849         * include/std/scoped_allocator (__inner_type_impl,
850         scoped_allocator_adaptor): Add defaulted copy assignment and move
851         assignment operators.
852         * testsuite/20_util/scoped_allocator/65279.cc: New.
854 2015-03-02  Jonathan Wakely  <jwakely@redhat.com>
856         PR libstdc++/64367
857         * include/std/stdexcept (__sso_string): Don't use non-static member
858         in sizeof.
860 2015-02-28  Matthias Klose  <doko@ubuntu.com>
862         PR libstdc++/65246
863         * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
865 2015-02-22  Jonathan Wakely  <jwakely@redhat.com>
867         * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
868         * doc/html/manual/status.html: Regenerate.
870 2015-02-20  Jonathan Wakely  <jwakely@redhat.com>
872         PR libstdc++/64695
873         * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
874         tuple layout.
876         * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
877         behavior.
878         * doc/html/manual/status.html: Regenerate.
880 2015-02-19  Jonathan Wakely  <jwakely@redhat.com>
882         PR libstdc++/58357
883         * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
884         * include/bits/stl_algo.h (__rotate, rotate): Likewise.
886 2015-02-19  Hans-Peter Nilsson  <hp@axis.com>
888         PR testsuite/65093
889         * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
890         (test01): Add explanatory comment.  Keep only the bd1 sub-test and
891         split out bd2, bd3, bd4, and bd5 sub-tests into...
892         * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
893         testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
894         testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
895         testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
896         New separate files with the old parts.
898 2015-02-18  Jonathan Wakely  <jwakely@redhat.com>
900         * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
901         surrogate pairs.
902         (utf16_in): Pass mode argument to write_utf16_code_point.
903         (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
904         native byte order.
905         * testsuite/22_locale/codecvt/char16_t.cc: New.
906         * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
908         * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
909         * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
911 2015-02-17  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
912             Jonathan Wakely  <jwakely@redhat.com>
914         * testsuite/22_locale/codecvt/char32_t.cc: New.
916 2015-02-17  Jonathan Wakely  <jwakely@redhat.com>
918         PR libstdc++/65085
919         * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
920         empty string gets null-terminated.
921         * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
923 2015-02-13  Matthew Wahab  <matthew.wahab@arm.com>
925         * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
926         mixed line-endings introduced in last change.
928 2015-02-12  Matthew Wahab  <matthew.wahab@arm.com>
930         * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
931         for __NEWLIB__ macro with a dejagnu set macro.
932         * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
934 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
936         PR libstdc++/64467
937         * testsuite/28_regex/traits/char/isctype.cc (test01):   Add newlib
938         special case for '\n'.
939         * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
941 2015-02-01  Jonathan Wakely  <jwakely@redhat.com>
943         * src/c++11/futex.cc: Do not define for gthr-single.h targets.
945 2015-02-01  Jonathan Wakely  <jwakely@redhat.com>
947         PR libstdc++/64883
948         * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
949         of deprecated.
950         * include/c_std/cstdio (gets): Likewise.
951         * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
952         with attributes used in darwin headers.
954 2015-01-29  Jakub Jelinek  <jakub@redhat.com>
956         * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
957         $vtv_cygmin = yes.  Initialize vtv_cygmin=no unconditionally first.
958         * configure: Regenerated.
960 2015-01-29  H.J. Lu  <hongjiu.lu@intel.com>
962         * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
963         after vtv_cygmin is set.
964         * configure: Regenerated.
966 2015-01-29  Matthias Klose  <doko@ubuntu.com>
968         * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
969         unconditionally.
970         * configure: Regenerate.
972 2015-01-29  Caroline Tice  <cmtice@google.com>
974         Committing VTV Cywin/Ming patch for Patrick Wollgast
975         * configure: Regenerate.
976         * libsupc++/Makefile.in: Regenerate.
977         * src/Makefile.in: Regenerate.
979 2015-01-29  Jonathan Wakely  <jwakely@redhat.com>
981         * include/bits/atomic_base.h: Use __always_inline__ instead of
982         always_inline.
983         * include/bits/atomic_futex.h: Likewise.
984         * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
985         * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
986         __packed__ instead of packed.
987         * include/std/shared_mutex: Use __unused__ instead of unused.
988         * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
989         * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
990         * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
992 2015-01-28  Caroline Tice  <cmtice@google.com>
994         Committing VTV Cywin/Ming patch for Patrick Wollgast
995         * acinclude.m4: Define VTV_CYGMIN.
996         * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
997         and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
998         * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
999         for Cygwin and MinGW.
1000         * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
1001         VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
1002         libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
1004 2015-01-28  Jonathan Wakely  <jwakely@redhat.com>
1006         PR libstdc++/64828
1007         * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
1008         * libsupc++/Makefile.in: Regenerate.
1009         * src/c++11/Makefile.in: Regenerate.
1011 2015-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1013         * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
1014         check for unsupported.
1015         (v3_target_compile_as_c): Likewise.
1017 2015-01-28  Richard Biener  <rguenther@suse.de>
1019         PR libstdc++/64798
1020         * libsupc++/eh_alloc.cc (struct allocated_entry): Align
1021         data member.
1022         (pool::allocate): Adjust allocation size and alignment to
1023         that change.
1024         (pool::free): Adjust pointer offsetting.
1026 2015-01-27  Jonathan Wakely  <jwakely@redhat.com>
1028         PR libstdc++/64368
1029         * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
1030         shared_timed_mutex::try_lock_until): Only define when POSIX thread
1031         timeouts option is supported.
1032         (shared_timed_mutex::try_shared_lock_for,
1033         shared_timed_mutex::try_shared_lock_until): Likewise.
1035 2015-01-26  Jonathan Wakely  <jwakely@redhat.com>
1037         PR libstdc++/64368
1038         * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
1039         numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
1040         * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
1041         and use cache's _M_grouping field.
1042         (__numpunct_fill_cache): Likewise.
1043         (__moneypunct_fill_cache): Improve comments.
1045 2015-01-26  Jonathan Wakely  <jwakely@redhat.com>
1047         * testsuite/23_containers/set/operations/2.cc: Add test for
1048         non-transparent comparison function.
1050 2015-01-25  Oleg Endo  <olegendo@gcc.gnu.org>
1052         PR target/29366
1053         * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add): 
1054         Remove SH4A inline asm and lock based implementations and use the
1055         defaults from ext/atomicity.h.
1057 2015-01-23  Jonathan Wakely  <jwakely@redhat.com>
1059         * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
1060         new std::string constructors for byname facets.
1062 2015-01-22  Richard Biener  <rguenther@suse.de>
1064         PR libstdc++/64535
1065         * libsupc++/eh_alloc.cc: Include new.
1066         (bitmask_type): Remove.
1067         (one_buffer): Likewise.
1068         (emergency_buffer): Likewise.
1069         (emergency_used): Likewise.
1070         (dependents_buffer): Likewise.
1071         (dependents_used): Likewise.
1072         (class pool): New custom fixed-size arena, variable size object
1073         allocator.
1074         (emergency_pool): New global.
1075         (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
1076         (__cxxabiv1::__cxa_free_exception): Likewise.
1077         (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
1078         (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
1080 2015-01-22  Tim Shen  <timshen@google.com>
1082         PR libstdc++/64680
1083         * include/bits/regex.h (basic_regex<>::basic_regex,
1084         basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
1085         standard interface.
1086         * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
1088 2015-01-22  Tim Shen  <timshen@google.com>
1090         PR libstdc++/64649
1091         * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
1092         regex_traits<>::lookup_classname): Correctly narrow input chars.
1093         * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
1095 2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
1097         * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
1099 2015-01-21  Jonathan Wakely  <jwakely@redhat.com>
1101         * testsuite/29_atomics/atomic/64658.cc: Test stored value.
1103 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1105         * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
1106         * doc/xml/manual/status_cxx2014.xml: Update status.
1107         * doc/html/manual/status.html: Regenerate.
1109 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1111         PR libstdc++/64650
1112         * include/experimental/optional (bad_optional_access): Add default
1113         constructor.
1114         * testsuite/experimental/optional/requirements.cc: Test for default
1115         constructor.
1117 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1119         * include/bits/stl_map.h (map::find<>, map::count<>,
1120         map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
1121         member function templates to perform heterogeneous lookup.
1122         * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
1123         multimap::lower_bound<>, multimap::upper_bound<>,
1124         multimap::equal_range<>): Likewise.
1125         * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
1126         multiset::lower_bound<>, multiset::upper_bound<>,
1127         multiset::equal_range<>): Likewise.
1128         * include/bits/stl_set.h (set::find<>, set::count<>,
1129         set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
1130         * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
1131         _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
1132         _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
1133         _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
1134         * testsuite/23_containers/map/operations/2.cc: New.
1135         * testsuite/23_containers/multimap/operations/2.cc: New.
1136         * testsuite/23_containers/multiset/operations/2.cc: New.
1137         * testsuite/23_containers/set/operations/2.cc: New.
1139 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1141         * config/abi/pre/gnu.ver: Export new constructors.
1142         * include/bits/codecvt.h (codecvt_byname): Add string constructor.
1143         (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
1144         specializations and declare explicit instantiations.
1145         * include/bits/locale_classes.h (locale, collate_byname): Add string
1146         constructors.
1147         * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
1148         Likewise.
1149         * include/bits/locale_facets_nonio.h (time_get_byname,
1150         time_put_byname, moneypunct_byname, messages_byname): Likewise.
1151         * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
1152         codecvt_byname<char32_t>): Define explicit instantiations.
1153         * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
1154         Instantiate string constructors.
1155         (ctype_byname): Define string constructor.
1156         * testsuite/22_locale/codecvt_byname/1.cc: New.
1157         * testsuite/22_locale/collate_byname/1.cc: New.
1158         * testsuite/22_locale/ctype_byname/2.cc: New.
1159         * testsuite/22_locale/messages_byname/1.cc: New.
1160         * testsuite/22_locale/moneypunct_byname/1.cc: New.
1161         * testsuite/22_locale/numpunct_byname/1.cc: New.
1163 2015-01-20  Jonathan Wakely  <jwakely@redhat.com>
1165         PR libstdc++/64658
1166         * include/std/atomic (atomic_init): Define.
1167         * testsuite/29_atomics/atomic/64658.cc: New.
1169 2015-01-19  Tim Shen  <timshen@google.com>
1171         PR libstdc++/64649
1172         * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
1173         regex_traits<>::lookup_classname): Support forward iterators.
1174         * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
1175         * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
1177 2015-01-19  Tim Shen  <timshen@google.com>
1179         PR libstdc++/64584
1180         PR libstdc++/64585
1181         * include/bits/regex.h (basic_regex<>::basic_regex,
1182         basic_regex<>::assign, basic_regex<>::imbue,
1183         basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
1184         imbuing basic_regex; Make assign() transactional against exception.
1185         * include/bits/regex_compiler.h (__compile_nfa<>): Add back
1186         __compile_nfa SFINAE.
1187         * include/std/regex: Adjust include order to avoid __compile_nfa
1188         forward declaration.
1189         * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
1190         * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
1192 2015-01-19  Ville Voutilainen  <ville.voutilainen@gmail.com>
1193             Jonathan Wakely  <jwakely@redhat.com>
1195         * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
1196         on overloads for arrays.
1197         (cbegin, cend, rbegin, rend, crbegin, crend): New.
1198         * testsuite/24_iterators/range_access_cpp14.cc: New.
1200 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
1202         PR libstdc++/64646
1203         * include/bits/stl_algo.h (__is_permutation): Also test for reaching
1204         end of the second range.
1205         * testsuite/25_algorithms/is_permutation/64646.cc: New.
1207 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
1209         * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
1210         * doc/html/manual/status.html: Regenerate.
1212 2015-01-18  Jonathan Wakely  <jwakely@redhat.com>
1214         * include/bits/atomic_futex.h: Use mutex and condition_variable when
1215         atomic int is not lock-free. Make member variables private.
1216         * src/c++11/futex.cc: Likewise.
1218         * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
1220 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1222         PR libstdc++/64638
1223         * include/bits/atomic_futex.h: Use appropriate config macros for
1224         availability of std::mutex, std::condition and std::chrono.
1226 2015-01-17  Ville Voutilainen  <ville.voutilainen@gmail.com>
1227             Jonathan Wakely  <jwakely@redhat.com>
1229         * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
1230         * doc/html/*: Regenerate.
1232 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1234         DR 488
1235         PR libstdc++/58357
1236         * include/bits/algorithmfwd.h (rotate): Return an iterator.
1237         * include/bits/stl_algo.h (rotate, __rotate): Likewise.
1238         * testsuite/25_algorithms/rotate/dr488.cc: New.
1239         * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
1240         * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
1241         2.cc: Likewise.
1242         * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
1243         pod.cc: Likewise.
1245 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1247         PR libstdc++/60940
1248         * include/bits/atomic_base.h: Remove atomic integral typedefs as
1249         synonyms for __atomic_base<int> etc.
1250         * include/std/atomic: Make atomic_int a synonym for atomic<int> and
1251         likewise for all atomic integral types.
1252         * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
1253         * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
1255 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1257         PR libstdc++/56785
1258         * include/std/tuple (_Tuple_impl): Remove zero-element specialization
1259         and define one-element specialization.
1260         * testsuite/20_util/tuple/56785.cc: New.
1262 2015-01-17  Jonathan Wakely  <jwakely@redhat.com>
1264         * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
1265         Remove unused header.
1266         * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
1267         Likewise.
1268         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
1269         Likewise.
1271 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
1273         * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
1274         * include/std/locale: Include new header.
1275         * include/Makefile.am: Add it.
1276         * include/Makefile.in: Regenerate.
1277         * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
1278         * testsuite/22_locale/conversions/string/1.cc: New.
1279         * testsuite/22_locale/conversions/string/2.cc: New.
1280         * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
1281         * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
1282         New.
1284 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
1286         * config/abi/pre/gnu.ver: Export new symbols.
1287         * include/Makefile.am: Add codecvt.
1288         * include/Makefile.in: Regenerate.
1289         * include/std/codecvt: New header.
1290         * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
1291         __codecvt_utf8_utf16_base): Define specializations.
1292         * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
1293         * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
1294         * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
1295         New.
1297 2015-01-16  Torvald Riegel  <triegel@redhat.com>
1299         * src/c++11/futex.cc: New file.
1300         * include/bits/atomic_futex.h: New file.
1301         * include/std/future (__future_base::_State_baseV2): Use
1302         atomic_futex_unsigned instead of mutex+condvar.
1303         * src/c++11/futex.cc: Likewise.
1304         * include/Makefile.am: Add atomic_futex.h.
1305         * include/Makefile.in: Likewise.
1306         * src/c++11/Makefile.am: Add futex.cc.
1307         * src/c++11/Makefile.in: Likewise.
1309 2015-01-16  Jonathan Wakely  <jwakely@redhat.com>
1311         * acinclude.m4: Fix typo in comment.
1312         * configure: Regenerate.
1313         * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
1314         codecvt<char16_t, char, mbstate_t>): Declare specializations.
1315         * include/bits/locale_facets.h: Reserve space for new specializations.
1316         * src/c++11/Makefile.am: Add codecvt.cc.
1317         * src/c++11/Makefile.in: Regenerate.
1318         * src/c++11/codecvt.cc: New.
1319         * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
1320         with -std=gnu++11.
1321         * src/c++98/Makefile.in: Regenerate.
1322         * src/c++98/locale_init.cc: Initialize new codecvt specializations.
1323         * src/c++98/localename.cc: Likewise.
1324         * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
1325         * testsuite/22_locale/codecvt/utf8.cc: New.
1326         * testsuite/22_locale/locale/cons/unicode.cc: Check that new
1327         specializations are installed in locale objects.
1329 2015-01-16  Torvald Riegel  <triegel@redhat.com>
1331         * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
1332         implementation.
1334 2015-01-13  Jonathan Wakely  <jwakely@redhat.com>
1336         PR libstdc++/64571
1337         * config/abi/pre/gnu.ver: Export fstream functions using new string.
1339 2015-01-12  Jonathan Wakely  <jwakely@redhat.com>
1341         PR libstdc++/64560
1342         * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
1343         for RTTI support.
1345         PR libstdc++/64553
1346         * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
1348 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
1350         * doc/xml/manual/parallel_mode.xml: Update for libgomp being
1351         renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
1352         Multi Processing Runtime Library".
1354 2015-01-09  Jonathan Wakely  <jwakely@redhat.com>
1356         PR libstdc++/64476
1357         * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
1358         is_assignable arguments.
1359         * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
1360         New.
1362 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
1364         * libsupc++/unwind-cxx.h: Revert previous commit.
1366 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
1368         * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
1370 2015-01-09  Tim Shen  <timshen@google.com>
1372         PR libstdc++/64239
1373         * include/bits/regex.h (match_results<>::swap): Use std::swap
1374         instead of swap.
1375         * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
1376         Likewise.
1377         * testsuite/28_regex/match_results/swap.cc: New testcase.
1379 2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
1381         PR libstdc++/60132
1382         * include/std/type_traits (has_trivial_default_constructor,
1383         has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
1384         attribute.
1385         * testsuite/20_util/has_trivial_copy_assign/requirements/
1386         explicit_instantiation.cc: Use -Wno-deprecated.
1387         * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
1388         Likewise.
1389         * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
1390         * testsuite/20_util/has_trivial_copy_constructor/requirements/
1391         explicit_instantiation.cc: Likewise.
1392         * testsuite/20_util/has_trivial_copy_constructor/requirements/
1393         typedefs.cc: Likewise.
1394         * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
1395         * testsuite/20_util/has_trivial_default_constructor/requirements/
1396         explicit_instantiation.c: Likewise.
1397         * testsuite/20_util/has_trivial_default_constructor/requirements/
1398         typedefs.cc: Likewise.
1399         * testsuite/20_util/has_trivial_default_constructor/value.cc:
1400         Likewise.
1401         * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
1402         trait.
1403         * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
1404         * testsuite/util/testsuite_common_types.h: Likewise.
1406 2015-01-08  Jonathan Wakely  <jwakely@redhat.com>
1408         * include/bits/hashtable_policy.h: Use __bool_constant.
1410 2015-01-07  Jonathan Wakely  <jwakely@redhat.com>
1412         * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
1413         * libsupc++/Makefile.in: Regenerate.
1415 2015-01-06  Jonathan Wakely  <jwakely@redhat.com>
1417         * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
1419 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1421         Update copyright years.
1423 2015-01-04  Jonathan Wakely  <jwakely@redhat.com>
1425         PR libstdc++/64483
1426         * testsuite/18_support/exception_ptr/64241.cc: Use
1427         dg-require-atomic-builtins.
1429 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
1431         * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
1432         date.
1434 2015-01-02  Tim Shen  <timshen@google.com>
1436         PR libstdc++/64475
1437         * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
1438         iterator, since the original one shouldn't be mutated.
1440 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1442         PR libstdc++/64422
1443         * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
1444         (string::insert): Likewise.
1445         (string::replace): Likewise.
1446         (wstring::erase): Likewise.
1447         (wstring::insert): Likewise.
1448         (wstring::replace): Likewise.
1449         * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
1451 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
1453         PR libstdc++/64468
1454         * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
1456 2015-01-02  Jonathan Wakely  <jwakely@redhat.com>
1458         PR libstdc++/64438
1459         * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
1460         Revert removal of dg-require-string-conversions.
1461         * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
1462         Likewise.
1463         * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
1464         Likewise.
1465         * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
1466         Likewise.
1467         * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
1468         Likewise.
1469         * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
1470         Likewise.
1471         * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
1472         Likewise.
1473         * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
1474         Likewise.
1475         * testsuite/21_strings/basic_string/numeric_conversions/char/
1476         stoull.cc: Likewise.
1477         * testsuite/21_strings/basic_string/numeric_conversions/char/
1478         to_string.cc: Likewise.
1480 Copyright (C) 2015 Free Software Foundation, Inc.
1482 Copying and distribution of this file, with or without modification,
1483 are permitted in any medium without royalty provided the copyright
1484 notice and this notice are preserved.