Skip tests that are incompatible with Profile Mode
[gcc.git] / libstdc++-v3 / ChangeLog
1 2017-01-14 Jonathan Wakely <jwakely@redhat.com>
2
3 * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc:
4 Skip test when -D_GLIBCXX_PROFILE mode is included in options.
5 * testsuite/23_containers/map/modifiers/extract.cc: Likewise.
6 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
7 Likewise.
8 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
9 * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise.
10 * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise.
11 * testsuite/23_containers/set/modifiers/extract.cc: Likewise.
12 * testsuite/23_containers/unordered_map/modifiers/extract.cc:
13 Likewise.
14 * testsuite/23_containers/unordered_multimap/modifiers/extract.cc::
15 Likewise.
16 * testsuite/23_containers/unordered_multiset/modifiers/extract.cc::
17 Likewise.
18 * testsuite/23_containers/unordered_set/modifiers/extract.cc:
19 Likewise.
20 * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
21 Likewise.
22 * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise.
23 * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise.
24 * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise.
25 * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise.
26 * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise.
27 * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise.
28 * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise.
29 * testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
30 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
31 * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
32 * testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
33 * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
34 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
35
36 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
37
38 PR libstdc++/65411
39 * config/io/basic_file_stdio.cc (__basic_file<char>::close()): Don't
40 retry fclose on EINTR.
41
42 * include/profile/base.h: Remove unused header that leads to header
43 cycle in C++17 mode.
44
45 PR libstdc++/79075
46 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
47 Make _If_sv private.
48 [!_GLIBCXX_USE_CXX11_ABI] (basic_string): Add member functions taking
49 basic_string_view arguments.
50
51 PR libstdc++/79075
52 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Remove
53 redundant option from cxxflags.
54 (check_effective_target_cxx11-abi): Define.
55 * testsuite/21_strings/basic_string/allocator/71964.cc: Use cxx11-abi
56 effective target.
57 * testsuite/21_strings/basic_string/allocator/char/copy.cc: Likewise.
58 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
59 Likewise.
60 * testsuite/21_strings/basic_string/allocator/char/minimal.cc:
61 Likewise.
62 * testsuite/21_strings/basic_string/allocator/char/move.cc: Likewise.
63 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
64 Likewise.
65 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc:
66 Likewise.
67 * testsuite/21_strings/basic_string/allocator/char/swap.cc: Likewise.
68 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc:
69 Likewise.
70 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
71 Likewise.
72 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
73 Likewise.
74 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc:
75 Likewise.
76 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
77 Likewise.
78 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc:
79 Likewise.
80 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc:
81 Likewise.
82 * testsuite/23_containers/list/61347.cc: Likewise.
83 * testsuite/27_io/basic_fstream/cons/base.cc: Likewise.
84 * testsuite/27_io/ios_base/failure/cxx11.cc: Likewise.
85
86 2017-01-13 Ville Voutilainen <ville.voutilainen@gmail.com>
87
88 PR libstdc++/78389
89 * include/bits/list.tcc (merge(list&&)):
90 Adjust list sizes if the comparator throws.
91 (merge(list&&, _StrictWeakOrdering)): Likewise.
92 (sort()): Splice elements back from the scratch buffers
93 if the comparator throws.
94 (sort(_StrictWeakOrdering)): Likewise.
95 * testsuite/23_containers/list/operations/78389.cc: New.
96
97 2017-01-13 Jonathan Wakely <jwakely@redhat.com>
98
99 * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Mark
100 XFAIL for C++17 until node reinsertion supports fancy pointers.
101
102 PR libstdc++/78361
103 * testsuite/20_util/add_pointer/value.cc: Test forming function
104 pointers.
105
106 2017-01-13 Michael Brune <lucdanton@free.fr>
107
108 PR libstdc++/78361
109 * include/std/type_traits (__is_referenceable): Handle noexcept
110 function types.
111
112 2017-01-12 Jonathan Wakely <jwakely@redhat.com>
113
114 PR libstdc++/77528
115 * include/bits/stl_queue.h (queue, priority_queue): Remove default
116 member-initializers and define default constructors as templates with
117 constraints.
118 * include/bits/stl_stack.h (stack): Likewise.
119 * testsuite/23_containers/priority_queue/requirements/constructible.cc:
120 New.
121 * testsuite/23_containers/priority_queue/requirements/
122 explicit_instantiation/1.cc: Test more instantiations.
123 * testsuite/23_containers/priority_queue/requirements/
124 explicit_instantiation/1_c++98.cc: Likewise.
125 * testsuite/23_containers/queue/requirements/constructible.cc: New.
126 * testsuite/23_containers/stack/requirements/constructible.cc: New.
127
128 PR libstdc++/66284
129 * doc/xml/manual/intro.xml: Document LWG 2781 change.
130 * doc/html/*: Regenerate.
131 * include/std/functional (_Function_base::_Ref_manager): Remove.
132 (_Function_handler): Remove partial specializations for
133 reference_wrapper.
134 (function::target): Remove special case for const qualification.
135 * testsuite/20_util/function/6.cc: Adjust tests for target type.
136 * testsuite/20_util/function/7.cc: Likewise.
137 * testsuite/20_util/function/8.cc: Likewise.
138
139 2017-01-11 Jonathan Wakely <jwakely@redhat.com>
140
141 PR libstdc++/78134
142 * include/bits/stl_map.h (map::lower_bound, map::upper_bound)
143 (map::equal_range): Fix return type of heterogeneous overloads.
144 * include/bits/stl_multimap.h (multimap::lower_bound)
145 (multimap::upper_bound, multimap::equal_range): Likewise.
146 * include/bits/stl_multiset.h (multiset::lower_bound)
147 (multiset::upper_bound, multiset::equal_range): Likewise.
148 * include/bits/stl_set.h (set::lower_bound, set::upper_bound)
149 (set::equal_range): Likewise.
150 * testsuite/23_containers/map/operations/2.cc
151 * testsuite/23_containers/multimap/operations/2.cc
152 * testsuite/23_containers/multiset/operations/2.cc
153 * testsuite/23_containers/set/operations/2.cc
154
155 PR libstdc++/78273
156 * include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
157 the heterogeneous comparison can only find one match.
158 * include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
159 * testsuite/23_containers/map/operations/2.cc: Test count works with
160 comparison function that just partitions rather than sorting.
161 * testsuite/23_containers/set/operations/2.cc: Likewise.
162
163 2017-01-11 Ville Voutilainen <ville.voutilainen@gmail.com>
164
165 Reduce the size of variant, it doesn't need an index of
166 type size_t internally.
167 * include/std/variant (parse_numbers.h): New include.
168 (__select_index): New.
169 (_Variant_storage<false, _Types...>::_M_reset_impl): Use
170 _index_type for comparison with variant_npos.
171 (_Variant_storage<false, _Types...>::__index_type): New.
172 (_Variant_storage<false, _Types...>::_M_index): Change the
173 type from size_t to __index_type.
174 (_Variant_storage<true, _Types...>::__index_type): New.
175 (_Variant_storage<true, _Types...>::_M_index): Change the
176 type from size_t to __index_type.
177 (_Variant_base::_M_valid): Use _Storage::__index_type
178 for comparison with variant_npos.
179 (variant::index): Use _Base::_Storage::__index_type
180 for comparison with variant_npos.
181 * testsuite/20_util/variant/index_type.cc: New.
182
183 2017-01-10 Jonathan Wakely <jwakely@redhat.com>
184
185 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
186 effective target selector to prevent running in C++17 mode.
187
188 PR libstdc++/77528
189 * include/bits/stl_queue.h (queue::c): Add default member initializer.
190 (queue::queue()): Add constructor and define as defaulted.
191 (queue::queue(_Sequence&&)): Remove default argument.
192 (priority_queue::c, priority_queue::comp): Add default member
193 initializers.
194 (priority_queue::priority_queue()): Add constructor and define as
195 defaulted.
196 (priority_queue::priority_queue(const _Compare&, _Sequence&&)):
197 Remove default argument for first parameter.
198 * include/bits/stl_stack.h (stack::c): Add default member initializer.
199 (stack::stack()): Add constructor and define as defaulted.
200 (stack::stack(const _Sequence&)): Remove default argument.
201 * testsuite/23_containers/priority_queue/requirements/
202 explicit_instantiation/1.cc: Test explicit instantiation with
203 non-DefaultConstructible sequence.
204 * testsuite/23_containers/priority_queue/77528.cc: New test.
205 * testsuite/23_containers/priority_queue/requirements/
206 explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
207 * testsuite/23_containers/queue/77528.cc: New test.
208 * testsuite/23_containers/queue/requirements/explicit_instantiation/
209 1.cc: Test explicit instantiation with non-DefaultConstructible
210 sequence.
211 * testsuite/23_containers/queue/requirements/explicit_instantiation/
212 1_c++0x.cc: Replace with 1_c++98.cc.
213 * testsuite/23_containers/stack/77528.cc: New test.
214 * testsuite/23_containers/stack/requirements/explicit_instantiation/
215 1.cc: Test explicit instantiation with non-DefaultConstructible
216 sequence.
217 * testsuite/23_containers/stack/requirements/explicit_instantiation/
218 1_c++0x.cc: Replace with 1_c++98.cc.
219
220 2017-01-10 Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
221
222 * include/bits/locale_facets_nonio.tcc
223 (time_get::_M_extract_via_format): Avoid compilation errors with
224 non-standard struct tm.
225
226 2017-01-10 François Dumont <fdumont@gcc.gnu.org>
227 Jonathan Wakely <jwakely@redhat.com>
228
229 * python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
230 (is_specialization, strip_versioned_namespace): New helpers functions
231 to work with symbols in the versioned namespace.
232 (Printer.add_version): Add second name using versioned namespace.
233 (add_one_template_type_printer, add_one_type_printer): Add second
234 type printers using versioned namespace.
235 (register_type_printers): Add template type printer for basic_string.
236 (build_libstdcxx_dictionary): Remove dead code.
237 * python/libstdcxx/v6/xmethods.py: Make all matchers look for
238 versioned namespace.
239 * testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
240 results.
241 * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.
242
243 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
244
245 PR libstdc++/79017
246 * acinclude.m4 (GLIBCXX_CHECK_C99_TR1): Check for llrint and llround
247 functions separately on darwin and if they're missing define
248 _GLIBCXX_NO_C99_ROUNDING_FUNCS.
249 * config.h.in: Regenerate.
250 * configure: Regenerate.
251 * include/c_global/cmath [_GLIBCXX_NO_C99_ROUNDING_FUNCS] (llrint)
252 (llrintf, llrintl, llround, llroundf, llroundl): Do not define.
253
254 * testsuite/30_threads/condition_variable/members/3.cc: Use new macro
255 to detect correct thread_local destructors.
256 * testsuite/util/testsuite_hooks.h (CORRECT_THREAD_LOCAL_DTORS):
257 Define.
258
259 2017-01-09 Jonathan Wakely <jwakely@redhat.com>
260 Aditya Kumar <hiraditya@msn.com>
261
262 PR libstdc++/66414
263 * include/bits/basic_string.tcc
264 (basic_string::find(const CharT*, size_type, size_type)): Optimize.
265
266 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
267
268 * testsuite/21_strings/basic_string/operations/find/char/6.cc: New.
269 * testsuite/21_strings/basic_string/operations/find/wchar_t/6.cc: New.
270
271 * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp:
272 Include <cassert> header.
273
274 PR libstdc++/78968
275 * crossconfig.m4: Check for __cxa_thread_atexit on *-*-freebsd*.
276 * configure: Regenerate.
277
278 2017-01-06 Barrett Adair <barrettellisadair@gmail.com>
279 Jonathan Wakely <jwakely@redhat.com>
280
281 * include/std/variant (variant, swap): Replace __and_ usage with fold
282 expressions.
283
284 2017-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
285
286 PR go/78978
287 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Remove.
288 * configure.ac: Call GCC_CHECK_ASSEMBLER_HWCAP instead of
289 GLIBCXX_CHECK_ASSEMBLER_HWCAP.
290 * fragment.am (CONFIG_CXXFLAGS): Use HWCAP_CFLAGS instead of
291 HWCAP_FLAGS.
292 * aclocal.m4: Regenerate.
293 * configure: Regenerate.
294 * Makefile.in, doc/Makefile.in, include/Makefile.in,
295 libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
296 src/Makefile.in, src/c++11/Makefile.in, src/c++98/Makefile.in,
297 src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
298
299 2017-01-06 Jonathan Wakely <jwakely@redhat.com>
300
301 * include/bits/c++config (_GLIBCXX_ASSERTIONS): Avoid redefinition.
302
303 PR libstdc++/78991
304 * include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
305 (_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
306 (_Iter_comp_to_iter, _Iter_negate): Make constructors explicit and
307 move function objects.
308 (__iter_comp_iter, __iter_comp_val, __val_comp_iter, __pred_iter)
309 (__iter_comp_val, __iter_comp_iter, __negate): Move function objects.
310 * testsuite/25_algorithms/sort/78991.cc: New test.
311
312 2017-01-05 Jonathan Wakely <jwakely@redhat.com>
313
314 * include/bits/std_function.h (function::_Signature_type): Remove.
315 (function::function(_Functor)): Adjust.
316
317 2017-01-05 Tim Shen <timshen@google.com>
318
319 PR libstdc++/78996
320 * include/std/variant (__gen_vtable_impl): rename __unused to
321 __dimensions to avoid naming conflict.
322
323 2017-01-04 Jonathan Wakely <jwakely@redhat.com>
324
325 PR libstdc++/78968
326 * config.h.in: Regenerate.
327 * configure: Likewise.
328 * configure.ac: Check for __cxa_thread_atexit.
329 * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]:
330 Don't define __cxa_thread_atexit if libc provides it.
331
332 2017-01-04 Ville Voutilainen <ville.voutilainen@gmail.com>
333
334 Implement 2801, Default-constructibility of unique_ptr.
335 * include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
336 (unique_ptr::_DeleterConstraint): Likewise.
337 (unique_ptr()): Constrain.
338 (unique_ptr(pointer)): Likewise.
339 (unique_ptr(nullptr_t)): Likewise.
340 (unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
341 (unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
342 (unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
343 (unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
344 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
345 * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
346 * testsuite/20_util/unique_ptr/cons/default.cc: New.
347 * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.
348
349 2017-01-04 Pauli Nieminen <suokkos@gmail.com>
350 Jonathan Wakely <jwakely@redhat.com>
351
352 PR libstdc++/64735
353 * acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
354 * config.h.in: Regenerate.
355 * config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
356 (GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
357 exports for exception_ptr, nested_exception, and future conditional.
358 [HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
359 exports for exception_ptr, nested_exception, and future conditional.
360 * configure: Regenerate.
361 * configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
362 * include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
363 * libsupc++/eh_atomics.h: New file for internal use only.
364 (__eh_atomic_inc, __eh_atomic_dec): New.
365 * libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
366 (exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
367 (rethrow_exception): Use eh_atomics.h reference counting helpers.
368 * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
369 * libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
370 * libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
371 * libsupc++/exception_ptr.h: Likewise.
372 * libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
373 * libsupc++/nested_exception.cc: Remove check for
374 ATOMIC_INT_LOCK_FREE.
375 * libsupc++/nested_exception.h: Likewise.
376 * src/c++11/future.cc: Likewise.
377 * testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
378 * testsuite/18_support/nested_exception/*: Likewise.
379 * testsuite/30_threads/async/*: Likewise.
380 * testsuite/30_threads/future/*: Likewise.
381 * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
382 * testsuite/30_threads/packaged_task/*: Likewise.
383 * testsuite/30_threads/promise/*: Likewise.
384 * testsuite/30_threads/shared_future/*: Likewise.
385
386 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
387
388 * doc/xml/manual/documentation_hacking.xml: sourceforge.net now
389 defaults to https; adjust reference.
390
391 2017-01-03 Jonathan Wakely <jwakely@redhat.com>
392
393 PR libstdc++/78956
394 * include/std/thread (thread(const thread&&)): Add deleted
395 constructor.
396 * testsuite/30_threads/thread/cons/lwg2097.cc: New test.
397
398 * doc/xml/manual/spine.xml: Update copyright years.
399 * doc/xml/manual/build_hacking.xml: Fix spelling of libbuilddir.
400 * doc/xml/manual/test.xml: Likewise.
401 * doc/html/*: Regenerate.
402
403 2017-01-01 Gerald Pfeifer <gerald@pfeifer.com>
404
405 * doc/xml/faq.xml: Update address of C++ ABI link.
406 * doc/xml/manual/abi.xml: Ditto.
407
408 2017-01-01 Jakub Jelinek <jakub@redhat.com>
409
410 Update copyright years.
411 \f
412 Copyright (C) 2017 Free Software Foundation, Inc.
413
414 Copying and distribution of this file, with or without modification,
415 are permitted in any medium without royalty provided the copyright
416 notice and this notice are preserved.