1 2017-12-07 David Edelsohn <dje.gcc@gmail.com>
4 * testsuite/ext/special_functions/hyperg/check_value.cc: Add
5 -ffp-contract=off. Add -ffloat-store for m68* and ia32.
6 * testsuite/tr1/5_numerical_facilities/special_functions/17_hyperg/check_value.cc: Same.
8 2017-12-07 Martin Sebor <msebor@redhat.com>
11 * include/ext/mt_allocator.h (_M_destroy_thread_key): Remove
14 2017-12-05 Jason Merrill <jason@redhat.com>
15 Jonathan Wakely <jwakely@redhat.com>
17 * include/bits/fs_fwd.h (copy, copy_file): Remove noexcept.
18 (permissions): Add noexcept.
19 * include/bits/fs_ops.h (permissions): Add noexcept.
20 * libsupc++/eh_throw.cc (__cxa_init_primary_exception): Add
23 2017-12-04 Jonathan Wakely <jwakely@redhat.com>
25 * include/bits/regex_compiler.tcc: Use C-style comment to work around
26 PR preprocessor/61638.
27 (__INSERT_REGEX_MATCHER): Replace GNU extension with __VA_ARGS__.
29 * config/io/basic_file_stdio.h (__basic_file): Remove name of unused
31 * include/bits/boost_concept_check.h: Add pragmas to disable
32 -Wunused-local-typedef warnings.
33 * include/bits/codecvt.h (codecvt_byname<char16_t, char, mbstate_t>)
34 (codecvt_byname<char32_t, char, mbstate_t>): Remove name of unused
36 * include/bits/locale_facets_nonio.tcc (time_get::do_get_weekday)
37 (time_get::do_get_monthname, time_get::do_get_year): Remove unused
39 * include/std/bitset (_Base_bitset<0>::_M_getword): Remove name of
41 * include/std/streambuf (_IsUnused): Define.
42 (basic_streambuf::imbue, basic_streambuf::pbackfail)
43 (basic_streambuf::overflow): Add macro to unused parameters.
44 * testsuite/24_iterators/operations/prev_neg.cc: Adjust dg-error.
46 2017-12-01 Jonathan Wakely <jwakely@redhat.com>
48 * include/experimental/string_view (basic_string_view::_S_compare):
49 Use value-init so narrowing conversions are not ill-formed.
50 * include/std/string_view (basic_string_view::_S_compare): Likewise.
52 * include/bits/basic_string.h (operator""s): Add pragmas to disable
53 -Wliteral-suffix warnings.
54 * include/experimental/string_view (operator""sv): Likewise.
55 * include/std/chrono (operator""h, operator""min, operator""s)
56 (operator""ms, operator""us, operator""ns): Likewise.
57 * include/std/complex (operator""if, operator""i, operator""il):
59 * include/std/string_view (operator""sv): Likewise.
60 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
62 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract): Add
65 * include/bits/node_handle.h (_Node_handle_common::operator=)
66 (_Node_handle_common::_M_swap): Add braces around debug assertions.
68 * include/ext/ropeimpl.h (rope::_S_dump): Use const char*.
70 * libsupc++/nested_exception.h (__throw_with_nested_impl): Add
73 * include/bits/regex_executor.tcc (_Executor::_M_rep_once_more):
74 Remove semi-colon after function body.
75 * include/bits/uniform_int_dist.h (_Power_of_2): Likewise.
77 * include/tr1/modified_bessel_func.tcc (__airy): Use value-init not
80 * include/std/type_traits (integral_constant): Make member functions
82 * include/std/utility (integer_sequence): Likewise.
84 2017-11-30 Jonathan Wakely <jwakely@redhat.com>
87 * include/bits/locale_facets_nonio.h (__timepunct::_M_am_pm_format):
88 Remove statement with no effect.
90 2017-11-30 Glen Joseph Fernandes <glenjofe@gmail.com>
92 * include/bits/ptr_traits.h (__to_address, to_address): Move static
94 * testsuite/20_util/to_address/1_neg.cc: New test.
96 2017-11-30 Jonathan Wakely <jwakely@redhat.com>
99 * include/bits/node_handle.h (_Node_handle::__pointer): Avoid forming
100 pointer-to-reference types.
101 * testsuite/23_containers/map/modifiers/insert/83226.cc: New test.
103 2017-11-29 John David Anglin <danglin@gcc.gnu.org>
105 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
107 2017-11-29 David Malcolm <dmalcolm@redhat.com>
109 * testsuite/20_util/duration/literals/range.cc: Update expected
110 line of a static_assert failure.
112 2017-11-28 Glen Joseph Fernandes <glenjofe@gmail.com>
114 * include/bits/ptr_traits.h (to_address): Implement to_address.
115 * testsuite/20_util/to_address/1.cc: New test.
117 2017-11-27 Stephan Bergmann <sbergman@redhat.com>
119 * include/std/string_view (basic_string_view::find_first_of): Add
122 * include/bits/unordered_map.h (unordered_map): Fix deduction guide.
123 * include/debug/unordered_map (unordered_map): Likewise.
125 2017-11-23 Jonathan Wakely <jwakely@redhat.com>
127 * libsupc++/new (launder): Add nodiscard attribute.
128 * testsuite/18_support/launder/nodiscard.cc: New test.
130 * include/bits/fs_path.h (path::empty): Add nodiscard attribute.
131 * include/bits/range_access.h (empty): Likewise.
132 * include/std/string_view (basic_string_view::empty): Likewise.
133 * testsuite/21_strings/basic_string_view/capacity/empty_neg.cc: New
135 * testsuite/24_iterators/range_access_cpp17_neg.cc: New test.
136 * testsuite/27_io/filesystem/path/query/empty_neg.cc: New test.
139 * include/std/type_traits (__not_): Explicitly convert to bool.
140 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
141 * testsuite/20_util/logical_traits/83134.cc: New test.
142 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
144 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
147 2017-11-22 Jonathan Wakely <jwakely@redhat.com>
150 * include/bits/stl_tree.h (_Rb_tree): Relax invocable checks for
151 comparison object pre-C++17.
153 2017-11-21 Jonathan Wakely <jwakely@redhat.com>
156 * include/bits/allocator.h (allocator<const _Tp>)
157 (allocator<volatile _Tp>, allocator<const volatile _Tp>): Add partial
159 * include/bits/forward_list.h (forward_list): Add static assertions.
160 * include/bits/hashtable.h (__cache_default): Use
161 __is_nothrow_invocable instead of __is_noexcept_hash.
162 (_Hashtable): Add static assertions.
163 * include/bits/hashtable_policy.h (__is_noexcept_hash): Remove.
164 * include/bits/stl_deque.h (deque): Add static assertions.
165 * include/bits/stl_function.h (_Identity<const _Tp>): Add partial
167 * include/bits/stl_list.h (list): Add static assertions.
168 * include/bits/stl_map.h (map): Likewise.
169 * include/bits/stl_multimap.h (multimap): Likewise.
170 * include/bits/stl_multiset.h (multiset): Likewise.
171 * include/bits/stl_set.h (set): Likewise.
172 * include/bits/stl_tree.h (_Rb_tree): Likewise.
173 * include/bits/stl_vector.h (vector): Likewise.
174 * include/bits/unordered_map.h (unordered_map, unordered_multimap):
175 Use typename instead of class in template-parameter-list and remove
177 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
179 * testsuite/23_containers/deque/48101-2_neg.cc: New test.
180 * testsuite/23_containers/deque/48101_neg.cc: New test.
181 * testsuite/23_containers/forward_list/48101-2_neg.cc: New test.
182 * testsuite/23_containers/forward_list/48101_neg.cc: New test.
183 * testsuite/23_containers/list/48101-2_neg.cc: New test.
184 * testsuite/23_containers/list/48101_neg.cc: New test.
185 * testsuite/23_containers/map/48101-2_neg.cc: New test.
186 * testsuite/23_containers/map/48101_neg.cc: New test.
187 * testsuite/23_containers/map/operations/31440.cc: Fix comparison
188 object to have const-qualified call operator.
189 * testsuite/23_containers/multimap/48101-2_neg.cc: New test.
190 * testsuite/23_containers/multimap/48101_neg.cc: New test.
191 * testsuite/23_containers/multiset/48101-2_neg.cc: New test.
192 * testsuite/23_containers/multiset/48101_neg.cc: New test.
193 * testsuite/23_containers/set/48101-2_neg.cc: New test.
194 * testsuite/23_containers/set/48101_neg.cc: New test.
195 * testsuite/23_containers/unordered_map/48101-2_neg.cc: New test.
196 * testsuite/23_containers/unordered_map/48101_neg.cc: New test.
197 * testsuite/23_containers/unordered_multimap/48101-2_neg.cc: New test.
198 * testsuite/23_containers/unordered_multimap/48101_neg.cc: New test.
199 * testsuite/23_containers/unordered_multiset/48101-2_neg.cc: New test.
200 * testsuite/23_containers/unordered_multiset/48101_neg.cc: New test.
201 * testsuite/23_containers/unordered_set/48101-2_neg.cc: New test.
202 * testsuite/23_containers/unordered_set/48101_neg.cc: New test.
203 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
204 dg-error line number.
205 * testsuite/23_containers/vector/48101-2_neg.cc: New test.
206 * testsuite/23_containers/vector/48101_neg.cc: New test.
208 2017-11-21 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
210 * doc/xml/manual/using.xml (manual.intro.using.macros): Move
211 variablelist element at the end of its list.
213 2017-11-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
215 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add rtems*.
216 (GLIBCXX_ENABLE_FILESYSTEM_TS): Likewise.
217 * configure: Regenerate.
219 2017-11-20 François Dumont <fdumont@gcc.gnu.org>
221 * include/bits/streambuf_iterator.h (istreambuf_iterator<>): Declare
222 std::advance for istreambuf_iterator of char types to be friend.
223 (std::advance(istreambuf_iterator&, _Distance)): New overload.
224 * include/std/streambuf (basic_streambuf<>): Declare std::advance for
225 istreambuf_iterator of char types to be friend.
226 * testsuite/22_locale/money_get/get/char/9.cc: Have
227 istreambuf_iterator created on the fly when calling money_get<>::get.
228 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
229 * testsuite/24_iterators/istreambuf_iterator/debug/1_neg.cc: New.
230 * testsuite/24_iterators/istreambuf_iterator/debug/2_neg.cc: New.
231 * testsuite/25_algorithms/advance/istreambuf_iterators/char/1.cc: New.
232 * testsuite/25_algorithms/advance/istreambuf_iterators/char/1_neg.cc:
234 * testsuite/25_algorithms/advance/istreambuf_iterators/char/2.cc: New.
235 * testsuite/25_algorithms/advance/istreambuf_iterators/char/2_neg.cc:
237 * testsuite/25_algorithms/advance/istreambuf_iterators/char/3_neg.cc:
239 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/1.cc:
241 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/1_neg.cc:
243 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/2.cc:
245 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/2_neg.cc:
247 * testsuite/25_algorithms/advance/istreambuf_iterators/wchar_t/3_neg.cc:
249 * testsuite/25_algorithms/find/istreambuf_iterators/char/2.cc: Leverage
250 on std::advance overload.
251 * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc:
254 2017-11-20 Jonathan Wakely <jwakely@redhat.com>
256 * testsuite/special_functions/18_riemann_zeta/check_value.cc: Fix
257 duplicate dg-options directive.
258 * testsuite/tr1/5_numerical_facilities/special_functions/
259 20_riemann_zeta/check_value_neg.cc: Likewise.
261 2017-11-20 Ville Voutilainen <ville.voutilainen@gmail.com>
264 * include/bits/stl_iterator_base_funcs.h (next):
265 Use InputIterator instead of ForwardIterator.
266 * testsuite/24_iterators/operations/lwg2353.cc: New.
267 * testsuite/24_iterators/operations/next_neg.cc: Remove.
269 2017-11-18 Edward Smith-Rowland <3dw4rd@verizon.net>
271 PR libstdc++/pr66689 - comp_ellint_3 and ellint_3 return garbage values
272 * include/tr1/ell_integral.tcc: Correct the nu sign convention
273 in ellint_3 and comp_ellint_3.
274 * testsuite/tr1/5_numerical_facilities/special_functions/
275 06_comp_ellint_3/check_value.cc: Regen with correct values.
276 * testsuite/tr1/5_numerical_facilities/special_functions/
277 14_ellint_3/check_value.cc: Ditto.
278 * testsuite/special_functions/06_comp_ellint_3/check_value.cc: Ditto.
279 * testsuite/special_functions/13_ellint_3/check_value.cc: Ditto.
280 * testsuite/tr1/5_numerical_facilities/special_functions/
281 01_assoc_laguerre/check_value.cc: Regen.
282 * testsuite/tr1/5_numerical_facilities/special_functions/
283 02_assoc_legendre/check_value.cc: Regen.
284 * testsuite/tr1/5_numerical_facilities/special_functions/
285 03_beta/check_value.cc: Regen.
286 * testsuite/tr1/5_numerical_facilities/special_functions/
287 04_comp_ellint_1/check_value.cc: Regen.
288 * testsuite/tr1/5_numerical_facilities/special_functions/
289 05_comp_ellint_2/check_value.cc: Regen.
290 * testsuite/tr1/5_numerical_facilities/special_functions/
291 07_conf_hyperg/check_value.cc: Regen.
292 * testsuite/tr1/5_numerical_facilities/special_functions/
293 08_cyl_bessel_i/check_value.cc: Regen.
294 * testsuite/tr1/5_numerical_facilities/special_functions/
295 09_cyl_bessel_j/check_value.cc: Regen.
296 * testsuite/tr1/5_numerical_facilities/special_functions/
297 10_cyl_bessel_k/check_value.cc: Regen.
298 * testsuite/tr1/5_numerical_facilities/special_functions/
299 11_cyl_neumann/check_value.cc: Regen.
300 * testsuite/tr1/5_numerical_facilities/special_functions/
301 12_ellint_1/check_value.cc: Regen.
302 * testsuite/tr1/5_numerical_facilities/special_functions/
303 13_ellint_2/check_value.cc: Regen.
304 * testsuite/tr1/5_numerical_facilities/special_functions/
305 15_expint/check_value_neg.cc: Regen.
306 * testsuite/tr1/5_numerical_facilities/special_functions/
307 16_hermite/check_value.cc: Regen.
308 * testsuite/tr1/5_numerical_facilities/special_functions/
309 17_hyperg/check_value.cc: Regen.
310 * testsuite/tr1/5_numerical_facilities/special_functions/
311 18_laguerre/check_value.cc: Regen.
312 * testsuite/tr1/5_numerical_facilities/special_functions/
313 19_legendre/check_value.cc: Regen.
314 * testsuite/tr1/5_numerical_facilities/special_functions/
315 20_riemann_zeta/check_value_neg.cc: Regen.
316 * testsuite/tr1/5_numerical_facilities/special_functions/
317 21_sph_bessel/check_value.cc: Regen.
318 * testsuite/tr1/5_numerical_facilities/special_functions/
319 22_sph_legendre/check_value.cc: Regen.
320 * testsuite/tr1/5_numerical_facilities/special_functions/
321 23_sph_neumann/check_value.cc: Regen.
322 * testsuite/ext/special_functions/conf_hyperg/check_value.cc: Regen.
323 * testsuite/ext/special_functions/hyperg/check_value.cc: Regen.
324 * testsuite/special_functions/01_assoc_laguerre/check_value.cc: Regen.
325 * testsuite/special_functions/02_assoc_legendre/check_value.cc: Regen.
326 * testsuite/special_functions/03_beta/check_value.cc: Regen.
327 * testsuite/special_functions/04_comp_ellint_1/check_value.cc: Regen.
328 * testsuite/special_functions/05_comp_ellint_2/check_value.cc: Regen.
329 * testsuite/special_functions/07_cyl_bessel_i/check_value.cc: Regen.
330 * testsuite/special_functions/08_cyl_bessel_j/check_value.cc: Regen.
331 * testsuite/special_functions/09_cyl_bessel_k/check_value.cc: Regen.
332 * testsuite/special_functions/10_cyl_neumann/check_value.cc: Regen.
333 * testsuite/special_functions/11_ellint_1/check_value.cc: Regen.
334 * testsuite/special_functions/12_ellint_2/check_value.cc: Regen.
335 * testsuite/special_functions/14_expint/check_value.cc: Regen.
336 * testsuite/special_functions/15_hermite/check_value.cc: Regen.
337 * testsuite/special_functions/16_laguerre/check_value.cc: Regen.
338 * testsuite/special_functions/17_legendre/check_value.cc: Regen.
339 * testsuite/special_functions/18_riemann_zeta/check_value.cc: Regen.
340 * testsuite/special_functions/19_sph_bessel/check_value.cc: Regen.
341 * testsuite/special_functions/20_sph_legendre/check_value.cc: Regen.
342 * testsuite/special_functions/21_sph_neumann/check_value.cc: Regen.
343 * testsuite/tr1/5_numerical_facilities/special_functions/
344 06_comp_ellint_3/pr66689.cc: New.
345 * testsuite/tr1/5_numerical_facilities/special_functions/
346 14_ellint_3/pr66689.cc: New.
347 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc: New.
348 * testsuite/special_functions/13_ellint_3/pr66689.cc: New.
350 2017-11-18 Edward Smith-Rowland <3dw4rd@verizon.net>
351 Expose Airy functions as an extenaion.
352 * include/bits/specfun.h: Expose airy_ai and airy_bi.
353 * include/tr1/modified_bessel_func.tcc: Treat NaN and inf arg, return.
354 * testsuite/ext/special_functions/airy_ai/check_nan.cc: New.
355 * testsuite/ext/special_functions/airy_ai/check_value.cc: New.
356 * testsuite/ext/special_functions/airy_ai/compile.cc: New.
357 * testsuite/ext/special_functions/airy_bi/check_nan.cc: New.
358 * testsuite/ext/special_functions/airy_bi/check_value.cc: New.
359 * testsuite/ext/special_functions/airy_bi/compile.cc: New.
361 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
363 * acinclude.m4: Add cet.m4.
364 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
366 * libsupc++/Makefile.am: Use Add EXTRA_CFLAGS.
367 * Makefile.in: Regenerate.
368 * configure: Likewise.
369 * doc/Makefile.in: Likewise.
370 * include/Makefile.in: Likewise.
371 * libsupc++/Makefile.in: Likewise.
372 * po/Makefile.in: Likewise.
373 * python/Makefile.in: Likewise.
374 * src/Makefile.in: Likewise.
375 * src/c++11/Makefile.in: Likewise.
376 * src/c++98/Makefile.in: Likewise.
377 * src/filesystem/Makefile.in: Likewise.
378 * testsuite/Makefile.in: Likewise.
380 2017-11-17 Jonathan Wakely <jwakely@redhat.com>
383 * include/std/fstream (basic_filebuf::_If_path): Move to
384 namespace-scope and rename to _If_fs_path.
385 (basic_filebuf::open): Use new name.
386 (basic_ifstream(_Path, ios::openmode))
387 (basic_ifstream::open(_Path, ios::openmode))
388 (basic_ofstream(_Path, ios::openmode))
389 (basic_ofstream::open(_Path, ios::openmode))
390 (basic_fstream(_Path, ios::openmode))
391 (basic_fstream::open(_Path, ios::openmode)): Use _If_fs_path.
392 * testsuite/27_io/basic_filebuf/open/char/path.cc: Test with filename
394 * testsuite/27_io/basic_fstream/cons/char/path.cc: Likewise.
395 * testsuite/27_io/basic_fstream/open/char/path.cc: Likewise.
396 * testsuite/27_io/basic_ifstream/cons/char/path.cc: Likewise.
397 * testsuite/27_io/basic_ifstream/open/char/path.cc: Likewise.
398 * testsuite/27_io/basic_ofstream/cons/char/path.cc: Likewise.
399 * testsuite/27_io/basic_ofstream/open/char/path.cc: Likewise.
402 2017-11-17 Marc Glisse <marc.glisse@inria.fr>
404 * include/bits/vector.tcc (vector::_M_realloc_insert): Cache old
405 values before the allocation.
407 2017-11-16 Jonathan Wakely <jwakely@redhat.com>
409 * include/std/future (shared_future): Add noexcept to copy constructor
410 and copy-assignment operator (LWG 2799).
412 2017-11-15 Ville Voutilainen <ville.voutilainen@gmail.com>
415 * include/std/numeric (gcd): Use remove_cv_t, not remove_cv.
417 2017-11-15 Jonathan Wakely <jwakely@redhat.com>
419 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Leave
421 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
422 Check for past-the-end before dereferencing.
423 * testsuite/experimental/filesystem/iterators/
424 recursive_directory_iterator.cc: Likewise.
426 * include/bits/range_access.h (size, empty, data): Add conditional
427 noexcept to generic overloads.
429 2017-11-14 Ville Voutilainen <ville.voutilainen@gmail.com>
431 Implement LWG 2733 and LWG 2759
432 * include/experimental/numeric (gcd): Reject cv-qualified bool.
434 * include/std/numeric (gcd): Likewise.
436 * testsuite/26_numerics/gcd/gcd_neg.cc: Add tests and adjust.
437 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
439 2017-11-14 Jonathan Wakely <jwakely@redhat.com>
441 * include/bits/locale_conv.h (wbuffer_convert::_M_conv_get): Fix typo.
442 * testsuite/22_locale/conversions/buffer/3.cc: New test.
444 2017-11-10 Jonathan Wakely <jwakely@redhat.com>
446 * testsuite/util/testsuite_tr1.h (ThrowMoveConsClass): Use noexcept.
449 * include/std/fstream (basic_ifstream::open, basic_ofstream::open)
450 (basic_fstream::open): Fix missing return.
452 2017-11-07 Jonathan Wakely <jwakely@redhat.com>
454 * src/filesystem/ops-common.h (make_file_type) [S_ISSOCK]: Only use
455 S_ISSOCK when defined.
457 2017-11-06 François Dumont <fdumont@gcc.gnu.org>
459 * testsuite/libstdc++-prettyprinters/tr1.cc: Compile with -O0.
461 2017-11-06 Martin Liska <mliska@suse.cz>
463 * testsuite/27_io/basic_fstream/cons/char/path.cc (main):
464 Return a value for functions with non-void return type,
465 or change type to void, or add -Wno-return-type for test.
466 * testsuite/27_io/basic_ifstream/cons/char/path.cc (main):
468 * testsuite/27_io/basic_ofstream/open/char/path.cc (main):
471 2017-11-06 Paolo Carlini <paolo.carlini@oracle.com>
473 * testsuite/20_util/optional/cons/deduction.cc: Avoid -Wreturn-type
475 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
476 * testsuite/20_util/pair/traits.cc: Likewise.
477 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
478 * testsuite/20_util/variant/compile.cc: Likewise.
479 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
480 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
483 2017-11-05 Gerald Pfeifer <gerald@pfeifer.com>
485 * doc/xml/manual/abi.xml: Move docs.oracle.com references to https.
487 2017-11-03 Jonathan Wakely <jwakely@redhat.com>
489 * include/std/type_traits (endian): Define new enumeration type.
490 * testsuite/20_util/endian/1.cc: New test.
492 * include/bits/node_handle.h (_Node_insert_return::get): Remove, as
495 2017-11-01 François Dumont <fdumont@gcc.gnu.org>
497 * python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Strip
498 typename versioned namespace before the substitution.
499 (StdExpOptionalPrinter.__init__): Likewise.
500 (StdVariantPrinter.__init__): Likewise.
501 (Printer.add_version): Inject versioned namespace after std or
503 (build_libstdcxx_dictionary): Adapt add_version usages, always pass
504 namespace first and symbol second.
506 2017-11-01 Jonathan Wakely <jwakely@redhat.com>
509 * src/filesystem/std-path.cc (path::lexically_normal): Remove dot-dot
511 * testsuite/27_io/filesystem/path/generation/normal.cc: Add testcase.
512 * testsuite/util/testsuite_fs.h (compare_paths): Improve exception
515 2017-10-30 Jonathan Wakely <jwakely@redhat.com>
517 * include/Makefile.am (stamp-bits-sup): Do not create broken symlink
519 * include/Makefile.in: Regenerate.
521 * include/std/fstream (basic_ifstream, basic_ofstream, basic_fstream):
522 Remove outdated comments about calling c_str() to create a file stream
524 (basic_ofstream::basic_ofstream, basic_ofstream::open): Remove
525 redundant ios_mode::trunc bits from default arguments and comments.
527 * doc/xml/faq.xml: Adjust "What is libstdc++?" answer slightly.
529 * include/bits/hashtable_policy.h: Include <tuple>.
530 * include/std/unordered_map: Only include <bits/stl_pair.h> instead
531 of <utility> and <tuple>.
532 * include/std/unordered_set: Likewise.
534 2017-10-30 Ville Voutilainen <ville.voutilainen@gmail.com>
537 * include/debug/array (get(const array<_Tp, _Nm>&&)): New.
538 * include/std/array (get(const array<_Tp, _Nm>&&)): Likewise.
539 * include/std/tuple (get(const tuple<_Elements...>&&)): Likewise.
540 (get(const tuple<_Types...>&&)): Likewise.
541 * include/std/utility
542 (__pair_get::__const_move_get(const std::pair<_Tp1, _Tp2>&&)):
544 (get(const std::pair<_Tp1, _Tp2>&&)): Likewise.
545 (get(const pair<_Tp, _Up>&&)): Likewise.
546 (get(const pair<_Up, _Tp>&&)): Likewise.
547 * testsuite/20_util/pair/astuple/get.cc: Add tests for
549 * testsuite/20_util/pair/astuple/get_by_type.cc: Likewise.
550 * testsuite/20_util/tuple/element_access/get2.cc: Likewise.
551 * testsuite/20_util/tuple/element_access/get2_by_type.cc: Likewise.
552 * testsuite/23_containers/array/tuple_interface/get.cc: Likewise.
553 * testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc:
555 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
558 2017-10-27 Jonathan Wakely <jwakely@redhat.com>
560 * include/bits/node_handle.h (_Node_insert_return::get): Avoid
561 use of std::tie and std::get.
563 * include/Makefile.am: Put headers in alphabetical order.
564 * include/Makefile.in: Regenerate.
566 * include/bits/fs_dir.h (directory_iterator): Remove noexcept from
567 constructors and increment member (LWG 3013).
568 (recursive_directory_iterator): Likewise.
569 * include/bits/fs_ops.h (copy, copy_file, create_directories)
570 (is_empty, remove_all): Remove noexcept (LWG 3013 and LWG 3014).
571 * src/filesystem/std-dir.cc (directory_iterator::increment)
572 (recursive_directory_iterator::increment): Remove noexcept.
573 * src/filesystem/std-ops.cc (copy, copy_file, create_directories)
574 (is_empty, remove_all): Remove noexcept
576 * include/bits/fs_dir.h (file_status): Make default constructor
577 non-explicit (LWG 2787).
578 * testsuite/27_io/filesystem/file_status/1.cc: New test.
579 * testsuite/experimental/filesystem/file_status/1.cc: New test.
581 * include/std/fstream (basic_filebuf::_If_path): New SFINAE helper.
582 (basic_filebuf::open<Path>(const Path&, const ios_base::openmode&))
583 (basic_ifstream<Path>(const Path&, const ios_base::openmode&))
584 (basic_ifstream::open<Path>(const Path&, const ios_base::openmode&))
585 (basic_ofstream<Path>(const Path&, const ios_base::openmode&))
586 (basic_ofstream::open<Path>(const Path&, const ios_base::openmode&))
587 (basic_fstream<Path>(const Path&, const ios_base::openmode&))
588 (basic_fstream::open<Path>(const Path&, const ios_base::openmode&)):
589 New constructors and member functions.
590 * testsuite/27_io/basic_filebuf/open/char/path.cc: New test.
591 * testsuite/27_io/basic_fstream/cons/char/path.cc: New test.
592 * testsuite/27_io/basic_fstream/open/char/path.cc: New test.
593 * testsuite/27_io/basic_ifstream/cons/char/path.cc: New test.
594 * testsuite/27_io/basic_ifstream/open/char/path.cc: New test.
595 * testsuite/27_io/basic_ofstream/cons/char/path.cc: New test.
596 * testsuite/27_io/basic_ofstream/open/char/path.cc: New test.
598 * include/bits/fs_path.h (path::format): Define new enumeration type.
599 (path(string_type&&), path<Source>(const Source&))
600 (path<InputIterator>(InputIterator, InputIterator))
601 (path<Source>(const Source&, const locale&))
602 (path<InputIterator>(InputIterator, InputIterator, const locale&)):
603 Add format parameter.
604 * testsuite/27_io/filesystem/path/construct/format.cc: New test.
606 * include/bits/stl_algo.h (__find_if_not_n, generate_n): Cast to void
607 to ensure overloaded comma not used.
608 * include/bits/stl_algobase.h (__fill_n_a, equal): Likewise.
609 * include/bits/stl_uninitialized.h (__uninitialized_fill_n)
610 (__uninitialized_fill_n_a, __uninitialized_default_n_1)
611 (__uninitialized_default_n_a, __uninitialized_copy_n)
612 (__uninitialized_copy_n_pair): Likewise
613 * testsuite/20_util/specialized_algorithms/memory_management_tools/1.cc:
614 Use test iterator wrappers with overloaded comma operator.
615 * testsuite/25_algorithms/fill_n/1.cc: Likewise.
616 * testsuite/25_algorithms/generate_n/1.cc: New test.
617 * testsuite/25_algorithms/stable_partition/1.cc: New test.
618 * testsuite/util/testsuite_iterators.h (operator,): Add deleted
619 non-member comma operator with iterator wrappers as right operand.
621 2017-10-26 Ville Voutilainen <ville.voutilainen@gmail.com>
623 Deduction guides for associative containers, debug mode deduction
625 * include/bits/stl_iterator.h (__iter_key_t)
626 (__iter_val_t, __iter_to_alloc_t): New.
627 * include/bits/stl_map.h: Add deduction guides.
628 * include/bits/stl_multimap.h: Likewise.
629 * include/bits/stl_multiset.h: Likewise.
630 * include/bits/stl_set.h: Likewise.
631 * include/bits/unordered_map.h: Likewise.
632 * include/bits/unordered_set.h: Likewise.
633 * include/debug/deque: Likewise.
634 * include/debug/forward_list: Likewise.
635 * include/debug/list: Likewise.
636 * include/debug/map.h: Likewise.
637 * include/debug/multimap.h: Likewise.
638 * include/debug/multiset.h: Likewise.
639 * include/debug/set.h: Likewise.
640 * include/debug/unordered_map: Likewise.
641 * include/debug/unordered_set: Likewise.
642 * include/debug/vector: Likewise.
643 * testsuite/23_containers/map/cons/deduction.cc: New.
644 * testsuite/23_containers/multimap/cons/deduction.cc: Likewise.
645 * testsuite/23_containers/multiset/cons/deduction.cc: Likewise.
646 * testsuite/23_containers/set/cons/deduction.cc: Likewise.
647 * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise.
648 * testsuite/23_containers/unordered_multimap/cons/deduction.cc:
650 * testsuite/23_containers/unordered_multiset/cons/deduction.cc:
652 * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise.
654 2017-10-25 Jonathan Wakely <jwakely@redhat.com>
656 * doc/xml/manual/status_cxx2017.xml: Update C++17 status, and
657 information on feature-test macros.
658 * doc/html/*: Regenerate.
661 * include/std/array (tuple_size, tuple_element): Change class-key
662 from class to struct, to avoid annoying Clang warnings.
665 * src/filesystem/ops.cc (read_symlink): Handle st_size being zero.
666 * src/filesystem/std-ops.cc (read_symlink): Likewise.
667 (do_copy_file) [!NEED_DO_COPY_FILE]: Avoid multiple definitions.
669 * src/filesystem/std-path.cc (path::lexically_normal): Add missing
670 step to algorithm, for removing dot-dot elements after root-directory.
671 * testsuite/27_io/filesystem/operations/canonical.cc: Use
672 compare_paths for more exhaustive checks.
673 * testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
674 * testsuite/27_io/filesystem/path/append/path.cc: Likewise.
675 * testsuite/27_io/filesystem/path/concat/path.cc: Likewise.
676 * testsuite/27_io/filesystem/path/concat/strings.cc: Fix comment.
677 * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise.
678 * testsuite/27_io/filesystem/path/decompose/root_directory.cc:
680 * testsuite/27_io/filesystem/path/generation/normal.cc: Use
681 compare_paths for more exhaustive checks. Add extra testcases.
682 * testsuite/27_io/filesystem/path/generation/proximate.cc: Use
683 compare_paths for more exhaustive checks.
684 * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise.
685 * testsuite/27_io/filesystem/path/generic/generic_string.cc: Remove
687 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: Fix
689 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: Use
690 compare_paths for more exhaustive checks.
691 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc:
693 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc:
695 * testsuite/util/testsuite_fs.h (compare_paths): Also compare native
699 * testsuite/27_io/filesystem/operations/permissions.cc: Fix test.
701 2017-10-24 François Dumont <fdumont@gcc.gnu.org>
703 * testsuite/lib/libstdc++.exp (check_v3_target_normal_mode): Add
705 (check_v3_target_normal_namespace): New.
706 * testsuite/lib/dg-options.exp (dg-require-normal-namespace): New.
707 * testsuite/18_support/headers/limits/synopsis.cc: Add latter.
708 * testsuite/20_util/from_chars/requirements.cc: Likewise.
709 * testsuite/20_util/headers/functional/synopsis.cc: Likewise.
710 * testsuite/20_util/headers/memory/synopsis.cc: Likewise.
711 * testsuite/20_util/headers/utility/synopsis.cc: Likewise.
712 * testsuite/20_util/to_chars/requirements.cc: Likewise.
713 * testsuite/21_strings/headers/string/synopsis.cc: Likewise.
714 * testsuite/22_locale/headers/locale/synopsis.cc: Likewise.
715 * testsuite/23_containers/headers/bitset/synopsis.cc: Likewise.
716 * testsuite/23_containers/headers/deque/synopsis.cc: Likewise.
717 * testsuite/23_containers/headers/forward_list/synopsis.cc: Likewise.
718 * testsuite/23_containers/headers/list/synopsis.cc: Likewise.
719 * testsuite/23_containers/headers/map/synopsis.cc: Likewise.
720 * testsuite/23_containers/headers/queue/synopsis.cc: Likewise.
721 * testsuite/23_containers/headers/set/synopsis.cc: Likewise.
722 * testsuite/23_containers/headers/stack/synopsis.cc: Likewise.
723 * testsuite/23_containers/headers/vector/synopsis.cc: Likewise.
724 * testsuite/23_containers/map/modifiers/erase/abi_tag.cc: Likewise.
725 * testsuite/23_containers/multimap/modifiers/erase/abi_tag.cc: Likewise.
726 * testsuite/23_containers/multiset/modifiers/erase/abi_tag.cc: Likewise.
727 * testsuite/23_containers/set/modifiers/erase/abi_tag.cc: Likewise.
728 * testsuite/24_iterators/headers/iterator/synopsis.cc: Likewise.
729 * testsuite/24_iterators/headers/iterator/synopsis_c++11.cc: Likewise.
730 * testsuite/24_iterators/headers/iterator/synopsis_c++14.cc: Likewise.
731 * testsuite/24_iterators/headers/iterator/synopsis_c++17.cc: Likewise.
732 * testsuite/26_numerics/complex/abi_tag.cc: Likewise.
733 * testsuite/26_numerics/headers/complex/synopsis.cc: Likewise.
734 * testsuite/26_numerics/headers/valarray/synopsis.cc: Likewise.
735 * testsuite/27_io/headers/fstream/synopsis.cc: Likewise.
736 * testsuite/27_io/headers/ios/synopsis.cc: Likewise.
737 * testsuite/27_io/headers/istream/synopsis.cc: Likewise.
738 * testsuite/27_io/headers/ostream/synopsis.cc: Likewise.
739 * testsuite/27_io/headers/sstream/synopsis.cc: Likewise.
740 * testsuite/27_io/headers/streambuf/synopsis.cc: Likewise.
742 2017-10-24 Jonathan Wakely <jwakely@redhat.com>
744 * config/locale/gnu/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Ignore
745 -Wattribute-alias warnings.
746 * src/c++11/istream-inst.cc: Likewise.
747 * src/c++11/locale-inst.cc: Likewise.
748 * src/c++11/ostream-inst.cc: Likewise.
749 * src/c++11/wlocale-inst.cc: Likewise.
750 * src/c++98/hash-long-double-tr1-aux.cc: Likewise.
752 * include/bits/string_view.tcc (find_first_of, find_last_of)
753 (find_first_not_of, find_last_not_of): Add noexcept.
754 * include/std/string_view (basic_string_view(const _CharT*))
755 (basic_string_view(const _CharT*, size_type))
756 (front, back, remove_prefix, remove_suffix, find, rfind)
757 (find_first_of, find_first_not_of): Add noexcept.
758 (at(size_type), _S_compare(size_type, size_type)): Replace conditional
759 expressions with if statements.
760 (copy(_CharT*, size_type, size_type), substr(size_type, size_type)):
761 Use _M_check for length checks.
762 (compare(basic_string_view)): Reformat.
763 (_M_check(size_type, const char)): Add noexcept(false).
764 (_M_limit(size_type, size_type)): Use noexcept not _GLIBCXX_NOEXCEPT.
767 * include/experimental/string_view (operator""sv): Add noexcept.
768 * include/std/string_view (operator""sv): Likewise.
770 2017-10-23 Jonathan Wakely <jwakely@redhat.com>
772 * include/Makefile.am: Add new headers for C++17 filesystem library.
773 * include/Makefile.in: Regenerate.
774 * include/bits/fs_dir.h: New header, based on Filesystem TS code in
775 include/experimental/bits directory.
776 * include/bits/fs_fwd.h: Likewise.
777 * include/bits/fs_ops.h: Likewise.
778 * include/bits/fs_path.h: Likewise.
779 * include/experimental/bits/fs_dir.h: Rename Doxygen group.
780 * include/experimental/bits/fs_fwd.h: Likewise.
781 * include/experimental/bits/fs_ops.h: Likewise.
782 * include/experimental/bits/fs_path.h: Likewise.
783 * include/experimental/filesystem (filesystem_error::_M_gen_what):
784 Remove inline definition.
785 * include/precompiled/stdc++.h: Add <filesystem> to precompiled
787 * include/std/filesystem: New header.
788 * python/libstdcxx/v6/printers.py: Enable printer for std::filesystem
790 * src/filesystem/Makefile.am: Add new files. Compile as C++17.
791 * src/filesystem/Makefile.in: Regenerate.
792 * src/filesystem/cow-dir.cc: Update comment.
793 * src/filesystem/cow-ops.cc: Likewise.
794 * src/filesystem/cow-path.cc: Likewise.
795 * src/filesystem/cow-std-dir.cc: New file.
796 * src/filesystem/cow-std-ops.cc: New file.
797 * src/filesystem/cow-std-path.cc: New file.
798 * src/filesystem/dir-common.h (_Dir_base, get_file_type): New header
800 * src/filesystem/dir.cc (_Dir): Derive from _Dir_base.
801 (open_dir): Move to _Dir_base constructor.
802 (get_file_type): Move to dir-common.h.
803 (recurse): Move to _Dir_base::should_recurse.
804 * src/filesystem/ops-common.h: New header for common code.
805 * src/filesystem/ops.cc (is_set, make_file_type, make_file_status)
806 (is_not_found_errno, file_time, do_copy_file): Move to ops-common.h.
807 * src/filesystem/path.cc (filesystem_error::_M_gen_what): Define.
808 * src/filesystem/std-dir.cc: New file, based on Filesystem TS code.
809 * src/filesystem/std-ops.cc: Likewise.
810 * src/filesystem/std-dir.cc: Likewise.
811 * testsuite/27_io/filesystem/iterators/directory_iterator.cc: New
813 * testsuite/27_io/filesystem/iterators/pop.cc: New test.
814 * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
816 * testsuite/27_io/filesystem/operations/absolute.cc: New test.
817 * testsuite/27_io/filesystem/operations/canonical.cc: New test.
818 * testsuite/27_io/filesystem/operations/copy.cc: New test.
819 * testsuite/27_io/filesystem/operations/copy_file.cc: New test.
820 * testsuite/27_io/filesystem/operations/create_directories.cc: New
822 * testsuite/27_io/filesystem/operations/create_directory.cc: New test.
823 * testsuite/27_io/filesystem/operations/create_symlink.cc: New test.
824 * testsuite/27_io/filesystem/operations/current_path.cc: New test.
825 * testsuite/27_io/filesystem/operations/equivalent.cc: New test.
826 * testsuite/27_io/filesystem/operations/exists.cc: New test.
827 * testsuite/27_io/filesystem/operations/file_size.cc: New test.
828 * testsuite/27_io/filesystem/operations/is_empty.cc: New test.
829 * testsuite/27_io/filesystem/operations/last_write_time.cc: New test.
830 * testsuite/27_io/filesystem/operations/permissions.cc: New test.
831 * testsuite/27_io/filesystem/operations/proximate.cc: New test.
832 * testsuite/27_io/filesystem/operations/read_symlink.cc: New test.
833 * testsuite/27_io/filesystem/operations/relative.cc: New test.
834 * testsuite/27_io/filesystem/operations/remove_all.cc: New test.
835 * testsuite/27_io/filesystem/operations/space.cc: New test.
836 * testsuite/27_io/filesystem/operations/status.cc: New test.
837 * testsuite/27_io/filesystem/operations/symlink_status.cc: New test.
838 * testsuite/27_io/filesystem/operations/temp_directory_path.cc: New
840 * testsuite/27_io/filesystem/operations/weakly_canonical.cc: New test.
841 * testsuite/27_io/filesystem/path/append/path.cc: New test.
842 * testsuite/27_io/filesystem/path/assign/assign.cc: New test.
843 * testsuite/27_io/filesystem/path/assign/copy.cc: New test.
844 * testsuite/27_io/filesystem/path/compare/compare.cc: New test.
845 * testsuite/27_io/filesystem/path/compare/path.cc: New test.
846 * testsuite/27_io/filesystem/path/compare/strings.cc: New test.
847 * testsuite/27_io/filesystem/path/concat/path.cc: New test.
848 * testsuite/27_io/filesystem/path/concat/strings.cc: New test.
849 * testsuite/27_io/filesystem/path/construct/copy.cc: New test.
850 * testsuite/27_io/filesystem/path/construct/default.cc: New test.
851 * testsuite/27_io/filesystem/path/construct/locale.cc: New test.
852 * testsuite/27_io/filesystem/path/construct/range.cc: New test.
853 * testsuite/27_io/filesystem/path/construct/string_view.cc: New test.
854 * testsuite/27_io/filesystem/path/decompose/extension.cc: New test.
855 * testsuite/27_io/filesystem/path/decompose/filename.cc: New test.
856 * testsuite/27_io/filesystem/path/decompose/parent_path.cc: New test.
857 * testsuite/27_io/filesystem/path/decompose/relative_path.cc: New
859 * testsuite/27_io/filesystem/path/decompose/root_directory.cc: New
861 * testsuite/27_io/filesystem/path/decompose/root_name.cc: New test.
862 * testsuite/27_io/filesystem/path/decompose/root_path.cc: New test.
863 * testsuite/27_io/filesystem/path/decompose/stem.cc: New test.
864 * testsuite/27_io/filesystem/path/generation/normal.cc: New test.
865 * testsuite/27_io/filesystem/path/generation/proximate.cc: New test.
866 * testsuite/27_io/filesystem/path/generation/relative.cc: New test.
867 * testsuite/27_io/filesystem/path/generic/generic_string.cc: New test.
868 * testsuite/27_io/filesystem/path/itr/traversal.cc: New test.
869 * testsuite/27_io/filesystem/path/modifiers/clear.cc: New test.
870 * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: New
872 * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: New
874 * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: New
876 * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc: New
878 * testsuite/27_io/filesystem/path/modifiers/swap.cc: New test.
879 * testsuite/27_io/filesystem/path/native/string.cc: New test.
880 * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: New test.
881 * testsuite/27_io/filesystem/path/query/empty.cc: New test.
882 * testsuite/27_io/filesystem/path/query/has_extension.cc: New test.
883 * testsuite/27_io/filesystem/path/query/has_filename.cc: New test.
884 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: New test.
885 * testsuite/27_io/filesystem/path/query/has_relative_path.cc: New
887 * testsuite/27_io/filesystem/path/query/has_root_directory.cc: New
889 * testsuite/27_io/filesystem/path/query/has_root_name.cc: New test.
890 * testsuite/27_io/filesystem/path/query/has_root_path.cc: New test.
891 * testsuite/27_io/filesystem/path/query/has_stem.cc: New test.
892 * testsuite/27_io/filesystem/path/query/is_relative.cc: New test.
893 * testsuite/experimental/filesystem/path/construct/string_view.cc:
894 Define USE_FILESYSTEM_TS.
895 * testsuite/util/testsuite_fs.h: Allow use with C++17 paths as well
899 * doc/xml/manual/intro.xml: Include new section.
900 * doc/xml/manual/status_cxxis29124.xml: New section on IS 29124
902 * include/bits/specfun.h [__STRICT_ANSI__] (hyperg, hypergf, hypergl)
903 (conf_hyperg, conf_hypergf, conf_hypergl): Don't declare.
904 * include/c_compatibility/math.h: Import special functions into
905 global namespace for C++17.
906 * testsuite/26_numerics/headers/cmath/82644.cc: New test.
907 * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc: New
910 2017-10-21 Jonathan Wakely <jwakely@redhat.com>
912 * testsuite/experimental/filesystem/path/itr/traversal.cc: Do not
913 increment past-the-end iterators.
915 2017-10-20 Jonathan Wakely <jwakely@redhat.com>
917 * include/std/chrono (__cpp_lib_chrono): Update macro value to
918 indicate support for P0505R0.
919 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Check
922 * include/c_global/cstddef: Define __cpp_lib_byte feature-test macro.
923 * testsuite/18_support/byte/requirements.cc: Check macro.
925 2017-10-19 Jonathan Wakely <jwakely@redhat.com>
927 * testsuite/experimental/filesystem/iterators/
928 recursive_directory_iterator.cc: Ensure that error_code arguments are
929 cleared when required.
930 * testsuite/experimental/filesystem/operations/create_directory.cc:
931 Remove redundant check.
932 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
933 Ensure that error_code argument is cleared when required.
935 * include/experimental/bits/fs_path.h (path::iterator++(int))
936 (path::iterator--(int)): Fix for paths with only one component.
937 * testsuite/experimental/filesystem/path/itr/traversal.cc: Test
938 post-increment and post-decrement.
940 * doc/xml/manual/status_cxx2017.xml: Update references to C++17
943 * testsuite/decimal/conversion-to-integral.cc: Use predefined macro
944 instead of non-standard glibc one.
946 2017-10-16 François Dumont <fdumont@gcc.gnu.org>
949 * include/bits/stl_bvector.h (fill): Add iterator offset check.
950 * testsuite/23_containers/vector/bool/82558.cc: New.
952 2017-10-13 Jonathan Wakely <jwakely@redhat.com>
955 * doc/xml/manual/intro.xml: Document LWG 2354 changes.
956 * include/bits/stl_map.h (map::insert(value_type&&))
957 (map::insert(const_iterator, value_type&&)): Add overload for rvalues.
958 * include/bits/stl_multimap.h (multimap::insert(value_type&&))
959 (multimap::insert(const_iterator, value_type&&)): Likewise.
960 * include/bits/unordered_map.h (unordered_map::insert(value_type&&))
961 (unordered_map::insert(const_iterator, value_type&&))
962 (unordered_multimap::insert(value_type&&))
963 (unordered_multimap::insert(const_iterator, value_type&&)): Likewise.
964 * testsuite/23_containers/map/modifiers/insert/dr2354.cc: New test.
965 * testsuite/23_containers/multimap/modifiers/insert/dr2354.cc: New
967 * testsuite/23_containers/unordered_map/insert/dr2354.cc: New test.
968 * testsuite/23_containers/unordered_multimap/insert/dr2354.cc: New
972 * include/std/mutex (call_once): Suppress clang-tidy warnings about
975 2017-10-10 Jonathan Wakely <jwakely@redhat.com>
977 * include/bits/streambuf_iterator.h (istreambuf_iterator::equal):
978 Update comment about NAD issue.
982 * include/c_compatibility/complex.h [!C++98 && __STRICT_ANSI__]: Do
983 not include C library's <complex.h>.
984 * testsuite/26_numerics/complex/c99.cc: Depend on __STRICT_ANSI__.
985 * testsuite/26_numerics/headers/complex.h/std_c++11.h: New test.
986 * testsuite/26_numerics/headers/complex.h/std_gnu++11.h: New test.
987 * testsuite/26_numerics/headers/complex.h/std_c++98.h: New test.
989 2017-10-05 Jonathan Wakely <jwakely@redhat.com>
991 * testsuite/20_util/to_chars/1.cc: Add dg-require-string-conversions.
993 2017-10-04 Petr Ovtchenkov <ptr@void-ptr.info>
994 François Dumont <fdumont@gcc.gnu.org>
996 * include/bits/streambuf_iterator.h
997 (istreambuf_iterator<>::operator*()): Do not capture iterator state
999 (istreambuf_iterator<>::operator++()): Likewise and remove _M_sbuf check.
1000 (istreambuf_iterator<>::operator++(int)): Likewise.
1001 (istreambuf_iterator<>::_M_get()): Remove _M_c assignment.
1002 (istreambuf_iterator<>::_S_is_eof()): New.
1003 (istreambuf_iterator<>::_M_at_eof()): Adapt, use latter.
1004 (find(istreambuf_iterator<>, istreambuf_iterator<>, _CharT)):
1005 Return an iterator with _M_c set to eof to capture streambuf state
1007 (testsuite/24_iterators/istreambuf_iterator/2.cc): Add checks.
1009 2017-10-03 Jakub Jelinek <jakub@redhat.com>
1011 * include/std/charconv (__unsigned_least_t): Fix number of closing >s for
1012 !_GLIBCXX_USE_INT128.
1014 2017-10-02 Jonathan Wakely <jwakely@redhat.com>
1016 * include/Makefile.am: Add new <charconv> header.
1017 * include/Makefile.in: Regenerate.
1018 * include/precompiled/stdc++.h: Include <charconv>.
1019 * include/std/charconv: New file.
1020 (to_chars_result, to_chars, from_chars_result, from_chars): Define.
1021 * testsuite/20_util/from_chars/1.cc: New test.
1022 * testsuite/20_util/from_chars/1_neg.cc: New test.
1023 * testsuite/20_util/from_chars/2.cc: New test.
1024 * testsuite/20_util/from_chars/requirements.cc: New test.
1025 * testsuite/20_util/to_chars/1.cc: New test.
1026 * testsuite/20_util/to_chars/1_neg.cc: New test.
1027 * testsuite/20_util/to_chars/2.cc: New test.
1028 * testsuite/20_util/to_chars/requirements.cc: New test.
1030 2017-09-27 François Dumont <fdumont@gcc.gnu.org>
1032 * testsuite/22_locale/money_get/get/char/22131.cc: Make test less
1033 istreambuf_iterator implementation dependent.
1034 * testsuite/22_locale/money_get/get/wchar_t/22131.cc: Likewise.
1036 2017-09-25 Uros Bizjak <ubizjak@gmail.com>
1039 * src/c++98/complex_io.cc (_GLIBCXX_LDBL_COMPAT): Declare alias
1040 target as a C++ function with no prototype.
1042 2017-09-21 Jonathan Wakely <jwakely@redhat.com>
1044 * testsuite/25_algorithms/clamp/1.cc: Fix order of arguments and
1045 expected results when using predicate defining reverse order.
1046 * testsuite/25_algorithms/clamp/constexpr.cc: Likewise.
1048 2017-09-20 Jonathan Wakely <jwakely@redhat.com>
1051 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
1052 (basic_string::_If_sv): Remove from the overload set when the
1053 argument is derived from basic_string.
1056 * include/bits/basic_string.h (basic_string::_If_sv): Remove from the
1057 overload set when the argument is derived from basic_string.
1058 * testsuite/21_strings/basic_string/cons/char/moveable2_c++17.cc: New
1060 * testsuite/21_strings/basic_string/cons/wchar_t/moveable2_c++17.cc:
1063 * testsuite/24_iterators/range_access_cpp17.cc: Fix order of dg-do
1064 and dg-options directives. Fix invalid test.
1067 * libsupc++/exception (uncaught_exception): Deprecate for C++17.
1068 * testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated.
1069 * testsuite/18_support/uncaught_exception/14026.cc: Likewise.
1071 * include/bits/c++config (_GLIBCXX17_DEPRECATED): Define.
1072 * include/bits/functional_hash.h (__hash_base::result_type)
1073 (__hash_base::argument_type): Add _GLIBCXX17_DEPRECATED.
1074 * include/std/optional (hash<optional<T>>::result_type)
1075 (hash<optional<T>>::argument_type): Add deprecated attribute.
1076 (__is_fast_hash<hash<optional<T>>>): Add partial specialization.
1077 * include/std/variant (hash<variant<Types...>>::result_type)
1078 (hash<variant<Types...>>::argument_type): Add deprecated attribute.
1079 (__is_fast_hash<hash<variant<Types...>>>): Add partial specialization.
1081 * libsupc++/exception_ptr.h (copy_exception): Remove deprecated
1082 non-standard function.
1085 * include/std/optional (__optional_hash_call_base): Add template
1086 parameter for remove_const_t<_Tp> and use it consistently.
1087 * testsuite/20_util/optional/hash.cc: Test optional<const T>.
1089 2017-09-19 Jonathan Wakely <jwakely@redhat.com>
1092 * include/bits/regex_executor.tcc
1093 (_Backref_matcher<BidIt, regex_traits<C>>::_M_apply): Use
1094 std::__equal4 instead of C++14 4-iterator overloads of std::equal.
1095 * include/bits/stl_algobase.h (__equal4): New functions implementing
1096 4-iterator overloads of std::equal for use in C++11.
1097 (equal(It1, It1, It2, It2), equal(It1, It1, It2, It2, BinaryPred)):
1098 Move function bodies to new __equal4 functions.
1099 * testsuite/28_regex/simple_c++11.cc: New.
1102 * include/std/type_traits (__is_invocable): Add partial specialization
1103 for INVOKE<void> case and remove is_void<R> check from partial
1104 specialization for INVOKE<R> case.
1105 (__is_nt_invocable_impl): New helper for is_nothrow_invocable_r.
1106 (is_nothrow_invocable_r): Use __is_nt_invocable_impl.
1107 * testsuite/20_util/is_nothrow_invocable/value.cc: Add tests for
1108 conversions that can throw or fail to convert. Use static assert
1109 strings to explain negative results.
1110 * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Use
1111 is_nothrow_constructible in is_nt_invocable_conv.
1113 2017-09-18 Jonathan Wakely <jwakely@redhat.com>
1116 * testsuite/20_util/duration/cons/dr1177.cc: Fix incorrect test and
1117 improve static assertion messages.
1119 * include/std/utility (_Itup_cat, _Make_integer_sequence): Remove.
1120 (_Build_index_tuple, make_integer_sequence): Use built-in to generate
1124 * include/std/type_traits (__declval): New function to deduce return
1126 (__declval_protector::_delegate): Remove.
1127 (declval): Use __declval instead of add_rvalue_reference and
1128 __declval_protector::__delegate.
1129 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
1131 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
1133 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
1136 2017-09-15 Jakub Jelinek <jakub@redhat.com>
1138 * testsuite/libstdc++-prettyprinters/cxx17.cc: Use -std=c++17 or
1139 -std=gnu++17 instead of -std=c++1z or -std=gnu++1z. Use c++17 instead
1140 of c++1z and c++17_only instead of c++1z_only. Adjust expected
1141 diagnostics and comments refering to 1z to 17.
1142 * testsuite/30_threads/lock_guard/cons/deduction.cc: Likewise.
1143 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Likewise.
1144 * testsuite/30_threads/scoped_lock/cons/1.cc: Likewise.
1145 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Likewise.
1146 * testsuite/30_threads/scoped_lock/requirements/explicit_instantiation.cc:
1148 * testsuite/30_threads/unique_lock/cons/deduction.cc: Likewise.
1149 * testsuite/18_support/launder/1.cc (test02): Likewise.
1150 * testsuite/18_support/launder/requirements_neg.cc: Likewise.
1151 * testsuite/18_support/launder/requirements.cc: Likewise.
1152 * testsuite/18_support/byte/requirements.cc: Likewise.
1153 * testsuite/18_support/byte/ops.cc: Likewise.
1154 * testsuite/18_support/byte/global_neg.cc: Likewise.
1155 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
1157 * testsuite/27_io/types/4.cc: Likewise.
1158 * testsuite/25_algorithms/sample/81221.cc: Likewise.
1159 * testsuite/25_algorithms/sample/1.cc: Likewise.
1160 * testsuite/25_algorithms/sample/2.cc: Likewise.
1161 * testsuite/25_algorithms/search/searcher.cc: Likewise.
1162 * testsuite/28_regex/basic_regex/ctors/deduction.cc: Likewise.
1163 * testsuite/experimental/filesystem/path/construct/string_view.cc:
1165 * testsuite/24_iterators/range_access_cpp17.cc: Likewise.
1166 * testsuite/24_iterators/container_access.cc: Likewise.
1167 * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise.
1168 * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise.
1169 * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise.
1170 * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise.
1171 * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise.
1172 * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise.
1173 * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise.
1174 * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise.
1175 * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise.
1176 * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise.
1177 * testsuite/20_util/shared_ptr/cons/deduction.cc: Likewise.
1178 * testsuite/20_util/shared_ptr/cons/array.cc: Likewise.
1179 * testsuite/20_util/shared_ptr/observers/array.cc (struct A): Likewise.
1180 * testsuite/20_util/pair/cons/deduction.cc: Likewise.
1181 * testsuite/20_util/variant/deduction.cc: Likewise.
1182 * testsuite/20_util/tuple/78939.cc: Likewise.
1183 * testsuite/20_util/tuple/cons/deduction.cc: Likewise.
1184 * testsuite/20_util/void_t/1.cc: Likewise.
1185 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: Likewise.
1186 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: Likewise.
1187 * testsuite/20_util/addressof/requirements/constexpr.cc: Likewise.
1188 * testsuite/20_util/weak_ptr/cons/deduction.cc: Likewise.
1189 * testsuite/20_util/has_unique_object_representations/requirements/typedefs.cc:
1191 * testsuite/20_util/has_unique_object_representations/requirements/explicit_instantiation.cc:
1193 * testsuite/20_util/has_unique_object_representations/value.cc:
1195 * testsuite/20_util/time_point/arithmetic/constexpr.cc: Likewise.
1196 * testsuite/20_util/function_objects/invoke/59768.cc: Likewise.
1197 * testsuite/20_util/function_objects/mem_fn/80478.cc: Likewise.
1198 * testsuite/20_util/function/cons/deduction.cc: Likewise.
1199 * testsuite/20_util/specialized_algorithms/memory_management_tools/destroy_neg.cc:
1201 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
1202 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
1204 * testsuite/20_util/is_aggregate/value.cc: Likewise.
1205 * testsuite/26_numerics/lcm/1.cc: Likewise.
1206 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1207 * testsuite/26_numerics/gcd/1.cc: Likewise.
1208 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
1209 * testsuite/26_numerics/valarray/deduction.cc: Likewise.
1210 * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: Likewise.
1211 * testsuite/26_numerics/headers/cmath/hypot.cc: Likewise.
1212 * testsuite/23_containers/queue/members/emplace_cxx17_return.cc:
1214 * testsuite/23_containers/array/cons/deduction.cc: Likewise.
1215 * testsuite/23_containers/array/cons/deduction_neg.cc: Likewise.
1216 * testsuite/23_containers/deque/modifiers/emplace/cxx17_return.cc:
1218 * testsuite/23_containers/deque/cons/deduction.cc: Likewise.
1219 * testsuite/23_containers/stack/members/emplace_cxx17_return.cc:
1221 * testsuite/23_containers/list/modifiers/emplace/cxx17_return.cc:
1223 * testsuite/23_containers/list/cons/deduction.cc: Likewise.
1224 * testsuite/23_containers/forward_list/modifiers/emplace_cxx17_return.cc:
1226 * testsuite/23_containers/forward_list/cons/deduction.cc: Likewise.
1227 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Likewise.
1228 * testsuite/23_containers/vector/modifiers/emplace/cxx17_return.cc:
1230 * testsuite/23_containers/vector/cons/deduction.cc: Likewise.
1231 * testsuite/23_containers/vector/bool/emplace_cxx17_return.cc:
1233 * testsuite/21_strings/basic_string/cons/char/9.cc: Likewise.
1234 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Likewise.
1235 * testsuite/21_strings/basic_string/cons/char/79162.cc: Likewise.
1236 * testsuite/21_strings/basic_string/cons/wchar_t/9.cc: Likewise.
1237 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
1239 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: Likewise.
1240 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
1242 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
1244 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
1246 * testsuite/21_strings/basic_string_view/operations/compare/char/70483.cc:
1248 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/2.cc:
1250 * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc:
1253 2017-09-13 Jonathan Wakely <jwakely@redhat.com>
1256 * include/std/chrono (__enable_if_is_duration)
1257 (__disable_if_is_duration): New alias templates to simplify SFINAE.
1258 (duration_cast, floor, ceil): Use __enable_if_is_duration.
1259 (duration::__is_float, duration::__is_harmonic): New alias templates
1261 (duration::duration(const _Rep2&)): Use _Require, __is_float and
1263 (duration::duration(const duration<_Rep2, _Period2>&)): Likewise.
1264 (__common_rep_type): Remove, replace with ...
1265 (__common_rep_t): New alias template.
1266 (operator*, operator/, operator%): Use __common_rep_t and
1267 __disable_if_is_duration.
1268 (time_point::time_point(const time_point<clock, _Dur2>&)): Add missing
1269 constraint from LWG DR 1177.
1270 * testsuite/20_util/duration/cons/dr1177.cc: New.
1271 * testsuite/20_util/duration/literals/range.cc: Update dg-error line.
1272 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1273 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1274 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1275 * testsuite/20_util/time_point/cons/81468.cc: New.
1277 * doc/doxygen/mainpage.html: Fix broken URLs.
1280 * doc/xml/manual/extensions.xml: Replace unstable URL.
1281 * doc/html/manual/ext_demangling.html: Regenerate.
1282 * libsupc++/cxxabi.h (__cxa_demangle): Fix broken URL.
1284 * include/bits/allocated_ptr.h (__allocated_ptr::get): Use
1286 (__allocated_ptr::_S_raw_ptr): Remove.
1287 * include/bits/forward_list.h (_Fwd_list_base::_M_get_node): Use
1289 * include/bits/hashtable_policy.h (_Hashtable_alloc): Likewise.
1290 * include/bits/ptr_traits.h (__to_address): Define new function
1292 * include/bits/shared_ptr_base.h (__shared_ptr): Use __to_address.
1293 (__shared_ptr::_S_raw_ptr): Remove.
1294 * include/bits/stl_vector.h [__cplusplus >= 201103L]
1295 (vector::_M_data_ptr): Use __to_address.
1296 [__cplusplus < 201103L] (vector::_M_data_ptr): Don't dereference
1297 possibly invalid pointers.
1298 * include/ext/alloc_traits.h (__alloc_traits::construct)
1299 (__alloc_traits::destroy): Use __to_address.
1301 2017-09-12 Jonathan Wakely <jwakely@redhat.com>
1304 * include/Makefile.am: Remove <bits/c++14_warning.h>.
1305 * include/Makefile.in: Regenerate.
1306 * include/bits/c++14_warning.h: Remove.
1307 * include/experimental/algorithm: Do not include <c++14_warning.h>.
1308 * include/experimental/any: Likewise.
1309 * include/experimental/array: Likewise.
1310 * include/experimental/bits/erase_if.h: Likewise.
1311 * include/experimental/bits/lfts_config.h: Likewise.
1312 * include/experimental/bits/shared_ptr.h: Likewise.
1313 * include/experimental/bits/string_view.tcc: Likewise.
1314 * include/experimental/chrono: Likewise.
1315 * include/experimental/deque: Likewise.
1316 * include/experimental/filesystem: Do not include <c++0x_warning.h>.
1317 * include/experimental/forward_list: Do not include <c++14_warning.h>.
1318 * include/experimental/functional: Likewise.
1319 * include/experimental/iterator: Likewise.
1320 * include/experimental/list: Likewise.
1321 * include/experimental/map: Likewise.
1322 * include/experimental/memory: Likewise.
1323 * include/experimental/numeric: Likewise.
1324 * include/experimental/optional: Likewise.
1325 * include/experimental/propagate_const: Likewise.
1326 * include/experimental/ratio: Likewise.
1327 * include/experimental/regex: Likewise.
1328 * include/experimental/set: Likewise.
1329 * include/experimental/string: Likewise.
1330 * include/experimental/string_view: Likewise.
1331 * include/experimental/system_error: Likewise.
1332 * include/experimental/tuple: Likewise.
1333 * include/experimental/type_traits: Likewise.
1334 * include/experimental/unordered_map: Likewise.
1335 * include/experimental/unordered_set: Likewise.
1336 * include/experimental/vector: Likewise.
1337 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error
1339 * testsuite/experimental/array/neg.cc: Likewise.
1340 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
1342 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
1343 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
1344 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
1345 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
1346 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
1349 * doc/xml/manual/status_cxx2017.xml: Update feature-test macros.
1350 * doc/html/*: Regenerate.
1351 * include/Makefile.am: Remove <bits/c++17_warning.h>.
1352 * include/Makefile.in: Regenerate.
1353 * include/bits/c++17_warning.h: Remove.
1354 * include/bits/string_view.tcc: Do not include <bits/c++17_warning.h>
1355 for pre-C++17 modes.
1356 * include/std/any: Likewise.
1357 (__cpp_lib_any): Define.
1358 * include/std/mutex (__cpp_lib_scoped_lock): Adjust value as per new
1360 * include/std/numeric (__cpp_lib_gcd_lcm): Define as per new SD-6
1362 * include/std/optional: Do not include <bits/c++17_warning.h>.
1363 (__cpp_lib_optional): Define.
1364 * include/std/shared_mutex: Do not include <bits/c++14_warning.h>.
1365 * include/std/string_view: Do not include <bits/c++17_warning.h>.
1366 (__cpp_lib_string_view): Define.
1367 * include/std/variant: Do not include <bits/c++17_warning.h>.
1368 (__cpp_lib_variant): Define.
1369 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error line
1371 * testsuite/26_numerics/gcd/1.cc: Test for __cpp_lib_gcd_lcm.
1372 * testsuite/26_numerics/gcd/gcd_neg.cc: Adjust dg-error line
1374 * testsuite/26_numerics/lcm/1.cc: Test for __cpp_lib_gcd_lcm.
1375 * testsuite/26_numerics/lcm/lcm_neg.cc: Adjust dg-error line
1377 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Adjust
1378 expected value of __cpp_lib_scoped_lock.
1381 * include/experimental/bits/string_view.tcc (basic_string_view::find)
1382 (basic_string_view::rfind, basic_string_view::find_first_of)
1383 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1384 (basic_string_view::find_last_not_of): Add constexpr specifier.
1385 * include/experimental/string_view (basic_string_view::remove_prefix)
1386 (basic_string_view::remove_suffix, basic_string_view::swap)
1387 (basic_string_view::compare, basic_string_view::find)
1388 (basic_string_view::rfind, basic_string_view::find_first_of)
1389 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1390 (basic_string_view::find_last_not_of, operator==, operator!=)
1391 (operator<, operator>, operator<=, operator>=): Likewise.
1392 * testsuite/experimental/string_view/operations/compare/char/70483.cc:
1395 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
1398 * include/bits/string_view.tcc (basic_string_view::find)
1399 (basic_string_view::rfind, basic_string_view::find_first_of)
1400 (basic_string_view::find_last_of, basic_string_view::find_first_not_of)
1401 (basic_string_view::find_last_not_of): Add constexpr specifier.
1402 * include/std/string_view (basic_string_view::operator=)
1403 (basic_string_view::rbegin, basic_string_view::rend)
1404 (basic_string_view::crbegin, basic_string_view::crend)
1405 (basic_string_view::remove_prefix, basic_string_view::remove_suffix)
1406 (basic_string_view::swap, basic_string_view::compare)
1407 (basic_string_view::find, basic_string_view::rfind)
1408 (basic_string_view::find_first_of, basic_string_view::find_last_of)
1409 (basic_string_view::find_first_not_of)
1410 (basic_string_view::find_last_not_of, basic_string_view::_M_check)
1411 (basic_string_view::_M_limit, operator==, operator!=, operator<)
1412 (operator>, operator<=, operator>=): Likewise.
1413 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
1414 char/1.cc: Repeat tests in constexpr context.
1415 * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/
1416 wchar_t/1.cc: Likewise.
1417 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
1418 char/1.cc: Likewise.
1419 * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/
1420 wchar_t/1.cc: Likewise.
1421 * testsuite/21_strings/basic_string_view/operations/find/char/1.cc:
1423 * testsuite/21_strings/basic_string_view/operations/find/char/2.cc:
1425 * testsuite/21_strings/basic_string_view/operations/find/char/3.cc:
1427 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc:
1429 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc:
1431 * testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc:
1433 * testsuite/21_strings/basic_string_view/operators/char/2.cc:
1435 * testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc:
1437 * testsuite/21_strings/basic_string_view/range_access/char/1.cc: Test
1438 cbegin, cend, rbegin, rend, crbegin and crend.
1439 * testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc:
1441 * testsuite/21_strings/basic_string_view/operations/compare/char/1.cc:
1442 Remove trailing whitespace.
1443 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
1445 * testsuite/21_strings/basic_string_view/modifiers/swap/char/1.cc:
1447 * testsuite/21_strings/basic_string_view/modifiers/swap/wchar_t/1.cc:
1449 * testsuite/21_strings/basic_string_view/operations/compare/char/2.cc:
1451 * testsuite/21_strings/basic_string_view/operations/compare/wchar_t/
1454 2017-09-11 Tim Shen <timshen@google.com>
1457 * include/bits/regex_executor.tcc: Support icase in regex_traits<...>
1458 for back reference matches.
1459 * testsuite/28_regex/regression.cc: Test case.
1461 2017-09-11 Jonathan Wakely <jwakely@redhat.com>
1463 * testsuite/21_strings/basic_string/lwg2946.cc: Adjust for
1464 compatibility with old COW std::string.
1466 2017-09-09 Gerald Pfeifer <gerald@pfeifer.com>
1468 * doc/xml/manual/allocator.xml: Adjust link for Hoard.
1469 * doc/html/manual/memory.html: Regenerate.
1471 2017-09-04 Daniel Kruegler <daniel.kruegler@gmail.com>
1474 Implement LWG 2946, LWG 2758's resolution missed further corrections
1475 * include/bits/basic_string.h (basic_string::compare): Add missing
1476 required noexcept specifications.
1477 (basic_string): Introduce internal _S_to_string_view and __sv_wrapper
1478 for implicit string_view conversion.
1479 (basic_string::basic_string): Fix explicit string_view conversion by
1480 implicit conversion using _S_to_string_view and __sv_wrapper.
1481 (basic_string): Introduce internal basic_string(__sv_wrapper, Alloc)
1483 (basic_string): Fix operator=(T) template by operator=(const T&)
1484 template for uncopyable types (PR 79162).
1485 (basic_string::operator+=, basic_string::append, basic_string::assign)
1486 (basic_string::insert, basic_string::replace, basic_string::find)
1487 (basic_string::rfind, basic_string::find_first_of)
1488 (basic_string::find_last_of, basic_string::find_first_not_of)
1489 (basic_string::find_last_not_of, basic_string::compare): Replace
1490 __sv_type argument by template const T& (LWG 2946) and correct
1491 documentation describing __sv_type argument.
1492 (basic_string::find, basic_string::rfind, basic_string::find_first_of)
1493 (basic_string::find_last_of, basic_string::find_first_not_of)
1494 (basic_string::find_last_not_of, basic_string::compare): Replace
1495 unconditional noexcept specification by conditional noexcept
1496 specification to partially balance the removal of noexcept by LWG 2946.
1497 * testsuite/21_strings/basic_string/79162.cc: New.
1498 * testsuite/21_strings/basic_string/lwg2946.cc: New.
1500 2017-08-31 Jonathan Wakely <jwakely@redhat.com>
1503 * include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
1504 Adjust null pointer constant to avoid warning.
1506 2017-08-24 François Dumont <fdumont@gcc.gnu.org>
1508 * include/bits/stl_list.h
1509 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_S_distance): Remove.
1510 (_List_impl(_Node_alloc_type&&, _List_impl&&)): New.
1511 (_List_base(_Node_alloc_type&&, _List_base&&)): New, use latter.
1512 [!_GLIBCXX_INLINE_VERSION](_List_base(_Node_alloc_type&&,_List_base&&)):
1514 (_List_base(_Node_alloc_type&&)): New.
1515 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_distance): Remove.
1516 [!_GLIBCXX_INLINE_VERSION](_List_base<>::_M_node_count): Remove.
1517 (list<>::_M_node_count): New.
1518 (list<>::size()): Adapt to call latter.
1519 (list<>::_S_distance(const_iterator, const_iterator)): New.
1520 (list<>::splice(iterator, list&, const_iterator, const_iterator)):
1521 Adapt to call latter.
1522 (list(list&&, const allocator_type&, true_type)): New.
1523 (list(list&&, const allocator_type&, false_type)): New.
1524 (list(list&&, const allocator_type&)): Adapt to call latters.
1526 2017-08-21 Jonathan Wakely <jwakely@redhat.com>
1529 * include/bits/stl_iterator_base_types.h (__iterator_category): Add
1530 constexpr for C++11 and later.
1531 * testsuite/24_iterators/container_access.cc: Add target selector.
1532 * testsuite/24_iterators/range_access.cc: Fix clause number in
1534 * testsuite/24_iterators/range_access_cpp14.cc: Likewise.
1535 * testsuite/24_iterators/range_access_cpp17.cc: New.
1537 2017-08-21 Richard Biener <rguenther@suse.de>
1539 * testsuite/libstdc++-prettyprinters/prettyprinters.exp: Run all
1540 tests with -flto as well if supported.
1542 2017-08-20 Martin Sebor <msebor@redhat.com>
1545 * src/c++98/compatibility.cc (_GLIBCXX_3_4_SYMVER): Declare alias
1546 target as a C++ function with no prototype.
1547 (_GLIBCXX_3_4_5_SYMVER): Ditto.
1549 2017-08-20 John David Anglin <danglin@gcc.gnu.org>
1552 * testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__.
1554 2017-08-18 Jonathan Wakely <jwakely@redhat.com>
1556 * include/bits/hashtable_policy.h (_ReuseOrAllocNode): Remove
1557 __value_alloc_type and __value_alloc_traits typedefs.
1558 (_ReuseOrAllocNode::operator()): Call construct and destroy on the
1560 (_Hashtable_alloc): Simplify __value_alloc_traits typedef.
1561 (_Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&...)): Call
1562 construct on the node allocator.
1563 (_Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_type*)): Call
1564 destroy on the node allocator.
1567 * include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
1568 size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
1569 const _ExtractKey&, const allocator_type&)): Let destructor do clean
1570 up if an exception is thrown.
1571 * testsuite/23_containers/unordered_map/cons/81891.cc: New.
1573 2017-08-11 Jonathan Wakely <jwakely@redhat.com>
1576 * testsuite/27_io/basic_fstream/53984.cc: Adjust test for targets
1577 that allow opening a directory as a FILE and reading from it.
1579 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
1581 * include/std/type_traits (_GLIBCXX_NO_BUILTIN_HAS_UNIQ_OBJ_REP):
1582 Replace with _GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP and use
1583 __is_identifier to set it.
1585 2017-08-09 Katsuhiko Nishimra <ktns.87@gmail.com>
1587 * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Use
1588 __is_identifier instead of __has_builtin.
1590 2017-08-09 Jonathan Wakely <jwakely@redhat.com>
1594 * config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
1595 Call fflush on the stream instead of calling sync() while _M_cfile is
1596 null. Restore original value of errno.
1597 * testsuite/ext/stdio_filebuf/char/79820.cc: New.
1598 * testsuite/ext/stdio_filebuf/char/81751.cc: New.
1600 2017-07-31 Marek Polacek <polacek@redhat.com>
1603 * include/bits/stl_stack.h: Fix typo.
1605 2017-07-26 Jonathan Wakely <jwakely@redhat.com>
1607 * testsuite/27_io/basic_fstream/53984.cc: Fix test.
1609 2017-07-26 Paolo Carlini <paolo.carlini@oracle.com>
1611 * testsuite/27_io/basic_fstream/53984.cc: Fix typo in dg-require
1614 2017-07-25 Jonathan Wakely <jwakely@redhat.com>
1617 * include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
1618 * include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
1619 during construction.
1620 * include/std/istream: Adjust comments for formatted input functions
1621 and unformatted input functions.
1622 * testsuite/27_io/basic_fstream/53984.cc: New.
1623 * testsuite/27_io/basic_istream/sentry/char/53984.cc: New.
1625 * include/bits/ios_base.h (ios_base::io_state, ios_base::open_mode)
1626 (ios_base::seek_dir): Remove for C++17.
1627 * include/std/streambuf (basic_streambuf::stossc): Remove for C++17.
1628 Add deprecated attribute for C++11 and C++14.
1629 * testsuite/27_io/types/1.cc: Don't run for C++17 and later.
1630 * testsuite/27_io/types/4.cc: New.
1632 2017-07-23 Michael Collison <michael.collison@arm.com>
1634 Add optimized implementation of mersenne twister for aarch64
1635 * config/cpu/aarch64/opt/ext/opt_random.h: New file.
1636 (__arch64_recursion): New function.
1637 (__aarch64_lsr_128): New function.
1638 (__aarch64_lsl_128): New function.
1639 (operator==): New function.
1640 (simd_fast_mersenne_twister_engine): Implement
1642 * config/cpu/aarch64/opt/bits/opt_random.h: New file.
1643 * include/ext/random: (simd_fast_mersenne_twister_engine):
1644 add _M_state private array.
1646 2017-07-23 François Dumont <fdumont@gcc.gnu.org>
1649 * include/bits/algorithmfwd.h: Reorganize versioned namespace.
1650 * include/bits/basic_string.h: Likewise.
1651 * include/bits/c++config: Likewise.
1652 * include/bits/deque.tcc: Likewise.
1653 * include/bits/forward_list.h: Likewise.
1654 * include/bits/forward_list.tcc: Likewise.
1655 * include/bits/hashtable_policy.h: Likewise.
1656 * include/bits/list.tcc: Likewise.
1657 * include/bits/move.h: Likewise.
1658 * include/bits/quoted_string.h: Likewise.
1659 * include/bits/random.h: Likewise.
1660 * include/bits/random.tcc: Likewise.
1661 * include/bits/regex.h: Likewise.
1662 * include/bits/regex.tcc: Likewise.
1663 * include/bits/regex_automaton.h: Likewise.
1664 * include/bits/regex_automaton.tcc: Likewise.
1665 * include/bits/regex_compiler.h: Likewise.
1666 * include/bits/regex_compiler.tcc: Likewise.
1667 * include/bits/regex_constants.h: Likewise.
1668 * include/bits/regex_error.h: Likewise.
1669 * include/bits/regex_executor.h: Likewise.
1670 * include/bits/regex_executor.tcc: Likewise.
1671 * include/bits/regex_scanner.h: Likewise.
1672 * include/bits/regex_scanner.tcc: Likewise.
1673 * include/bits/specfun.h: Likewise.
1674 * include/bits/stl_algo.h: Likewise.
1675 * include/bits/stl_algobase.h: Likewise.
1676 * include/bits/stl_bvector.h: Likewise.
1677 * include/bits/stl_deque.h: Likewise.
1678 * include/bits/stl_iterator.h: Likewise.
1679 * include/bits/stl_iterator_base_funcs.h: Likewise.
1680 * include/bits/stl_list.h: Likewise.
1681 * include/bits/stl_map.h: Likewise.
1682 * include/bits/stl_multimap.h: Likewise.
1683 * include/bits/stl_multiset.h: Likewise.
1684 * include/bits/stl_relops.h: Likewise.
1685 * include/bits/stl_set.h: Likewise.
1686 * include/bits/stl_vector.h: Likewise.
1687 * include/bits/uniform_int_dist.h: Likewise.
1688 * include/bits/unordered_map.h: Likewise.
1689 * include/bits/unordered_set.h: Likewise.
1690 * include/bits/vector.tcc: Likewise.
1691 * include/c_global/cmath: Likewise.
1692 * include/c_std/cmath: Likewise.
1693 * include/decimal/decimal: Likewise.
1694 * include/decimal/decimal.h: Likewise.
1695 * include/experimental/algorithm: Likewise.
1696 * include/experimental/any: Likewise.
1697 * include/experimental/array: Likewise.
1698 * include/experimental/bits/erase_if.h: Likewise.
1699 * include/experimental/bits/fs_dir.h: Likewise.
1700 * include/experimental/bits/fs_fwd.h: Likewise.
1701 * include/experimental/bits/fs_ops.h: Likewise.
1702 * include/experimental/bits/fs_path.h: Likewise.
1703 * include/experimental/bits/lfts_config.h: Likewise.
1704 * include/experimental/bits/shared_ptr.h: Likewise.
1705 * include/experimental/bits/string_view.tcc: Likewise.
1706 * include/experimental/chrono: Likewise.
1707 * include/experimental/deque: Likewise.
1708 * include/experimental/filesystem: Likewise.
1709 * include/experimental/forward_list: Likewise.
1710 * include/experimental/functional: Likewise.
1711 * include/experimental/iterator: Likewise.
1712 * include/experimental/list: Likewise.
1713 * include/experimental/map: Likewise.
1714 * include/experimental/memory: Likewise.
1715 * include/experimental/memory_resource: Likewise.
1716 * include/experimental/numeric: Likewise.
1717 * include/experimental/optional: Likewise.
1718 * include/experimental/propagate_const: Likewise.
1719 * include/experimental/random: Likewise.
1720 * include/experimental/ratio: Likewise.
1721 * include/experimental/regex: Likewise.
1722 * include/experimental/set: Likewise.
1723 * include/experimental/source_location: Likewise.
1724 * include/experimental/string: Likewise.
1725 * include/experimental/string_view: Likewise.
1726 * include/experimental/system_error: Likewise.
1727 * include/experimental/tuple: Likewise.
1728 * include/experimental/type_traits: Likewise.
1729 * include/experimental/unordered_map: Likewise.
1730 * include/experimental/unordered_set: Likewise.
1731 * include/experimental/utility: Likewise.
1732 * include/experimental/vector: Likewise.
1733 * include/ext/bitmap_allocator.h: Likewise.
1734 * include/ext/codecvt_specializations.h: Likewise.
1735 * include/ext/rope: Likewise.
1736 * include/ext/typelist.h: Likewise.
1737 * include/std/chrono: Likewise.
1738 * include/std/complex: Likewise.
1739 * include/std/functional: Likewise.
1740 * include/std/numeric: Likewise.
1741 * include/std/string_view: Likewise.
1742 * include/std/thread: Likewise.
1743 * include/std/variant: Likewise.
1744 * include/tr1/array: Likewise.
1745 * include/tr1/bessel_function.tcc: Likewise.
1746 * include/tr1/beta_function.tcc: Likewise.
1747 * include/tr1/cmath: Likewise.
1748 * include/tr1/complex: Likewise.
1749 * include/tr1/ell_integral.tcc: Likewise.
1750 * include/tr1/exp_integral.tcc: Likewise.
1751 * include/tr1/functional: Likewise.
1752 * include/tr1/functional_hash.h: Likewise.
1753 * include/tr1/gamma.tcc: Likewise.
1754 * include/tr1/hashtable.h: Likewise.
1755 * include/tr1/hashtable_policy.h: Likewise.
1756 * include/tr1/hypergeometric.tcc: Likewise.
1757 * include/tr1/legendre_function.tcc: Likewise.
1758 * include/tr1/modified_bessel_func.tcc: Likewise.
1759 * include/tr1/poly_hermite.tcc: Likewise.
1760 * include/tr1/poly_laguerre.tcc: Likewise.
1761 * include/tr1/random.h: Likewise.
1762 * include/tr1/random.tcc: Likewise.
1763 * include/tr1/regex: Likewise.
1764 * include/tr1/riemann_zeta.tcc: Likewise.
1765 * include/tr1/shared_ptr.h: Likewise.
1766 * include/tr1/special_function_util.h: Likewise.
1767 * include/tr1/tuple: Likewise.
1768 * include/tr1/type_traits: Likewise.
1769 * include/tr1/unordered_map.h: Likewise.
1770 * include/tr1/unordered_set.h: Likewise.
1771 * include/tr1/utility: Likewise.
1772 * include/tr2/bool_set: Likewise.
1773 * include/tr2/bool_set.tcc: Likewise.
1774 * include/tr2/dynamic_bitset: Likewise.
1775 * include/tr2/dynamic_bitset.tcc: Likewise.
1776 * include/tr2/ratio: Likewise.
1777 * include/tr2/type_traits: Likewise.
1778 * src/c++11/chrono.cc: Likewise.
1779 * src/c++11/compatibility-c++0x.cc: Likewise.
1780 * src/c++11/compatibility-chrono.cc: Likewise.
1781 * src/c++11/cxx11-shim_facets.cc: Likewise.
1782 * src/c++11/hashtable_c++0x.cc: Likewise.
1783 * src/c++11/placeholders.cc: Likewise.
1784 * src/c++11/thread.cc: Likewise.
1785 * src/c++98/bitmap_allocator.cc: Likewise.
1786 * src/c++98/hashtable_tr1.cc: Likewise.
1787 * src/c++98/list.cc: Likewise.
1788 * src/shared/hashtable-aux.cc: Likewise.
1789 * testsuite/20_util/duration/literals/range.cc: Adapt line number.
1790 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
1791 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
1792 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
1793 * testsuite/20_util/forward/c_neg.cc: Likewise.
1794 * testsuite/20_util/forward/f_neg.cc: Likewise.
1795 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
1796 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
1797 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
1798 * python/libstdcxx/v6/printers.py: Adapt.
1800 2017-07-20 Jonathan Wakely <jwakely@redhat.com>
1802 * config/allocator/malloc_allocator_base.h [__SANITIZE_ADDRESS__]
1803 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
1804 * config/allocator/new_allocator_base.h [__SANITIZE_ADDRESS__]
1805 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
1806 * doc/xml/manual/using.xml (_GLIBCXX_SANITIZE_VECTOR): Document macro.
1807 * include/bits/stl_vector.h [_GLIBCXX_SANITIZE_VECTOR]
1808 (_Vector_impl::_Asan, _Vector_impl::_Asan::_Reinit)
1809 (_Vector_impl::_Asan::_Grow, _GLIBCXX_ASAN_ANNOTATE_REINIT)
1810 (_GLIBCXX_ASAN_ANNOTATE_GROW, _GLIBCXX_ASAN_ANNOTATE_GREW)
1811 (_GLIBCXX_ASAN_ANNOTATE_SHRINK, _GLIBCXX_ASAN_ANNOTATE_BEFORE_DEALLOC):
1812 Define annotation helper types and macros.
1813 (vector::~vector, vector::push_back, vector::pop_back)
1814 (vector::_M_erase_at_end): Add annotations.
1815 * include/bits/vector.tcc (vector::reserve, vector::emplace_back)
1816 (vector::insert, vector::_M_erase, vector::operator=)
1817 (vector::_M_fill_assign, vector::_M_assign_aux)
1818 (vector::_M_insert_rval, vector::_M_emplace_aux)
1819 (vector::_M_insert_aux, vector::_M_realloc_insert)
1820 (vector::_M_fill_insert, vector::_M_default_append)
1821 (vector::_M_shrink_to_fit, vector::_M_range_insert): Annotate.
1823 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
1826 * include/bits/vector.tcc (vector::_M_range_insert<_InputIterator>):
1827 Only insert elements one-by-one when inserting at the end.
1828 * testsuite/performance/23_containers/insert/81476.cc: New.
1830 2017-07-19 Volker Reichelt <v.reichelt@netcologne.de>
1832 * libsupc++/new (bad_array_new_length): Remove redundant
1833 semicolon after in-class member function definition.
1834 * include/bits/locale_facets.h (ctype_byname, num_put): Likewise.
1835 * include/bits/locale_facets_nonio.h (time_put_byname): Likewise.
1836 * include/bits/random.h (mersenne_twister_engine): Likewise.
1837 * include/tr1/random.h (mersenne_twister): Likewise
1838 * include/ext/random (simd_fast_mersenne_twister_engine): Likewise.
1839 * include/ext/rope (char_producer, _Rope_char_consumer,
1840 _Rope_self_destruct_ptr, _Rope_const_iterator, _Rope_iterator):
1842 * include/ext/ropeimpl.h (_Rope_flatten_char_consumer,
1843 _Rope_insert_char_consumer): Likewise.
1845 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
1847 * include/bits/fstream.tcc (basic_filebuf::xsgetn)
1848 (basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
1850 * testsuite/util/testsuite_iterators.h: Fix indentation.
1852 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
1854 2017-07-18 Jonathan Wakely <jwakely@redhat.com>
1857 * include/bits/fstream.tcc (basic_filebuf::xsgetn): Don't set buffer
1858 pointers for write mode after reading.
1859 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: New.
1861 2017-07-18 François Dumont <fdumont@gcc.gnu.org>
1863 * include/bits/stl_list.h
1864 (struct _List_node_header): New.
1865 (_List_impl()): Fix noexcept qualification.
1866 (_List_impl(_List_impl&&)): New, default.
1867 (_List_base()): Default.
1868 (_List_base(_List_base&&)): Default.
1869 (_List_base::_M_move_nodes): Adapt to use
1870 _List_node_header._M_move_nodes.
1871 (_List_base::_M_init): Likewise.
1872 (list<>()): Default.
1873 (list<>(list&&)): Default.
1874 (list<>::_M_move_assign(list&&, true_type)): Use _M_move_nodes.
1875 (__distance(_List_const_iterator<>, _List_const_iterator<>,
1876 input_iterator_tag)): Adapt.
1877 * testsuite/23_containers/list/allocator/default_init.cc: New.
1879 2017-07-15 Jonathan Wakely <jwakely@redhat.com>
1881 * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t parameter
1883 * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments.
1884 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction
1885 with std::adopt_lock_t.
1886 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check
1889 2017-07-14 Jason Merrill <jason@redhat.com>
1890 Jonathan Wakely <jwakely@redhat.com>
1892 * include/std/variant (variant::variant(_Tp&&)): Constrain to remove
1893 the constructor for empty variants from the candidate functions
1894 during class template argument deduction.
1895 * testsuite/20_util/variant/deduction.cc: New.
1897 2017-07-11 Jonathan Wakely <jwakely@redhat.com>
1899 * doc/xml/faq.xml: Update several old entries. Improve
1901 * doc/xml/manual/intro.xml: Add anchors to each DR.
1902 * doc/html/*: Regenerate.
1904 2017-07-10 Jonathan Wakely <jwakely@redhat.com>
1906 * testsuite/abi/pr42230.cc: Add header for std::free.
1909 * include/bits/sstream.tcc (basic_stringbuf::overflow)
1910 (basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode))
1911 (basic_stringbuf::str()): Construct new strings with an allocator.
1912 * testsuite/27_io/basic_stringbuf/cons/81381.cc: New.
1915 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
1916 Declare basic_stringbuf to be a friend.
1917 * include/bits/sstream.tcc (basic_stringbuf::overflow)
1918 [_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
1919 * include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
1920 length to buffer length.
1921 * testsuite/27_io/basic_stringstream/assign/81338.cc: New.
1923 2017-07-06 Jonathan Wakely <jwakely@redhat.com>
1925 * testsuite/20_util/specialized_algorithms/memory_management_tools/
1927 * testsuite/22_locale/locale/cons/5.cc: Remove redundant restoration
1928 of original environment and free memory.
1930 * testsuite/abi/pr42230.cc: Free memory.
1931 * testsuite/util/testsuite_abi.cc (demangle): Return std::string
1932 instead of pointer that might need freeing.
1933 * testsuite/util/testsuite_abi.h (demangle): Likewise.
1934 * testsuite/util/testsuite_hooks.cc (verify_demangle): Free memory.
1936 * include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add
1937 deleted overload to prevent dangling references to rvalues.
1938 * include/experimental/memory_resource
1939 (polymorphic_allocator::construct): Do not call __use_alloc with
1942 2017-06-27 Tim Shen <timshen@google.com>
1945 * include/std/variant (variant::variant, variant::~variant,
1946 variant::operator=): Implement triviality forwarding for four
1947 special member functions.
1948 * testsuite/20_util/variant/compile.cc: Tests.
1950 2017-06-27 Jonathan Wakely <jwakely@redhat.com>
1953 * testsuite/25_algorithms/sample/81221.cc: Disable except for
1957 * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
1959 * testsuite/25_algorithms/sample/81221.cc: New.
1961 2017-06-22 Jonathan Wakely <jwakely@redhat.com>
1964 * include/bits/stl_bvector.h (vector<bool>::_M_initialize_value):
1965 Do not pass null pointer to memset.
1967 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1971 * include/std/istream:
1972 (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
1973 (__do_is_convertible_to_basic_istream_impl): Likewise.
1974 (__is_convertible_to_basic_istream_impl): Likewise.
1975 (__is_convertible_to_basic_istream): Use the new base.
1976 (__rvalue_istream_type): New.
1977 (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
1978 for the SFINAE check, convert to the helper alias type before
1979 doing the actual extraction.
1980 * include/std/ostream:
1981 (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
1982 (__do_is_convertible_to_basic_ostream_impl): Likewise.
1983 (__is_convertible_to_basic_ostream_impl): Likewise.
1984 (__is_convertible_to_basic_ostream): Use the new base.
1985 (__rvalue_ostream_type): New.
1986 (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
1987 for the SFINAE check, convert to the helper alias type before
1988 doing the actual insertion.
1989 * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
1991 2017-06-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1993 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
1995 2017-06-21 Jonathan Wakely <jwakely@redhat.com>
1998 * configure: Regenerate.
2000 2017-06-20 Uros Bizjak <ubizjak@gmail.com>
2002 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
2004 2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2006 * testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
2009 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2011 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
2012 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
2013 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
2014 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
2015 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
2016 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
2018 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
2019 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
2022 2017-06-18 H.J. Lu <hongjiu.lu@intel.com>
2025 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
2027 2017-06-18 Andreas Schwab <schwab@linux-m68k.org>
2030 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
2032 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2034 * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
2037 2017-06-17 Jonathan Wakely <jwakely@redhat.com>
2040 * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
2042 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
2044 * include/bits/shared_ptr.h (get_deleter): Add overload matching
2046 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
2047 get_deleter overload as a friend.
2048 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
2050 2017-06-16 Jakub Jelinek <jakub@redhat.com>
2053 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
2054 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
2055 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
2057 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
2059 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
2060 * testsuite/22_locale/conversions/buffer/2.cc: New.
2063 * acinclude.m4: Bump libtool_VERSION.
2064 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
2065 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
2066 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
2067 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
2068 to new GLIBCXX_3.4.25 version.
2069 * doc/xml/manual/abi.xml: Document new versions.
2070 * doc/html/*: Regenerate.
2071 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
2072 constructors to ensure required symbols are exported.
2073 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
2074 * testsuite/util/testsuite_abi.cc: Add new version.
2076 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
2078 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
2080 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
2082 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
2083 missing return statements.
2084 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
2086 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2088 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
2090 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
2092 * include/bits/stl_bvector.h
2093 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
2095 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
2096 (_Bvector_impl_data): New.
2097 (_Bvector_impl): Inherits from latter.
2098 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
2099 (_Bvector_impl(_Bvector_impl&&)): New, default.
2100 (_Bvector_base()): Default.
2101 (_Bvector_base(_Bvector_base&&)): Default.
2102 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
2103 (vector(vector&&, const allocator_type&)): Use latter.
2104 (vector<bool>::operator=(vector&&)): Likewise.
2105 (vector<bool>::vector()): Default.
2106 (vector<bool>::vector(vector&&)): Default.
2107 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
2109 (vector<bool>::assign(initializer_list<bool>)): Likewise.
2110 (vector<bool>::_M_initialize_value(bool)): New.
2111 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
2113 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
2115 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
2117 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
2119 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
2120 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
2122 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2124 * testsuite: Add dg-require-effective-target pthread to -pthread
2126 Remove explicit target lists from dg-do and dg-options.
2128 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
2129 target list from dg-options.
2130 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
2132 * 30_threads/shared_mutex/cons/1.cc: Likewise.
2133 Pass -pthread for all targets.
2134 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
2135 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
2136 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
2138 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
2139 dg-require-effective-target.
2141 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
2143 * doc/xml/manual/test.xml: Correct instructions on running tests.
2144 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
2145 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
2146 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
2148 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
2149 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
2150 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
2151 exceptions_failbit.cc: Likewise.
2152 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
2153 exceptions_failbit.cc: Likewise.
2154 * testsuite/27_io/basic_istream/extractors_other/char/
2155 exceptions_null.cc: Likewise.
2156 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
2157 exceptions_null.cc: Likewise.
2158 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
2159 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
2160 * testsuite/27_io/basic_ostream/inserters_other/char/
2161 exceptions_null.cc: Likewise.
2162 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
2163 exceptions_null.cc: Likewise.
2164 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2166 2017-06-12 Pedro Alves <palves@redhat.com>
2168 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
2170 * doc/html/*: Regenerate.
2172 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
2173 not already defined.
2174 (__cpp_lib_constexpr_char_traits): Uncomment.
2175 (__constant_string_p, __constant_char_array_p): New.
2176 (std::char_traits<char>, std::char_traits<wchar_t>): Add
2177 _GLIBCXX17_CONSTEXPR on compare, length and find and use
2178 __constant_string_p, __constant_char_array_p and
2179 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
2182 * testsuite/21_strings/char_traits/requirements/
2183 constexpr_functions_c++17.cc: Uncomment
2184 __cpp_lib_constexpr_char_traits tests. Uncomment
2185 test_compare<char>, test_length<char>, test_find<char>,
2186 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
2187 static_assert tests.
2189 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
2191 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
2193 * testsuite/util/testsuite_allocator.h
2194 (__gnu_test::default_init_allocator<>) New.
2195 * testsuite/23_containers/set/allocator/default_init.cc: New.
2196 * testsuite/23_containers/map/allocator/default_init.cc: New.
2198 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
2201 * src/c++11/thread.cc (execute_native_thread_routine): Remove
2202 try-block so that exceptions propagate out of the thread and terminate
2203 is called by the exception-handling runtime.
2204 (execute_native_thread_routine_compat): Likewise.
2205 * testsuite/30_threads/thread/cons/terminate.cc: New.
2207 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
2209 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
2210 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
2212 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
2213 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
2214 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
2216 * include/bits/forward_list.h (forward_list): Add deduction guide.
2217 * include/bits/stl_deque.h (deque): Likewise.
2218 * include/bits/stl_list.h (list): Likewise.
2219 * include/bits/stl_vector.h (vector): Likewise.
2220 * testsuite/23_containers/deque/cons/deduction.cc: New.
2221 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
2222 * testsuite/23_containers/list/cons/deduction.cc: New.
2223 * testsuite/23_containers/vector/cons/deduction.cc: New.
2225 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
2228 * include/bits/std_function.h (function::function(function&&))
2229 (function::operator=(funtion&&)): Add noexcept.
2230 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
2231 * testsuite/20_util/function/cons/move.cc: Likewise.
2233 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
2235 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
2236 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
2239 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
2240 so iterator type is deduced.
2241 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
2242 parameters to allow iterator type to be deduced.
2243 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
2245 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
2246 New trait and alias for detecting Allocator-like types.
2247 * include/bits/basic_string.h (basic_string): Add deduction guide
2249 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
2250 parameter with default template argument that causes substitution
2251 failures for types that cannot be allocators.
2252 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
2253 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
2255 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
2258 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
2259 (__erased_hash): Remove constexpr specifier and qualify calls to
2261 (__erased_dtor): Remove constexpr specifier and use _Destroy.
2263 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
2265 * include/bits/stl_iterator_base_funcs.h
2266 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
2267 cases where incrementing or decrementing a single step.
2269 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
2270 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
2271 specifiers as per LWG 2873 and LWG 2942.
2272 * testsuite/20_util/owner_less/noexcept.cc: New.
2273 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
2274 noexcept guarantees.
2275 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
2277 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
2279 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
2281 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
2283 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
2285 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
2288 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
2289 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
2290 Transform eof value to U+FFFD.
2291 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
2292 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
2293 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
2295 * libsupc++/Makefile.am: Remove custom targets for files that need to
2296 be compiled as C++11 or C++14.
2297 * libsupc++/Makefile.in: Regenerate.
2298 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
2300 * libsupc++/del_opvs.cc: Likewise.
2302 2017-06-02 Richard Biener <rguenther@suse.de>
2303 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
2306 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
2307 sorted and add missing freelist item merging cases.
2309 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2311 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
2312 Remove *-solaris* section.
2313 * configure: Regenerate.
2315 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
2318 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
2319 null pointer dereference when size is zero.
2320 * testsuite/23_containers/vector/bool/80893.cc: New.
2321 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
2322 Add non-explicit constructor from nullptr.
2323 (PointerBase::derived() const): Add const-qualified overload.
2325 2017-05-20 Tim Shen <timshen@google.com>
2328 * include/std/variant(variant::variant): SFINAE on is_same first.
2329 * testsuite/20_util/variant/any.cc: test case.
2331 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
2333 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
2334 instead of fixed number of bits.
2336 2017-05-24 Andreas Schwab <schwab@suse.de>
2338 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
2339 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
2341 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2342 Jonathan Wakely <jwakely@redhat.com>
2345 * acinclude.m4: Bump libtool_VERSION.
2346 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
2347 * config.h.in: Regenerate.
2348 * configure: Regenerate.
2349 * configure.ac: Add test for <linux/random.h>.
2350 * doc/xml/manual/abi.xml: Document new library version.
2351 * include/bits/random.h (random_device::entropy)
2352 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
2353 (random_device::_M_getentropy): Declare.
2354 * src/c++11/random.cc (random_device::_M_getentropy): Define.
2355 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
2356 versions, and make it the latest version.
2358 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
2361 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
2362 explicit conversion to avoid signed overflow.
2364 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
2367 * include/bits/stl_algo.h (search): Add new overload for C++17.
2368 * testsuite/25_algorithms/search/searcher.cc: New.
2370 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
2373 * include/std/functional (_Mem_fn_traits_base): Add specializations
2374 for noexcept member function types.
2375 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
2377 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
2379 * doc/xml/manual/policy_data_structures.xml: Fix typo.
2380 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
2381 * doc/html/*: Regenerate.
2383 * doc/xml/manual/abi.xml: Document latest library versions.
2384 * doc/xml/manual/build_hacking.xml: Document requirement to update
2385 abi.xml when bumping library versions.
2386 * doc/html/*: Regenerate.
2388 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
2390 * include/bits/refwrap.h: Fix Doxygen warning.
2391 * include/bits/specfun.h: Likewise.
2392 * include/bits/std_function.h: Likewise.
2393 * include/bits/stl_algo.h (set_union, set_intersection)
2394 (set_difference, set_symmetric_difference): Add Doxygen @param tags
2395 for output iterator parameters.
2396 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
2398 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
2401 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
2403 Implement new C++ intrinsics __is_assignable and __is_constructible.
2404 * include/std/type_traits (__do_is_static_castable_impl): Remove.
2405 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
2406 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
2407 (__is_direct_constructible_impl): Likewise.
2408 (__is_direct_constructible_new_safe): Likewise.
2409 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
2410 (__is_direct_constructible_ref_cast): Likewise.
2411 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
2412 (__do_is_nary_constructible_impl): Likewise.
2413 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
2414 (__is_constructible_impl): Likewise.
2415 (is_constructible): Call the intrinsic.
2416 (__is_assignable_helper): Remove.
2417 (is_assignable): Call the intrinsic.
2418 (is_trivially_constructible): Likewise.
2419 (__is_trivially_copy_constructible_impl): New.
2420 (is_trivially_copy_constructible): Use it.
2421 (__is_trivially_move_constructible_impl): New.
2422 (is_trivially_move_constructible): Use it.
2423 (is_trivially_assignable): Call the intrinsic.
2424 (__is_trivially_copy_assignable_impl): New.
2425 (is_trivially_copy_assignable): Use it.
2426 (__is_trivially_move_assignable_impl): New.
2427 (is_trivially_move_assignable): Use it.
2428 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
2429 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
2431 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
2432 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
2433 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
2434 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
2435 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
2438 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
2440 * testsuite/experimental/source_location/1.cc: Change expected result
2441 for source_location::current() used in default member initializer.
2443 * doc/xml/manual/status_cxx2017.xml: Update status table.
2444 * doc/html/*: Regenerate.
2445 * include/Makefile.am: Add new header.
2446 * include/Makefile.in: Regenerate.
2447 * include/experimental/source_location: New header implementing N4519.
2448 * testsuite/experimental/source_location/1.cc: New test.
2451 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
2452 outside versioned namespace.
2454 * configure: Regenerate.
2456 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
2458 * include/std/optional (_Optional_base::_M_get): Check precondition.
2459 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
2461 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
2463 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
2464 note higher DejaGnu version requirement.
2465 * doc/html/*: Regenerate.
2467 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
2469 * doc/html/*: Regenerate.
2471 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
2474 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
2475 (tuple_size, tuple_element): Remove partial specializations.
2476 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
2477 const_iterator for std::set.
2478 * testsuite/23_containers/map/modifiers/extract.cc: New.
2479 * testsuite/23_containers/set/modifiers/extract.cc: New.
2480 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
2481 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
2483 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
2486 * include/std/utility (tuple_size<cv T>): Only define partial
2487 specializations when tuple_size<T>::value is valid.
2488 * testsuite/20_util/tuple/78939.cc: New.
2489 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
2491 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
2493 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
2494 (_Rb_tree_impl<>): Remove _Is_pod_comparator
2497 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
2498 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
2499 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
2501 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
2502 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
2503 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
2504 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
2505 * src/c++11/debug.cc: Adapt.
2506 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
2508 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
2510 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
2511 * doc/xml/manual/mt_allocator.xml: Likewise.
2512 * doc/html/*: Regenerate.
2515 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
2516 function to get unique fake std::type_info reference.
2517 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
2518 _S_ti() fake reference.
2519 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
2520 single implementation with or without RTTI enable.
2521 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
2522 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
2523 allocation and deallocation counts.
2524 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
2525 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
2528 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
2530 Bump version namespace.
2531 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
2532 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
2533 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
2534 * include/bits/c++config: Adapt.
2535 * include/bits/regex.h: Adapt.
2536 * include/experimental/bits/fs_fwd.h: Adapt.
2537 * include/experimental/bits/lfts_config.h: Adapt.
2538 * include/std/variant: Adapt.
2539 * python/libstdcxx/v6/printers.py: Adapt.
2540 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
2542 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
2543 _GLIBCXX_MOVE usage.
2545 2017-05-09 Jason Merrill <jason@redhat.com>
2547 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
2549 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
2551 * include/std/optional: Use a separate static_assert per condition.
2552 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
2555 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
2556 * doc/html/*: Regenerate.
2558 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
2561 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
2563 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
2565 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
2568 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
2571 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
2572 assertions to ensure type is destructible.
2573 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
2574 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
2575 Move to stl_construct.h.
2576 * testsuite/20_util/specialized_algorithms/memory_management_tools/
2577 destroy_neg.cc: New test.
2578 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
2580 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
2581 superfluous "" in dg-error.
2583 2017-04-28 Tom de Vries <tom@codesourcery.com>
2585 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
2586 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
2588 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
2590 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
2591 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
2592 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
2595 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
2597 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
2598 comment. Ensure first test works because allocator type propagates and
2599 not because is_always_equal is true.
2600 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
2601 testcase that instantiates the move-assignment operator.
2603 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
2606 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
2607 number used in loop condition.
2610 * include/bits/refwrap.h (ref, cref): Qualify calls.
2611 * testsuite/20_util/reference_wrapper/80504.cc: New test.
2614 * include/experimental/optional (optional::swap): Fix exception
2617 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
2620 * include/std/future (_State_baseV2::_Setter::operator()): Remove
2621 _S_check calls that are done after the pointer to the shared state is
2622 already dereferenced.
2623 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
2624 as partial specialization so it can be defined within the definition
2626 (_State_baseV2::__setter): Call _S_check.
2627 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
2628 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
2629 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
2630 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
2631 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
2632 Use new __setter overload.
2633 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
2634 * testsuite/30_threads/promise/members/set_exception.cc: Test
2635 promise<T&> and promise<void> specializations.
2636 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
2637 Test for no_state error condition.
2638 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
2640 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
2642 * include/bits/shared_ptr.h: Likewise.
2643 * include/bits/shared_ptr_base.h: Likewise.
2644 * include/bits/unique_ptr.h: Likewise.
2645 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
2647 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
2648 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
2650 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
2653 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2655 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
2656 * include/tr1/exp_integral.tcc: Increase iteration limits.
2657 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
2658 pr68397.cc: New test.
2659 * testsuite/special_functions/14_expint/pr68397.cc: New test.
2661 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
2664 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
2665 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
2666 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
2667 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
2668 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
2669 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
2670 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
2671 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
2672 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
2675 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
2677 * doc/xml/manual/abi.xml: Rephrase one of the references to the
2679 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
2680 * doc/html/*: Regenerate.
2682 * libsupc++/new: Update comment on #endif directive.
2685 * include/experimental/bits/fs_dir.h (directory_iterator)
2686 (recursive_directory_iterator): Remove noexcept from defaulted
2690 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
2691 * libsupc++/new (launder): Likewise.
2693 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
2695 * include/std/functional (default_searcher, __boyer_moore_array_base)
2696 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
2697 (boyer_moore_horspool_searcher): Remove redundant namespace
2699 (default_searcher::operator()): Construct return value early and
2700 advance second member in-place.
2701 (boyer_moore_horspool_searcher::operator()): Increment random access
2702 iterator directly instead of using std::next.
2703 (boyer_moore_searcher::operator()): Fix return value.
2704 * testsuite/20_util/function_objects/searchers.cc: Check both parts
2707 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
2709 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
2710 * doc/xml/manual/abi.xml. Ditto (thrice).
2712 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
2714 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
2715 * doc/html/*: Regenerate.
2717 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
2718 that no longer fail.
2720 * include/bits/ios_base.h: Correct comment.
2721 * testsuite/util/testsuite_hooks.h: Likewise.
2723 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
2724 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
2725 directories for debug, parallel and profile headers.
2726 * doc/html/*: Regenerate.
2728 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
2729 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
2730 (std::char_traits<char>, std::char_traits<wchar_t>): Add
2731 _GLIBCXX17_CONSTEXPR on assign.
2732 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
2733 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
2734 * testsuite/21_strings/char_traits/requirements/
2735 constexpr_functions_c++17.cc: New test.
2737 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2740 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
2741 (operator=(typename conditional<
2742 __and_<is_copy_assignable<_T1>,
2743 is_copy_assignable<_T2>>::value,
2744 const pair&, const __nonesuch&>::type)): Change __nonesuch
2745 to __nonesuch_no_braces.
2746 (operator=(typename conditional<
2747 __not_<__and_<is_copy_assignable<_T1>,
2748 is_copy_assignable<_T2>>>::value,
2749 const pair&, const __nonesuch&>::type)): Likewise.
2750 (operator=(typename conditional<
2751 __and_<is_move_assignable<_T1>,
2752 is_move_assignable<_T2>>::value,
2753 pair&&, __nonesuch&&>::type)): Likewise.
2754 * testsuite/20_util/pair/79141.cc: New.
2756 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2758 Implement std::is_aggregate.
2759 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
2760 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
2762 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
2763 * testsuite/20_util/is_aggregate/value.cc: Likewise.
2765 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2767 Adjust optional's pretty printer for LWG 2900.
2768 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
2769 Look at the nested payload in case of non-experimental optional.
2771 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2773 Implement LWG 2900, The copy and move constructors
2774 of optional are not constexpr.
2775 * include/std/optional (_Optional_payload): New.
2776 (_Optional_base): Remove the bool parameter.
2777 (_Optional_base<_Tp, false>): Remove.
2778 (_Optional_base()): Adjust.
2779 (_Optional_base(nullopt_t)): Likewise.
2780 (_Optional_base(in_place_t, _Args&&...)): Likewise.
2781 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
2783 (_Optional_base(const _Optional_base&)): Likewise.
2784 (_Optional_base(_Optional_base&&)): Likewise.
2785 (operator=(const _Optional_base&)): Likewise.
2786 (operator=(_Optional_base&&)): Likewise.
2787 (~_Optional_base()): Remove.
2788 (_M_is_engaged()): Adjust.
2789 (_M_get()): Likewise.
2790 (_M_construct(_Args&&...)): Likewise.
2791 (_M_destruct()): Likewise.
2792 (_M_reset()): Likewise.
2793 (_Optional_base::_Empty_byte): Remove.
2794 (_Optional_base::_M_empty): Remove.
2795 (_Optional_base::_M_payload): Adjust.
2796 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
2797 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
2799 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
2802 * include/bits/random.tcc (generate_canonical): Use std::nextafter
2803 or numeric_limits::epsilon() to reduce out-of-range values.
2804 * testsuite/26_numerics/random/uniform_real_distribution/operators/
2805 64351.cc: Verify complexity requirement is met.
2807 * doc/xml/manual/abi.xml: Add xml:id anchor.
2808 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
2809 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
2810 (concurrency.io.structure): Add markup.
2811 * doc/html/*: Regenerate.
2814 * include/bits/shared_ptr_base.h
2815 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
2816 non-const and then use remove_cv to get unqualified type.
2817 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
2818 cast away constness on object created const.
2819 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
2821 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
2824 * include/bits/stl_tree.h:
2825 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
2827 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
2829 * testsuite/23_containers/array/tuple_interface/
2830 tuple_element_debug_neg.cc: Adjust dg-error.
2831 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
2832 define a valid strict weak ordering.
2833 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
2834 Debug Mode, due to debug checks making extra copies of predicate.
2835 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
2838 * doc/xml/faq.xml: Add link.
2839 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
2840 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
2841 * doc/xml/manual/io.xml: Update broken link.
2842 * doc/html/*: Regenerate.
2844 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
2846 Implement LWG 2686, Why is std::hash specialized for error_code,
2847 but not error_condition?
2848 * include/std/system_error (hash<error_condition>): Define for C++17.
2849 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
2850 Instantiate test for error_condition.
2851 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
2852 (hash<error_condition>): Instantiate hash<error_condition>.
2854 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
2855 * include/bits/regex_constants.h (All std::regex_constants constants):
2856 Add _GLIBCXX17_INLINE as per P0607R0.
2857 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
2859 * include/bits/stl_pair.h (piecewise_construct): Likewise.
2860 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
2861 (__is_uses_allocator_constructible_v)
2862 (__is_nothrow_uses_allocator_constructible_v): Likewise.
2863 * include/std/chrono (treat_as_floating_point_v): Likewise.
2864 * include/std/functional (is_bind_expression_v, is_placeholder_v):
2866 * include/std/optional (nullopt): Likewise.
2867 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
2868 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
2869 * include/std/system_error (is_error_code_enum_v)
2870 (is_error_condition_enum_v): Likewise.
2871 * include/std/tuple (tuple_size_v, ignore): Likewise.
2872 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
2873 constexpr as per LWG 2933.
2874 * include/std/type_traits (All variable templates): Add
2875 _GLIBCXX17_INLINE as per P0607R0.
2876 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
2877 (__tuple_count_v, __exactly_once): Likewise.
2878 * testsuite/18_support/headers/new/synopsis.cc
2879 (hardware_destructive_interference_size)
2880 (hardware_constructive_interference_size): Likewise for commented-out
2882 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
2883 test function for constexpr std::ignore (LWG 2773).
2884 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
2887 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
2889 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
2891 * include/bits/std_function.h (function): Likewise.
2892 * include/bits/stl_pair.h (pair): Likewise.
2893 * include/debug/array (__gnu_debug::array): Likewise.
2894 * include/std/array (array): Likewise.
2895 * include/std/functional (make_default_searcher)
2896 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
2897 Remove generator functions.
2898 * include/std/tuple (tuple): Add deduction guides.
2899 * include/std/valarray (valarray): Likewise.
2900 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
2901 class template argument deduction instead of generator functions.
2902 * testsuite/20_util/function/cons/deduction.cc: New test.
2903 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
2904 * testsuite/20_util/optional/cons/deduction.cc: ... here.
2905 * testsuite/20_util/pair/cons/deduction.cc: New test.
2906 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
2907 * testsuite/20_util/tuple/cons/deduction.cc: New test.
2908 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
2909 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
2910 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
2911 * testsuite/23_containers/array/cons/deduction.cc: New test.
2912 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
2913 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
2915 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
2916 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2918 * testsuite/26_numerics/valarray/deduction.cc: New test.
2919 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
2920 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
2921 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
2923 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
2925 * include/bits/stl_deque.h (deque): Access allocator value_type only if
2926 concept checks are enabled.
2927 * include/bits/stl_stack.h (stack): Likewise.
2928 * include/bits/stl_vector.h (vector): Likewise.
2929 * include/bits/stl_list.h (list): Likewise and check
2930 _SGIAssignableConcept only in C++03.
2931 * include/bits/stl_map.h (map): Likewise.
2932 * include/bits/stl_set.h (set): Likewise.
2933 * include/bits/stl_multimap.h (multimap): Likewise.
2934 * include/bits/stl_multiset.h (multiset): Likewise.
2935 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
2937 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
2939 * doc/xml/manual/appendix_contributing.xml: Convert link to
2941 Update link to the C++ standard at ansi.org.
2943 * doc/xml/faq.xml: Remove information redundant with the above;
2944 instead add a reference.
2946 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
2948 * src/c++11/codecvt.cc (range): Add non-type template parameter and
2949 define oerloaded operators for reading and writing code units.
2950 (range<Elem, false>): Define partial specialization for accessing
2951 wide characters in potentially unaligned byte ranges.
2952 (ucs2_span(const char16_t*, const char16_t*, ...))
2953 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
2954 to range<const char16_t, false> in order to avoid unaligned reads.
2955 (__codecvt_utf16_base<char16_t>::do_out)
2956 (__codecvt_utf16_base<char32_t>::do_out)
2957 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
2958 unaligned data to avoid unaligned writes.
2959 (__codecvt_utf16_base<char16_t>::do_in)
2960 (__codecvt_utf16_base<char32_t>::do_in)
2961 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
2962 error if there are unprocessable trailing bytes.
2963 (__codecvt_utf16_base<char16_t>::do_length)
2964 (__codecvt_utf16_base<char32_t>::do_length)
2965 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
2966 range<const char16_t, false> to span functions.
2967 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
2969 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
2972 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
2975 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
2976 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
2977 char16_t to work with UTF-16 instead of UTF-8.
2978 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
2980 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
2981 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
2982 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
2983 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
2984 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
2985 (__codecvt_utf8_utf16_base<char32_t>)
2986 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
2987 do_max_length() return values.
2988 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
2989 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
2990 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
2993 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
2995 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
2996 for manipulating codecvt_mode values.
2997 (read_utf16_bom): Compare input to BOM constants instead of integral
2998 constants that depend on endianness. Take mode parameter by
2999 reference and adjust it, to distinguish between no BOM present and
3000 UTF-16BE BOM present.
3001 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
3002 (surrogates): New enumeration type.
3003 (utf16_in, utf16_out): Add surrogates parameter to choose between
3004 UTF-16 and UCS2 behaviour.
3005 (utf16_span, ucs2_span): Use std::min not std::max.
3006 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
3007 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
3008 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
3009 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
3012 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
3013 as a surrogate pair.
3014 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
3015 for internal representation.
3016 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
3017 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
3020 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
3021 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
3022 invalid instantiations using function types for _Compare argument.
3023 * testsuite/25_algorithms/make_heap/80064.cc: New test.
3026 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
3027 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
3029 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
3031 Implement LWG 2857, {variant,optional,any}::emplace should
3032 return the constructed value.
3033 * include/std/any (emplace(_Args&&...)): Change the return type and
3034 return a reference to the constructed value.
3035 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
3036 * include/std/optional (emplace(_Args&&...)): Likewise.
3037 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
3038 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
3039 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
3040 (emplace<_Np>(_Args&&...)): Likewise.
3041 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
3042 * testsuite/20_util/any/assign/emplace.cc: Add tests for
3043 checking the return value of emplace.
3044 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
3045 * testsuite/20_util/optional/assignment/6.cc: Add tests for
3046 checking the return value of emplace.
3047 * testsuite/20_util/variant/run.cc: Likewise.
3049 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
3052 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
3054 (push_heap): Remove the wrong checking using is_heap.
3055 (make_heap): Remove the assertion using is_heap.
3056 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
3058 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
3061 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
3064 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
3066 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
3069 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
3071 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
3073 * config.h.in: Regenerate.
3074 * configure: Regenerate.
3075 * doc/Makefile.in: Regenerate.
3077 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
3080 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3081 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
3082 with a constrained template.
3083 [!_GLIBCXX_USE_CXX11_ABI]
3084 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
3085 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
3086 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
3088 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
3091 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
3093 (merge(list&&, _StrictWeakOrdering)): Likewise.
3094 * testsuite/23_containers/list/operations/80034.cc: New.
3096 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
3098 Implement LWG 2806, Base class of bad_optional_access.
3099 * include/std/optional (bad_optional_access):
3100 Derive from std::exception.
3101 (bad_optional_access::bad_optional_access): Adjust.
3102 (bad_optional_access::what): New.
3103 (__throw_bad_optional_access(const char*)):
3104 Remove the parameter and adjust calls.
3105 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
3106 * testsuite/20_util/optional/typedefs.cc: Likewise.
3108 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
3110 Implement LWG 2934, optional<const T> doesn't compare with T.
3111 * include/std/optional
3112 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
3113 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
3114 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
3115 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
3116 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
3117 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
3118 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
3119 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
3120 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
3121 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
3122 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
3123 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
3124 (operator==(const optional<_Tp>&, const _Tp&)):
3125 Turn into operator==(const optional<_Tp>&, const _Up&).
3126 (operator==(const _Tp&, const optional<_Tp>&)):
3127 Turn into operator==(const _Up&, const optional<_Tp>&).
3128 (operator!=(const optional<_Tp>&, const _Tp&)):
3129 Turn into operator!=(const optional<_Tp>&, const _Up&).
3130 (operator!=(const _Tp&, const optional<_Tp>&)):
3131 Turn into operator!=(const _Up&, const optional<_Tp>&).
3132 (operator<(const optional<_Tp>&, const _Tp&)):
3133 Turn into operator<(const optional<_Tp>&, const _Up&).
3134 (operator<(const _Tp&, const optional<_Tp>&)):
3135 Turn into operator<(const _Up&, const optional<_Tp>&).
3136 (operator>(const optional<_Tp>&, const _Tp&)):
3137 Turn into operator>(const optional<_Tp>&, const _Up&).
3138 (operator>(const _Tp&, const optional<_Tp>&)):
3139 Turn into operator>(const _Up&, const optional<_Tp>&).
3140 (operator<=(const optional<_Tp>&, const _Tp&)):
3141 Turn into operator<=(const optional<_Tp>&, const _Up&).
3142 (operator<=(const _Tp&, const optional<_Tp>&)):
3143 Turn into operator<=(const _Up&, const optional<_Tp>&).
3144 (operator>=(const optional<_Tp>&, const _Tp&)):
3145 Turn into operator>=(const optional<_Tp>&, const _Up&).
3146 (operator>=(const _Tp&, const optional<_Tp>&)):
3147 Turn into operator>=(const _Up&, const optional<_Tp>&).
3148 * testsuite/20_util/optional/relops/7.cc: New.
3150 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
3152 * testsuite/17_intro/names.cc: Undefine macros that clash with
3153 identifiers in AIX system headers.
3155 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
3156 result_of, and __is_nothrow_invocable instead of
3157 __is_nothrow_callable.
3158 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
3159 instead of __is_callable.
3160 * include/std/functional (invoke): use invoke_result_t instead of
3161 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
3162 (_Not_fn): Use __invoke_result instead of result_of.
3163 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
3164 Remove partial specializations for reference_wrapper types.
3165 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
3166 (__invoke_result): Define replacement for result_of and then use it to
3168 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
3169 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
3171 (invoke_result, invoke_result_t): Define for C++17.
3172 (is_callable, is_nothrow_callable): Replace with is_invocable,
3173 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
3174 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
3175 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
3176 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
3177 instead of is_nothrow_callable_v.
3178 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
3180 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
3181 instead of is_callable.
3182 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
3184 * testsuite/20_util/is_nothrow_callable/*: Likewise.
3185 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
3187 * testsuite/20_util/variant/hash.cc: Likewise.
3189 2017-03-10 George Lander <george.lander@arm.com>
3191 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
3192 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
3193 * configure: Regenerate.
3195 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
3197 * include/std/functional (_Not_fn): Define macro to simplify
3198 repetitive function definitions.
3200 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
3201 * include/c_global/cstddef (std::byte): Define for C++17.
3202 * testsuite/18_support/byte/global_neg.cc: New test.
3203 * testsuite/18_support/byte/ops.cc: New test.
3204 * testsuite/18_support/byte/requirements.cc: New test.
3206 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
3208 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
3209 * doc/html/*: Regenerate.
3210 * include/std/mutex (scoped_lock): Implement new C++17 template.
3211 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
3212 * testsuite/30_threads/scoped_lock/requirements/
3213 explicit_instantiation.cc: New test.
3214 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
3216 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
3217 François Dumont <frs.dumont@gmail.com>
3218 Jonathan Wakely <jwakely@redhat.com>
3220 * doc/xml/manual/debug_mode.xml: Update and simplify note
3221 on link- and run-time coexistence.
3223 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
3225 * testsuite/17_intro/headers/names.cc: Rename to ...
3226 * testsuite/17_intro/names.cc: ... here.
3229 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
3230 parameters and local variables.
3231 * include/bits/ios_base.h (make_error_code, make_error_condition):
3233 * include/bits/list.tcc (list::sort): Likewise.
3234 * include/bits/mask_array.h (mask_array): Likewise.
3235 * include/bits/regex.h (regex_token_iterator): Likewise.
3236 * include/bits/slice_array.h (slice_array): Likewise.
3237 * include/bits/stl_algo.h (__sample): Likewise.
3238 * include/std/memory (undeclare_no_pointers): Likewise.
3239 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
3241 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
3242 * testsuite/17_intro/headers/names.cc: New test.
3245 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
3246 result_of that loses top-level cv-qualifiers.
3247 * testsuite/20_util/bind/79798.cc: New test.
3249 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
3251 * doc/xml/manual/documentation_hacking.xml: Tweak link to
3254 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
3256 * include/experimental/iterator: Include <iterator>.
3257 * testsuite/experimental/iterator/requirements.cc: Check for contents
3260 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
3262 C++17 GB50 resolution
3263 * include/std/chrono (duration::operator++()): Add
3264 _GLIBCXX17_CONSTEXPR.
3265 (duration::operator++(int)): Likewise.
3266 (duration::operator--()): Likewise.
3267 (duration::operator--(int)): Likewise.
3268 (duration::operator+=(const duration&)): Likewise.
3269 (duration::operator-=(const duration&)): Likewise.
3270 (duration::operator*=(const rep&)): Likewise.
3271 (duration::operator/=(const rep&)): Likewise.
3272 (duration::operator%=(const rep&)): Likewise.
3273 (duration::operator%=(const duration&)): Likewise.
3274 (time_point::operator+=(const duration&)): Likewise.
3275 (time_point::operator-=(const duration&)): Likewise.
3276 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
3277 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
3278 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
3280 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
3282 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
3284 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3286 * doc/xml/manual/io.xml: Update link to groups.google.com.
3287 Tweak link description.
3289 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
3291 * doc/xml/manual/profile_mode.xml: Fix link.
3293 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
3295 * doc/xml/manual/policy_data_structures.xml: Simplify and
3296 standardize references to boost.org.
3297 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
3298 * doc/xml/manual/shared_ptr.xml: Ditto.
3300 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
3303 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
3304 written to buffer, not length remaining in buffer.
3306 2017-02-15 Tim Shen <timshen@google.com>
3309 * include/std/variant (operator<(), operator>(), operator<=(),
3310 operator>=(), operator==(), operator!=()): Implement P0393R3.
3311 * testsuite/20_util/variant/compile.cc: Adjust tests.
3312 * testsuite/20_util/variant/run.cc: Adjust tests.
3314 2017-02-15 Tim Shen <timshen@google.com>
3317 * include/std/variant (visit()): Forward variant types to the return
3318 type detection code.
3319 * testsuite/20_util/variant/compile.cc: Add test cases.
3321 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
3324 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3326 2017-02-13 Jakub Jelinek <jakub@redhat.com>
3329 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3330 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
3331 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
3332 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
3333 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
3334 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
3335 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
3336 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
3337 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
3339 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
3342 * include/std/future (__future_base::_Task_state::_M_run)
3343 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
3344 result_of expressions.
3345 * testsuite/30_threads/packaged_task/79486.cc: New.
3347 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
3350 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
3351 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
3352 __is_callable check.
3353 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
3355 * include/bits/atomic_base.h: Re-indent.
3357 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
3359 * doc/xml/manual/profile_mode.xml: Update a paper reference.
3361 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3363 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
3365 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
3367 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
3369 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
3370 broken links to texts that are no longer online.
3371 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
3373 * doc/xml/manual/using.xml: Update links to memory model information.
3374 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
3375 Standard-Library Exception Safety".
3376 * doc/html/*: Regenerate.
3378 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3380 * doc/xml/manual/profile_mode.xml: Unbreak link to
3381 "Optimizing Sorting with Machine Learning Algorithms".
3383 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3385 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
3387 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
3389 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
3392 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
3394 * doc/html/ext/lwg-active.html: Remove.
3395 * doc/html/ext/lwg-closed.html: Ditto.
3396 * doc/html/ext/lwg-defects.html: Ditto.
3398 * doc/Makefile.am (xml_extradir): Remove.
3400 (stamp-html-docbook-lwg): Remove recipe...
3401 (stamp-html-docbook-data): ...and its use here.
3402 * doc/Makefile.in: Regenerate.
3404 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
3405 the relationship to the upstream working group.
3406 Replace a local link to ../ext/lwg-active.html by the upstream one.
3407 Replace all reference to ../ext/lwg-defects.html by a new entity
3408 &DR; which refers to the upstream address.
3410 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
3412 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
3414 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
3417 * testsuite/20_util/duration/literals/range.cc: Prune extra output
3420 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
3422 * doc/xml/manual/documentation_hacking.xml: Update URL of the
3423 DocBook Element Reference. Use that term as link description
3424 instead of "online".
3425 epubcheck has moved to GitHub.
3426 Remove obsolete link to DocBook Publishing Tools.
3428 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
3431 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
3432 so new ios::failure can be caught even when old ABI is the default.
3433 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
3434 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
3435 exceptions_failbit.cc: Likewise.
3436 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
3437 exceptions_failbit.cc: Likewise.
3438 * testsuite/27_io/basic_istream/extractors_other/char/
3439 exceptions_null.cc: Likewise.
3440 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
3441 exceptions_null.cc: Likewise.
3442 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
3443 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
3444 * testsuite/27_io/basic_ostream/inserters_other/char/
3445 exceptions_null.cc: Likewise.
3446 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
3447 exceptions_null.cc: Likewise.
3448 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3451 * src/c++11/Makefile.am: Add new files.
3452 * src/c++11/Makefile.in: Regenerate.
3453 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
3454 (operator<<, operator>>, getline): Move explicit instantiations to ...
3455 * src/c++11/cow-string-io-inst.cc: ... new file.
3456 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
3457 (operator<<, operator>>, getline): Move explicit instantiations to ...
3458 * src/c++11/cow-wstring-io-inst.cc: ... new file.
3459 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
3460 (__throw_future_error, __throw_bad_function_call):
3461 (__throw_regex_error): Move functions for C++11 exceptions to the
3462 files that define the exception types.
3463 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
3464 * src/c++11/future.cc (__throw_future_error): Likewise.
3465 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
3466 * src/c++11/regex.cc (__throw_regex_error): Likewise.
3467 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
3468 representation directly instead of calling __int_to_char.
3469 * src/c++11/sso_string.cc (__sso_string): New file for definition
3470 of __sso_string type.
3471 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
3472 explicit instantiations of narrow string I/O functions.
3473 * src/c++11/system_error.cc (__throw_system_error): Move here.
3474 (__sso_string): Move to new file.
3475 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
3476 explicit instantiations of wide string I/O functions.
3477 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
3478 (operator>>, getline): Remove explicit instantiations from here.
3480 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
3482 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
3484 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3486 * configure.host: Separate Solaris/SPARC and x86 baselines.
3487 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
3488 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
3489 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
3490 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
3492 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
3493 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
3494 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
3495 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
3496 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
3497 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
3498 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
3500 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
3501 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
3502 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
3504 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3505 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3506 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3507 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
3508 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
3509 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
3511 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
3514 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
3516 (_Iter_comp_to_iter): Likewise.
3517 * testsuite/25_algorithms/search/78346.cc: New test.
3520 * config/abi/pre/gnu.ver: Remove recently added symbols.
3521 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3522 (basic_string::_M_copy_assign): Remove.
3523 (basic_string::operator=(const basic_string&)): Don't dispatch to
3524 _M_copy_assign. If source object is small just deallocate, otherwise
3525 perform new allocation before making any changes.
3526 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
3527 (basic_string::_M_copy_assign(const basic_string&, true_type)):
3529 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3530 Test cases where the allocators are equal or the string is small.
3531 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3534 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
3536 Implement LWG 2825, LWG 2756 breaks class template argument
3537 deduction for optional.
3538 * include/std/optional: Add a deduction guide.
3539 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
3541 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
3544 * config/abi/pre/gnu.ver: Add new symbols.
3545 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
3546 (basic_string::_M_copy_assign): New overloaded functions to perform
3548 (basic_string::operator=(const basic_string&)): Dispatch to
3550 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
3551 (basic_string::_M_copy_assign(const basic_string&, true_type)):
3552 Define, performing rollback on exception.
3553 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
3554 Test exception-safety guarantee.
3555 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
3557 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
3560 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
3563 * include/tr1/complex (conj): Remove using-declaration and restore
3564 overloads, reverting previous change.
3566 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
3568 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
3569 Mark as unsupported in C++98 mode.
3570 * testsuite/23_containers/queue/requirements/constructible.cc:
3572 * testsuite/23_containers/stack/requirements/constructible.cc:
3574 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
3577 * include/bits/c++config (literals::string_view_literals::__7): Add.
3578 Only declare versioned namespaces for the relevant C++ dialects.
3579 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
3580 Add versioning macros.
3581 * include/experimental/bits/lfts_config.h:
3582 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
3583 * include/experimental/string_view (fundamentals_v2::__detail):
3584 Add versioning macros.
3585 (fundamentals_v2::__detail::__identity): Remove.
3586 (fundamentals_v2::__detail::__idt): Use common_type instead of
3587 __detail::__identity.
3588 * include/std/string_view (__detail::__identity, __detail::__idt):
3590 (literals::string_view_literals): Fix nesting of versioning macros.
3593 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
3594 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
3595 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
3596 Retrieve original pointer value allocated by malloc.
3597 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
3598 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
3599 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
3600 Define, adjusting pointer value allocated by malloc and storing for
3601 retrieval by operator delete.
3603 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3605 * libsupc++/eh_atomics.h: Update copyright years.
3606 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
3608 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
3612 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
3613 (proj(T), conj(T)): Change return types per DR 1522.
3614 * include/tr1/complex (conj): Remove overloads and use std::conj.
3615 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
3616 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
3617 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
3618 real(T) and imag(T). Allow testing for C++11 too.
3620 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
3623 * include/experimental/string_view (operator==): Check sizes first.
3624 * include/std/string_view (operator==): Likewise.
3626 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
3628 * testsuite/experimental/array/make_array.cc: Restore <functional>
3631 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
3633 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
3635 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
3638 * include/experimental/array (__make_array_elem): New class template
3639 and partial specialization.
3640 (__is_reference_wrapper): Move into __make_array_elem specialization.
3641 (make_array): Use __make_array_elem to determine element type and move
3642 static assertion into specialization. Qualify std::forward call.
3643 (to_array): Add exception specifiation.
3644 * testsuite/experimental/array/make_array.cc: Test argument types
3645 without a common type.
3646 * testsuite/experimental/array/neg.cc: Adjust expected error message.
3648 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3650 * doc/xml/manual/debug.xml: code.google.com uses https now.
3652 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3654 * doc/xml/manual/test.xml: Fix link into gccint online manual.
3656 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3658 Make poisoned hashes SFINAE away the call operator of the hash.
3659 * include/bits/functional_hash.h
3660 (__poison_hash::__enable_hash_call): New.
3661 * include/std/optional (__optional_hash_call_base): New.
3662 (hash<optional<_Tp>>): Derive from the new base,
3663 move the hash function into that base.
3664 * include/std/variant (__variant_hash_call_base_impl): New.
3665 (__variant_hash_call_base): Likewise.
3666 (hash<variant<_Types...>>): Derive from the new base,
3667 move the hash function into that base.
3668 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
3669 * testsuite/20_util/variant/hash.cc: Likewise.
3671 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
3673 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
3674 * configure: Regenerate.
3676 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
3679 * include/bits/random.h (uniform_real_distribution::param_type)
3680 (normal_distribution::param_type, lognormal_distribution::param_type)
3681 (gamma_distribution::param_type, chi_squared_distribution::param_type)
3682 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
3683 (student_t_distribution::param_type)
3684 (bernoulli_distribution::param_type, binomial_distribution::param_type)
3685 (geometric_distribution::param_type)
3686 (negative_binomial_distribution::param_type)
3687 (poisson_distribution::param_type)
3688 (exponential_distribution::param_type)
3689 (weibull_distribution::param_type)
3690 (extreme_value_distribution::param_type)
3691 (discrete_distribution::param_type)
3692 (piecewise_constant_distribution::param_type)
3693 (piecewise_linear_distribution::param_type): Define operator!=.
3694 * include/bits/uniform_int_dist.h
3695 (uniform_int_distribution::param_type): Likewise.
3696 * include/ext/random (beta_distribution::param_type)
3697 (rice_distribution::param_type, nakagami_distribution::param_type)
3698 (pareto_distribution::param_type, k_distribution::param_type)
3699 (arcsine_distribution::param_type, hoyt_distribution::param_type)
3700 (triangular_distribution::param_type)
3701 (von_mises_distribution::param_type)
3702 (hypergeometric_distribution::param_type)
3703 (logistic_distribution::param_type)
3704 (uniform_on_sphere_distribution::param_type)
3705 (uniform_inside_sphere_distribution::param_type): Likewise.
3706 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
3707 Test construction with param_type.
3708 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
3710 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
3712 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
3714 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
3716 * testsuite/26_numerics/random/extreme_value_distribution/cons/
3718 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
3720 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
3722 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
3724 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
3726 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
3728 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
3730 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
3732 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
3734 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
3736 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
3738 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
3740 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
3741 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
3742 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
3743 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
3745 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
3746 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
3747 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
3748 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
3749 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
3750 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
3751 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
3753 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
3755 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
3758 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
3759 (__allocator_traits_base::__size_type): Remove.
3760 (allocator_traits::_Ptr): New class template to detect const and void
3761 pointer types without instantiating pointer_traits::rebind
3763 (allocator_traits::_Diff): Likewise for detecting difference_type.
3764 (allocator_traits::_Size): New class template to detect size_type
3765 without instantiating make_unsigned unnecessarily.
3766 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
3767 __detected_or_t instead of __detected_or_t_.
3768 * include/std/type_traits (__detected_or_t_): Remove.
3769 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
3773 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
3774 Replace with class template using void_t.
3775 (__alloc_rebind): Define in terms of
3776 __allocator_traits_base::__rebind.
3777 (allocator_traits): Remove unconditional static_assert for
3779 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
3780 (pointer_traits::__rebind): Replace with class template using void_t.
3781 (pointer_traits::rebind): Define in terms of __rebind.
3782 (pointer_traits): Remove unconditional static_assert for rebind.
3783 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
3784 * testsuite/20_util/pointer_traits/rebind.cc: New test.
3787 * include/experimental/any (__any_caster): Avoid instantiating
3788 manager function for types that can't be stored in any.
3789 * include/std/any (__any_caster): Likewise.
3790 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
3791 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
3794 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
3797 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
3800 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
3802 (__enable_shared_from_this): Declare __shared_ptr as a friend.
3803 * testsuite/ext/shared_ptr/1.cc: New test.
3806 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
3808 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
3810 * doc/xml/manual/abi.xml: Fix typo.
3811 * doc/html/manual/abi.html: Likewise.
3814 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
3815 converting constructors from _Iter_less_iter.
3816 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
3818 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
3819 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
3820 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
3821 (__make_heap, __sort_heap): Change _Compare parameters to references.
3822 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
3823 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
3824 functions as lvalues.
3825 (is_heap): Call __is_heap_until directly to avoid copying __comp.
3826 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
3827 count copies during construction with empty sequence.
3830 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
3831 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
3832 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
3834 * testsuite/25_algorithms/make_heap/movable.cc: New test.
3837 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
3838 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
3839 _GLIBCXX_MOVE when passing comparison function to other functions.
3840 (is_heap_until, is_heap): Use std::move when passing comparison
3842 * testsuite/23_containers/priority_queue/67085.cc: New test.
3845 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
3846 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
3847 Document that the deprecated _GLIBCXX_VERSION macro was removed for
3849 * doc/html/*: Regenerate.
3850 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
3851 * include/Makefile.in: Regenerate.
3852 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
3853 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
3856 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
3859 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
3860 aligned buffer instead of default-initialized variable.
3861 * testsuite/29_atomics/atomic/69301.cc: New test.
3862 * include/experimental/memory (observer_ptr::release): Use reserved
3864 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
3865 (_Pointer_adapter::operator--(int)): Likewise.
3868 * include/experimental/random (randint): Use temporary instead of
3869 thread_local static.
3871 2017-01-17 Joshua Conner <joshconner@google.com>
3873 * crossconfig.m4: Add fuchsia OS.
3874 * configure: Regenerate.
3876 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
3879 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
3880 __GLIBCXX__ macro is not useful. Remove redundant date information
3881 and link to the GCC release timeline.
3882 (abi.versioning.active): Move partial sentence into the previous
3884 * doc/html/*: Regenerate.
3887 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
3888 of remove_reference.
3889 * testsuite/18_support/nested_exception/79114.cc: New test.
3891 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3894 * configure.ac: Add GCC_BASE_VER.
3895 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3896 get version from BASE-VER file.
3897 * po/Makefile.in: Regenerated.
3898 * libsupc++/Makefile.in: Regenerated.
3899 * testsuite/Makefile.in: Regenerated.
3900 * src/Makefile.in: Regenerated.
3901 * configure: Regenerated.
3902 * Makefile.in: Regenerated.
3903 * include/Makefile.in: Regenerated.
3904 * doc/Makefile.in: Regenerated.
3905 * python/Makefile.in: Regenerated.
3906 * src/c++11/Makefile.in: Regenerated.
3907 * src/c++98/Makefile.in: Regenerated.
3908 * src/filesystem/Makefile.in: Regenerated.
3910 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
3913 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
3915 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
3916 for test, so new ios::failure can be caught.
3917 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
3918 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
3919 exceptions_failbit.cc: Likewise.
3920 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
3921 exceptions_failbit.cc: Likewise.
3922 * testsuite/27_io/basic_istream/extractors_other/char/
3923 exceptions_null.cc: Likewise.
3924 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
3925 exceptions_null.cc: Likewise.
3926 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
3927 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
3928 * testsuite/27_io/basic_ostream/inserters_other/char/
3929 exceptions_null.cc: Likewise.
3930 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
3931 exceptions_null.cc: Likewise.
3932 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
3935 * include/bits/locale_classes.h (locale::facet::__shim): Change from
3936 private to protected.
3937 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
3938 make locale::facet::__shim accessible.
3940 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
3943 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
3944 (merge(list&&, _StrictWeakOrdering)): Likewise.
3945 * testsuite/23_containers/list/operations/78389.cc: Add
3946 better test for the sizes.
3948 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
3950 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
3951 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
3952 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
3953 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
3955 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
3956 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
3957 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
3958 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
3959 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
3961 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
3963 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
3965 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
3967 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
3969 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
3970 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
3971 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
3972 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
3973 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
3974 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
3975 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
3976 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
3977 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
3978 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
3979 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
3980 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
3981 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
3983 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
3986 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
3987 retry fclose on EINTR.
3989 * include/profile/base.h: Remove unused header that leads to header
3990 cycle in C++17 mode.
3993 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
3994 Make _If_sv private.
3995 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
3996 basic_string_view arguments.
3999 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
4000 redundant option from cxxflags.
4001 (check_effective_target_cxx11-abi): Define.
4002 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
4004 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
4005 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
4007 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
4009 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
4010 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
4012 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
4014 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
4015 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
4017 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
4019 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
4021 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
4023 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
4025 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
4027 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
4029 * testsuite/23_containers/list/61347.cc: Likewise.
4030 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
4031 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
4033 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
4036 * include/bits/list.tcc (merge(list&&)):
4037 Adjust list sizes if the comparator throws.
4038 (merge(list&&, _StrictWeakOrdering)): Likewise.
4039 (sort()): Splice elements back from the scratch buffers
4040 if the comparator throws.
4041 (sort(_StrictWeakOrdering)): Likewise.
4042 * testsuite/23_containers/list/operations/78389.cc: New.
4044 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
4046 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
4047 XFAIL for C++17 until node reinsertion supports fancy pointers.
4050 * testsuite/20_util/add_pointer/value.cc: Test forming function
4053 2017-01-13 Michael Brune <lucdanton@free.fr>
4056 * include/std/type_traits (__is_referenceable): Handle noexcept
4059 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
4062 * include/bits/stl_queue.h (queue, priority_queue): Remove default
4063 member-initializers and define default constructors as templates with
4065 * include/bits/stl_stack.h (stack): Likewise.
4066 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
4068 * testsuite/23_containers/priority_queue/requirements/
4069 explicit_instantiation/1.cc: Test more instantiations.
4070 * testsuite/23_containers/priority_queue/requirements/
4071 explicit_instantiation/1_c++98.cc: Likewise.
4072 * testsuite/23_containers/queue/requirements/constructible.cc: New.
4073 * testsuite/23_containers/stack/requirements/constructible.cc: New.
4076 * doc/xml/manual/intro.xml: Document LWG 2781 change.
4077 * doc/html/*: Regenerate.
4078 * include/std/functional (_Function_base::_Ref_manager): Remove.
4079 (_Function_handler): Remove partial specializations for
4081 (function::target): Remove special case for const qualification.
4082 * testsuite/20_util/function/6.cc: Adjust tests for target type.
4083 * testsuite/20_util/function/7.cc: Likewise.
4084 * testsuite/20_util/function/8.cc: Likewise.
4086 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
4089 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
4090 (map::equal_range): Fix return type of heterogeneous overloads.
4091 * include/bits/stl_multimap.h (multimap::lower_bound)
4092 (multimap::upper_bound, multimap::equal_range): Likewise.
4093 * include/bits/stl_multiset.h (multiset::lower_bound)
4094 (multiset::upper_bound, multiset::equal_range): Likewise.
4095 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
4096 (set::equal_range): Likewise.
4097 * testsuite/23_containers/map/operations/2.cc
4098 * testsuite/23_containers/multimap/operations/2.cc
4099 * testsuite/23_containers/multiset/operations/2.cc
4100 * testsuite/23_containers/set/operations/2.cc
4103 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
4104 the heterogeneous comparison can only find one match.
4105 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
4106 * testsuite/23_containers/map/operations/2.cc: Test count works with
4107 comparison function that just partitions rather than sorting.
4108 * testsuite/23_containers/set/operations/2.cc: Likewise.
4110 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
4112 Reduce the size of variant, it doesn't need an index of
4113 type size_t internally.
4114 * include/std/variant (parse_numbers.h): New include.
4115 (__select_index): New.
4116 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
4117 _index_type for comparison with variant_npos.
4118 (_Variant_storage<false, _Types...>::__index_type): New.
4119 (_Variant_storage<false, _Types...>::_M_index): Change the
4120 type from size_t to __index_type.
4121 (_Variant_storage<true, _Types...>::__index_type): New.
4122 (_Variant_storage<true, _Types...>::_M_index): Change the
4123 type from size_t to __index_type.
4124 (_Variant_base::_M_valid): Use _Storage::__index_type
4125 for comparison with variant_npos.
4126 (variant::index): Use _Base::_Storage::__index_type
4127 for comparison with variant_npos.
4128 * testsuite/20_util/variant/index_type.cc: New.
4130 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
4132 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
4133 effective target selector to prevent running in C++17 mode.
4136 * include/bits/stl_queue.h (queue::c): Add default member initializer.
4137 (queue::queue()): Add constructor and define as defaulted.
4138 (queue::queue(_Sequence&&)): Remove default argument.
4139 (priority_queue::c, priority_queue::comp): Add default member
4141 (priority_queue::priority_queue()): Add constructor and define as
4143 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
4144 Remove default argument for first parameter.
4145 * include/bits/stl_stack.h (stack::c): Add default member initializer.
4146 (stack::stack()): Add constructor and define as defaulted.
4147 (stack::stack(const _Sequence&)): Remove default argument.
4148 * testsuite/23_containers/priority_queue/requirements/
4149 explicit_instantiation/1.cc: Test explicit instantiation with
4150 non-DefaultConstructible sequence.
4151 * testsuite/23_containers/priority_queue/77528.cc: New test.
4152 * testsuite/23_containers/priority_queue/requirements/
4153 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
4154 * testsuite/23_containers/queue/77528.cc: New test.
4155 * testsuite/23_containers/queue/requirements/explicit_instantiation/
4156 1.cc: Test explicit instantiation with non-DefaultConstructible
4158 * testsuite/23_containers/queue/requirements/explicit_instantiation/
4159 1_c++0x.cc: Replace with 1_c++98.cc.
4160 * testsuite/23_containers/stack/77528.cc: New test.
4161 * testsuite/23_containers/stack/requirements/explicit_instantiation/
4162 1.cc: Test explicit instantiation with non-DefaultConstructible
4164 * testsuite/23_containers/stack/requirements/explicit_instantiation/
4165 1_c++0x.cc: Replace with 1_c++98.cc.
4167 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
4169 * include/bits/locale_facets_nonio.tcc
4170 (time_get::_M_extract_via_format): Avoid compilation errors with
4171 non-standard struct tm.
4173 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
4174 Jonathan Wakely <jwakely@redhat.com>
4176 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
4177 (is_specialization, strip_versioned_namespace): New helpers functions
4178 to work with symbols in the versioned namespace.
4179 (Printer.add_version): Add second name using versioned namespace.
4180 (add_one_template_type_printer, add_one_type_printer): Add second
4181 type printers using versioned namespace.
4182 (register_type_printers): Add template type printer for basic_string.
4183 (build_libstdcxx_dictionary): Remove dead code.
4184 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
4185 versioned namespace.
4186 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
4188 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
4190 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
4193 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
4194 functions separately on darwin and if they're missing define
4195 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
4196 * config.h.in: Regenerate.
4197 * configure: Regenerate.
4198 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
4199 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
4201 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
4202 to detect correct thread_local destructors.
4203 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
4206 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
4207 Aditya Kumar <hiraditya@msn.com>
4210 * include/bits/basic_string.tcc
4211 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
4213 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
4215 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
4216 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
4218 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
4219 Include <cassert> header.
4222 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
4223 * configure: Regenerate.
4225 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
4226 Jonathan Wakely <jwakely@redhat.com>
4228 * include/std/variant (variant, swap): Replace __and_ usage with fold
4231 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4234 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
4235 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
4236 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
4237 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
4239 * aclocal.m4: Regenerate.
4240 * configure: Regenerate.
4241 * Makefile.in, doc/Makefile.in, include/Makefile.in,
4242 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
4243 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
4244 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
4246 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
4248 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
4251 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
4252 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
4253 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
4254 move function objects.
4255 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
4256 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
4257 * testsuite/25_algorithms/sort/78991.cc: New test.
4259 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
4261 * include/bits/std_function.h (function::_Signature_type): Remove.
4262 (function::function(_Functor)): Adjust.
4264 2017-01-05 Tim Shen <timshen@google.com>
4267 * include/std/variant (__gen_vtable_impl): rename __unused to
4268 __dimensions to avoid naming conflict.
4270 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
4273 * config.h.in: Regenerate.
4274 * configure: Likewise.
4275 * configure.ac: Check for __cxa_thread_atexit.
4276 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
4277 Don't define __cxa_thread_atexit if libc provides it.
4279 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
4281 Implement 2801, Default-constructibility of unique_ptr.
4282 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
4283 (unique_ptr::_DeleterConstraint): Likewise.
4284 (unique_ptr()): Constrain.
4285 (unique_ptr(pointer)): Likewise.
4286 (unique_ptr(nullptr_t)): Likewise.
4287 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
4288 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
4289 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
4290 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
4291 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
4292 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
4293 * testsuite/20_util/unique_ptr/cons/default.cc: New.
4294 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
4296 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
4297 Jonathan Wakely <jwakely@redhat.com>
4300 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
4301 * config.h.in: Regenerate.
4302 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
4303 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
4304 exports for exception_ptr, nested_exception, and future conditional.
4305 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
4306 exports for exception_ptr, nested_exception, and future conditional.
4307 * configure: Regenerate.
4308 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
4309 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
4310 * libsupc++/eh_atomics.h: New file for internal use only.
4311 (__eh_atomic_inc, __eh_atomic_dec): New.
4312 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
4313 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
4314 (rethrow_exception): Use eh_atomics.h reference counting helpers.
4315 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
4316 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
4317 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
4318 * libsupc++/exception_ptr.h: Likewise.
4319 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
4320 * libsupc++/nested_exception.cc: Remove check for
4321 ATOMIC_INT_LOCK_FREE.
4322 * libsupc++/nested_exception.h: Likewise.
4323 * src/c++11/future.cc: Likewise.
4324 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
4325 * testsuite/18_support/nested_exception/*: Likewise.
4326 * testsuite/30_threads/async/*: Likewise.
4327 * testsuite/30_threads/future/*: Likewise.
4328 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
4329 * testsuite/30_threads/packaged_task/*: Likewise.
4330 * testsuite/30_threads/promise/*: Likewise.
4331 * testsuite/30_threads/shared_future/*: Likewise.
4333 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
4335 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
4336 defaults to https; adjust reference.
4338 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
4341 * include/std/thread (thread(const thread&&)): Add deleted
4343 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
4345 * doc/xml/manual/spine.xml: Update copyright years.
4346 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
4347 * doc/xml/manual/test.xml: Likewise.
4348 * doc/html/*: Regenerate.
4350 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
4352 * doc/xml/faq.xml: Update address of C++ ABI link.
4353 * doc/xml/manual/abi.xml: Ditto.
4355 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4357 Update copyright years.
4359 Copyright (C) 2017 Free Software Foundation, Inc.
4361 Copying and distribution of this file, with or without modification,
4362 are permitted in any medium without royalty provided the copyright
4363 notice and this notice are preserved.