1 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
3 * testsuite/17_intro/headers/names.cc: Rename to ...
4 * testsuite/17_intro/names.cc: ... here.
7 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
8 parameters and local variables.
9 * include/bits/ios_base.h (make_error_code, make_error_condition):
11 * include/bits/list.tcc (list::sort): Likewise.
12 * include/bits/mask_array.h (mask_array): Likewise.
13 * include/bits/regex.h (regex_token_iterator): Likewise.
14 * include/bits/slice_array.h (slice_array): Likewise.
15 * include/bits/stl_algo.h (__sample): Likewise.
16 * include/std/memory (undeclare_no_pointers): Likewise.
17 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
19 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
20 * testsuite/17_intro/headers/names.cc: New test.
23 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
24 result_of that loses top-level cv-qualifiers.
25 * testsuite/20_util/bind/79798.cc: New test.
27 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
29 * doc/xml/manual/documentation_hacking.xml: Tweak link to
32 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
34 * include/experimental/iterator: Include <iterator>.
35 * testsuite/experimental/iterator/requirements.cc: Check for contents
38 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
41 * include/std/chrono (duration::operator++()): Add
43 (duration::operator++(int)): Likewise.
44 (duration::operator--()): Likewise.
45 (duration::operator--(int)): Likewise.
46 (duration::operator+=(const duration&)): Likewise.
47 (duration::operator-=(const duration&)): Likewise.
48 (duration::operator*=(const rep&)): Likewise.
49 (duration::operator/=(const rep&)): Likewise.
50 (duration::operator%=(const rep&)): Likewise.
51 (duration::operator%=(const duration&)): Likewise.
52 (time_point::operator+=(const duration&)): Likewise.
53 (time_point::operator-=(const duration&)): Likewise.
54 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
55 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
56 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
58 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
60 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
62 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
64 * doc/xml/manual/io.xml: Update link to groups.google.com.
65 Tweak link description.
67 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
69 * doc/xml/manual/profile_mode.xml: Fix link.
71 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
73 * doc/xml/manual/policy_data_structures.xml: Simplify and
74 standardize references to boost.org.
75 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
76 * doc/xml/manual/shared_ptr.xml: Ditto.
78 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
81 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
82 written to buffer, not length remaining in buffer.
84 2017-02-15 Tim Shen <timshen@google.com>
87 * include/std/variant (operator<(), operator>(), operator<=(),
88 operator>=(), operator==(), operator!=()): Implement P0393R3.
89 * testsuite/20_util/variant/compile.cc: Adjust tests.
90 * testsuite/20_util/variant/run.cc: Adjust tests.
92 2017-02-15 Tim Shen <timshen@google.com>
95 * include/std/variant (visit()): Forward variant types to the return
97 * testsuite/20_util/variant/compile.cc: Add test cases.
99 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
102 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
104 2017-02-13 Jakub Jelinek <jakub@redhat.com>
107 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
108 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
109 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
110 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
111 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
112 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
113 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
114 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
115 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
117 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
120 * include/std/future (__future_base::_Task_state::_M_run)
121 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
122 result_of expressions.
123 * testsuite/30_threads/packaged_task/79486.cc: New.
125 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
128 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
129 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
131 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
133 * include/bits/atomic_base.h: Re-indent.
135 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
137 * doc/xml/manual/profile_mode.xml: Update a paper reference.
139 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
141 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
143 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
145 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
147 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
148 broken links to texts that are no longer online.
149 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
151 * doc/xml/manual/using.xml: Update links to memory model information.
152 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
153 Standard-Library Exception Safety".
154 * doc/html/*: Regenerate.
156 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
158 * doc/xml/manual/profile_mode.xml: Unbreak link to
159 "Optimizing Sorting with Machine Learning Algorithms".
161 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
163 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
165 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
167 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
170 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
172 * doc/html/ext/lwg-active.html: Remove.
173 * doc/html/ext/lwg-closed.html: Ditto.
174 * doc/html/ext/lwg-defects.html: Ditto.
176 * doc/Makefile.am (xml_extradir): Remove.
178 (stamp-html-docbook-lwg): Remove recipe...
179 (stamp-html-docbook-data): ...and its use here.
180 * doc/Makefile.in: Regenerate.
182 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
183 the relationship to the upstream working group.
184 Replace a local link to ../ext/lwg-active.html by the upstream one.
185 Replace all reference to ../ext/lwg-defects.html by a new entity
186 &DR; which refers to the upstream address.
188 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
190 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
192 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
195 * testsuite/20_util/duration/literals/range.cc: Prune extra output
198 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
200 * doc/xml/manual/documentation_hacking.xml: Update URL of the
201 DocBook Element Reference. Use that term as link description
203 epubcheck has moved to GitHub.
204 Remove obsolete link to DocBook Publishing Tools.
206 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
209 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
210 so new ios::failure can be caught even when old ABI is the default.
211 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
212 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
213 exceptions_failbit.cc: Likewise.
214 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
215 exceptions_failbit.cc: Likewise.
216 * testsuite/27_io/basic_istream/extractors_other/char/
217 exceptions_null.cc: Likewise.
218 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
219 exceptions_null.cc: Likewise.
220 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
221 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
222 * testsuite/27_io/basic_ostream/inserters_other/char/
223 exceptions_null.cc: Likewise.
224 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
225 exceptions_null.cc: Likewise.
226 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
229 * src/c++11/Makefile.am: Add new files.
230 * src/c++11/Makefile.in: Regenerate.
231 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
232 (operator<<, operator>>, getline): Move explicit instantiations to ...
233 * src/c++11/cow-string-io-inst.cc: ... new file.
234 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
235 (operator<<, operator>>, getline): Move explicit instantiations to ...
236 * src/c++11/cow-wstring-io-inst.cc: ... new file.
237 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
238 (__throw_future_error, __throw_bad_function_call):
239 (__throw_regex_error): Move functions for C++11 exceptions to the
240 files that define the exception types.
241 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
242 * src/c++11/future.cc (__throw_future_error): Likewise.
243 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
244 * src/c++11/regex.cc (__throw_regex_error): Likewise.
245 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
246 representation directly instead of calling __int_to_char.
247 * src/c++11/sso_string.cc (__sso_string): New file for definition
248 of __sso_string type.
249 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
250 explicit instantiations of narrow string I/O functions.
251 * src/c++11/system_error.cc (__throw_system_error): Move here.
252 (__sso_string): Move to new file.
253 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
254 explicit instantiations of wide string I/O functions.
255 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
256 (operator>>, getline): Remove explicit instantiations from here.
258 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
260 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
262 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
264 * configure.host: Separate Solaris/SPARC and x86 baselines.
265 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
266 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
267 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
268 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
270 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
271 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
272 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
273 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
274 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
275 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
276 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
278 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
279 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
280 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
282 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
283 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
284 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
285 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
286 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
287 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
289 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
292 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
294 (_Iter_comp_to_iter): Likewise.
295 * testsuite/25_algorithms/search/78346.cc: New test.
298 * config/abi/pre/gnu.ver: Remove recently added symbols.
299 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
300 (basic_string::_M_copy_assign): Remove.
301 (basic_string::operator=(const basic_string&)): Don't dispatch to
302 _M_copy_assign. If source object is small just deallocate, otherwise
303 perform new allocation before making any changes.
304 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
305 (basic_string::_M_copy_assign(const basic_string&, true_type)):
307 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
308 Test cases where the allocators are equal or the string is small.
309 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
312 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
314 Implement LWG 2825, LWG 2756 breaks class template argument
315 deduction for optional.
316 * include/std/optional: Add a deduction guide.
317 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
319 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
322 * config/abi/pre/gnu.ver: Add new symbols.
323 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
324 (basic_string::_M_copy_assign): New overloaded functions to perform
326 (basic_string::operator=(const basic_string&)): Dispatch to
328 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
329 (basic_string::_M_copy_assign(const basic_string&, true_type)):
330 Define, performing rollback on exception.
331 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
332 Test exception-safety guarantee.
333 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
335 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
338 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
341 * include/tr1/complex (conj): Remove using-declaration and restore
342 overloads, reverting previous change.
344 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
346 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
347 Mark as unsupported in C++98 mode.
348 * testsuite/23_containers/queue/requirements/constructible.cc:
350 * testsuite/23_containers/stack/requirements/constructible.cc:
352 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
355 * include/bits/c++config (literals::string_view_literals::__7): Add.
356 Only declare versioned namespaces for the relevant C++ dialects.
357 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
358 Add versioning macros.
359 * include/experimental/bits/lfts_config.h:
360 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
361 * include/experimental/string_view (fundamentals_v2::__detail):
362 Add versioning macros.
363 (fundamentals_v2::__detail::__identity): Remove.
364 (fundamentals_v2::__detail::__idt): Use common_type instead of
365 __detail::__identity.
366 * include/std/string_view (__detail::__identity, __detail::__idt):
368 (literals::string_view_literals): Fix nesting of versioning macros.
371 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
372 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
373 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
374 Retrieve original pointer value allocated by malloc.
375 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
376 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
377 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
378 Define, adjusting pointer value allocated by malloc and storing for
379 retrieval by operator delete.
381 2017-01-26 Jakub Jelinek <jakub@redhat.com>
383 * libsupc++/eh_atomics.h: Update copyright years.
384 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
386 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
390 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
391 (proj(T), conj(T)): Change return types per DR 1522.
392 * include/tr1/complex (conj): Remove overloads and use std::conj.
393 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
394 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
395 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
396 real(T) and imag(T). Allow testing for C++11 too.
398 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
401 * include/experimental/string_view (operator==): Check sizes first.
402 * include/std/string_view (operator==): Likewise.
404 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
406 * testsuite/experimental/array/make_array.cc: Restore <functional>
409 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
411 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
413 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
416 * include/experimental/array (__make_array_elem): New class template
417 and partial specialization.
418 (__is_reference_wrapper): Move into __make_array_elem specialization.
419 (make_array): Use __make_array_elem to determine element type and move
420 static assertion into specialization. Qualify std::forward call.
421 (to_array): Add exception specifiation.
422 * testsuite/experimental/array/make_array.cc: Test argument types
423 without a common type.
424 * testsuite/experimental/array/neg.cc: Adjust expected error message.
426 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
428 * doc/xml/manual/debug.xml: code.google.com uses https now.
430 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
432 * doc/xml/manual/test.xml: Fix link into gccint online manual.
434 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
436 Make poisoned hashes SFINAE away the call operator of the hash.
437 * include/bits/functional_hash.h
438 (__poison_hash::__enable_hash_call): New.
439 * include/std/optional (__optional_hash_call_base): New.
440 (hash<optional<_Tp>>): Derive from the new base,
441 move the hash function into that base.
442 * include/std/variant (__variant_hash_call_base_impl): New.
443 (__variant_hash_call_base): Likewise.
444 (hash<variant<_Types...>>): Derive from the new base,
445 move the hash function into that base.
446 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
447 * testsuite/20_util/variant/hash.cc: Likewise.
449 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
451 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
452 * configure: Regenerate.
454 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
457 * include/bits/random.h (uniform_real_distribution::param_type)
458 (normal_distribution::param_type, lognormal_distribution::param_type)
459 (gamma_distribution::param_type, chi_squared_distribution::param_type)
460 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
461 (student_t_distribution::param_type)
462 (bernoulli_distribution::param_type, binomial_distribution::param_type)
463 (geometric_distribution::param_type)
464 (negative_binomial_distribution::param_type)
465 (poisson_distribution::param_type)
466 (exponential_distribution::param_type)
467 (weibull_distribution::param_type)
468 (extreme_value_distribution::param_type)
469 (discrete_distribution::param_type)
470 (piecewise_constant_distribution::param_type)
471 (piecewise_linear_distribution::param_type): Define operator!=.
472 * include/bits/uniform_int_dist.h
473 (uniform_int_distribution::param_type): Likewise.
474 * include/ext/random (beta_distribution::param_type)
475 (rice_distribution::param_type, nakagami_distribution::param_type)
476 (pareto_distribution::param_type, k_distribution::param_type)
477 (arcsine_distribution::param_type, hoyt_distribution::param_type)
478 (triangular_distribution::param_type)
479 (von_mises_distribution::param_type)
480 (hypergeometric_distribution::param_type)
481 (logistic_distribution::param_type)
482 (uniform_on_sphere_distribution::param_type)
483 (uniform_inside_sphere_distribution::param_type): Likewise.
484 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
485 Test construction with param_type.
486 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
488 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
490 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
492 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
494 * testsuite/26_numerics/random/extreme_value_distribution/cons/
496 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
498 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
500 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
502 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
504 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
506 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
508 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
510 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
512 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
514 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
516 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
518 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
519 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
520 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
521 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
523 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
524 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
525 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
526 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
527 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
528 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
529 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
531 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
533 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
536 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
537 (__allocator_traits_base::__size_type): Remove.
538 (allocator_traits::_Ptr): New class template to detect const and void
539 pointer types without instantiating pointer_traits::rebind
541 (allocator_traits::_Diff): Likewise for detecting difference_type.
542 (allocator_traits::_Size): New class template to detect size_type
543 without instantiating make_unsigned unnecessarily.
544 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
545 __detected_or_t instead of __detected_or_t_.
546 * include/std/type_traits (__detected_or_t_): Remove.
547 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
551 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
552 Replace with class template using void_t.
553 (__alloc_rebind): Define in terms of
554 __allocator_traits_base::__rebind.
555 (allocator_traits): Remove unconditional static_assert for
557 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
558 (pointer_traits::__rebind): Replace with class template using void_t.
559 (pointer_traits::rebind): Define in terms of __rebind.
560 (pointer_traits): Remove unconditional static_assert for rebind.
561 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
562 * testsuite/20_util/pointer_traits/rebind.cc: New test.
565 * include/experimental/any (__any_caster): Avoid instantiating
566 manager function for types that can't be stored in any.
567 * include/std/any (__any_caster): Likewise.
568 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
569 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
572 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
575 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
578 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
580 (__enable_shared_from_this): Declare __shared_ptr as a friend.
581 * testsuite/ext/shared_ptr/1.cc: New test.
584 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
586 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
588 * doc/xml/manual/abi.xml: Fix typo.
589 * doc/html/manual/abi.html: Likewise.
592 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
593 converting constructors from _Iter_less_iter.
594 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
596 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
597 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
598 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
599 (__make_heap, __sort_heap): Change _Compare parameters to references.
600 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
601 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
602 functions as lvalues.
603 (is_heap): Call __is_heap_until directly to avoid copying __comp.
604 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
605 count copies during construction with empty sequence.
608 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
609 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
610 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
612 * testsuite/25_algorithms/make_heap/movable.cc: New test.
615 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
616 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
617 _GLIBCXX_MOVE when passing comparison function to other functions.
618 (is_heap_until, is_heap): Use std::move when passing comparison
620 * testsuite/23_containers/priority_queue/67085.cc: New test.
623 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
624 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
625 Document that the deprecated _GLIBCXX_VERSION macro was removed for
627 * doc/html/*: Regenerate.
628 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
629 * include/Makefile.in: Regenerate.
630 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
631 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
634 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
637 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
638 aligned buffer instead of default-initialized variable.
639 * testsuite/29_atomics/atomic/69301.cc: New test.
640 * include/experimental/memory (observer_ptr::release): Use reserved
642 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
643 (_Pointer_adapter::operator--(int)): Likewise.
646 * include/experimental/random (randint): Use temporary instead of
649 2017-01-17 Joshua Conner <joshconner@google.com>
651 * crossconfig.m4: Add fuchsia OS.
652 * configure: Regenerate.
654 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
657 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
658 __GLIBCXX__ macro is not useful. Remove redundant date information
659 and link to the GCC release timeline.
660 (abi.versioning.active): Move partial sentence into the previous
662 * doc/html/*: Regenerate.
665 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
667 * testsuite/18_support/nested_exception/79114.cc: New test.
669 2017-01-17 Jakub Jelinek <jakub@redhat.com>
672 * configure.ac: Add GCC_BASE_VER.
673 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
674 get version from BASE-VER file.
675 * po/Makefile.in: Regenerated.
676 * libsupc++/Makefile.in: Regenerated.
677 * testsuite/Makefile.in: Regenerated.
678 * src/Makefile.in: Regenerated.
679 * configure: Regenerated.
680 * Makefile.in: Regenerated.
681 * include/Makefile.in: Regenerated.
682 * doc/Makefile.in: Regenerated.
683 * python/Makefile.in: Regenerated.
684 * src/c++11/Makefile.in: Regenerated.
685 * src/c++98/Makefile.in: Regenerated.
686 * src/filesystem/Makefile.in: Regenerated.
688 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
691 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
693 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
694 for test, so new ios::failure can be caught.
695 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
696 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
697 exceptions_failbit.cc: Likewise.
698 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
699 exceptions_failbit.cc: Likewise.
700 * testsuite/27_io/basic_istream/extractors_other/char/
701 exceptions_null.cc: Likewise.
702 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
703 exceptions_null.cc: Likewise.
704 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
705 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
706 * testsuite/27_io/basic_ostream/inserters_other/char/
707 exceptions_null.cc: Likewise.
708 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
709 exceptions_null.cc: Likewise.
710 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
713 * include/bits/locale_classes.h (locale::facet::__shim): Change from
714 private to protected.
715 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
716 make locale::facet::__shim accessible.
718 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
721 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
722 (merge(list&&, _StrictWeakOrdering)): Likewise.
723 * testsuite/23_containers/list/operations/78389.cc: Add
724 better test for the sizes.
726 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
728 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
729 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
730 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
731 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
733 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
734 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
735 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
736 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
737 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
739 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
741 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
743 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
745 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
747 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
748 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
749 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
750 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
751 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
752 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
753 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
754 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
755 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
756 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
757 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
758 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
759 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
761 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
764 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
765 retry fclose on EINTR.
767 * include/profile/base.h: Remove unused header that leads to header
771 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
773 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
774 basic_string_view arguments.
777 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
778 redundant option from cxxflags.
779 (check_effective_target_cxx11-abi): Define.
780 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
782 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
783 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
785 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
787 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
788 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
790 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
792 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
793 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
795 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
797 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
799 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
801 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
803 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
805 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
807 * testsuite/23_containers/list/61347.cc: Likewise.
808 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
809 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
811 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
814 * include/bits/list.tcc (merge(list&&)):
815 Adjust list sizes if the comparator throws.
816 (merge(list&&, _StrictWeakOrdering)): Likewise.
817 (sort()): Splice elements back from the scratch buffers
818 if the comparator throws.
819 (sort(_StrictWeakOrdering)): Likewise.
820 * testsuite/23_containers/list/operations/78389.cc: New.
822 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
824 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
825 XFAIL for C++17 until node reinsertion supports fancy pointers.
828 * testsuite/20_util/add_pointer/value.cc: Test forming function
831 2017-01-13 Michael Brune <lucdanton@free.fr>
834 * include/std/type_traits (__is_referenceable): Handle noexcept
837 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
840 * include/bits/stl_queue.h (queue, priority_queue): Remove default
841 member-initializers and define default constructors as templates with
843 * include/bits/stl_stack.h (stack): Likewise.
844 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
846 * testsuite/23_containers/priority_queue/requirements/
847 explicit_instantiation/1.cc: Test more instantiations.
848 * testsuite/23_containers/priority_queue/requirements/
849 explicit_instantiation/1_c++98.cc: Likewise.
850 * testsuite/23_containers/queue/requirements/constructible.cc: New.
851 * testsuite/23_containers/stack/requirements/constructible.cc: New.
854 * doc/xml/manual/intro.xml: Document LWG 2781 change.
855 * doc/html/*: Regenerate.
856 * include/std/functional (_Function_base::_Ref_manager): Remove.
857 (_Function_handler): Remove partial specializations for
859 (function::target): Remove special case for const qualification.
860 * testsuite/20_util/function/6.cc: Adjust tests for target type.
861 * testsuite/20_util/function/7.cc: Likewise.
862 * testsuite/20_util/function/8.cc: Likewise.
864 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
867 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
868 (map::equal_range): Fix return type of heterogeneous overloads.
869 * include/bits/stl_multimap.h (multimap::lower_bound)
870 (multimap::upper_bound, multimap::equal_range): Likewise.
871 * include/bits/stl_multiset.h (multiset::lower_bound)
872 (multiset::upper_bound, multiset::equal_range): Likewise.
873 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
874 (set::equal_range): Likewise.
875 * testsuite/23_containers/map/operations/2.cc
876 * testsuite/23_containers/multimap/operations/2.cc
877 * testsuite/23_containers/multiset/operations/2.cc
878 * testsuite/23_containers/set/operations/2.cc
881 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
882 the heterogeneous comparison can only find one match.
883 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
884 * testsuite/23_containers/map/operations/2.cc: Test count works with
885 comparison function that just partitions rather than sorting.
886 * testsuite/23_containers/set/operations/2.cc: Likewise.
888 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
890 Reduce the size of variant, it doesn't need an index of
891 type size_t internally.
892 * include/std/variant (parse_numbers.h): New include.
893 (__select_index): New.
894 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
895 _index_type for comparison with variant_npos.
896 (_Variant_storage<false, _Types...>::__index_type): New.
897 (_Variant_storage<false, _Types...>::_M_index): Change the
898 type from size_t to __index_type.
899 (_Variant_storage<true, _Types...>::__index_type): New.
900 (_Variant_storage<true, _Types...>::_M_index): Change the
901 type from size_t to __index_type.
902 (_Variant_base::_M_valid): Use _Storage::__index_type
903 for comparison with variant_npos.
904 (variant::index): Use _Base::_Storage::__index_type
905 for comparison with variant_npos.
906 * testsuite/20_util/variant/index_type.cc: New.
908 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
910 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
911 effective target selector to prevent running in C++17 mode.
914 * include/bits/stl_queue.h (queue::c): Add default member initializer.
915 (queue::queue()): Add constructor and define as defaulted.
916 (queue::queue(_Sequence&&)): Remove default argument.
917 (priority_queue::c, priority_queue::comp): Add default member
919 (priority_queue::priority_queue()): Add constructor and define as
921 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
922 Remove default argument for first parameter.
923 * include/bits/stl_stack.h (stack::c): Add default member initializer.
924 (stack::stack()): Add constructor and define as defaulted.
925 (stack::stack(const _Sequence&)): Remove default argument.
926 * testsuite/23_containers/priority_queue/requirements/
927 explicit_instantiation/1.cc: Test explicit instantiation with
928 non-DefaultConstructible sequence.
929 * testsuite/23_containers/priority_queue/77528.cc: New test.
930 * testsuite/23_containers/priority_queue/requirements/
931 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
932 * testsuite/23_containers/queue/77528.cc: New test.
933 * testsuite/23_containers/queue/requirements/explicit_instantiation/
934 1.cc: Test explicit instantiation with non-DefaultConstructible
936 * testsuite/23_containers/queue/requirements/explicit_instantiation/
937 1_c++0x.cc: Replace with 1_c++98.cc.
938 * testsuite/23_containers/stack/77528.cc: New test.
939 * testsuite/23_containers/stack/requirements/explicit_instantiation/
940 1.cc: Test explicit instantiation with non-DefaultConstructible
942 * testsuite/23_containers/stack/requirements/explicit_instantiation/
943 1_c++0x.cc: Replace with 1_c++98.cc.
945 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
947 * include/bits/locale_facets_nonio.tcc
948 (time_get::_M_extract_via_format): Avoid compilation errors with
949 non-standard struct tm.
951 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
952 Jonathan Wakely <jwakely@redhat.com>
954 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
955 (is_specialization, strip_versioned_namespace): New helpers functions
956 to work with symbols in the versioned namespace.
957 (Printer.add_version): Add second name using versioned namespace.
958 (add_one_template_type_printer, add_one_type_printer): Add second
959 type printers using versioned namespace.
960 (register_type_printers): Add template type printer for basic_string.
961 (build_libstdcxx_dictionary): Remove dead code.
962 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
964 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
966 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
968 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
971 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
972 functions separately on darwin and if they're missing define
973 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
974 * config.h.in: Regenerate.
975 * configure: Regenerate.
976 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
977 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
979 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
980 to detect correct thread_local destructors.
981 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
984 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
985 Aditya Kumar <hiraditya@msn.com>
988 * include/bits/basic_string.tcc
989 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
991 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
993 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
994 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
996 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
997 Include <cassert> header.
1000 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1001 * configure: Regenerate.
1003 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1004 Jonathan Wakely <jwakely@redhat.com>
1006 * include/std/variant (variant, swap): Replace __and_ usage with fold
1009 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1012 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1013 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1014 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1015 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1017 * aclocal.m4: Regenerate.
1018 * configure: Regenerate.
1019 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1020 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1021 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1022 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1024 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1026 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1029 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1030 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1031 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1032 move function objects.
1033 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1034 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1035 * testsuite/25_algorithms/sort/78991.cc: New test.
1037 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1039 * include/bits/std_function.h (function::_Signature_type): Remove.
1040 (function::function(_Functor)): Adjust.
1042 2017-01-05 Tim Shen <timshen@google.com>
1045 * include/std/variant (__gen_vtable_impl): rename __unused to
1046 __dimensions to avoid naming conflict.
1048 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1051 * config.h.in: Regenerate.
1052 * configure: Likewise.
1053 * configure.ac: Check for __cxa_thread_atexit.
1054 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1055 Don't define __cxa_thread_atexit if libc provides it.
1057 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1059 Implement 2801, Default-constructibility of unique_ptr.
1060 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1061 (unique_ptr::_DeleterConstraint): Likewise.
1062 (unique_ptr()): Constrain.
1063 (unique_ptr(pointer)): Likewise.
1064 (unique_ptr(nullptr_t)): Likewise.
1065 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1066 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1067 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1068 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1069 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1070 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1071 * testsuite/20_util/unique_ptr/cons/default.cc: New.
1072 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1074 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
1075 Jonathan Wakely <jwakely@redhat.com>
1078 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1079 * config.h.in: Regenerate.
1080 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1081 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1082 exports for exception_ptr, nested_exception, and future conditional.
1083 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1084 exports for exception_ptr, nested_exception, and future conditional.
1085 * configure: Regenerate.
1086 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1087 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1088 * libsupc++/eh_atomics.h: New file for internal use only.
1089 (__eh_atomic_inc, __eh_atomic_dec): New.
1090 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1091 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
1092 (rethrow_exception): Use eh_atomics.h reference counting helpers.
1093 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
1094 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
1095 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
1096 * libsupc++/exception_ptr.h: Likewise.
1097 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
1098 * libsupc++/nested_exception.cc: Remove check for
1099 ATOMIC_INT_LOCK_FREE.
1100 * libsupc++/nested_exception.h: Likewise.
1101 * src/c++11/future.cc: Likewise.
1102 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
1103 * testsuite/18_support/nested_exception/*: Likewise.
1104 * testsuite/30_threads/async/*: Likewise.
1105 * testsuite/30_threads/future/*: Likewise.
1106 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
1107 * testsuite/30_threads/packaged_task/*: Likewise.
1108 * testsuite/30_threads/promise/*: Likewise.
1109 * testsuite/30_threads/shared_future/*: Likewise.
1111 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1113 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
1114 defaults to https; adjust reference.
1116 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
1119 * include/std/thread (thread(const thread&&)): Add deleted
1121 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
1123 * doc/xml/manual/spine.xml: Update copyright years.
1124 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
1125 * doc/xml/manual/test.xml: Likewise.
1126 * doc/html/*: Regenerate.
1128 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
1130 * doc/xml/faq.xml: Update address of C++ ABI link.
1131 * doc/xml/manual/abi.xml: Ditto.
1133 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1135 Update copyright years.
1137 Copyright (C) 2017 Free Software Foundation, Inc.
1139 Copying and distribution of this file, with or without modification,
1140 are permitted in any medium without royalty provided the copyright
1141 notice and this notice are preserved.