1 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
4 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
7 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
8 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
9 char16_t to work with UTF-16 instead of UTF-8.
10 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
12 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
13 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
14 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
15 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
16 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
17 (__codecvt_utf8_utf16_base<char32_t>)
18 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
19 do_max_length() return values.
20 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
21 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
22 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
25 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
27 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
28 for manipulating codecvt_mode values.
29 (read_utf16_bom): Compare input to BOM constants instead of integral
30 constants that depend on endianness. Take mode parameter by
31 reference and adjust it, to distinguish between no BOM present and
33 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
34 (surrogates): New enumeration type.
35 (utf16_in, utf16_out): Add surrogates parameter to choose between
36 UTF-16 and UCS2 behaviour.
37 (utf16_span, ucs2_span): Use std::min not std::max.
38 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
39 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
40 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
41 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
44 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
46 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
47 for internal representation.
48 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
49 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
52 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
53 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
54 invalid instantiations using function types for _Compare argument.
55 * testsuite/25_algorithms/make_heap/80064.cc: New test.
58 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
59 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
61 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
63 Implement LWG 2857, {variant,optional,any}::emplace should
64 return the constructed value.
65 * include/std/any (emplace(_Args&&...)): Change the return type and
66 return a reference to the constructed value.
67 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
68 * include/std/optional (emplace(_Args&&...)): Likewise.
69 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
70 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
71 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
72 (emplace<_Np>(_Args&&...)): Likewise.
73 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
74 * testsuite/20_util/any/assign/emplace.cc: Add tests for
75 checking the return value of emplace.
76 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
77 * testsuite/20_util/optional/assignment/6.cc: Add tests for
78 checking the return value of emplace.
79 * testsuite/20_util/variant/run.cc: Likewise.
81 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
84 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
86 (push_heap): Remove the wrong checking using is_heap.
87 (make_heap): Remove the assertion using is_heap.
88 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
90 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
93 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
96 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
98 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
101 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
103 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
105 * config.h.in: Regenerate.
106 * configure: Regenerate.
107 * doc/Makefile.in: Regenerate.
109 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
112 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
113 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
114 with a constrained template.
115 [!_GLIBCXX_USE_CXX11_ABI]
116 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
117 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
118 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
120 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
123 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
125 (merge(list&&, _StrictWeakOrdering)): Likewise.
126 * testsuite/23_containers/list/operations/80034.cc: New.
128 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
130 Implement LWG 2806, Base class of bad_optional_access.
131 * include/std/optional (bad_optional_access):
132 Derive from std::exception.
133 (bad_optional_access::bad_optional_access): Adjust.
134 (bad_optional_access::what): New.
135 (__throw_bad_optional_access(const char*)):
136 Remove the parameter and adjust calls.
137 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
138 * testsuite/20_util/optional/typedefs.cc: Likewise.
140 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
142 Implement LWG 2934, optional<const T> doesn't compare with T.
143 * include/std/optional
144 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
145 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
146 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
147 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
148 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
149 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
150 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
151 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
152 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
153 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
154 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
155 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
156 (operator==(const optional<_Tp>&, const _Tp&)):
157 Turn into operator==(const optional<_Tp>&, const _Up&).
158 (operator==(const _Tp&, const optional<_Tp>&)):
159 Turn into operator==(const _Up&, const optional<_Tp>&).
160 (operator!=(const optional<_Tp>&, const _Tp&)):
161 Turn into operator!=(const optional<_Tp>&, const _Up&).
162 (operator!=(const _Tp&, const optional<_Tp>&)):
163 Turn into operator!=(const _Up&, const optional<_Tp>&).
164 (operator<(const optional<_Tp>&, const _Tp&)):
165 Turn into operator<(const optional<_Tp>&, const _Up&).
166 (operator<(const _Tp&, const optional<_Tp>&)):
167 Turn into operator<(const _Up&, const optional<_Tp>&).
168 (operator>(const optional<_Tp>&, const _Tp&)):
169 Turn into operator>(const optional<_Tp>&, const _Up&).
170 (operator>(const _Tp&, const optional<_Tp>&)):
171 Turn into operator>(const _Up&, const optional<_Tp>&).
172 (operator<=(const optional<_Tp>&, const _Tp&)):
173 Turn into operator<=(const optional<_Tp>&, const _Up&).
174 (operator<=(const _Tp&, const optional<_Tp>&)):
175 Turn into operator<=(const _Up&, const optional<_Tp>&).
176 (operator>=(const optional<_Tp>&, const _Tp&)):
177 Turn into operator>=(const optional<_Tp>&, const _Up&).
178 (operator>=(const _Tp&, const optional<_Tp>&)):
179 Turn into operator>=(const _Up&, const optional<_Tp>&).
180 * testsuite/20_util/optional/relops/7.cc: New.
182 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
184 * testsuite/17_intro/names.cc: Undefine macros that clash with
185 identifiers in AIX system headers.
187 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
188 result_of, and __is_nothrow_invocable instead of
189 __is_nothrow_callable.
190 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
191 instead of __is_callable.
192 * include/std/functional (invoke): use invoke_result_t instead of
193 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
194 (_Not_fn): Use __invoke_result instead of result_of.
195 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
196 Remove partial specializations for reference_wrapper types.
197 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
198 (__invoke_result): Define replacement for result_of and then use it to
200 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
201 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
203 (invoke_result, invoke_result_t): Define for C++17.
204 (is_callable, is_nothrow_callable): Replace with is_invocable,
205 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
206 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
207 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
208 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
209 instead of is_nothrow_callable_v.
210 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
212 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
213 instead of is_callable.
214 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
216 * testsuite/20_util/is_nothrow_callable/*: Likewise.
217 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
219 * testsuite/20_util/variant/hash.cc: Likewise.
221 2017-03-10 George Lander <george.lander@arm.com>
223 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
224 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
225 * configure: Regenerate.
227 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
229 * include/std/functional (_Not_fn): Define macro to simplify
230 repetitive function definitions.
232 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
233 * include/c_global/cstddef (std::byte): Define for C++17.
234 * testsuite/18_support/byte/global_neg.cc: New test.
235 * testsuite/18_support/byte/ops.cc: New test.
236 * testsuite/18_support/byte/requirements.cc: New test.
238 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
240 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
241 * doc/html/*: Regenerate.
242 * include/std/mutex (scoped_lock): Implement new C++17 template.
243 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
244 * testsuite/30_threads/scoped_lock/requirements/
245 explicit_instantiation.cc: New test.
246 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
248 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
249 François Dumont <frs.dumont@gmail.com>
250 Jonathan Wakely <jwakely@redhat.com>
252 * doc/xml/manual/debug_mode.xml: Update and simplify note
253 on link- and run-time coexistence.
255 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
257 * testsuite/17_intro/headers/names.cc: Rename to ...
258 * testsuite/17_intro/names.cc: ... here.
261 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
262 parameters and local variables.
263 * include/bits/ios_base.h (make_error_code, make_error_condition):
265 * include/bits/list.tcc (list::sort): Likewise.
266 * include/bits/mask_array.h (mask_array): Likewise.
267 * include/bits/regex.h (regex_token_iterator): Likewise.
268 * include/bits/slice_array.h (slice_array): Likewise.
269 * include/bits/stl_algo.h (__sample): Likewise.
270 * include/std/memory (undeclare_no_pointers): Likewise.
271 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
273 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
274 * testsuite/17_intro/headers/names.cc: New test.
277 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
278 result_of that loses top-level cv-qualifiers.
279 * testsuite/20_util/bind/79798.cc: New test.
281 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
283 * doc/xml/manual/documentation_hacking.xml: Tweak link to
286 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
288 * include/experimental/iterator: Include <iterator>.
289 * testsuite/experimental/iterator/requirements.cc: Check for contents
292 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
294 C++17 GB50 resolution
295 * include/std/chrono (duration::operator++()): Add
296 _GLIBCXX17_CONSTEXPR.
297 (duration::operator++(int)): Likewise.
298 (duration::operator--()): Likewise.
299 (duration::operator--(int)): Likewise.
300 (duration::operator+=(const duration&)): Likewise.
301 (duration::operator-=(const duration&)): Likewise.
302 (duration::operator*=(const rep&)): Likewise.
303 (duration::operator/=(const rep&)): Likewise.
304 (duration::operator%=(const rep&)): Likewise.
305 (duration::operator%=(const duration&)): Likewise.
306 (time_point::operator+=(const duration&)): Likewise.
307 (time_point::operator-=(const duration&)): Likewise.
308 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
309 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
310 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
312 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
314 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
316 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
318 * doc/xml/manual/io.xml: Update link to groups.google.com.
319 Tweak link description.
321 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
323 * doc/xml/manual/profile_mode.xml: Fix link.
325 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
327 * doc/xml/manual/policy_data_structures.xml: Simplify and
328 standardize references to boost.org.
329 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
330 * doc/xml/manual/shared_ptr.xml: Ditto.
332 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
335 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
336 written to buffer, not length remaining in buffer.
338 2017-02-15 Tim Shen <timshen@google.com>
341 * include/std/variant (operator<(), operator>(), operator<=(),
342 operator>=(), operator==(), operator!=()): Implement P0393R3.
343 * testsuite/20_util/variant/compile.cc: Adjust tests.
344 * testsuite/20_util/variant/run.cc: Adjust tests.
346 2017-02-15 Tim Shen <timshen@google.com>
349 * include/std/variant (visit()): Forward variant types to the return
351 * testsuite/20_util/variant/compile.cc: Add test cases.
353 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
356 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
358 2017-02-13 Jakub Jelinek <jakub@redhat.com>
361 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
362 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
363 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
364 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
365 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
366 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
367 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
368 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
369 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
371 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
374 * include/std/future (__future_base::_Task_state::_M_run)
375 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
376 result_of expressions.
377 * testsuite/30_threads/packaged_task/79486.cc: New.
379 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
382 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
383 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
385 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
387 * include/bits/atomic_base.h: Re-indent.
389 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
391 * doc/xml/manual/profile_mode.xml: Update a paper reference.
393 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
395 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
397 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
399 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
401 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
402 broken links to texts that are no longer online.
403 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
405 * doc/xml/manual/using.xml: Update links to memory model information.
406 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
407 Standard-Library Exception Safety".
408 * doc/html/*: Regenerate.
410 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
412 * doc/xml/manual/profile_mode.xml: Unbreak link to
413 "Optimizing Sorting with Machine Learning Algorithms".
415 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
417 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
419 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
421 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
424 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
426 * doc/html/ext/lwg-active.html: Remove.
427 * doc/html/ext/lwg-closed.html: Ditto.
428 * doc/html/ext/lwg-defects.html: Ditto.
430 * doc/Makefile.am (xml_extradir): Remove.
432 (stamp-html-docbook-lwg): Remove recipe...
433 (stamp-html-docbook-data): ...and its use here.
434 * doc/Makefile.in: Regenerate.
436 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
437 the relationship to the upstream working group.
438 Replace a local link to ../ext/lwg-active.html by the upstream one.
439 Replace all reference to ../ext/lwg-defects.html by a new entity
440 &DR; which refers to the upstream address.
442 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
444 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
446 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
449 * testsuite/20_util/duration/literals/range.cc: Prune extra output
452 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
454 * doc/xml/manual/documentation_hacking.xml: Update URL of the
455 DocBook Element Reference. Use that term as link description
457 epubcheck has moved to GitHub.
458 Remove obsolete link to DocBook Publishing Tools.
460 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
463 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
464 so new ios::failure can be caught even when old ABI is the default.
465 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
466 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
467 exceptions_failbit.cc: Likewise.
468 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
469 exceptions_failbit.cc: Likewise.
470 * testsuite/27_io/basic_istream/extractors_other/char/
471 exceptions_null.cc: Likewise.
472 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
473 exceptions_null.cc: Likewise.
474 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
475 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
476 * testsuite/27_io/basic_ostream/inserters_other/char/
477 exceptions_null.cc: Likewise.
478 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
479 exceptions_null.cc: Likewise.
480 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
483 * src/c++11/Makefile.am: Add new files.
484 * src/c++11/Makefile.in: Regenerate.
485 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
486 (operator<<, operator>>, getline): Move explicit instantiations to ...
487 * src/c++11/cow-string-io-inst.cc: ... new file.
488 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
489 (operator<<, operator>>, getline): Move explicit instantiations to ...
490 * src/c++11/cow-wstring-io-inst.cc: ... new file.
491 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
492 (__throw_future_error, __throw_bad_function_call):
493 (__throw_regex_error): Move functions for C++11 exceptions to the
494 files that define the exception types.
495 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
496 * src/c++11/future.cc (__throw_future_error): Likewise.
497 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
498 * src/c++11/regex.cc (__throw_regex_error): Likewise.
499 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
500 representation directly instead of calling __int_to_char.
501 * src/c++11/sso_string.cc (__sso_string): New file for definition
502 of __sso_string type.
503 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
504 explicit instantiations of narrow string I/O functions.
505 * src/c++11/system_error.cc (__throw_system_error): Move here.
506 (__sso_string): Move to new file.
507 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
508 explicit instantiations of wide string I/O functions.
509 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
510 (operator>>, getline): Remove explicit instantiations from here.
512 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
514 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
516 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
518 * configure.host: Separate Solaris/SPARC and x86 baselines.
519 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
520 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
521 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
522 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
524 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
525 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
526 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
527 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
528 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
529 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
530 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
532 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
533 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
534 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
536 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
537 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
538 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
539 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
540 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
541 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
543 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
546 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
548 (_Iter_comp_to_iter): Likewise.
549 * testsuite/25_algorithms/search/78346.cc: New test.
552 * config/abi/pre/gnu.ver: Remove recently added symbols.
553 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
554 (basic_string::_M_copy_assign): Remove.
555 (basic_string::operator=(const basic_string&)): Don't dispatch to
556 _M_copy_assign. If source object is small just deallocate, otherwise
557 perform new allocation before making any changes.
558 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
559 (basic_string::_M_copy_assign(const basic_string&, true_type)):
561 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
562 Test cases where the allocators are equal or the string is small.
563 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
566 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
568 Implement LWG 2825, LWG 2756 breaks class template argument
569 deduction for optional.
570 * include/std/optional: Add a deduction guide.
571 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
573 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
576 * config/abi/pre/gnu.ver: Add new symbols.
577 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
578 (basic_string::_M_copy_assign): New overloaded functions to perform
580 (basic_string::operator=(const basic_string&)): Dispatch to
582 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
583 (basic_string::_M_copy_assign(const basic_string&, true_type)):
584 Define, performing rollback on exception.
585 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
586 Test exception-safety guarantee.
587 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
589 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
592 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
595 * include/tr1/complex (conj): Remove using-declaration and restore
596 overloads, reverting previous change.
598 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
600 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
601 Mark as unsupported in C++98 mode.
602 * testsuite/23_containers/queue/requirements/constructible.cc:
604 * testsuite/23_containers/stack/requirements/constructible.cc:
606 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
609 * include/bits/c++config (literals::string_view_literals::__7): Add.
610 Only declare versioned namespaces for the relevant C++ dialects.
611 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
612 Add versioning macros.
613 * include/experimental/bits/lfts_config.h:
614 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
615 * include/experimental/string_view (fundamentals_v2::__detail):
616 Add versioning macros.
617 (fundamentals_v2::__detail::__identity): Remove.
618 (fundamentals_v2::__detail::__idt): Use common_type instead of
619 __detail::__identity.
620 * include/std/string_view (__detail::__identity, __detail::__idt):
622 (literals::string_view_literals): Fix nesting of versioning macros.
625 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
626 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
627 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
628 Retrieve original pointer value allocated by malloc.
629 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
630 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
631 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
632 Define, adjusting pointer value allocated by malloc and storing for
633 retrieval by operator delete.
635 2017-01-26 Jakub Jelinek <jakub@redhat.com>
637 * libsupc++/eh_atomics.h: Update copyright years.
638 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
640 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
644 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
645 (proj(T), conj(T)): Change return types per DR 1522.
646 * include/tr1/complex (conj): Remove overloads and use std::conj.
647 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
648 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
649 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
650 real(T) and imag(T). Allow testing for C++11 too.
652 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
655 * include/experimental/string_view (operator==): Check sizes first.
656 * include/std/string_view (operator==): Likewise.
658 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
660 * testsuite/experimental/array/make_array.cc: Restore <functional>
663 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
665 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
667 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
670 * include/experimental/array (__make_array_elem): New class template
671 and partial specialization.
672 (__is_reference_wrapper): Move into __make_array_elem specialization.
673 (make_array): Use __make_array_elem to determine element type and move
674 static assertion into specialization. Qualify std::forward call.
675 (to_array): Add exception specifiation.
676 * testsuite/experimental/array/make_array.cc: Test argument types
677 without a common type.
678 * testsuite/experimental/array/neg.cc: Adjust expected error message.
680 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
682 * doc/xml/manual/debug.xml: code.google.com uses https now.
684 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
686 * doc/xml/manual/test.xml: Fix link into gccint online manual.
688 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
690 Make poisoned hashes SFINAE away the call operator of the hash.
691 * include/bits/functional_hash.h
692 (__poison_hash::__enable_hash_call): New.
693 * include/std/optional (__optional_hash_call_base): New.
694 (hash<optional<_Tp>>): Derive from the new base,
695 move the hash function into that base.
696 * include/std/variant (__variant_hash_call_base_impl): New.
697 (__variant_hash_call_base): Likewise.
698 (hash<variant<_Types...>>): Derive from the new base,
699 move the hash function into that base.
700 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
701 * testsuite/20_util/variant/hash.cc: Likewise.
703 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
705 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
706 * configure: Regenerate.
708 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
711 * include/bits/random.h (uniform_real_distribution::param_type)
712 (normal_distribution::param_type, lognormal_distribution::param_type)
713 (gamma_distribution::param_type, chi_squared_distribution::param_type)
714 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
715 (student_t_distribution::param_type)
716 (bernoulli_distribution::param_type, binomial_distribution::param_type)
717 (geometric_distribution::param_type)
718 (negative_binomial_distribution::param_type)
719 (poisson_distribution::param_type)
720 (exponential_distribution::param_type)
721 (weibull_distribution::param_type)
722 (extreme_value_distribution::param_type)
723 (discrete_distribution::param_type)
724 (piecewise_constant_distribution::param_type)
725 (piecewise_linear_distribution::param_type): Define operator!=.
726 * include/bits/uniform_int_dist.h
727 (uniform_int_distribution::param_type): Likewise.
728 * include/ext/random (beta_distribution::param_type)
729 (rice_distribution::param_type, nakagami_distribution::param_type)
730 (pareto_distribution::param_type, k_distribution::param_type)
731 (arcsine_distribution::param_type, hoyt_distribution::param_type)
732 (triangular_distribution::param_type)
733 (von_mises_distribution::param_type)
734 (hypergeometric_distribution::param_type)
735 (logistic_distribution::param_type)
736 (uniform_on_sphere_distribution::param_type)
737 (uniform_inside_sphere_distribution::param_type): Likewise.
738 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
739 Test construction with param_type.
740 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
742 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
744 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
746 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
748 * testsuite/26_numerics/random/extreme_value_distribution/cons/
750 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
752 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
754 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
756 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
758 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
760 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
762 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
764 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
766 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
768 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
770 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
772 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
773 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
774 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
775 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
777 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
778 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
779 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
780 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
781 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
782 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
783 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
785 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
787 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
790 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
791 (__allocator_traits_base::__size_type): Remove.
792 (allocator_traits::_Ptr): New class template to detect const and void
793 pointer types without instantiating pointer_traits::rebind
795 (allocator_traits::_Diff): Likewise for detecting difference_type.
796 (allocator_traits::_Size): New class template to detect size_type
797 without instantiating make_unsigned unnecessarily.
798 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
799 __detected_or_t instead of __detected_or_t_.
800 * include/std/type_traits (__detected_or_t_): Remove.
801 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
805 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
806 Replace with class template using void_t.
807 (__alloc_rebind): Define in terms of
808 __allocator_traits_base::__rebind.
809 (allocator_traits): Remove unconditional static_assert for
811 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
812 (pointer_traits::__rebind): Replace with class template using void_t.
813 (pointer_traits::rebind): Define in terms of __rebind.
814 (pointer_traits): Remove unconditional static_assert for rebind.
815 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
816 * testsuite/20_util/pointer_traits/rebind.cc: New test.
819 * include/experimental/any (__any_caster): Avoid instantiating
820 manager function for types that can't be stored in any.
821 * include/std/any (__any_caster): Likewise.
822 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
823 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
826 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
829 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
832 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
834 (__enable_shared_from_this): Declare __shared_ptr as a friend.
835 * testsuite/ext/shared_ptr/1.cc: New test.
838 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
840 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
842 * doc/xml/manual/abi.xml: Fix typo.
843 * doc/html/manual/abi.html: Likewise.
846 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
847 converting constructors from _Iter_less_iter.
848 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
850 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
851 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
852 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
853 (__make_heap, __sort_heap): Change _Compare parameters to references.
854 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
855 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
856 functions as lvalues.
857 (is_heap): Call __is_heap_until directly to avoid copying __comp.
858 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
859 count copies during construction with empty sequence.
862 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
863 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
864 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
866 * testsuite/25_algorithms/make_heap/movable.cc: New test.
869 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
870 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
871 _GLIBCXX_MOVE when passing comparison function to other functions.
872 (is_heap_until, is_heap): Use std::move when passing comparison
874 * testsuite/23_containers/priority_queue/67085.cc: New test.
877 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
878 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
879 Document that the deprecated _GLIBCXX_VERSION macro was removed for
881 * doc/html/*: Regenerate.
882 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
883 * include/Makefile.in: Regenerate.
884 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
885 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
888 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
891 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
892 aligned buffer instead of default-initialized variable.
893 * testsuite/29_atomics/atomic/69301.cc: New test.
894 * include/experimental/memory (observer_ptr::release): Use reserved
896 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
897 (_Pointer_adapter::operator--(int)): Likewise.
900 * include/experimental/random (randint): Use temporary instead of
903 2017-01-17 Joshua Conner <joshconner@google.com>
905 * crossconfig.m4: Add fuchsia OS.
906 * configure: Regenerate.
908 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
911 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
912 __GLIBCXX__ macro is not useful. Remove redundant date information
913 and link to the GCC release timeline.
914 (abi.versioning.active): Move partial sentence into the previous
916 * doc/html/*: Regenerate.
919 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
921 * testsuite/18_support/nested_exception/79114.cc: New test.
923 2017-01-17 Jakub Jelinek <jakub@redhat.com>
926 * configure.ac: Add GCC_BASE_VER.
927 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
928 get version from BASE-VER file.
929 * po/Makefile.in: Regenerated.
930 * libsupc++/Makefile.in: Regenerated.
931 * testsuite/Makefile.in: Regenerated.
932 * src/Makefile.in: Regenerated.
933 * configure: Regenerated.
934 * Makefile.in: Regenerated.
935 * include/Makefile.in: Regenerated.
936 * doc/Makefile.in: Regenerated.
937 * python/Makefile.in: Regenerated.
938 * src/c++11/Makefile.in: Regenerated.
939 * src/c++98/Makefile.in: Regenerated.
940 * src/filesystem/Makefile.in: Regenerated.
942 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
945 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
947 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
948 for test, so new ios::failure can be caught.
949 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
950 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
951 exceptions_failbit.cc: Likewise.
952 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
953 exceptions_failbit.cc: Likewise.
954 * testsuite/27_io/basic_istream/extractors_other/char/
955 exceptions_null.cc: Likewise.
956 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
957 exceptions_null.cc: Likewise.
958 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
959 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
960 * testsuite/27_io/basic_ostream/inserters_other/char/
961 exceptions_null.cc: Likewise.
962 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
963 exceptions_null.cc: Likewise.
964 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
967 * include/bits/locale_classes.h (locale::facet::__shim): Change from
968 private to protected.
969 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
970 make locale::facet::__shim accessible.
972 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
975 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
976 (merge(list&&, _StrictWeakOrdering)): Likewise.
977 * testsuite/23_containers/list/operations/78389.cc: Add
978 better test for the sizes.
980 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
982 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
983 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
984 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
985 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
987 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
988 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
989 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
990 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
991 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
993 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
995 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
997 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
999 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
1001 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
1002 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
1003 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
1004 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
1005 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
1006 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
1007 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
1008 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
1009 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
1010 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
1011 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
1012 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
1013 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1015 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1018 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
1019 retry fclose on EINTR.
1021 * include/profile/base.h: Remove unused header that leads to header
1022 cycle in C++17 mode.
1025 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1026 Make _If_sv private.
1027 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
1028 basic_string_view arguments.
1031 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
1032 redundant option from cxxflags.
1033 (check_effective_target_cxx11-abi): Define.
1034 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
1036 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
1037 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1039 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
1041 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
1042 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1044 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
1046 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
1047 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
1049 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1051 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
1053 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
1055 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1057 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
1059 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
1061 * testsuite/23_containers/list/61347.cc: Likewise.
1062 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
1063 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
1065 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1068 * include/bits/list.tcc (merge(list&&)):
1069 Adjust list sizes if the comparator throws.
1070 (merge(list&&, _StrictWeakOrdering)): Likewise.
1071 (sort()): Splice elements back from the scratch buffers
1072 if the comparator throws.
1073 (sort(_StrictWeakOrdering)): Likewise.
1074 * testsuite/23_containers/list/operations/78389.cc: New.
1076 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
1078 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
1079 XFAIL for C++17 until node reinsertion supports fancy pointers.
1082 * testsuite/20_util/add_pointer/value.cc: Test forming function
1085 2017-01-13 Michael Brune <lucdanton@free.fr>
1088 * include/std/type_traits (__is_referenceable): Handle noexcept
1091 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
1094 * include/bits/stl_queue.h (queue, priority_queue): Remove default
1095 member-initializers and define default constructors as templates with
1097 * include/bits/stl_stack.h (stack): Likewise.
1098 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1100 * testsuite/23_containers/priority_queue/requirements/
1101 explicit_instantiation/1.cc: Test more instantiations.
1102 * testsuite/23_containers/priority_queue/requirements/
1103 explicit_instantiation/1_c++98.cc: Likewise.
1104 * testsuite/23_containers/queue/requirements/constructible.cc: New.
1105 * testsuite/23_containers/stack/requirements/constructible.cc: New.
1108 * doc/xml/manual/intro.xml: Document LWG 2781 change.
1109 * doc/html/*: Regenerate.
1110 * include/std/functional (_Function_base::_Ref_manager): Remove.
1111 (_Function_handler): Remove partial specializations for
1113 (function::target): Remove special case for const qualification.
1114 * testsuite/20_util/function/6.cc: Adjust tests for target type.
1115 * testsuite/20_util/function/7.cc: Likewise.
1116 * testsuite/20_util/function/8.cc: Likewise.
1118 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
1121 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
1122 (map::equal_range): Fix return type of heterogeneous overloads.
1123 * include/bits/stl_multimap.h (multimap::lower_bound)
1124 (multimap::upper_bound, multimap::equal_range): Likewise.
1125 * include/bits/stl_multiset.h (multiset::lower_bound)
1126 (multiset::upper_bound, multiset::equal_range): Likewise.
1127 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
1128 (set::equal_range): Likewise.
1129 * testsuite/23_containers/map/operations/2.cc
1130 * testsuite/23_containers/multimap/operations/2.cc
1131 * testsuite/23_containers/multiset/operations/2.cc
1132 * testsuite/23_containers/set/operations/2.cc
1135 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
1136 the heterogeneous comparison can only find one match.
1137 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
1138 * testsuite/23_containers/map/operations/2.cc: Test count works with
1139 comparison function that just partitions rather than sorting.
1140 * testsuite/23_containers/set/operations/2.cc: Likewise.
1142 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
1144 Reduce the size of variant, it doesn't need an index of
1145 type size_t internally.
1146 * include/std/variant (parse_numbers.h): New include.
1147 (__select_index): New.
1148 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
1149 _index_type for comparison with variant_npos.
1150 (_Variant_storage<false, _Types...>::__index_type): New.
1151 (_Variant_storage<false, _Types...>::_M_index): Change the
1152 type from size_t to __index_type.
1153 (_Variant_storage<true, _Types...>::__index_type): New.
1154 (_Variant_storage<true, _Types...>::_M_index): Change the
1155 type from size_t to __index_type.
1156 (_Variant_base::_M_valid): Use _Storage::__index_type
1157 for comparison with variant_npos.
1158 (variant::index): Use _Base::_Storage::__index_type
1159 for comparison with variant_npos.
1160 * testsuite/20_util/variant/index_type.cc: New.
1162 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
1164 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
1165 effective target selector to prevent running in C++17 mode.
1168 * include/bits/stl_queue.h (queue::c): Add default member initializer.
1169 (queue::queue()): Add constructor and define as defaulted.
1170 (queue::queue(_Sequence&&)): Remove default argument.
1171 (priority_queue::c, priority_queue::comp): Add default member
1173 (priority_queue::priority_queue()): Add constructor and define as
1175 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
1176 Remove default argument for first parameter.
1177 * include/bits/stl_stack.h (stack::c): Add default member initializer.
1178 (stack::stack()): Add constructor and define as defaulted.
1179 (stack::stack(const _Sequence&)): Remove default argument.
1180 * testsuite/23_containers/priority_queue/requirements/
1181 explicit_instantiation/1.cc: Test explicit instantiation with
1182 non-DefaultConstructible sequence.
1183 * testsuite/23_containers/priority_queue/77528.cc: New test.
1184 * testsuite/23_containers/priority_queue/requirements/
1185 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
1186 * testsuite/23_containers/queue/77528.cc: New test.
1187 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1188 1.cc: Test explicit instantiation with non-DefaultConstructible
1190 * testsuite/23_containers/queue/requirements/explicit_instantiation/
1191 1_c++0x.cc: Replace with 1_c++98.cc.
1192 * testsuite/23_containers/stack/77528.cc: New test.
1193 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1194 1.cc: Test explicit instantiation with non-DefaultConstructible
1196 * testsuite/23_containers/stack/requirements/explicit_instantiation/
1197 1_c++0x.cc: Replace with 1_c++98.cc.
1199 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
1201 * include/bits/locale_facets_nonio.tcc
1202 (time_get::_M_extract_via_format): Avoid compilation errors with
1203 non-standard struct tm.
1205 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
1206 Jonathan Wakely <jwakely@redhat.com>
1208 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
1209 (is_specialization, strip_versioned_namespace): New helpers functions
1210 to work with symbols in the versioned namespace.
1211 (Printer.add_version): Add second name using versioned namespace.
1212 (add_one_template_type_printer, add_one_type_printer): Add second
1213 type printers using versioned namespace.
1214 (register_type_printers): Add template type printer for basic_string.
1215 (build_libstdcxx_dictionary): Remove dead code.
1216 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
1217 versioned namespace.
1218 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
1220 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
1222 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1225 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
1226 functions separately on darwin and if they're missing define
1227 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
1228 * config.h.in: Regenerate.
1229 * configure: Regenerate.
1230 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
1231 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
1233 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
1234 to detect correct thread_local destructors.
1235 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
1238 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
1239 Aditya Kumar <hiraditya@msn.com>
1242 * include/bits/basic_string.tcc
1243 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
1245 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1247 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
1248 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
1250 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
1251 Include <cassert> header.
1254 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
1255 * configure: Regenerate.
1257 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
1258 Jonathan Wakely <jwakely@redhat.com>
1260 * include/std/variant (variant, swap): Replace __and_ usage with fold
1263 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1266 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
1267 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
1268 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
1269 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
1271 * aclocal.m4: Regenerate.
1272 * configure: Regenerate.
1273 * Makefile.in, doc/Makefile.in, include/Makefile.in,
1274 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
1275 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
1276 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
1278 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
1280 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
1283 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
1284 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
1285 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
1286 move function objects.
1287 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
1288 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
1289 * testsuite/25_algorithms/sort/78991.cc: New test.
1291 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
1293 * include/bits/std_function.h (function::_Signature_type): Remove.
1294 (function::function(_Functor)): Adjust.
1296 2017-01-05 Tim Shen <timshen@google.com>
1299 * include/std/variant (__gen_vtable_impl): rename __unused to
1300 __dimensions to avoid naming conflict.
1302 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
1305 * config.h.in: Regenerate.
1306 * configure: Likewise.
1307 * configure.ac: Check for __cxa_thread_atexit.
1308 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
1309 Don't define __cxa_thread_atexit if libc provides it.
1311 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
1313 Implement 2801, Default-constructibility of unique_ptr.
1314 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
1315 (unique_ptr::_DeleterConstraint): Likewise.
1316 (unique_ptr()): Constrain.
1317 (unique_ptr(pointer)): Likewise.
1318 (unique_ptr(nullptr_t)): Likewise.
1319 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
1320 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
1321 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
1322 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
1323 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
1324 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
1325 * testsuite/20_util/unique_ptr/cons/default.cc: New.
1326 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
1328 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
1329 Jonathan Wakely <jwakely@redhat.com>
1332 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
1333 * config.h.in: Regenerate.
1334 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
1335 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
1336 exports for exception_ptr, nested_exception, and future conditional.
1337 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
1338 exports for exception_ptr, nested_exception, and future conditional.
1339 * configure: Regenerate.
1340 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
1341 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
1342 * libsupc++/eh_atomics.h: New file for internal use only.
1343 (__eh_atomic_inc, __eh_atomic_dec): New.
1344 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
1345 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
1346 (rethrow_exception): Use eh_atomics.h reference counting helpers.
1347 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
1348 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
1349 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
1350 * libsupc++/exception_ptr.h: Likewise.
1351 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
1352 * libsupc++/nested_exception.cc: Remove check for
1353 ATOMIC_INT_LOCK_FREE.
1354 * libsupc++/nested_exception.h: Likewise.
1355 * src/c++11/future.cc: Likewise.
1356 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
1357 * testsuite/18_support/nested_exception/*: Likewise.
1358 * testsuite/30_threads/async/*: Likewise.
1359 * testsuite/30_threads/future/*: Likewise.
1360 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
1361 * testsuite/30_threads/packaged_task/*: Likewise.
1362 * testsuite/30_threads/promise/*: Likewise.
1363 * testsuite/30_threads/shared_future/*: Likewise.
1365 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1367 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
1368 defaults to https; adjust reference.
1370 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
1373 * include/std/thread (thread(const thread&&)): Add deleted
1375 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
1377 * doc/xml/manual/spine.xml: Update copyright years.
1378 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
1379 * doc/xml/manual/test.xml: Likewise.
1380 * doc/html/*: Regenerate.
1382 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
1384 * doc/xml/faq.xml: Update address of C++ ABI link.
1385 * doc/xml/manual/abi.xml: Ditto.
1387 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1389 Update copyright years.
1391 Copyright (C) 2017 Free Software Foundation, Inc.
1393 Copying and distribution of this file, with or without modification,
1394 are permitted in any medium without royalty provided the copyright
1395 notice and this notice are preserved.