1 2015-11-03 Ville Voutilainen <ville.voutilainen@gmail.com>
3 Make the default constructors of tuple and pair conditionally explicit.
4 * include/std/type_traits (is_unsigned, __is_array_unknown_bounds,
5 __is_default_constructible_atom, __is_default_constructible_safe,
6 __is_direct_constructible_new_safe, __is_direct_constructible_ref_cast,
7 __is_nt_default_constructible_impl, is_nothrow_default_constructible,
8 is_nothrow_constructible, is_nothrow_assignable,
9 is_trivially_constructible, is_trivially_copy_constructible,
10 is_trivially_move_constructible, is_trivially_assignable,
11 is_trivially_copy_assignable, is_trivially_move_assignable,
12 is_trivially_destructible): Simplify.
13 * include/std/type_traits (
14 __do_is_implicitly_default_constructible_impl,
15 __is_implicitly_default_constructible_impl,
16 __is_implicitly_default_constructible_safe,
17 __is_implicitly_default_constructible): New.
18 * include/bits/stl_pair.h (pair::pair()): Use it.
19 * include/std/tuple (tuple<_T1, _T2>::tuple): Use it.
20 * include/std/tuple (_ImplicitlyDefaultConstructibleTuple): New.
21 * include/std/tuple (tuple<_Types...>::tuple()): Use it.
22 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
23 * testsuite/20_util/is_implicitly_default_constructible/
24 requirements/explicit_instantiation.cc: New.
25 * testsuite/20_util/is_implicitly_default_constructible/requirements/
26 typedefs.cc: Likewise.
27 * testsuite/20_util/is_implicitly_default_constructible/value.cc:
29 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust.
30 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
32 * testsuite/20_util/pair/cons/explicit_construct.cc: Likewise.
33 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
35 2015-10-24 Jonathan Wakely <jwakely@redhat.com>
37 * include/std/functional (__invoke_impl): New overloads.
38 (__invoke): Replace with a single function calling __invoke_impl.
39 (invoke): Add C++17 std::invoke.
40 (reference_wrapper::operator()): Qualify call to __invoke.
41 (_Mem_fn_traits_base, _Mem_fn_traits): Remove unused typedefs.
42 (_Mem_fn_base): Remove unused typedefs and implement call operator in
44 * include/std/future (__future_base::_Async_state_commonV2): Do not
45 pass reference_wrapper as object argument to call_once.
46 * include/std/type_traits (result_of): Define nested __invoke_type.
47 Handle reference_wrapper as per LWG 2219.
48 * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error directives.
49 * testsuite/20_util/function_objects/mem_fn/55463.cc: Remove tests
50 using member functions of reference_wrapper.
52 2015-10-24 Jonathan Wakely <jwakely@redhat.com>
54 * include/std/future (async): Use deferred function on exception.
55 * testsuite/30_threads/async/except.cc: New.
57 2015-10-21 Jonathan Wakely <jwakely@redhat.com>
59 * include/std/type_traits (__cpp_lib_bool_constant): Define.
61 2015-10-16 Jonathan Wakely <jwakely@redhat.com>
63 * doc/xml/manual/configure.xml: Document
64 --enable-libstdcxx-filesystem-ts option.
65 * doc/xml/manual/status_cxx2014.xml: Document libstdc++fs.a.
66 * doc/xml/manual/using.xml: Likewise.
67 * doc/html/*: Regenerate.
69 2015-10-16 Aurelio Remonda <aurelio.remonda@tallertechnologies.com>
71 * testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable
72 N from const int N = 200000 to const unsigned int N = 10000.
73 Delete useless fill_ascending function call.
75 2015-10-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
77 * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
78 unsupported compiler output.
80 2015-10-13 Nathan Froyd <froydnj@gcc.gnu.org>
82 * config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead
83 of x86intrin.h, and only do so when __SSE3__
84 * include/ext/random: Include emmintrin.h instead of x86intrin.h
86 2015-10-11 Joseph Myers <joseph@codesourcery.com>
88 * crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* |
89 *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*>: Check for
90 __cxa_thread_atexit_impl.
91 * configure: Regenerate.
93 2015-10-09 Jonathan Wakely <jwakely@redhat.com>
95 * include/experimental/erase_if.h: Move to ...
96 * include/experimental/bits/erase_if.h: New.
97 * include/experimental/fs_dir.h: Move to ...
98 * include/experimental/bits/fs_dir.h: New.
99 * include/experimental/fs_fwd.h: Move to ...
100 * include/experimental/bits/fs_fwd.h: New.
101 * include/experimental/fs_ops.h: Move to ...
102 * include/experimental/bits/fs_ops.h: New.
103 * include/experimental/fs_path.h: Move to ...
104 * include/experimental/bits/fs_path.h: New.
105 * include/experimental/string_view.tcc: Move to ...
106 * include/experimental/bits/string_view.tcc: New.
107 * include/Makefile.am: Add include/experimental/bits sub-directory.
108 * include/Makefile.in: Regenerate.
109 * include/experimental/filesystem: Adjust includes.
110 * include/experimental/map: Likewise.
111 * include/experimental/set: Likewise.
112 * include/experimental/string_view: Likewise.
113 * include/experimental/unordered_map: Likewise.
114 * include/experimental/unordered_set: Likewise.
116 2015-10-05 Ville Voutilainen <ville.voutilainen@gmail.com>
119 * include/std/tuple (_TC::_NonNestedTuple): Eagerly reject
120 conversions from tuple types same as the target tuple.
121 * testsuite/20_util/tuple/67844.cc: New.
122 * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: Add
123 a missing copyright header.
125 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
127 * python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Remove support
130 * src/c++98/locale.cc: Fix comment.
131 * src/c++98/locale_init.cc: Likewise.
133 * testsuite/21_strings/basic_string/literals/types.cc: Guard use of
134 wchar_t with _GLIBCXX_USE_WCHAR_T.
135 * testsuite/21_strings/basic_string/literals/values.cc: Likewise.
136 * testsuite/21_strings/basic_string/requirements/citerators.cc:
138 * testsuite/22_locale/messages/13631.cc: Likewise.
139 * testsuite/experimental/string_view/literals/types.cc: Likewise.
140 * testsuite/experimental/string_view/literals/values.cc: Likewise.
142 * src/filesystem/Makefile.am: Add cxx11_abi_sources.
143 * src/filesystem/Makefile.in: Regenerate.
144 * src/filesystem/cow-dir.cc: New.
145 * src/filesystem/cow-ops.cc: New.
146 * src/filesystem/cow-path.cc: New.
147 * src/filesystem/dir.cc: Define macro for new ABI.
148 * src/filesystem/ops.cc: Likewise.
149 * src/filesystem/path.cc: Likewise.
151 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
153 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
154 Minor tweaks to match narrow char version.
156 * testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard
157 explicit instantiation with check for new ABI.
158 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
159 Likewise. Use wchar_t as char_type.
161 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
162 (basic_string::front() const, basic_string::back() const): Use
163 noexcept instead of _GLIBCXX_NOEXCEPT macro.
164 (__versa_string::front, __versa_string::back): Likewise.
166 * acinclude.m4 (GLIBCXX_ENABLE_DEBUG_FLAGS): Fix comment.
168 * include/bits/locale_conv.h [!_GLIBCXX_USE_WCHAR_T]
169 (__do_str_codecvt, __str_codecvt_in, __str_codecvt_out): Enable.
170 * include/experimental/fs_path.h [!_GLIBCXX_USE_WCHAR_T]
171 (path::wstring, path::generic_wstring): Disable.
172 * src/filesystem/path.cc (path::_S_convert_loc)
173 [!_GLIBCXX_USE_WCHAR_T]: Skip conversion.
174 * testsuite/experimental/filesystem/path/assign/assign.cc: Check for
176 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
177 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
179 * testsuite/util/testsuite_fs.h (nonexistent_path): Use less generic
180 name for paths. Prefer snprintf to sprintf.
183 * src/filesystem/dir.cc (native_readdir): Remove.
184 (_Dir::advance): Use readdir instead of native_readdir.
185 (recursive_directory_iterator(const path&, directory_options,
186 error_code*)): Use swap instead of reset.
188 2015-10-01 Jonathan Wakely <jwakely@redhat.com>
190 * doc/html/manual/errno.html: Add new file.
192 * doc/xml/manual/diagnostics.xml: Document use of errno.
193 * doc/html/*: Regenerate.
194 * config/locale/generic/c_locale.cc (_Save_errno): New helper.
195 (__convert_to_v): Use _Save_errno.
196 * include/ext/string_conversions.h (__stoa): Only restore errno when
197 it isn't set to non-zero.
199 2015-09-30 François Dumont <fdumont@gcc.gnu.org>
200 Jonathan Wakely <jwakely@redhat.com>
202 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs):
204 * config/locale/gnu/c++locale_internal.h: ...here in std namespace.
205 * config/locale/gnu/c_locale.cc: Move implementation of latter here.
206 * src/c++98/Makefile.am: Compile c++locale.cc with -fimplicit-templates.
207 * src/c++98/Makefile.in: Regenerate.
208 * config/abi/pre/gnu.ver: Adjust.
210 2015-09-30 Matthias Klose <doko@ubuntu.com>
212 * config/cpu/alpha, config/cpu/ia64: Remove empty directories.
214 2015-09-29 Jonathan Wakely <jwakely@redhat.com>
216 * include/ext/string_conversions.h (__stoa): Save and restore errno.
217 * testsuite/21_strings/basic_string/numeric_conversions/char/errno.cc:
221 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Fix sputn call
222 with mismatched arguments.
223 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
226 * config/abi/pre/gnu.ver: Export new symbols.
227 * include/std/thread (thread::_State, thread::_State_impl): New types.
228 (thread::_M_start_thread): Add overload taking unique_ptr<_State>.
229 (thread::_M_make_routine): Remove.
230 (thread::_S_make_state): Add.
231 (thread::_Impl_base, thread::_Impl, thread::_M_start_thread)
232 [_GLIBCXX_THREAD_ABI_COMPAT] Only declare conditionally.
233 * src/c++11/thread.cc (execute_native_thread_routine): Rename to
234 execute_native_thread_routine_compat and re-define to use _State.
235 (thread::_State::~_State()): Define.
236 (thread::_M_make_thread): Define new overload.
237 (thread::_M_make_thread) [_GLIBCXX_THREAD_ABI_COMPAT]: Only define old
238 overloads conditionally.
240 2015-09-28 Jonathan Wakely <jwakely@redhat.com>
242 * include/std/condition_variable (condition_variable::wait): Add
244 * src/c++11/condition_variable.cc (condition_variable::wait): Call
245 std::terminate on error (DR 2135).
247 2015-09-25 Ville Voutilainen <ville.voutilainen@gmail.com>
249 Avoid creating dangling references in case of nested tuples
250 for tuple constructors that construct from other tuples.
251 * include/std/tuple (_TC::_NonNestedTuple): New.
252 * include/std/tuple (tuple::_TNTC): New.
253 * include/std/tuple (tuple(const tuple<_UElements...>&),
254 tuple(tuple<_UElements...>&&): Use _TNTC.
255 * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: New.
257 2015-09-24 Jonathan Wakely <jwakely@redhat.com>
260 * include/bits/stl_deque.h (_Deque_base::_M_move_impl): Initialize
262 * testsuite/23_containers/deque/allocator/move.cc: Check moved-from
265 2015-09-23 Jonathan Wakely <jwakely@redhat.com>
267 * src/filesystem/ops.cc (canonical): Simplify error handling and
268 limit number of symlinks that can be resolved.
270 2015-09-23 Jonathan Wakely <jwakely@redhat.com>
272 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Remove _GLIBCXX_
273 prefix from HAVE_STRUCT_DIRENT_D_TYPE.
274 * config.h.in: Regenerate.
275 * configure: Regenerate.
276 * include/experimental/fs_dir.h (operator==, operator==):
277 Use owner_before instead of pointer equality.
278 (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
279 * src/filesystem/dir.cc (ErrorCode): Remove.
280 (_Dir::advance): Change ErrorCode parameter to error_code*, add
281 directory_options parameter and check it on error.
282 (opendir): Rename to open_dir to avoid clashing with macro. Change
283 ErrorCode parameter to error_code*.
284 (make_shared_dir): Remove.
285 (native_readdir) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Don't set errno.
286 (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
287 (directory_iterator(const path&, directory_options, error_code*)):
288 Pass options to _Dir::advance and create non-end iterator on error.
289 (recursive_directory_iterator(const path&, directory_options,
290 error_code*)): Clear error_code on ignored error, create non-end
292 (recursive_directory_iterator::increment): Pass _M_options to
294 (recursive_directory_iterator::pop): Likewise.
295 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
297 * testsuite/experimental/filesystem/iterators/
298 recursive_directory_iterator.cc: New.
300 * src/filesystem/ops.cc (is_dot, is_dotdot): Define new helpers.
301 (create_directories): Fix error handling.
302 * testsuite/experimental/filesystem/operations/create_directories.cc:
305 2015-09-21 Jonathan Wakely <jwakely@redhat.com>
308 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
309 (basic_string::shrink_to_fit): Fix #endif placement.
311 2015-09-19 Tim Shen <timshen@google.com>
314 * include/bits/regex_error.h: Add __throw_regex_error that
316 * include/bits/regex_automaton.h: Add more specific exception
318 * include/bits/regex_automaton.tcc: Likewise.
319 * include/bits/regex_compiler.h: Likewise.
320 * include/bits/regex_compiler.tcc: Likewise.
321 * include/bits/regex_scanner.h: Likewise.
322 * include/bits/regex_scanner.tcc: Likewise.
324 2015-09-18 Jonathan Wakely <jwakely@redhat.com>
326 * include/precompiled/extc++.h: Fix bootstrap error due to
327 unconditional inclusion of <ext/enc_filebuf.h>.
328 * include/ext/random: Check for definition of UINT32_C.
330 2015-09-17 Catherine Moore <clm@codesourcery.com>
332 * src/c++11/debug.cc: Include <cstdio>.
334 2015-09-17 Gerald Pfeifer <gerald@pfeifer.com>
336 * src/c++11/random.cc: Include <cerrno>.
338 2015-09-17 François Dumont <fdumont@gcc.gnu.org>
340 * include/debug/formatter.h
341 (_Error_formatter::_Parameter::_M_print_field): Deprecate.
342 (_Error_formatter::_Parameter::_M_print_description): Likewise.
343 (_Error_formatter::_M_format_word): Likewise.
344 (_Error_formatter::_M_print_word): Likewise.
345 (_Error_formatter::_M_print_string): Likewise.
346 (_Error_formatter::_M_get_max_length): Likewise.
347 (_Error_formatter::_M_max_length): Delete.
348 (_Error_formatter::_M_indent): Likewise.
349 (_Error_formatter::_M_column): Likewise.
350 (_Error_formatter::_M_first_line): Likewise.
351 (_Error_formatter::_M_wordwrap): Likewise.
352 * src/c++11/debug.cc: Adapt.
354 2015-09-17 Jonathan Wakely <jwakely@redhat.com>
357 * include/bits/atomic_base.h (__atomic_base<_TTp>::is_lock_free(),
358 __atomic_base<_PTp*>::is_lock_free()): Call the built-in with the
359 immediate pointer value, not a variable.
360 * include/std/atomic (atomic<T>::is_lock_free()): Likewise.
361 * testsuite/29_atomics/atomic/65913.cc: New.
363 * testsuite/experimental/filesystem/operations/canonical.cc: Remove
364 non-deterministic part of the test.
367 * src/c++11/random.cc (random_device::_M_getval()): Retry after short
370 * include/std/system_error (error_code::operator bool(),
371 error_condition::operator bool()): Remove redundant conditional
374 * include/bits/allocator.h (__shrink_to_fit_aux<T, true>::_S_do_it):
375 Do nothing if exceptions are disabled.
376 * include/bits/basic_string.h (basic_string::shrink_to_fit): Likewise.
378 2015-09-16 Jonathan Wakely <jwakely@redhat.com>
381 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check _XOPEN_VERSION
382 and PATH_MAX for _GLIBCXX_USE_REALPATH.
383 * config.h.in: Regenerate.
384 * configure: Regenerate.
385 * src/filesystem/ops.cc: (canonical) [!_GLIBCXX_USE_REALPATH]: Add
386 alternative implementation.
387 * testsuite/experimental/filesystem/operations/canonical.cc: New.
388 * testsuite/experimental/filesystem/operations/exists.cc: Add more
390 * testsuite/experimental/filesystem/operations/absolute.cc: Add test
392 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
393 * testsuite/experimental/filesystem/operations/current_path.cc:
395 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
396 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
397 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
400 2015-09-11 Jonathan Wakely <jwakely@redhat.com>
403 * src/filesystem/ops.cc (filesystem::canonical): Allocate buffer for
404 realpath on Solaris 10.
407 * src/c++11/random.cc (random_device::_M_getval()): Check read result.
409 2015-09-11 John Marino <gnugcc@marino.st>
410 Jonathan Wakely <jwakely@redhat.com>
413 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Do not test code points
415 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
416 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
417 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise.
418 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise.
419 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
420 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise.
421 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
422 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise.
423 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
424 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
425 * testsuite/27_io/objects/wchar_t/10.cc: Likewise.
426 * testsuite/27_io/objects/wchar_t/11.cc: Likewise.
427 * testsuite/27_io/objects/wchar_t/12.cc: Likewise.
428 * testsuite/27_io/objects/wchar_t/13.cc: Likewise.
430 2015-09-11 Jonathan Wakely <jwakely@redhat.com>
433 * doc/xml/manual/using.xml: Improve aggregate header documentation.
434 * doc/html/manual/*: Regenerate.
435 * include/precompiled/extc++.h: Include <bits/stdc++.h> for C++11
436 and later and include more extension headers.
437 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Remove
439 * testsuite/17_intro/headers/c++200x/: Rename to c++2011.
440 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Remove
442 * testsuite/17_intro/headers/c++2014/all_no_exceptions.cc: New.
443 * testsuite/17_intro/headers/c++2014/all_no_rtti.cc: New.
444 * testsuite/17_intro/headers/c++2014/all_pedantic_errors.cc: New.
445 * testsuite/17_intro/headers/c++2014/operator_names.cc: New.
446 * testsuite/17_intro/headers/c++2014/stdc++.cc: New.
447 * testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc:
451 * doc/xml/manual/intro.xml: Document LWG 2063 and 2064 resolutions.
452 * doc/html/manual/bugs.html: Regenerate.
453 * include/bits/basic_string.h (basic_string): Implement N4258. Add
454 correct exception-specifications and propagate allocators correctly.
455 * include/bits/basic_string.tcc (basic_string::swap): Propagate
456 allocators correctly.
457 * include/debug/string (__gnu_debug::basic_string): Add correct
458 exceptions-specifications and allcoator-extended constructors.
459 * testsuite/21_strings/basic_string/allocator/char/copy.cc: New.
460 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
462 * testsuite/21_strings/basic_string/allocator/char/minimal.cc: New.
463 * testsuite/21_strings/basic_string/allocator/char/move.cc: New.
464 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
466 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc: New.
467 * testsuite/21_strings/basic_string/allocator/char/swap.cc: New.
468 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: New.
469 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
471 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: New.
472 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: New.
473 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
475 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: New.
476 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: New.
477 * testsuite/util/testsuite_allocator.h (tracker_allocator): Define
478 defaulted assignment operators.
481 * include/bits/stl_queue.h (queue, priority_queue): Add
482 allocator-extended constructors.
483 * include/bits/stl_stack.h (stack): Likewise.
484 * testsuite/23_containers/priority_queue/requirements/
485 uses_allocator.cc: Test allocator-extended constructors.
486 * testsuite/23_containers/queue/requirements/uses_allocator.cc:
488 * testsuite/23_containers/stack/requirements/uses_allocator.cc:
491 2015-09-10 Jonathan Wakely <jwakely@redhat.com>
493 * testsuite/util/testsuite_allocator.h (PointerBase::operator[]): Add.
495 * testsuite/21_strings/basic_string/operators/char/1.cc: Verify the
498 2015-09-09 Jonathan Wakely <jwakely@redhat.com>
500 * doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document.
501 * doc/html/manual/using_macros.html: Regenerate.
502 * include/bits/c++config: Define _GLIBCXX_ASSERTIONS when
503 _GLIBCXX_DEBUG is defined. Disable std::string extern templates when
504 (_GLIBCXX_EXTERN_TEMPLATE, __glibcxx_assert): Depend on
505 _GLIBCXX_ASSERTIONS instead of _GLIBCXX_DEBUG.
506 * include/debug/debug.h [!_GLIBCXX_DEBUG]: Define
507 __glibcxx_requires_non_empty_range and __glibcxx_requires_nonempty.
508 * include/backward/auto_ptr.h (auto_ptr::operator*,
509 auto_ptr::operator->): Replace _GLIBCXX_DEBUG_ASSERT with
511 * include/bits/basic_string.h (basic_string::operator[],
512 basic_string::front, basic_string::back, basic_string::pop_back):
514 * include/bits/random.h
515 (uniform_int_distribution::param_type::param_type,
516 uniform_real_distribution::param_type::param_type,
517 normal_distribution::param_type::param_type,
518 gamma_distribution::param_type::param_type,
519 bernoulli_distribution::param_type::param_type,
520 binomial_distribution::param_type::param_type,
521 geometric_distribution::param_type::param_type,
522 negative_binomial_distribution::param_type::param_type,
523 poisson_distribution::param_type::param_type,
524 exponential_distribution::param_type::param_type): Likewise.
525 * include/bits/regex.h (match_results::operator[],
526 match_results::prefix, match_results::suffix): Likewise.
527 * include/bits/regex.tcc (format, regex_iterator::operator++):
529 * include/bits/regex_automaton.tcc (_StateSeq::_M_clone): Likewise.
530 * include/bits/regex_compiler.tcc (_Compiler::_Compiler,
531 _Compiler::_M_insert_character_class_matcher): Likewise.
532 * include/bits/regex_executor.tcc (_Executor::_M_dfs): Likewise.
533 * include/bits/regex_scanner.tcc (_Scanner::_M_advance,
534 _Scanner::_M_scan_normal): Likewise.
535 * include/bits/shared_ptr_base.h (__shared_ptr::_M_reset,
536 __shared_ptr::operator*): Likewise.
537 * include/bits/stl_iterator_base_funcs.h (__advance): Likewise.
538 * include/bits/unique_ptr.h (unique_ptr::operator*,
539 unique_ptr::operator[]): Likewise.
540 * include/experimental/fs_path.h (path::path(string_type, _Type),
541 path::iterator::operator++, path::iterator::operator--,
542 path::iterator::operator*): Likewise.
543 * include/experimental/string_view (basic_string_view::operator[],
544 basic_string_view::front, basic_string_view::back,
545 basic_string_view::remove_prefix): Likewise.
546 * include/ext/random (beta_distribution::param_type::param_type,
547 normal_mv_distribution::param_type::param_type,
548 rice_distribution::param_type::param_type,
549 pareto_distribution::param_type::param_type,
550 k_distribution::param_type::param_type,
551 arcsine_distribution::param_type::param_type,
552 hoyt_distribution::param_type::param_type,
553 triangular_distribution::param_type::param_type,
554 von_mises_distribution::param_type::param_type,
555 hypergeometric_distribution::param_type::param_type,
556 logistic_distribution::param_type::param_type): Likewise.
557 * include/ext/vstring.h (__versa_string::operator[]): Likewise.
558 * include/std/complex (polar): Likewise.
559 * include/std/mutex [!_GTHREAD_USE_MUTEX_TIMEDLOCK]
560 (timed_mutex::~timed_mutex, timed_mutex::unlock,
561 (recursive_timed_mutex::~timed_mutex, recursive_timed_mutex::unlock):
563 * include/std/shared_mutex [!PTHREAD_RWLOCK_INITIALIZER]
564 (__shared_mutex_pthread::__shared_mutex_pthread,
565 __shared_mutex_pthread::~__shared_mutex_pthread): Likewise.
566 (__shared_mutex_pthread::lock, __shared_mutex_pthread::try_lock,
567 __shared_mutex_pthread::unlock, __shared_mutex_pthread::lock_shared,
568 __shared_mutex_pthread::try_lock_shared): Likewise.
569 (__shared_mutex_cv::~__shared_mutex_cv, __shared_mutex_cv::unlock,
570 __shared_mutex_cv::unlock_shared): Likewise.
571 (shared_timed_mutex::try_lock_until,
572 shared_timed_mutex::try_lock_shared_until): Likewise.
573 * include/std/valarray (valarray::valarray(const _Tp*, size_t),
574 valarray::operator=, valarray::sum, valarray::min, valarray::max,
575 _DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT, _DEFINE_BINARY_OPERATOR):
578 2015-09-07 Jonathan Wakely <jwakely@redhat.com>
580 * include/bits/shared_ptr_base.h (__shared_ptr::operator->): Change
581 _GLIBCXX_DEBUG_ASSERT to _GLIBCXX_DEBUG_PEDASSERT.
582 * include/bits/unique_ptr.h (unique_ptr::operator->): Likewise.
583 * testsuite/20_util/shared_ptr/observers/get.cc: Test operator-> on
586 * include/bits/regex_compiler.h (_BracketMatcher::_M_is_ready):
587 Initialize using NSDMI and set using _GLIBCXX_DEBUG_ONLY.
589 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Rename
592 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Run on
594 * testsuite/30_threads/timed_mutex/unlock/2.cc: Run on darwin.
596 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
599 * include/std/mutex (recursive_timed_mutex): Fix uses of _Can_lock.
602 * include/Makefile.am: Add <bits/mutex.h>.
603 * include/Makefile.in: Regenerate.
604 * include/bits/mutex.h (__mutex_base, mutex, lock_guard, unique_lock):
605 New file containing types moved from <mutex>.
606 * include/std/condition_variable: Include <bits/mutex.h> instead of
608 * include/std/mutex (__mutex_base, mutex, lock_guard, unique_lock):
609 Move to <bits/mutex.h>.
610 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Remove
611 dg-require-gthreads-timed.
612 * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
614 * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
616 * testsuite/30_threads/recursive_timed_mutex/dest/
617 destructor_locked.cc: Likewise.
618 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
619 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
620 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
621 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
622 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
624 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
626 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
628 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
630 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
632 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
633 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
634 * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
635 * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
636 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc:
638 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
639 * testsuite/30_threads/timed_mutex/requirements/standard_layout.cc:
641 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
642 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
643 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
644 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
645 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
646 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
647 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
648 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
649 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
650 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
651 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
652 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
653 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
655 2015-09-04 Edward Smith-Rowland <3dw4rd@verizon.net>
656 Jonathan Wakely <jwakely@redhat.com>
658 Add C++11 header <cuchar>.
659 * acinclude.m4 (GLIBCXX_CHECK_UCHAR_H): Define.
660 * config.h.in: Regenerate.
661 * configure: Regenerate.
662 * configure.ac: Check for <uchar.h>.
663 * include/Makefile.am: Add new headers.
664 * include/Makefile.in: Regenerate.
665 * include/c/cuchar: New.
666 * include/c_compatibility/uchar.h: New.
667 * include/c_global/cuchar: New.
668 * include/c_std/cuchar: New.
669 * include/precompiled/stdc++.h: Include <cuchar>.
670 * testsuite/17_intro/headers/c++200x/stdc++.cc: Include <uchar.h>.
671 * testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc:
674 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
677 * include/c/cassert: Include <bits/c++config.h>.
678 * include/c/cerrno: Likewise.
679 * include/c/cfloat: Likewise.
680 * include/c/ciso646: Likewise.
681 * include/c/climits: Likewise.
682 * include/c_global/cassert: Likewise.
683 * include/c_global/cerrno: Likewise.
684 * include/c_global/cfloat: Likewise.
685 * include/c_global/ciso646: Likewise.
686 * include/c_global/climits: Likewise.
687 * include/c_std/cassert: Likewise.
688 * include/c_std/cerrno: Likewise.
689 * include/c_std/cfloat: Likewise.
690 * include/c_std/ciso646: Likewise.
691 * include/c_std/climits: Likewise.
693 2015-09-03 Jonathan Wakely <jwakely@redhat.com>
695 * include/bits/shared_ptr_base.h: Add required header.
696 * include/std/condition_variable: Likewise.
697 * include/std/mutex: Remove unused header.
698 * include/std/shared_mutex: Remove redundant header.
699 (shared_mutex::shared_mutex()): Replace throw with __throw_bad_alloc.
702 * src/c++11/debug.cc (_S_debug_messages): Make array const.
705 * include/experimental/functional (_Not_fn): Add exception
706 specifications and non-deduced return types.
707 (not_fn): Add exception specification and wrap pointer-to-member.
708 * testsuite/experimental/functional/not_fn.cc: Test in SFINAE context
709 and test pointer-to-member.
712 * include/bits/stl_iterator_base_funcs.h (next, prev): Add concept
714 * testsuite/24_iterators/operations/prev_neg.cc: New.
715 * testsuite/24_iterators/operations/next_neg.cc: New.
717 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
719 * testsuite/18_support/pthread_guard.cc: Add *-*-rtems* target
720 selector to all lines which contain a *-*-cygwin target selector.
721 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
722 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise.
723 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
724 * testsuite/21_strings/basic_string/pthread18185.cc: Likewise.
725 * testsuite/21_strings/basic_string/pthread33394.cc: Likewise.
726 * testsuite/21_strings/basic_string/pthread4.cc: Likewise.
727 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
728 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
729 * testsuite/23_containers/list/pthread1.cc: Likewise.
730 * testsuite/23_containers/list/pthread5.cc: Likewise.
731 * testsuite/23_containers/map/pthread6.cc: Likewise.
732 * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise.
733 * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise.
734 * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise.
735 * testsuite/30_threads/async/42819.cc: Likewise.
736 * testsuite/30_threads/async/49668.cc: Likewise.
737 * testsuite/30_threads/async/54297.cc: Likewise.
738 * testsuite/30_threads/async/any.cc: Likewise.
739 * testsuite/30_threads/async/async.cc: Likewise.
740 * testsuite/30_threads/async/launch.cc: Likewise.
741 * testsuite/30_threads/async/lwg2021.cc: Likewise.
742 * testsuite/30_threads/async/sync.cc: Likewise.
743 * testsuite/30_threads/call_once/39909.cc: Likewise.
744 * testsuite/30_threads/call_once/49668.cc: Likewise.
745 * testsuite/30_threads/call_once/60497.cc: Likewise.
746 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
747 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
748 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
749 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
750 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
751 * testsuite/30_threads/condition_variable/members/3.cc: Likewise.
752 * testsuite/30_threads/condition_variable/members/53841.cc: Likewise.
753 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
755 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
756 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
757 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
758 * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise.
759 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
760 * testsuite/30_threads/future/cons/move.cc: Likewise.
761 * testsuite/30_threads/future/members/45133.cc: Likewise.
762 * testsuite/30_threads/future/members/get.cc: Likewise.
763 * testsuite/30_threads/future/members/get2.cc: Likewise.
764 * testsuite/30_threads/future/members/share.cc: Likewise.
765 * testsuite/30_threads/future/members/valid.cc: Likewise.
766 * testsuite/30_threads/future/members/wait.cc: Likewise.
767 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
768 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
769 * testsuite/30_threads/lock/1.cc: Likewise.
770 * testsuite/30_threads/lock/2.cc: Likewise.
771 * testsuite/30_threads/lock/3.cc: Likewise.
772 * testsuite/30_threads/lock/4.cc: Likewise.
773 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
774 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
775 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
776 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
777 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
778 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
779 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
780 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
781 * testsuite/30_threads/mutex/unlock/2.cc: Likewise.
782 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
783 * testsuite/30_threads/packaged_task/60564.cc: Likewise.
784 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
785 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
786 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
787 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
788 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
789 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
790 * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise.
791 * testsuite/30_threads/packaged_task/members/at_thread_exit.cc:
793 * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise.
794 * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
795 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
796 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
797 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
798 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
799 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
800 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
801 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
802 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
803 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
804 * testsuite/30_threads/promise/60966.cc: Likewise.
805 * testsuite/30_threads/promise/cons/1.cc: Likewise.
806 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
807 * testsuite/30_threads/promise/cons/move.cc: Likewise.
808 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
809 * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise.
810 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
811 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
812 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
813 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
814 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
815 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
816 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
817 * testsuite/30_threads/promise/members/swap.cc: Likewise.
818 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
819 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
821 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
822 * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
823 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
825 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
826 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
827 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
828 * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise.
829 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
830 * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
832 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
833 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
834 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
836 * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc:
838 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
839 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
840 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
842 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
844 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
846 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
848 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
850 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
851 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise.
852 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
853 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
854 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
855 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
856 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
857 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
858 * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
859 * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
860 * testsuite/30_threads/shared_lock/cons/1.cc: Likewise.
861 * testsuite/30_threads/shared_lock/cons/2.cc: Likewise.
862 * testsuite/30_threads/shared_lock/cons/3.cc: Likewise.
863 * testsuite/30_threads/shared_lock/cons/4.cc: Likewise.
864 * testsuite/30_threads/shared_lock/cons/5.cc: Likewise.
865 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
866 * testsuite/30_threads/shared_lock/locking/1.cc: Likewise.
867 * testsuite/30_threads/shared_lock/locking/2.cc: Likewise.
868 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
869 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
870 * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise.
871 * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise.
872 * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise.
873 * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise.
874 * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise.
875 * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise.
876 * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise.
877 * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise.
878 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise.
879 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise.
880 * testsuite/30_threads/this_thread/1.cc: Likewise.
881 * testsuite/30_threads/this_thread/2.cc: Likewise.
882 * testsuite/30_threads/this_thread/3.cc: Likewise.
883 * testsuite/30_threads/this_thread/4.cc: Likewise.
884 * testsuite/30_threads/thread/cons/1.cc: Likewise.
885 * testsuite/30_threads/thread/cons/2.cc: Likewise.
886 * testsuite/30_threads/thread/cons/3.cc: Likewise.
887 * testsuite/30_threads/thread/cons/4.cc: Likewise.
888 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
889 * testsuite/30_threads/thread/cons/5.cc: Likewise.
890 * testsuite/30_threads/thread/cons/6.cc: Likewise.
891 * testsuite/30_threads/thread/cons/7.cc: Likewise.
892 * testsuite/30_threads/thread/cons/8.cc: Likewise.
893 * testsuite/30_threads/thread/cons/9.cc: Likewise.
894 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
895 * testsuite/30_threads/thread/members/1.cc: Likewise.
896 * testsuite/30_threads/thread/members/2.cc: Likewise.
897 * testsuite/30_threads/thread/members/3.cc: Likewise.
898 * testsuite/30_threads/thread/members/4.cc: Likewise.
899 * testsuite/30_threads/thread/members/5.cc: Likewise.
900 * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise.
901 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
902 * testsuite/30_threads/thread/swap/1.cc: Likewise.
903 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
904 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
905 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
906 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
907 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise.
908 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
909 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
910 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
911 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
912 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
913 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
914 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
915 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
916 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
917 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
918 * testsuite/30_threads/try_lock/1.cc: Likewise.
919 * testsuite/30_threads/try_lock/2.cc: Likewise.
920 * testsuite/30_threads/try_lock/3.cc: Likewise.
921 * testsuite/30_threads/try_lock/4.cc: Likewise.
922 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
923 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
924 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
925 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
926 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
927 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
928 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
929 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
930 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
931 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
932 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
933 * testsuite/ext/rope/pthread7-rope.cc: Likewise.
934 * testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc:
936 * testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc:
939 2015-09-02 Dmitry Vyukov <dvyukov@google.com>
941 * include/bits/basic_string.h: Fix data races on _M_refcount.
943 2015-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
946 * include/std/mutex (__timed_mutex_impl::_M_try_lock_until): Use
947 _Derived::_M_timedlock().
948 (timed_mutex): Add _M_timedlock() and make base class a friend.
949 (recursive_timed_mutex): Likewise.
951 2015-08-28 Tim Shen <timshen@google.com>
954 * include/bits/regex_scanner.tcc (_Scanner<>::_M_scan_normal):
955 Always returns ordinary char token if the char isn't
956 considered a special char.
957 * testsuite/28_regex/regression.cc: New test file for collecting
958 regression testcases from, typically, bugzilla.
960 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
963 * include/bits/range_access.h (valarray, begin, end): Declare.
964 * testsuite/26_numerics/valarray/range_access.cc: Test const
966 * testsuite/26_numerics/valarray/range_access2.cc: New.
968 2015-08-27 John Marino <gnugcc@marino.st>
970 * acinclude.m4 (*-*-dragonfly*): Change 7 locale support files
971 from generic to new DragonFly versions.
972 * configure: Regenerate.
973 * config/locale/dragonfly/c_locale.cc: Improve locale support.
974 * config/locale/dragonfly/ctype_members.cc: Likewise.
975 * config/os/bsd/dragonfly/ctype_configure_char.cc: Likewise.
976 * config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99.
977 * config/locale/dragonfly/c_locale.h: New.
978 * config/locale/dragonfly/codecvt_members.cc: New.
979 * config/locale/dragonfly/collate_members.cc: New.
980 * config/locale/dragonfly/monetary_members.cc: New.
981 * config/locale/dragonfly/numeric_members.cc: New.
982 * config/locale/dragonfly/time_members.cc: New.
983 * config/locale/dragonfly/time_members.h: New.
985 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
987 * configure: Regenerate.
989 2015-08-26 Edward Smith-Rowland <3dw4rd@verizon.net>
990 Jonathan Wakely <jwakely@redhat.com>
994 * include/bits/random.tcc (generate_canonical): Loop until we get a
995 result less than one.
996 * testsuite/26_numerics/random/uniform_real_distribution/operators/
999 2015-08-26 Jonathan Wakely <jwakely@redhat.com>
1001 * include/bits/shared_ptr.h (__enable_shared_from_this_helper): Use
1003 * include/bits/shared_ptr_base.h (weak_ptr::_M_assign): Don't assign
1004 if ownership is already shared with a shared_ptr object.
1005 (__enable_shared_from_this_helper): Use nullptr.
1006 * testsuite/20_util/enable_shared_from_this/members/const.cc: New.
1007 * testsuite/20_util/enable_shared_from_this/members/reinit.cc: New.
1008 * testsuite/20_util/enable_shared_from_this/requirements/
1009 explicit_instantiation.cc: Instantiate with const and incomplete types.
1011 * include/debug/map.h (map::try_emplace, map::insert_or_assign):
1013 * include/debug/unordered_map (unordered_map::try_emplace,
1014 unordered_map::insert_or_assign): Define.
1017 * src/c++11/debug.cc (_S_debug_messages): Give internal linkage.
1019 2015-08-24 François Dumont <fdumont@gcc.gnu.org>
1022 * include/debug/formatter.h (_Debug_msg_id::__msg_irreflexive_ordering):
1024 * include/debug/functions.h (_Irreflexive_checker): New.
1025 (__is_irreflexive, __is_irreflexive_pred): New.
1026 * include/debug/macros.h
1027 (__glibcxx_check_irreflexive, __glibcxx_check_irreflexive_pred): New
1029 (__glibcxx_check_irreflexive2, __glibcxx_check_irreflexive_pred2): New
1030 macros limited to post-C++11 mode.
1031 * include/debug/debug.h
1032 (__glibcxx_requires_irreflexive, __glibcxx_requires_irreflexive_pred):
1033 New macros, use latter.
1034 (__glibcxx_requires_irreflexive2, __glibcxx_requires_irreflexive_pred2):
1036 * include/bits/stl_algo.h
1037 (partial_sort_copy): Add irreflexive debug check.
1038 (partial_sort_copy): Likewise.
1039 (lower_bound): Likewise.
1040 (upper_bound): Likewise.
1041 (equal_range): Likewise.
1042 (binary_search): Likewise.
1043 (inplace_merge): Likewise.
1044 (includes): Likewise.
1045 (next_permutation): Likewise.
1046 (prev_permutation): Likewise.
1047 (is_sorted_until): Likewise.
1048 (minmax_element): Likewise.
1049 (partial_sort): Likewise.
1050 (nth_element): Likewise.
1053 (stable_sort): Likewise.
1054 (set_union): Likewise.
1055 (set_intersection): Likewise.
1056 (set_difference): Likewise.
1057 (set_symmetric_difference): Likewise.
1058 (min_element): Likewise.
1059 (max_element): Likewise.
1060 * include/bits/stl_algobase.h
1061 (lower_bound): Likewise.
1062 (lexicographical_compare): Likewise.
1063 * include/bits/stl_heap.h
1064 (push_heap): Likewise.
1065 (pop_heap): Likewise.
1066 (make_heap): Likewise.
1067 (sort_heap): Likewise.
1068 (is_heap_until): Likewise.
1069 * testsuite/25_algorithms/lexicographical_compare/debug/
1070 irreflexive_neg.cc: New.
1071 * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: New.
1072 * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
1075 2015-08-24 Jonathan Wakely <jwakely@redhat.com>
1078 * include/bits/char_traits.h (char_traits<char>::compare,
1079 char_traits<char>::find, char_traits<char>::move,
1080 char_traits<char>::copy, char_traits<char>::assign): Check for zero
1082 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find,
1083 char_traits<wchar_t>::move, char_traits<wchar_t>::copy,
1084 char_traits<wchar_t>::assign): Likewise.
1085 (char_traits<char16_t>::move, char_traits<char16_t>::copy): Likewise.
1086 (char_traits<char32_t>::move, char_traits<char32_t>::copy): Likewise.
1087 * include/ext/pod_char_traits.h (char_traits<character<>>::move,
1088 char_traits<character<>>::copy): Likewise.
1089 * testsuite/21_strings/char_traits/requirements/char/65049.cc: New.
1090 * testsuite/21_strings/char_traits/requirements/char16_t/65049.cc:
1092 * testsuite/21_strings/char_traits/requirements/char32_t/65049.cc:
1094 * testsuite/21_strings/char_traits/requirements/wchar_t/65049.cc:
1098 * include/bits/random.tcc
1099 (poisson_distribution::param_type::_M_initialize): Use max<double>.
1100 (binomial_distribution::param_type::_M_initialize): Likewise.
1101 * testsuite/17_intro/headers/c++200x/67309.cc: New.
1102 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Remove
1105 2015-08-20 Jonathan Wakely <jwakely@redhat.com>
1108 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Do not run
1110 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1112 * include/experimental/any (__any_caster): Define at namespace scope
1113 so the name is visible to name lookup.
1114 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1116 * python/Makefile.am: Ensure gdb.py is installed for libstdc++ not
1118 * python/Makefile.in: Regenerate.
1120 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
1122 * include/c_global/cmath: Fix typo in comment.
1124 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
1126 * include/c_global/cmath: Revert fix for libstdc++/58625, no
1127 longer necessary (__builtin_signbit is now type-generic).
1129 2015-08-18 Jonathan Wakely <jwakely@redhat.com>
1132 * testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc:
1133 Fix use of safe-bool idiom that isn't valid in C++11.
1135 * include/bits/ptr_traits.h: Include <bits/move.h> for addressof.
1138 * doc/xml/manual/configure.xml (manual.intro.setup.configure): Add
1139 caveats for --enable-concept-checks. Improve link text.
1140 * doc/xml/manual/diagnostics.xml (std.diagnostics.concept_checking):
1142 * doc/html/*: Regenerate.
1143 * include/bits/stl_deque.h (deque): Only use concept checks in C++03.
1144 * include/bits/stl_stack.h (stack): Likewise.
1145 * include/bits/stl_vector.h (vector): Likewise.
1147 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
1149 * include/experimental/any (any::operator=(const any&)): Move check
1150 for self-assignment.
1151 (any::operator=(any&&)): Add check for self-assignment.
1152 (any::operator=(_ValueType&&)): Constrain template argument.
1153 (any::swap(any&)): Add check for self-swap.
1154 * testsuite/experimental/any/assign/self.cc: Test move and swap.
1155 * testsuite/experimental/any/misc/any_cast_neg.cc: Update dg-error.
1157 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
1159 * include/experimental/array: Add feature-test macro.
1160 * testsuite/experimental/array/neg.cc: Update dg-error.
1162 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1164 * testsuite/experimental/array/neg.s: Remove.
1165 * testsuite/experimental/array/neg.ii.gz: Remove.
1167 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1169 Implement std::experimental::fundamentals_v2::make_array and
1170 std::experimental::fundamentals_v2::to_array.
1171 * include/Makefile.am: Add array.
1172 * include/Makefile.in: Add array.
1173 * include/experimental/array: New.
1174 * testsuite/experimental/array/make_array.cc: Likewise.
1175 * testsuite/experimental/array/neg.cc: Likewise.
1176 * doc/html/manual/status.html: Mark make_array as Y.
1177 * doc/xml/manual/status_cxx2017.xml: Likewise.
1179 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
1181 * include/bits/alloc_traits.h: Add feature-test macro.
1182 * include/bits/allocator.h: Likewise.
1183 * include/bits/range_access.h: Likewise.
1184 * include/bits/stl_map.h: Likewise.
1185 * include/bits/unordered_map.h: Likewise.
1187 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
1189 * testsuite/30_threads/mutex/unlock/2.cc: New.
1190 * testsuite/30_threads/recursive_mutex/unlock/2.cc: New.
1191 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: New.
1192 * testsuite/30_threads/shared_mutex/unlock/1.cc: New.
1193 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: New.
1194 * testsuite/30_threads/timed_mutex/unlock/2.cc: New.
1196 2015-08-13 Eelis van der Weegen <eelis@eelis.net>
1198 * include/std/shared_mutex (shared_mutex::unlock()): Fix typo.
1200 2015-08-12 Caroline Tice <cmtice@google.com>
1202 PR 66521, Contributed by Eric Gallager
1203 * acinclude.m4 (VTV_CXXLINKFLAGS): Make this variable OS-specific, and
1204 fix the rpath flag to work properly for darwin.
1205 * configure: Regenerated.
1207 2015-08-12 Jonathan Wakely <jwakely@redhat.com>
1209 * doc/xml/manual/appendix_contributing.xml: Update patch email policy.
1210 * doc/xml/manual/status_cxx2017.xml: Update status table.
1211 * doc/html/manual/*: Regenerate.
1213 2015-08-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1215 Implement N4279, Improved insertion interface for unique-key maps.
1216 * include/bits/stl_map.h (try_emplace, insert_or_assign): New.
1217 * include/bits/stl_tree.h (_M_get_insert_unique_pos,
1218 _M_get_insert_equal_pos, _M_get_insert_hint_unique_pos,
1219 _M_get_insert_hint_equal_pos): Make public.
1220 * include/bits/unordered_map.h (try_emplace, insert_or_assign): New.
1221 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
1223 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
1224 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
1226 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
1229 2015-08-08 Ville Voutilainen <ville.voutilainen@gmail.com>
1231 Implement N4089 Safe conversions in unique_ptr<T[]> (LWG 2118)
1232 and N4366 LWG 2228: Missing SFINAE rule in unique_ptr
1233 templated assignment
1234 * include/bits/unique_ptr.h
1235 (__remove_cv, __is_derived_Tp): Remove.
1236 (default_delete::default_delete(const default_delete<_Up[]>)):
1237 Constrain with array convertibility.
1238 (default_delete::operator(_Up*)): Turn into a template,
1239 constrain with array convertibility.
1240 (__safe_conversion_up): New, single object version.
1241 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Constrain with deleter
1243 (unique_ptr::operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
1244 is_assignable as a constraint.
1245 (__safe_conversion_up): Array version, renamed from __safe_conversion,
1246 updated to implement N4089.
1247 (__safe_conversion_raw): New.
1248 (unique_ptr(_Up)): Turn into a template, constrain with array
1251 typename conditional<is_reference<deleter_type>::value,
1252 deleter_type, const deleter_type&>::type)): Likewise.
1253 (unique_ptr(_Up, typename
1254 remove_reference<deleter_type>::type&&)): Likewise.
1255 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Likewise.
1256 (operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
1257 is_assignable as a constraint (array version).
1258 (reset(_Up)): Turn into a template, constrain with array
1260 (reset(nullptr_t)): New.
1261 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
1262 * testsuite/20_util/unique_ptr/assign/48635.cc: Likewise.
1263 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
1264 * testsuite/20_util/unique_ptr/assign/cv_qual.cc: Likewise.
1265 * testsuite/20_util/unique_ptr/cons/cv_qual.cc: Likewise.
1266 * testsuite/20_util/unique_ptr/dr2228.cc: New.
1267 * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Adjust.
1269 2015-08-05 Nikolai Bozhenov <n.bozhenov@samsung.com>
1271 * testsuite/20_util/enable_shared_from_this/cons/constexpr.cc: Remove
1272 redundant -save-temps option.
1273 * testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise.
1274 * testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
1275 * testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.
1276 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
1277 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
1279 2015-08-03 Jonathan Wakely <jwakely@redhat.com>
1282 * include/bits/range_access.h (size, empty, data): Fix _N bad name.
1284 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
1286 * testsuite/experimental/filesystem/operations/current_path.cc: Use
1287 canonical paths for comparisons.
1289 2015-07-30 Tim Shen <timshen@google.com>
1291 * include/bits/regex_automaton.h (_State_base, _State<>):
1292 Remove _TraitsT dependency from _State<>; Make matcher member
1293 into the union to reduce struct size.
1294 * include/bits/regex_automaton.tcc (_State_base<>::_M_print,
1295 _State_base<>::_M_dot, _StateSeq<>::_M_clone):
1296 Adjust to fit the interface. Factor out common parts in
1297 _M_clone as _State<>::_M_has_alt.
1298 * include/bits/regex_executor.h (_Executer<>::_M_lookahead):
1299 Only pass state id instead of the whole state.
1300 * include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
1301 _Executer<>::_M_lookahead): Adjust to fit the interface.
1302 * include/std/regex: Include <ext/aligned_buffer.h>
1304 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
1306 * include/experimental/any (any::operator=(const any&)): Check for
1308 * testsuite/experimental/any/assign/self.cc: New.
1309 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1311 2015-07-29 Jonathan Wakely <jwakely@redhat.com>
1314 * testsuite/lib/libstdc++.exp (v3-build_support): Compile
1315 testsuite_shared.cc with -std=gnu++98.
1317 2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
1319 * include/bits/range_access.h: Change class to typename in every
1321 (size, empty, data): New functions from N4280.
1322 * testsuite/24_iterators/container_access.cc: New.
1325 * include/bits/functional_hash.h (__hash_enum): New.
1326 (hash): Derive from __hash_enum.
1327 * testsuite/20_util/hash/60970.cc: New.
1329 2015-07-29 Tim Shen <timshen@google.com>
1332 * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
1333 _BracketMatcher<>::_M_add_collating_element): Change signature
1334 to make checking the and of bracket expression easier.
1335 * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
1336 Treat '-' as a valid literal if it's at the end of bracket expression.
1337 * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
1340 2015-07-24 Jonathan Wakely <jwakely@redhat.com>
1342 * include/bits/atomic_futex.h [_GLIBCXX_HAVE_LINUX_FUTEX]
1343 (_M_load_and_test_until): Whitespace.
1344 (_M_load_and_test): Value-initialize the unused durations.
1345 (_M_load_when_equal): Add missing return value.
1347 2015-07-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1349 * fragment.am (AM_CPPFLAGS): Add CPPFLAGS.
1350 * Makefile.in: Regenerate.
1351 * doc/Makefile.in: Regenerate.
1352 * include/Makefile.in: Regenerate.
1353 * libsupc++/Makefile.in: Regenerate.
1354 * po/Makefile.in: Regenerate.
1355 * python/Makefile.in: Regenerate.
1356 * src/Makefile.in: Regenerate.
1357 * src/c++11/Makefile.in: Regenerate.
1358 * src/c++98/Makefile.in: Regenerate.
1359 * src/filesystem/Makefile.in: Regenerate.
1360 * testsuite/Makefile.in: Regenerate.
1362 2015-07-23 DJ Delorie <dj@redhat.com>
1364 * include/bits/functional_hash.h: Add specializations for __intN
1367 * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp (__gnu_pbds):
1368 Guard against values that might exceed size_t's precision.
1370 2015-07-20 Jason Merrill <jason@redhat.com>
1372 * include/bits/c++config: Fix abi_tag in special modes.
1374 2015-07-19 Jonathan Wakely <jwakely@redhat.com>
1376 * doc/xml/manual/status_cxx2017.xml: Fix URL for N4279.
1377 * doc/html/manual/status.html: Regenerate.
1379 2015-07-17 Jonathan Wakely <jwakely@redhat.com>
1381 * doc/xml/manual/status_cxx2011.xml: Add caveats for native_handle.
1382 * doc/html/manual/status.html: Regenerate.
1384 2015-07-16 François Dumont <fdumont@gcc.gnu.org>
1386 * include/bits/stl_algobase.h (__miter_base): Move...
1387 * include/bits/cpp_type_traits.h: ...here.
1388 * include/debug/functions.h (__foreign_iterator_aux): Use latter.
1389 * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
1391 2015-07-13 Jonathan Wakely <jwakely@redhat.com>
1394 * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
1395 endianness bit in mode.
1396 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
1398 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
1399 * include/bits/forward_list.h (forward_list::swap): Make noexcept
1401 * include/bits/hashtable.h (_Hashtable::swap): Do not use
1403 * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
1405 * include/bits/stl_deque.h (deque::swap): Likewise.
1406 (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
1407 * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
1408 (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
1409 * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
1410 _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
1411 * include/bits/stl_multimap.h (multimap::swap,
1412 swap(multimap&, multimap&)): Likewise.
1413 * include/bits/stl_multiset.h (multiset::swap,
1414 swap(multiset&, multiset&)): Likewise.
1415 * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
1416 * include/bits/stl_tree.h (_Rb_tree::swap,
1417 swap(_Rb_tree&, _Rb_tree&)): Likewise.
1418 * include/bits/stl_vector.h (vector::swap): Make noexcept
1420 (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
1421 * include/debug/deque (deque::swap, swap): Likewise.
1422 * include/debug/forward_list (swap): Add noexcept.
1423 * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
1424 * include/debug/map.h (map::swap, swap): Likewise.
1425 * include/debug/multimap.h (multimap::swap, swap): Likewise.
1426 * include/debug/multiset.h (multiset::Swap, swap): Likewise.
1427 * include/debug/set.h (set::swap, swap): Likewise.
1428 * include/debug/unordered_map (unordered_map::swap,
1429 unordered_multimap::swap, swap): Likewise.
1430 * include/debug/unordered_set (unordered_set::swap,
1431 unordered_multiset::swap, swap): Likewise.
1432 * include/debug/vector (vector::swap, swap): Likewise.
1433 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
1435 * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
1436 * include/profile/forward_list (swap): Add noexcept.
1437 * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
1438 * include/profile/map.h (map::swap, swap): Likewise.
1439 * include/profile/multimap.h (multimap::swap, swap): Likewise.
1440 * include/profile/multiset.h (multiset::swap, swap): Likewise.
1441 * include/profile/set.h (set::swap, swap): Likewise.
1442 * include/profile/unordered_map (swap): Likewise.
1443 * include/profile/unordered_set (swap): Likewise.
1444 * include/profile/vector (vector::swap, swap): Likewise. Remove
1445 overloads for swapping rvalues.
1446 * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
1447 for noexcept on swap.
1448 * testsuite/23_containers/forward_list/allocator/noexcept.cc:
1450 * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
1451 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
1452 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
1453 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
1454 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
1455 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
1457 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
1459 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
1461 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
1463 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
1464 * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
1465 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
1468 2015-07-13 John Marino <gnugcc@marino.st>
1470 * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
1471 _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
1472 _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
1474 2015-07-05 François Dumont <fdumont@gcc.gnu.org>
1476 * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
1478 * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
1481 2015-07-03 Jonathan Wakely <jwakely@redhat.com>
1483 * doc/xml/manual/status_cxx2017.xml: Update status table.
1484 * doc/html/manual/*: Regenerate.
1486 2015-07-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1488 Implement std::experimental::fundamentals_v2::propagate_const.
1489 * include/Makefile.am: Add propagate_const.
1490 * include/Makefile.in: Regenerate.
1491 * include/experimental/propagate_const: New.
1492 * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
1493 * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
1494 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
1496 * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
1497 * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
1498 * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
1499 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
1500 * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
1501 * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
1502 * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
1503 * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
1504 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
1505 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
1506 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
1507 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
1508 * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
1509 * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
1511 2015-07-02 Jonathan Wakely <jwakely@redhat.com>
1513 * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
1514 --with-default-libstdcxx-abi
1515 * configure: Regenerate.
1516 * doc/xml/manual/configure.xml: Document valid arguments.
1518 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
1520 * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
1521 to avoid unused variable warning.
1522 (__set_and_release): Use __p after __atomic_store to avoid unused
1525 2015-07-01 Jonathan Wakely <jwakely@redhat.com>
1527 * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
1528 (__allocator_traits_base): New base class.
1529 (__alloc_rebind): Reimplement in terms of detection idiom.
1530 (allocator_traits): Derive from __allocator_traits_base. Reimplement
1531 nested types in terms of detection idiom. Simplify SFINAE constraints
1532 on overloaded static member functions.
1533 * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
1534 of __alloctr_rebind.
1535 * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
1536 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
1537 dg-error line number.
1539 * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
1540 __ptrtr_rebind, __ptrtr_not_void): Remove
1541 (__get_first_arg, __replace_first_arg, __make_not_void): Define new
1543 (__detected_or_): New detection trait.
1544 (pointer_traits): Use new traits.
1545 * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
1546 * testsuite/20_util/pointer_traits/requirements/
1547 explicit_instantiation.cc: Use valid arguments to pointer_traits.
1549 * doc/xml/manual/status_cxx2017.xml: Update status table.
1550 * include/experimental/type_traits (void_t, is_detected,
1551 is_detected_v, detected_t, detected_or, detected_or_t,
1552 is_detected_exact, is_detected_exact_v, is_detected_convertible,
1553 is_detected_convertible_v): Define.
1554 * include/std/type_traits (__detector, __detected_or, __detected_or_t,
1555 __detected_or_t_): Define.
1556 * testsuite/experimental/type_traits/detection.cc: New.
1558 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
1560 * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
1561 * doc/Makefile.in: Regenerate.
1563 * include/bits/stl_pair.h: Replace class keyword with typename.
1565 2015-06-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1567 Implement N4387, "Improving pair and tuple", and LWG 2367.
1569 * include/bits/stl_pair.h (_ConstructiblePair,
1570 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
1571 _ImplicitlyMoveConvertiblePair): New.
1572 (pair()): Constrain it.
1573 (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
1574 pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
1575 pair(pair<_U1, _U2>&&)): Make conditionally explicit.
1576 * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
1577 (tuple()): Constrain it.
1578 (tuple(const _UElements&...), tuple(_UElements&&...),
1579 tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
1580 tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
1581 tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
1582 tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
1583 tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
1584 tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
1585 tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
1586 tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
1587 conditionally explicit.
1588 * include/experimental/functional (__boyer_moore_array_base): Name
1589 array type explicitly instead of using an empty braced-init-list.
1590 * testsuite/20_util/pair/cons/explicit_construct.cc: New.
1591 * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
1592 * testsuite/20_util/pair/requirements/dr2367.cc: New.
1593 * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
1594 * testsuite/20_util/tuple/requirements/dr2367.cc: New.
1596 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
1598 * configure: Regenerate.
1600 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
1602 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
1604 * include/debug/functions.h
1605 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
1606 * include/debug/safe_iterator.h
1607 (__gnu_debug::_Sequence_traits): New.
1608 (__gnu_debug::__get_distance_from_begin): New.
1609 (__gnu_debug::__get_distance_to_end): New.
1610 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
1611 distance information. Add optional check_dereferenceable parameter,
1613 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
1614 default definition...
1615 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
1616 (__gnu_debug::__unsafe): Likewise.
1617 * include/debug/helper_functions.h: ...here. New.
1618 (__gnu_debug::__unsafe): New helper function to remove safe iterator
1620 * include/debug/stl_iterator.h: New. Include latter.
1621 * include/bits/stl_iterator.h: Include latter in debug mode.
1622 * include/debug/stl_iterator.tcc: Adapt.
1623 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
1624 overload for _Safe_local_iterator.
1625 (__gnu_debug::__unsafe): Likewise.
1626 * include/debug/safe_local_iterator.tcc: Adapt.
1627 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
1628 (__glibcxx_check_insert_range): Add _Dist parameter.
1629 (__glibcxx_check_insert_range_after): Likewise.
1630 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
1631 _GLIBCXX_DEBUG_PEDASSERT.
1632 * include/debug/deque (deque<>::assign): Remove iterator debug layer
1634 (deque<>::insert): Likewise.
1635 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
1636 (forward_list<>::splice_after): Use latter.
1637 (forward_list<>::assign): Remove iterator debug layer when possible.
1638 (forward_list<>::insert_after): Likewise.
1639 (__gnu_debug::_Sequence_traits<>): Partial specialization.
1640 * include/debug/list (list<>::assign): Remove iterator debug layer when
1642 (list<>::insert): Likewise.
1643 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
1644 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
1646 * include/debug/multimap.h (multimap<>::insert): Likewise.
1647 * include/debug/set.h (set<>::insert): Likewise.
1648 * include/debug/multiset.h (multiset<>::insert): Likewise.
1649 * include/debug/string (basic_string<>::append, basic_string<>::assign,
1650 basic_string<>::insert, basic_string<>::replace): Likewise.
1651 * include/debug/unordered_map
1652 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
1653 * include/debug/unordered_set
1654 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
1655 * include/debug/vector
1656 (vector<>::assign, vector<>::insert): Likewise.
1657 * include/Makefile.am: Add new debug headers.
1658 * include/Makefile.in: Regenerate.
1660 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
1662 * doc/xml/manual/intro.xml: Document LWG 2108 status.
1663 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
1665 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
1666 * include/bits/forward_list.h
1667 (forward_list::operator=(forward_list&&)): Use __bool_constant.
1668 (forward_list::swap(forward_list&)): Add noexcept.
1669 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
1671 (_Hashtable::swap(_Hashtable&)): Likewise.
1672 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
1673 Use _Alloc_traits::is_always_equal.
1674 (deque::operator=(deque&&)): Likewise.
1675 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
1677 (swap(deque&, deque&)): Add noexcept.
1678 * include/bits/stl_list.h (list::operator=(list&&)): Use
1680 (swap(list&, list&)): Add noexcept.
1681 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
1683 (swap(map&, map&)): Add noexcept.
1684 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
1685 _Compare in noexcept.
1686 (swap(multimap&, multimap&)): Add noexcept.
1687 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
1688 _Compare in noexcept.
1689 (swap(multiset&, multiset&)): Add noexcept.
1690 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
1692 (swap(set&, set&)): Add noexcept.
1693 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
1694 _Compare in noexcept.
1695 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
1697 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
1699 (swap(vector&, vector&)): Add noexcept.
1700 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
1701 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
1702 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
1703 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
1704 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
1706 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
1707 __allocator_always_compares_equal.
1708 * include/ext/array_allocator.h (array_allocator::is_always_equal):
1710 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
1711 __propagate_on_move, __propagate_on_swap): Remove.
1712 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
1713 scoped_allocator_adaptor::propagate_on_container_move_assignment,
1714 scoped_allocator_adaptor::propagate_on_container_swap): Define with
1715 __and_ instead of __any_of.
1716 (scoped_allocator_adaptor::is_always_equal): Define.
1717 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
1718 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
1719 derive from true_type or false_type.
1720 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
1721 is_always_equal member and remove the trait specialization.
1722 * testsuite/23_containers/vector/52591.cc: Likewise.
1723 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
1724 Adjust dg-error line number.
1725 * testsuite/23_containers/deque/requirements/dr438/
1726 constructor_1_neg.cc: Likewise.
1727 * testsuite/23_containers/deque/requirements/dr438/
1728 constructor_2_neg.cc: Likewise.
1729 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
1731 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1733 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1735 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1737 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
1739 * testsuite/23_containers/vector/requirements/dr438/
1740 constructor_1_neg.cc: Likewise.
1741 * testsuite/23_containers/vector/requirements/dr438/
1742 constructor_2_neg.cc: Likewise.
1743 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
1746 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
1747 * include/bits/stl_map.h (map::map()): Likewise.
1748 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
1749 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
1750 * include/bits/stl_set.h (set::set()): Likewise.
1752 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
1754 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
1756 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
1758 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
1760 (basic_string<>::back()): Likewise.
1761 (basic_string<>::pop_back()): Likewise.
1763 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
1765 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
1766 dg-error line numbers.
1767 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1770 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
1772 * include/debug/array: Include <array>. Add version namespace when
1773 specializing tuple interface to array. Add specialization for
1774 __is_tuple_like_impl.
1775 * include/profile/array: Likewise.
1776 * include/std/array: Include <utility>. Add specialization for
1777 __is_tuple_like_impl.
1779 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
1780 * include/std/utility: ... here. Include <type_traits>.
1781 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
1782 dg-error line number.
1783 * testsuite/23_containers/array/tuple_interface/
1784 tuple_element_debug_neg.cc: Likewise.
1786 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
1788 * testsuite/26_numerics/complex/value_operations/1.cc: Use
1789 non-negative rho argument.
1791 * include/debug/list (__gnu_debug::list): Use allocator-aware
1792 _Safe_container base.
1793 * include/debug/string (__gnu_debug::basic_string): Use
1794 allocator-aware _Safe_container base for cxx11 ABI.
1796 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
1797 (wstring_convert): Move into __cxx11 namespace.
1798 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
1802 * include/bits/stl_uninitialized.h
1803 (__uninitialized_copy::__uninit_copy): Cast expression to void.
1805 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
1808 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
1809 (list::list(const list&)): Use allocator propagation trait. Use
1810 _M_assign_dispatch to copy elements.
1811 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
1812 (_List_node::_M_valptr()): Add accessor for stored value.
1813 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
1814 (_List_base, list): Use allocator traits.
1815 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
1816 (_List_base::_M_move_nodes): New function.
1817 (_List_base(_List_base&&)): Use _M_move_nodes.
1818 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
1819 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
1821 (list(size_type)): Add allocator parameter.
1822 (list(const list&)): Use allocator propagation trait.
1823 (list(const list&, const allocator_type&)): New constructor.
1824 (list(list&&, const allocator_type&)): Likewise.
1825 (list::operator=(list&&), list::swap(list&)): Use allocator
1827 (list::_M_move_assign): New functions.
1828 * include/debug/list: Add allocator-extended constructors.
1829 * include/profile/list: Likewise.
1830 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
1831 function to get value from _List_node.
1832 (StdListPrinter): Use get_value_from_list_node.
1833 * testsuite/23_containers/list/allocator/copy.cc: New.
1834 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
1835 * testsuite/23_containers/list/allocator/minimal.cc: New.
1836 * testsuite/23_containers/list/allocator/move.cc: New.
1837 * testsuite/23_containers/list/allocator/move_assign.cc: New.
1838 * testsuite/23_containers/list/allocator/noexcept.cc: New.
1839 * testsuite/23_containers/list/allocator/swap.cc: New.
1840 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
1841 Adjust dg-prune-output line number.
1842 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
1844 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
1847 * include/bits/forward_list.h
1848 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
1850 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
1851 (forward_list(const _Alloc&)): Split default constructor out to
1853 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
1855 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
1856 swap call with two assignments.
1857 * include/bits/forward_list.tcc
1858 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
1859 move elements when allocators are not equal.
1860 * include/debug/forward_list (forward_list(const allocator_type&)):
1861 Split default constructor out to separate function.
1862 * include/profile/forward_list (forward_list(const _Alloc&)):
1865 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
1866 Remove unnecessary uses of operator& and static_cast.
1867 * include/bits/forward_list.tcc
1868 (forward_list::operator=(const forward_list&)): Use __addressof
1869 instead of operator&.
1870 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
1871 Remove invalid static_casts.
1872 * include/debug/forward_list: Use __addressof instead of operator&.
1873 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
1875 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
1876 __is_nothrow_swappable.
1878 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
1880 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
1882 * include/bits/list.tcc (list::operator=(const list&), list::merge):
1883 Use __addressof instead of operator&.
1884 (list::sort): Use array-to-pointer decay instead of operator&.
1885 * include/bits/stl_list.h (list::splice): Use __addressof instead of
1887 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
1889 * include/debug/functions.h (__check_singular): Likewise.
1890 * include/debug/list (list::splice, list::merge): Likewise.
1891 * testsuite/23_containers/list/modifiers/addressof.cc: New.
1894 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
1897 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
1899 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
1902 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
1905 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1909 * config/cpu/alpha/atomic_word.h: Remove.
1910 * config/cpu/ia64/atomic_word.h: Remove.
1911 * config/cpu/powerpc/atomic_word.h: Remove.
1912 * config/os/aix/atomic_word.h: Remove.
1913 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
1914 Use generic definition.
1916 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1920 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
1921 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
1922 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
1923 * include/ext/atomicity.h: Likewise.
1924 * include/tr1/shared_ptr.h: Likewise.
1925 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
1927 (__set_and_release): Likewise.
1928 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
1930 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
1931 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
1934 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
1936 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
1937 debug and profile modes.
1938 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
1939 for swap in C++11 and later.
1941 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
1944 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
1947 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
1950 * testsuite/22_locale/conversions/string/66441.cc: New.
1951 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
1952 in the output string for BOM and complete result.
1955 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
1956 for single UTF-16 units.
1957 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
1959 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
1961 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
1962 outer scope and rename to ...
1963 (std::__hash_is_transparent<>): ... this.
1964 * include/debug/stl_map.h (map::find<>,
1965 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
1966 member function templates to perform heterogeneous lookup.
1967 * include/debug/stl_multimap.h (multimap::find<>,
1968 multimap::lower_bound<>, multimap::upper_bound<>,
1969 multimap::equal_range<>): Likewise.
1970 * include/debug/stl_multiset.h (multiset::find<>,
1971 multiset::lower_bound<>, multiset::upper_bound<>,
1972 multiset::equal_range<>): Likewise.
1973 * include/debug/stl_set.h (set::find<>,
1974 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
1975 * include/profile/stl_map.h (map::find<>, map::count<>,
1976 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
1977 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
1978 multimap::lower_bound<>, multimap::upper_bound<>,
1979 multimap::equal_range<>): Likewise.
1980 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
1981 multiset::lower_bound<>, multiset::upper_bound<>,
1982 multiset::equal_range<>): Likewise.
1983 * include/profile/stl_set.h (set::find<>, set::count<>,
1984 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
1985 * testsuite/23_containers/map/operations/1.cc: Check const variants.
1986 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
1987 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
1988 * testsuite/23_containers/set/operations/1.cc: Likewise.
1990 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
1992 * doc/xml/manual/status_cxx2017.xml: Update status tables.
1993 * doc/html/manual/*: Regenerate.
1994 * include/std/type_traits (bool_constant): Define.
1995 * testsuite/20_util/bool_constant/requirements.cc: New.
1996 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
1997 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
1999 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2002 * include/std/shared_mutex (__shared_mutex_pthread,
2003 __shared_mutex_cv): New helper types implementing the shared mutex
2005 (shared_mutex): New type for C++17.
2006 (shared_timed_mutex): Derive from one of the new helper types.
2007 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
2008 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
2009 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
2010 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
2012 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
2013 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
2015 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
2017 Add __is_nothrow_swappable and take it into use.
2018 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
2019 * include/bits/move.h (swap): Add constraints in C++11 and later.
2020 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
2021 for the free swap function for pair.
2022 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
2023 for the free swap functions for queue and priority_queue.
2024 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
2025 for the free swap function for stack.
2026 * include/debug/array (swap): Use __is_nothrow_swappable
2027 for the free swap function for array.
2028 * include/profile/array (swap): Likewise.
2029 * include/std/array (swap): Likewise.
2030 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
2031 * include/std/type_traits (__is_swappable_impl::__is_swappable,
2032 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
2033 * testsuite/20_util/is_nothrow_swappable/requirements/
2034 explicit_instantiation.cc: New.
2035 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
2037 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
2039 2015-06-03 François Dumont fdumont@gcc.gnu.org>
2041 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
2043 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
2045 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
2046 * doc/html/manual/*: Regenerate.
2048 * doc/html/ext/lwg-active.html: Update to R93.
2049 * doc/html/ext/lwg-closed.html: Likewise.
2050 * doc/html/ext/lwg-defects.html: Likewise.
2051 * doc/html/manual/*: Regenerate.
2052 * doc/xml/manual/intro.xml: Document status of several DRs.
2054 2015-06-02 Renlin Li <renlin.li@arm.com>
2056 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
2058 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
2060 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
2061 environment variable.
2063 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
2066 * include/bits/stl_algobase.h (__fill_a): Check length before calling
2069 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
2071 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
2072 instead of checking for null pointers.
2073 (__lexicographical_compare<true>::__lc): Only check shorter length.
2075 2015-05-29 François Dumont fdumont@gcc.gnu.org>
2077 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
2078 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
2079 * include/debug/assertions.h: ...here, new.
2080 * include/debug/formatter.h
2081 (_Error_formatter::_Is_iterator_value_type): New.
2082 (_Error_formatter::_Is_instance): New.
2083 (_Error_formatter::_Parameter): Make public and not friend anymore.
2084 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
2085 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
2087 (_Error_formatter::_Parameter::_Type): New.
2088 (_Error_formatter::_Parameter::_Instance): New, inherit from
2090 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
2091 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
2092 overloads take iterator through a const reference.
2093 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
2095 (_Parameter(const _Type&, const char*, _Is_instance)): New.
2096 (_Error_formatter::_M_print_type): Delete.
2097 (_Error_formatter::_M_iterator_value_type): New.
2098 (_Error_formatter::_M_instance): New.
2099 * include/Makefile.am: Add new above debug file.
2100 * include/Makefile.in: Regenerate.
2101 * include/debug/functions.h
2102 (__check_dereferenceable(const _Safe_iterator<>&),
2103 __valid_range(const _Safe_iterator<>&),
2104 __is_safe_random_iterator<_Safe_iterator<>>): Move...
2105 * include/debug/safe_iterator.h: ... here.
2106 Replace debug.h include with assertions.h.
2107 (__check_singular_aux): Move...
2108 * include/debug/safe_base.h: ... here.
2109 * include/debug/functions.h
2110 (__check_dereferenceable(const _Safe_local_iterator<>&),
2111 __valid_range(const _Safe_local_iterator<>&): Move...
2112 * include/debug/safe_local_iterator.h: ...here.
2113 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
2114 Remove _Safe_iterator declaration.
2115 * include/debug/safe_unordered_container.h: Replace debug.h with
2117 * include/debug/array: Replace safe_sequence.h include with
2118 formatter.h and macros.h.
2119 * include/debug/deque: Include functions.tcc.
2120 * include/debug/forward_list: Likewise.
2121 * include/debug/list: Likewise.
2122 * include/debug/string: Likewise.
2123 * include/debug/vector: Likewise.
2124 * include/bits/unique_ptr.h: Replace debug.h include with new
2126 * include/bits/stl_iterator_base_funcs.h: Likewise.
2127 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
2128 Adjust dg-error line number.
2129 * testsuite/23_containers/array/tuple_interface/
2130 tuple_element_debug_neg.cc: Likewise.
2131 * src/c++11/debug.cc: Adapt.
2133 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
2135 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
2136 * doc/html/manual/*: Regenerate.
2138 * include/std/future (__async_result_of): New alias template.
2139 (async): Use __async_result_of to pass decayed types to result_of.
2140 * testsuite/30_threads/async/lwg2021.cc: New.
2141 * doc/xml/manual/intro.xml: Document LWG 2021 status.
2144 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
2145 memcmp with null pointers.
2146 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
2149 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
2152 * include/profile/array (array::data): Use _S_ptr.
2153 * include/debug/array (array::data): Likewise.
2156 * include/std/array (__array_traits::_S_ptr): New function.
2157 (array::data): Use _S_ptr to avoid creating invalid reference.
2158 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
2159 dg-error line numbers.
2160 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2163 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
2165 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
2166 instead of downcasting.
2167 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
2168 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
2169 (_Rb_tree::_S_iter): Remove.
2170 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
2171 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
2172 instead of _S_lower_bound_tr
2173 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
2174 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
2175 instead of calling _S_lower_bound_tr.
2176 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
2177 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
2178 instead of calling _S_upper_bound_tr.
2179 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
2180 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
2181 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
2182 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
2183 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
2184 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
2185 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
2186 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
2189 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
2190 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
2192 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
2193 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
2194 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
2195 alignment of _Tp as a member subobject, not as a complete object.
2196 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
2197 _Link_type manually as it might not be in the debug info.
2199 2015-05-26 Doug Evans <dje@google.com>
2201 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
2203 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
2206 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
2208 * include/bits/locale_conv.h: Fix copyright years.
2209 * include/bits/quoted_string.h: Likewise.
2210 * src/filesystem/Makefile.am: Likewise.
2211 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
2212 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
2214 * testsuite/22_locale/conversions/string/1.cc: Likewise.
2215 * testsuite/22_locale/conversions/string/2.cc: Likewise.
2216 * testsuite/22_locale/conversions/string/3.cc: Likewise.
2217 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
2219 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
2221 * testsuite/util/testsuite_fs.h: Likewise.
2223 2015-05-23 François Dumont fdumont@gcc.gnu.org>
2226 * include/debug/functions.h (__check_sorted_aux): Cast expression to
2229 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
2232 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
2233 Don't use isync. Use lwsync if available.
2234 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
2235 powerpc cpu definition.
2237 2015-05-21 Jason Merrill <jason@redhat.com>
2239 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
2240 * libsupc++/del_op.cc: Likewise.
2242 2015-05-20 François Dumont fdumont@gcc.gnu.org>
2244 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
2246 (_Error_formatter::_M_print_type): New.
2247 * src/c++11/debug.cc
2248 (_Error_formatter::_Parameter::_M_print_field): Use latter.
2249 (_Error_formatter::_M_print_type): Implement latter using
2250 __cxaabiv1::__cxa_demangle to print demangled type name.
2252 * include/bits/cpp_type_traits.h
2253 (std::move_iterator): Delete declaration.
2254 (std::__is_move_iterator<move_iterator>): Move partial specialization...
2255 * include/bits/stl_iterator.h: ... here.
2256 (std::__miter_base): Overloads for std::reverse_iterator and
2258 * include/bits/stl_algobase.h (std::__miter_base): Provide default
2261 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
2263 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
2266 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
2267 overload for pointers.
2268 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
2269 808590.cc: Add -std=gnu++03 switch.
2270 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
2271 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
2272 * testsuite/23_containers/vector/modifiers/push_back/
2273 strong_guarantee.cc: New.
2275 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
2277 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
2278 (operator==(const list&, const list&)): If size() is O(1) compare
2279 sizes before comparing each element.
2280 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
2281 (list::resize): Use _M_resize_pos.
2283 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
2285 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
2287 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
2288 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
2289 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
2291 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2293 * configure.host: Define cpu_defines_dir for ARM.
2294 * config/cpu/arm/cpu_defines.h: New file.
2296 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
2298 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
2299 missing constructors.
2300 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
2302 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
2303 missing constructors.
2304 * include/debug/unordered_set (unordered_set, unordered_multiset):
2306 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
2307 missing constructors.
2308 * include/profile/unordered_set (unordered_set, unordered_multiset):
2311 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
2313 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
2314 use throughout the file.
2315 (make_file_type): New function.
2316 (file_size(const path&, error_code&)): Report an error for anything
2317 that isn't a regular file.
2318 (status(const path&), symlink_status(const path&)): Do not throw for
2319 file_type::not_found.
2320 (temp_directory_path()): Check additional environment variables.
2321 * testsuite/experimental/filesystem/operations/exists.cc: New.
2322 * testsuite/experimental/filesystem/operations/file_size.cc: New.
2323 * testsuite/experimental/filesystem/operations/status.cc: New.
2324 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
2327 2015-05-14 Nathan Myers <ncm@cantrip.org>
2328 Jonathan Wakely <jwakely@redhat.com>
2331 * include/std/unordered_map (unordered_map, unordered_multimap): Add
2332 missing constructors.
2333 * include/std/unordered_set (unordered_set, unordered_multiset):
2335 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
2336 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
2337 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
2338 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
2340 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
2343 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
2345 * config.h.in: Regenerate.
2346 * configure: Regenerate.
2347 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
2348 not return after copying contents. Use fchmod, fchmodat, and sendfile
2350 (current_path, permissions, space): Use errno not return value.
2353 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
2355 * config.h.in: Regenerate.
2356 * configure: Regenerate.
2357 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
2359 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
2361 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
2362 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
2363 * config.h.in: Regenerate.
2364 * configure: Likewise.
2365 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
2366 __USING_SJLJ_EXCEPTIONS__.
2367 * libsupc++/eh_throw.cc: Likewise.
2368 * libsupc++/eh_ptr.cc: Likewise.
2369 * doc/html/manual/appendix_porting.html: Remove
2370 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
2371 * doc/xml/manual/build_hacking.xml: Likewise.
2372 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
2373 * doc/xml/manual/configure.xml: Likewise.
2375 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
2377 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
2378 for nullptr (LWG 2415).
2379 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
2380 construction from empty unique_ptr.
2381 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
2382 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
2384 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
2386 * testsuite/20_util/raw_storage_iterator/base.cc: New.
2388 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
2389 Remove explicit (LWG 2407).
2391 * include/bits/basic_string.h (basic_string::basic_string()): Make
2392 noexcept conditional on allocator (LWG 2455).
2394 * include/std/complex (polar): Check for negative rho (LWG 2459).
2396 * include/experimental/tuple (apply): Handle pointers to member (LWG
2398 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
2399 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
2400 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
2402 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
2404 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
2405 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
2406 * testsuite/23_containers/forward_list/allocator/minimal.cc:
2408 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
2409 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
2410 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
2411 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
2412 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
2414 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
2416 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
2418 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
2420 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
2422 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
2423 * configure: Regenerate.
2425 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2427 * Makefile.in: Regenerated with automake-1.11.6.
2428 * aclocal.m4: Likewise.
2429 * configure: Likewise.
2430 * doc/Makefile.in: Likewise.
2431 * include/Makefile.in: Likewise.
2432 * libsupc++/Makefile.in: Likewise.
2433 * po/Makefile.in: Likewise.
2434 * python/Makefile.in: Likewise.
2435 * src/Makefile.in: Likewise.
2436 * src/c++11/Makefile.in: Likewise.
2437 * src/c++98/Makefile.in: Likewise.
2438 * src/filesystem/Makefile.in: Likewise.
2439 * testsuite/Makefile.in: Likewise.
2441 2015-05-09 Jason Merrill <jason@redhat.com>
2443 * testsuite/20_util/headers/functional/synopsis.cc: Add
2444 _GLIBCXX14_CONSTEXPR.
2445 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
2447 2015-05-08 Jason Merrill <jason@redhat.com>
2449 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
2450 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
2451 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
2452 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
2453 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
2454 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
2455 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
2456 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
2457 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
2458 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
2459 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
2461 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
2462 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2463 Adjust expected errors.
2464 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
2466 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
2468 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2470 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2472 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2474 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
2476 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2478 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2480 * testsuite/23_containers/vector/requirements/dr438
2481 /constructor_1_neg.cc: Likewise.
2482 * testsuite/23_containers/vector/requirements/dr438
2483 /constructor_2_neg.cc: Likewise.
2484 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2486 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
2487 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
2488 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
2489 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
2490 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
2491 Add -Wno-deprecated.
2492 * testsuite/ext/array_allocator/check_deallocate_null.cc:
2493 Add -Wno-deprecated.
2494 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
2495 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
2496 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
2497 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
2499 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
2501 * testsuite/tr1/2_general_utilities/shared_ptr/assign
2502 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
2503 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
2504 Add -std=c++98 -fno-show-column.
2505 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
2507 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
2509 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
2510 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
2512 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
2513 * src/c++98/Makefile.in: Regenerate.
2514 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
2515 * src/Makefile.in: Regenerate.
2517 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
2520 * include/std/future (async): Change default policy to launch::async.
2522 * include/experimental/any (any::_Storage): Fix alignment of buffer.
2523 (any::_Internal): Check alignment of type.
2524 * testsuite/experimental/any/cons/aligned.cc: New.
2525 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
2527 * include/experimental/iterator (ostream_joiner): Simplify by using
2528 the injected-class-name and the ostream_type typedef.
2530 * include/experimental/iterator: New. Define ostream_joiner.
2531 * include/Makefile.am: Add new header.
2532 * include/Makefile.in: Regenerate.
2533 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
2534 * testsuite/experimental/iterator/ostream_joiner.cc: New.
2535 * testsuite/experimental/iterator/requirements.cc: New.
2536 * doc/xml/manual/status_cxx2017.xml: Update status.
2537 * doc/html/manual/status.html: Regenerate.
2539 * include/experimental/numeric: New. Define gcd and lcm.
2540 * include/Makefile.am: Add new header.
2541 * include/Makefile.in: Regenerate.
2542 * testsuite/experimental/numeric/gcd.cc: New.
2543 * testsuite/experimental/numeric/lcm.cc: New.
2544 * doc/xml/manual/status_cxx2017.xml: Update status.
2545 * doc/html/manual/status.html: Regenerate.
2547 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
2549 Revert addition of feature macros from other headers per latest SD-6.
2550 * include/experimental/deque: Remove feature-test macro.
2551 * include/experimental/forward_list: Ditto.
2552 * include/experimental/list: Ditto.
2553 * include/experimental/map: Ditto.
2554 * include/experimental/set: Ditto.
2555 * include/experimental/string: Ditto.
2556 * include/experimental/unordered_map: Ditto.
2557 * include/experimental/unordered_set: Ditto.
2559 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
2561 * include/experimental/any (any::_Storage): Make non-copyable.
2562 (any::any): Do not copy _Storage object.
2563 (any::operator=): Implement more efficiently than swapping.
2564 (any::swap): Use new _Op_xfer operation.
2565 (any::_Op::_Op_xfer): New enumerator.
2566 (_Manager_internal::_S_alloc): Remove unused function.
2567 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
2568 parameter instead of returning a _Storage object.
2569 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
2570 _Op_xfer operation for moving and swapping.
2571 * testsuite/experimental/any/cons/nontrivial.cc: New.
2572 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
2574 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
2576 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
2580 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
2581 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
2582 and fix tests for forward_as_tuple and tie.
2584 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
2585 Set timespec members explicitly instead of with a braced-init-list.
2586 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
2588 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
2590 * include/experimental/deque: Add feature-test macro.
2591 * include/experimental/forward_list: Ditto.
2592 * include/experimental/list: Ditto.
2593 * include/experimental/map: Ditto.
2594 * include/experimental/set: Ditto.
2595 * include/experimental/string: Ditto.
2596 * include/experimental/unordered_map: Ditto.
2597 * include/experimental/unordered_set: Ditto.
2599 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
2601 * include/experimental/memory: Correct feature-test macro.
2603 * include/experimental/memory: Add feature-test macro.
2604 * include/experimental/vector: Likewise.
2605 * doc/xml/manual/status_cxx2017.xml: Update status.
2606 * doc/html/manual/status.html: Regenerate.
2608 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
2610 Implement observer_ptr.
2611 * include/Makefile.am: Add new header.
2612 * include/Makefile.in: Regenerate.
2613 * include/experimental/memory: New.
2614 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
2615 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
2616 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
2617 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
2618 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
2619 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
2620 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
2621 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
2623 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
2625 * src/filesystem/path.cc (path::compare): Do not copy strings.
2627 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
2629 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
2630 * configure: Regenerate.
2631 * config.h.in: Regenerate.
2632 * configure.ac: Check for utime.h
2633 * include/experimental/fs_path.h (path::string<>)
2634 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
2635 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
2636 closedir, dirent, readdir_r): Replace dummy functions with #error.
2637 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
2638 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
2639 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
2640 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
2641 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
2644 * include/experimental/fs_path.h (path::_List): Use vector instead of
2646 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
2647 * src/filesystem/path.cc: Use std::prev instead of decrementing
2648 rvalues. Fix whitespace.
2649 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
2650 Do not decrement iterators before begin.
2652 * include/experimental/fs_dir.h: Fix use of non-reserved names.
2653 * include/experimental/fs_ops.h: Likewise.
2654 * include/experimental/fs_path.h: Likewise.
2655 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
2656 C++11 when checking for support.
2658 * include/bits/locale_classes.h (locale::facet): Delete copy
2659 operations in C++11 mode.
2661 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
2663 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
2664 * configure: Regenerate.
2666 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2668 Inline one-line erasure dispatch functions.
2669 * include/experimental/forward_list (erase_if(), erase()): Inline.
2670 * include/experimental/list (erase_if(), erase()): Inline.
2671 * include/experimental/map (erase_if(*)): Inline.
2672 * include/experimental/set (erase_if(*)): Inline.
2673 * include/experimental/string (erase_if(), erase()): Inline.
2674 * include/experimental/unordered_map (erase_if(*)): Inline.
2675 * include/experimental/unordered_set (erase_if(*)): Inline.
2677 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
2679 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
2680 * doc/xml/manual/status_cxx2011.xml: Update status tables.
2681 * doc/xml/manual/status_cxx2014.xml: Likewise.
2682 * doc/xml/manual/status_cxx2017.xml: New.
2683 * doc/xml/manual/using.xml: Fix typo.
2684 * doc/html/*: Regenerate.
2686 * include/std/memory (pointer_safety, declare_reachable,
2687 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
2688 get_pointer_safety): Define.
2689 * testsuite/20_util/pointer_safety/1.cc: New.
2691 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
2693 Implement N4100 File System TS
2694 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
2695 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
2696 * config.h.in: Regenerate.
2697 * configure: Regenerate.
2698 * configure.ac: Enable filesystem TS and check its dependencies.
2699 * include/Makefile.am: Add new headers.
2700 * include/Makefile.in: Regenerate.
2701 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
2702 __str_codecvt_out): Move code conversion logic from wstring_convert
2703 into new global functions.
2704 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
2706 (wstring_convert::_M_conv): Remove.
2707 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
2708 * include/experimental/filesystem: New.
2709 * include/experimental/fs_dir.h: New.
2710 * include/experimental/fs_fwd.h: New.
2711 * include/experimental/fs_ops.h: New.
2712 * include/experimental/fs_path.h: New.
2713 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
2714 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
2715 * src/Makefile.am (SUBDIRS): Add filesystem.
2716 * src/Makefile.in: Regenerate.
2717 * src/filesystem/Makefile.am: New.
2718 * src/filesystem/Makefile.in: New.
2719 * src/filesystem/dir.cc: New.
2720 * src/filesystem/ops.cc: New.
2721 * src/filesystem/path.cc: New.
2722 * testsuite/experimental/filesystem/operations/absolute.cc: New.
2723 * testsuite/experimental/filesystem/operations/copy.cc: New.
2724 * testsuite/experimental/filesystem/operations/current_path.cc: New.
2725 * testsuite/experimental/filesystem/path/append/path.cc: New.
2726 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
2727 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
2728 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
2729 * testsuite/experimental/filesystem/path/compare/path.cc: New.
2730 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
2731 * testsuite/experimental/filesystem/path/concat/path.cc: New.
2732 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
2733 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
2734 * testsuite/experimental/filesystem/path/construct/default.cc: New.
2735 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
2736 * testsuite/experimental/filesystem/path/construct/range.cc: New.
2737 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
2738 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
2739 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
2741 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
2743 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
2745 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
2747 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
2749 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
2750 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
2752 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
2753 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
2754 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
2756 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
2758 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
2760 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
2762 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
2763 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
2764 * testsuite/experimental/filesystem/path/query/empty.cc: New.
2765 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
2766 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
2767 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
2769 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
2771 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
2773 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
2775 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
2777 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
2778 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
2779 * testsuite/util/testsuite_fs.h: New.
2781 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
2783 Add fundamentals TR container erasure.
2784 * include/Makefile.am: Add new headers.
2785 * include/Makefile.in: Add new headers.
2786 * include/experimental/array: New.
2787 * include/experimental/deque: New.
2788 * include/experimental/erase_if.tcc: New.
2789 * include/experimental/forward_list: New.
2790 * include/experimental/list: New.
2791 * include/experimental/map: New.
2792 * include/experimental/set: New.
2793 * include/experimental/string: New.
2794 * include/experimental/unordered_map: New.
2795 * include/experimental/unordered_set: New.
2796 * include/experimental/vector: New.
2797 * testsuite/experimental/deque/erasure.cc: New.
2798 * testsuite/experimental/forward_list/erasure.cc: New.
2799 * testsuite/experimental/list/erasure.cc: New.
2800 * testsuite/experimental/map/erasure.cc: New.
2801 * testsuite/experimental/set/erasure.cc: New.
2802 * testsuite/experimental/string/erasure.cc: New.
2803 * testsuite/experimental/unordered_map/erasure.cc: New.
2804 * testsuite/experimental/unordered_set/erasure.cc: New.
2805 * testsuite/experimental/vector/erasure.cc: New.
2807 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
2809 * include/bits/cpp_type_traits.h
2810 (__gnu_cxx::__is_normal_iterator): Delete.
2811 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
2812 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
2813 (std::__niter_base): Overloads for std::reverse_iterator,
2814 __gnu_cxx::__normal_iterator and std::move_iterator.
2816 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
2818 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
2820 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
2821 Remove usage of latter and compute size of the prime numbers array
2824 2015-04-29 Doug Evans <dje@google.com>
2827 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
2828 Replace all lookups of "bool" with this.
2829 (get_std_size_type): New function. Replace all lookups of std::size_t
2831 (*Worker): New method get_result_type.
2832 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
2833 (ListWorkerBase.__init__): New arg val_type. All callers updated.
2834 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
2835 Delete setting of name, enabled.
2836 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
2837 updated. Delete setting of name.
2838 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
2839 libstdc++ xmethod matchers.
2840 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
2841 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
2842 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
2843 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
2844 * testsuite/libstdc++-xmethods/list.cc: Ditto.
2845 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
2846 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
2848 2015-04-29 Doug Evans <dje@google.com>
2850 Use consistent naming for value type attributes.
2851 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
2853 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
2854 (ArrayFrontWorker, ArrayBackWorker): Ditto.
2855 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
2856 (DequeWorkerBase): Rename elemtype to val_type.
2857 (ForwardListWorkerBase): Rename _elem_type to _val_type.
2858 (ForwardListFrontWorker): Ditto. And rename elem_address to
2860 (ForwardListMethodsMatcher): Rename elem_type to val_type.
2861 (VectorWorkerBase): Rename _elemtype to _val_type.
2863 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
2866 * include/std/functional (__check_func_return_type): Use is_same to
2867 avoid using _is_convertible on incomplete types.
2868 * testsuite/20_util/function/65760.cc: New.
2871 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
2873 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
2874 time_get::_M_extract_num, time_get::_M_extract_name,
2875 time_get::_M_extract_wday_or_month): Likewise.
2876 * include/bits/stl_algo.h (__includes, __replace_copy_if,
2877 __is_sorted_until, __is_permutation, transform): Likewise.
2878 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
2879 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
2880 * include/bits/stl_numeric.h (inner_product): Likewise.
2881 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
2882 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
2883 input_iterator_wrapper): Declare unusable comma operator.
2884 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
2885 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
2888 2015-04-28 Doug Evans <dje@google.com>
2890 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
2893 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
2895 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
2898 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
2900 * Makefile.am (SUBDIRS): Move python to hosted_source.
2901 * Makefile.in: Regenerate.
2902 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
2903 * configure: Regenerate.
2905 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
2908 * include/std/limits (numeric_limits): Add missing unsigned.
2910 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
2912 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
2914 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
2917 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
2918 Handle enumeration types larger than sizeof(long).
2919 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
2921 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
2922 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2924 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
2925 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
2927 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
2930 * include/bits/forward_list.h (forward_list::splice_after): Add
2932 * include/bits/forward_list.tcc (forward_list::splice_after):
2936 * include/bits/random.h (seed_seq) Define copy constructor and copy
2937 assignment as deleted.
2938 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
2940 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
2941 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
2942 Use -std=gnu++1z. Check feature-test macro.
2944 * include/std/type_traits (void_t): Add.
2945 * testsuite/20_util/void_t/1.cc: New.
2947 2015-04-28 Tim Shen <timshen@google.com>
2949 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
2950 * include/bits/regex_automaton.tcc: Throw exception when parsing
2951 back-reference with flag __polynomial.
2952 * include/bits/regex_constants.h: Add extension flag
2953 syntax_option_type __polynomial.
2954 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
2955 Alternative operation will be fixed in the coming refactoring.
2956 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
2957 loose match_search_debug to use DFS only.
2959 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
2962 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
2963 Make the generated test program fail gracefully if the target
2964 doesn't support passing command-line arguments.
2966 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
2967 Jonathan Wakely <jwakely@redhat.com>
2969 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
2970 Return false or zero if the library is built without exceptions.
2971 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
2972 the library is built without exceptions.
2974 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
2976 * config/abi/pre/gnu.ver: Fix comment.
2978 Add support for std::uncaught_exceptions.
2979 * acinclude.m4: Bump libtool_VERSION.
2980 * config/abi/pre/gnu.ver: Export the new symbol.
2981 * configure: Regenerate.
2982 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
2983 * libsupc++/exception (uncaught_exceptions): New.
2984 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
2985 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
2987 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
2988 Michael Hanselmann <public@hansmi.ch>
2991 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
2992 uncaught exceptions.
2993 * testsuite/18_support/exception_ptr/62258.cc: New.
2995 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
2997 * doc/xml/manual/extensions.xml: Add cross-reference.
2998 * doc/html/manual/ext_compile_checks.html: Regenerate.
3000 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3002 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
3003 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
3005 2015-04-22 Renlin Li <renlin.li@arm.com>
3007 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
3008 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
3009 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
3010 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
3011 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
3013 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
3015 * doc/xml/manual/configure.xml: Update descriptions of options
3016 affecting dual ABI and add cross-references.
3017 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
3018 * doc/xml/manual/using.xml: Document ABI transition.
3019 * doc/html/*: Regenerate.
3021 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
3022 * doc/xml/manual/using.xml: Document newer -std options. Use better
3023 examples of nested namespaces.
3025 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
3027 * doc/xml/manual/concurrency_extensions.xml: Update documentation
3029 * doc/xml/manual/using.xml: Likewise. Improve markup.
3030 * doc/html/*: Regenerate.
3032 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3034 * scripts/extract_symvers.pl: Ignore elfdump error output.
3036 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
3039 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
3040 _List_const_iterator): Declare.
3041 (__distance): Declare new overloads for _List_iterator and
3042 _List_const_iterator.
3043 * include/bits/stl_list.h (__distance): New overloads for
3044 _List_iterator and _List_const_iterator.
3045 * testsuite/23_containers/list/61347.cc: New testcase.
3047 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
3049 * doc/xml/manual/evolution.xml: Fix typos.
3050 * doc/html/manual/api.html: Regenerate.
3052 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
3054 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
3055 alignment is larger-equal, not equal, to default alignment.
3057 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
3060 * config/abi/pre/gnu.ver: Export base object constructors for
3062 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3063 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3064 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
3065 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3066 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3067 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3068 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
3069 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3070 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
3071 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3072 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3073 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3074 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3075 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3076 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3077 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3078 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
3079 * testsuite/27_io/basic_fstream/cons/base.cc: New.
3081 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
3083 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
3084 * doc/html/*: Regenerate.
3086 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
3088 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3090 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
3092 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
3094 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3096 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
3098 * doc/xml/manual/test.xml: Improve documentation on running a subset
3100 * doc/html/manual/test.html: Regenerate.
3102 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3104 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
3105 for GCC 5.1 release.
3106 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
3109 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
3111 * include/std/shared_mutex (shared_timed_mutex): Add comments to
3112 explain the logic in the non-pthread_rwlock_t version.
3113 (_Mutex): Remove redundant type.
3114 (_M_n_readers): Rename to _S_max_readers.
3115 (_M_write_entered, _M_readers): New convenience functions.
3116 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
3117 functions. Use predicates with condition variables. Simplify bitwise
3119 (try_lock_for, try_shared_lock_for): Convert duration to time_point
3120 and call try_lock_until or try_shared_lock_until respectively.
3121 (try_lock_until, try_shared_lock_until): Wait on the condition
3122 variables until the specified time passes.
3123 (unlock): Add Debug Mode assertion.
3124 (unlock_shared): Add Debug Mode assertion.
3125 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
3127 * include/std/shared_mutex (shared_timed_mutex): Only use
3128 pthread_rwlock_t when the POSIX Timeouts option is supported.
3129 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
3130 dg-require-gthreads-timed.
3131 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
3132 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
3133 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
3135 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
3137 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
3139 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
3140 Richard Henderson <rth@redhat.com>
3143 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
3145 * include/std/atomic (atomic): For types with a power of two size set
3146 alignment to at least the size.
3147 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
3148 * testsuite/29_atomics/atomic/65147.cc: New.
3149 * testsuite/29_atomics/atomic_integral/65147.cc: New.
3151 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3153 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3154 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3155 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3157 2015-04-07 Jakub Jelinek <jakub@redhat.com>
3159 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3160 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3161 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3162 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3163 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3164 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3165 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3166 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3168 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
3171 * config/abi/pre/gnu.ver: Export operator+ for new strings.
3172 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
3173 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
3175 2015-03-28 Tim Shen <timshen@google.com>
3178 * include/bits/regex_constants.h: Use constexpr variables for flags.
3179 * testsuite/28_regex/constants/constexpr.cc: New testcase.
3181 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
3184 * include/std/chrono: Add using-directive for literals to std::chrono.
3185 * testsuite/20_util/duration/literals/65499.cc: New.
3187 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
3191 * include/std/thread (this_thread::sleep_for): Check for negative
3193 (this_thread::sleep_until): Check for times in the past.
3194 * testsuite/30_threads/this_thread/58038.cc: New.
3195 * testsuite/30_threads/this_thread/60421.cc: New.
3197 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
3201 * include/std/atomic (atomic<T>): Increase alignment for types with
3202 the same size as one of the integral types.
3203 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
3204 * testsuite/29_atomics/atomic/62259.cc: New.
3206 2015-03-26 Richard Henderson <rth@redhat.com>
3209 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
3210 a fake pointer indicating type alignment.
3211 (__atomic_base<T *>::is_lock_free): Likewise.
3212 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
3214 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
3217 * testsuite/21_strings/basic_string/pthread33394.cc: Use
3218 dg-additional-options.
3220 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
3223 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
3225 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
3227 * testsuite/27_io/rvalue_streams-2.cc: New.
3229 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
3232 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
3234 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
3237 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
3238 * configure: Regenerate.
3239 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
3240 system_category): Use macros for versioned namespace.
3241 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
3243 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
3245 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
3246 test for unused for ARM.
3247 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
3248 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
3250 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
3252 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
3253 * include/ext/codecvt_specializations.h (encoding_state,
3254 encoding_char_traits): Remove abi-tag and use inline namespace.
3255 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
3257 2015-03-19 Jason Merrill <jason@redhat.com>
3259 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
3260 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
3262 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
3265 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
3266 get_catalogs): Add abi-tag.
3267 * include/ext/codecvt_specializations.h (encoding_state,
3268 encoding_char_traits): Likewise.
3269 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
3270 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
3271 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
3272 money_get_shim, money_put_shim, messages_shim): Likewise.
3273 * src/c++11/future.cc (future_error_category::message): Likewise.
3274 * src/c++11/system_error.cc (generic_error_category::message,
3275 system_error_category::message): Likewise.
3276 (__sso_string): Disable -Wabi-tag warnings.
3278 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
3281 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
3282 implementation for old glibc. Fix whitespace.
3284 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
3285 Torvald Riegel <triegel@redhat.com>
3287 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
3288 * config.h.in: Regenerate.
3289 * configure: Regenerate.
3290 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
3291 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
3292 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
3293 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
3296 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
3298 * libsupc++/nested_exception.h: Do not try to derive from final
3300 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
3303 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
3304 unused exception variable.
3305 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
3306 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
3308 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
3310 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
3312 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
3313 * configure: Regenerate.
3315 * include/experimental/system_error: Fix include guard.
3317 2015-03-12 Renlin Li <renlin.li@arm.com>
3319 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
3322 2015-03-10 Tim Shen <timshen@google.com>
3325 * include/bits/regex.h (match_results<>::size,
3326 match_results<>::position, match_results<>::str,
3327 match_results<>::operator[], match_results<>::prefix,
3328 match_results<>::suffix, match_results<>::end,
3329 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
3330 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
3331 global __unmatched_sub. Add unmatched submatch as part of
3333 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
3334 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
3335 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
3338 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
3341 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
3342 for newlib targets. Really fix mixed line-endings this time.
3344 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
3346 * include/std/future (future_error(error_code)): Construct base
3347 class with error_code's message.
3348 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
3351 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
3353 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
3355 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
3356 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
3358 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
3361 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
3362 incomplete multibyte sequences correctly.
3363 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
3364 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
3365 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
3367 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
3368 Define convenience functions.
3369 (read_utf8_code_point): Return relevant constant to distinguish
3370 incomplete characters from invalid sequences.
3371 (read_utf16_code_point): Likewise. Check for invalid sequences.
3372 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
3373 (utf16_out): Check for invalid sequences.
3374 (utf16_span): Fix condition.
3375 (ucs2_out): Use is_high_surrogate.
3376 (ucs2_in): Use incomplete_mb_character constant and fix condition.
3377 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
3378 * testsuite/22_locale/conversions/buffer/1.cc: New.
3379 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
3380 char32_t instead of wchar_t.
3381 * testsuite/22_locale/conversions/string/3.cc: New.
3383 2015-03-03 Iain Sandoe <iain@codesourcery.com>
3386 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
3387 visibility for Darwin.
3388 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
3390 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
3392 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
3395 * include/std/scoped_allocator (__inner_type_impl,
3396 scoped_allocator_adaptor): Add defaulted copy assignment and move
3397 assignment operators.
3398 * testsuite/20_util/scoped_allocator/65279.cc: New.
3400 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
3403 * include/std/stdexcept (__sso_string): Don't use non-static member
3406 2015-02-28 Matthias Klose <doko@ubuntu.com>
3409 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
3411 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
3413 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
3414 * doc/html/manual/status.html: Regenerate.
3416 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
3419 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
3422 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
3424 * doc/html/manual/status.html: Regenerate.
3426 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
3429 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
3430 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
3432 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
3435 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
3436 (test01): Add explanatory comment. Keep only the bd1 sub-test and
3437 split out bd2, bd3, bd4, and bd5 sub-tests into...
3438 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
3439 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
3440 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
3441 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
3442 New separate files with the old parts.
3444 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
3446 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
3448 (utf16_in): Pass mode argument to write_utf16_code_point.
3449 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
3451 * testsuite/22_locale/codecvt/char16_t.cc: New.
3452 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
3454 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
3455 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
3457 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
3458 Jonathan Wakely <jwakely@redhat.com>
3460 * testsuite/22_locale/codecvt/char32_t.cc: New.
3462 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
3465 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
3466 empty string gets null-terminated.
3467 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
3469 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
3471 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
3472 mixed line-endings introduced in last change.
3474 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
3476 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
3477 for __NEWLIB__ macro with a dejagnu set macro.
3478 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
3480 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
3483 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
3484 special case for '\n'.
3485 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
3487 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
3489 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
3491 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
3494 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
3496 * include/c_std/cstdio (gets): Likewise.
3497 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
3498 with attributes used in darwin headers.
3500 2015-01-29 Jakub Jelinek <jakub@redhat.com>
3502 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
3503 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
3504 * configure: Regenerated.
3506 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
3508 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
3509 after vtv_cygmin is set.
3510 * configure: Regenerated.
3512 2015-01-29 Matthias Klose <doko@ubuntu.com>
3514 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
3516 * configure: Regenerate.
3518 2015-01-29 Caroline Tice <cmtice@google.com>
3520 Committing VTV Cywin/Ming patch for Patrick Wollgast
3521 * configure: Regenerate.
3522 * libsupc++/Makefile.in: Regenerate.
3523 * src/Makefile.in: Regenerate.
3525 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
3527 * include/bits/atomic_base.h: Use __always_inline__ instead of
3529 * include/bits/atomic_futex.h: Likewise.
3530 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
3531 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
3532 __packed__ instead of packed.
3533 * include/std/shared_mutex: Use __unused__ instead of unused.
3534 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
3535 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
3536 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
3538 2015-01-28 Caroline Tice <cmtice@google.com>
3540 Committing VTV Cywin/Ming patch for Patrick Wollgast
3541 * acinclude.m4: Define VTV_CYGMIN.
3542 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
3543 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
3544 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
3545 for Cygwin and MinGW.
3546 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
3547 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
3548 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
3550 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
3553 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
3554 * libsupc++/Makefile.in: Regenerate.
3555 * src/c++11/Makefile.in: Regenerate.
3557 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3559 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
3560 check for unsupported.
3561 (v3_target_compile_as_c): Likewise.
3563 2015-01-28 Richard Biener <rguenther@suse.de>
3566 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
3568 (pool::allocate): Adjust allocation size and alignment to
3570 (pool::free): Adjust pointer offsetting.
3572 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
3575 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
3576 shared_timed_mutex::try_lock_until): Only define when POSIX thread
3577 timeouts option is supported.
3578 (shared_timed_mutex::try_shared_lock_for,
3579 shared_timed_mutex::try_shared_lock_until): Likewise.
3581 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
3584 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
3585 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
3586 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
3587 and use cache's _M_grouping field.
3588 (__numpunct_fill_cache): Likewise.
3589 (__moneypunct_fill_cache): Improve comments.
3591 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
3593 * testsuite/23_containers/set/operations/2.cc: Add test for
3594 non-transparent comparison function.
3596 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
3599 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
3600 Remove SH4A inline asm and lock based implementations and use the
3601 defaults from ext/atomicity.h.
3603 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
3605 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
3606 new std::string constructors for byname facets.
3608 2015-01-22 Richard Biener <rguenther@suse.de>
3611 * libsupc++/eh_alloc.cc: Include new.
3612 (bitmask_type): Remove.
3613 (one_buffer): Likewise.
3614 (emergency_buffer): Likewise.
3615 (emergency_used): Likewise.
3616 (dependents_buffer): Likewise.
3617 (dependents_used): Likewise.
3618 (class pool): New custom fixed-size arena, variable size object
3620 (emergency_pool): New global.
3621 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
3622 (__cxxabiv1::__cxa_free_exception): Likewise.
3623 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
3624 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
3626 2015-01-22 Tim Shen <timshen@google.com>
3629 * include/bits/regex.h (basic_regex<>::basic_regex,
3630 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
3632 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
3634 2015-01-22 Tim Shen <timshen@google.com>
3637 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
3638 regex_traits<>::lookup_classname): Correctly narrow input chars.
3639 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
3641 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
3643 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
3645 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
3647 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
3649 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3651 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
3652 * doc/xml/manual/status_cxx2014.xml: Update status.
3653 * doc/html/manual/status.html: Regenerate.
3655 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3658 * include/experimental/optional (bad_optional_access): Add default
3660 * testsuite/experimental/optional/requirements.cc: Test for default
3663 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3665 * include/bits/stl_map.h (map::find<>, map::count<>,
3666 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
3667 member function templates to perform heterogeneous lookup.
3668 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
3669 multimap::lower_bound<>, multimap::upper_bound<>,
3670 multimap::equal_range<>): Likewise.
3671 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
3672 multiset::lower_bound<>, multiset::upper_bound<>,
3673 multiset::equal_range<>): Likewise.
3674 * include/bits/stl_set.h (set::find<>, set::count<>,
3675 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
3676 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
3677 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
3678 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
3679 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
3680 * testsuite/23_containers/map/operations/2.cc: New.
3681 * testsuite/23_containers/multimap/operations/2.cc: New.
3682 * testsuite/23_containers/multiset/operations/2.cc: New.
3683 * testsuite/23_containers/set/operations/2.cc: New.
3685 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3687 * config/abi/pre/gnu.ver: Export new constructors.
3688 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
3689 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
3690 specializations and declare explicit instantiations.
3691 * include/bits/locale_classes.h (locale, collate_byname): Add string
3693 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
3695 * include/bits/locale_facets_nonio.h (time_get_byname,
3696 time_put_byname, moneypunct_byname, messages_byname): Likewise.
3697 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
3698 codecvt_byname<char32_t>): Define explicit instantiations.
3699 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
3700 Instantiate string constructors.
3701 (ctype_byname): Define string constructor.
3702 * testsuite/22_locale/codecvt_byname/1.cc: New.
3703 * testsuite/22_locale/collate_byname/1.cc: New.
3704 * testsuite/22_locale/ctype_byname/2.cc: New.
3705 * testsuite/22_locale/messages_byname/1.cc: New.
3706 * testsuite/22_locale/moneypunct_byname/1.cc: New.
3707 * testsuite/22_locale/numpunct_byname/1.cc: New.
3709 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
3712 * include/std/atomic (atomic_init): Define.
3713 * testsuite/29_atomics/atomic/64658.cc: New.
3715 2015-01-19 Tim Shen <timshen@google.com>
3718 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
3719 regex_traits<>::lookup_classname): Support forward iterators.
3720 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
3721 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
3723 2015-01-19 Tim Shen <timshen@google.com>
3727 * include/bits/regex.h (basic_regex<>::basic_regex,
3728 basic_regex<>::assign, basic_regex<>::imbue,
3729 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
3730 imbuing basic_regex; Make assign() transactional against exception.
3731 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
3732 __compile_nfa SFINAE.
3733 * include/std/regex: Adjust include order to avoid __compile_nfa
3734 forward declaration.
3735 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
3736 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
3738 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
3739 Jonathan Wakely <jwakely@redhat.com>
3741 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
3742 on overloads for arrays.
3743 (cbegin, cend, rbegin, rend, crbegin, crend): New.
3744 * testsuite/24_iterators/range_access_cpp14.cc: New.
3746 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
3749 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
3750 end of the second range.
3751 * testsuite/25_algorithms/is_permutation/64646.cc: New.
3753 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
3755 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
3756 * doc/html/manual/status.html: Regenerate.
3758 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
3760 * include/bits/atomic_futex.h: Use mutex and condition_variable when
3761 atomic int is not lock-free. Make member variables private.
3762 * src/c++11/futex.cc: Likewise.
3764 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
3766 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3769 * include/bits/atomic_futex.h: Use appropriate config macros for
3770 availability of std::mutex, std::condition and std::chrono.
3772 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
3773 Jonathan Wakely <jwakely@redhat.com>
3775 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
3776 * doc/html/*: Regenerate.
3778 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3782 * include/bits/algorithmfwd.h (rotate): Return an iterator.
3783 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
3784 * testsuite/25_algorithms/rotate/dr488.cc: New.
3785 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
3786 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
3788 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
3791 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3794 * include/bits/atomic_base.h: Remove atomic integral typedefs as
3795 synonyms for __atomic_base<int> etc.
3796 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
3797 likewise for all atomic integral types.
3798 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
3799 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
3801 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3804 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
3805 and define one-element specialization.
3806 * testsuite/20_util/tuple/56785.cc: New.
3808 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
3810 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
3811 Remove unused header.
3812 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
3814 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
3817 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
3819 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
3820 * include/std/locale: Include new header.
3821 * include/Makefile.am: Add it.
3822 * include/Makefile.in: Regenerate.
3823 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
3824 * testsuite/22_locale/conversions/string/1.cc: New.
3825 * testsuite/22_locale/conversions/string/2.cc: New.
3826 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
3827 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
3830 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
3832 * config/abi/pre/gnu.ver: Export new symbols.
3833 * include/Makefile.am: Add codecvt.
3834 * include/Makefile.in: Regenerate.
3835 * include/std/codecvt: New header.
3836 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
3837 __codecvt_utf8_utf16_base): Define specializations.
3838 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
3839 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
3840 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
3843 2015-01-16 Torvald Riegel <triegel@redhat.com>
3845 * src/c++11/futex.cc: New file.
3846 * include/bits/atomic_futex.h: New file.
3847 * include/std/future (__future_base::_State_baseV2): Use
3848 atomic_futex_unsigned instead of mutex+condvar.
3849 * src/c++11/futex.cc: Likewise.
3850 * include/Makefile.am: Add atomic_futex.h.
3851 * include/Makefile.in: Likewise.
3852 * src/c++11/Makefile.am: Add futex.cc.
3853 * src/c++11/Makefile.in: Likewise.
3855 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
3857 * acinclude.m4: Fix typo in comment.
3858 * configure: Regenerate.
3859 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
3860 codecvt<char16_t, char, mbstate_t>): Declare specializations.
3861 * include/bits/locale_facets.h: Reserve space for new specializations.
3862 * src/c++11/Makefile.am: Add codecvt.cc.
3863 * src/c++11/Makefile.in: Regenerate.
3864 * src/c++11/codecvt.cc: New.
3865 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
3867 * src/c++98/Makefile.in: Regenerate.
3868 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
3869 * src/c++98/localename.cc: Likewise.
3870 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
3871 * testsuite/22_locale/codecvt/utf8.cc: New.
3872 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
3873 specializations are installed in locale objects.
3875 2015-01-16 Torvald Riegel <triegel@redhat.com>
3877 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
3880 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
3883 * config/abi/pre/gnu.ver: Export fstream functions using new string.
3885 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
3888 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
3892 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
3894 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3896 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
3897 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
3898 Multi Processing Runtime Library".
3900 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
3903 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
3904 is_assignable arguments.
3905 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
3908 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3910 * libsupc++/unwind-cxx.h: Revert previous commit.
3912 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3914 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
3916 2015-01-09 Tim Shen <timshen@google.com>
3919 * include/bits/regex.h (match_results<>::swap): Use std::swap
3921 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
3923 * testsuite/28_regex/match_results/swap.cc: New testcase.
3925 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
3928 * include/std/type_traits (has_trivial_default_constructor,
3929 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
3931 * testsuite/20_util/has_trivial_copy_assign/requirements/
3932 explicit_instantiation.cc: Use -Wno-deprecated.
3933 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
3935 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
3936 * testsuite/20_util/has_trivial_copy_constructor/requirements/
3937 explicit_instantiation.cc: Likewise.
3938 * testsuite/20_util/has_trivial_copy_constructor/requirements/
3939 typedefs.cc: Likewise.
3940 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
3941 * testsuite/20_util/has_trivial_default_constructor/requirements/
3942 explicit_instantiation.c: Likewise.
3943 * testsuite/20_util/has_trivial_default_constructor/requirements/
3944 typedefs.cc: Likewise.
3945 * testsuite/20_util/has_trivial_default_constructor/value.cc:
3947 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
3949 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
3950 * testsuite/util/testsuite_common_types.h: Likewise.
3952 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
3954 * include/bits/hashtable_policy.h: Use __bool_constant.
3956 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
3958 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
3959 * libsupc++/Makefile.in: Regenerate.
3961 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
3963 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
3965 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3967 Update copyright years.
3969 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
3972 * testsuite/18_support/exception_ptr/64241.cc: Use
3973 dg-require-atomic-builtins.
3975 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
3977 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
3980 2015-01-02 Tim Shen <timshen@google.com>
3983 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
3984 iterator, since the original one shouldn't be mutated.
3986 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3989 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
3990 (string::insert): Likewise.
3991 (string::replace): Likewise.
3992 (wstring::erase): Likewise.
3993 (wstring::insert): Likewise.
3994 (wstring::replace): Likewise.
3995 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
3997 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4000 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
4002 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4005 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
4006 Revert removal of dg-require-string-conversions.
4007 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
4009 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
4011 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
4013 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
4015 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
4017 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
4019 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
4021 * testsuite/21_strings/basic_string/numeric_conversions/char/
4022 stoull.cc: Likewise.
4023 * testsuite/21_strings/basic_string/numeric_conversions/char/
4024 to_string.cc: Likewise.
4026 Copyright (C) 2015 Free Software Foundation, Inc.
4028 Copying and distribution of this file, with or without modification,
4029 are permitted in any medium without royalty provided the copyright
4030 notice and this notice are preserved.