1 2017-07-23 Michael Collison <michael.collison@arm.com>
3 Add optimized implementation of mersenne twister for aarch64
4 * config/cpu/aarch64/opt/ext/opt_random.h: New file.
5 (__arch64_recursion): New function.
6 (__aarch64_lsr_128): New function.
7 (__aarch64_lsl_128): New function.
8 (operator==): New function.
9 (simd_fast_mersenne_twister_engine): Implement
11 * config/cpu/aarch64/opt/bits/opt_random.h: New file.
12 * include/ext/random: (simd_fast_mersenne_twister_engine):
13 add _M_state private array.
15 2017-07-23 François Dumont <fdumont@gcc.gnu.org>
18 * include/bits/algorithmfwd.h: Reorganize versioned namespace.
19 * include/bits/basic_string.h: Likewise.
20 * include/bits/c++config: Likewise.
21 * include/bits/deque.tcc: Likewise.
22 * include/bits/forward_list.h: Likewise.
23 * include/bits/forward_list.tcc: Likewise.
24 * include/bits/hashtable_policy.h: Likewise.
25 * include/bits/list.tcc: Likewise.
26 * include/bits/move.h: Likewise.
27 * include/bits/quoted_string.h: Likewise.
28 * include/bits/random.h: Likewise.
29 * include/bits/random.tcc: Likewise.
30 * include/bits/regex.h: Likewise.
31 * include/bits/regex.tcc: Likewise.
32 * include/bits/regex_automaton.h: Likewise.
33 * include/bits/regex_automaton.tcc: Likewise.
34 * include/bits/regex_compiler.h: Likewise.
35 * include/bits/regex_compiler.tcc: Likewise.
36 * include/bits/regex_constants.h: Likewise.
37 * include/bits/regex_error.h: Likewise.
38 * include/bits/regex_executor.h: Likewise.
39 * include/bits/regex_executor.tcc: Likewise.
40 * include/bits/regex_scanner.h: Likewise.
41 * include/bits/regex_scanner.tcc: Likewise.
42 * include/bits/specfun.h: Likewise.
43 * include/bits/stl_algo.h: Likewise.
44 * include/bits/stl_algobase.h: Likewise.
45 * include/bits/stl_bvector.h: Likewise.
46 * include/bits/stl_deque.h: Likewise.
47 * include/bits/stl_iterator.h: Likewise.
48 * include/bits/stl_iterator_base_funcs.h: Likewise.
49 * include/bits/stl_list.h: Likewise.
50 * include/bits/stl_map.h: Likewise.
51 * include/bits/stl_multimap.h: Likewise.
52 * include/bits/stl_multiset.h: Likewise.
53 * include/bits/stl_relops.h: Likewise.
54 * include/bits/stl_set.h: Likewise.
55 * include/bits/stl_vector.h: Likewise.
56 * include/bits/uniform_int_dist.h: Likewise.
57 * include/bits/unordered_map.h: Likewise.
58 * include/bits/unordered_set.h: Likewise.
59 * include/bits/vector.tcc: Likewise.
60 * include/c_global/cmath: Likewise.
61 * include/c_std/cmath: Likewise.
62 * include/decimal/decimal: Likewise.
63 * include/decimal/decimal.h: Likewise.
64 * include/experimental/algorithm: Likewise.
65 * include/experimental/any: Likewise.
66 * include/experimental/array: Likewise.
67 * include/experimental/bits/erase_if.h: Likewise.
68 * include/experimental/bits/fs_dir.h: Likewise.
69 * include/experimental/bits/fs_fwd.h: Likewise.
70 * include/experimental/bits/fs_ops.h: Likewise.
71 * include/experimental/bits/fs_path.h: Likewise.
72 * include/experimental/bits/lfts_config.h: Likewise.
73 * include/experimental/bits/shared_ptr.h: Likewise.
74 * include/experimental/bits/string_view.tcc: Likewise.
75 * include/experimental/chrono: Likewise.
76 * include/experimental/deque: Likewise.
77 * include/experimental/filesystem: Likewise.
78 * include/experimental/forward_list: Likewise.
79 * include/experimental/functional: Likewise.
80 * include/experimental/iterator: Likewise.
81 * include/experimental/list: Likewise.
82 * include/experimental/map: Likewise.
83 * include/experimental/memory: Likewise.
84 * include/experimental/memory_resource: Likewise.
85 * include/experimental/numeric: Likewise.
86 * include/experimental/optional: Likewise.
87 * include/experimental/propagate_const: Likewise.
88 * include/experimental/random: Likewise.
89 * include/experimental/ratio: Likewise.
90 * include/experimental/regex: Likewise.
91 * include/experimental/set: Likewise.
92 * include/experimental/source_location: Likewise.
93 * include/experimental/string: Likewise.
94 * include/experimental/string_view: Likewise.
95 * include/experimental/system_error: Likewise.
96 * include/experimental/tuple: Likewise.
97 * include/experimental/type_traits: Likewise.
98 * include/experimental/unordered_map: Likewise.
99 * include/experimental/unordered_set: Likewise.
100 * include/experimental/utility: Likewise.
101 * include/experimental/vector: Likewise.
102 * include/ext/bitmap_allocator.h: Likewise.
103 * include/ext/codecvt_specializations.h: Likewise.
104 * include/ext/rope: Likewise.
105 * include/ext/typelist.h: Likewise.
106 * include/std/chrono: Likewise.
107 * include/std/complex: Likewise.
108 * include/std/functional: Likewise.
109 * include/std/numeric: Likewise.
110 * include/std/string_view: Likewise.
111 * include/std/thread: Likewise.
112 * include/std/variant: Likewise.
113 * include/tr1/array: Likewise.
114 * include/tr1/bessel_function.tcc: Likewise.
115 * include/tr1/beta_function.tcc: Likewise.
116 * include/tr1/cmath: Likewise.
117 * include/tr1/complex: Likewise.
118 * include/tr1/ell_integral.tcc: Likewise.
119 * include/tr1/exp_integral.tcc: Likewise.
120 * include/tr1/functional: Likewise.
121 * include/tr1/functional_hash.h: Likewise.
122 * include/tr1/gamma.tcc: Likewise.
123 * include/tr1/hashtable.h: Likewise.
124 * include/tr1/hashtable_policy.h: Likewise.
125 * include/tr1/hypergeometric.tcc: Likewise.
126 * include/tr1/legendre_function.tcc: Likewise.
127 * include/tr1/modified_bessel_func.tcc: Likewise.
128 * include/tr1/poly_hermite.tcc: Likewise.
129 * include/tr1/poly_laguerre.tcc: Likewise.
130 * include/tr1/random.h: Likewise.
131 * include/tr1/random.tcc: Likewise.
132 * include/tr1/regex: Likewise.
133 * include/tr1/riemann_zeta.tcc: Likewise.
134 * include/tr1/shared_ptr.h: Likewise.
135 * include/tr1/special_function_util.h: Likewise.
136 * include/tr1/tuple: Likewise.
137 * include/tr1/type_traits: Likewise.
138 * include/tr1/unordered_map.h: Likewise.
139 * include/tr1/unordered_set.h: Likewise.
140 * include/tr1/utility: Likewise.
141 * include/tr2/bool_set: Likewise.
142 * include/tr2/bool_set.tcc: Likewise.
143 * include/tr2/dynamic_bitset: Likewise.
144 * include/tr2/dynamic_bitset.tcc: Likewise.
145 * include/tr2/ratio: Likewise.
146 * include/tr2/type_traits: Likewise.
147 * src/c++11/chrono.cc: Likewise.
148 * src/c++11/compatibility-c++0x.cc: Likewise.
149 * src/c++11/compatibility-chrono.cc: Likewise.
150 * src/c++11/cxx11-shim_facets.cc: Likewise.
151 * src/c++11/hashtable_c++0x.cc: Likewise.
152 * src/c++11/placeholders.cc: Likewise.
153 * src/c++11/thread.cc: Likewise.
154 * src/c++98/bitmap_allocator.cc: Likewise.
155 * src/c++98/hashtable_tr1.cc: Likewise.
156 * src/c++98/list.cc: Likewise.
157 * src/shared/hashtable-aux.cc: Likewise.
158 * testsuite/20_util/duration/literals/range.cc: Adapt line number.
159 * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
160 * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
161 * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
162 * testsuite/20_util/forward/c_neg.cc: Likewise.
163 * testsuite/20_util/forward/f_neg.cc: Likewise.
164 * testsuite/26_numerics/gcd/gcd_neg.cc: Likewise.
165 * testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.
166 * testsuite/26_numerics/random/pr60037-neg.cc: Likewise.
167 * python/libstdcxx/v6/printers.py: Adapt.
169 2017-07-20 Jonathan Wakely <jwakely@redhat.com>
171 * config/allocator/malloc_allocator_base.h [__SANITIZE_ADDRESS__]
172 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
173 * config/allocator/new_allocator_base.h [__SANITIZE_ADDRESS__]
174 (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define.
175 * doc/xml/manual/using.xml (_GLIBCXX_SANITIZE_VECTOR): Document macro.
176 * include/bits/stl_vector.h [_GLIBCXX_SANITIZE_VECTOR]
177 (_Vector_impl::_Asan, _Vector_impl::_Asan::_Reinit)
178 (_Vector_impl::_Asan::_Grow, _GLIBCXX_ASAN_ANNOTATE_REINIT)
179 (_GLIBCXX_ASAN_ANNOTATE_GROW, _GLIBCXX_ASAN_ANNOTATE_GREW)
180 (_GLIBCXX_ASAN_ANNOTATE_SHRINK, _GLIBCXX_ASAN_ANNOTATE_BEFORE_DEALLOC):
181 Define annotation helper types and macros.
182 (vector::~vector, vector::push_back, vector::pop_back)
183 (vector::_M_erase_at_end): Add annotations.
184 * include/bits/vector.tcc (vector::reserve, vector::emplace_back)
185 (vector::insert, vector::_M_erase, vector::operator=)
186 (vector::_M_fill_assign, vector::_M_assign_aux)
187 (vector::_M_insert_rval, vector::_M_emplace_aux)
188 (vector::_M_insert_aux, vector::_M_realloc_insert)
189 (vector::_M_fill_insert, vector::_M_default_append)
190 (vector::_M_shrink_to_fit, vector::_M_range_insert): Annotate.
192 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
195 * include/bits/vector.tcc (vector::_M_range_insert<_InputIterator>):
196 Only insert elements one-by-one when inserting at the end.
197 * testsuite/performance/23_containers/insert/81476.cc: New.
199 2017-07-19 Volker Reichelt <v.reichelt@netcologne.de>
201 * libsupc++/new (bad_array_new_length): Remove redundant
202 semicolon after in-class member function definition.
203 * include/bits/locale_facets.h (ctype_byname, num_put): Likewise.
204 * include/bits/locale_facets_nonio.h (time_put_byname): Likewise.
205 * include/bits/random.h (mersenne_twister_engine): Likewise.
206 * include/tr1/random.h (mersenne_twister): Likewise
207 * include/ext/random (simd_fast_mersenne_twister_engine): Likewise.
208 * include/ext/rope (char_producer, _Rope_char_consumer,
209 _Rope_self_destruct_ptr, _Rope_const_iterator, _Rope_iterator):
211 * include/ext/ropeimpl.h (_Rope_flatten_char_consumer,
212 _Rope_insert_char_consumer): Likewise.
214 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
216 * include/bits/fstream.tcc (basic_filebuf::xsgetn)
217 (basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
219 * testsuite/util/testsuite_iterators.h: Fix indentation.
221 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
223 2017-07-18 Jonathan Wakely <jwakely@redhat.com>
226 * include/bits/fstream.tcc (basic_filebuf::xsgetn): Don't set buffer
227 pointers for write mode after reading.
228 * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: New.
230 2017-07-18 François Dumont <fdumont@gcc.gnu.org>
232 * include/bits/stl_list.h
233 (struct _List_node_header): New.
234 (_List_impl()): Fix noexcept qualification.
235 (_List_impl(_List_impl&&)): New, default.
236 (_List_base()): Default.
237 (_List_base(_List_base&&)): Default.
238 (_List_base::_M_move_nodes): Adapt to use
239 _List_node_header._M_move_nodes.
240 (_List_base::_M_init): Likewise.
242 (list<>(list&&)): Default.
243 (list<>::_M_move_assign(list&&, true_type)): Use _M_move_nodes.
244 (__distance(_List_const_iterator<>, _List_const_iterator<>,
245 input_iterator_tag)): Adapt.
246 * testsuite/23_containers/list/allocator/default_init.cc: New.
248 2017-07-15 Jonathan Wakely <jwakely@redhat.com>
250 * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t parameter
252 * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments.
253 * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction
254 with std::adopt_lock_t.
255 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check
258 2017-07-14 Jason Merrill <jason@redhat.com>
259 Jonathan Wakely <jwakely@redhat.com>
261 * include/std/variant (variant::variant(_Tp&&)): Constrain to remove
262 the constructor for empty variants from the candidate functions
263 during class template argument deduction.
264 * testsuite/20_util/variant/deduction.cc: New.
266 2017-07-11 Jonathan Wakely <jwakely@redhat.com>
268 * doc/xml/faq.xml: Update several old entries. Improve
270 * doc/xml/manual/intro.xml: Add anchors to each DR.
271 * doc/html/*: Regenerate.
273 2017-07-10 Jonathan Wakely <jwakely@redhat.com>
275 * testsuite/abi/pr42230.cc: Add header for std::free.
278 * include/bits/sstream.tcc (basic_stringbuf::overflow)
279 (basic_stringbuf::basic_stringbuf(const __string_type&, ios::mode))
280 (basic_stringbuf::str()): Construct new strings with an allocator.
281 * testsuite/27_io/basic_stringbuf/cons/81381.cc: New.
284 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
285 Declare basic_stringbuf to be a friend.
286 * include/bits/sstream.tcc (basic_stringbuf::overflow)
287 [_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
288 * include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
289 length to buffer length.
290 * testsuite/27_io/basic_stringstream/assign/81338.cc: New.
292 2017-07-06 Jonathan Wakely <jwakely@redhat.com>
294 * testsuite/20_util/specialized_algorithms/memory_management_tools/
296 * testsuite/22_locale/locale/cons/5.cc: Remove redundant restoration
297 of original environment and free memory.
299 * testsuite/abi/pr42230.cc: Free memory.
300 * testsuite/util/testsuite_abi.cc (demangle): Return std::string
301 instead of pointer that might need freeing.
302 * testsuite/util/testsuite_abi.h (demangle): Likewise.
303 * testsuite/util/testsuite_hooks.cc (verify_demangle): Free memory.
305 * include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add
306 deleted overload to prevent dangling references to rvalues.
307 * include/experimental/memory_resource
308 (polymorphic_allocator::construct): Do not call __use_alloc with
311 2017-06-27 Tim Shen <timshen@google.com>
314 * include/std/variant (variant::variant, variant::~variant,
315 variant::operator=): Implement triviality forwarding for four
316 special member functions.
317 * testsuite/20_util/variant/compile.cc: Tests.
319 2017-06-27 Jonathan Wakely <jwakely@redhat.com>
322 * testsuite/25_algorithms/sample/81221.cc: Disable except for
326 * include/bits/stl_algo.h (sample): Qualify with _GLIBCXX_STD_A not
328 * testsuite/25_algorithms/sample/81221.cc: New.
330 2017-06-22 Jonathan Wakely <jwakely@redhat.com>
333 * include/bits/stl_bvector.h (vector<bool>::_M_initialize_value):
334 Do not pass null pointer to memset.
336 2017-06-21 Ville Voutilainen <ville.voutilainen@gmail.com>
340 * include/std/istream:
341 (__is_convertible_to_basic_istream_test(basic_istream<_Ch, _Up>*)): New.
342 (__do_is_convertible_to_basic_istream_impl): Likewise.
343 (__is_convertible_to_basic_istream_impl): Likewise.
344 (__is_convertible_to_basic_istream): Use the new base.
345 (__rvalue_istream_type): New.
346 (operator>>(_Istream&&, _Tp&&)): Use the new helper alias
347 for the SFINAE check, convert to the helper alias type before
348 doing the actual extraction.
349 * include/std/ostream:
350 (__is_convertible_to_basic_ostream_test(basic_ostream<_Ch, _Up>*)): New.
351 (__do_is_convertible_to_basic_ostream_impl): Likewise.
352 (__is_convertible_to_basic_ostream_impl): Likewise.
353 (__is_convertible_to_basic_ostream): Use the new base.
354 (__rvalue_ostream_type): New.
355 (operator<<(_Ostream&&, const _Tp&)): Use the new helper alias
356 for the SFINAE check, convert to the helper alias type before
357 doing the actual insertion.
358 * testsuite/27_io/rvalue_streams-2.cc: Add new tests.
360 2017-06-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
362 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
364 2017-06-21 Jonathan Wakely <jwakely@redhat.com>
367 * configure: Regenerate.
369 2017-06-20 Uros Bizjak <ubizjak@gmail.com>
371 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
373 2017-06-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
375 * testsuite/20_util/variant/index_type.cc: Allow for all ilp32 and
378 2017-06-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
380 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
381 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
382 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
383 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
384 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
385 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
387 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
388 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
391 2017-06-18 H.J. Lu <hongjiu.lu@intel.com>
394 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
396 2017-06-18 Andreas Schwab <schwab@linux-m68k.org>
399 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
401 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
403 * testsuite: Remove dg-skip-if, dg-xfail-if, dg-xfail-run-if
406 2017-06-17 Jonathan Wakely <jwakely@redhat.com>
409 * testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.
411 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
413 * include/bits/shared_ptr.h (get_deleter): Add overload matching
415 * include/bits/shared_ptr_base.h (__shared_ptr): Declare new
416 get_deleter overload as a friend.
417 * testsuite/20_util/shared_ptr/misc/get_deleter.cc: New.
419 2017-06-16 Jakub Jelinek <jakub@redhat.com>
422 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
423 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
424 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
426 2017-06-16 Jonathan Wakely <jwakely@redhat.com>
428 * include/bits/locale_conv.h (wbuffer_convert::sync): Fix condition.
429 * testsuite/22_locale/conversions/buffer/2.cc: New.
432 * acinclude.m4: Bump libtool_VERSION.
433 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
434 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
435 * config/abi/pre/gnu.ver: Add wstring constructor symbols to
436 GLIBCXX_3.4.24 version and move random_device::_M_get_entropy() symbol
437 to new GLIBCXX_3.4.25 version.
438 * doc/xml/manual/abi.xml: Document new versions.
439 * doc/html/*: Regenerate.
440 * testsuite/21_strings/basic_string/cons/char/8.cc: Use base object
441 constructors to ensure required symbols are exported.
442 * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise.
443 * testsuite/util/testsuite_abi.cc: Add new version.
445 * include/bits/locale_conv.h (wbuffer_convert::_M_put): Add missing
447 * testsuite/21_strings/basic_string_view/operations/copy/char/1.cc:
449 * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc:
451 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: Add
452 missing return statements.
453 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
455 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
457 * testsuite/special_functions/14_expint/pr68397.cc: Likewise.
459 2017-06-16 François Dumont <fdumont@gcc.gnu.org>
461 * include/bits/stl_bvector.h
462 (__fill_bvector(_Bit_type*, unsigned int, unsigned int, bool)):
464 (std::fill(_Bit_iterator, _Bit_iterator, bool)): Adapt.
465 (_Bvector_impl_data): New.
466 (_Bvector_impl): Inherits from latter.
467 (_Bvector_impl(_Bit_alloc_type&&)): Delete.
468 (_Bvector_impl(_Bvector_impl&&)): New, default.
469 (_Bvector_base()): Default.
470 (_Bvector_base(_Bvector_base&&)): Default.
471 (_Bvector_base::_M_move_data(_Bvector_base&&)): New.
472 (vector(vector&&, const allocator_type&)): Use latter.
473 (vector<bool>::operator=(vector&&)): Likewise.
474 (vector<bool>::vector()): Default.
475 (vector<bool>::vector(vector&&)): Default.
476 (vector<bool>::assign(_InputIterator, _InputIterator)): Use
478 (vector<bool>::assign(initializer_list<bool>)): Likewise.
479 (vector<bool>::_M_initialize_value(bool)): New.
480 (vector<bool>(size_type, const bool&, const allocator_type&)): Use
482 (vector<bool>::_M_initialize_dispatch(_Integer, _Integer, __true_type)):
484 (vector<bool>::_M_fill_assign(size_t, bool)): Likewise.
486 2017-06-15 François Dumont <fdumont@gcc.gnu.org>
488 * src/c++98/tree.cc [!_GLIBCXX_INLINE_VERSION]
489 (_Rb_tree_rotate_left, _Rb_tree_rotate_right): Delete.
491 2017-06-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493 * testsuite: Add dg-require-effective-target pthread to -pthread
495 Remove explicit target lists from dg-do and dg-options.
497 * testsuite/30_threads/async/forced_unwind.cc: Remove explit
498 target list from dg-options.
499 * testsuite/30_threads/packaged_task/forced_unwind.cc: Likewise.
501 * 30_threads/shared_mutex/cons/1.cc: Likewise.
502 Pass -pthread for all targets.
503 * 30_threads/shared_mutex/try_lock/1.cc: Likewise.
504 * 30_threads/shared_mutex/try_lock/2.cc: Likewise.
505 * 30_threads/shared_mutex/unlock/1.cc: Likewise.
507 * testsuite/30_threads/this_thread/57060.cc: Require c++11 via
508 dg-require-effective-target.
510 2017-06-14 Jonathan Wakely <jwakely@redhat.com>
512 * doc/xml/manual/test.xml: Correct instructions on running tests.
513 * testsuite/21_strings/basic_string/cons/char/deduction.cc: Adjust to
514 pass when -D_GLIBCXX_USE_CXX11_ABI=0 added to RUNTESTFLAGS.
515 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc:
517 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Likewise.
518 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
519 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
520 exceptions_failbit.cc: Likewise.
521 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
522 exceptions_failbit.cc: Likewise.
523 * testsuite/27_io/basic_istream/extractors_other/char/
524 exceptions_null.cc: Likewise.
525 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
526 exceptions_null.cc: Likewise.
527 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
528 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
529 * testsuite/27_io/basic_ostream/inserters_other/char/
530 exceptions_null.cc: Likewise.
531 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
532 exceptions_null.cc: Likewise.
533 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
535 2017-06-12 Pedro Alves <palves@redhat.com>
537 * doc/xml/manual/status_cxx2017.xml: Update C++17 constexpr
539 * doc/html/*: Regenerate.
541 * include/bits/char_traits.h (_GLIBCXX_ALWAYS_INLINE): Define if
543 (__cpp_lib_constexpr_char_traits): Uncomment.
544 (__constant_string_p, __constant_char_array_p): New.
545 (std::char_traits<char>, std::char_traits<wchar_t>): Add
546 _GLIBCXX17_CONSTEXPR on compare, length and find and use
547 __constant_string_p, __constant_char_array_p and
548 __builtin_constant_p to defer to __gnu_cxx::char_traits at compile
551 * testsuite/21_strings/char_traits/requirements/
552 constexpr_functions_c++17.cc: Uncomment
553 __cpp_lib_constexpr_char_traits tests. Uncomment
554 test_compare<char>, test_length<char>, test_find<char>,
555 test_compare<wchar_t>, test_length<wchar_t> and test_find<wchar_t>
558 2017-06-12 François Dumont <fdumont@gcc.gnu.org>
560 * include/bits/stl_tree.h (_Rb_tree_impl()): Restore _Node_allocator
562 * testsuite/util/testsuite_allocator.h
563 (__gnu_test::default_init_allocator<>) New.
564 * testsuite/23_containers/set/allocator/default_init.cc: New.
565 * testsuite/23_containers/map/allocator/default_init.cc: New.
567 2017-06-12 Jonathan Wakely <jwakely@redhat.com>
570 * src/c++11/thread.cc (execute_native_thread_routine): Remove
571 try-block so that exceptions propagate out of the thread and terminate
572 is called by the exception-handling runtime.
573 (execute_native_thread_routine_compat): Likewise.
574 * testsuite/30_threads/thread/cons/terminate.cc: New.
576 2017-06-09 Jonathan Wakely <jwakely@redhat.com>
578 * doc/xml/manual/intro.xml: Document LWG 2802, 2873 and 2942 changes.
579 * include/bits/shared_ptr.h (shared_ptr): Use rvalues for deleters
581 * include/bits/shared_ptr_base.h (_Sp_ebo_helper, _Sp_counted_deleter
582 (_Sp_counted_deleter::_Impl, __shared_count, __shared_ptr): Likewise.
583 * testsuite/20_util/shared_ptr/cons/lwg2802.cc: New.
585 * include/bits/forward_list.h (forward_list): Add deduction guide.
586 * include/bits/stl_deque.h (deque): Likewise.
587 * include/bits/stl_list.h (list): Likewise.
588 * include/bits/stl_vector.h (vector): Likewise.
589 * testsuite/23_containers/deque/cons/deduction.cc: New.
590 * testsuite/23_containers/forward_list/cons/deduction.cc: New.
591 * testsuite/23_containers/list/cons/deduction.cc: New.
592 * testsuite/23_containers/vector/cons/deduction.cc: New.
594 2017-06-08 Jonathan Wakely <jwakely@redhat.com>
597 * include/bits/std_function.h (function::function(function&&))
598 (function::operator=(funtion&&)): Add noexcept.
599 * testsuite/20_util/function/assign/move.cc: Check for noexcept.
600 * testsuite/20_util/function/cons/move.cc: Likewise.
602 2017-06-07 Jonathan Wakely <jwakely@redhat.com>
604 * include/bits/regex.h (basic_regex): Add deduction guide from P0433.
605 * testsuite/28_regex/basic_regex/ctors/deduction.cc: New.
608 * include/bits/regex.h (basic_regex): Adjust call to __compile_nfa
609 so iterator type is deduced.
610 * include/bits/regex_compiler.h (__compile_nfa): Reorder template
611 parameters to allow iterator type to be deduced.
612 * testsuite/28_regex/basic_regex/ctors/basic/iter.cc: New.
614 * include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
615 New trait and alias for detecting Allocator-like types.
616 * include/bits/basic_string.h (basic_string): Add deduction guide
618 * include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
619 parameter with default template argument that causes substitution
620 failures for types that cannot be allocators.
621 * testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
622 * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.
624 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
627 * include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
628 (__erased_hash): Remove constexpr specifier and qualify calls to
630 (__erased_dtor): Remove constexpr specifier and use _Destroy.
632 2017-06-05 Jonathan Wakely <jwakely@redhat.com>
634 * include/bits/stl_iterator_base_funcs.h
635 (__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
636 cases where incrementing or decrementing a single step.
638 * include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
639 (__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
640 specifiers as per LWG 2873 and LWG 2942.
641 * testsuite/20_util/owner_less/noexcept.cc: New.
642 * testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
644 * testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
646 2017-06-03 Andreas Schwab <schwab@linux-m68k.org>
648 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
650 2017-06-03 Eric Botcazou <ebotcazou@adacore.com>
652 * src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
654 2017-06-02 Jonathan Wakely <jwakely@redhat.com>
657 * doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
658 * include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
659 Transform eof value to U+FFFD.
660 * testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
661 * testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
662 * testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
664 * libsupc++/Makefile.am: Remove custom targets for files that need to
665 be compiled as C++11 or C++14.
666 * libsupc++/Makefile.in: Regenerate.
667 * libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
669 * libsupc++/del_opvs.cc: Likewise.
671 2017-06-02 Richard Biener <rguenther@suse.de>
672 Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
675 * libsupc++/eh_alloc.cc (pool::free): Keep list properly
676 sorted and add missing freelist item merging cases.
678 2017-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680 (GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
681 Remove *-solaris* section.
682 * configure: Regenerate.
684 2017-05-31 Jonathan Wakely <jwakely@redhat.com>
687 * include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
688 null pointer dereference when size is zero.
689 * testsuite/23_containers/vector/bool/80893.cc: New.
690 * testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
691 Add non-explicit constructor from nullptr.
692 (PointerBase::derived() const): Add const-qualified overload.
694 2017-05-20 Tim Shen <timshen@google.com>
697 * include/std/variant(variant::variant): SFINAE on is_same first.
698 * testsuite/20_util/variant/any.cc: test case.
700 2017-05-24 Jonathan Wakely <jwakely@redhat.com>
702 * src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
703 instead of fixed number of bits.
705 2017-05-24 Andreas Schwab <schwab@suse.de>
707 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
708 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
710 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
711 Jonathan Wakely <jwakely@redhat.com>
714 * acinclude.m4: Bump libtool_VERSION.
715 * config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
716 * config.h.in: Regenerate.
717 * configure: Regenerate.
718 * configure.ac: Add test for <linux/random.h>.
719 * doc/xml/manual/abi.xml: Document new library version.
720 * include/bits/random.h (random_device::entropy)
721 [_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
722 (random_device::_M_getentropy): Declare.
723 * src/c++11/random.cc (random_device::_M_getentropy): Define.
724 * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
725 versions, and make it the latest version.
727 2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
730 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
731 explicit conversion to avoid signed overflow.
733 2017-05-19 Jonathan Wakely <jwakely@redhat.com>
736 * include/bits/stl_algo.h (search): Add new overload for C++17.
737 * testsuite/25_algorithms/search/searcher.cc: New.
739 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
742 * include/std/functional (_Mem_fn_traits_base): Add specializations
743 for noexcept member function types.
744 * testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
746 2017-05-18 Jonathan Wakely <jwakely@redhat.com>
748 * doc/xml/manual/policy_data_structures.xml: Fix typo.
749 * doc/xml/manual/test_policy_data_structures.xml: Likewise.
750 * doc/html/*: Regenerate.
752 * doc/xml/manual/abi.xml: Document latest library versions.
753 * doc/xml/manual/build_hacking.xml: Document requirement to update
754 abi.xml when bumping library versions.
755 * doc/html/*: Regenerate.
757 2017-05-17 Jonathan Wakely <jwakely@redhat.com>
759 * include/bits/refwrap.h: Fix Doxygen warning.
760 * include/bits/specfun.h: Likewise.
761 * include/bits/std_function.h: Likewise.
762 * include/bits/stl_algo.h (set_union, set_intersection)
763 (set_difference, set_symmetric_difference): Add Doxygen @param tags
764 for output iterator parameters.
765 * include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
767 * include/std/mutex (try_lock, lock): Change Mutex to Lockable in
770 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
772 Implement new C++ intrinsics __is_assignable and __is_constructible.
773 * include/std/type_traits (__do_is_static_castable_impl): Remove.
774 (__is_static_castable_impl, __is_static_castable_safe): Likewise.
775 (__is_static_castable, __do_is_direct_constructible_impl): Likewise.
776 (__is_direct_constructible_impl): Likewise.
777 (__is_direct_constructible_new_safe): Likewise.
778 (__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
779 (__is_direct_constructible_ref_cast): Likewise.
780 (__is_direct_constructible_new, __is_direct_constructible): Likewise.
781 (__do_is_nary_constructible_impl): Likewise.
782 (__is_nary_constructible_impl, __is_nary_constructible): Likewise.
783 (__is_constructible_impl): Likewise.
784 (is_constructible): Call the intrinsic.
785 (__is_assignable_helper): Remove.
786 (is_assignable): Call the intrinsic.
787 (is_trivially_constructible): Likewise.
788 (__is_trivially_copy_constructible_impl): New.
789 (is_trivially_copy_constructible): Use it.
790 (__is_trivially_move_constructible_impl): New.
791 (is_trivially_move_constructible): Use it.
792 (is_trivially_assignable): Call the intrinsic.
793 (__is_trivially_copy_assignable_impl): New.
794 (is_trivially_copy_assignable): Use it.
795 (__is_trivially_move_assignable_impl): New.
796 (is_trivially_move_assignable): Use it.
797 (testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
798 (testsuite/20_util/is_trivially_copy_assignable/value.cc):
800 (testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
801 (testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
802 (testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
803 (testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
804 (testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
807 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
809 * testsuite/experimental/source_location/1.cc: Change expected result
810 for source_location::current() used in default member initializer.
812 * doc/xml/manual/status_cxx2017.xml: Update status table.
813 * doc/html/*: Regenerate.
814 * include/Makefile.am: Add new header.
815 * include/Makefile.in: Regenerate.
816 * include/experimental/source_location: New header implementing N4519.
817 * testsuite/experimental/source_location/1.cc: New test.
820 * include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
821 outside versioned namespace.
823 * configure: Regenerate.
825 2017-05-16 Marc Glisse <marc.glisse@inria.fr>
827 * include/std/optional (_Optional_base::_M_get): Check precondition.
828 * testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
830 2017-05-16 Jonathan Wakely <jwakely@redhat.com>
832 * doc/xml/manual/appendix_contributing.xml: Link to test docs and
833 note higher DejaGnu version requirement.
834 * doc/html/*: Regenerate.
836 * doc/xml/manual/appendix_contributing.xml: Link to the list of bad
838 * doc/html/*: Regenerate.
840 2017-05-15 Jonathan Wakely <jwakely@redhat.com>
843 * include/bits/node_handle.h (_Node_insert_return): Reorder members.
844 (tuple_size, tuple_element): Remove partial specializations.
845 * include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
846 const_iterator for std::set.
847 * testsuite/23_containers/map/modifiers/extract.cc: New.
848 * testsuite/23_containers/set/modifiers/extract.cc: New.
849 * testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
850 * testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
852 2017-05-12 Jonathan Wakely <jwakely@redhat.com>
855 * include/std/utility (tuple_size<cv T>): Only define partial
856 specializations when tuple_size<T>::value is valid.
857 * testsuite/20_util/tuple/78939.cc: New.
858 * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
860 2017-05-11 François Dumont <fdumont@gcc.gnu.org>
862 * include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
863 (_Rb_tree_impl<>): Remove _Is_pod_comparator
866 * include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
867 (__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
868 (__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
870 (__gnu_debug::_Error_formatter::_M_format_word): Remove.
871 (__gnu_debug::_Error_formatter::_M_print_word): Remove.
872 (__gnu_debug::_Error_formatter::_M_print_string): Remove.
873 (__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
874 * src/c++11/debug.cc: Adapt.
875 * config/abi/pre/gnu-versioned-namespace.ver: Adapt.
877 2017-05-11 Jonathan Wakely <jwakely@redhat.com>
879 * doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
880 * doc/xml/manual/mt_allocator.xml: Likewise.
881 * doc/html/*: Regenerate.
884 * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
885 function to get unique fake std::type_info reference.
886 (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
887 _S_ti() fake reference.
888 (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
889 single implementation with or without RTTI enable.
890 [!__cpp_rtti]: Pass fake reference to _M_get_deleter.
891 * testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
892 allocation and deallocation counts.
893 * testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
894 * testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
897 2017-05-10 François Dumont <fdumont@gcc.gnu.org>
899 Bump version namespace.
900 * config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
901 from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
902 * acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
903 * include/bits/c++config: Adapt.
904 * include/bits/regex.h: Adapt.
905 * include/experimental/bits/fs_fwd.h: Adapt.
906 * include/experimental/bits/lfts_config.h: Adapt.
907 * include/std/variant: Adapt.
908 * python/libstdcxx/v6/printers.py: Adapt.
909 * testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
911 * include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
914 2017-05-09 Jason Merrill <jason@redhat.com>
916 * testsuite/24_iterators/container_access.cc (test03): Make il3 static.
918 2017-05-08 Jonathan Wakely <jwakely@redhat.com>
920 * include/std/optional: Use a separate static_assert per condition.
921 * testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
924 * doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
925 * doc/html/*: Regenerate.
927 2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
930 * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
932 2017-04-29 François Dumont <fdumont@gcc.gnu.org>
934 * testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
937 2017-04-28 Jonathan Wakely <jwakely@redhat.com>
940 * include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
941 assertions to ensure type is destructible.
942 (destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
943 * include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
944 Move to stl_construct.h.
945 * testsuite/20_util/specialized_algorithms/memory_management_tools/
946 destroy_neg.cc: New test.
947 * testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
949 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
950 superfluous "" in dg-error.
952 2017-04-28 Tom de Vries <tom@codesourcery.com>
954 * testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
955 superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
957 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
959 * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
960 (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
961 * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
964 2017-04-26 Jonathan Wakely <jwakely@redhat.com>
966 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
967 comment. Ensure first test works because allocator type propagates and
968 not because is_always_equal is true.
969 * testsuite/23_containers/vector/52591.cc: Likewise. Restore original
970 testcase that instantiates the move-assignment operator.
972 2017-04-24 Jonathan Wakely <jwakely@redhat.com>
975 * include/bits/random.tcc (gamma_distribution::operator()): Fix magic
976 number used in loop condition.
979 * include/bits/refwrap.h (ref, cref): Qualify calls.
980 * testsuite/20_util/reference_wrapper/80504.cc: New test.
983 * include/experimental/optional (optional::swap): Fix exception
986 2017-04-21 Jonathan Wakely <jwakely@redhat.com>
989 * include/std/future (_State_baseV2::_Setter::operator()): Remove
990 _S_check calls that are done after the pointer to the shared state is
991 already dereferenced.
992 (_State_baseV2::_Setter<_Res, void>): Define specialization for void
993 as partial specialization so it can be defined within the definition
995 (_State_baseV2::__setter): Call _S_check.
996 (_State_baseV2::__setter(promise<void>*)): Add overload for use by
997 promise<void>::set_value and promise<void>::set_value_at_thread_exit.
998 (promise<T>, promise<T&>, promise<void>): Make _State a friend.
999 (_State_baseV2::_Setter<void, void>): Remove explicit specialization.
1000 (promise<void>::set_value, promise<void>::set_value_at_thread_exit):
1001 Use new __setter overload.
1002 * testsuite/30_threads/promise/members/at_thread_exit2.cc: New test.
1003 * testsuite/30_threads/promise/members/set_exception.cc: Test
1004 promise<T&> and promise<void> specializations.
1005 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
1006 Test for no_state error condition.
1007 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
1009 * include/backward/auto_ptr.h: Ignore deprecated warnings from use
1011 * include/bits/shared_ptr.h: Likewise.
1012 * include/bits/shared_ptr_base.h: Likewise.
1013 * include/bits/unique_ptr.h: Likewise.
1014 * libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc: Adjust
1016 * libstdc++-v3/testsuite/20_util/default_delete/void_neg.cc: Likewise.
1017 * libstdc++-v3/testsuite/20_util/unique_ptr/assign/48635_neg.cc:
1019 * libstdc++-v3/testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc:
1022 2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1024 PR libstdc++/68397 std::tr1::expint fails ... long double arguments.
1025 * include/tr1/exp_integral.tcc: Increase iteration limits.
1026 * testsuite/tr1/5_numerical_facilities/special_functions/15_expint/
1027 pr68397.cc: New test.
1028 * testsuite/special_functions/14_expint/pr68397.cc: New test.
1030 2017-04-20 Jonathan Wakely <jwakely@redhat.com>
1033 * include/std/atomic [!_GLIBCXX_USE_C99_STDINT_TR1] (atomic_int8_t)
1034 (atomic_uint8_t, atomic_int16_t, atomic_uint16_t, atomic_int32_t,
1035 (atomic_uint32_t, atomic_int64_t, atomic_uint64_t)
1036 (atomic_int_least8_t, atomic_uint_least8_t, atomic_int_least16_t)
1037 (atomic_uint_least16_t, atomic_int_least32_t, atomic_uint_least32_t)
1038 (atomic_int_least64_t, atomic_uint_least64_t, atomic_int_fast8_t)
1039 (atomic_uint_fast8_t, atomic_int_fast16_t, atomic_uint_fast16_t)
1040 (atomic_int_fast32_t, atomic_uint_fast32_t, atomic_int_fast64_t)
1041 (atomic_uint_fast64_t, atomic_intmax_t, atomic_uintmax_t): Don't
1044 2017-04-19 Jonathan Wakely <jwakely@redhat.com>
1046 * doc/xml/manual/abi.xml: Rephrase one of the references to the
1048 * doc/xml/manual/test.xml: Document DejaGnu 1.5.3 requirement.
1049 * doc/html/*: Regenerate.
1051 * libsupc++/new: Update comment on #endif directive.
1054 * include/experimental/bits/fs_dir.h (directory_iterator)
1055 (recursive_directory_iterator): Remove noexcept from defaulted
1059 * include/std/type_traits (is_aggregate): Change __has_builtin checks.
1060 * libsupc++/new (launder): Likewise.
1062 2017-04-18 Jonathan Wakely <jwakely@redhat.com>
1064 * include/std/functional (default_searcher, __boyer_moore_array_base)
1065 (__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
1066 (boyer_moore_horspool_searcher): Remove redundant namespace
1068 (default_searcher::operator()): Construct return value early and
1069 advance second member in-place.
1070 (boyer_moore_horspool_searcher::operator()): Increment random access
1071 iterator directly instead of using std::next.
1072 (boyer_moore_searcher::operator()): Fix return value.
1073 * testsuite/20_util/function_objects/searchers.cc: Check both parts
1076 2017-04-12 Gerald Pfeifer <gerald@pfeifer.com>
1078 * doc/xml/faq.xml: Update reference link to C++ ABI for Itanium.
1079 * doc/xml/manual/abi.xml. Ditto (thrice).
1081 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
1083 * doc/xml/manual/status_cxx2017.xml: Remove duplicate table entry.
1084 * doc/html/*: Regenerate.
1086 * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests
1087 that no longer fail.
1089 * include/bits/ios_base.h: Correct comment.
1090 * testsuite/util/testsuite_hooks.h: Likewise.
1092 * doc/xml/manual/status_cxx2017.xml: Update C++17 status table.
1093 * doc/xml/manual/appendix_contributing.xml (contrib.organization): Add
1094 directories for debug, parallel and profile headers.
1095 * doc/html/*: Regenerate.
1097 * include/bits/char_traits.h (__gnu_cxx::char_traits): Add
1098 _GLIBCXX14_CONSTEXPR on assign, compare, find, and length.
1099 (std::char_traits<char>, std::char_traits<wchar_t>): Add
1100 _GLIBCXX17_CONSTEXPR on assign.
1101 (std::char_traits<char16_t>, std::char_traits<char32_t>): Add
1102 _GLIBCXX17_CONSTEXPR on assign, compare, find, and length.
1103 * testsuite/21_strings/char_traits/requirements/
1104 constexpr_functions_c++17.cc: New test.
1106 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1109 * include/bits/stl_pair.h (__nonesuch_no_braces): New.
1110 (operator=(typename conditional<
1111 __and_<is_copy_assignable<_T1>,
1112 is_copy_assignable<_T2>>::value,
1113 const pair&, const __nonesuch&>::type)): Change __nonesuch
1114 to __nonesuch_no_braces.
1115 (operator=(typename conditional<
1116 __not_<__and_<is_copy_assignable<_T1>,
1117 is_copy_assignable<_T2>>>::value,
1118 const pair&, const __nonesuch&>::type)): Likewise.
1119 (operator=(typename conditional<
1120 __and_<is_move_assignable<_T1>,
1121 is_move_assignable<_T2>>::value,
1122 pair&&, __nonesuch&&>::type)): Likewise.
1123 * testsuite/20_util/pair/79141.cc: New.
1125 2017-04-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1127 Implement std::is_aggregate.
1128 * include/std/type_traits (is_aggregate, is_aggregate_v): New.
1129 * testsuite/20_util/is_aggregate/requirements/explicit_instantiation.cc:
1131 * testsuite/20_util/is_aggregate/requirements/typedefs.cc: Likewise.
1132 * testsuite/20_util/is_aggregate/value.cc: Likewise.
1134 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
1136 Adjust optional's pretty printer for LWG 2900.
1137 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter.__init__):
1138 Look at the nested payload in case of non-experimental optional.
1140 2017-03-29 Ville Voutilainen <ville.voutilainen@gmail.com>
1142 Implement LWG 2900, The copy and move constructors
1143 of optional are not constexpr.
1144 * include/std/optional (_Optional_payload): New.
1145 (_Optional_base): Remove the bool parameter.
1146 (_Optional_base<_Tp, false>): Remove.
1147 (_Optional_base()): Adjust.
1148 (_Optional_base(nullopt_t)): Likewise.
1149 (_Optional_base(in_place_t, _Args&&...)): Likewise.
1150 (_Optional_base(in_place_t, initializer_list<_Up>, _Args&&...)):
1152 (_Optional_base(const _Optional_base&)): Likewise.
1153 (_Optional_base(_Optional_base&&)): Likewise.
1154 (operator=(const _Optional_base&)): Likewise.
1155 (operator=(_Optional_base&&)): Likewise.
1156 (~_Optional_base()): Remove.
1157 (_M_is_engaged()): Adjust.
1158 (_M_get()): Likewise.
1159 (_M_construct(_Args&&...)): Likewise.
1160 (_M_destruct()): Likewise.
1161 (_M_reset()): Likewise.
1162 (_Optional_base::_Empty_byte): Remove.
1163 (_Optional_base::_M_empty): Remove.
1164 (_Optional_base::_M_payload): Adjust.
1165 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1166 * testsuite/20_util/optional/constexpr/cons/value.cc: Add tests.
1168 2017-03-28 Jonathan Wakely <jwakely@redhat.com>
1171 * include/bits/random.tcc (generate_canonical): Use std::nextafter
1172 or numeric_limits::epsilon() to reduce out-of-range values.
1173 * testsuite/26_numerics/random/uniform_real_distribution/operators/
1174 64351.cc: Verify complexity requirement is met.
1176 * doc/xml/manual/abi.xml: Add xml:id anchor.
1177 * doc/xml/manual/using.xml (manual.intro.using.macros): Document
1178 _GLIBCXX_RELEASE. Link to new anchor for __GLIBCXX__ notes.
1179 (concurrency.io.structure): Add markup.
1180 * doc/html/*: Regenerate.
1183 * include/bits/shared_ptr_base.h
1184 (__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
1185 non-const and then use remove_cv to get unqualified type.
1186 * testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
1187 cast away constness on object created const.
1188 * testsuite/20_util/shared_ptr/cons/80229.cc: New test.
1190 2017-03-26 Markus Trippelsdorf <markus@trippelsdorf.de>
1193 * include/bits/stl_tree.h:
1194 (_Rb_tree_header::_M_move_data(_Rb_tree_header&)): Also save _M_color.
1196 2017-03-23 Jonathan Wakely <jwakely@redhat.com>
1198 * testsuite/23_containers/array/tuple_interface/
1199 tuple_element_debug_neg.cc: Adjust dg-error.
1200 * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
1201 define a valid strict weak ordering.
1202 * testsuite/23_containers/priority_queue/67085.cc: Disable test for
1203 Debug Mode, due to debug checks making extra copies of predicate.
1204 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1207 * doc/xml/faq.xml: Add link.
1208 * doc/xml/manual/backwards_compatibility.xml: Remove outdated
1209 information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
1210 * doc/xml/manual/io.xml: Update broken link.
1211 * doc/html/*: Regenerate.
1213 2017-03-23 Daniel Kruegler <daniel.kruegler@gmail.com>
1215 Implement LWG 2686, Why is std::hash specialized for error_code,
1216 but not error_condition?
1217 * include/std/system_error (hash<error_condition>): Define for C++17.
1218 * testsuite/20_util/hash/operators/size_t.cc (hash<error_condition>):
1219 Instantiate test for error_condition.
1220 * testsuite/20_util/hash/requirements/explicit_instantiation.cc
1221 (hash<error_condition>): Instantiate hash<error_condition>.
1223 * include/bits/c++config (_GLIBCXX17_INLINE): Define.
1224 * include/bits/regex_constants.h (All std::regex_constants constants):
1225 Add _GLIBCXX17_INLINE as per P0607R0.
1226 * include/bits/std_mutex.h (defer_lock, try_to_lock, adopt_lock):
1228 * include/bits/stl_pair.h (piecewise_construct): Likewise.
1229 * include/bits/uses_allocator.h (allocator_arg, uses_allocator_v)
1230 (__is_uses_allocator_constructible_v)
1231 (__is_nothrow_uses_allocator_constructible_v): Likewise.
1232 * include/std/chrono (treat_as_floating_point_v): Likewise.
1233 * include/std/functional (is_bind_expression_v, is_placeholder_v):
1235 * include/std/optional (nullopt): Likewise.
1236 * include/std/ratio (ratio_equal_v, ratio_not_equal_v, ratio_less_v)
1237 ratio_less_equal_v, ratio_greater_v, ratio_greater_equal_v): Likewise.
1238 * include/std/system_error (is_error_code_enum_v)
1239 (is_error_condition_enum_v): Likewise.
1240 * include/std/tuple (tuple_size_v, ignore): Likewise.
1241 (ignore): Declare ignore constexpr as per LWG 2773, declare assignment
1242 constexpr as per LWG 2933.
1243 * include/std/type_traits (All variable templates): Add
1244 _GLIBCXX17_INLINE as per P0607R0.
1245 * include/std/variant (variant_size_v, variant_npos, __index_of_v)
1246 (__tuple_count_v, __exactly_once): Likewise.
1247 * testsuite/18_support/headers/new/synopsis.cc
1248 (hardware_destructive_interference_size)
1249 (hardware_constructive_interference_size): Likewise for commented-out
1251 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Add new
1252 test function for constexpr std::ignore (LWG 2773).
1253 * testsuite/20_util/tuple/creation_functions/constexpr_cpp14.cc: New
1256 2017-03-22 Jonathan Wakely <jwakely@redhat.com>
1258 * include/bits/shared_ptr.h (shared_ptr, weak_ptr): Add deduction
1260 * include/bits/std_function.h (function): Likewise.
1261 * include/bits/stl_pair.h (pair): Likewise.
1262 * include/debug/array (__gnu_debug::array): Likewise.
1263 * include/std/array (array): Likewise.
1264 * include/std/functional (make_default_searcher)
1265 (make_boyer_moore_searcher, make_boyer_moore_horspool_searcher):
1266 Remove generator functions.
1267 * include/std/tuple (tuple): Add deduction guides.
1268 * include/std/valarray (valarray): Likewise.
1269 * testsuite/20_util/function_objects/searchers.cc: Adjust to use
1270 class template argument deduction instead of generator functions.
1271 * testsuite/20_util/function/cons/deduction.cc: New test.
1272 * testsuite/20_util/optional/cons/deduction_guide.cc: Rename to ...
1273 * testsuite/20_util/optional/cons/deduction.cc: ... here.
1274 * testsuite/20_util/pair/cons/deduction.cc: New test.
1275 * testsuite/20_util/shared_ptr/cons/deduction.cc: New test.
1276 * testsuite/20_util/tuple/cons/deduction.cc: New test.
1277 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust dg-error.
1278 * testsuite/20_util/unique_ptr/cons/deduction_neg.cc: New test.
1279 * testsuite/20_util/weak_ptr/cons/deduction.cc: New test.
1280 * testsuite/23_containers/array/cons/deduction.cc: New test.
1281 * testsuite/23_containers/array/cons/deduction_neg.cc: New test.
1282 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
1284 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
1285 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
1287 * testsuite/26_numerics/valarray/deduction.cc: New test.
1288 * testsuite/30_threads/lock_guard/cons/deduction.cc: New test.
1289 * testsuite/30_threads/scoped_lock/cons/deduction.cc: New test.
1290 * testsuite/30_threads/unique_lock/cons/deduction.cc: New test.
1292 2017-03-20 François Dumont <fdumont@gcc.gnu.org>
1294 * include/bits/stl_deque.h (deque): Access allocator value_type only if
1295 concept checks are enabled.
1296 * include/bits/stl_stack.h (stack): Likewise.
1297 * include/bits/stl_vector.h (vector): Likewise.
1298 * include/bits/stl_list.h (list): Likewise and check
1299 _SGIAssignableConcept only in C++03.
1300 * include/bits/stl_map.h (map): Likewise.
1301 * include/bits/stl_set.h (set): Likewise.
1302 * include/bits/stl_multimap.h (multimap): Likewise.
1303 * include/bits/stl_multiset.h (multiset): Likewise.
1304 * include/bits/stl_queue.h (queue, priority_queue): Likewise.
1306 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
1308 * doc/xml/manual/appendix_contributing.xml: Convert link to
1310 Update link to the C++ standard at ansi.org.
1312 * doc/xml/faq.xml: Remove information redundant with the above;
1313 instead add a reference.
1315 2017-03-17 Jonathan Wakely <jwakely@redhat.com>
1317 * src/c++11/codecvt.cc (range): Add non-type template parameter and
1318 define oerloaded operators for reading and writing code units.
1319 (range<Elem, false>): Define partial specialization for accessing
1320 wide characters in potentially unaligned byte ranges.
1321 (ucs2_span(const char16_t*, const char16_t*, ...))
1322 (ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
1323 to range<const char16_t, false> in order to avoid unaligned reads.
1324 (__codecvt_utf16_base<char16_t>::do_out)
1325 (__codecvt_utf16_base<char32_t>::do_out)
1326 (__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
1327 unaligned data to avoid unaligned writes.
1328 (__codecvt_utf16_base<char16_t>::do_in)
1329 (__codecvt_utf16_base<char32_t>::do_in)
1330 (__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
1331 error if there are unprocessable trailing bytes.
1332 (__codecvt_utf16_base<char16_t>::do_length)
1333 (__codecvt_utf16_base<char32_t>::do_length)
1334 (__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
1335 range<const char16_t, false> to span functions.
1336 * testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.
1338 2017-03-16 Jonathan Wakely <jwakely@redhat.com>
1341 * src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.
1344 * src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
1345 (__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
1346 char16_t to work with UTF-16 instead of UTF-8.
1347 * testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.
1349 * src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
1350 (codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
1351 (__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
1352 (__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
1353 (__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
1354 (__codecvt_utf8_utf16_base<char32_t>)
1355 (__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
1356 do_max_length() return values.
1357 * testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
1358 * testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
1359 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.
1362 * include/bits/locale_conv.h (__do_str_codecvt): Set __count on
1364 * src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
1365 for manipulating codecvt_mode values.
1366 (read_utf16_bom): Compare input to BOM constants instead of integral
1367 constants that depend on endianness. Take mode parameter by
1368 reference and adjust it, to distinguish between no BOM present and
1369 UTF-16BE BOM present.
1370 (ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
1371 (surrogates): New enumeration type.
1372 (utf16_in, utf16_out): Add surrogates parameter to choose between
1373 UTF-16 and UCS2 behaviour.
1374 (utf16_span, ucs2_span): Use std::min not std::max.
1375 (ucs2_out): Use std::min not std::max. Disallow surrogate pairs.
1376 (ucs2_in): Likewise. Adjust calls to read_utf16_bom.
1377 * testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
1378 * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.
1381 * src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
1382 as a surrogate pair.
1383 (__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
1384 for internal representation.
1385 (__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
1386 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.
1389 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap)
1390 (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with
1391 invalid instantiations using function types for _Compare argument.
1392 * testsuite/25_algorithms/make_heap/80064.cc: New test.
1395 * python/libstdcxx/v6/printers.py (find_type): Avoid gdb.Type.name
1396 for GDB 7.6 compatibility, use gdb.Type.unqualified instead.
1398 2017-03-15 Ville Voutilainen <ville.voutilainen@gmail.com>
1400 Implement LWG 2857, {variant,optional,any}::emplace should
1401 return the constructed value.
1402 * include/std/any (emplace(_Args&&...)): Change the return type and
1403 return a reference to the constructed value.
1404 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1405 * include/std/optional (emplace(_Args&&...)): Likewise.
1406 (emplace(initializer_list<_Up>, _Args&&...)): Likewise.
1407 * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise.
1408 (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise.
1409 (emplace<_Np>(_Args&&...)): Likewise.
1410 (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise.
1411 * testsuite/20_util/any/assign/emplace.cc: Add tests for
1412 checking the return value of emplace.
1413 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust.
1414 * testsuite/20_util/optional/assignment/6.cc: Add tests for
1415 checking the return value of emplace.
1416 * testsuite/20_util/variant/run.cc: Likewise.
1418 2017-03-15 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1421 * include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
1423 (push_heap): Remove the wrong checking using is_heap.
1424 (make_heap): Remove the assertion using is_heap.
1425 * include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
1427 (resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
1430 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1433 * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
1435 * testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
1438 2017-03-15 Jonathan Wakely <jwakely@redhat.com>
1440 * acinclude.m4 (GLIBCXX_CHECK_S_ISREG_OR_S_IFREG): Fix typo in
1442 * config.h.in: Regenerate.
1443 * configure: Regenerate.
1444 * doc/Makefile.in: Regenerate.
1446 2017-03-14 Jonathan Wakely <jwakely@redhat.com>
1449 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1450 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
1451 with a constrained template.
1452 [!_GLIBCXX_USE_CXX11_ABI]
1453 (basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
1454 * testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
1455 * testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
1457 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1460 * include/bits/list.tcc (merge(list&&)): Use const for the size_t
1462 (merge(list&&, _StrictWeakOrdering)): Likewise.
1463 * testsuite/23_containers/list/operations/80034.cc: New.
1465 2017-03-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1467 Implement LWG 2806, Base class of bad_optional_access.
1468 * include/std/optional (bad_optional_access):
1469 Derive from std::exception.
1470 (bad_optional_access::bad_optional_access): Adjust.
1471 (bad_optional_access::what): New.
1472 (__throw_bad_optional_access(const char*)):
1473 Remove the parameter and adjust calls.
1474 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
1475 * testsuite/20_util/optional/typedefs.cc: Likewise.
1477 2017-03-12 Ville Voutilainen <ville.voutilainen@gmail.com>
1479 Implement LWG 2934, optional<const T> doesn't compare with T.
1480 * include/std/optional
1481 (operator==(const optional<_Tp>&, const optional<_Tp>&)):
1482 Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
1483 (operator!=(const optional<_Tp>&, const optional<_Tp>&)):
1484 Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
1485 (operator<(const optional<_Tp>&, const optional<_Tp>&)):
1486 Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
1487 (operator>(const optional<_Tp>&, const optional<_Tp>&)):
1488 Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
1489 (operator<=(const optional<_Tp>&, const optional<_Tp>&)):
1490 Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
1491 (operator>=(const optional<_Tp>&, const optional<_Tp>&)):
1492 Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
1493 (operator==(const optional<_Tp>&, const _Tp&)):
1494 Turn into operator==(const optional<_Tp>&, const _Up&).
1495 (operator==(const _Tp&, const optional<_Tp>&)):
1496 Turn into operator==(const _Up&, const optional<_Tp>&).
1497 (operator!=(const optional<_Tp>&, const _Tp&)):
1498 Turn into operator!=(const optional<_Tp>&, const _Up&).
1499 (operator!=(const _Tp&, const optional<_Tp>&)):
1500 Turn into operator!=(const _Up&, const optional<_Tp>&).
1501 (operator<(const optional<_Tp>&, const _Tp&)):
1502 Turn into operator<(const optional<_Tp>&, const _Up&).
1503 (operator<(const _Tp&, const optional<_Tp>&)):
1504 Turn into operator<(const _Up&, const optional<_Tp>&).
1505 (operator>(const optional<_Tp>&, const _Tp&)):
1506 Turn into operator>(const optional<_Tp>&, const _Up&).
1507 (operator>(const _Tp&, const optional<_Tp>&)):
1508 Turn into operator>(const _Up&, const optional<_Tp>&).
1509 (operator<=(const optional<_Tp>&, const _Tp&)):
1510 Turn into operator<=(const optional<_Tp>&, const _Up&).
1511 (operator<=(const _Tp&, const optional<_Tp>&)):
1512 Turn into operator<=(const _Up&, const optional<_Tp>&).
1513 (operator>=(const optional<_Tp>&, const _Tp&)):
1514 Turn into operator>=(const optional<_Tp>&, const _Up&).
1515 (operator>=(const _Tp&, const optional<_Tp>&)):
1516 Turn into operator>=(const _Up&, const optional<_Tp>&).
1517 * testsuite/20_util/optional/relops/7.cc: New.
1519 2017-03-10 Jonathan Wakely <jwakely@redhat.com>
1521 * testsuite/17_intro/names.cc: Undefine macros that clash with
1522 identifiers in AIX system headers.
1524 * include/bits/invoke.h (__invoke): Use __invoke_result instead of
1525 result_of, and __is_nothrow_invocable instead of
1526 __is_nothrow_callable.
1527 * include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
1528 instead of __is_callable.
1529 * include/std/functional (invoke): use invoke_result_t instead of
1530 result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
1531 (_Not_fn): Use __invoke_result instead of result_of.
1532 * include/std/type_traits (__result_of_memobj, __result_of_memfun):
1533 Remove partial specializations for reference_wrapper types.
1534 (__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
1535 (__invoke_result): Define replacement for result_of and then use it to
1537 (__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
1538 with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
1540 (invoke_result, invoke_result_t): Define for C++17.
1541 (is_callable, is_nothrow_callable): Replace with is_invocable,
1542 is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
1543 (is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
1544 is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
1545 * include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
1546 instead of is_nothrow_callable_v.
1547 * testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
1549 * testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
1550 instead of is_callable.
1551 * testsuite/20_util/is_callable/*: Rename directory and adjust tests
1553 * testsuite/20_util/is_nothrow_callable/*: Likewise.
1554 * testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
1556 * testsuite/20_util/variant/hash.cc: Likewise.
1558 2017-03-10 George Lander <george.lander@arm.com>
1560 * acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
1561 _GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
1562 * configure: Regenerate.
1564 2017-03-09 Jonathan Wakely <jwakely@redhat.com>
1566 * include/std/functional (_Not_fn): Define macro to simplify
1567 repetitive function definitions.
1569 * doc/xml/manual/status_cxx2017.xml: Document std::byte support.
1570 * include/c_global/cstddef (std::byte): Define for C++17.
1571 * testsuite/18_support/byte/global_neg.cc: New test.
1572 * testsuite/18_support/byte/ops.cc: New test.
1573 * testsuite/18_support/byte/requirements.cc: New test.
1575 2017-03-05 Jonathan Wakely <jwakely@redhat.com>
1577 * doc/xml/manual/status_cxx2017.xml: Document P0156R2 status.
1578 * doc/html/*: Regenerate.
1579 * include/std/mutex (scoped_lock): Implement new C++17 template.
1580 * testsuite/30_threads/scoped_lock/cons/1.cc: New test.
1581 * testsuite/30_threads/scoped_lock/requirements/
1582 explicit_instantiation.cc: New test.
1583 * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: New test.
1585 2017-03-02 Gerald Pfeifer <gerald@pfeifer.com>
1586 François Dumont <frs.dumont@gmail.com>
1587 Jonathan Wakely <jwakely@redhat.com>
1589 * doc/xml/manual/debug_mode.xml: Update and simplify note
1590 on link- and run-time coexistence.
1592 2017-03-02 Jonathan Wakely <jwakely@redhat.com>
1594 * testsuite/17_intro/headers/names.cc: Rename to ...
1595 * testsuite/17_intro/names.cc: ... here.
1598 * include/bits/hashtable_policy.h (__clp2): Use reserved names for
1599 parameters and local variables.
1600 * include/bits/ios_base.h (make_error_code, make_error_condition):
1602 * include/bits/list.tcc (list::sort): Likewise.
1603 * include/bits/mask_array.h (mask_array): Likewise.
1604 * include/bits/regex.h (regex_token_iterator): Likewise.
1605 * include/bits/slice_array.h (slice_array): Likewise.
1606 * include/bits/stl_algo.h (__sample): Likewise.
1607 * include/std/memory (undeclare_no_pointers): Likewise.
1608 * include/std/type_traits (is_callable_v, is_nothrow_callable_v):
1610 * libsupc++/exception_ptr.h (__dest_thunk): Likewise.
1611 * testsuite/17_intro/headers/names.cc: New test.
1614 * include/std/functional (bind::_Res_type_impl): Fix incorrect use of
1615 result_of that loses top-level cv-qualifiers.
1616 * testsuite/20_util/bind/79798.cc: New test.
1618 2017-03-01 Gerald Pfeifer <gerald@pfeifer.com>
1620 * doc/xml/manual/documentation_hacking.xml: Tweak link to
1623 2017-02-23 Jonathan Wakely <jwakely@redhat.com>
1625 * include/experimental/iterator: Include <iterator>.
1626 * testsuite/experimental/iterator/requirements.cc: Check for contents
1629 2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
1631 C++17 GB50 resolution
1632 * include/std/chrono (duration::operator++()): Add
1633 _GLIBCXX17_CONSTEXPR.
1634 (duration::operator++(int)): Likewise.
1635 (duration::operator--()): Likewise.
1636 (duration::operator--(int)): Likewise.
1637 (duration::operator+=(const duration&)): Likewise.
1638 (duration::operator-=(const duration&)): Likewise.
1639 (duration::operator*=(const rep&)): Likewise.
1640 (duration::operator/=(const rep&)): Likewise.
1641 (duration::operator%=(const rep&)): Likewise.
1642 (duration::operator%=(const duration&)): Likewise.
1643 (time_point::operator+=(const duration&)): Likewise.
1644 (time_point::operator-=(const duration&)): Likewise.
1645 * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
1646 * testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
1647 * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.
1649 2017-02-19 Gerald Pfeifer <gerald@pfeifer.com>
1651 * doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.
1653 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1655 * doc/xml/manual/io.xml: Update link to groups.google.com.
1656 Tweak link description.
1658 2017-02-18 Gerald Pfeifer <gerald@pfeifer.com>
1660 * doc/xml/manual/profile_mode.xml: Fix link.
1662 2017-02-16 Gerald Pfeifer <gerald@pfeifer.com>
1664 * doc/xml/manual/policy_data_structures.xml: Simplify and
1665 standardize references to boost.org.
1666 * doc/xml/manual/policy_data_structures_biblio.xml: Ditto.
1667 * doc/xml/manual/shared_ptr.xml: Ditto.
1669 2017-02-16 Jonathan Wakely <jwakely@redhat.com>
1672 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
1673 written to buffer, not length remaining in buffer.
1675 2017-02-15 Tim Shen <timshen@google.com>
1678 * include/std/variant (operator<(), operator>(), operator<=(),
1679 operator>=(), operator==(), operator!=()): Implement P0393R3.
1680 * testsuite/20_util/variant/compile.cc: Adjust tests.
1681 * testsuite/20_util/variant/run.cc: Adjust tests.
1683 2017-02-15 Tim Shen <timshen@google.com>
1686 * include/std/variant (visit()): Forward variant types to the return
1687 type detection code.
1688 * testsuite/20_util/variant/compile.cc: Add test cases.
1690 2017-02-13 H.J. Lu <hongjiu.lu@intel.com>
1693 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1695 2017-02-13 Jakub Jelinek <jakub@redhat.com>
1698 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
1699 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
1700 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Likewise.
1701 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
1702 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Likewise.
1703 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
1704 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Likewise.
1705 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
1706 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
1708 2017-02-13 Jonathan Wakely <jwakely@redhat.com>
1711 * include/std/future (__future_base::_Task_state::_M_run)
1712 (__future_base::_Task_state::_M_run_delayed): Use lvalue types in
1713 result_of expressions.
1714 * testsuite/30_threads/packaged_task/79486.cc: New.
1716 2017-02-11 Jonathan Wakely <jwakely@redhat.com>
1719 * include/bits/shared_ptr_base.h (__shared_ptr(_Yp*, _Deleter))
1720 (__shared_ptr(_Yp*, _Deleter, _Alloc)): Use lvalue types in
1721 __is_callable check.
1722 * testsuite/20_util/shared_ptr/cons/79467.cc: New.
1724 * include/bits/atomic_base.h: Re-indent.
1726 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1728 * doc/xml/manual/profile_mode.xml: Update a paper reference.
1730 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1732 * src/c++11/snprintf_lite.cc (__err): Use https for bug reporting.
1734 2017-02-08 Jonathan Wakely <jwakely@redhat.com>
1736 * doc/xml/manual/policy_data_structures.xml: Fix spelling of author's
1738 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. Remove
1739 broken links to texts that are no longer online.
1740 * doc/xml/manual/profile_mode.xml: Update links to CGO 2009 paper and
1742 * doc/xml/manual/using.xml: Update links to memory model information.
1743 * doc/xml/manual/using_exceptions.xml: Update link to "Appendix E:
1744 Standard-Library Exception Safety".
1745 * doc/html/*: Regenerate.
1747 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1749 * doc/xml/manual/profile_mode.xml: Unbreak link to
1750 "Optimizing Sorting with Machine Learning Algorithms".
1752 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1754 * src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.
1756 2017-02-08 Gerald Pfeifer <gerald@pfeifer.com>
1758 * doc/xml/manual/abi.xml: Update link to "Sun Studio 11: C++
1761 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1763 * doc/html/ext/lwg-active.html: Remove.
1764 * doc/html/ext/lwg-closed.html: Ditto.
1765 * doc/html/ext/lwg-defects.html: Ditto.
1767 * doc/Makefile.am (xml_extradir): Remove.
1769 (stamp-html-docbook-lwg): Remove recipe...
1770 (stamp-html-docbook-data): ...and its use here.
1771 * doc/Makefile.in: Regenerate.
1773 * doc/xml/manual/intro.xml: Shorten two paragraphs explaining
1774 the relationship to the upstream working group.
1775 Replace a local link to ../ext/lwg-active.html by the upstream one.
1776 Replace all reference to ../ext/lwg-defects.html by a new entity
1777 &DR; which refers to the upstream address.
1779 2017-02-07 Gerald Pfeifer <gerald@pfeifer.com>
1781 * doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
1783 2017-02-06 Jonathan Wakely <jwakely@redhat.com>
1786 * testsuite/20_util/duration/literals/range.cc: Prune extra output
1789 2017-02-06 Gerald Pfeifer <gerald@pfeifer.com>
1791 * doc/xml/manual/documentation_hacking.xml: Update URL of the
1792 DocBook Element Reference. Use that term as link description
1793 instead of "online".
1794 epubcheck has moved to GitHub.
1795 Remove obsolete link to DocBook Publishing Tools.
1797 2017-02-03 Jonathan Wakely <jwakely@redhat.com>
1800 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Restore ABI override
1801 so new ios::failure can be caught even when old ABI is the default.
1802 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
1803 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
1804 exceptions_failbit.cc: Likewise.
1805 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
1806 exceptions_failbit.cc: Likewise.
1807 * testsuite/27_io/basic_istream/extractors_other/char/
1808 exceptions_null.cc: Likewise.
1809 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
1810 exceptions_null.cc: Likewise.
1811 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
1812 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
1813 * testsuite/27_io/basic_ostream/inserters_other/char/
1814 exceptions_null.cc: Likewise.
1815 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1816 exceptions_null.cc: Likewise.
1817 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1820 * src/c++11/Makefile.am: Add new files.
1821 * src/c++11/Makefile.in: Regenerate.
1822 * src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1823 (operator<<, operator>>, getline): Move explicit instantiations to ...
1824 * src/c++11/cow-string-io-inst.cc: ... new file.
1825 * src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
1826 (operator<<, operator>>, getline): Move explicit instantiations to ...
1827 * src/c++11/cow-wstring-io-inst.cc: ... new file.
1828 * src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
1829 (__throw_future_error, __throw_bad_function_call):
1830 (__throw_regex_error): Move functions for C++11 exceptions to the
1831 files that define the exception types.
1832 * src/c++11/functional.cc (__throw_bad_function_call): Move here.
1833 * src/c++11/future.cc (__throw_future_error): Likewise.
1834 * src/c++11/ios.cc (__throw_ios_failure): Likewise.
1835 * src/c++11/regex.cc (__throw_regex_error): Likewise.
1836 * src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
1837 representation directly instead of calling __int_to_char.
1838 * src/c++11/sso_string.cc (__sso_string): New file for definition
1839 of __sso_string type.
1840 * src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1841 explicit instantiations of narrow string I/O functions.
1842 * src/c++11/system_error.cc (__throw_system_error): Move here.
1843 (__sso_string): Move to new file.
1844 * src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
1845 explicit instantiations of wide string I/O functions.
1846 * src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
1847 (operator>>, getline): Remove explicit instantiations from here.
1849 2017-02-02 H.J. Lu <hongjiu.lu@intel.com>
1851 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.
1853 2017-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1855 * configure.host: Separate Solaris/SPARC and x86 baselines.
1856 * config/abi/post/solaris2.10/baseline_symbols.txt: Move ...
1857 * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: ... here.
1858 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Move ...
1859 * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
1861 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Move ...
1862 * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: ... here.
1863 * config/abi/post/i386-solaris2.10/baseline_symbols.txt: New file.
1864 * config/abi/post/solaris2.11/baseline_symbols.txt: Move ...
1865 * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: ... here.
1866 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Move ...
1867 * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
1869 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Move ...
1870 * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: ... here.
1871 * config/abi/post/i386-solaris2.11/baseline_symbols.txt: New file.
1873 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
1874 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
1875 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
1876 * config/abi/post/solaris2.11/baseline_symbols.txt: Likewise.
1877 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: Likewise.
1878 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: Likewise.
1880 2017-02-01 Jonathan Wakely <jwakely@redhat.com>
1883 * include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
1885 (_Iter_comp_to_iter): Likewise.
1886 * testsuite/25_algorithms/search/78346.cc: New test.
1889 * config/abi/pre/gnu.ver: Remove recently added symbols.
1890 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1891 (basic_string::_M_copy_assign): Remove.
1892 (basic_string::operator=(const basic_string&)): Don't dispatch to
1893 _M_copy_assign. If source object is small just deallocate, otherwise
1894 perform new allocation before making any changes.
1895 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1896 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1898 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1899 Test cases where the allocators are equal or the string is small.
1900 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1903 2017-01-30 Ville Voutilainen <ville.voutilainen@gmail.com>
1905 Implement LWG 2825, LWG 2756 breaks class template argument
1906 deduction for optional.
1907 * include/std/optional: Add a deduction guide.
1908 * testsuite/20_util/optional/cons/deduction_guide.cc: New.
1910 2017-01-27 Jonathan Wakely <jwakely@redhat.com>
1913 * config/abi/pre/gnu.ver: Add new symbols.
1914 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
1915 (basic_string::_M_copy_assign): New overloaded functions to perform
1917 (basic_string::operator=(const basic_string&)): Dispatch to
1919 * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI]
1920 (basic_string::_M_copy_assign(const basic_string&, true_type)):
1921 Define, performing rollback on exception.
1922 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1923 Test exception-safety guarantee.
1924 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1926 * testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
1929 2017-01-26 Jonathan Wakely <jwakely@redhat.com>
1932 * include/tr1/complex (conj): Remove using-declaration and restore
1933 overloads, reverting previous change.
1935 * testsuite/23_containers/list/operations/78389.cc: Fix for C++11
1937 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
1938 Mark as unsupported in C++98 mode.
1939 * testsuite/23_containers/queue/requirements/constructible.cc:
1941 * testsuite/23_containers/stack/requirements/constructible.cc:
1943 * testsuite/25_algorithms/make_heap/movable.cc: Fix for C++11 mode.
1946 * include/bits/c++config (literals::string_view_literals::__7): Add.
1947 Only declare versioned namespaces for the relevant C++ dialects.
1948 * include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
1949 Add versioning macros.
1950 * include/experimental/bits/lfts_config.h:
1951 (fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
1952 * include/experimental/string_view (fundamentals_v2::__detail):
1953 Add versioning macros.
1954 (fundamentals_v2::__detail::__identity): Remove.
1955 (fundamentals_v2::__detail::__idt): Use common_type instead of
1956 __detail::__identity.
1957 * include/std/string_view (__detail::__identity, __detail::__idt):
1959 (literals::string_view_literals): Fix nesting of versioning macros.
1962 * libsupc++/del_opa.cc (operator delete(void*, std::align_val_t))
1963 [!_GLIBCXX_HAVE_ALIGNED_ALLOC && !_GLIBCXX_HAVE_POSIX_MEMALIGN
1964 && !_GLIBCXX_HAVE_MEMALIGN && !_GLIBCXX_HAVE__ALIGNED_MALLOC]:
1965 Retrieve original pointer value allocated by malloc.
1966 * libsupc++/new_opa.cc [!_GLIBCXX_HAVE_ALIGNED_ALLOC
1967 && !_GLIBCXX_HAVE_POSIX_MEMALIGN && !_GLIBCXX_HAVE_MEMALIGN
1968 && !_GLIBCXX_HAVE__ALIGNED_MALLOC] (aligned_alloc(size_t, size_t)):
1969 Define, adjusting pointer value allocated by malloc and storing for
1970 retrieval by operator delete.
1972 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1974 * libsupc++/eh_atomics.h: Update copyright years.
1975 * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright years.
1977 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
1981 * include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
1982 (proj(T), conj(T)): Change return types per DR 1522.
1983 * include/tr1/complex (conj): Remove overloads and use std::conj.
1984 * testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
1985 * testsuite/26_numerics/complex/dr781.cc: ... this, and update.
1986 * testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
1987 real(T) and imag(T). Allow testing for C++11 too.
1989 2017-01-24 Jonathan Wakely <jwakely@redhat.com>
1992 * include/experimental/string_view (operator==): Check sizes first.
1993 * include/std/string_view (operator==): Likewise.
1995 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
1997 * testsuite/experimental/array/make_array.cc: Restore <functional>
2000 2017-01-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
2002 * testsuite/29_atomics/atomic/69301.cc: Require atomic builtins.
2004 2017-01-23 Jonathan Wakely <jwakely@redhat.com>
2007 * include/experimental/array (__make_array_elem): New class template
2008 and partial specialization.
2009 (__is_reference_wrapper): Move into __make_array_elem specialization.
2010 (make_array): Use __make_array_elem to determine element type and move
2011 static assertion into specialization. Qualify std::forward call.
2012 (to_array): Add exception specifiation.
2013 * testsuite/experimental/array/make_array.cc: Test argument types
2014 without a common type.
2015 * testsuite/experimental/array/neg.cc: Adjust expected error message.
2017 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
2019 * doc/xml/manual/debug.xml: code.google.com uses https now.
2021 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
2023 * doc/xml/manual/test.xml: Fix link into gccint online manual.
2025 2017-01-21 Ville Voutilainen <ville.voutilainen@gmail.com>
2027 Make poisoned hashes SFINAE away the call operator of the hash.
2028 * include/bits/functional_hash.h
2029 (__poison_hash::__enable_hash_call): New.
2030 * include/std/optional (__optional_hash_call_base): New.
2031 (hash<optional<_Tp>>): Derive from the new base,
2032 move the hash function into that base.
2033 * include/std/variant (__variant_hash_call_base_impl): New.
2034 (__variant_hash_call_base): Likewise.
2035 (hash<variant<_Types...>>): Derive from the new base,
2036 move the hash function into that base.
2037 * testsuite/20_util/optional/hash.cc: Add tests for is_callable.
2038 * testsuite/20_util/variant/hash.cc: Likewise.
2040 2017-01-20 Joe Seymour <joe.s@somniumtech.com>
2042 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): Support uint20_t.
2043 * configure: Regenerate.
2045 2017-01-20 Jonathan Wakely <jwakely@redhat.com>
2048 * include/bits/random.h (uniform_real_distribution::param_type)
2049 (normal_distribution::param_type, lognormal_distribution::param_type)
2050 (gamma_distribution::param_type, chi_squared_distribution::param_type)
2051 (cauchy_distribution::param_type, fisher_f_distribution::param_type)
2052 (student_t_distribution::param_type)
2053 (bernoulli_distribution::param_type, binomial_distribution::param_type)
2054 (geometric_distribution::param_type)
2055 (negative_binomial_distribution::param_type)
2056 (poisson_distribution::param_type)
2057 (exponential_distribution::param_type)
2058 (weibull_distribution::param_type)
2059 (extreme_value_distribution::param_type)
2060 (discrete_distribution::param_type)
2061 (piecewise_constant_distribution::param_type)
2062 (piecewise_linear_distribution::param_type): Define operator!=.
2063 * include/bits/uniform_int_dist.h
2064 (uniform_int_distribution::param_type): Likewise.
2065 * include/ext/random (beta_distribution::param_type)
2066 (rice_distribution::param_type, nakagami_distribution::param_type)
2067 (pareto_distribution::param_type, k_distribution::param_type)
2068 (arcsine_distribution::param_type, hoyt_distribution::param_type)
2069 (triangular_distribution::param_type)
2070 (von_mises_distribution::param_type)
2071 (hypergeometric_distribution::param_type)
2072 (logistic_distribution::param_type)
2073 (uniform_on_sphere_distribution::param_type)
2074 (uniform_inside_sphere_distribution::param_type): Likewise.
2075 * testsuite/26_numerics/random/bernoulli_distribution/cons/parms.cc:
2076 Test construction with param_type.
2077 * testsuite/26_numerics/random/binomial_distribution/cons/parms.cc:
2079 * testsuite/26_numerics/random/cauchy_distribution/cons/parms.cc:
2081 * testsuite/26_numerics/random/chi_squared_distribution/cons/parms.cc:
2083 * testsuite/26_numerics/random/exponential_distribution/cons/parms.cc:
2085 * testsuite/26_numerics/random/extreme_value_distribution/cons/
2087 * testsuite/26_numerics/random/fisher_f_distribution/cons/parms.cc:
2089 * testsuite/26_numerics/random/gamma_distribution/cons/parms.cc:
2091 * testsuite/26_numerics/random/geometric_distribution/cons/parms.cc:
2093 * testsuite/26_numerics/random/lognormal_distribution/cons/parms.cc:
2095 * testsuite/26_numerics/random/negative_binomial_distribution/cons/
2097 * testsuite/26_numerics/random/normal_distribution/cons/parms.cc:
2099 * testsuite/26_numerics/random/poisson_distribution/cons/parms.cc:
2101 * testsuite/26_numerics/random/student_t_distribution/cons/parms.cc:
2103 * testsuite/26_numerics/random/uniform_int_distribution/cons/parms.cc:
2105 * testsuite/26_numerics/random/uniform_real_distribution/cons/parms.cc:
2107 * testsuite/26_numerics/random/weibull_distribution/cons/parms.cc:
2109 * testsuite/ext/random/arcsine_distribution/cons/parms.cc: Likewise.
2110 * testsuite/ext/random/beta_distribution/cons/parms.cc: Likewise.
2111 * testsuite/ext/random/hoyt_distribution/cons/parms.cc: Likewise.
2112 * testsuite/ext/random/hypergeometric_distribution/cons/parms.cc:
2114 * testsuite/ext/random/k_distribution/cons/parms.cc: Likewise.
2115 * testsuite/ext/random/logistic_distribution/cons/parms.cc: Likewise.
2116 * testsuite/ext/random/nakagami_distribution/cons/parms.cc: Likewise.
2117 * testsuite/ext/random/normal_mv_distribution/cons/parms.cc: Likewise.
2118 * testsuite/ext/random/pareto_distribution/cons/parms.cc: Likewise.
2119 * testsuite/ext/random/rice_distribution/cons/parms.cc: Likewise.
2120 * testsuite/ext/random/triangular_distribution/cons/parms.cc:
2122 * testsuite/ext/random/uniform_inside_sphere_distribution/cons/
2124 * testsuite/ext/random/von_mises_distribution/cons/parms.cc: Likewise.
2127 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type)
2128 (__allocator_traits_base::__size_type): Remove.
2129 (allocator_traits::_Ptr): New class template to detect const and void
2130 pointer types without instantiating pointer_traits::rebind
2132 (allocator_traits::_Diff): Likewise for detecting difference_type.
2133 (allocator_traits::_Size): New class template to detect size_type
2134 without instantiating make_unsigned unnecessarily.
2135 * include/bits/ptr_traits.h (pointer_traits::element_type): Use
2136 __detected_or_t instead of __detected_or_t_.
2137 * include/std/type_traits (__detected_or_t_): Remove.
2138 * testsuite/20_util/allocator_traits/members/pointers.cc: New test.
2142 * include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
2143 Replace with class template using void_t.
2144 (__alloc_rebind): Define in terms of
2145 __allocator_traits_base::__rebind.
2146 (allocator_traits): Remove unconditional static_assert for
2148 * include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
2149 (pointer_traits::__rebind): Replace with class template using void_t.
2150 (pointer_traits::rebind): Define in terms of __rebind.
2151 (pointer_traits): Remove unconditional static_assert for rebind.
2152 * testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
2153 * testsuite/20_util/pointer_traits/rebind.cc: New test.
2156 * include/experimental/any (__any_caster): Avoid instantiating
2157 manager function for types that can't be stored in any.
2158 * include/std/any (__any_caster): Likewise.
2159 * testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
2160 * testsuite/experimental/any/misc/any_cast.cc: Likewise.
2163 * include/bits/stl_algo.h (is_partitioned): Use increment instead of
2166 2017-01-19 Jonathan Wakely <jwakely@redhat.com>
2169 * include/bits/shared_ptr_base.h (__enable_shared_from_this_base):
2171 (__enable_shared_from_this): Declare __shared_ptr as a friend.
2172 * testsuite/ext/shared_ptr/1.cc: New test.
2175 * include/bits/stl_algo.h (is_partitioned): Don't retest the partition
2177 * testsuite/25_algorithms/is_partitioned/2.cc: New test.
2179 * doc/xml/manual/abi.xml: Fix typo.
2180 * doc/html/manual/abi.html: Likewise.
2183 * include/bits/predefined_ops.h (_Iter_less_val, _Val_less_iter): Add
2184 converting constructors from _Iter_less_iter.
2185 (_Iter_comp_val, _Val_comp_iter): Add converting constructors from
2187 (__iter_comp_val(_Iter_comp_iter<C>): Use converting constructor.
2188 (__val_comp_iter(_Iter_comp_iter<C>): Likewise.
2189 * include/bits/stl_heap.h (__is_heap_until, __push_heap, __pop_heap)
2190 (__make_heap, __sort_heap): Change _Compare parameters to references.
2191 (__is_heap, push_heap, __adjust_heap, __pop_heap, pop_heap)
2192 (__make_heap, make_heap, sort_heap, is_heap_until): Pass comparison
2193 functions as lvalues.
2194 (is_heap): Call __is_heap_until directly to avoid copying __comp.
2195 * testsuite/23_containers/priority_queue/67085.cc: Adjust test to
2196 count copies during construction with empty sequence.
2199 * include/bits/stl_heap.h (__is_heap): Use _GLIBCXX_MOVE.
2200 (__make_heap, __sort_heap): Don't use _GLIBCXX_MOVE inside loops.
2201 * testsuite/23_containers/priority_queue/67085.cc: Adjust expected
2203 * testsuite/25_algorithms/make_heap/movable.cc: New test.
2206 * include/bits/stl_heap.h (push_heap, __adjust_heap, __pop_heap)
2207 (pop_heap, __make_heap, make_heap, __sort_heap, sort_heap): Use
2208 _GLIBCXX_MOVE when passing comparison function to other functions.
2209 (is_heap_until, is_heap): Use std::move when passing comparison
2211 * testsuite/23_containers/priority_queue/67085.cc: New test.
2214 * doc/xml/manual/abi.xml (abi.versioning.history): Add markup to
2215 macro names, filenames, and literal values. Document _GLIBCXX_RELEASE.
2216 Document that the deprecated _GLIBCXX_VERSION macro was removed for
2218 * doc/html/*: Regenerate.
2219 * include/Makefile.am (_GLIBCXX_RELEASE): Set value.
2220 * include/Makefile.in: Regenerate.
2221 * include/bits/c++config (_GLIBCXX_RELEASE): Add #define.
2222 * testsuite/ext/profile/mutex_extensions_neg.cc: Use lineno of 0 in
2225 2017-01-18 Jonathan Wakely <jwakely@redhat.com>
2228 * include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
2229 aligned buffer instead of default-initialized variable.
2230 * testsuite/29_atomics/atomic/69301.cc: New test.
2231 * include/experimental/memory (observer_ptr::release): Use reserved
2233 * include/ext/pointer.h (_Pointer_adapter::operator++(int))
2234 (_Pointer_adapter::operator--(int)): Likewise.
2237 * include/experimental/random (randint): Use temporary instead of
2238 thread_local static.
2240 2017-01-17 Joshua Conner <joshconner@google.com>
2242 * crossconfig.m4: Add fuchsia OS.
2243 * configure: Regenerate.
2245 2017-01-17 Jonathan Wakely <jwakely@redhat.com>
2248 * doc/xml/manual/abi.xml (abi.versioning.history): Explain why the
2249 __GLIBCXX__ macro is not useful. Remove redundant date information
2250 and link to the GCC release timeline.
2251 (abi.versioning.active): Move partial sentence into the previous
2253 * doc/html/*: Regenerate.
2256 * libsupc++/nested_exception.h (throw_with_nested): Use decay instead
2257 of remove_reference.
2258 * testsuite/18_support/nested_exception/79114.cc: New test.
2260 2017-01-17 Jakub Jelinek <jakub@redhat.com>
2263 * configure.ac: Add GCC_BASE_VER.
2264 * fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
2265 get version from BASE-VER file.
2266 * po/Makefile.in: Regenerated.
2267 * libsupc++/Makefile.in: Regenerated.
2268 * testsuite/Makefile.in: Regenerated.
2269 * src/Makefile.in: Regenerated.
2270 * configure: Regenerated.
2271 * Makefile.in: Regenerated.
2272 * include/Makefile.in: Regenerated.
2273 * doc/Makefile.in: Regenerated.
2274 * python/Makefile.in: Regenerated.
2275 * src/c++11/Makefile.in: Regenerated.
2276 * src/c++98/Makefile.in: Regenerated.
2277 * src/filesystem/Makefile.in: Regenerated.
2279 2017-01-16 Jonathan Wakely <jwakely@redhat.com>
2282 * src/c++11/functexcept.cc: Use new ABI for std::ios_base::failure
2284 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Don't override ABI
2285 for test, so new ios::failure can be caught.
2286 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
2287 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
2288 exceptions_failbit.cc: Likewise.
2289 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
2290 exceptions_failbit.cc: Likewise.
2291 * testsuite/27_io/basic_istream/extractors_other/char/
2292 exceptions_null.cc: Likewise.
2293 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
2294 exceptions_null.cc: Likewise.
2295 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
2296 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
2297 * testsuite/27_io/basic_ostream/inserters_other/char/
2298 exceptions_null.cc: Likewise.
2299 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
2300 exceptions_null.cc: Likewise.
2301 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2304 * include/bits/locale_classes.h (locale::facet::__shim): Change from
2305 private to protected.
2306 * src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
2307 make locale::facet::__shim accessible.
2309 2017-01-16 Ville Voutilainen <ville.voutilainen@gmail.com>
2312 * include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
2313 (merge(list&&, _StrictWeakOrdering)): Likewise.
2314 * testsuite/23_containers/list/operations/78389.cc: Add
2315 better test for the sizes.
2317 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
2319 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
2320 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
2321 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
2322 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2324 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2325 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
2326 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
2327 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
2328 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
2330 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
2332 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
2334 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
2336 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
2338 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
2339 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
2340 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
2341 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
2342 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
2343 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
2344 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
2345 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
2346 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
2347 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
2348 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
2349 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
2350 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2352 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
2355 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
2356 retry fclose on EINTR.
2358 * include/profile/base.h: Remove unused header that leads to header
2359 cycle in C++17 mode.
2362 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
2363 Make _If_sv private.
2364 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
2365 basic_string_view arguments.
2368 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
2369 redundant option from cxxflags.
2370 (check_effective_target_cxx11-abi): Define.
2371 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
2373 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
2374 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
2376 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
2378 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
2379 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
2381 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
2383 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
2384 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
2386 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
2388 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
2390 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
2392 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
2394 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
2396 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
2398 * testsuite/23_containers/list/61347.cc: Likewise.
2399 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
2400 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
2402 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
2405 * include/bits/list.tcc (merge(list&&)):
2406 Adjust list sizes if the comparator throws.
2407 (merge(list&&, _StrictWeakOrdering)): Likewise.
2408 (sort()): Splice elements back from the scratch buffers
2409 if the comparator throws.
2410 (sort(_StrictWeakOrdering)): Likewise.
2411 * testsuite/23_containers/list/operations/78389.cc: New.
2413 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
2415 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
2416 XFAIL for C++17 until node reinsertion supports fancy pointers.
2419 * testsuite/20_util/add_pointer/value.cc: Test forming function
2422 2017-01-13 Michael Brune <lucdanton@free.fr>
2425 * include/std/type_traits (__is_referenceable): Handle noexcept
2428 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
2431 * include/bits/stl_queue.h (queue, priority_queue): Remove default
2432 member-initializers and define default constructors as templates with
2434 * include/bits/stl_stack.h (stack): Likewise.
2435 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
2437 * testsuite/23_containers/priority_queue/requirements/
2438 explicit_instantiation/1.cc: Test more instantiations.
2439 * testsuite/23_containers/priority_queue/requirements/
2440 explicit_instantiation/1_c++98.cc: Likewise.
2441 * testsuite/23_containers/queue/requirements/constructible.cc: New.
2442 * testsuite/23_containers/stack/requirements/constructible.cc: New.
2445 * doc/xml/manual/intro.xml: Document LWG 2781 change.
2446 * doc/html/*: Regenerate.
2447 * include/std/functional (_Function_base::_Ref_manager): Remove.
2448 (_Function_handler): Remove partial specializations for
2450 (function::target): Remove special case for const qualification.
2451 * testsuite/20_util/function/6.cc: Adjust tests for target type.
2452 * testsuite/20_util/function/7.cc: Likewise.
2453 * testsuite/20_util/function/8.cc: Likewise.
2455 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
2458 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
2459 (map::equal_range): Fix return type of heterogeneous overloads.
2460 * include/bits/stl_multimap.h (multimap::lower_bound)
2461 (multimap::upper_bound, multimap::equal_range): Likewise.
2462 * include/bits/stl_multiset.h (multiset::lower_bound)
2463 (multiset::upper_bound, multiset::equal_range): Likewise.
2464 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
2465 (set::equal_range): Likewise.
2466 * testsuite/23_containers/map/operations/2.cc
2467 * testsuite/23_containers/multimap/operations/2.cc
2468 * testsuite/23_containers/multiset/operations/2.cc
2469 * testsuite/23_containers/set/operations/2.cc
2472 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
2473 the heterogeneous comparison can only find one match.
2474 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
2475 * testsuite/23_containers/map/operations/2.cc: Test count works with
2476 comparison function that just partitions rather than sorting.
2477 * testsuite/23_containers/set/operations/2.cc: Likewise.
2479 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
2481 Reduce the size of variant, it doesn't need an index of
2482 type size_t internally.
2483 * include/std/variant (parse_numbers.h): New include.
2484 (__select_index): New.
2485 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
2486 _index_type for comparison with variant_npos.
2487 (_Variant_storage<false, _Types...>::__index_type): New.
2488 (_Variant_storage<false, _Types...>::_M_index): Change the
2489 type from size_t to __index_type.
2490 (_Variant_storage<true, _Types...>::__index_type): New.
2491 (_Variant_storage<true, _Types...>::_M_index): Change the
2492 type from size_t to __index_type.
2493 (_Variant_base::_M_valid): Use _Storage::__index_type
2494 for comparison with variant_npos.
2495 (variant::index): Use _Base::_Storage::__index_type
2496 for comparison with variant_npos.
2497 * testsuite/20_util/variant/index_type.cc: New.
2499 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
2501 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
2502 effective target selector to prevent running in C++17 mode.
2505 * include/bits/stl_queue.h (queue::c): Add default member initializer.
2506 (queue::queue()): Add constructor and define as defaulted.
2507 (queue::queue(_Sequence&&)): Remove default argument.
2508 (priority_queue::c, priority_queue::comp): Add default member
2510 (priority_queue::priority_queue()): Add constructor and define as
2512 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
2513 Remove default argument for first parameter.
2514 * include/bits/stl_stack.h (stack::c): Add default member initializer.
2515 (stack::stack()): Add constructor and define as defaulted.
2516 (stack::stack(const _Sequence&)): Remove default argument.
2517 * testsuite/23_containers/priority_queue/requirements/
2518 explicit_instantiation/1.cc: Test explicit instantiation with
2519 non-DefaultConstructible sequence.
2520 * testsuite/23_containers/priority_queue/77528.cc: New test.
2521 * testsuite/23_containers/priority_queue/requirements/
2522 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
2523 * testsuite/23_containers/queue/77528.cc: New test.
2524 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2525 1.cc: Test explicit instantiation with non-DefaultConstructible
2527 * testsuite/23_containers/queue/requirements/explicit_instantiation/
2528 1_c++0x.cc: Replace with 1_c++98.cc.
2529 * testsuite/23_containers/stack/77528.cc: New test.
2530 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2531 1.cc: Test explicit instantiation with non-DefaultConstructible
2533 * testsuite/23_containers/stack/requirements/explicit_instantiation/
2534 1_c++0x.cc: Replace with 1_c++98.cc.
2536 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
2538 * include/bits/locale_facets_nonio.tcc
2539 (time_get::_M_extract_via_format): Avoid compilation errors with
2540 non-standard struct tm.
2542 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
2543 Jonathan Wakely <jwakely@redhat.com>
2545 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
2546 (is_specialization, strip_versioned_namespace): New helpers functions
2547 to work with symbols in the versioned namespace.
2548 (Printer.add_version): Add second name using versioned namespace.
2549 (add_one_template_type_printer, add_one_type_printer): Add second
2550 type printers using versioned namespace.
2551 (register_type_printers): Add template type printer for basic_string.
2552 (build_libstdcxx_dictionary): Remove dead code.
2553 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
2554 versioned namespace.
2555 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
2557 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
2559 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2562 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
2563 functions separately on darwin and if they're missing define
2564 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
2565 * config.h.in: Regenerate.
2566 * configure: Regenerate.
2567 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
2568 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
2570 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
2571 to detect correct thread_local destructors.
2572 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
2575 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
2576 Aditya Kumar <hiraditya@msn.com>
2579 * include/bits/basic_string.tcc
2580 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
2582 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2584 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
2585 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
2587 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
2588 Include <cassert> header.
2591 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
2592 * configure: Regenerate.
2594 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
2595 Jonathan Wakely <jwakely@redhat.com>
2597 * include/std/variant (variant, swap): Replace __and_ usage with fold
2600 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2603 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
2604 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
2605 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
2606 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
2608 * aclocal.m4: Regenerate.
2609 * configure: Regenerate.
2610 * Makefile.in, doc/Makefile.in, include/Makefile.in,
2611 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
2612 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
2613 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
2615 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
2617 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
2620 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
2621 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
2622 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
2623 move function objects.
2624 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
2625 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
2626 * testsuite/25_algorithms/sort/78991.cc: New test.
2628 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
2630 * include/bits/std_function.h (function::_Signature_type): Remove.
2631 (function::function(_Functor)): Adjust.
2633 2017-01-05 Tim Shen <timshen@google.com>
2636 * include/std/variant (__gen_vtable_impl): rename __unused to
2637 __dimensions to avoid naming conflict.
2639 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
2642 * config.h.in: Regenerate.
2643 * configure: Likewise.
2644 * configure.ac: Check for __cxa_thread_atexit.
2645 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
2646 Don't define __cxa_thread_atexit if libc provides it.
2648 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
2650 Implement 2801, Default-constructibility of unique_ptr.
2651 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
2652 (unique_ptr::_DeleterConstraint): Likewise.
2653 (unique_ptr()): Constrain.
2654 (unique_ptr(pointer)): Likewise.
2655 (unique_ptr(nullptr_t)): Likewise.
2656 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
2657 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
2658 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
2659 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
2660 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
2661 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
2662 * testsuite/20_util/unique_ptr/cons/default.cc: New.
2663 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
2665 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
2666 Jonathan Wakely <jwakely@redhat.com>
2669 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
2670 * config.h.in: Regenerate.
2671 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
2672 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
2673 exports for exception_ptr, nested_exception, and future conditional.
2674 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
2675 exports for exception_ptr, nested_exception, and future conditional.
2676 * configure: Regenerate.
2677 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
2678 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
2679 * libsupc++/eh_atomics.h: New file for internal use only.
2680 (__eh_atomic_inc, __eh_atomic_dec): New.
2681 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
2682 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
2683 (rethrow_exception): Use eh_atomics.h reference counting helpers.
2684 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
2685 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
2686 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
2687 * libsupc++/exception_ptr.h: Likewise.
2688 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
2689 * libsupc++/nested_exception.cc: Remove check for
2690 ATOMIC_INT_LOCK_FREE.
2691 * libsupc++/nested_exception.h: Likewise.
2692 * src/c++11/future.cc: Likewise.
2693 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
2694 * testsuite/18_support/nested_exception/*: Likewise.
2695 * testsuite/30_threads/async/*: Likewise.
2696 * testsuite/30_threads/future/*: Likewise.
2697 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
2698 * testsuite/30_threads/packaged_task/*: Likewise.
2699 * testsuite/30_threads/promise/*: Likewise.
2700 * testsuite/30_threads/shared_future/*: Likewise.
2702 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2704 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
2705 defaults to https; adjust reference.
2707 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
2710 * include/std/thread (thread(const thread&&)): Add deleted
2712 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
2714 * doc/xml/manual/spine.xml: Update copyright years.
2715 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
2716 * doc/xml/manual/test.xml: Likewise.
2717 * doc/html/*: Regenerate.
2719 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
2721 * doc/xml/faq.xml: Update address of C++ ABI link.
2722 * doc/xml/manual/abi.xml: Ditto.
2724 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2726 Update copyright years.
2728 Copyright (C) 2017 Free Software Foundation, Inc.
2730 Copying and distribution of this file, with or without modification,
2731 are permitted in any medium without royalty provided the copyright
2732 notice and this notice are preserved.