1 2018-03-14 Jonathan Wakely <jwakely@redhat.com>
4 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
5 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
6 to ensure total order for pointers.
7 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
8 Add operator() overloads for pointer arguments and make generic
9 overloads dispatch to new _S_cmp functions when comparisons would
10 use built-in operators for pointers.
11 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
13 2018-03-12 Jonathan Wakely <jwakely@redhat.com>
17 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
18 * configure: Regenerate.
19 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
20 (aligned_alloc): Add using-declaration.
21 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
23 2018-03-09 François Dumont <fdumont@gcc.gnu.org>
25 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
26 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
29 2018-03-09 Jonathan Wakely <jwakely@redhat.com>
32 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
33 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
35 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
36 src/filesystem/std-ops.cc (create_dir): Likewise.
38 2018-03-08 François Dumont <fdumont@gcc.gnu.org>
40 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
41 (StdListIteratorPrinter): Inherit from latter.
42 (StdFwdListIteratorPrinter): New, inherit from latter.
43 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
44 when iterator has no associated container.
45 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
46 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
48 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
49 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
51 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
54 * include/std/optional (_Optional_payload): Split into multiple
55 specializations that can handle different cases of trivial or
56 non-trivial assignment operators.
57 * testsuite/20_util/optional/84601.cc: New.
58 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
60 2018-03-02 Jonathan Wakely <jwakely@redhat.com>
63 * include/bits/parse_numbers.h (_Number_help): Add partial
64 specialization to handle digit separators. Adjust partial
65 specialization for recursion temrination to require _Pow == 1ULL.
66 * testsuite/20_util/duration/literals/84671.cc: New
68 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
70 Implement the missing bits of LWG 2769
71 * include/std/any (any_cast(const any&)): Add static_assert.
72 (any_cast(any&)): Likewise.
73 (any_cast(any&&)): Likewise, and remove the handling
74 for copyable-but-not-movable type.
75 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
76 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
79 2018-02-23 Jonathan Wakely <jwakely@redhat.com>
82 * include/std/thread (thread::__make_invoker): Construct tuple
83 directly instead of using make_tuple.
84 * testsuite/30_threads/async/84532.cc: New.
85 * testsuite/30_threads/thread/84532.cc: New.
87 2018-02-20 François Dumont <fdumont@gcc.gnu.org>
89 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
90 (template<> __aligned_buffer): Define as __aligned_membuf alias.
92 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
95 * configure: Regenerate.
97 2018-02-15 Jonathan Wakely <jwakely@redhat.com>
100 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
101 * configure: Regenerate.
102 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
104 * include/Makefile.in: Regenerate.
106 2018-01-29 Jonathan Wakely <jwakely@redhat.com>
109 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
110 Add -ffloat-store to options for m68k and ia32.
112 * doc/xml/faq.xml: Update copyright years.
113 * doc/html/*: Regenerate.
116 * include/std/any (any::__do_emplace): Only set _M_manager after
117 constructing the contained object.
118 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
119 * testsuite/20_util/any/modifiers/83658.cc: New test.
121 2018-01-25 Jonathan Wakely <jwakely@redhat.com>
124 * include/c_global/cstddef (__byte_operand): Define primary template.
125 * testsuite/18_support/byte/81076.cc: New test.
127 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
129 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
130 dg-options and dg-add-options order.
131 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
132 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
134 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
135 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
137 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
139 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
140 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
142 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
144 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
146 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
148 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
150 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
152 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
154 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
156 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
157 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
158 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
159 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
160 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
161 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
162 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
163 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
164 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
166 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
168 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
170 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
173 2018-01-18 Uros Bizjak <ubizjak@gmail.com>
175 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
176 include linux/types.h when checking linux/random.h header.
177 * config.h.in: Regenerate.
179 * src/c++11/random.cc: Conditionally include linux/types.h.
181 2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
183 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
185 2018-01-16 Jonathan Wakely <jwakely@redhat.com>
188 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
189 pattern with exact match for std::cerr.
191 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
194 * include/bits/random.h (chi_squared_distribution::param): Update
195 gamma distribution parameter.
196 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
200 * include/std/type_traits (has_unique_object_representations_v): Add
202 * testsuite/20_util/has_unique_object_representations/value.cc: Check
205 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
207 Make optional conditionally
208 trivially_{copy,move}_{constructible,assignable}
209 * include/std/optional (_Optional_payload): Fix the comment in
210 the class head and turn into a primary and one specialization.
211 (_Optional_payload::_M_engaged): Strike the NSDMI.
212 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
214 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
216 (_Optional_payload<_Tp, false>::_M_get): Likewise.
217 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
218 (_Optional_base_impl): Likewise.
219 (_Optional_base): Turn into a primary and three specializations.
220 (optional(nullopt)): Change the base init.
221 * testsuite/20_util/optional/assignment/8.cc: New.
222 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
223 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
225 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
228 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
229 (get_template_arg_list): New.
230 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
232 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
233 of strings and regular expressions.
234 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
235 (FilteringTypePrinter): Add docstring. Match using startswith. Use
236 strip_inline_namespaces instead of strip_versioned_namespace.
237 (add_one_type_printer): Prepend namespace to match argument.
238 (register_type_printers): Add type printers for char16_t and char32_t
239 string types and for types using cxx11 ABI. Update calls to
240 add_one_template_type_printer to provide default argument dicts.
241 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
242 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
243 basic_string<unsigned char> and basic_string<signed char>.
244 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
245 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
247 2018-01-14 Andreas Schwab <schwab@linux-m68k.org>
250 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
252 2018-01-13 Tim Shen <timshen@google.com>
255 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
256 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
257 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
259 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
262 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
263 Remove dg-xfail-run-if.
265 2018-01-10 François Dumont <fdumont@gcc.gnu.org>
267 * include/bits/forward_list.h
268 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
269 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
270 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
271 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
272 (_Fwd_list_impl()): Add noexcept qualification.
273 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
274 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
275 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
276 (_Fwd_list_base()): Default.
277 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
278 (_Fwd_list_base(_Fwd_list_base&&)): Default.
279 (forward_list<>()): Default.
280 (forward_list<>(forward_list&&)): Default.
281 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
282 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
283 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
284 * include/bits/forward_list.tcc
285 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
286 _M_impl._M_head move assignment.
287 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
288 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
290 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
293 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
294 (UniquePointerPrinter): Print correct template argument, not type of
296 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
298 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
300 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
301 weak_ptr of array types.
303 2018-01-09 François Dumont <fdumont@gcc.gnu.org>
306 * include/bits/hashtable_policy.h
307 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
309 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
310 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
311 Add false_type parameter.
312 (_Insert_base::insert): Adapt.
313 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
315 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
316 Add __n_elt parameter, defaulted to 1.
317 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
318 policy _M_need_rehash.
319 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
320 produce only 1 rehash if necessary.
321 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
322 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
324 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
325 Jonathan Wakely <jwakely@redhat.com>
327 PR libstdc++/59253 (partial)
328 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
329 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
330 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
332 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
333 of unique_ptr printer.
334 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
335 output of shared_ptr printer.
337 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
340 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
341 unnecessary symlink_status call.
342 (remove_all(const path&, error_code&)): Use filesystem::remove.
343 * src/filesystem/std-ops.cc: Likewise.
346 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
350 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
351 report an error for ENOENT.
352 (remove_all(const path&)): Fix type of result variable.
353 (remove_all(const path&, error_code&)): Use non-throwing increment
354 for directory iterator. Call POSIX remove directly to avoid redundant
355 calls to symlink_status. Do not report errors for ENOENT.
356 * src/filesystem/std-ops.cc: Likewise.
357 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
359 * testsuite/experimental/filesystem/operations/remove_all.cc:
362 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
365 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
366 redundant call to ec.clear().
367 (remove_all(const path&, error_code&))): Do not return an error for
369 * src/filesystem/std-ops.cc: Likewise.
370 * testsuite/27_io/filesystem/operations/remove.cc: New test.
371 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
372 results for non-existent paths.
373 * testsuite/experimental/filesystem/operations/remove.cc: New test.
374 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
375 expected results for non-existent paths.
377 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
378 check status_known once.
379 * include/experimental/bits/fs_ops.h: Likewise.
382 * include/std/functional (__is_byte_like): New trait.
383 (__is_std_equal_to): Remove.
384 (__boyer_moore_base_t): Use __is_byte_like instead of
386 * include/experimental/functional (__is_std_equal_to): Remove.
387 (__boyer_moore_base_t): Use __is_byte_like instead of
389 * testsuite/20_util/function_objects/83607.cc: New test.
391 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
393 Protect optional's deduction guide with the feature macro
394 * include/std/optional: Use the feature macro.
396 2018-01-03 Jakub Jelinek <jakub@redhat.com>
398 Update copyright years.
400 Copyright (C) 2018 Free Software Foundation, Inc.
402 Copying and distribution of this file, with or without modification,
403 are permitted in any medium without royalty provided the copyright
404 notice and this notice are preserved.