]>
Commit | Line | Data |
---|---|---|
5c70715f | 1 | 2019-06-03 Jonathan Wakely <jwakely@redhat.com> |
2 | ||
2b018df4 | 3 | * doc/xml/manual/status_cxx2020.xml: Add missing row for P0920R2. |
4 | Fix bgcolor for P0340R3. | |
5 | * doc/html/*: Regenerate. | |
6 | ||
fbf62452 | 7 | PR libstdc++/90686 |
8 | * doc/xml/manual/status_cxx2014.xml: Document what's missing from | |
9 | <experimental/memory_resource>. | |
10 | * doc/xml/manual/status_cxx2020.xml: Document status of P1285R0, | |
11 | P0339R6, P0340R3, P1164R1 and P1357R1. | |
12 | * doc/html/*: Regenerate. | |
13 | ||
5c70715f | 14 | * doc/xml/manual/status_cxx2020.xml: Document P1463R1 status. |
15 | * include/bits/forward_list.h [__cplusplus > 201703]: Enable | |
16 | allocator::value_type assertion for C++2a. | |
17 | * include/bits/hashtable.h: Likewise. | |
18 | * include/bits/stl_deque.h: Likewise. | |
19 | * include/bits/stl_list.h: Likewise. | |
20 | * include/bits/stl_map.h: Likewise. | |
21 | * include/bits/stl_multimap.h: Likewise. | |
22 | * include/bits/stl_multiset.h: Likewise. | |
23 | * include/bits/stl_set.h: Likewise. | |
24 | * include/bits/stl_vector.h: Likewise. | |
25 | * testsuite/23_containers/deque/48101-3_neg.cc: New test. | |
26 | * testsuite/23_containers/forward_list/48101-3_neg.cc: New test. | |
27 | * testsuite/23_containers/list/48101-3_neg.cc: New test. | |
28 | * testsuite/23_containers/map/48101-3_neg.cc: New test. | |
29 | * testsuite/23_containers/multimap/48101-3_neg.cc: New test. | |
30 | * testsuite/23_containers/multiset/48101-3_neg.cc: New test. | |
31 | * testsuite/23_containers/set/48101-3_neg.cc: New test. | |
32 | * testsuite/23_containers/unordered_map/48101-3_neg.cc: New test. | |
33 | * testsuite/23_containers/unordered_multimap/48101-3_neg.cc: New test. | |
34 | * testsuite/23_containers/unordered_multiset/48101-3_neg.cc: New test. | |
35 | * testsuite/23_containers/unordered_set/48101-3_neg.cc: New test. | |
36 | * testsuite/23_containers/vector/48101-3_neg.cc: New test. | |
37 | ||
3e2001db | 38 | 2019-05-31 Gerald Pfeifer <gerald@pfeifer.com> |
39 | ||
40 | * doc/xml/manual/allocator.xml: Move hoard.org back to http. | |
41 | ||
065a9dd4 | 42 | 2019-05-31 Jonathan Wakely <jwakely@redhat.com> |
43 | ||
44 | * include/std/tuple (tuple<>): Add noexcept to allocator-extended | |
45 | constructors. | |
46 | (tuple<T1, T2>::__nothrow_default_constructible()): New helper | |
47 | function. | |
48 | (tuple<T1, T2>::tuple(), explicit tuple<T1, T2>::tuple()): Use helper. | |
49 | ||
1ff189c5 | 50 | 2019-05-31 Jonathan Wakely <jwakely@redhat.com> |
51 | ||
698373bc | 52 | * src/c++98/bitmap_allocator.cc: Add using-declaration for size_t. |
53 | ||
b74a9c1a | 54 | PR libstdc++/90682 |
55 | * libsupc++/eh_term_handler.cc: Include eh_term_handler.h to get | |
56 | definition of _GLIBCXX_DEFAULT_TERM_HANDLER. | |
57 | * libsupc++/eh_term_handler.h: New header defining | |
58 | _GLIBCXX_DEFAULT_TERM_HANDLER. | |
59 | * libsupc++/eh_terminate.cc: Include eh_term_handler.h. | |
60 | (set_terminate): Restore default handler when argument is null. | |
61 | (set_unexpected): Likewise. | |
62 | * testsuite/18_support/set_terminate.cc: New test. | |
63 | * testsuite/18_support/set_unexpected.cc: New test. | |
64 | ||
1ff189c5 | 65 | * include/backward/hashtable.h (size_t, ptrdiff_t) |
66 | (forward_iterator_tag, input_iterator_tag, _Construct, _Destroy) | |
67 | (distance, vector, pair, __iterator_category): Remove | |
68 | using-declarations that add these names to namespace __gnu_cxx. | |
69 | * include/ext/bitmap_allocator.h (size_t, ptrdiff_t): Likewise. | |
70 | * include/ext/debug_allocator.h (size_t): Likewise. | |
71 | * include/ext/functional (size_t, unary_function, binary_function) | |
72 | (mem_fun1_t, const_mem_fun1_t, mem_fun1_ref_t, const_mem_fun1_ref_t): | |
73 | Likewise. | |
74 | * include/ext/malloc_allocator.h (size_t, ptrdiff_t): Likewise. | |
75 | * include/ext/memory (ptrdiff_t, pair, __iterator_category): Likewise. | |
76 | * include/ext/mt_allocator.h (size_t, ptrdiff_t): Likewise. | |
77 | * include/ext/new_allocator.h (size_t, ptrdiff_t): Likewise. | |
78 | * include/ext/numeric (iota): Fix outdated comment. | |
79 | * include/ext/pool_allocator.h (size_t, ptrdiff_t): Likewise. | |
80 | * include/ext/rb_tree (_Rb_tree, allocator): Likewise. | |
81 | * include/ext/rope (size_t, ptrdiff_t, allocator, _Destroy): Likewise. | |
82 | * include/ext/ropeimpl.h (size_t, printf, basic_ostream) | |
83 | (__throw_length_error, _Destroy, std::__uninitialized_fill_n_a): | |
84 | Likewise. | |
85 | * include/ext/slist (size_t, ptrdiff_t, _Construct, _Destroy) | |
86 | (allocator, __true_type, __false_type): Likewise. | |
87 | ||
c12402f6 | 88 | 2019-05-31 Antony Polukhin <antoshkka@gmail.com> |
89 | ||
90 | PR libstdc++/71579 | |
91 | * include/std/type_traits __type_identity, __is_complete_or_unbounded): | |
92 | New helpers for checking preconditions in traits. | |
93 | (is_trivial, is_trivially_copyable, is_standard_layout, is_pod) | |
94 | (is_literal_type, is_empty, is_polymorphic, is_final, is_abstract) | |
95 | (is_destructible, is_nothrow_destructible, is_constructible) | |
96 | (is_default_constructible, is_copy_constructible) | |
97 | (is_move_constructible, is_nothrow_default_constructible) | |
98 | (is_nothrow_constructible, is_nothrow_copy_constructible) | |
99 | (is_nothrow_move_constructible, is_copy_assignable, is_move_assignable) | |
100 | (is_nothrow_assignable, is_nothrow_copy_assignable) | |
101 | (is_nothrow_move_assignable, is_trivially_constructible) | |
102 | (is_trivially_copy_constructible, is_trivially_move_constructible) | |
103 | is_trivially_assignable, is_trivially_copy_assignable) | |
104 | (is_trivially_move_assignable, is_trivially_destructible) | |
105 | (alignment_of, is_swappable, is_nothrow_swappable, is_invocable) | |
106 | (is_invocable_r, is_nothrow_invocable) | |
107 | (has_unique_object_representations, is_aggregate): Add static_asserts | |
108 | to make sure that type traits are not misused with incomplete types. | |
109 | (__is_constructible_impl, __is_nothrow_default_constructible_impl) | |
110 | (__is_nothrow_constructible_impl, __is_nothrow_assignable_impl): New | |
111 | base characteristics without assertions that can be reused in other | |
112 | traits. | |
113 | * testsuite/20_util/is_complete_or_unbounded/memoization.cc: New test. | |
114 | * testsuite/20_util/is_complete_or_unbounded/memoization_neg.cc: New | |
115 | test. | |
116 | * testsuite/20_util/is_complete_or_unbounded/value.cc: New test. | |
117 | * testsuite/20_util/is_abstract/incomplete_neg.cc: New test. | |
118 | * testsuite/20_util/is_aggregate/incomplete_neg.cc: New test. | |
119 | * testsuite/20_util/is_class/value.cc: Check incomplete type. | |
120 | * testsuite/20_util/is_function/value.cc: Likewise. | |
121 | * testsuite/20_util/is_move_constructible/incomplete_neg.cc: New test. | |
122 | * testsuite/20_util/is_nothrow_move_assignable/incomplete_neg.cc: New | |
123 | test. | |
124 | * testsuite/20_util/is_polymorphic/incomplete_neg.cc: New test. | |
125 | * testsuite/20_util/is_reference/value.cc: Check incomplete types. | |
126 | * testsuite/20_util/is_unbounded_array/value.cc: Likewise. | |
127 | * testsuite/20_util/is_union/value.cc: Likewise. | |
128 | * testsuite/20_util/is_void/value.cc: Likewise. | |
129 | * testsuite/util/testsuite_tr1.h: Add incomplete union type. | |
130 | ||
84121f8a | 131 | 2019-05-31 Jonathan Wakely <jwakely@redhat.com> |
132 | ||
133 | * include/bits/random.h (random_device::_M_init(const char*, size_t)): | |
134 | Add new private member function. | |
135 | * src/c++11/cow-string-inst.cc (random_device::_M_init(const string&)) | |
136 | (random_device::_M_init_pretr1(const string&)): Call new private | |
137 | member with string data. | |
138 | * src/c++11/random.cc (random_device::_M_init(const char*, size_t)): | |
139 | Define. | |
140 | * testsuite/26_numerics/random/random_device/cons/default-cow.cc: New | |
141 | test using COW strings. | |
142 | * testsuite/26_numerics/random/random_device/cons/default.cc: Generate | |
143 | a value from the device. | |
144 | * testsuite/26_numerics/random/random_device/cons/token.cc: Likewise. | |
145 | Fix typo in token string. | |
146 | ||
01cad9ee | 147 | 2019-05-30 Nina Dinka Ranns <dinka.ranns@gmail.com> |
148 | ||
149 | LWG2788 basic_string spurious use of a default constructible allocator | |
150 | * include/bits/basic_string.tcc [_GLIBCXX_USE_CXX11_ABI] | |
151 | (basic_string::_M_replace_dispatch): Construct temporary string with | |
152 | the current allocator. | |
153 | * testsuite/21_strings/basic_string/allocator/char/lwg2788.cc: New. | |
154 | * testsuite/21_strings/basic_string/allocator/wchar_t/lwg2788.cc: New. | |
155 | ||
aa4108cd | 156 | 2019-05-30 Jonathan Wakely <jwakely@redhat.com> |
157 | ||
d1e7b14b | 158 | * doc/xml/manual/diagnostics.xml: Update list of headers that define |
159 | exception classes. | |
160 | * doc/xml/manual/support.xml: Rewrite advice around NULL. Rewrite | |
161 | section about new/delete overloads. Improve section on verbose | |
162 | terminate handler. | |
163 | * doc/html/*: Regenerate. | |
164 | ||
2a9eab7c | 165 | * doc/xml/manual/status_cxx2020.xml: Add feature-test macro for |
166 | P0811R3. Change status of P1353R0. | |
167 | * doc/html/*: Regenerate. | |
168 | ||
aa4108cd | 169 | * doc/xml/manual/status_cxx2011.xml: Use <variablelist> for |
170 | documentation of implementation-defined types for [thread.req.native]. | |
171 | * doc/xml/manual/status_cxx2017.xml: Update documentation of | |
172 | implementation-defined strings for [variant.bad.access]. Fix typo in | |
173 | documentation of implementation-defined support for [fs.conform.9945]. | |
174 | * doc/html/*: Regenerate. | |
175 | ||
91df033f | 176 | 2019-05-29 Jonathan Wakely <jwakely@redhat.com> |
177 | ||
745ff931 | 178 | PR libstdc++/85494 |
179 | * testsuite/26_numerics/random/random_device/cons/token.cc: Fix test | |
180 | that fails on mingw-w64. | |
181 | ||
34bfd0d6 | 182 | PR libstdc++/88881 |
183 | * src/c++17/fs_ops.cc [_GLIBCXX_FILESYSTEM_IS_WINDOWS] | |
184 | (status(const path&, error_code&)): Use parent_path() to remove | |
185 | trailing slash. | |
186 | (symlink_status(const path&, error_code&)): Duplicate workaround for | |
187 | bug in _wstat for paths with trailing slash. | |
188 | * testsuite/27_io/filesystem/operations/remove_all.cc: Check path | |
189 | with trailing slash. | |
190 | * testsuite/27_io/filesystem/operations/status.cc: Likewise. | |
191 | * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise. | |
192 | ||
5e115b34 | 193 | * src/c++17/fs_path.cc (path::parent_path()): Create whole path at |
194 | once instead of building it iteratively. | |
195 | ||
913f5ef9 | 196 | * testsuite/util/testsuite_api.h: Remove names of unused parameters. |
197 | ||
91df033f | 198 | PR libstdc++/85494 use rdseed and rand_s in std::random_device |
199 | * acinclude.m4 (GLIBCXX_CHECK_X86_RDSEED): Define macro to check if | |
200 | the assembler supports rdseed. | |
201 | * config.h.in: Regenerate. | |
202 | * configure: Regenerate. | |
203 | * configure.ac: Use GLIBCXX_CHECK_X86_RDSEED. | |
204 | * config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_CRT_RAND_S): Define. | |
205 | * doc/html/*: Regenerate. | |
206 | * doc/xml/manual/status_cxx2011.xml: Document new tokens. | |
207 | * include/bits/random.h (random_device::random_device()): Always call | |
208 | _M_init rather than _M_init_pretr1. | |
209 | (random_device::random_device(const string&)): Likewise. | |
210 | (random_device::operator()()): Always call _M_getval(). | |
211 | (random_device::_M_file): Replace first member of union with an | |
212 | anonymous struct, with _M_file as its first member. | |
213 | * src/c++11/random.cc [_GLIBCXX_X86_RDRAND] (USE_RDRAND): Define. | |
214 | [_GLIBCXX_X86_RDSEED] (USE_RDSEED): Define. | |
215 | (USE_MT19937): Define if none of the above are defined. | |
216 | (USE_POSIX_FILE_IO): Define. | |
217 | (_M_strtoul): Remove. | |
218 | [USE_RDSEED] (__x86_rdseed): Define new function. | |
219 | [_GLIBCXX_USE_CRT_RAND_S] (__winxp_rand_s): Define new function. | |
220 | (random_device::_M_init(const string&)): Initialize new union members. | |
221 | Add support for "rdseed" and "rand_s" tokens. Decide what the | |
222 | "default" token does according to which USE_* macros are defined. | |
223 | [USE_POSIX_FILE_IO]: Store a file descriptor. | |
224 | [USE_MT19937]: Forward to _M_init_pretr1 instead. | |
225 | (random_device::_M_init_pretr1(const string&)) [USE_MT19937]: Inline | |
226 | code from _M_strtoul. | |
227 | [!USE_MT19937]: Call _M_init, transforming the old default token or | |
228 | numeric tokens to "default". | |
229 | (random_device::_M_fini()) [USE_POSIX_FILE_IO]: Use close not fclose. | |
230 | (random_device::_M_getval()): Use new union members to obtain a | |
231 | random number from the stored function pointer or file descriptor. | |
232 | [USE_MT19937]: Obtain a value from the mt19937 engine. | |
233 | (random_device::_M_getval_pretr1()): Call _M_getval(). | |
234 | (random_device::_M_getentropy()) [USE_POSIX_FILE_IO]: Use _M_fd | |
235 | instead of fileno. | |
236 | [!USE_MT19937] (mersenne_twister): Do not instantiate when not needed. | |
237 | * testsuite/26_numerics/random/random_device/85494.cc: New test. | |
238 | ||
88c39923 | 239 | 2019-05-28 Jonathan Wakely <jwakely@redhat.com> |
240 | ||
28d9dbe9 | 241 | PR libstdc++/90634 |
242 | * include/experimental/bits/fs_path.h (path::path(path&&)): Only call | |
243 | _M_split_cmpts() for a path with multiple components. | |
244 | (path::_S_is_dir_sep()): Add missing 'static' keyword to function. | |
245 | * src/filesystem/path.cc (path::_M_split_cmpts()): Count number of | |
246 | components and reserve space in vector. Return early when there is | |
247 | only one component. | |
248 | * testsuite/27_io/filesystem/path/construct/90634.cc: New test. | |
249 | * testsuite/experimental/filesystem/path/construct/90634.cc: New test. | |
250 | ||
88c39923 | 251 | * testsuite/util/testsuite_fs.h (compare_paths): Use three-argument |
252 | form of std::equals for C++11 compatibility. | |
253 | ||
ba475497 | 254 | 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com> |
255 | ||
256 | * doc/xml/manual/appendix_contributing.xml: Update pointer to | |
257 | C++ standard at ansi.org. | |
258 | ||
6c35f2e2 | 259 | 2019-05-24 Jonathan Wakely <jwakely@redhat.com> |
260 | ||
62ff07d4 | 261 | * include/std/numeric (midpoint(T*, T*)): Fix incorrect result. |
262 | * testsuite/26_numerics/midpoint/pointer.cc: Change "compile" test | |
263 | to "run". | |
264 | ||
6c35f2e2 | 265 | * testsuite/20_util/shared_ptr/cons/alias-rval.cc: Fix test. |
266 | * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused function. | |
267 | ||
e0a966c0 | 268 | 2019-05-23 Jonathan Wakely <jwakely@redhat.com> |
269 | ||
2b16b231 | 270 | * testsuite/20_util/function_objects/invoke/1.cc: Move C++17-specific |
271 | tests to ... | |
272 | * testsuite/20_util/function_objects/invoke/3.cc: New test. | |
273 | * testsuite/23_containers/unordered_set/allocator/ext_ptr.cc: Change | |
274 | "compile" test to "run". | |
275 | ||
a00d36cd | 276 | * doc/xml/manual/intro.xml: Document LWG DR 2996 change. |
277 | * doc/html/*: Regenerate. | |
278 | * include/bits/shared_ptr.h (shared_ptr(shared_ptr&&, T*)): Add | |
279 | rvalue aliasing constructor. | |
280 | (static_pointer_cast, const_pointer, dynamic_pointer_cast) | |
281 | (reinterpret_pointer_cast): Add overloads taking rvalues. | |
282 | * include/bits/shared_ptr_base.h (__shared_ptr(__shared_ptr&&, T*)): | |
283 | Add rvalue aliasing constructor. | |
284 | * testsuite/20_util/shared_ptr/casts/1.cc: Change "compile" test to | |
285 | "run" and check return values as well as types. | |
286 | * testsuite/20_util/shared_ptr/casts/reinterpret.cc: Likewise. | |
287 | * testsuite/20_util/shared_ptr/casts/rval.cc: New test. | |
288 | * testsuite/20_util/shared_ptr/cons/alias-rval.cc: New test. | |
289 | * testsuite/20_util/shared_ptr/cons/alias.cc: Remove unused return | |
290 | values. | |
291 | ||
e0a966c0 | 292 | * doc/xml/manual/evolution.xml: Document LWG DR 2921 change. |
293 | * doc/xml/manual/intro.xml: Likewise. | |
294 | * include/std/future (__create_task_state): Add default arguments | |
295 | to make providing an allocator optional. | |
296 | (packaged_task::packaged_task(F&&)): Call __create_task_state directly | |
297 | instead of delegating to another constructor. | |
298 | (packaged_task::packaged_task(allocator_arg_t, const A&, ...)): Do not | |
299 | define allocator-extended constructors for C++17 and later. | |
300 | * testsuite/30_threads/packaged_task/cons/alloc.cc: Only run test for | |
301 | C++11 and C++14. | |
302 | * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise. | |
303 | * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise. | |
304 | * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise. | |
305 | ||
8e2a1096 | 306 | 2019-05-23 Hans-Peter Nilsson <hp@axis.com> |
307 | ||
308 | * testsuite/26_numerics/random/poisson_distribution/operators/values.cc: | |
309 | Don't run the libstdc++/83237 part on simulator targets. | |
310 | ||
1db1e5cc | 311 | 2019-05-23 Jonathan Wakely <jwakely@redhat.com> |
312 | ||
01e2f379 | 313 | * doc/xml/manual/status_cxx2017.xml: Add feature test macro for |
314 | P0040R3. | |
315 | * doc/html/*: Regenerate. | |
316 | ||
683f9728 | 317 | * include/experimental/any (__any_caster): Use RTTI if comparing |
318 | addresses fails, to support non-unique addresses in shared libraries. | |
319 | * include/std/any (__any_caster): Likewise. | |
320 | ||
1db1e5cc | 321 | PR libstdc++/90220 |
322 | * include/experimental/any (__any_caster): Constrain to only be | |
323 | callable for object types. Use remove_cv_t instead of decay_t. | |
324 | If the type decays or isn't copy constructible, compare the manager | |
325 | function to a dummy specialization. | |
326 | (__any_caster): Add overload constrained for non-object types. | |
327 | (any::_Manager_internal<_Op>): Add dummy specialization. | |
328 | * testsuite/experimental/any/misc/any_cast.cc: Test function types | |
329 | and array types. | |
330 | ||
0fd64d4b | 331 | 2019-05-22 Jonathan Wakely <jwakely@redhat.com> |
332 | ||
f92c002f | 333 | PR libstdc++/90557 |
334 | * src/c++17/fs_path.cc (path::_List::operator=(const _List&)): Fix | |
335 | reversed arguments to uninitialized_copy_n. | |
336 | * testsuite/27_io/filesystem/path/assign/copy.cc: Check that source | |
337 | is unchanged by copy assignment. | |
338 | * testsuite/util/testsuite_fs.h (compare_paths): Use std::equal to | |
339 | compare path components. | |
340 | ||
0fd64d4b | 341 | PR libstdc++/77691 |
342 | * include/experimental/memory_resource: Add system header pragma and | |
343 | do not define anything unless compiled as C++14 or later. | |
344 | (__resource_adaptor_common::__guaranteed_alignment): Remove. | |
345 | (__resource_adaptor_imp::do_allocate): If the requested alignment | |
346 | is a fundamental alignment then either allocate directly from _M_alloc | |
347 | or call the new _M_allocate function. | |
348 | (__resource_adaptor_imp::do_deallocate): Likewise for deallocation. | |
349 | (__resource_adaptor_imp::_M_allocate): New function that uses a copy | |
350 | of the allocator rebound to a POD type with the specified alignment. | |
351 | (__resource_adaptor_imp::_M_deallocate): Likewise for deallocation. | |
352 | * testsuite/experimental/memory_resource/new_delete_resource.cc: | |
353 | Adjust expected allocation sizes. | |
354 | * testsuite/experimental/memory_resource/resource_adaptor.cc: Remove | |
355 | xfail for Solaris x86. | |
356 | ||
71835cce | 357 | 2019-05-21 Thomas Rodgers <trodgers@redhat.com> |
358 | ||
359 | LWG 3062 - Unnecessary decay_t in is_execution_policy_v | |
360 | * include/pstl/execution_defs.h (__enable_if_execution_policy): | |
361 | Use std::__remove_cvref_t when building with GCC. | |
362 | ||
28ceb89c | 363 | 2019-05-21 Jonathan Wakely <jwakely@redhat.com> |
364 | ||
f6baa5a2 | 365 | PR libstdc++/90252 |
366 | * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend): | |
367 | Use "additional_flags" to pass -ltbb to v3_target_compile command. | |
368 | Use check_v3_target_prop_cached to cache the result of the test. | |
369 | ||
28ceb89c | 370 | * doc/xml/manual/shared_ptr.xml: Fix names of lock policy constants. |
371 | ||
4573584f | 372 | 2019-05-20 Thomas Rodgers <trodgers@redhat.com> |
373 | ||
374 | PR libstdc++/90252 | |
375 | * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend): | |
376 | Changed v3_target_compile check from preprocess to executable. | |
377 | Added "-ltbb" to v3_target_compile flags. | |
378 | ||
c40bd82f | 379 | 2019-05-20 Thomas Rodgers <trodgers@redhat.com> |
380 | ||
381 | * testsuite/lib/libstdc++.exp (check_effective_target_tbb-backend): | |
382 | Add check for Thread Building Blocks 2018 or later. | |
383 | ||
4b6650e5 | 384 | 2019-05-20 Jonathan Wakely <jwakely@redhat.com> |
385 | ||
386 | * testsuite/experimental/names.cc: Only include Networking TS headers | |
387 | on targets with the necessary Gthreads support. | |
388 | ||
31d01c8b | 389 | 2019-05-20 Marek Polacek <polacek@redhat.com> |
390 | ||
391 | CWG 2094 - volatile scalars are trivially copyable. | |
392 | PR c++/85679 | |
393 | * testsuite/20_util/is_trivially_copyable/value.cc: Change the expected | |
394 | result for volatile int. | |
395 | ||
48328bff | 396 | 2019-05-20 Jonathan Wakely <jwakely@redhat.com> |
397 | ||
120050c3 | 398 | * testsuite/17_intro/names.cc: Do not check 'ptr' on Solaris. |
399 | * testsuite/experimental/names.cc: Include <experimental/filesystem> | |
400 | conditionally. | |
401 | ||
48328bff | 402 | PR c++/90532 Ensure __is_constructible(T[]) is false |
403 | * include/std/type_traits (__do_is_default_constructible_impl) | |
404 | (__is_default_constructible_atom, __is_default_constructible_safe): | |
405 | Remove. | |
406 | (is_default_constructible): Use is_constructible. | |
407 | * testsuite/20_util/is_constructible/value.cc: Check int[] case. | |
408 | * testsuite/20_util/is_default_constructible/value.cc: Likewise. | |
409 | * testsuite/20_util/is_trivially_constructible/value.cc: Likewise. | |
410 | * testsuite/20_util/is_trivially_default_constructible/value.cc: | |
411 | Likewise. | |
412 | ||
d07edb65 | 413 | 2019-05-20 Pádraig Brady <pbrady@fb.com> |
414 | ||
415 | * libstdc++-v3/include/ext/new_allocator.h (deallocate): Pass the size | |
416 | to the deallocator with -fsized-deallocation. | |
417 | ||
ca32b3df | 418 | 2019-05-20 Jonathan Wakely <jwakely@redhat.com> |
419 | ||
420 | * testsuite/experimental/memory_resource/new_delete_resource.cc: Fix | |
421 | test by passing correct alignment to deallocate function. | |
422 | ||
83454be6 | 423 | 2019-05-18 Jonathan Wakely <jwakely@redhat.com> |
424 | ||
425 | PR libstdc++/90520 | |
426 | * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): | |
427 | Raise exception if unique_ptr tuple member has unknown structure. | |
428 | * python/libstdcxx/v6/xmethods.py (UniquePtrGetWorker.__call__): | |
429 | Adjust worker to support new __uniq_ptr_data base class. Do not | |
430 | assume field called _M_head_impl is the first tuple element. | |
431 | ||
18788b25 | 432 | 2019-05-17 François Dumont <fdumont@gcc.gnu.org> |
433 | ||
434 | * include/bits/stl_deque.h | |
435 | (_Deque_iterator<>::__ptr_to): Remove, use std::__ptr_rebind. | |
436 | (_Deque_base(_Deque_base&&, const allocator_type&)): New. | |
437 | (_Deque_base::_Deque_impl_data): New. | |
438 | (_Deque_base::_Deque_impl): Inherit latter. | |
439 | (_Deque_base::_Deque_impl::_M_swap_data): Move... | |
440 | (_Deque_base::_Deque_impl_data::_M_swap_data): ... here. | |
441 | (_Deque_base::_Deque_impl()): Add noexcept qualification. | |
442 | (_Deque_base::_Deque_impl(_Deque_impl&&, _Tp_alloc_type&&)): New. | |
443 | (_Deque_base::_Deque_impl::_M_get_Tp_allocator()): Remove static_cast. | |
444 | (deque<>::deque()): Default. | |
445 | (deque<>::deque(deque&&)): Default. | |
446 | (deque<>::deque(deque&&, const allocator_type&, false_type)): New. | |
447 | (deque<>::deque(deque&&, const allocator_type&, true_type)): New. | |
448 | (deque<>::deque(deque&&, const allocator_type&)): Delegate to latters. | |
449 | (deque<>::deque<_It>(_It, _It, const allocator_type&)): Use | |
450 | _M_range_initialize. | |
451 | (deque<>::assign<_It>(_It, _It)): Use _M_assign_aux. | |
452 | (deque<>::resize(size_type, const value_type&)): Share a single | |
453 | implementation. | |
454 | (deque<>::insert<_It>(const_iterator, _It, _It)): Use | |
455 | _M_range_insert_aux. | |
456 | [__cplusplus >= 201103L](_M_initialize_dispatch): Remove. | |
457 | [__cplusplus >= 201103L](_M_assign_dispatch): Remove. | |
458 | [__cplusplus >= 201103L](_M_insert_dispatch): Remove. | |
459 | * testsuite/23_containers/deque/allocator/default_init.cc: New. | |
460 | ||
f02e0f08 | 461 | 2019-05-17 Jonathan Wakely <jwakely@redhat.com> |
462 | ||
9bf46b60 | 463 | PR libstdc++/90246 |
464 | * include/std/variant (holds_alternative, get, get_if): Improve | |
465 | static assertion messages. | |
466 | (bad_variant_access::bad_variant_access()): Change default message. | |
467 | (__throw_bad_variant_access(bool)): New overload. | |
468 | (get): Use new overload. | |
469 | (visit, visit<R>): Improve exception message. | |
470 | ||
ac93735b | 471 | * testsuite/20_util/variant/compile.cc: Fix narrowing test for ILP32 |
472 | targets. Add more cases from P0608R3. | |
473 | * testsuite/20_util/variant/run.cc: Add more cases from P0608R3. | |
474 | ||
8d58624a | 475 | * include/bits/random.h (seed_seq::param): Fix non-reserved name. |
476 | * include/experimental/type_traits (is_detected_exact) | |
477 | (is_detected_exact_v): Likewise. | |
478 | * include/pstl/execution_defs.h (is_execution_policy) | |
479 | (is_execution_policy_v, __enable_if_execution_policy): Likewise. | |
480 | * include/pstl/execution_impl.h (__policy_traits): Likewise. | |
481 | * testsuite/17_intro/names.cc: Check for more non-reserved names. | |
482 | * testsuite/experimental/names.cc: New test. | |
483 | ||
5d3695d0 | 484 | PR libstdc++/85965 |
485 | * include/bits/hashtable.h (_Hashtable::~_Hashtable()): Remove static | |
486 | assertions from the destructor. | |
487 | * include/bits/hashtable_policy.h (_Hash_code_base::_M_hash_code): | |
488 | Move static_assert for hash function to here. | |
489 | (_Hash_table_base::_M_equals): Move static_assert for equality | |
490 | predicate to here. | |
491 | * include/bits/stl_tree.h (_Rb_tree::_S_value(_Const_Link_type)): | |
492 | Remove. | |
493 | (_Rb_tree::_S_key(_Const_Link_type)): Move assertions here. Access | |
494 | the value directly instead of calling _S_value. | |
495 | (_Rb_tree::_S_value(_Const_Base_ptr)): Remove. | |
496 | (_Rb_tree::_S_key(_Const_Base_ptr)): Do downcast and forward to | |
497 | _S_key(_Const_Link_type). | |
498 | * testsuite/23_containers/set/85965.cc: Check construction, | |
499 | destruction, assignment and size() do not trigger the assertions. | |
500 | * testsuite/23_containers/unordered_set/85965.cc: Likewise. | |
501 | * testsuite/23_containers/map/48101_neg.cc: Call find and adjust | |
502 | expected errors. | |
503 | * testsuite/23_containers/multimap/48101_neg.cc: Likewise. | |
504 | * testsuite/23_containers/multiset/48101_neg.cc: Likewise. | |
505 | * testsuite/23_containers/set/48101_neg.cc: Likewise. | |
506 | * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise. | |
507 | * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise. | |
508 | * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise. | |
509 | * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise. | |
510 | ||
2e431291 | 511 | * include/bits/invoke.h [__cplusplus < 201703L] (__invoke_r<void>): |
512 | Use _GLIBCXX14_CONSTEXPR because void functions cannot be constexpr | |
513 | in C++11. | |
514 | ||
f02e0f08 | 515 | * doc/xml/manual/status_cxx2020.xml: Update P0608R3, P0777R1, and |
516 | P1165R1 entries. | |
517 | * doc/html/*: Regenerate. | |
518 | * include/std/tuple (make_from_tuple): Use remove_reference_t instead | |
519 | of decay_t (P0777R1). | |
520 | ||
0cde8d2e | 521 | 2019-05-17 François Dumont <fdumont@gcc.gnu.org> |
522 | ||
523 | Move from state of allocators (LWG2593) | |
524 | * include/bits/stl_deque.h | |
525 | (_Deque_base(_Deque_base&&, false_type)): Remove. | |
526 | (_Deque_base(_Deque_base&&, true_type)): Remove. | |
527 | (_Deque_base(_Deque_base&&)): Adapt. | |
528 | (_Deque_base::_M_move_impl()): Remove. | |
529 | * testsuite/util/testsuite_allocator.h | |
530 | (propagating_allocator(propagating_allocator&&)): Preserve move from | |
531 | state. | |
532 | * testsuite/23_containers/deque/allocator/move_assign.cc (test02): | |
533 | Adapt. | |
534 | * testsuite/23_containers/forward_list/allocator/move_assign.cc (test02): | |
535 | Adapt. | |
536 | * testsuite/23_containers/list/allocator/move_assign.cc (test02): Adapt. | |
537 | * testsuite/23_containers/map/allocator/move_assign.cc (test02): Adapt. | |
538 | * testsuite/23_containers/multimap/allocator/move_assign.cc (test02): | |
539 | Adapt. | |
540 | * testsuite/23_containers/multiset/allocator/move_assign.cc (test02): | |
541 | Adapt. | |
542 | * testsuite/23_containers/set/allocator/move_assign.cc (test02): Adapt. | |
543 | * testsuite/23_containers/unordered_map/allocator/move_assign.cc | |
544 | (test02): Adapt. | |
545 | * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc | |
546 | (test02): Adapt. | |
547 | * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc | |
548 | (test02): Adapt. | |
549 | * testsuite/23_containers/unordered_set/allocator/move_assign.cc | |
550 | (test02): Adapt. | |
551 | * testsuite/23_containers/vector/allocator/move_assign.cc (test02): | |
552 | Adapt. | |
553 | * testsuite/23_containers/vector/bool/allocator/move_assign.cc (test02): | |
554 | Adapt. | |
555 | * testsuite/21_strings/basic_string/allocator/char/move_assign.cc | |
556 | (test02): Adapt. | |
557 | * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc | |
558 | (test02): Adapt. | |
559 | ||
68605c77 | 560 | 2019-05-16 Jonathan Wakely <jwakely@redhat.com> |
561 | ||
4a0707ea | 562 | * src/c++17/fs_ops.cc (absolute(const path&, error_code&)) |
563 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove bogus assertion. | |
564 | ||
a8a0d164 | 565 | * include/std/variant (__overload_set): Remove. |
566 | (_Arr): New helper. | |
567 | (_Build_FUN): New class template to define a single FUN overload, | |
568 | with specializations to prevent unwanted conversions, as per P0608R3. | |
569 | (_Build_FUNs): New class template to build an overload set of FUN. | |
570 | (_FUN_type): New alias template to perform overload resolution. | |
571 | (__accepted_type): Use integer_constant base for failure case. Use | |
572 | _FUN_type for successful case. | |
573 | (variant::__accepted_index): Use _Tp instead of _Tp&&. | |
574 | (variant::variant(_Tp&&)): Likewise. | |
575 | (variant::operator=(_Tp&&)): Likewise. | |
576 | ||
facad3f4 | 577 | * include/std/variant (_Variant_storage<false, _Types...>::_M_reset): |
578 | Replace raw visitation with a runtime check for the valueless state | |
579 | and a non-raw visitor. | |
580 | (_Variant_storage<false, _Types...>::_M_reset_impl): Remove. | |
581 | (variant::index()): Remove branch. | |
582 | (variant::swap(variant&)): Use valueless_by_exception() instead of | |
583 | comparing the index to variant_npos, and add likelihood attribute. | |
584 | ||
47376ba0 | 585 | * include/bits/hashtable_policy.h (_Equal_helper): Remove. |
586 | (_Hashtable_base::_Equal_hash_code): Define new class template. | |
587 | (_Hashtable_base::_M_equals): Use _Equal_hash_code instead of | |
588 | _Equal_helper. | |
589 | ||
81262974 | 590 | * include/bits/hashtable_policy.h (_Hashtable_ebo_helper::_S_get): |
591 | Replace with _M_get non-static member function. | |
592 | (_Hashtable_ebo_helper::_S_cget): Replace with _M_cget non-static | |
593 | member function. | |
594 | (_Hash_code_base, _Local_iterator_base, _Hashtable_base): | |
595 | (_Hashtable_alloc): Adjust to use non-static members of EBO helper. | |
596 | ||
68605c77 | 597 | * include/bits/hashtable_policy.h (_Hash_code_base::_M_swap): Use |
598 | _S_get accessors for members in EBO helpers. | |
599 | (_Hash_code_base::_M_extract(), _Hash_code_base::_M_ranged_hash()) | |
600 | (_Hash_code_base::_M_h1(), _Hash_code_base::_M_h2()): Remove non-const | |
601 | overloads. | |
602 | (_Hashtable_base::_M_swap): Use _S_get accessors for members in EBO | |
603 | helpers. | |
604 | (_Hashtable_base::_M_eq()): Remove non-const overload. | |
605 | ||
970ec9ab | 606 | 2019-05-15 Jonathan Wakely <jwakely@redhat.com> |
607 | ||
608 | * include/std/variant (visit, visit<R>): Qualify calls to __do_visit. | |
609 | ||
54f34abb | 610 | 2019-05-14 Jonathan Wakely <jwakely@redhat.com> |
611 | ||
612 | * testsuite/util/testsuite_allocator.h (NullablePointer::operator bool): | |
613 | Fix return value. | |
614 | ||
0fd03648 | 615 | 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
616 | ||
617 | * config/os/solaris/solaris2.10: Move to ... | |
618 | * config/os/solaris: ... this. | |
619 | * configure.host (os_include_dir): Adapt. | |
620 | (abi_baseline_pair): Remove Solaris 10 handling. | |
621 | * config/abi/post/i386-solaris2.10: Remove. | |
622 | * config/abi/post/sparc-solaris2.10: Remove. | |
623 | * config/abi/post/i386-solaris2.11: Rename to ... | |
624 | * config/abi/post/i386-solaris: ... this. | |
625 | * config/abi/post/sparc-solaris2.11: Rename to ... | |
626 | * config/abi/post/sparc-solaris: ... this. | |
627 | ||
628 | * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] [__sun]: Remove | |
629 | workaround. | |
630 | ||
631 | * testsuite/ext/enc_filebuf/char/13598.cc: Remove *-*-solaris2.10 | |
632 | xfail. | |
633 | ||
f03f26fa | 634 | 2019-05-14 Jonathan Wakely <jwakely@redhat.com> |
635 | ||
636 | * include/std/variant (__visit_with_index): Remove typedef. | |
637 | (__deduce_visit_result): New tag type. | |
638 | (__raw_visit, __raw_idx_visit): New helper functions for "raw" | |
639 | visitation of possibly-valueless variants, forwarding to __do_visit | |
640 | with the relevant tag type. | |
641 | (_Variant_storage<false, _Types...>::_M_reset_impl): Use __raw_visit | |
642 | and make lambda return void. | |
643 | (__variant_construct): Likewise. | |
644 | (_Copy_assign_base::operator=, _Move_assign_base::operator=): Use | |
645 | __raw_idx_visit and make lambda return void. | |
646 | (_Multi_array::__untag_result): Add metafunction to check the function | |
647 | pointer type for a tag type that dictates the kind of visitation. | |
648 | (_Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...>): | |
649 | Use decltype(auto) instead of tagged function pointer type. | |
650 | (__gen_vtable_impl): Remove bool non-type parameter and unused | |
651 | _Variant_tuple parameter. | |
652 | (__gen_vtable_impl::__visit_invoke_impl): Remove. | |
653 | (__gen_vtable_impl::__do_visit_invoke): Remove. | |
654 | (__gen_vtable_impl::__do_visit_invoke_r): Remove. | |
655 | (__gen_vtable_impl::__visit_invoke): Use if-constexpr and __invoke_r | |
656 | for the visit<R> case, rather than dispatching to separate functions. | |
657 | (_VARIANT_RELATION_FUNCTION_TEMPLATE): Use __raw_idx_visit and make | |
658 | lambda return void. | |
659 | (variant::swap): Likewise. | |
660 | (__do_visit): Replace two non-type template parameters with a single | |
661 | type parameter, so that the caller must specify the visitor's return | |
662 | type (or one of the tag types). | |
663 | (visit): Deduce a return type from the visitor and use the | |
664 | __deduce_visit_result tag to enforce that all overloads return the | |
665 | same type. | |
666 | (visit<R>): Call __do_visit<R> with explicit result type. | |
667 | (__variant_hash_call_base_impl::operator()): Use __raw_visit and make | |
668 | lambda return void. | |
669 | ||
b8dcd41e | 670 | 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com> |
671 | ||
672 | nonesuch is insufficiently useless (lwg2996) | |
673 | * include/std/type_traits (struct __nonesuch): Added private base | |
674 | class to make __nonesuch not an aggregate and removed deleted default | |
675 | constructor. | |
676 | * include/bits/stl_pair.h (struct __nonesuch_no_braces): Removed. | |
677 | (operator=(const pair&)): Use __nonesuch instead of | |
678 | __nonesuch_no_braces. | |
679 | (operator=(pair&&)): Likewise | |
680 | * include/std/tuple (operator=(const tuple&)): Use __nonesuch instead | |
681 | of __nonesuch_no_braces. | |
682 | (operator=(tuple&&)): Likewise | |
683 | * include/experimental/type_traits (struct nonesuch): Added private | |
684 | base class to make nonesuch not an aggregate and removed deleted | |
685 | default constructor. | |
686 | * testsuite/20_util/nonesuch/nonesuch.cc: New. | |
687 | * testsuite/experimental/type_traits/nonesuch.cc: New. | |
688 | ||
e0bcd31d | 689 | 2019-05-14 Jonathan Wakely <jwakely@redhat.com> |
690 | ||
3ff2b640 | 691 | * include/bits/std_function.h (_Simple_type_wrapper): Remove. |
692 | (_Function_handler): Remove partial specializations for void return | |
693 | types and pointers to member. | |
694 | (_Function_handler::_M_manager): Adapt to removal of | |
695 | _Simple_type_wrapper. | |
696 | (_Function_handler::_M_invoke): Use __invoke_r instead of __invoke. | |
697 | * include/std/functional (_Bind_result::__enable_if_void) | |
698 | (_Bind_result::__disable_if_void): Remove sfinae helpers. | |
699 | (_Bind_result::__call): Use __invoke_r and remove overloads for void | |
700 | return types. | |
701 | * include/std/future (__future_base::_Task_state::_M_run) | |
702 | (__future_base::_Task_state::_M_run_delayed): Use __invoke_r and | |
703 | change return type of lambda expressions. | |
704 | ||
a858e2a4 | 705 | * include/bits/invoke.h (__invoke_r): Define new function implementing |
706 | the INVOKE<R> pseudo-function. | |
707 | * testsuite/20_util/function_objects/invoke/1.cc: Add more tests. | |
708 | * testsuite/20_util/function_objects/invoke/2.cc: New test. | |
709 | ||
2cfc6a76 | 710 | * include/std/type_traits (__is_nt_convertible_helper): Define it |
711 | unconditionally, not only for C++20. | |
712 | (__is_nothrow_convertible): Define internal trait for use in C++11. | |
713 | (__is_nt_invocable_impl: Fix by using __is_nothrow_convertible. | |
714 | (is_invocable_r_v, is_nothrow_invocable_r_v): Add missing parameter. | |
715 | * testsuite/20_util/is_nothrow_convertible/value_ext.cc: New test. | |
716 | * testsuite/20_util/is_nothrow_convertible/value.cc: Check with type | |
717 | that has nothrow explicit conversion but potentially-throwing implicit | |
718 | conversion. | |
719 | * testsuite/20_util/is_nothrow_invocable/value.cc: Likewise. | |
720 | * testsuite/20_util/is_nothrow_invocable/value_ext.cc: Fix helper | |
721 | function to only consider implicit conversions. | |
722 | * testsuite/20_util/tuple/cons/noexcept_specs.cc: Add comment. | |
723 | ||
e0d65374 | 724 | * include/std/iterator: Include <iosfwd> instead of <istream> and |
725 | <ostream>. | |
726 | ||
4a182e12 | 727 | * include/bits/stl_tree.h (_Rb_tree::erase(const Key*, const Key*)): |
728 | Remove unused, non-standard function. | |
729 | ||
d4a9b293 | 730 | * include/bits/regex.h (match_results::max_size()): Adjust return |
731 | value to account for prefix/suffix/unmatched subs. | |
732 | (match_results::_M_resize(unsigned int)): Use _Base_type::assign to | |
733 | reset the contained sub matches. | |
734 | (match_results::_M_establish_failed_match(_Bi_iter)): Add new member | |
735 | function to set result state following a failed match. | |
736 | * include/bits/regex.tcc (__regex_algo_impl): Remove loop to set | |
737 | sub_match states after _M_resize. Use _M_establish_failed_match. | |
738 | ||
e0bcd31d | 739 | PR libstdc++/69724 |
740 | * include/std/thread (thread::_State_impl, thread::_S_make_state): | |
741 | Replace single _Callable parameter with variadic _Args pack, to | |
742 | forward them directly to the tuple of decayed copies. | |
743 | * testsuite/30_threads/thread/cons/69724.cc: New test. | |
744 | ||
872d7a1f | 745 | 2019-05-14 Nina Dinka Ranns <dinka.ranns@gmail.com> |
746 | ||
747 | Inconsistency wrt Allocators in basic_string assignment (LWG2579) | |
748 | * include/bits/basic_string.h: (operator=(const basic_string&): | |
749 | Move allocator decision to assign. | |
750 | (assign(const basic_string&)): Move allocator decision here. | |
751 | * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc: | |
752 | Add tests. | |
753 | * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc: | |
754 | Add tests. | |
755 | ||
67dff8a4 | 756 | 2019-05-14 Jonathan Wakely <jwakely@redhat.com> |
757 | ||
155856f9 | 758 | * testsuite/util/testsuite_allocator.h (memory_resource) |
759 | (default_resource_mgr): Fix indentation. | |
760 | ||
94e98eda | 761 | * testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc: |
762 | Use operator-> to access raw pointer member. | |
763 | * testsuite/23_containers/vector/59829.cc: Likewise. | |
764 | * testsuite/23_containers/vector/bool/80893.cc: Likewise. | |
765 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Use NullablePointer. | |
766 | * testsuite/util/testsuite_allocator.h (NullablePointer): New utility | |
767 | for tests. | |
768 | (PointerBase, PointerBase_void): Derive from NullablePointer and use | |
769 | its constructors and equality operators. Change converting | |
770 | constructors to use operator-> to access private member of the other | |
771 | pointer type. | |
772 | (PointerBase_void::operator->()): Add, for access to private member. | |
773 | (operator-(PointerBase, PointerBase)): Change to hidden friend. | |
774 | (operator==(PointerBase, PointerBase)): Remove. | |
775 | (operator!=(PointerBase, PointerBase)): Remove. | |
776 | ||
8ac285f1 | 777 | * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): Do |
778 | not assume field called _M_head_impl is the first tuple element. | |
779 | * testsuite/libstdc++-prettyprinters/compat.cc: Make tuple | |
780 | implementation more accurate. | |
781 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Check unique_ptr with | |
782 | empty pointer type and non-empty deleter. | |
783 | ||
67dff8a4 | 784 | LWG 2899 - Make is_move_constructible correct for unique_ptr |
785 | * include/bits/unique_ptr.h (__uniq_ptr_impl): Add move constructor, | |
786 | move assignment operator. | |
787 | (__uniq_ptr_impl::release(), __uniq_ptr_impl::reset(pointer)): Add. | |
788 | (__uniq_ptr_data): New class template with conditionally deleted | |
789 | special members. | |
790 | (unique_ptr, unique_ptr<T[], D>): Change type of data member from | |
791 | __uniq_ptr_impl<T, D> to __uniq_ptr_data<T, D>. Define move | |
792 | constructor and move assignment operator as defaulted. | |
793 | (unique_ptr::release(), unique_ptr<T[], D>::release()): Forward to | |
794 | __uniq_ptr_impl::release(). | |
795 | (unique_ptr::reset(pointer), unique_ptr<T[], D>::reset<U>(U)): Forward | |
796 | to __uniq_ptr_impl::reset(pointer). | |
797 | * python/libstdcxx/v6/printers.py (UniquePointerPrinter.__init__): | |
798 | Check for new __uniq_ptr_data type. | |
799 | * testsuite/20_util/unique_ptr/dr2899.cc: New test. | |
800 | ||
6818ab51 | 801 | 2019-05-13 Jonathan Wakely <jwakely@redhat.com> |
802 | ||
fecfaafd | 803 | PR libstdc++/90454.cc path construction from void* |
804 | * include/bits/fs_path.h (path::_Path): Use remove_pointer so that | |
805 | pointers to void are rejected as well as void. | |
806 | * include/experimental/bits/fs_path.h (path::_Path): Likewise. | |
807 | * testsuite/27_io/filesystem/path/construct/80762.cc: Also check | |
808 | pointers to void. | |
809 | * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise. | |
810 | ||
6818ab51 | 811 | * doc/xml/manual/policy_data_structures.xml: Comment out stray |
812 | <remark> elements. Fix formatting of bibliography references. | |
813 | ||
8967657e | 814 | 2019-05-13 Edward Smith-Rowland <3dw4rd@verizon.net> |
815 | ||
816 | * doc/xml/manual/status_cxx2020.xml: Document P0811R3 status. | |
817 | ||
8dd55415 | 818 | 2019-05-13 Jonathan Wakely <jwakely@redhat.com> |
ca8ead92 | 819 | |
b6cabd65 | 820 | Remove Profile Mode, deprecated since 7.1.0 |
821 | * doc/Makefile.am: Remove XML file for profile mode docs. | |
822 | * doc/Makefile.in: Regenerate. | |
823 | * doc/xml/authors.xml: Remove authors of profile mode docs. | |
824 | * doc/xml/manual/appendix_contributing.xml: Remove mention of profile | |
825 | mode. | |
826 | * doc/xml/manual/debug.xml: Likewise. | |
827 | * doc/xml/manual/evolution.xml: Document removal of profile mode. | |
828 | * doc/xml/manual/profile_mode.xml: Remove profile mode docs. | |
829 | * doc/xml/manual/spine.xml: Remove profile mode author credit. | |
830 | * doc/xml/manual/test.xml: Remove docs for dg-require-profile-mode | |
831 | directive. | |
832 | * doc/xml/manual/using.xml: Remove docs for profile mode headers and | |
833 | macro. | |
834 | * doc/html/*: Regenerate. | |
835 | * include/Makefile.am: Remove profile mode headers. | |
836 | * include/Makefile.in: Regenerate. | |
837 | * include/bits/c++config (std::__profile): Remove namespace. | |
838 | [_GLIBCXX_PROFILE]: Remove checks for macro. | |
839 | * include/profile/array: Remove. | |
840 | * include/profile/base.h: Remove. | |
841 | * include/profile/bitset: Remove. | |
842 | * include/profile/deque: Remove. | |
843 | * include/profile/forward_list: Remove. | |
844 | * include/profile/impl/profiler.h: Remove. | |
845 | * include/profile/impl/profiler_algos.h: Remove. | |
846 | * include/profile/impl/profiler_container_size.h: Remove. | |
847 | * include/profile/impl/profiler_hash_func.h: Remove. | |
848 | * include/profile/impl/profiler_hashtable_size.h: Remove. | |
849 | * include/profile/impl/profiler_list_to_slist.h: Remove. | |
850 | * include/profile/impl/profiler_list_to_vector.h: Remove. | |
851 | * include/profile/impl/profiler_map_to_unordered_map.h: Remove. | |
852 | * include/profile/impl/profiler_node.h: Remove. | |
853 | * include/profile/impl/profiler_state.h: Remove. | |
854 | * include/profile/impl/profiler_trace.h: Remove. | |
855 | * include/profile/impl/profiler_vector_size.h: Remove. | |
856 | * include/profile/impl/profiler_vector_to_list.h: Remove. | |
857 | * include/profile/iterator_tracker.h: Remove. | |
858 | * include/profile/list: Remove. | |
859 | * include/profile/map: Remove. | |
860 | * include/profile/map.h: Remove. | |
861 | * include/profile/multimap.h: Remove. | |
862 | * include/profile/multiset.h: Remove. | |
863 | * include/profile/ordered_base.h: Remove. | |
864 | * include/profile/set: Remove. | |
865 | * include/profile/set.h: Remove. | |
866 | * include/profile/unordered_base.h: Remove. | |
867 | * include/profile/unordered_map: Remove. | |
868 | * include/profile/unordered_set: Remove. | |
869 | * include/profile/vector: Remove. | |
870 | * scripts/run_doxygen: Do not process profile mode headers. | |
871 | * testsuite/23_containers/array/element_access/60497.cc: Don't use | |
872 | profile mode type. | |
873 | * testsuite/23_containers/array/specialized_algorithms/swap_cxx17.cc: | |
874 | Remove dg-skip-if for profile mode. | |
875 | * testsuite/23_containers/forward_list/capacity/1.cc: Remove | |
876 | preprocessor check for profile mode. | |
877 | * testsuite/23_containers/list/capacity/29134.cc: Likewise. | |
878 | * testsuite/23_containers/map/modifiers/extract.cc: Remove dg-skip-if | |
879 | for profile mode. | |
880 | * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc: | |
881 | Likewise. | |
882 | * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise. | |
883 | * testsuite/23_containers/multimap/modifiers/extract.cc: Likewise. | |
884 | * testsuite/23_containers/multiset/modifiers/extract.cc: Likewise. | |
885 | * testsuite/23_containers/set/modifiers/extract.cc: Likewise. | |
886 | * testsuite/23_containers/unordered_map/modifiers/extract.cc: | |
887 | Likewise. | |
888 | * testsuite/23_containers/unordered_multimap/modifiers/extract.cc: | |
889 | Likewise. | |
890 | * testsuite/23_containers/unordered_multiset/modifiers/extract.cc: | |
891 | Likewise. | |
892 | * testsuite/23_containers/unordered_set/modifiers/extract.cc: | |
893 | Likewise. | |
894 | * testsuite/23_containers/vector/bool/capacity/29134.cc: Remove | |
895 | preprocessor check for profile mode. | |
896 | * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc: | |
897 | Likewise. | |
898 | * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc: | |
899 | Remove dg-skip-if for profile mode. | |
900 | * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise. | |
901 | * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise. | |
902 | * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise. | |
903 | * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise. | |
904 | * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise. | |
905 | * testsuite/Makefile.am: Remove profile_flags variable and | |
906 | * testsuite/Makefile.am: Remove profile_flags variable and | |
907 | check-profile target. | |
908 | * testsuite/Makefile.in: Regenerate. | |
909 | * testsuite/ext/profile/all.cc: Remove. | |
910 | * testsuite/ext/profile/mutex_extensions_neg.cc: Remove. | |
911 | * testsuite/ext/profile/profiler_algos.cc: Remove. | |
912 | * testsuite/ext/profile/replace_new.cc: Remove. | |
913 | * testsuite/ext/throw_allocator/deallocate_global.cc: Remove | |
914 | preprocessor check for profile mode. | |
915 | * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise. | |
916 | * testsuite/lib/libstdc++.exp (check_v3_target_profile_mode): Remove. | |
917 | (check_v3_target_normal_mode): Do not check for profile mode macro. | |
918 | * testsuite/libstdc++-prettyprinters/80276.cc: Remove dg-skip-if for | |
919 | profile mode. | |
920 | * testsuite/libstdc++-prettyprinters/compat.cc: Likewise. | |
921 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise. | |
922 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise. | |
923 | * testsuite/libstdc++-prettyprinters/debug.cc: Likewise. | |
924 | * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise. | |
925 | * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise. | |
926 | * testsuite/libstdc++-prettyprinters/simple.cc: Likewise. | |
927 | * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise. | |
928 | * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise. | |
929 | * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise. | |
930 | ||
ca8ead92 | 931 | Remove array_allocator extension, deprecated since 4.9.0 |
932 | * doc/xml/manual/allocator.xml: Remove documentation for | |
933 | array_allocator. | |
934 | * doc/xml/manual/evolution.xml: Document array_allocator removal. | |
935 | * doc/xml/manual/using.xml: Remove header from documentation. | |
936 | * include/Makefile.am: Remove <ext/array_allocator.h> header. | |
937 | * include/Makefile.in: Regenerate. | |
938 | * include/ext/array_allocator.h: Remove. | |
939 | * include/precompiled/extc++.h: Do not include removed header. | |
940 | * testsuite/ext/array_allocator/1.cc: Remove. | |
941 | * testsuite/ext/array_allocator/2.cc: Remove. | |
942 | * testsuite/ext/array_allocator/26875.cc: Remove. | |
943 | * testsuite/ext/array_allocator/3.cc: Remove. | |
944 | * testsuite/ext/array_allocator/check_deallocate_null.cc: Remove. | |
945 | * testsuite/ext/array_allocator/check_delete.cc: Remove. | |
946 | * testsuite/ext/array_allocator/check_new.cc: Remove. | |
947 | * testsuite/ext/array_allocator/variadic_construct.cc: Remove. | |
948 | * testsuite/ext/headers.cc: Do not include removed header. | |
949 | ||
64b2700c | 950 | 2019-05-11 François Dumont <fdumont@gcc.gnu.org> |
951 | ||
952 | * include/bits/stl_bvector.h | |
953 | (operator==(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
954 | Make hidden friend. | |
955 | (operator<(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
956 | Likewise. | |
957 | (operator!=(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
958 | Likewise. | |
959 | (operator>(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
960 | Likewise. | |
961 | (operator<=(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
962 | Likewise. | |
963 | (operator>=(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
964 | Likewise. | |
965 | (operator-(const _Bit_iterator_base&, const _Bit_iterator_base&)): | |
966 | Likewise. | |
967 | (_Bit_iterator::operator+(difference_type)): Likewise and allow NRVO | |
968 | copy elision. | |
969 | (_Bit_iterator::operator-(difference_type)): Likewise. | |
970 | (operator+(ptrdiff_t, const _Bit_iterator&)): Make hidden friend. | |
971 | (_Bit_const_iterator::operator+(difference_type)): Likewise and allow | |
972 | NRVO copy elision. | |
973 | (_Bit_const_iterator::operator-(difference_type)): Likewise. | |
974 | (operator+(ptrdiff_t, const _Bit_const_iterator&)): Make hidden friend. | |
975 | ||
de3f1d9a | 976 | 2019-05-10 Jonathan Wakely <jwakely@redhat.com> |
977 | ||
eb1be9e7 | 978 | PR libstdc++/81266 |
979 | * testsuite/util/thread/all.h: Do not use remove_pointer for | |
980 | std::thread::native_handle_type. | |
981 | ||
5c6334a5 | 982 | PR libstdc++/90397 |
983 | * include/std/variant (_Variant_storage<false, Types...>::_M_storage()) | |
984 | (_Variant_storage<true, Types...>::_M_reset())) | |
985 | (_Variant_storage<true, Types...>::_M_storage())): Add noexcept. | |
986 | (__get_storage): Likewise. | |
987 | (variant): Add noexcept to friend declarations for __get and | |
988 | __get_storage. | |
989 | ||
3e5c91bd | 990 | PR libstdc++/90388 |
991 | * include/bits/unique_ptr.h (default_delete, default_delete<T[]>): | |
992 | Use _Require for constraints. | |
993 | (operator>(nullptr_t, const unique_ptr<T,D>&)): Implement exactly as | |
994 | per the standard. | |
995 | (__uniq_ptr_hash): New base class with conditionally-disabled call | |
996 | operator. | |
997 | (hash<unique_ptr<T,D>>): Derive from __uniq_ptr_hash. | |
998 | * testsuite/20_util/default_delete/48631_neg.cc: Adjust dg-error line. | |
999 | * testsuite/20_util/unique_ptr/hash/90388.cc: New test. | |
1000 | ||
de3f1d9a | 1001 | * include/bits/shared_ptr.h: Improve docs. |
1002 | * include/bits/shared_ptr_base.h: Likewise. | |
1003 | * include/bits/stl_uninitialized.h: Likewise. | |
1004 | * include/bits/unique_ptr.h: Likewise. | |
1005 | * libsupc++/new: Likewise. | |
1006 | ||
d084c5ba | 1007 | 2019-05-09 François Dumont <fdumont@gcc.gnu.org> |
1008 | ||
1009 | * include/bits/stl_deque.h | |
1010 | (operator==(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
1011 | Make hidden friend. | |
1012 | (operator!=(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
1013 | Likewise. | |
1014 | (operator<(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
1015 | Likewise. | |
1016 | (operator<=(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
1017 | Likewise. | |
1018 | (operator>(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
1019 | Likewise. | |
1020 | (operator>=(const _Deque_iterator<>&, const _Deque_iterator<>&)): | |
1021 | Likewise. | |
1022 | (_Deque_iterator<>::operator+(difference_type)): Likewise and allow NRVO | |
1023 | copy elision. | |
1024 | (_Deque_iterator<>::operator-(difference_type)): Likewise. | |
1025 | ||
0f61cb49 | 1026 | 2019-05-08 François Dumont <fdumont@gcc.gnu.org> |
1027 | ||
1028 | PR libstdc++/90277 | |
1029 | * testsuite/23_containers/unordered_multiset/insert/24061-multiset.cc | |
1030 | (test01): Reserve for number of insertions to avoid rehash during test. | |
1031 | * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc | |
1032 | (test01): Likewise. | |
1033 | * testsuite/23_containers/unordered_multimap/insert/24061-multimap.cc | |
1034 | (test01): Likewise. | |
1035 | (test02): Likewise. | |
1036 | (test03): Likewise. | |
1037 | ||
c800ee48 | 1038 | 2019-05-08 Jonathan Wakely <jwakely@redhat.com> |
1039 | ||
1040 | * include/experimental/bits/fs_path.h: Improve docs. | |
1041 | * include/experimental/bits/net.h: Fix wrong header name in comment. | |
1042 | Do not document implementation details. | |
1043 | * include/experimental/netfwd: Fix doxygen grouping. | |
1044 | ||
b103d23d | 1045 | 2019-05-07 Jonathan Wakely <jwakely@redhat.com> |
1046 | ||
aa371af3 | 1047 | * include/bits/stl_pair.h: Improve docs. |
1048 | * include/std/tuple: Likewise. | |
1049 | ||
dceea60f | 1050 | * doc/doxygen/doxygroups.cc (std::literals): Add documentation for |
1051 | inline namespace. | |
1052 | * include/std/chrono: Improve docs. | |
1053 | * include/std/ratio: Do not document implementation details. | |
1054 | * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust dg-error | |
1055 | line numbers. | |
1056 | * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise. | |
1057 | ||
a9ae69b5 | 1058 | PR libstdc++/89102 |
1059 | * doc/xml/manual/intro.xml: Document DR 2408 and 2465 changes. | |
1060 | * include/std/chrono (__duration_common_type_wrapper): Replace with ... | |
1061 | (__duration_common_type): New helper. | |
1062 | (common_type<chrono::duration<R1, P2>, chrono::duration<R2, P2>>): Use | |
1063 | __duration_common_type. | |
1064 | (__timepoint_common_type_wrapper): Replace with ... | |
1065 | (__timepoint_common_type): New helper. | |
1066 | (common_type<chrono::time_point<C, D2>, chrono::time_point<C, D2>>): | |
1067 | Use __time_point_common_type. | |
1068 | * include/std/type_traits (common_type<>): Define, as per LWG 2408. | |
1069 | (__common_type_impl): If either argument is transformed by decay, | |
1070 | use the common_type of the decayed types. | |
1071 | (__common_type_impl<_Tp, _Up, _Tp, _Up>): If the types are already | |
1072 | decayed, use __do_common_type_impl to get the common_type. | |
1073 | (common_type<_Tp>): Use common_type<_Tp, _Tp>. | |
1074 | (__do_member_type_wrapper, __member_type_wrapper) | |
1075 | (__expanded_common_type_wrapper): Remove. | |
1076 | (__common_type_pack, __common_type_fold): New helpers. | |
1077 | (common_type<_Tp, _Up, _Vp...>): Use new helpers instead of | |
1078 | __member_type_wrapper and __expanded_common_type_wrapper. | |
1079 | * testsuite/20_util/common_type/requirements/explicit_instantiation.cc: | |
1080 | Test zero-length template argument list. | |
1081 | * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: | |
1082 | Test single argument cases and argument types that should decay. | |
1083 | * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: | |
1084 | Adjust expected error. | |
1085 | * testsuite/20_util/duration/literals/range_neg.cc: Use zero for | |
1086 | dg-error lineno. | |
1087 | * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise. | |
1088 | * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. | |
1089 | * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. | |
1090 | ||
b103d23d | 1091 | * doc/xml/manual/intro.xml: Fix DR 2537 and DR 2566 confusion. |
1092 | ||
69be6ea5 | 1093 | 2019-05-01 Nina Dinka Ranns <dinka.ranns@gmail.com> |
1094 | ||
1095 | Make allocator propagation more consistent for | |
1096 | operator+(basic_string) (P1165R1) | |
1097 | * include/bits/basic_string.h | |
1098 | (operator+(basic_string&&, basic_string&&): Changed resulting | |
1099 | allocator to always be the one from the first parameter. | |
1100 | * include/bits/basic_string.tcc | |
1101 | (operator+(const _CharT*, const basic_string&)): Changed | |
1102 | resulting allocator to be SOCCC on the second parameter's allocator. | |
1103 | (operator+(_CharT, const basic_string&)): Likewise. | |
1104 | * testsuite/21_strings/basic_string/allocator/char/operator_plus.cc: | |
1105 | New. | |
1106 | * testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc: | |
1107 | New. | |
1108 | ||
845d0fd6 | 1109 | 2019-05-07 Jonathan Wakely <jwakely@redhat.com> |
1110 | ||
29499715 | 1111 | * include/bits/regex.h: Improve docs. |
1112 | * include/bits/regex.tcc: Do not document implementation details. | |
1113 | ||
845d0fd6 | 1114 | * testsuite/19_diagnostics/error_code/hash.cc: New test. |
1115 | ||
3eec8b67 | 1116 | 2019-05-06 François Dumont <fdumont@gcc.gnu.org> |
1117 | ||
1118 | * python/libstdcxx/v6/printers.py (add_one_template_type_printer): | |
1119 | Add type printer for container types in std::__debug namespace. | |
1120 | * testsuite/lib/gdb-test.exp (whatis-regexp-test): New. | |
1121 | (gdb-tests): Use distinct parameters for the type of test and use of | |
1122 | regex. | |
1123 | (gdb-test): Check for regex test even if 'whatis' test. | |
1124 | * testsuite/libstdc++-prettyprinters/80276.cc: Adapt for _GLIBCXX_DEBUG | |
1125 | mode. | |
1126 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Likewise. | |
1127 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise. | |
1128 | * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise. | |
1129 | * testsuite/libstdc++-prettyprinters/simple.cc: Likewise. | |
1130 | * testsuite/libstdc++-prettyprinters/simple11.cc: Likewise. | |
1131 | * testsuite/libstdc++-prettyprinters/whatis.cc: Likewise. | |
1132 | * testsuite/libstdc++-prettyprinters/whatis2.cc: Likewise. | |
1133 | ||
80175534 | 1134 | 2019-05-04 Jonathan Wakely <jwakely@redhat.com> |
1135 | ||
2d527eb0 | 1136 | * include/std/system_error (error_category): Fix comment. |
1137 | ||
84eda927 | 1138 | PR libstdc++/90299 |
1139 | * src/c++17/fs_ops.cc (absolute(const path&)): Report an error if the | |
1140 | argument is an empty path. | |
1141 | (absolute(const path&, error_code&)): Use invalid_argument as error | |
1142 | code instead of no_such_file_or_directory. | |
1143 | * testsuite/27_io/filesystem/operations/absolute.cc: Check handling | |
1144 | of non-existent paths and empty paths with both overloads of absolute. | |
1145 | ||
98a3d630 | 1146 | * include/std/system_error (error_category, error_code) |
1147 | (error_condition): Improve docs. | |
1148 | * libsupc++/exception: Add missing @addtogroup Doxygen command. | |
1149 | * libsupc++/exception_ptr.h (exception_ptr): Link equality operators | |
1150 | to class documentation. Suppress documentation for implementation | |
1151 | details. | |
1152 | * libsupc++/nested_exception.h (throw_with_nested, rethrow_if_nested): | |
1153 | Suppress documentation for implementation details. | |
1154 | ||
80175534 | 1155 | * include/std/system_error (error_code): Remove friend declaration |
1156 | for hash<error_code>. | |
1157 | (hash<error_code>::operator()): Use public member functions to access | |
1158 | value and category. | |
1159 | (hash<error_condition>::operator()): Use address of category, not | |
1160 | its object representation. | |
1161 | * src/c++11/compatibility-c++0x.cc (hash<error_code>::operator()): | |
1162 | Use public member functions to access value and category. | |
1163 | * testsuite/19_diagnostics/error_condition/hash.cc: New test. | |
1164 | ||
476bdccf | 1165 | 2019-05-04 François Dumont <fdumont@gcc.gnu.org> |
1166 | ||
1167 | * include/bits/hashtable.h (_Hashtable<>::rehash): Review comment. | |
1168 | * include/bits/hashtable_policy.h | |
1169 | (_Prime_rehash_policy::_M_bkt_for_elements): Use __builtin_ceill. | |
1170 | (_Power2_rehash_policy::_M_bkt_for_elements): Likewise. | |
1171 | (_Power2_rehash_policy::_M_next_bkt): Enforce returning a result not | |
1172 | smaller than input value rather than always greater. Preserve | |
1173 | _M_next_resize if called with 0 input. Use __builtin_floorl. | |
1174 | (_Power2_rehash_policy::_M_need_rehash): Rehash only if number of | |
1175 | elements + number of insertions is greater than _M_next_resize. Start | |
1176 | with 11 buckets if not told otherwise. Use __builtin_floorl. | |
1177 | (_Rehash_base<>::reserve): Use rehash policy _M_bkt_for_elements. | |
1178 | * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt): | |
1179 | Preserve _M_next_resize if called with 0 input. Use __builtin_floorl. | |
1180 | (_Prime_rehash_policy::_M_need_rehash): Start with 11 buckets if not | |
1181 | told otherwise. Use __builtin_floorl. | |
1182 | * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt test | |
1183 | to also validate _Power2_rehash_policy. | |
1184 | * testsuite/23_containers/unordered_set/hash_policy/power2_rehash.cc: | |
1185 | Adapt. | |
1186 | ||
2051f7c0 | 1187 | 2019-05-03 Jonathan Wakely <jwakely@redhat.com> |
1188 | ||
85015e21 | 1189 | PR libstdc++/61761 |
1190 | * testsuite/26_numerics/complex/proj.cc: Don't assume <cmath> defines | |
1191 | std::copysign. | |
1192 | ||
2051f7c0 | 1193 | PR libstdc++/52119 |
1194 | * include/ext/numeric_traits.h (__glibcxx_min): Avoid integer | |
1195 | overflow warning with -Wpedantic -Wsystem-headers. | |
1196 | ||
c47265a8 | 1197 | 2019-05-02 Jonathan Wakely <jwakely@redhat.com> |
1198 | ||
9766cefe | 1199 | PR libstdc++/90314 |
1200 | * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Use variadic macro. | |
1201 | * include/bits/move.h (swap): Remove extra parentheses. | |
1202 | ||
6bd15da3 | 1203 | * include/experimental/bits/lfts_config.h: Improve doc markup. |
1204 | * include/experimental/optional: Improve docs. | |
1205 | (_Has_addressof_mem, _Has_addressof_free, _Has_addressof) | |
1206 | (__constexpr_addressof): Remove. | |
1207 | (optional::operator->()): Use std::__addressof(). | |
1208 | * include/std/optional (optional::operator->()): Adjust whitespace. | |
1209 | * testsuite/experimental/optional/constexpr/observers/2.cc: Check | |
1210 | that operator-> is still constexpr with overloaded operator&. Change | |
1211 | to compile-only test. | |
1212 | * testsuite/experimental/optional/constexpr/observers/3.cc: Change to | |
1213 | compile-only test. | |
1214 | ||
f4673ac1 | 1215 | * include/bits/shared_ptr.h: Improve docs. |
1216 | * include/bits/shared_ptr_atomic.h: Likewise. | |
1217 | * include/bits/unique_ptr.h: Likewise. Adjust whitespace. | |
1218 | ||
c88f1c9d | 1219 | * include/bits/basic_string.h: Fix iterator/index confusion in |
1220 | Doxygen comments. | |
1221 | * include/bits/range_access.h: Fix Doxygen warnings. | |
1222 | * include/bits/refwrap.h: Do not document implementation details. | |
1223 | (ref, cref): Group docs with reference_wrapper. | |
1224 | * include/std/fstream: Fix Doxygen markup. | |
1225 | * libsupc++/initializer_list (begin, end): Group docs with | |
1226 | initializer_list. | |
1227 | ||
0276ef36 | 1228 | * doc/doxygen/user.cfg.in: Set MARKDOWN_SUPPORT=YES. |
1229 | ||
5ba27b7d | 1230 | * include/bits/unique_lock.h: Fix/improve doxygen markup. |
1231 | * include/std/mutex: Likewise. | |
1232 | * include/std/shared_mutex: Likewise. | |
1233 | ||
c2046340 | 1234 | * include/bits/fs_dir.h: Fix/improve doxygen markup. |
1235 | * include/bits/fs_fwd.h: Likewise. | |
1236 | * include/bits/fs_ops.h: Likewise. | |
1237 | * include/bits/fs_path.h: Likewise. | |
1238 | * include/std/filesystem: Likewise. | |
1239 | ||
f73340aa | 1240 | * include/experimental/bits/net.h: Fix/improve doxygen markup. |
1241 | * include/experimental/buffer: Likewise. | |
1242 | * include/experimental/executor: Likewise. | |
1243 | * include/experimental/internet: Likewise. | |
1244 | * include/experimental/io_context: Likewise. | |
1245 | * include/experimental/net: Likewise. | |
1246 | * include/experimental/netfwd: Likewise. | |
1247 | * include/experimental/socket: Likewise. | |
1248 | * include/experimental/timer: Likewise. | |
1249 | ||
b87d52bd | 1250 | * doc/doxygen/doxygroups.cc: Move description of experimental group |
1251 | here. | |
1252 | * include/experimental/algorithm: Add to libfund-ts doc group. | |
1253 | * include/experimental/any: Likewise. Do not document implementation | |
1254 | details. | |
1255 | * include/experimental/array: Add to libfund-ts doc group. | |
1256 | * include/experimental/bits/lfts_config.h: Define libfund-ts doc group | |
1257 | for Library Fundamentals. | |
1258 | * include/experimental/chrono: Add to libfund-ts doc group. | |
1259 | * include/experimental/deque: Likewise. | |
1260 | * include/experimental/forward_list: Likewise. | |
1261 | * include/experimental/functional: Likewise. | |
1262 | * include/experimental/iterator: Likewise. | |
1263 | * include/experimental/list: Likewise. | |
1264 | * include/experimental/map: Likewise. | |
1265 | * include/experimental/memory: Likewise. | |
1266 | * include/experimental/memory_resource: Likewise. Improve docs. | |
1267 | details. | |
1268 | * include/experimental/numeric: Add to libfund-ts doc group. | |
1269 | * include/experimental/optional: Likewise. | |
1270 | * include/experimental/propagate_const: Likewise. | |
1271 | * include/experimental/random: Likewise. | |
1272 | * include/experimental/ratio: Likewise. | |
1273 | * include/experimental/regex: Likewise. | |
1274 | * include/experimental/set: Likewise. | |
1275 | * include/experimental/source_location: Likewise. | |
1276 | * include/experimental/string: Likewise. | |
1277 | * include/experimental/string_view: Likewise. | |
1278 | * include/experimental/system_error: Likewise. | |
1279 | * include/experimental/tuple: Likewise. | |
1280 | * include/experimental/type_traits: Likewise. | |
1281 | * include/experimental/unordered_map: Likewise. | |
1282 | * include/experimental/unordered_set: Likewise. | |
1283 | * include/experimental/utility: Likewise. | |
1284 | * include/experimental/vector: Likewise. | |
1285 | * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error. | |
1286 | * testsuite/experimental/array/neg.cc: Adjust dg-error. | |
1287 | * testsuite/experimental/propagate_const/assignment/move_neg.cc: | |
1288 | Likewise. | |
1289 | * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise. | |
1290 | * testsuite/experimental/propagate_const/requirements2.cc: Likewise. | |
1291 | * testsuite/experimental/propagate_const/requirements3.cc: Likewise. | |
1292 | * testsuite/experimental/propagate_const/requirements4.cc: Likewise. | |
1293 | * testsuite/experimental/propagate_const/requirements5.cc: Likewise. | |
1294 | ||
07894d48 | 1295 | * include/experimental/bits/fs_dir.h: Fix Doxygen markup. |
1296 | * include/experimental/bits/fs_fwd.h: Improve docs. | |
1297 | * include/experimental/bits/fs_ops.h: fix Doxygen markup. | |
1298 | * include/experimental/bits/fs_path.h: Likewise. | |
1299 | (path, filesystem_error, u8path): Improve docs. | |
1300 | * include/experimental/filesystem: Link to docs for TS. | |
1301 | ||
cd877474 | 1302 | * config/allocator/new_allocator_base.h (__allocator_base): Add |
1303 | workaround for Doxygen bug #6945. | |
1304 | * include/std/memory: Improve docs. Define group for pointer safety. | |
1305 | * include/std/scoped_allocator: Improve docs. Use "undocumented" | |
1306 | conditional to suppress documentation for implementation details. | |
1307 | ||
72e8cf41 | 1308 | * include/bits/specfun.h: Improve docs. |
1309 | * include/tr1/cmath: Likewise. Fix nesting of preprocessor conditions | |
1310 | and namespaces. | |
1311 | ||
633c66f0 | 1312 | * doc/doxygen/doxygroups.cc (std::tr2, std::__gnu_cxx): Improve docs. |
1313 | (std::experimental): Add docs. | |
1314 | * doc/doxygen/user.cfg.in (PREDEFINED): Expand macros for __cxx11 | |
1315 | namespace to nothing when generating docs. | |
1316 | * include/bits/regex_constants.h (std::regex_constants): Improve docs. | |
1317 | * include/std/chrono (std::chrono): Likewise. | |
1318 | * include/std/functional (std::placeholders): Likewise. | |
1319 | * include/std/thread (std::this_thread): Likewise. | |
1320 | ||
17035a16 | 1321 | * include/parallel/settings.h: Fix Doxygen markup. |
1322 | ||
6de90d17 | 1323 | * include/ext/pb_ds/detail/bin_search_tree_/*_imps.hpp: Do not define |
1324 | anything unless PB_DS_CLASS_C_DEC is defined. | |
1325 | * include/ext/pb_ds/detail/binary_heap_/*_imps.hpp: Likewise. | |
1326 | * include/ext/pb_ds/detail/binomial_heap_/*_imps.hpp: Likewise. | |
1327 | * include/ext/pb_ds/detail/binomial_heap_base_/*_imps.hpp: Likewise. | |
1328 | * include/ext/pb_ds/detail/cc_hash_table_map_/*_imps.hpp: Likewise. | |
1329 | * include/ext/pb_ds/detail/gp_hash_table_map_/*_imps.hpp: Likewise. | |
1330 | * include/ext/pb_ds/detail/hash_fn/*_imp.hpp: Likewise. | |
1331 | * include/ext/pb_ds/detail/left_child_next_sibling_heap_/*_imps.hpp: | |
1332 | Likewise. | |
1333 | * include/ext/pb_ds/detail/list_update_map_/*_imps.hpp: Likewise. | |
1334 | * include/ext/pb_ds/detail/ov_tree_map_/*_imps.hpp: Likewise. | |
1335 | * include/ext/pb_ds/detail/pairing_heap_/*_imps.hpp: Likewise. | |
1336 | * include/ext/pb_ds/detail/pat_trie_/*_imps.hpp: Likewise. | |
1337 | * include/ext/pb_ds/detail/rb_tree_map_/*_imps.hpp: Likewise. | |
1338 | * include/ext/pb_ds/detail/rc_binomial_heap_/*_imps.hpp: Likewise. | |
1339 | * include/ext/pb_ds/detail/resize_policy*_imp.hpp: Likewise. | |
1340 | * include/ext/pb_ds/detail/splay_tree_/*_imps.hpp: Likewise. | |
1341 | * include/ext/pb_ds/detail/thin_heap_/*_imps.hpp: Likewise. | |
1342 | * include/ext/pb_ds/detail/trie_policy*_imp.hpp: Likewise. | |
1343 | * include/ext/pb_ds/detail/unordered_iterator/const_iterator.hpp: | |
1344 | Likewise. | |
1345 | * include/ext/pb_ds/detail/unordered_iterator/iterator.hpp: Likewise. | |
1346 | * include/ext/pb_ds/detail/unordered_iterator/point_const_iterator.hpp: | |
1347 | Likewise. | |
1348 | * include/ext/pb_ds/detail/unordered_iterator/point_iterator.hpp: | |
1349 | Likewise. | |
1350 | ||
c47265a8 | 1351 | * doc/doxygen/user.cfg.in: Regenerate with Doxygen 1.8.14 and set |
1352 | GROUP_NESTED_COMPOUNDS=YES and SORT_BY_SCOPE_NAME=NO. Add various | |
1353 | _GLIBCXX_xxx macros and __attribute__(X) to PREDEFINED macros that | |
1354 | Doxygen expands. | |
1355 | ||
269f393a | 1356 | 2019-05-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1357 | ||
1358 | * config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate. | |
1359 | * config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise. | |
1360 | * config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise. | |
1361 | * config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise. | |
1362 | * config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise. | |
1363 | * config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt: | |
1364 | Likewise. | |
1365 | * config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise. | |
1366 | * config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt: | |
1367 | Likewise. | |
1368 | ||
c64aa5a2 | 1369 | 2019-05-01 Jonathan Wakely <jwakely@redhat.com> |
1370 | ||
1371 | PR libstdc++/61761 | |
1372 | * include/std/complex (__complex_proj): Return parameter unchanged. | |
1373 | [_GLIBCXX_USE_C99_COMPLEX] (__complex_proj): Change overloads for | |
1374 | floating-point types to take std::complex arguments. | |
1375 | [_GLIBCXX_USE_C99_MATH_TR1] (__complex_proj): Add overloads for | |
1376 | floating-point types. | |
1377 | * testsuite/26_numerics/complex/proj.cc: New test. | |
1378 | ||
9d5de90f | 1379 | 2019-04-30 Jakub Jelinek <jakub@redhat.com> |
1380 | ||
1381 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports | |
1382 | to _Lock_policyE[012]. | |
1383 | * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update. | |
1384 | ||
612b2ae7 | 1385 | 2019-04-30 Jonathan Wakely <jwakely@redhat.com> |
1386 | ||
1387 | * testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove | |
1388 | macros accidentally left in. | |
1389 | * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove | |
1390 | unnecessary -lstdc++fs option. Fix test for mingw. | |
1391 | * testsuite/experimental/filesystem/path/native/string-char8_t.cc: | |
1392 | Fix test for mingw. | |
1393 | ||
55843567 | 1394 | 2019-04-30 Jakub Jelinek <jakub@redhat.com> |
1395 | ||
1396 | * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update. | |
1397 | ||
c5aaf0af | 1398 | 2019-04-29 Jonathan Wakely <jwakely@redhat.com> |
1399 | ||
d9375e49 | 1400 | * include/bits/stl_algo.h (generate_n): Adjust doxygen comment. |
1401 | ||
744a3010 | 1402 | * include/bits/move.h (swap(T&, T&), swap(T (&)[N], T (&)[N])): Use |
1403 | _GLIBCXX_NOEXCEPT_IF to simplify declarations. | |
1404 | ||
e3600f25 | 1405 | PR libstdc++/71312 |
1406 | * src/c++11/shared_ptr.cc (get_mutex): Align pool mutexes to 64 bytes. | |
1407 | ||
4b7f4f12 | 1408 | * include/bits/stl_bvector.h (vector<bool>::empty()): Add nodiscard |
1409 | attribute. | |
1410 | ||
94ed6c0a | 1411 | * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused |
1412 | class template and partial specialization. | |
1413 | ||
c5aaf0af | 1414 | PR libstdc++/87982 |
1415 | * include/bits/stl_algo.h (generate_n): Convert _Size parameter to | |
1416 | an integral type. | |
1417 | * include/bits/stl_algobase.h (__size_to_integer): New overloaded | |
1418 | functions to convert a value to an integral type. | |
1419 | (__fill_n_a, __fill_n_a): Assert that __n is already an integral type. | |
1420 | (fill_n): Convert _Size parameter to an integral type. | |
1421 | * testsuite/25_algorithms/fill_n/87982.cc: New test. | |
1422 | * testsuite/25_algorithms/fill_n/87982_neg.cc: New test. | |
1423 | * testsuite/25_algorithms/fill_n/dr426.cc: New test. | |
1424 | * testsuite/25_algorithms/generate_n/87982.cc: New test. | |
1425 | * testsuite/25_algorithms/generate_n/87982_neg.cc: New test. | |
1426 | * testsuite/25_algorithms/generate_n/dr426.cc: New test. | |
1427 | ||
ac8f540e | 1428 | 2019-04-28 Nina Dinka Ranns <dinka.ranns@gmail.com> |
a4360611 | 1429 | |
1430 | Adding noexcept-specification on tuple constructors (LWG 2899) | |
1431 | * libstdc++-v3/include/std/tuple: | |
1432 | (tuple()): Add noexcept-specification. | |
1433 | (tuple(const _Elements&...)): Likewise | |
1434 | (tuple(_UElements&&...)): Likewise | |
1435 | (tuple(const tuple<_UElements...>&)): Likewise | |
1436 | (tuple(tuple<_UElements...>&&)): Likewise | |
1437 | (tuple(const _T1&, const _T2&)): Likewise | |
1438 | (tuple(_U1&&, _U2&&)): Likewise | |
1439 | (tuple(const tuple<_U1, _U2>&): Likewise | |
1440 | (tuple(tuple<_U1, _U2>&&): Likewise | |
1441 | (tuple(const pair<_U1, _U2>&): Likewise | |
1442 | (tuple(pair<_U1, _U2>&&): Likewise | |
1443 | * libstdc++-v3/testsuite/20_util/tuple/cons/noexcept_specs.cc: New | |
1444 | ||
b9fe1c54 | 1445 | 2019-04-27 Marc Glisse <marc.glisse@inria.fr> |
1446 | ||
1447 | PR libstdc++/87106 | |
1448 | * include/bits/stl_uninitialized.h (__relocate_object_a): Mark the | |
1449 | arguments with __restrict. | |
1450 | ||
a596cded | 1451 | 2019-04-26 H.J. Lu <hongjiu.lu@intel.com> |
1452 | ||
1453 | * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated. | |
1454 | ||
051e444d | 1455 | 2019-04-26 Jonathan Wakely <jwakely@redhat.com> |
1456 | ||
3c259ff8 | 1457 | * include/experimental/bits/fs_path.h |
1458 | (path::_S_convert_loc<_InputIterator>): Create const std::string to | |
1459 | avoid redundant call to _S_convert_loc with non-const pointers. | |
1460 | ||
2f95fa8e | 1461 | * testsuite/20_util/variant/run.cc: Use a new Hashable type to test |
1462 | hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1. | |
1463 | * testsuite/21_strings/basic_string/hash/hash.cc | |
1464 | [!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings. | |
1465 | * testsuite/21_strings/basic_string/hash/hash_char8_t.cc | |
1466 | [!_GLIBCXX_USE_CXX11_ABI]: Likewise. | |
1467 | ||
46933618 | 1468 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches |
1469 | wstring::_M_replace_dispatch with more specific patterns. | |
1470 | * include/bits/fs_path.h (path::_S_convert_loc<_InputIterator>): | |
1471 | Create const std::string to avoid redundant call to _S_convert_loc | |
1472 | with non-const pointers. | |
1473 | * include/bits/locale_conv.h (__do_str_codecvt): Use if-constexpr to | |
1474 | avoid unnecessary basic_string::assign instantiations. | |
1475 | ||
051e444d | 1476 | * include/std/memory (__uses_alloc_args): Add string-literal to |
1477 | static_assert, to match the one in __uses_alloc. | |
1478 | [__cpp_concepts] (_Std_pair): Use C++2a syntax for concept. | |
1479 | * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check | |
1480 | for recursive uses-allocator construction of nested pairs. | |
1481 | * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add | |
1482 | comment. | |
1483 | ||
db1349a6 | 1484 | 2019-04-26 Jakub Jelinek <jakub@redhat.com> |
1485 | ||
dd693c4a | 1486 | * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update. |
1487 | * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update. | |
1488 | * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update. | |
1489 | * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update. | |
1490 | ||
db1349a6 | 1491 | * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update. |
1492 | * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update. | |
1493 | * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update. | |
1494 | * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update. | |
1495 | * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update. | |
1496 | * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update. | |
1497 | * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update. | |
1498 | ||
f0a82465 | 1499 | 2019-04-25 Jonathan Wakely <jwakely@redhat.com> |
1500 | ||
1501 | PR libstdc++/90239 | |
1502 | * doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status. | |
1503 | * include/std/scoped_allocator [__cplusplus > 201703L] | |
1504 | (scoped_allocator_adaptor::construct): Define in terms of | |
1505 | uses_allocator_construction_args, as per P0591R4. | |
1506 | * testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test. | |
1507 | * testsuite/util/testsuite_allocator.h: Remove name of unused | |
1508 | parameter. | |
1509 | ||
fd1863e1 | 1510 | 2019-04-24 Jonathan Wakely <jwakely@redhat.com> |
1511 | ||
9ed11778 | 1512 | * doc/xml/manual/status_cxx2017.xml: Document P0024R2 status. |
1513 | * doc/html/*: Regenerate. | |
1514 | ||
39b59bb9 | 1515 | * include/bits/fs_path.h (operator<, operator<=, operator>) |
1516 | (operator>=, operator==, operator!=): Make hidden friends, as per | |
1517 | LWG 3065. | |
1518 | * testsuite/27_io/filesystem/path/native/string-char8_t.cc: Fix | |
1519 | string type in test. | |
1520 | * testsuite/27_io/filesystem/path/native/string.cc: Likewise. | |
1521 | ||
dd3b7006 | 1522 | * include/std/any (any::any(ValueType&&)): Use __and_v. |
1523 | * include/std/numeric (midpoint(T, T, T), midpoint(T*, T*, T*)): | |
1524 | Likewise. | |
1525 | ||
14710c9d | 1526 | * include/std/tuple (apply): Use remove_reference_t instead of decay_t |
1527 | as per P0777R1. | |
1528 | * include/std/type_traits (__result_of_memfun): Use remove_reference | |
1529 | instead of __remove_cvref_t and remove redundant is_same check. | |
1530 | (__inv_unwrap): Use __remove_cvref_t instead of decay_t. | |
1531 | ||
809f1d63 | 1532 | * include/experimental/string_view (basic_string_view::pointer) |
1533 | (basic_string_view::reference): Fix to refer to non-const value_type. | |
1534 | * include/bits/basic_string.h (basic_string): Use __sv_check and | |
1535 | __sv_limit instead of basic_string_view::_M_check and | |
1536 | basic_string_view::_M_limit. | |
1537 | * include/std/string_view (__sv_check, __sv_limit): New | |
1538 | helper functions to replace basic_string_view::_M_check and | |
1539 | basic_string_view::_M_limit. | |
1540 | (basic_string_view): Add static assertions to enforce ill-formed | |
1541 | requirement for traits_type::char_type from P1148R0, and to enforce | |
1542 | required properties of char-like types. | |
1543 | (basic_string_view::pointer, basic_string_view::reference): Fix to | |
1544 | refer to non-const value_type. | |
1545 | (basic_string_view::operator[], basic_string_view::at) | |
1546 | (basic_string_view::front, basic_string_view::back) | |
1547 | (basic_string_view::data): Use const_reference and const_pointer | |
1548 | typedefs for return types. | |
1549 | (basic_string_view::_M_check, basic_string_view::_M_limit): Remove. | |
1550 | (hash<wstring_view>): Fix argument_type typedef. | |
1551 | * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/ | |
1552 | char/1.cc: Fix expected return type of basic_string_view::data(). | |
1553 | * testsuite/21_strings/basic_string_view/modifiers/remove_prefix/ | |
1554 | wchar_t/1.cc: Likewise. | |
1555 | * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/ | |
1556 | char/1.cc: Likewise. | |
1557 | * testsuite/21_strings/basic_string_view/modifiers/remove_suffix/ | |
1558 | wchar_t/1.cc: Likewise. | |
1559 | * testsuite/21_strings/basic_string_view/requirements/traits_neg.cc: | |
1560 | New test. | |
1561 | * testsuite/21_strings/basic_string_view/requirements/typedefs.cc: | |
1562 | Check reference and pointer typedefs. | |
1563 | * testsuite/experimental/string_view/requirements/typedefs.cc: | |
1564 | Likewise. | |
1565 | * testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc: | |
1566 | Fix expected return type of basic_string_view::data(). | |
1567 | * testsuite/experimental/string_view/modifiers/remove_prefix/wchar_t/ | |
1568 | 1.cc: Likewise. | |
1569 | * testsuite/experimental/string_view/modifiers/remove_suffix/char/1.cc: | |
1570 | Likewise. | |
1571 | * testsuite/experimental/string_view/modifiers/remove_suffix/wchar_t/ | |
1572 | 1.cc: Likewise. | |
1573 | ||
37020b0a | 1574 | PR libstdc++/90220 |
1575 | * include/std/any (__any_caster): Use remove_cv_t instead of decay_t. | |
1576 | Avoid a runtime check for types that can never be stored in std::any. | |
1577 | * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with | |
1578 | array types. | |
1579 | ||
b8e73341 | 1580 | PR libstdc++/90220 (partial) |
1581 | * include/std/any (any_cast<T>(any*), any_cast<T>(const any*)): Do | |
1582 | not attempt ill-formed static_cast to pointers to non-object types. | |
1583 | * testsuite/20_util/any/misc/any_cast.cc: Test std::any_cast with | |
1584 | function types. | |
1585 | ||
1c9c8e0d | 1586 | * testsuite/20_util/variant/run.cc: Catch exception by reference to |
1587 | prevent -Wcatch-value warning. | |
1588 | ||
fd1863e1 | 1589 | * include/std/variant (__variant_construct): Use template parameter |
1590 | type instead of equivalent decltype-specifier. | |
1591 | (_Move_ctor_base<false, Types...>::_Move_ctor_base(_Move_ctor_base&&)): | |
1592 | Replace forward with move. | |
1593 | (_Move_ctor_base<false, Types...>::_M_destructive_move) | |
1594 | (_Move_ctor_base<false, Types...>::_M_destructive_copy) | |
1595 | (_Move_ctor_base<true, Types...>::_M_destructive_move) | |
1596 | (_Move_ctor_base<true, Types...>::_M_destructive_copy): Only set the | |
1597 | index after construction succeeds. | |
1598 | (_Copy_assign_base<false, Types...>::operator=): Remove redundant | |
1599 | if-constexpr checks that are always true. Use __remove_cvref_t instead | |
1600 | of remove_reference so that is_nothrow_move_constructible check | |
1601 | doesn't use a const rvalue parameter. In the potentially-throwing case | |
1602 | construct a temporary and move assign it, as per LWG 2904. | |
1603 | (_Move_assign_base<false, Types...>::operator=): Remove redundant | |
1604 | if-constexpr checks that are always true. Use emplace as per LWG 2904. | |
1605 | (variant::operator=(T&&)): Only use emplace conditionally, otherwise | |
1606 | construct a temporary and move assign from it, as per LWG 2904. | |
1607 | * testsuite/20_util/variant/exception_safety.cc: Check that | |
1608 | assignment operators have strong exception safety guarantee. | |
1609 | ||
55bb4515 | 1610 | 2019-04-23 Thomas Rodgers <trodgers@redhat.com> |
1611 | ||
1612 | Document PSTL linker flags | |
1613 | ||
7f6a1a9c | 1614 | * doc/xml/manual/using.xml: Add PSTL linker flags to table 3.1. |
55bb4515 | 1615 | |
b48cc8c5 | 1616 | 2019-04-23 Jonathan Wakely <jwakely@redhat.com> |
1617 | ||
a4265b66 | 1618 | * include/std/variant (__detail::__variant::_Traits): Make |
1619 | _S_trivial_copy_assign depend on _S_trivial_copy_ctor and make | |
1620 | _S_trivial_move_assign depend on _S_trivial_move_ctor, as per | |
1621 | P0602R4. | |
1622 | (__detail::__variant::_Copy_assign_alias): Only depend on | |
1623 | _S_trivial_copy_assign, which subsumes _S_trivial_copy_ctor now. | |
1624 | * testsuite/20_util/variant/compile.cc: Correct checks for trivial | |
1625 | move assignment operators. | |
1626 | ||
28cc38ec | 1627 | PR libstdc++/90165 |
1628 | * include/std/variant (variant::__not_self): New helper for the | |
1629 | is_same_v<remove_cvref_t<T>, variant>==false constraints. | |
1630 | (variant::__to_type_impl): Remove. | |
1631 | (variant::__to_type): Add default argument to check pack size, instead | |
1632 | of using __to_type_impl. | |
1633 | (variant::__accepted_type): Add default argument using __not_self. | |
1634 | (variant::__is_in_place_tag, variant::__not_in_place_tag): New helpers | |
1635 | for variant(T&&) constructor constraint. | |
1636 | (variant::variant(T&&)): Use __not_in_place_tag in constraints. | |
1637 | Extract __accepted_type into a named template parameter for reuse in | |
1638 | other constraints and in the exception specification. | |
1639 | (variant::variant(in_place_type_t<T>, Args&&...)) | |
1640 | (variant::variant(in_place_type_t<T>, initializer_list<U>, Args&&...)) | |
1641 | (variant::variant(in_place_index_t<T>, Args&&...)) | |
1642 | (variant::variant(in_place_index_t<T>, initializer_list<U>, Args&&...)) | |
1643 | (variant::operator=T&&)): Remove redundant && from trait arguments. | |
1644 | * testsuite/20_util/variant/compile.cc: Check variant(T&&) constructor | |
1645 | isn't used for in_place_type or in_place_index arguments. | |
1646 | ||
b48cc8c5 | 1647 | * include/std/type_traits (unwrap_reference_t): Define for C++2a. |
1648 | (unwrap_ref_decay): Remove inheritance from unwrap_reference. | |
1649 | * testsuite/20_util/unwrap_reference/1.cc: Adjust test to use alias. | |
1650 | ||
9ac9ee83 | 1651 | 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
1652 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
1653 | Jakub Jelinek <jakub@redhat.com> | |
1654 | ||
1655 | PR target/89093 | |
1656 | * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Add | |
1657 | general-regs-only target attribute for ARM. | |
1658 | ||
e11f5aed | 1659 | 2019-04-23 Jonathan Wakely <jwakely@redhat.com> |
1660 | ||
b9d8292f | 1661 | PR libstdc++/87431 |
1662 | * include/bits/basic_string.h (_Never_valueless_alt): Make partial | |
1663 | specialization also depend on is_nothrow_move_constructible. | |
1664 | * include/std/variant (__detail::__variant::__never_valueless()): | |
1665 | Only true if the variant would have a move assignment operator. | |
1666 | (__detail::__variant::_Variant_storage<false, T...>::_M_valid()): | |
1667 | Check __never_valueless<T...>(). | |
1668 | (variant::emplace): Only perform non-throwing move assignments | |
1669 | for never-valueless alternatives if the variant has a move assignment | |
1670 | operator. | |
1671 | * testsuite/20_util/variant/compile.cc: Check that never-valueless | |
1672 | types can be emplaced into non-assignable variants. | |
1673 | * testsuite/20_util/variant/run.cc: Check that never-valueless types | |
1674 | don't get copied when emplaced into non-assignable variants. | |
1675 | ||
e11f5aed | 1676 | * include/std/variant (__detail::__variant::__ref_cast): Remove |
1677 | unused function. | |
1678 | (__detail::__variant::_Uninitialized::_M_get) | |
1679 | (__detail::__variant::__get) | |
1680 | (__gen_vtable_impl::__element_by_index_or_cookie): Add noexcept. | |
1681 | ||
46fbb8aa | 1682 | 2019-04-21 Iain Sandoe <iain@sandoe.co.uk> |
1683 | ||
1684 | * testsuite/17_intro/headers/c++1998/charset.cc: Skip for Darwin8 | |
1685 | to Darwin10. | |
1686 | * testsuite/17_intro/headers/c++2011/charset.cc: Likewise. | |
1687 | * testsuite/17_intro/headers/c++2014/charset.cc: Likewise. | |
1688 | * testsuite/17_intro/headers/c++2017/charset.cc: Likewise. | |
1689 | * testsuite/17_intro/headers/c++2020/charset.cc: Likewise. | |
1690 | ||
dff3f73c | 1691 | 2019-04-20 Thomas Rodgers <trodgers@redhat.com> |
1692 | ||
1693 | Delegate PSTL configuration to pstl/pstl_config.h | |
1694 | ||
1695 | * include/bits/c++config: Remove explicit PSTL configuration | |
1696 | macros and use definitions from <pstl/pstl_config.h>. | |
1697 | ||
3dbad48e | 1698 | 2019-04-20 Thomas Rodgers <trodgers@redhat.com> |
1699 | ||
1700 | Cleanup algorithm implementations | |
1701 | * include/pstl/glue_algorithm_impl.h (stable_sort): Forward | |
ed42fdb5 | 1702 | execution policy. |
3dbad48e | 1703 | (mismatch): Forward execution policy. |
1704 | (equal): Qualify call to std::equal(). | |
1705 | (partial_sort): Forward execution policy. | |
1706 | (inplace_merge): Forward execution policy. | |
1707 | ||
5d637ddd | 1708 | 2019-04-19 Thomas Rodgers <trodgers@redhat.com> |
1709 | ||
1710 | Improve implementation of parallel equal() | |
1711 | * include/pstl/algorithm_impl.h | |
1712 | (__internal::__brick_equal): use "4 iterator" version of | |
1713 | std::equal(). | |
1714 | (__internal::__brick_equal): use simd for random access | |
1715 | iterators on unsequenced execution policies. | |
1716 | (__internal::__pattern_equal): add "4 iterator" version | |
1717 | (__internal::__pattern_equal): dispatch to simd __brick_equal | |
1718 | for vector-only execution policies. | |
1719 | (__internal::__pattern_equal): dispatch to __parallel_or for | |
1720 | parallel execution policies. | |
1721 | * include/pstl/glue_algorithm_impl.h | |
1722 | (std::equal): dispatch to "4 iterator" version of | |
1723 | __internal::__pattern_equal(). | |
1724 | ||
88dbeb04 | 1725 | 2019-04-17 Jonathan Wakely <jwakely@redhat.com> |
1726 | ||
a0295ab5 | 1727 | PR libstdc++/90105 |
1728 | * include/bits/forward_list.h (operator==): Do not use operator!= to | |
1729 | compare elements. | |
1730 | (forward_list<T, A>::sort(Comp)): When elements are equal take the one | |
1731 | earlier in the list, so that sort is stable. | |
1732 | * testsuite/23_containers/forward_list/operations/90105.cc: New test. | |
1733 | * testsuite/23_containers/forward_list/comparable.cc: Test with | |
1734 | types that meet the minimum EqualityComparable and LessThanComparable | |
1735 | requirements. Remove irrelevant comment. | |
1736 | ||
37a7dbf9 | 1737 | * include/std/variant (__detail::__variant::_Traits::_S_copy_assign): |
1738 | Do not depend on whether all alternative types are move constructible. | |
1739 | (__detail::__variant::_Copy_assign_base::operator=): Remove cv-quals | |
1740 | from the operand when deciding whether to perform the assignment. | |
1741 | * testsuite/20_util/variant/compile.cc (DeletedMoves): Define type | |
1742 | with deleted move constructor and deleted move assignment operator. | |
1743 | (default_ctor, copy_ctor, move_ctor, copy_assign, move_assign): Check | |
1744 | behaviour of variants with DeletedMoves as an alternative. | |
1745 | * testsuite/20_util/variant/run.cc (DeletedMoves): Define same type. | |
1746 | (move_ctor, move_assign): Check that moving a variant with a | |
1747 | DeletedMoves alternative falls back to copying instead of moving. | |
1748 | ||
e9a490a4 | 1749 | * testsuite/20_util/variant/compile.cc: Remove empty string literals |
1750 | from static_assert declarations. | |
1751 | ||
c4495ab1 | 1752 | * testsuite/20_util/variant/compile.cc (MoveCtorOnly): Fix type to |
1753 | actually match its name. | |
1754 | (MoveCtorAndSwapOnly): Define new type that adds swap to MoveCtorOnly. | |
1755 | (test_swap()): Fix result for MoveCtorOnly and check | |
1756 | MoveCtorAndSwapOnly. | |
1757 | ||
88dbeb04 | 1758 | * include/std/optional (optional::value_or(U&&) &&): Add missing |
1759 | constexpr specifier. | |
1760 | * testsuite/20_util/optional/constexpr/observers/4.cc: Check value_or | |
1761 | for disengaged optionals and rvalue optionals. | |
1762 | * testsuite/20_util/optional/observers/4.cc: Likewise. | |
1763 | ||
11deac81 | 1764 | 2019-04-12 Thomas Rodgers <trodgers@redhat.com> |
1765 | ||
1766 | * include/pstl/algorithm_impl.h: Uglify identfiers. | |
1767 | * include/pstl/numeric_impl.h: Uglify identfiers. | |
1768 | * include/pstl/parallel_backend_tbb.h: Uglify identfiers. | |
1769 | ||
34d8d757 | 1770 | 2019-04-11 Thomas Rodgers <trodgers@redhat.com> |
1771 | ||
1772 | * include/bits/c++config: | |
1773 | Add definition for __PSTL_ASSERT. | |
1774 | Add definition for __PSTL_ASSERT_MSG. | |
1775 | * include/pstl/algorithm_impl.h: Replace use of assert(). | |
1776 | * include/pstl/numeric_impl.h: Replace use of assert(). | |
1777 | * include/pstl/parallel_backend_tbb.h: | |
1778 | Replace use of assert(). | |
1779 | Replace use of __TBB_ASSERT(). | |
34d8d757 | 1780 | * include/pstl/parallel_backend_utils.h: Replace use of assert(). |
1781 | ||
629a2d18 | 1782 | 2019-04-11 Jonathan Wakely <jwakely@redhat.com> |
1783 | ||
1784 | PR libstdc++/90046 | |
1785 | * src/c++17/memory_resource.cc | |
1786 | (monotonic_buffer_resource::_Chunk::allocate): Increase alignment if | |
1787 | needed to allow placing a _Chunk at the end of the buffer. | |
1788 | (monotonic_buffer_resource::_M_new_buffer): Remove static_assert. | |
1789 | ||
b047c9ae | 1790 | 2019-04-10 Jonathan Wakely <jwakely@redhat.com> |
1791 | ||
6a98b075 | 1792 | * doc/xml/faq.xml: Add information about emergency EH pool. |
1793 | * doc/xml/manual/debug.xml: Update list of memory debugging tools. | |
1794 | Move outdated information on mt_allocator to a separate section. | |
1795 | * doc/xml/manual/evolution.xml: Clarify that GLIBCXX_FORCE_NEW | |
1796 | doesn't affect the default allocator. | |
1797 | ||
706bf2a5 | 1798 | * testsuite/lib/libstdc++.exp (check_v3_target_parallel_mode): Fix |
1799 | typo. | |
1800 | ||
b047c9ae | 1801 | PR libstdc++/89851 |
1802 | * testsuite/20_util/variant/89851.cc: New test. | |
1803 | ||
faa382bd | 1804 | 2019-04-09 Jonathan Wakely <jwakely@redhat.com> |
1805 | ||
492debfa | 1806 | * include/std/variant: Adjust whitespace. Add comments. |
1807 | (_Multi_array): Leave primary template undefined. | |
1808 | (_Multi_array<_Tp>): Define partial specialization for base case of | |
1809 | recursion. | |
1810 | (__gen_vtable_impl, __gen_vtable): Remove redundant && from type | |
1811 | which is always a reference. | |
1812 | (__gen_vtable::_S_apply()): Remove function, inline body into | |
1813 | default member initializer. | |
1814 | * testsuite/20_util/variant/visit.cc: Test with noncopyable types. | |
1815 | ||
47cf9c4c | 1816 | * include/std/variant (__variant_idx_cookie): Add member type. |
1817 | (__visitor_result_type): Remove. | |
1818 | (__do_visit): Use invoke_result instead of __visitor_result_type. | |
1819 | * testsuite/20_util/variant/visit.cc: New test. | |
1820 | ||
faa382bd | 1821 | PR libstdc++/90008 |
1822 | * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Remove | |
1823 | unused capture. | |
1824 | * testsuite/20_util/variant/90008.cc: New test. | |
1825 | ||
e4da4897 | 1826 | 2019-04-09 Thomas Rodgers <trodgers@redhat.com> |
1827 | ||
1828 | * include/pstl/algorithm_impl.h: Add namespace qualification. | |
1829 | * include/pstl/execution_defs.h: Add namespace qualification. | |
1830 | * include/pstl/execution_impl.h: Add namespace qualification. | |
1831 | * include/pstl/numeric_impl.h: Add namespace qualification. | |
1832 | * include/pstl/parallel_backend_tbb.h: Add namespace qualification. | |
1833 | * include/pstl/unseq_backend_simd.h: Add namespace qualification. | |
1834 | * include/pstl/parallel_backend_utils.h: Include <cassert>. | |
1835 | ||
ff7d433d | 1836 | 2019-04-08 Ville Voutilainen <ville.voutilainen@gmail.com> |
1837 | ||
1838 | Fix visit<R> for variant. | |
1839 | * include/std/variant (__do_visit): Add a template parameter | |
1840 | for enforcing same return types for visit. | |
1841 | (__gen_vtable_impl): Likewise. | |
1842 | (_S_apply_single_alt): Adjust. | |
1843 | (__visit_invoke_impl): New. Handle casting to void. | |
1844 | (__do_visit_invoke): New. Enforces same return types. | |
1845 | (__do_visit_invoke_r): New. Converts return types. | |
1846 | (__visit_invoke): Adjust. | |
1847 | (__gen_vtable): Add a template parameter for enforcing | |
1848 | same return types for visit. | |
1849 | * testsuite/20_util/variant/visit_r.cc: Add a test for a visitor with | |
1850 | different return types. | |
1851 | * testsuite/20_util/variant/visit_neg.cc: New. Ensures that | |
1852 | visitors with different return types don't accidentally | |
1853 | compile with regular visitation. | |
1854 | ||
d0f56531 | 1855 | 2019-04-08 Christophe Lyon <christophe.lyon@linaro.org> |
1856 | ||
1857 | * testsuite/27_io/filesystem/iterators/caching.cc: Add | |
1858 | dg-require-filesystem-ts. | |
1859 | ||
781cb64d | 1860 | 2019-04-05 Jonathan Wakely <jwakely@redhat.com> |
1861 | ||
bfbd20f7 | 1862 | * doc/xml/manual/status_cxx2020.xml: Update status. |
1863 | * include/std/variant (visit<R>): Define for C++2a (P0655R1). | |
1864 | * testsuite/20_util/variant/visit_r.cc: New test. | |
1865 | ||
83bd31bf | 1866 | * include/bits/fs_dir.h (directory_iterator::operator*) |
1867 | (directory_iterator::operator->): Add noexcept. | |
1868 | (operator==, operator!=): Replace namespace-scope equality operators | |
1869 | for directory iterators with hidden friends. | |
1870 | ||
0067a809 | 1871 | PR libstdc++/89986 |
1872 | * config/abi/pre/gnu.ver: Add missing exports. | |
1873 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Test | |
1874 | increment member. | |
1875 | ||
7d0ae205 | 1876 | * config/abi/pre/gnu.ver: Export new symbols. |
1877 | * include/bits/fs_dir.h (recursive_directory_iterator::options()) | |
1878 | (recursive_directory_iterator::recursion_pending()) | |
1879 | (recursive_directory_iterator::disable_recursion_pending()): Remove | |
1880 | inline definitions. Make noexcept. | |
1881 | (recursive_directory_iterator::depth()) | |
1882 | (recursive_directory_iterator::operator*()) | |
1883 | (recursive_directory_iterator::operator->()): Make noexcept. | |
1884 | (recursive_directory_iterator::_M_options) | |
1885 | (recursive_directory_iterator::_M_pending): Remove data members. | |
1886 | * src/c++17/fs_path.cc (_Dir_stack): Add constructor and data members. | |
1887 | (recursive_directory_iterator::recursive_directory_iterator): Remove | |
1888 | ctor-initializer. Use new constructor for _Dir_stack. | |
1889 | (recursive_directory_iterator::options()) | |
1890 | (recursive_directory_iterator::recursion_pending()) | |
1891 | (recursive_directory_iterator::disable_recursion_pending()): Add | |
1892 | non-inline definitions. | |
1893 | (recursive_directory_iterator::depth()): Make noexcept. | |
1894 | (recursive_directory_iterator::increment(error_code&)) | |
1895 | (recursive_directory_iterator::pop(error_code&)): Adjust to new | |
1896 | location of options and recursion_pending members. | |
1897 | * testsuite/27_io/filesystem/iterators/recursion_pending.cc: New test. | |
1898 | * testsuite/util/testsuite_fs.h (__gnu_test::scoped_file): Add | |
1899 | user-declared move constructor and assignment operator, to make the | |
1900 | type move-only. | |
1901 | ||
5a6e0b73 | 1902 | * src/c++17/fs_dir.cc (_Dir::advance(bool, error_code&)): Handle |
1903 | d_type == DT_UNKNOWN immediately. | |
1904 | (_Dir::should_recurse(bool, error_code&)): Remove file_type::unknown | |
1905 | handling here. | |
1906 | * testsuite/27_io/filesystem/iterators/caching.cc: New test. | |
1907 | ||
aa9c570e | 1908 | * include/bits/fs_path.h (path::operator=(path&&)): Check for self |
1909 | assignment. | |
1910 | * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise. | |
1911 | * testsuite/27_io/filesystem/path/assign/copy.cc: Test self | |
1912 | assignment. | |
1913 | ||
781cb64d | 1914 | PR libstdc++/87431 (again) |
1915 | * include/bits/basic_string.h (__variant::_Never_valueless_alt): | |
1916 | Define partial specialization for basic_string. | |
1917 | * include/bits/shared_ptr.h (_Never_valueless_alt): Likewise for | |
1918 | shared_ptr and weak_ptr. | |
1919 | * include/bits/std_function.h (_Never_valueless_alt): Likewise for | |
1920 | function. | |
1921 | * include/bits/stl_vector.h (_Never_valueless_alt): Likewise for | |
1922 | vector. | |
1923 | * include/bits/unique_ptr.h (_Never_valueless_alt): Likewise for | |
1924 | unique_ptr. | |
1925 | * include/debug/vector (_Never_valueless_alt): Likewise for debug | |
1926 | vector. | |
1927 | * include/std/any (_Never_valueless_alt): Define explicit | |
1928 | specialization for any. | |
1929 | * include/std/variant (_Never_valueless_alt): Define primary template. | |
1930 | (__never_valueless): Use _Never_valueless_alt instead of | |
1931 | is_trivially_copyable. | |
1932 | (variant::emplace<N>(Args&&...)): Add special case for non-throwing | |
1933 | initializations to avoid try-catch overhead. Add special case for | |
1934 | scalars produced by potentially-throwing conversions. Use | |
1935 | _Never_valueless_alt instead of is_trivially_copyable for the | |
1936 | remaining strong exception-safety cases. | |
1937 | (variant::emplace<N>(initializer_list<U>, Args&&...)): Likewise. | |
1938 | * testsuite/20_util/variant/87431.cc: Run both test functions. | |
1939 | * testsuite/20_util/variant/exception_safety.cc: New test. | |
1940 | * testsuite/20_util/variant/run.cc: Use pmr::string instead of string, | |
1941 | so the variant becomes valueless. | |
1942 | ||
62fd39e8 | 1943 | 2019-04-03 Jonathan Wakely <jwakely@redhat.com> |
1944 | ||
e1d699b8 | 1945 | PR libstdc++/85184 |
1946 | * include/std/variant (_Copy_assign_base, _Move_assign_base, variant): | |
1947 | Remove assertions. | |
72be2bb7 | 1948 | (variant::emplace<_Tp>): Return result of emplace<N> directly. |
e1d699b8 | 1949 | |
62fd39e8 | 1950 | * include/std/string (__hash_string_base): New class template defining |
1951 | operator() for hashing strings. | |
1952 | (hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>) | |
1953 | (hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17. | |
1954 | * testsuite/21_strings/basic_string/hash/hash.cc: New test. | |
1955 | * testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test. | |
1956 | ||
4f3e024d | 1957 | 2019-04-01 Ville Voutilainen <ville.voutilainen@gmail.com> |
1958 | ||
1959 | Use single-visitation in variant assignment and swap and relops. | |
1960 | Also use indices instead of types when checking whether | |
1961 | variants hold the same thing. | |
1962 | * include/std/variant (__do_visit): Add a template parameter | |
1963 | for index visitation, invoke with indices if index visitation | |
1964 | is used. | |
1965 | (__variant_idx_cookie): New. | |
1966 | (__visit_with_index): Likewise. | |
1967 | (_Copy_assign_base::operator=): Do single-visitation with | |
1968 | an index visitor. | |
1969 | (_Move_assign_base::operator=): Likewise. | |
1970 | (_Extra_visit_slot_needed): Adjust. | |
1971 | (__visit_invoke): Call with indices if it's an index visitor. | |
1972 | (relops): Do single-visitation with an index visitor. | |
1973 | (swap): Likewise. | |
1974 | (__visitor_result_type): New. | |
1975 | ||
106979b7 | 1976 | 2019-03-30 Eric Botcazou <ebotcazou@adacore.com> |
1977 | ||
1978 | * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported. | |
1979 | ||
225ca87b | 1980 | 2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com> |
1981 | ||
1982 | Don't revisit a variant we are already visiting. | |
1983 | * include/std/variant (__variant_construct_single): New. | |
1984 | (__variant_construct): Use it. | |
1985 | (_M_destructive_move): Likewise. | |
1986 | (_M_destructive_copy): Likewise. | |
1987 | (_Copy_assign_base::operator=): Adjust. | |
1988 | (_Move_assign_base::operator=): Likewise. | |
1989 | (swap): Likewise. | |
1990 | ||
7237dce7 | 1991 | 2019-03-26 Jonathan Wakely <jwakely@redhat.com> |
1992 | ||
1993 | PR libstdc++/85965 | |
1994 | * include/bits/hashtable.h (_Hashtable): Move static assertions to | |
1995 | destructor so they are not evaluated until the _Key type is complete. | |
1996 | * include/bits/stl_tree.h (_Rb_tree): Likewise. | |
1997 | * testsuite/23_containers/set/85965.cc: New test. | |
1998 | * testsuite/23_containers/unordered_set/85965.cc: New test. | |
1999 | * testsuite/23_containers/map/48101_neg.cc: Replace "here" errors | |
2000 | with regexp matching the corresponding _Rb_tree specialization. | |
2001 | * testsuite/23_containers/multimap/48101_neg.cc: Likewise. | |
2002 | * testsuite/23_containers/multiset/48101_neg.cc: Remove "here" error. | |
2003 | * testsuite/23_containers/set/48101_neg.cc: Likewise. | |
2004 | * testsuite/23_containers/unordered_map/48101_neg.cc: Likewise. | |
2005 | * testsuite/23_containers/unordered_multimap/48101_neg.cc: Likewise. | |
2006 | * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise. | |
2007 | * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise. | |
2008 | ||
4c0ef551 | 2009 | 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
2010 | ||
2011 | PR libstdc++/89825 | |
2012 | Fix based on a suggestion by Antony Polukhin. | |
2013 | * include/std/variant (__never_valueless): New. | |
2014 | (_M_valid): Use it. | |
2015 | (_Extra_visit_slot_needed): New. | |
2016 | (_Multi_array): Use it. | |
2017 | (_S_apply_all_alts): Likewise. | |
2018 | ||
28b460dd | 2019 | 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
2020 | ||
2021 | PR libstdc++/89824 | |
2022 | Fix based on a suggestion by Antony Polukhin. | |
2023 | * include/std/variant (__gen_vtable): Don't reserve an | |
2024 | additional table slot, _Multi_array already does that. | |
2025 | ||
4d235dc5 | 2026 | 2019-03-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
2027 | ||
2028 | PR libstdc++/89816 | |
2029 | Fix based on a suggestion by Antony Polukhin. | |
2030 | * include/std/variant (__variant_construct): Capture a pointer | |
2031 | to the storage and visit just one variant. | |
2032 | ||
d0595c7e | 2033 | 2019-03-22 Jonathan Wakely <jwakely@redhat.com> |
2034 | ||
5c34f7ca | 2035 | * doc/xml/manual/backwards_compatibility.xml: Remove link to |
2036 | Doxygen-generated pages with unstable URL. | |
2037 | * doc/xml/manual/concurrency_extensions.xml: Likewise. | |
2038 | * doc/xml/manual/extensions.xml: Likewise. | |
2039 | * doc/xml/manual/parallel_mode.xml: Likewise. | |
2040 | * doc/xml/manual/support.xml: Likewise. | |
2041 | ||
d0595c7e | 2042 | * include/bits/stl_algobase.h (__lg): Do arithmetic on type int to |
2043 | avoid -Wconversion warnings. | |
2044 | ||
7e155e54 | 2045 | 2019-03-21 Thomas Rodgers <trodgers@redhat.com> |
2046 | ||
2047 | * include/Makefile.am (std_header): Add ${std_srcdir}/execution. | |
2048 | (pstl_srcdir, pstl_builddir, pstl_headers): New variables. | |
2049 | (allstamped): Add stamp-pstl. | |
2050 | (install-headers): Add ptsl_builddir. | |
2051 | * include/Makefile.in: Regenerate. | |
2052 | * include/bits/c++config: Add pstl configuration. | |
2053 | * include/pstl/LICENSE.txt: New file. | |
2054 | * include/pstl/algorithm_fwd.h: New file. | |
2055 | * include/pstl/algorithm_impl.h: New file. | |
2056 | * include/pstl/execution_defs.h: New file. | |
2057 | * include/pstl/execution_impl.h: New file. | |
2058 | * include/pstl/glue_algorithm_defs.h: New file. | |
2059 | * include/pstl/glue_algorithm_impl.h: New file. | |
2060 | * include/pstl/glue_execution_defs.h: New file. | |
2061 | * include/pstl/glue_memory_defs.h: New file. | |
2062 | * include/pstl/glue_memory_impl.h: New file. | |
2063 | * include/pstl/glue_numeric_defs.h: New file. | |
2064 | * include/pstl/glue_numeric_impl.h: New file. | |
2065 | * include/pstl/memory_impl.h: New file. | |
2066 | * include/pstl/numeric_fwd.h: New file. | |
2067 | * include/pstl/numeric_impl.h: New file. | |
2068 | * include/pstl/parallel_backend.h: New file. | |
2069 | * include/pstl/parallel_backend_tbb.h: New file. | |
2070 | * include/pstl/parallel_backend_utils.h: New file. | |
2071 | * include/pstl/parallel_impl.h: New file. | |
2072 | * include/pstl/pstl_config.h: New file. | |
2073 | * include/pstl/unseq_backend_simd.h: New file. | |
2074 | * include/pstl/utils.h: New file. | |
2075 | * include/std/algorithm: Include parallel algorithm implementations. | |
2076 | * include/std/execution: New file. | |
2077 | * include/std/memory: Include parallel algorithm implementations. | |
2078 | * include/std/numeric: Include parallel algorithm implementations. | |
2079 | * include/std/version: Add parallel algorithms feature test macro. | |
2080 | * testsuite/util/pstl/pstl_test_config.h: New file. | |
2081 | * testsuite/util/pstl/test_utils.h: New file. | |
2082 | * testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file. | |
2083 | * testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file. | |
2084 | * testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file. | |
2085 | * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file. | |
2086 | * testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file. | |
2087 | * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file. | |
2088 | * testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file. | |
2089 | * testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file. | |
2090 | * testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file. | |
2091 | * testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file. | |
2092 | * testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file. | |
2093 | * testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file. | |
2094 | * testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file. | |
2095 | * testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file. | |
2096 | * testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file. | |
2097 | * testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file. | |
2098 | * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file. | |
2099 | * testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file. | |
2100 | * testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file. | |
2101 | * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file. | |
2102 | * testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file. | |
2103 | * testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file. | |
2104 | * testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file. | |
2105 | * testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file. | |
2106 | * testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file. | |
2107 | * testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file. | |
2108 | * testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file. | |
2109 | * testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file. | |
2110 | * testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file. | |
2111 | * testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file. | |
2112 | * testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file. | |
2113 | * testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file. | |
2114 | * testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file. | |
2115 | * testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file. | |
2116 | * testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file. | |
2117 | * testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file. | |
2118 | * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file. | |
2119 | * testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file. | |
2120 | * testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file. | |
2121 | * testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file. | |
2122 | * testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file. | |
2123 | * testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file. | |
2124 | * testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file. | |
2125 | * testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file. | |
2126 | * testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file. | |
2127 | * testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file. | |
2128 | * testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file. | |
2129 | * testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file. | |
2130 | * testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file. | |
2131 | * testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file. | |
2132 | * testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file. | |
2133 | * testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file. | |
2134 | * testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file. | |
2135 | * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_construct.cc: New file. | |
2136 | * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc: New file. | |
2137 | * testsuite/testsuite/20_util/specialized_algorithms/pstl/uninitialized_fill_destroy.cc: New file. | |
2138 | * testsuite/testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: New file. | |
2139 | * testsuite/testsuite/25_algorithms/pstl/alg_merge/merge.cc: New file. | |
2140 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_if.cc: New file. | |
2141 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/copy_move.cc: New file. | |
2142 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/fill.cc: New file. | |
2143 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/generate.cc: New file. | |
2144 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/is_partitioned.cc: New file. | |
2145 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition.cc: New file. | |
2146 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/partition_copy.cc: New file. | |
2147 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove.cc: New file. | |
2148 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/remove_copy.cc: New file. | |
2149 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace.cc: New file. | |
2150 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/replace_copy.cc: New file. | |
2151 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate.cc: New file. | |
2152 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/rotate_copy.cc: New file. | |
2153 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/swap_ranges.cc: New file. | |
2154 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_binary.cc: New file. | |
2155 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/transform_unary.cc: New file. | |
2156 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique.cc: New file. | |
2157 | * testsuite/testsuite/25_algorithms/pstl/alg_modifying_operations/unique_copy_equal.cc: New file. | |
2158 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/adjacent_find.cc: New file. | |
2159 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/all_of.cc: New file. | |
2160 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/any_of.cc: New file. | |
2161 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/count.cc: New file. | |
2162 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/equal.cc: New file. | |
2163 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find.cc: New file. | |
2164 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_end.cc: New file. | |
2165 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_first_of.cc: New file. | |
2166 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/find_if.cc: New file. | |
2167 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/for_each.cc: New file. | |
2168 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/mismatch.cc: New file. | |
2169 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/none_of.cc: New file. | |
2170 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc: New file. | |
2171 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse.cc: New file. | |
2172 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/reverse_copy.cc: New file. | |
2173 | * testsuite/testsuite/25_algorithms/pstl/alg_nonmodifying/search_n.cc: New file. | |
2174 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/includes.cc: New file. | |
2175 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_heap.cc: New file. | |
2176 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/is_sorted.cc: New file. | |
2177 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/lexicographical_compare.cc: New file. | |
2178 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/minmax_element.cc: New file. | |
2179 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc: New file. | |
2180 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/partial_sort_copy.cc: New file. | |
2181 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/set.cc: New file. | |
2182 | * testsuite/testsuite/25_algorithms/pstl/alg_sorting/sort.cc: New file. | |
2183 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/adjacent_difference.cc: New file. | |
2184 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/reduce.cc: New file. | |
2185 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/scan.cc: New file. | |
2186 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_reduce.cc: New file. | |
2187 | * testsuite/testsuite/26_numerics/pstl/numeric_ops/transform_scan.cc: New file. | |
2188 | ||
480b3b75 | 2189 | 2019-03-21 Jonathan Wakely <jwakely@redhat.com> |
2190 | ||
0a4390ac | 2191 | * include/c_compatibility/math.h [!__STDCPP_WANT_MATH_SPEC_FUNCS__] |
2192 | (assoc_laguerre, assoc_laguerref, assoc_laguerrel, assoc_legendre) | |
2193 | (assoc_legendref, assoc_legendrel, beta, betaf, betal, comp_ellint_1) | |
2194 | (comp_ellint_1f, comp_ellint_1l, comp_ellint_2, comp_ellint_2f) | |
2195 | (comp_ellint_2l, comp_ellint_3, comp_ellint_3f, comp_ellint_3l) | |
2196 | (cyl_bessel_i, cyl_bessel_if, cyl_bessel_il, cyl_bessel_j) | |
2197 | (cyl_bessel_jf, cyl_bessel_jl, cyl_bessel_k, cyl_bessel_kf) | |
2198 | (cyl_bessel_kl, cyl_neumann, cyl_neumannf, cyl_neumannl, ellint_1) | |
2199 | (ellint_1f, ellint_1l, ellint_2, ellint_2f, ellint_2l, ellint_3) | |
2200 | (ellint_3f, ellint_3l, expint, expintf, expintl, hermite, hermitef) | |
2201 | (hermitel, laguerre, laguerref, laguerrel, legendre, legendref) | |
2202 | (legendrel, riemann_zeta, riemann_zetaf, riemann_zetal, sph_bessel) | |
2203 | (sph_besself, sph_bessell, sph_legendre, sph_legendref, sph_legendrel) | |
2204 | (sph_neumann, sph_neumannf, sph_neumannl): Only add using-declarations | |
2205 | when the special functions IS is enabled, not for C++17. | |
2206 | * testsuite/26_numerics/headers/cmath/functions_global_c++17.cc: | |
2207 | Replace with ... | |
2208 | * testsuite/26_numerics/headers/cmath/functions_global.cc: New test, | |
2209 | without checks for special functions in C++17. | |
2210 | * testsuite/26_numerics/headers/cmath/special_functions_global.cc: | |
2211 | New test. | |
2212 | ||
480b3b75 | 2213 | PR libstdc++/88066 |
2214 | * include/backward/hash_map: Use <> for includes not "". | |
2215 | * include/backward/hash_set: Likewise. | |
2216 | * include/backward/strstream: Likewise. | |
2217 | * include/tr1/bessel_function.tcc: Likewise. | |
2218 | * include/tr1/exp_integral.tcc: Likewise. | |
2219 | * include/tr1/legendre_function.tcc: Likewise. | |
2220 | * include/tr1/modified_bessel_func.tcc: Likewise. | |
2221 | * include/tr1/riemann_zeta.tcc: Likewise. | |
2222 | ||
ed360d55 | 2223 | 2019-03-19 Jonathan Wakely <jwakely@redhat.com> |
2224 | ||
2225 | * doc/xml/manual/allocator.xml: Link to table documenting evolution | |
2226 | of extension allocators. | |
2227 | * doc/xml/manual/evolution.xml: Use angle brackets for header names. | |
2228 | Document new headers in 7.2, 8.1 and 9.1 releases. | |
2229 | * doc/xml/manual/using.xml: Adjust link target for new_allocator. | |
2230 | * doc/html/*: Regenerate. | |
2231 | ||
8f9d7eb1 | 2232 | 2019-03-12 John David Anglin <dave.anglin@bell.net> |
2233 | ||
2234 | PR libstdc++/89461 | |
2235 | * testsuite/lib/libstdc++.exp: Locate libatomic. | |
2236 | * testsuite/lib/dg-options.exp (add_options_for_libatomic): New. | |
2237 | * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Add | |
2238 | libatomic options. | |
2239 | * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. | |
2240 | * testsuite/experimental/net/timer/waitable/cons.cc: Likewise. | |
2241 | * testsuite/experimental/net/timer/waitable/dest.cc: Likewise. | |
2242 | * testsuite/experimental/net/timer/waitable/ops.cc: Likewise. | |
2243 | ||
0bd005b6 | 2244 | 2019-03-11 Jonathan Wakely <jwakely@redhat.com> |
2245 | ||
5995ba3a | 2246 | PR libstdc++/89460 |
2247 | * configure.ac: Check for sockatmark. | |
2248 | * crossconfig.m4: Check for sockatmark. | |
2249 | * config.h.in: Regenerate. | |
2250 | * configure: Regenerate. | |
2251 | * include/experimental/internet (address_v4::_S_hton): Rename | |
2252 | overloaded functions to _S_hton_16 and _S_ntoh_16. | |
2253 | (address_v4::_S_ntoh): Rename to _S_ntoh_16 and _S_ntoh_32. | |
2254 | (basic_endpoint): Adjust calls to _S_hton and _S_ntoh. | |
2255 | * include/experimental/socket (basic_socket::at_mark): Check | |
2256 | _GLIBCXX_HAVE_SOCKATMARK. | |
2257 | ||
5aa8571a | 2258 | * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc: Use |
2259 | const variables instead of macros. | |
2260 | ||
0bd005b6 | 2261 | PR libstdc++/89629 |
2262 | * libsupc++/hash_bytes.cc [__SIZEOF_SIZE_T__ == 8] (_Hash_bytes): | |
2263 | Use correct type for len_aligned. | |
2264 | * testsuite/20_util/hash/89629.cc: New test. | |
2265 | ||
bc204227 | 2266 | 2019-03-11 Jakub Jelinek <jakub@redhat.com> |
2267 | ||
2268 | PR libstdc++/89641 | |
2269 | * include/std/atomic (atomic<T>::store, atomic<T>::load, | |
2270 | atomic<T>::exchange, atomic<T>::compare_exchange_weak, | |
2271 | atomic<T>::compare_exchange_strong): Cast __m or __s and __f to int. | |
2272 | * include/bits/atomic_base.h (__atomic_base<T>::operator++, | |
2273 | __atomic_base<T>::operator--, __atomic_base<T>::operator+=, | |
2274 | __atomic_base<T>::operator-=, __atomic_base<T>::operator&=, | |
2275 | __atomic_base<T>::operator|=, __atomic_base<T>::operator^=, | |
2276 | __atomic_base<T*>::operator++, __atomic_base<T*>::operator--, | |
2277 | __atomic_base<T*>::operator+=, __atomic_base<T*>::operator-=): Cast | |
2278 | memory_order_seq_cst to int. | |
2279 | ||
fc557c2b | 2280 | 2019-03-08 Jonathan Wakely <jwakely@redhat.com> |
2281 | ||
59b5e890 | 2282 | * doc/xml/manual/using.xml: Use link element instead of xref. |
2283 | * doc/html/*: Regenerate. | |
2284 | ||
fc557c2b | 2285 | * include/bits/fs_path.h (path::format): Add fixed underlying type. |
2286 | ||
66c6ff9e | 2287 | 2019-03-08 François Dumont <fdumont@gcc.gnu.org> |
2288 | ||
448338d0 | 2289 | PR libstdc++/89477 |
2290 | * include/debug/map.h (map): Use _RequireNotAllocator to constrain | |
2291 | parameters in deduction guides. | |
2292 | * include/debug/multimap.h (multimap): Likewise. | |
2293 | * include/debug/set.h (multimap): Likewise. | |
2294 | * include/debug/multiset.h (multimap): Likewise. | |
2295 | * include/debug/unordered_map (unordered_map): Likewise. | |
2296 | (unordered_multimap): Likewise. | |
2297 | * include/debug/unordered_set (unordered_set): Likewise. | |
2298 | (unordered_multiset): Likewise. | |
2299 | ||
66c6ff9e | 2300 | PR libstdc++/89608 |
2301 | * include/debug/unordered_map (unordered_map<>::_M_check_rehashed): | |
2302 | Invalidate all iterators in case of rehash. | |
2303 | (unordered_multimap<>::_M_check_rehashed): Likewise. | |
2304 | * include/debug/unordered_set | |
2305 | (unordered_set<>::_M_check_rehashed): Likewise. | |
2306 | (unordered_multiset<>::_M_check_rehashed): Likewise. | |
2307 | * testsuite/23_containers/unordered_set/debug/89608_neg.cc: New. | |
2308 | ||
32e92dc2 | 2309 | 2019-03-07 Andreas Schwab <schwab@suse.de> |
2310 | ||
2311 | * config/abi/post/riscv64-linux-gnu: New directory. | |
2312 | * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: New file. | |
2313 | ||
61dcf2e1 | 2314 | 2019-03-07 Jonathan Wakely <jwakely@redhat.com> |
2315 | ||
682ee94e | 2316 | * testsuite/20_util/function_objects/bind_front/1.cc: Change from |
2317 | compile test to run. Fix typo. | |
2318 | ||
f24442bd | 2319 | * doc/xml/manual/status_cxx2020.xml: Update C++20 status. |
2320 | * doc/html/*: Regenerate. | |
2321 | ||
61dcf2e1 | 2322 | P0356R5 Simplified partial function application |
2323 | * include/std/functional [C++20] (_Bind_front, _Bind_front_t): Define | |
2324 | helpers for bind_front. | |
2325 | (bind_front, __cpp_lib_bind_front): Define. | |
2326 | * testsuite/20_util/function_objects/bind_front/1.cc: New test. | |
2327 | ||
b4af2395 | 2328 | 2019-03-06 Jonathan Wakely <jwakely@redhat.com> |
2329 | ||
2330 | * include/std/type_traits (__cpp_lib_bounded_array_traits): Define. | |
2331 | * include/std/version (__cpp_lib_bounded_array_traits): Likewise. | |
2332 | * testsuite/20_util/is_bounded_array/value.cc: Check for macro. | |
2333 | * testsuite/20_util/is_unbounded_array/value.cc: Likewise. | |
2334 | ||
f1857b8b | 2335 | 2019-03-06 Edward Smith-Rowland <3dw4rd@verizon.net> |
2336 | ||
2337 | PR libstdc++/86655 - std::assoc_legendre should not constrain | |
2338 | the value of m (or x). | |
2339 | * include/tr1/legendre_function.tcc (__assoc_legendre_p, | |
2340 | __sph_legendre): If degree > order Don't throw, return 0. | |
2341 | (__legendre_p, __assoc_legendre_p): Don't constrain x either. | |
2342 | * testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test. | |
2343 | * testsuite/special_functions/20_sph_legendre/pr86655.cc: New test. | |
2344 | * testsuite/tr1/5_numerical_facilities/special_functions/ | |
2345 | 02_assoc_legendre/pr86655.cc: New test. | |
2346 | * testsuite/tr1/5_numerical_facilities/special_functions/ | |
2347 | 22_sph_legendre/pr86655.cc: New test. | |
2348 | ||
49c83dca | 2349 | 2019-03-06 Ville Voutilainen <ville.voutilainen@gmail.com> |
2350 | ||
2351 | Rewrite variant. | |
2352 | Also PR libstdc++/85517 | |
2353 | * include/std/variant (__do_visit): New. | |
2354 | (__variant_cast): Likewise. | |
2355 | (__variant_cookie): Likewise. | |
2356 | (__erased_*): Remove. | |
2357 | (_Variant_storage::_S_vtable): Likewise. | |
2358 | (_Variant_storage::__M_reset_impl): Adjust to use __do_visit. | |
2359 | (_Variant_storage::__M_reset): Adjust. | |
2360 | (__variant_construct): New. | |
2361 | (_Copy_ctor_base(const _Copy_ctor_base&)): Adjust to use | |
2362 | __variant_construct. | |
2363 | (_Move_ctor_base(_Move_ctor_base&&)): Likewise. | |
2364 | (_Move_ctor_base::__M_destructive_copy): New. | |
2365 | (_Move_ctor_base::__M_destructive_move): Adjust to use | |
2366 | __variant_construct. | |
2367 | (_Copy_assign_base::operator=): Adjust to use __do_visit. | |
2368 | (_Copy_assign_alias): Adjust to check both copy assignment | |
2369 | and copy construction for triviality. | |
2370 | (_Move_assign_base::operator=): Adjust to use __do_visit. | |
2371 | (_Multi_array): Add support for visitors that accept and return | |
2372 | a __variant_cookie. | |
2373 | (__gen_vtable_impl::_S_apply_all_alts): Likewise. | |
2374 | (__gen_vtable_impl::_S_apply_single_alt): Likewise. | |
2375 | (__gen_vtable_impl::__element_by_index_or_cookie): New. Generate | |
2376 | a __variant_cookie temporary for a variant that is valueless and.. | |
2377 | (__gen_vtable_impl::__visit_invoke): ..adjust here. | |
2378 | (__gen_vtable::_Array_type): Conditionally make space for | |
2379 | the __variant_cookie visitor case. | |
2380 | (__variant_construct_by_index): New. | |
2381 | (get_if): Adjust to use std::addressof. | |
2382 | (relops): Adjust to use __do_visit. | |
2383 | (variant): Add __variant_cast and __variant_construct_by_index | |
2384 | as friends. | |
2385 | (variant::emplace): Use _M_reset() and __variant_construct_by_index | |
2386 | instead of self-destruction. | |
2387 | (variant::swap): Adjust to use __do_visit. | |
2388 | (visit): Reimplement in terms of __do_visit. | |
2389 | (__variant_hash_call_base_impl::operator()): Adjust to use __do_visit. | |
2390 | * testsuite/20_util/variant/compile.cc: Adjust. | |
2391 | * testsuite/20_util/variant/run.cc: Likewise. | |
2392 | ||
13825fb2 | 2393 | 2019-03-06 Jonathan Wakely <jwakely@redhat.com> |
2394 | ||
2613fa6b | 2395 | * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to |
2396 | constant. | |
2397 | * testsuite/experimental/feat-char8_t.cc: Likewise. | |
2398 | ||
a17f06b3 | 2399 | * include/std/type_traits [C++20] (is_bounded_array) |
2400 | (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v): | |
2401 | Define. | |
2402 | * testsuite/20_util/is_bounded_array/requirements/ | |
2403 | explicit_instantiation.cc: New test. | |
2404 | * testsuite/20_util/is_bounded_array/requirements/typedefs.cc: New | |
2405 | test. | |
2406 | * testsuite/20_util/is_bounded_array/value.cc: New test. | |
2407 | * testsuite/20_util/is_unbounded_array/requirements/ | |
2408 | explicit_instantiation.cc: New test. | |
2409 | * testsuite/20_util/is_unbounded_array/requirements/typedefs.cc: New | |
2410 | * test. | |
2411 | * testsuite/20_util/is_unbounded_array/value.cc: New test. | |
2412 | ||
13825fb2 | 2413 | * include/bits/ptr_traits.h [C++20] (pointer_traits<T*>::pointer_to): |
2414 | Add constexpr. | |
2415 | * testsuite/20_util/pointer_traits/pointer_to_constexpr.cc: New test. | |
2416 | ||
2e73e63a | 2417 | 2019-03-05 Jonathan Wakely <jwakely@redhat.com> |
2418 | ||
2419 | * include/c_compatibility/math.h [C++20] (lerp): Add using | |
2420 | declaration. | |
2421 | * include/c_global/cmath [C++20] (__cpp_lib_interpolate): Define. | |
2422 | (__lerp): Define function template to implement lerp. | |
2423 | (lerp(float, float, float), lerp(double, double, double)) | |
2424 | (lerp(long double, long double, long double)): Define for C++20. | |
2425 | * include/std/numeric [C++20] (__cpp_lib_interpolate): Define. | |
2426 | (midpoint(T, T), midpoint(T*, T*)): Define. | |
2427 | * include/std::version [C++20] (__cpp_lib_interpolate): Define. | |
2428 | * testsuite/26_numerics/lerp.cc: New test. | |
2429 | * testsuite/26_numerics/midpoint/floating.cc: New test. | |
2430 | * testsuite/26_numerics/midpoint/integral.cc: New test. | |
2431 | * testsuite/26_numerics/midpoint/pointer.cc: New test. | |
2432 | ||
08d3ce5b | 2433 | 2019-03-04 Edward Smith-Rowland <3dw4rd@verizon.net> |
2434 | ||
2435 | PR libstdc++/88996 Implement P0439R0 | |
2436 | Make std::memory_order a scoped enumeration. | |
2437 | * include/bits/atomic_base.h: For C++20 make memory_order a scoped enum, | |
2438 | add variables for the old enumerators. Adjust calls. | |
2439 | * testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test. | |
2440 | * testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test. | |
2441 | ||
ad29ad75 | 2442 | 2019-03-04 Jonathan Wakely <jwakely@redhat.com> |
2443 | ||
4233f2a8 | 2444 | * testsuite/26_numerics/bit/bitops.rot/rotl.cc: Remove bogus dg-do |
2445 | directive. | |
2446 | ||
ad29ad75 | 2447 | * include/std/memory_resource (polymorphic_allocator): Add default |
2448 | template argument for C++20. | |
2449 | (polymorphic_allocator::allocate_bytes) | |
2450 | (polymorphic_allocator::deallocate_bytes) | |
2451 | (polymorphic_allocator::allocate_object) | |
2452 | (polymorphic_allocator::deallocate_object) | |
2453 | (polymorphic_allocator::new_object) | |
2454 | (polymorphic_allocator::delete_object): New member functions for | |
2455 | C++20. | |
2456 | * testsuite/20_util/polymorphic_allocator/allocate_object.cc: New | |
2457 | test. | |
2458 | ||
d4c27c4a | 2459 | 2019-03-03 Jonathan Wakely <jwakely@redhat.com> |
2460 | ||
2461 | PR libstdc++/89562 | |
2462 | * src/filesystem/ops-common.h (do_copy_file): Open files in binary | |
2463 | mode for mingw. | |
2464 | ||
6a9c77f1 | 2465 | 2019-03-01 Jonathan Wakely <jwakely@redhat.com> |
2466 | ||
5b313df9 | 2467 | * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource) |
2468 | [!__cpp_sized_deallocation]: Do not pass size to operator delete. | |
2469 | ||
6a9c77f1 | 2470 | * include/std/memory (uses_allocator_construction_args): New set of |
2471 | overloaded functions. | |
2472 | (make_obj_using_allocator, uninitialized_construct_using_allocator): | |
2473 | New functions. | |
2474 | * include/std/memory_resource (polymorphic_allocator::construct) | |
2475 | [__cplusplus > 201703l]: Replace all overloads with a single function | |
2476 | using uses_allocator_construction_args. | |
2477 | * testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New | |
2478 | test. | |
2479 | * testsuite/20_util/uses_allocator/make_obj.cc: New test. | |
2480 | ||
53ea0887 | 2481 | 2019-02-27 Jonathan Wakely <jwakely@redhat.com> |
2482 | ||
2483 | PR libstdc++/89466 | |
2484 | * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local | |
2485 | stylesheet directories before check for xsltproc. Try to use | |
2486 | xmlcatalog to find local stylesheet directory before trying hardcoded | |
2487 | paths. Add path used by suse to hardcoded paths. Adjust xsltproc | |
2488 | check to look for the same stylesheet as doc/Makefile.am uses. Don't | |
2489 | use xsltproc if xmlcatalog fails to find a local stylesheet. | |
2490 | * configure.ac: Check for xmlcatalog. | |
2491 | * Makefile.in: Regenerate. | |
2492 | * configure: Likewise. | |
2493 | * doc/Makefile.in: Likewise. | |
2494 | * include/Makefile.in: Likewise. | |
2495 | * libsupc++/Makefile.in: Likewise. | |
2496 | * po/Makefile.in: Likewise. | |
2497 | * python/Makefile.in: Likewise. | |
2498 | * src/Makefile.in: Likewise. | |
2499 | * src/c++11/Makefile.in: Likewise. | |
2500 | * src/c++17/Makefile.in: Likewise. | |
2501 | * src/c++98/Makefile.in: Likewise. | |
2502 | * src/filesystem/Makefile.in: Likewise. | |
2503 | * testsuite/Makefile.in: Likewise. | |
2504 | ||
72ebb7e8 | 2505 | 2019-02-26 Jonathan Wakely <jwakely@redhat.com> |
2506 | ||
a7f2f1b1 | 2507 | PR libstdc++/89477 |
2508 | * include/bits/alloc_traits.h (_RequireNotAllocator): New helper for | |
2509 | container deduction guides. | |
2510 | * include/bits/hashtable.h (_RequireNotAllocatorOrIntegral): Likewise. | |
2511 | * include/bits/stl_map.h (map): Use _RequireNotAllocator to constrain | |
2512 | parameters in deduction guides. | |
2513 | * include/bits/stl_multimap.h (multimap): Likewise. | |
2514 | * include/bits/stl_multiset.h (multiset): Likewise. | |
2515 | * include/bits/stl_queue.h (queue, priority_queue): Likewise. | |
2516 | * include/bits/stl_set.h (set): Likewise. | |
2517 | * include/bits/stl_stack.h (stack): Likewise. | |
2518 | * include/bits/unordered_map.h (unordered_map, unordered_multimap): | |
2519 | use _RequireNotAllocator and _RequireNotAllocatorOrIntegral to | |
2520 | constrain parameters in deduction guides. | |
2521 | * include/bits/unordered_set.h (unordered_set, unordered_multiset): | |
2522 | Likewise. | |
2523 | * testsuite/23_containers/map/cons/deduction.cc: Test additional | |
2524 | deduction cases. | |
2525 | * testsuite/23_containers/multiset/cons/deduction.cc: Likewise. | |
2526 | * testsuite/23_containers/set/cons/deduction.cc: Likewise. | |
2527 | * testsuite/23_containers/unordered_map/cons/deduction.cc: Likewise. | |
2528 | * testsuite/23_containers/unordered_multimap/cons/deduction.cc: | |
2529 | Likewise. | |
2530 | * testsuite/23_containers/unordered_multiset/cons/deduction.cc: | |
2531 | Likewise. | |
2532 | * testsuite/23_containers/unordered_set/cons/deduction.cc: Likewise. | |
2533 | ||
72ebb7e8 | 2534 | PR libstdc++/89416 |
2535 | * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Change | |
2536 | to class template and partial specialization using void_t. | |
2537 | (__is_copy_insertable, __is_move_insertable): Adjust base class. | |
2538 | ||
c9f61a64 | 2539 | 2019-02-24 Jonathan Wakely <jwakely@redhat.com> |
2540 | ||
2541 | PR libstdc++/89416 | |
2542 | * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Make | |
2543 | copy and move members public. | |
2544 | ||
61e2d6f7 | 2545 | 2019-02-23 Jonathan Wakely <jwakely@redhat.com> |
2546 | ||
87798f3f | 2547 | * include/std/type_traits (__underlying_type_impl): New helper to |
2548 | make underlying_type SFINAE-friendly. | |
2549 | (underlying_type): Derive from __underlying_type_impl. | |
2550 | * testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New | |
2551 | test. | |
2552 | ||
61e2d6f7 | 2553 | PR libstdc++/89446 |
2554 | * include/bits/char_traits.h (__constant_char_array): Check index is | |
2555 | in range before dereferencing. | |
2556 | (char_traits<char>::compare, char_traits<char>::find) | |
2557 | (char_traits<char8_t>::compare, char_traits<char8_t>::find): Return | |
2558 | immediately if n is zero. | |
2559 | (char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise. | |
2560 | Remove workarounds for PR 67026. | |
2561 | * testsuite/21_strings/basic_string_view/operators/char/89446.cc: | |
2562 | New test. | |
2563 | * testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc: | |
2564 | New test. | |
2565 | ||
90a443b3 | 2566 | 2019-02-22 Eric Botcazou <ebotcazou@adacore.com> |
2567 | ||
2568 | * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: Adjust. | |
2569 | * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: Likewise. | |
2570 | ||
98485ce3 | 2571 | 2019-02-22 Jakub Jelinek <jakub@redhat.com> |
2572 | ||
2573 | PR libstdc++/89402 | |
2574 | * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Change return | |
2575 | type to std::size_t and argument to type to long double. | |
2576 | ||
26b4fc38 | 2577 | 2019-02-22 Eric Botcazou <ebotcazou@adacore.com> |
2578 | ||
2579 | * configure.host (abi_baseline_pair): Adjust for SPARC64/Linux. | |
2580 | * config/abi/post/sparc64-linux-gnu: New directory. | |
2581 | * config/abi/post/sparc64-linux-gnu/baseline_symbols.txt: New file. | |
2582 | * config/abi/post/sparc64-linux-gnu/32: New directory. | |
2583 | * config/abi/post/sparc64-linux-gnu/32/baseline_symbols.txt: New file. | |
2584 | ||
4f847a8e | 2585 | 2019-02-21 Jonathan Wakely <jwakely@redhat.com> |
2586 | ||
2587 | * testsuite/29_atomics/headers/atomic/types_std_c++20.cc: New test. | |
2588 | * testsuite/29_atomics/headers/atomic/types_std_c++20_neg.cc: New | |
2589 | test. | |
2590 | ||
aad651b3 | 2591 | 2019-02-22 Tom Honermann <tom@honermann.net> |
2592 | ||
2593 | * python/libstdcxx/v6/printers.py (register_type_printers): Add type | |
2594 | printers for u8string and u8string_view. | |
2595 | ||
c783b3cc | 2596 | 2019-02-22 Tom Honermann <tom@honermann.net> |
2597 | ||
2598 | * testsuite/18_support/byte/ops.cc: Validate | |
2599 | std::to_integer<char8_t>, std::to_integer<char16_t>, and | |
2600 | std::to_integer<char32_t>. | |
2601 | * testsuite/18_support/numeric_limits/dr559.cc: Validate | |
2602 | std::numeric_limits<char8_t>. | |
2603 | * testsuite/18_support/numeric_limits/lowest.cc: Validate | |
2604 | std::numeric_limits<char8_t>::lowest(). | |
2605 | * testsuite/18_support/numeric_limits/max_digits10.cc: Validate | |
2606 | std::numeric_limits<char8_t>::max_digits10. | |
2607 | * testsuite/18_support/type_info/fundamental.cc: Validate | |
2608 | typeinfo for char8_t. | |
2609 | * testsuite/20_util/from_chars/1_c++20_neg.cc: New test, validating | |
2610 | std::from_chars with char8_t. | |
2611 | * testsuite/20_util/hash/requirements/explicit_instantiation.cc: | |
2612 | Validate explicit instantiation of std::hash<char8_t>. | |
2613 | * testsuite/20_util/is_integral/value.cc: Validate | |
2614 | std::is_integral<char8_t>. | |
2615 | * testsuite/20_util/make_signed/requirements/typedefs-4.cc: | |
2616 | Validate std::make_signed<char8_t>. | |
2617 | * testsuite/21_strings/basic_string/cons/char/deduction.cc: | |
2618 | Validate u8string construction from char8_t sources. | |
2619 | * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Validate | |
2620 | std::pmr::u8string. | |
2621 | * testsuite/21_strings/basic_string_view/operations/compare/ | |
2622 | char/70483.cc: Validate substr operations on u8string_view. | |
2623 | * testsuite/21_strings/basic_string_view/typedefs.cc: Validate that | |
2624 | the u8string_view typedef is defined. | |
2625 | * testsuite/21_strings/char_traits/requirements/ | |
2626 | constexpr_functions.cc: Validate char_traits<char8_t> constexpr | |
2627 | member functions. | |
2628 | * testsuite/21_strings/char_traits/requirements/ | |
2629 | constexpr_functions_c++17.cc: Validate char_traits<char8_t> C++17 | |
2630 | constexpr member functions. | |
2631 | * testsuite/21_strings/headers/string/types_std_c++0x.cc: Validate | |
2632 | that the u8string typedef is defined. | |
2633 | * testsuite/22_locale/locale/cons/unicode.cc: Validate the presence | |
2634 | of the std::codecvt<char16_t, char8_t, std::mbstate_t> and | |
2635 | std::codecvt<char32_t, char8_t, std::mbstate_t> facets. | |
2636 | * testsuite/29_atomics/atomic/cons/assign_neg.cc: Update line | |
2637 | numbers. | |
2638 | * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise. | |
2639 | * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: | |
2640 | Likewise. | |
2641 | * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise. | |
2642 | * testsuite/29_atomics/atomic_integral/is_always_lock_free.cc: | |
2643 | Validate std::atomic<char8_t>::is_always_lock_free | |
2644 | * testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc: | |
2645 | Update line numbers. | |
2646 | * testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc: | |
2647 | Likewise. | |
2648 | * testsuite/29_atomics/atomic_integral/operators/increment_neg.cc: | |
2649 | Likewise. | |
2650 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc: | |
2651 | Validate std::experimental::pmr::u8string. | |
2652 | * testsuite/experimental/string_view/typedefs.cc: Validate that the | |
2653 | u8string_view typedef is defined. | |
2654 | * testsuite/util/testsuite_common_types.h: Add char8_t, char16_t and | |
2655 | char32_t to the typelists. | |
2656 | ||
ef96a935 | 2657 | 2019-02-22 Tom Honermann <tom@honermann.net> |
2658 | ||
2659 | * include/ext/typelist.h: Constrain a partial specialization of | |
2660 | typelist::detail::append_ to only match chain<T1,T2>. | |
2661 | ||
d373b606 | 2662 | 2019-02-21 Jonathan Wakely <jwakely@redhat.com> |
2663 | ||
2664 | PR libstdc++/89416 | |
2665 | * include/bits/alloc_traits.h (__is_alloc_insertable_impl): Replace | |
2666 | class template with class. Replace move and copy member types with | |
2667 | member alias templates, so they are only instantiated when needed. | |
2668 | (__is_copy_insertable, __is_move_insertable): Adjust base class. | |
2669 | * testsuite/23_containers/vector/modifiers/push_back/89130.cc: Enable | |
2670 | test for C++11/14/17 as well. | |
2671 | * testsuite/23_containers/vector/modifiers/push_back/89416.cc: New | |
2672 | test. | |
2673 | ||
25395ee8 | 2674 | 2019-02-20 Jakub Jelinek <jakub@redhat.com> |
2675 | ||
2676 | PR libstdc++/89402 | |
2677 | * src/c++98/compatibility-ldbl.cc (_ZNKSt4hashIeEclEe): Add | |
2678 | _GLIBCXX_PURE to the alias declaration. | |
2679 | ||
affcb65b | 2680 | 2019-02-19 Jonathan Wakely <jwakely@redhat.com> |
2681 | ||
2682 | * testsuite/21_strings/basic_string/literals/types.cc | |
2683 | [_GLIBCXX_USE_CHAR8_T]: Adjust expected string type for u8 literal. | |
2684 | * testsuite/21_strings/basic_string/literals/values.cc | |
2685 | [_GLIBCXX_USE_CHAR8_T]: Likewise. | |
2686 | * testsuite/22_locale/codecvt/char16_t.cc: Adjust for u8 literals | |
2687 | potentially having different type. | |
2688 | * testsuite/22_locale/codecvt/char32_t.cc: Likewise. | |
2689 | * testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: Cast u8 literal | |
2690 | to char. | |
2691 | * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: Likewise. | |
2692 | * testsuite/22_locale/codecvt/utf8.cc: Likewise. | |
2693 | * testsuite/22_locale/conversions/string/2.cc: Remove u8 prefix from | |
2694 | string literals only using basic character set. | |
2695 | * testsuite/22_locale/conversions/string/3.cc: Likewise. Cast other | |
2696 | u8 literals to char. | |
2697 | * testsuite/29_atomics/headers/atomic/macros.cc [_GLIBCXX_USE_CHAR8_T]: | |
2698 | Test ATOMIC_CHAR8_T_LOCK_FREE. | |
2699 | Add missing #error to ATOMIC_CHAR16_T_LOCK_FREE test. | |
2700 | * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc | |
2701 | [_GLIBCXX_USE_CHAR8_T]: Check for std::atomic_char8_t. | |
2702 | * testsuite/experimental/string_view/literals/types.cc | |
2703 | [_GLIBCXX_USE_CHAR8_T]: Adjust expected string_view type for u8 | |
2704 | literal. | |
2705 | * testsuite/experimental/string_view/literals/values.cc | |
2706 | [_GLIBCXX_USE_CHAR8_T]: Likewise. | |
2707 | ||
4acc5060 | 2708 | 2019-02-19 Tom Honermann <tom@honermann.net> |
2709 | ||
2710 | * testsuite/18_support/numeric_limits/char8_t.cc: New test cloned | |
2711 | from char16_32_t.cc; validates numeric_limits<char8_t>. | |
2712 | * testsuite/21_strings/basic_string/literals/types-char8_t.cc: New | |
2713 | test cloned from types.cc; validates operator""s for char8_t | |
2714 | returns u8string. | |
2715 | * testsuite/21_strings/basic_string/literals/values-char8_t.cc: New | |
2716 | test cloned from values.cc; validates construction and comparison | |
2717 | of u8string values. | |
2718 | * testsuite/21_strings/basic_string/requirements/ | |
2719 | /explicit_instantiation/char8_t/1.cc: New test cloned from | |
2720 | char16_t/1.cc; validates explicit instantiation of | |
2721 | basic_string<char8_t>. | |
2722 | * testsuite/21_strings/basic_string_view/literals/types-char8_t.cc: | |
2723 | New test cloned from types.cc; validates operator""sv for char8_t | |
2724 | returns u8string_view. | |
2725 | * testsuite/21_strings/basic_string_view/literals/ | |
2726 | values-char8_t.cc: New test cloned from values.cc; validates | |
2727 | construction and comparison of u8string_view values. | |
2728 | * testsuite/21_strings/basic_string_view/requirements/ | |
2729 | explicit_instantiation/char8_t/1.cc: New test cloned from | |
2730 | char16_t/1.cc; validates explicit instantiation of | |
2731 | basic_string_view<char8_t>. | |
2732 | * testsuite/21_strings/char_traits/requirements/char8_t/65049.cc: | |
2733 | New test cloned from char16_t/65049.cc; validates that | |
2734 | char_traits<char8_t> is not vulnerable to the concerns in PR65049. | |
2735 | * testsuite/21_strings/char_traits/requirements/char8_t/ | |
2736 | typedefs.cc: New test cloned from char16_t/typedefs.cc; validates | |
2737 | that char_traits<char8_t> member typedefs are present and correct. | |
2738 | * testsuite/21_strings/char_traits/requirements/ | |
2739 | explicit_instantiation/char8_t/1.cc: New test cloned from | |
2740 | char16_t/1.cc; validates explicit instantiation of | |
2741 | char_traits<char8_t>. | |
2742 | * testsuite/22_locale/codecvt/char16_t-char8_t.cc: New test cloned | |
2743 | from char16_t.cc: validates | |
2744 | codecvt<char16_t, char8_t, mbstate_t>. | |
2745 | * testsuite/22_locale/codecvt/char32_t-char8_t.cc: New test cloned | |
2746 | from char32_t.cc: validates | |
2747 | codecvt<char32_t, char8_t, mbstate_t>. | |
2748 | * testsuite/22_locale/codecvt/utf8-char8_t.cc: New test cloned from | |
2749 | utf8.cc; validates codecvt<char16_t, char8_t, std::mbstate_t> and | |
2750 | codecvt<char32_t, char8_t, std::mbstate_t>. | |
2751 | * testsuite/27_io/filesystem/path/native/string-char8_t.cc: New | |
2752 | test cloned from string.cc; validates filesystem::path construction | |
2753 | from char8_t input. | |
2754 | * testsuite/experimental/feat-char8_t.cc: New test; validates that | |
2755 | the __cpp_lib_char8_t feature test macro is defined with the | |
2756 | correct value. | |
2757 | * testsuite/experimental/filesystem/path/native/string-char8_t.cc: | |
2758 | New test cloned from string.cc; validates filesystem::path | |
2759 | construction from char8_t input. | |
2760 | * testsuite/experimental/string_view/literals/types-char8_t.cc: New | |
2761 | test cloned from types.cc; validates operator""sv for char8_t | |
2762 | returns u8string_view. | |
2763 | * testsuite/experimental/string_view/literals/values-char8_t.cc: | |
2764 | New test cloned from values.cc; validates construction and | |
2765 | comparison of u8string_view values. | |
2766 | * testsuite/experimental/string_view/requirements/ | |
2767 | explicit_instantiation/char8_t/1.cc: New test cloned from | |
2768 | char16_t/1.cc; validates explicit instantiation of | |
2769 | basic_string_view<char8_t>. | |
2770 | * testsuite/ext/char8_t/atomic-1.cc: New test; validates that | |
2771 | ATOMIC_CHAR8_T_LOCK_FREE is not defined if char8_t support is not | |
2772 | enabled. | |
2773 | ||
25694c85 | 2774 | 2019-02-19 Tom Honermann <tom@honermann.net> |
2775 | ||
2776 | P0482R5 char8_t: Standard library support | |
2777 | * config/abi/pre/gnu-versioned-namespace.ver (CXXABI_2.0): Add | |
2778 | typeinfo symbols for char8_t. | |
2779 | * config/abi/pre/gnu.ver: Add CXXABI_1.3.12. | |
2780 | (GLIBCXX_3.4.26): Add symbols for specializations of | |
2781 | numeric_limits and codecvt that involve char8_t. | |
2782 | (CXXABI_1.3.12): Add typeinfo symbols for char8_t. | |
2783 | * include/bits/atomic_base.h: Add atomic_char8_t. | |
2784 | * include/bits/basic_string.h: Add std::hash<u8string> and | |
2785 | operator""s(const char8_t*, size_t). | |
2786 | * include/bits/c++config: Define _GLIBCXX_USE_CHAR8_T and | |
2787 | __cpp_lib_char8_t. | |
2788 | * include/bits/char_traits.h: Add char_traits<char8_t>. | |
2789 | * include/bits/codecvt.h: Add | |
2790 | codecvt<char16_t, char8_t, mbstate_t>, | |
2791 | codecvt<char32_t, char8_t, mbstate_t>, | |
2792 | codecvt_byname<char16_t, char8_t, mbstate_t>, and | |
2793 | codecvt_byname<char32_t, char8_t, mbstate_t>. | |
2794 | * include/bits/cpp_type_traits.h: Add __is_integer<char8_t> to | |
2795 | recognize char8_t as an integral type. | |
2796 | * include/bits/fs_path.h: (path::__is_encoded_char): Recognize | |
2797 | char8_t. | |
2798 | (path::u8string): Return std::u8string when char8_t support is | |
2799 | enabled. | |
2800 | (path::generic_u8string): Likewise. | |
2801 | (path::_S_convert): Handle conversion from char8_t input. | |
2802 | (path::_S_str_convert): Likewise. | |
2803 | * include/bits/functional_hash.h: Add hash<char8_t>. | |
2804 | * include/bits/locale_conv.h (__str_codecvt_out): Add overloads for | |
2805 | char8_t. | |
2806 | * include/bits/locale_facets.h (_GLIBCXX_NUM_UNICODE_FACETS): Bump | |
2807 | for new char8_t specializations. | |
2808 | * include/bits/localefwd.h: Add missing declarations of | |
2809 | codecvt<char16_t, char, mbstate_t> and | |
2810 | codecvt<char32_t, char, mbstate_t>. Add char8_t declarations | |
2811 | codecvt<char16_t, char8_t, mbstate_t> and | |
2812 | codecvt<char32_t, char8_t, mbstate_t>. | |
2813 | * include/bits/postypes.h: Add u8streampos | |
2814 | * include/bits/stringfwd.h: Add declarations of | |
2815 | char_traits<char8_t> and u8string. | |
2816 | * include/c_global/cstddef: Add __byte_operand<char8_t>. | |
2817 | * include/experimental/bits/fs_path.h (path::__is_encoded_char): | |
2818 | Recognize char8_t. | |
2819 | (path::u8string): Return std::u8string when char8_t support is | |
2820 | enabled. | |
2821 | (path::generic_u8string): Likewise. | |
2822 | (path::_S_convert): Handle conversion from char8_t input. | |
2823 | (path::_S_str_convert): Likewise. | |
2824 | * include/experimental/string: Add u8string. | |
2825 | * include/experimental/string_view: Add u8string_view, | |
2826 | hash<experimental::u8string_view>, and | |
2827 | operator""sv(const char8_t*, size_t). | |
2828 | * include/std/atomic: Add atomic<char8_t> and atomic_char8_t. | |
2829 | * include/std/charconv (__is_int_to_chars_type): Recognize char8_t | |
2830 | as a character type. | |
2831 | * include/std/limits: Add numeric_limits<char8_t>. | |
2832 | * include/std/string_view: Add u8string_view, | |
2833 | hash<experimental::u8string_view>, and | |
2834 | operator""sv(const char8_t*, size_t). | |
2835 | * include/std/type_traits: Add __is_integral_helper<char8_t>, | |
2836 | __make_unsigned<char8_t>, and __make_signed<char8_t>. | |
2837 | * libsupc++/atomic_lockfree_defines.h: Define | |
2838 | ATOMIC_CHAR8_T_LOCK_FREE. | |
2839 | * src/c++11/Makefile.am: Compile with -fchar8_t when compiling | |
2840 | codecvt.cc and limits.cc so that char8_t specializations of | |
2841 | numeric_limits and codecvt and emitted. | |
2842 | * src/c++11/Makefile.in: Likewise. | |
2843 | * src/c++11/codecvt.cc: Define members of | |
2844 | codecvt<char16_t, char8_t, mbstate_t>, | |
2845 | codecvt<char32_t, char8_t, mbstate_t>, | |
2846 | codecvt_byname<char16_t, char8_t, mbstate_t>, and | |
2847 | codecvt_byname<char32_t, char8_t, mbstate_t>. | |
2848 | * src/c++11/limits.cc: Define members of | |
2849 | numeric_limits<char8_t>. | |
2850 | * src/c++98/Makefile.am: Compile with -fchar8_t when compiling | |
2851 | locale_init.cc and localename.cc. | |
2852 | * src/c++98/Makefile.in: Likewise. | |
2853 | * src/c++98/locale_init.cc: Add initialization for the | |
2854 | codecvt<char16_t, char8_t, mbstate_t> and | |
2855 | codecvt<char32_t, char8_t, mbstate_t> facets. | |
2856 | * src/c++98/localename.cc: Likewise. | |
2857 | * testsuite/util/testsuite_abi.cc: Validate ABI bump. | |
2858 | ||
140615bb | 2859 | 2019-02-18 Wilco Dijkstra <wdijkstr@arm.com> |
2860 | ||
2861 | * 27_io/filesystem/operations/all.cc: Add dg-require-filesystem-ts. | |
2862 | * 27_io/filesystem/operations/resize_file.cc: Likewise. | |
2863 | * 27_io/filesystem/path/generation/normal2.cc: Likewise. | |
2864 | ||
c677a9d7 | 2865 | 2019-02-14 Jonathan Wakely <jwakely@redhat.com> |
2866 | ||
1bbfe9f8 | 2867 | * doc/xml/manual/status_cxx2020.xml: Update P0887R1 status. |
2868 | * doc/html/*: Regenerate. | |
2869 | ||
b24f00b1 | 2870 | * doc/xml/manual/status_cxx2017.xml: Add P0063R3 to status table. |
2871 | * doc/html/*: Regenerate. | |
2872 | ||
a3d1baa9 | 2873 | * doc/xml/manual/intro.xml: Document LWG 2586 status. |
2874 | * include/bits/uses_allocator.h (__uses_alloc): Use const lvalue | |
2875 | allocator type in is_constructible checks. | |
2876 | * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error. | |
2877 | * testsuite/20_util/scoped_allocator/dr2586.cc: New test. | |
2878 | * testsuite/20_util/tuple/cons/allocators.cc: Add test using | |
2879 | problematic type from LWG 2586 discussion. | |
2880 | * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error. | |
2881 | * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise. | |
2882 | ||
99d130bf | 2883 | * configure.ac: Check for C11 timespec_get function. |
2884 | * crossconfig.m4 (freebsd, linux, gnu, cygwin, solaris, netbsd) | |
2885 | (openbsd): Likewise | |
2886 | * config.h.in: Regenerate. | |
2887 | * configure: Regenerate. | |
2888 | * include/c_global/ctime (timespec, timespec_get): Add to namespace | |
2889 | std for C++17 and up. | |
2890 | ||
48772ec3 | 2891 | * doc/xml/manual/intro.xml: Document LWG 2537 status. |
2892 | * include/bits/stl_queue.h | |
2893 | (priority_queue(const Compare&, const Container&, const Alloc&)) | |
2894 | (priority_queue(const Compare&, Container&&, const Alloc&)): Call | |
2895 | make_heap. | |
2896 | * testsuite/23_containers/priority_queue/dr2537.cc: New test. | |
2897 | ||
ee32dd64 | 2898 | * doc/xml/manual/intro.xml: Document LWG 2566 status. |
2899 | * include/bits/stl_queue.h (queue, priority_queue): Add static | |
2900 | assertions to enforce LWG 2566 requirement on value_type. | |
2901 | * include/bits/stl_stack.h (stack): Likewise. | |
2902 | ||
9724de38 | 2903 | PR middle-end/89303 |
2904 | * testsuite/20_util/enable_shared_from_this/89303.cc: New test. | |
2905 | ||
c677a9d7 | 2906 | * doc/xml/manual/intro.xml: Document LWG 2735 status. |
2907 | * include/bits/std_abs.h: Add comment about LWG 2735. | |
2908 | * testsuite/26_numerics/headers/cstdlib/dr2735.cc: New test. | |
2909 | ||
4194f872 | 2910 | 2019-02-13 Jonathan Wakely <jwakely@redhat.com> |
2911 | ||
2912 | PR libstdc++/89345 | |
2913 | * include/std/version [__cpp_impl_destroying_delete] | |
2914 | (__cpp_lib_destroying_delete): Only define for C++2a and later. | |
2915 | * libsupc++/new [__cpp_impl_destroying_delete] | |
2916 | (__cpp_lib_destroying_delete): Likewise. | |
2917 | (destroying_delete_t, destroying_delete): Likewise, but define even | |
2918 | when __cpp_impl_destroying_delete is not defined. | |
2919 | * testsuite/18_support/destroying_delete.cc: New test. | |
2920 | ||
aaacaee2 | 2921 | 2019-02-11 Jonathan Wakely <jwakely@redhat.com> |
2922 | ||
2923 | PR libstdc++/89023 | |
2924 | * testsuite/17_intro/headers/c++2011/parallel_mode.cc: New test. | |
2925 | * testsuite/17_intro/headers/c++2014/parallel_mode.cc: New test. | |
2926 | * testsuite/17_intro/headers/c++2017/parallel_mode.cc: New test. | |
2927 | * testsuite/28_regex/headers/regex/parallel_mode.cc: Remove. | |
2928 | ||
5256b0dd | 2929 | 2019-02-09 Jonathan Wakely <jwakely@redhat.com> |
2930 | ||
2931 | PR libstdc++/71044 | |
2932 | * include/bits/fs_path.h (path::has_root_name) | |
2933 | (path::has_root_directory, path::has_root_path) | |
2934 | (path::has_relative_path, path::has_parent_path) | |
2935 | (path::has_filename, path::has_stem, path::has_extension) | |
2936 | (path::is_absolute, path::is_relative, path::_M_find_extension): Add | |
2937 | noexcept. | |
2938 | * src/c++17/fs_path.cc (path::has_root_name) | |
2939 | (path::has_root_directory, path::has_root_path) | |
2940 | (path::has_relative_path, path::has_parent_path) | |
2941 | (path::has_filename, path::_M_find_extension): Add noexcept. | |
2942 | ||
e32f625e | 2943 | 2019-02-06 Jonathan Wakely <jwakely@redhat.com> |
2944 | ||
2945 | PR libstdc++/89102 (partial) | |
2946 | * include/std/type_traits (common_type<>): Define. | |
2947 | (common_type<T>): Derive from common_type<T, T>. | |
2948 | * testsuite/20_util/common_type/requirements/explicit_instantiation.cc: | |
2949 | Test zero-length template argument list. | |
2950 | * testsuite/20_util/common_type/requirements/sfinae_friendly_1.cc: | |
2951 | Test additional single argument cases. | |
2952 | * testsuite/20_util/common_type/requirements/sfinae_friendly_2.cc: | |
2953 | Adjust expected error. | |
2954 | ||
b03489db | 2955 | 2019-02-05 Jonathan Wakely <jwakely@redhat.com> |
2956 | ||
e89e4fec | 2957 | PR libstdc++/89128 |
2958 | * include/bits/stl_queue.h (queue, priority_queue): Add deduction | |
2959 | guides. | |
2960 | * include/bits/stl_stack.h (stack): Likewise. | |
2961 | * testsuite/23_containers/priority_queue/deduction.cc: New test. | |
2962 | * testsuite/23_containers/queue/deduction.cc: New test. | |
2963 | * testsuite/23_containers/stack/deduction.cc: New test. | |
2964 | ||
b640dd11 | 2965 | PR libstdc++/89194 |
2966 | * include/std/type_traits (__is_convertible_helper) | |
2967 | (__is_convertible_helper<_From, _To, false>): Revert changes to | |
2968 | support is_nothrow_convertible. | |
2969 | (__is_nt_convertible_helper): New helper. | |
2970 | (is_nothrow_convertible): Use __is_nt_convertible_helper. | |
2971 | ||
74c88c5f | 2972 | * testsuite/23_containers/vector/modifiers/push_back/49836.cc: Restore |
2973 | use of CopyConsOnlyType, but also test DelAnyAssign for completeness. | |
2974 | ||
eca5e8d4 | 2975 | PR libstdc++/89130 |
2976 | * include/bits/alloc_traits.h (__is_copy_insertable_impl): Rename to | |
2977 | __is_alloc_insertable_impl. Replace single type member with two | |
2978 | members, one for each of copy and move insertable. | |
2979 | (__is_move_insertable): New trait for internal use. | |
2980 | * include/bits/stl_vector.h (vector::_S_nothrow_relocate(true_type)) | |
2981 | (vector::_S_nothrow_relocate(true_type)): New functions to | |
2982 | conditionally check if __relocate_a can throw. | |
2983 | (vector::_S_use_relocate()): Dispatch to _S_nothrow_relocate based | |
2984 | on __is_move_insertable. | |
2985 | (vector::_S_do_relocate): New overloaded functions to conditionally | |
2986 | call __relocate_a. | |
2987 | (vector::_S_relocate): New function that dispatches to _S_do_relocate | |
2988 | based on _S_use_relocate. | |
2989 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
2990 | (vector::_M_default_append): Call _S_relocate instead of __relocate_a. | |
2991 | * testsuite/23_containers/vector/modifiers/push_back/89130.cc: New. | |
2992 | ||
b03489db | 2993 | PR libstdc++/89090 |
2994 | * include/bits/stl_uninitialized.h (__relocate_a_1): Make unused | |
2995 | parameter unnamed. Add message to static assertion. | |
2996 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
2997 | (vector::_M_default_append): Use _GLIBCXX17_CONSTEXPR for if constexpr | |
2998 | in C++11 code. | |
2999 | ||
71625a15 | 3000 | 2019-02-05 Marc Glisse <marc.glisse@inria.fr> |
3001 | ||
3002 | PR libstdc++/87106 | |
3003 | * include/bits/stl_uninitialized.h (__is_trivially_relocatable): | |
3004 | Rename... | |
3005 | (__is_bitwise_relocatable): ... to this. | |
3006 | (__relocate_a_1): Adapt. | |
3007 | * include/bits/stl_deque.h (__is_trivially_relocatable): Rename... | |
3008 | (__is_bitwise_relocatable): ... to this. | |
3009 | ||
e7b22e58 | 3010 | 2019-01-30 Jonathan Wakely <jwakely@redhat.com> |
3011 | ||
3012 | PR libstdc++/89117 | |
3013 | * src/c++17/fs_path.cc (path::replace_extension): Erase extension from | |
3014 | final component as well as from _M_pathname. Append the dot using | |
3015 | operator+= instead of only to _M_pathname. | |
3016 | (path::_M_find_extension): Reformat slightly. | |
3017 | * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: | |
3018 | Add more test cases. | |
3019 | ||
dae923a7 | 3020 | 2019-01-30 Ulrich Drepper <drepper@redhat.com> |
3021 | ||
3022 | * doc/xml/manual/status_cxx2020.xml: Update P0600 entry. | |
3023 | ||
710397ad | 3024 | 2019-01-29 Jonathan Wakely <jwakely@redhat.com> |
3025 | ||
5efc4356 | 3026 | * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect |
3027 | constexpr specifiers from arg and proj. | |
3028 | ||
5f15e718 | 3029 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for |
3030 | __shared_ptr instantiations used by gcc4-compatible ABI. | |
3031 | ||
307e86fc | 3032 | * include/experimental/forward_list (experimental::erase): Qualify |
3033 | call to erase_if. | |
3034 | * include/experimental/list (experimental::erase): Likewise. | |
3035 | * include/std/forward_list (std::erase): Likewise. | |
3036 | * include/std/list (std::erase): Likewise. | |
3037 | ||
38129d1a | 3038 | * testsuite/20_util/reference_wrapper/result_type.cc: Disable for |
3039 | C++2a. | |
3040 | * testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise. | |
3041 | * testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise. | |
3042 | * testsuite/20_util/reference_wrapper/typedefs.cc: Likewise. | |
3043 | * testsuite/30_threads/async/54297.cc: Suppress nodiscard warning. | |
3044 | * testsuite/ext/array_allocator/26875.cc: Likewise. | |
3045 | * testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise. | |
3046 | * testsuite/util/replacement_memory_operators.h: Likewise. | |
3047 | * testsuite/util/testsuite_allocator.h: Likewise. | |
3048 | ||
710397ad | 3049 | * include/std/memory_resource (__pool_resource::_M_unpooled): Use |
3050 | normal mode vector, even for debug mode. | |
3051 | * include/std/vector [_GLIBCXX_DEBUG] (_GLIBCXX_STD_C::pmr::vector): | |
3052 | Define alias template for normal mode vector. | |
3053 | ||
70f71249 | 3054 | 2019-01-28 Jonathan Wakely <jwakely@redhat.com> |
3055 | ||
3056 | PR libstdc++/68737 | |
3057 | * config/locale/generic/c_locale.h (__convert_from_v) | |
3058 | [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
3059 | * config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
3060 | * include/bits/locale_facets.tcc (num_put::_M_insert_float) | |
3061 | [_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF. | |
3062 | ||
f1074115 | 3063 | 2019-01-24 Jonathan Wakely <jwakely@redhat.com> |
3064 | ||
4bc4fd90 | 3065 | PR libstdc++/88840 |
3066 | * include/bits/stl_vector.h (vector::__use_relocate): Replace static | |
3067 | data member with static member function _S_use_relocate(). | |
3068 | * include/bits/vector.tcc (vector::reserve, vector::_M_realloc_insert) | |
3069 | (vector::_M_default_append): Use _S_use_relocate() instead of | |
3070 | __use_relocate. | |
3071 | ||
f1074115 | 3072 | * testsuite/27_io/filesystem/path/compare/strings.cc: Only compare |
3073 | sign of results. | |
3074 | ||
1c4657a3 | 3075 | 2019-01-22 Jonathan Wakely <jwakely@redhat.com> |
3076 | ||
3077 | PR libstdc++/88740 | |
3078 | * testsuite/util/testsuite_hooks.h [stderr] (VERIFY): Use fprintf to | |
3079 | write to stderr instead of using printf. | |
3080 | ||
dafe8c59 | 3081 | 2019-01-21 Jakub Jelinek <jakub@redhat.com> |
3082 | ||
3083 | PR libstdc++/86590 | |
3084 | * include/bits/char_traits.h (__constant_string_p, | |
3085 | __constant_char_array_p): Use __builtin_is_constant_evaluated if | |
3086 | available. | |
3087 | ||
eaf966f3 | 3088 | 2019-01-20 Ulrich Drepper <drepper@redhat.com> |
3089 | ||
3090 | Implement C++20 P0600r1. | |
3091 | * include/backward/hash_map: Add nodiscard attribute to empty. | |
3092 | * include/backward/hash_set: Likewise. | |
3093 | * backward/hashtable.h: Likewise. | |
3094 | * include/bits/basic_string.h: Likewise. | |
3095 | * include/bits/forward_list.h: Likewise. | |
3096 | * include/bits/hashtable.h: Likewise. | |
3097 | * include/bits/regex.h: Likewise. | |
3098 | * include/bits/stl_deque.h: Likewise. | |
3099 | * include/bits/stl_list.h: Likewise. | |
3100 | * include/bits/stl_map.h: Likewise. | |
3101 | * include/bits/stl_multimap.h: Likewise. | |
3102 | * include/bits/stl_multiset.h: Likewise. | |
3103 | * include/bits/stl_queue.h: Likewise. | |
3104 | * include/bits/stl_set.h: Likewise. | |
3105 | * include/bits/stl_stack.h: Likewise. | |
3106 | * include/bits/stl_tree.h: Likewise. | |
3107 | * include/bits/stl_vector.h: Likewise. | |
3108 | * include/bits/unordered_map.h: Likewise. | |
3109 | * include/bits/unordered_set.h: Likewise. | |
3110 | * include/debug/array: Likewise. | |
3111 | * include/experimental/any: Likewise. | |
3112 | * include/experimental/bits/fs_path.h: Likewise. | |
3113 | * include/experimental/internet: Likewise. | |
3114 | * include/experimental/string_view: Likewise. | |
3115 | * include/ext/pb_ds/detail/bin_search_tree_/info_fn_imps.hpp: | |
3116 | Likewise. | |
3117 | * include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: | |
3118 | Likewise. | |
3119 | * include/ext/pb_ds/detail/binary_heap_/info_fn_imps.hpp: | |
3120 | Likewise. | |
3121 | * include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: | |
3122 | Likewise. | |
3123 | * include/ext/pb_ds/detail/cc_hash_table_map_/info_fn_imps.hpp: | |
3124 | Likewise. | |
3125 | * include/ext/pb_ds/detail/cc_hash_table_map_/size_fn_imps.hpp: | |
3126 | Likewise. | |
3127 | * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: | |
3128 | Likewise. | |
3129 | * include/ext/pb_ds/detail/gp_hash_table_map_/info_fn_imps.hpp: | |
3130 | Likewise. | |
3131 | * include/ext/pb_ds/detail/left_child_next_sibling_heap_/ | |
3132 | info_fn_imps.hpp: Likewise. | |
3133 | * include/ext/pb_ds/detail/left_child_next_sibling_heap_/ | |
3134 | left_child_next_sibling_heap_.hpp: Likewise. | |
3135 | * include/ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp: | |
3136 | Likewise. | |
3137 | * include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: | |
3138 | Likewise. | |
3139 | * include/ext/pb_ds/detail/ov_tree_map_/info_fn_imps.hpp: | |
3140 | Likewise. | |
3141 | * include/ext/pb_ds/detail/ov_tree_map_/ov_tree_map_.hp: | |
3142 | Likewise. | |
3143 | * include/ext/pb_ds/detail/pat_trie_/info_fn_imps.hpp: | |
3144 | Likewise. | |
3145 | * include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp: | |
3146 | Likewise. | |
3147 | * include/ext/pb_ds/detail/rc_binomial_heap_/rc.hpp: | |
3148 | Likewise. | |
3149 | * include/ext/pb_ds/detail/tree_trace_base.hpp: Likewise. | |
3150 | * include/ext/pb_ds/trie_policy.hpp: Likewise. | |
3151 | * include/ext/rope: Likewise. | |
3152 | * include/ext/slist: Likewise. | |
3153 | * include/ext/vstring.h: Likewise. | |
3154 | * include/profile/array: Likewise. | |
3155 | * include/std/array: Likewise. | |
3156 | * include/tr1/array: Likewise. | |
3157 | * include/tr1/hashtable.h: Likewise. | |
3158 | * include/tr1/regex: Likewise. | |
3159 | * include/tr2/dynamic_bitset: Likewise. | |
3160 | * include/bits/alloc_traits.h: Add nodiscard attribute to | |
3161 | allocate. | |
3162 | * include/experimental/memory_resource: Likewise. | |
3163 | * include/ext/alloc_traits.h: Likewise. | |
3164 | * include/ext/array_allocator.h: Likewise. | |
3165 | * include/ext/bitmap_allocator.h: Likewise. | |
3166 | * include/ext/debug_allocator.h: Likewise. | |
3167 | * include/ext/extptr_allocator.h: Likewise. | |
3168 | * include/ext/mt_allocator.h: Likewise. | |
3169 | * include/ext/new_allocator.h: Likewise. | |
3170 | * include/ext/pool_allocator.h: Likewise. | |
3171 | * include/ext/throw_allocator.h: Likewise. | |
3172 | * include/std/scoped_allocator: Likewise. | |
3173 | * libsupc++/eh_alloc.cc: Likewise. | |
3174 | * include/std/future: Add nodiscard attribute to async. | |
3175 | * libsupc++/new: Add nodiscard attribute to new. | |
3176 | ||
3c1c2a8c | 3177 | 2019-01-18 Jonathan Wakely <jwakely@redhat.com> |
3178 | ||
3179 | PR libstdc++/87514 | |
3180 | PR libstdc++/87520 | |
3181 | PR libstdc++/88782 | |
3182 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export new symbol. | |
3183 | * include/bits/shared_ptr.h | |
3184 | (shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)) | |
3185 | (allocate_shared): Change to use new tag type. | |
3186 | * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_eq): | |
3187 | Declare new member function. | |
3188 | (_Sp_alloc_shared_tag): Define new type. | |
3189 | (_Sp_counted_ptr_inplace): Declare __shared_count<_Lp> as a friend. | |
3190 | (_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Use | |
3191 | _Sp_make_shared_tag::_S_eq to check type_info. | |
3192 | (__shared_count(Ptr, Deleter),__shared_count(Ptr, Deleter, Alloc)): | |
3193 | Constrain to prevent being called with _Sp_alloc_shared_tag. | |
3194 | (__shared_count(_Sp_make_shared_tag, const _Alloc&, Args&&...)): | |
3195 | Replace constructor with ... | |
3196 | (__shared_count(Tp*&, _Sp_alloc_shared_tag<_Alloc>, Args&&...)): Use | |
3197 | reference parameter so address of the new object can be returned to | |
3198 | the caller. Obtain the allocator from the tag type. | |
3199 | (__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Replace | |
3200 | constructor with ... | |
3201 | (__shared_ptr(_Sp_alloc_shared_tag<Alloc>, Args&&...)): Pass _M_ptr | |
3202 | to the __shared_count constructor. | |
3203 | (__allocate_shared): Change to use new tag type. | |
3204 | * src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq): Define. | |
3205 | ||
21a962b2 | 3206 | 2019-01-17 Jonathan Wakely <jwakely@redhat.com> |
3207 | ||
464ac146 | 3208 | * src/c++17/fs_ops.cc |
3209 | (equivalent(const path&, const path&, error_code&)) | |
3210 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use GetFileInformationByHandle to | |
3211 | compare files instead of relying on incomplete info returned by stat. | |
3212 | ||
2987a93d | 3213 | PR libstdc++/88884 |
3214 | * src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing | |
3215 | if the path is already absolute. | |
3216 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory. | |
3217 | [!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path. | |
3218 | ||
21a962b2 | 3219 | PR libstdc++/88881 |
3220 | * src/c++17/fs_ops.cc (canonical(const path&, error_code&)) | |
3221 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize path, to match behaviour | |
3222 | of filesystem::exists. | |
3223 | (create_directories(const path&, error_code&)): Add assertions. | |
3224 | (status(const path&, error_code&)) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: | |
3225 | Add workaround for bug in _wstat for paths with trailing slash. | |
3226 | * testsuite/27_io/filesystem/operations/create_directories.cc: Adjust | |
3227 | for expected behaviour on mingw. | |
3228 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
3229 | Likewise. | |
3230 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Use | |
3231 | "TMP" instead of "TMPDIR" and clean environment before each test. Do | |
3232 | not test permissions on mingw targets. | |
3233 | ||
93478c9f | 3234 | 2019-01-16 Jonathan Wakely <jwakely@redhat.com> |
3235 | ||
3236 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add exports for fstream | |
3237 | constructors and open members taking wide strings. Fix patterns for | |
3238 | filesystem::path members to match wstring_view parameters. Add | |
3239 | exports for shared_ptr members used by directory iterators. | |
3240 | * src/c++17/fs_ops.cc (remove(const path&, error_code&)): Clear the | |
3241 | error code parameter if the file doesn't exist. | |
3242 | * src/filesystem/ops.cc (remove(const path&, error_code&)): | |
3243 | Likewise. | |
3244 | * testsuite/27_io/filesystem/operations/canonical.cc: Fix expected | |
3245 | values for mingw targets, where "/" is not an absolute path. Do not | |
3246 | test symlinks on mingw targets. | |
3247 | * testsuite/experimental/filesystem/operations/canonical.cc: Likewise. | |
3248 | * testsuite/27_io/filesystem/operations/copy.cc: Do not test symlinks | |
3249 | on mingw targets. | |
3250 | * testsuite/experimental/filesystem/operations/copy.cc: Likewise. | |
3251 | * testsuite/27_io/filesystem/operations/create_directories.cc: Check | |
3252 | that each component of the path is created. | |
3253 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
3254 | Likewise. | |
3255 | * testsuite/27_io/filesystem/operations/exists.cc: Do not test | |
3256 | permissions on mingw targets. | |
3257 | * testsuite/experimental/filesystem/operations/exists.cc: Likewise. | |
3258 | * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise. | |
3259 | * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise. | |
3260 | * testsuite/27_io/filesystem/operations/permissions.cc: XFAIL for | |
3261 | mingw targets. | |
3262 | * testsuite/experimental/filesystem/operations/permissions.cc: | |
3263 | Likewise. | |
3264 | * testsuite/27_io/filesystem/operations/remove.cc: Do not test | |
3265 | symlinks or permissions on mingw targets. | |
3266 | * testsuite/experimental/filesystem/operations/remove.cc: Likewise. | |
3267 | * testsuite/27_io/filesystem/operations/remove_all.cc: Do not test | |
3268 | symlinks on mingw targets. | |
3269 | * testsuite/experimental/filesystem/operations/remove_all.cc: | |
3270 | Likewise. | |
3271 | * testsuite/27_io/filesystem/operations/status.cc: Do not test | |
3272 | permissions on mingw targets. | |
3273 | * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Do not | |
3274 | test symlinks on mingw targets. | |
3275 | * testsuite/experimental/filesystem/operations/space.cc: Fix test | |
3276 | for mingw targets. | |
3277 | ||
af93b844 | 3278 | 2019-02-14 Ulrich Drepper <drepper@redhat.com> |
3279 | ||
3280 | PR libstdc++/88738 | |
3281 | Warn about unused comparisons of shared_ptr/unique_ptr | |
3282 | * include/bits/c++config [_GLIBCXX_NODISCARD]: Define. | |
3283 | * include/bits/shared_ptr.h: Use it for operator ==, !=, | |
3284 | <, <=, >, >= for shared_ptr. | |
3285 | * include/bits/unique_ptr.h: Likewise for unique_ptr. | |
3286 | ||
8793c0de | 3287 | 2019-01-15 Jonathan Wakely <jwakely@redhat.com> |
3288 | ||
afa61572 | 3289 | * include/bits/shared_ptr_base.h (__cpp_lib_shared_ptr_arrays): Define |
3290 | as 201611L, because P0497R0 changes are supported. | |
3291 | * include/std/version (__cpp_lib_shared_ptr_arrays): Likewise. | |
3292 | ||
feb89906 | 3293 | * include/bits/erase_if.h [__cplusplus > 201703L] |
3294 | (__cpp_lib_erase_if): Only define for C++2a. | |
3295 | * include/std/iterator [__cplusplus >= 201402L && !_GLIBCXX_DEBUG] | |
3296 | (__cpp_lib_null_iterators): Define. | |
3297 | * include/std/version [__cplusplus >= 201402L && !_GLIBCXX_DEBUG] | |
3298 | (__cpp_lib_null_iterators): Define. | |
3299 | [__cpp_impl_destroying_delete] (__cpp_lib_destroying_delete): Define. | |
3300 | ||
d253bcb1 | 3301 | * doc/xml/manual/status_cxx2017.xml: Document P0032R3 and P0307R2 |
3302 | status. | |
3303 | * include/bits/stl_uninitialized.h (__cpp_lib_raw_memory_algorithms): | |
3304 | Define. | |
3305 | * include/std/any (__cpp_lib_any): Define as 201606L, because P0032R3 | |
3306 | changes are supported. | |
3307 | * include/std/optional (__cpp_lib_optional): Likewise. | |
3308 | * include/std/variant (__cpp_lib_variant): Likewise. | |
3309 | * include/std/version [!__STRICT_ANSI__] | |
3310 | (__cpp_lib_uncaught_exceptions): Define as long integer. | |
3311 | [__cplusplus >= 201703L] (__cpp_lib_any) | |
3312 | (__cpp_lib_raw_memory_algorithms, __cpp_lib_uncaught_exceptions) | |
3313 | (__cpp_lib_variant): Define for C++17. | |
3314 | [__cplusplus >= 201703L] (__cpp_lib_optional): Update value and define | |
3315 | as long integer. | |
3316 | * libsupc++/exception (__cpp_lib_uncaught_exceptions): Define as long | |
3317 | integer. | |
3318 | ||
8793c0de | 3319 | * doc/xml/manual/status_cxx2020.xml: Update P1123R0 status. |
3320 | ||
a8cd4b2b | 3321 | 2019-01-12 Jonathan Wakely <jwakely@redhat.com> |
3322 | ||
3323 | PR libstdc++/88811 | |
3324 | PR libstdc++/83306 | |
3325 | * src/filesystem/path.cc: Fix typo. If first path is empty, show [] | |
3326 | before second path. | |
3327 | * testsuite/experimental/filesystem/filesystem_error/cons.cc: New | |
3328 | test. | |
3329 | ||
a5b1332c | 3330 | 2019-01-11 Jonathan Wakely <jwakely@redhat.com> |
3331 | ||
656ac8b7 | 3332 | * doc/xml/manual/intro.xml: Include new section. |
3333 | * doc/xml/manual/status_cxx2017.xml: Document more | |
3334 | implementation-defined properties of the library. | |
3335 | * doc/xml/manual/status_cxx2020.xml: Document C++2a status. | |
3336 | * doc/html/*: Regenerate. | |
3337 | ||
f5480b8c | 3338 | * include/bits/refwrap.h [__cplusplus > 201703L] |
3339 | (_Refwrap_base_arg1, _Refwrap_base_arg2, _Reference_wrapper_base) | |
3340 | (_Reference_wrapper_base_memfun): Do not define for C++2a. | |
3341 | (reference_wrapper): Do not derive from _Reference_wrapper_base_memfun | |
3342 | for C++2a. | |
3343 | (reference_wrapper::operator()): Add static assertion. | |
3344 | * testsuite/20_util/reference_wrapper/incomplete.cc: New test. | |
3345 | ||
36496c4d | 3346 | * include/std/chrono (duration_values::zero(), duration_values::min()) |
3347 | (duration_values::max()): Add noexcept. | |
3348 | (duration::zero(), duration::min(), duration::max()): Likewise. | |
3349 | (time_point::zero(), time_point::min(), time_point::max()): Likewise. | |
3350 | * testsuite/20_util/duration/requirements/noexcept.cc: New test. | |
3351 | * testsuite/20_util/time_point/requirements/noexcept.cc: New test. | |
3352 | ||
a5b1332c | 3353 | * include/std/version (__cpp_lib_erase_if): Move to C++20 group. |
3354 | ||
d9de68bc | 3355 | 2019-01-11 Jakub Jelinek <jakub@redhat.com> |
3356 | ||
3357 | * include/std/type_traits (__cpp_lib_is_constant_evaluated): Define. | |
3358 | * include/std/version (__cpp_lib_is_constant_evaluated): Define. | |
3359 | ||
beb370cb | 3360 | 2019-01-11 Jonathan Wakely <jwakely@redhat.com> |
3361 | ||
1d628fd4 | 3362 | PR libstdc++/88802 |
3363 | * include/bits/functional_hash.h (hash<nullptr_t>): Define | |
3364 | specialization for C++17 (P0513R0, LWG 2817). | |
3365 | * testsuite/20_util/hash/nullptr.cc: New test. | |
3366 | ||
a18b3766 | 3367 | PR libstdc++/88125 |
3368 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.6): Remove unused duplicate | |
3369 | pattern for std::basic_stringbuf::str(). | |
3370 | ||
beb370cb | 3371 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Correct recent changes to |
3372 | basic_ostream::operator<< patterns. | |
3373 | ||
cbbb35ec | 3374 | 2019-01-10 Jonathan Wakely <jwakely@redhat.com> |
3375 | ||
1715824b | 3376 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Fix |
3377 | test failures on targets with 32-bit time_t. | |
3378 | ||
f5529091 | 3379 | * include/bits/erase_if.h: Define __cpp_lib_erase_if. |
3380 | * include/std/deque: Likewise. | |
3381 | * include/std/forward_list: Likewise. | |
3382 | * include/std/list: Likewise. | |
3383 | * include/std/string: Likewise. | |
3384 | * include/std/vector: Likewise. | |
3385 | * include/std/version: Likewise. | |
3386 | * testsuite/21_strings/basic_string/erasure.cc: Test macro. | |
3387 | * testsuite/23_containers/deque/erasure.cc: Likewise. | |
3388 | * testsuite/23_containers/forward_list/erasure.cc: Likewise. | |
3389 | * testsuite/23_containers/list/erasure.cc: Likewise. | |
3390 | * testsuite/23_containers/map/erasure.cc: Likewise. | |
3391 | * testsuite/23_containers/set/erasure.cc: Likewise. | |
3392 | * testsuite/23_containers/unordered_map/erasure.cc: Likewise. | |
3393 | * testsuite/23_containers/unordered_set/erasure.cc: Likewise. | |
3394 | * testsuite/23_containers/vector/erasure.cc: Likewise. | |
3395 | ||
cbbb35ec | 3396 | * include/experimental/internet [AI_NUMERICSERV] |
3397 | (resolver_base::numeric_service): Define conditionally. | |
3398 | * testsuite/experimental/net/internet/resolver/base.cc: Test it | |
3399 | conditionally. | |
3400 | * testsuite/experimental/net/internet/resolver/ops/lookup.cc: | |
3401 | Likewise. | |
3402 | ||
ac9a8436 | 3403 | 2019-01-10 Ville Voutilainen <ville.voutilainen@gmail.com> |
3404 | Jonathan Wakely <jwakely@redhat.com> | |
3405 | ||
3406 | Implement LWG 2221 | |
3407 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns. | |
3408 | (GLIBCXX_3.4.26): Add new exports. | |
3409 | * include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to | |
3410 | correct list of sources. | |
3411 | * include/Makefile.in: Regenerate. | |
3412 | * include/std/ostream (operator<<(nullptr_t)): New member function. | |
3413 | * src/c++17/ostream-inst.cc: New file. | |
3414 | * testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New | |
3415 | test. | |
3416 | ||
5f027941 | 3417 | 2019-01-10 Jonathan Wakely <jwakely@redhat.com> |
3418 | ||
3419 | * testsuite/util/testsuite_fs.h (nonexistent_path): Include name | |
3420 | of the source file containing the caller. | |
3421 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Remove | |
3422 | directories created by test. | |
3423 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
3424 | Likewise. | |
3425 | * testsuite/experimental/filesystem/iterators/directory_iterator.cc: | |
3426 | Likewise. | |
3427 | * testsuite/experimental/filesystem/iterators/ | |
3428 | recursive_directory_iterator.cc: Likewise. | |
3429 | ||
3273d2e6 | 3430 | 2019-01-10 Jakub Jelinek <jakub@redhat.com> |
3431 | ||
3432 | PR tree-optimization/88775 | |
3433 | * include/bits/stl_function.h (greater<_Tp*>::operator(), | |
3434 | less<_Tp*>::operator(), greater_equal<_Tp*>::operator(), | |
3435 | less_equal<_Tp*>::operator()): Use __builtin_is_constant_evaluated | |
3436 | instead of __builtin_constant_p if available. Don't bother with | |
3437 | the pointer comparison in C++11 and earlier. | |
3438 | ||
f4d3c071 | 3439 | 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> |
3440 | ||
3441 | PR other/16615 | |
3442 | ||
3443 | * include/ext/bitmap_allocator.h: Mechanically replace "can not" | |
3444 | with "cannot". | |
3445 | ||
8eba10af | 3446 | 2019-01-09 Jonathan Wakely <jwakely@redhat.com> |
3447 | ||
6a6ade9f | 3448 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix expected output |
3449 | for filesystem::path. Give variables more distinctive names. | |
3450 | ||
41cda271 | 3451 | * include/std/optional (_Optional_payload_base::_M_copy_assign): New |
3452 | member function to perform non-trivial assignment. | |
3453 | (_Optional_payload_base::_M_move_assign): Likewise. | |
3454 | (_Optional_payload<T, true, false, true>::operator=) | |
3455 | (_Optional_payload<T, true, true, false>::operator=) | |
3456 | (_Optional_payload<T, true, false, false>::operator=): Call | |
3457 | _M_copy_assign and/or _M_move_assign to do non-trivial assignments. | |
3458 | ||
8eba10af | 3459 | PR libstdc++/88204 |
3460 | * testsuite/26_numerics/complex/operators/more_constexpr.cc: Do not | |
3461 | test std::complex<long double> if long double format is IBM128. | |
3462 | * testsuite/26_numerics/complex/requirements/more_constexpr.cc: | |
3463 | Likewise. | |
3464 | ||
64a50f48 | 3465 | 2019-01-08 Jonathan Wakely <jwakely@redhat.com> |
3466 | ||
73f3ad16 | 3467 | * testsuite/libstdc++-prettyprinters/compat.cc: Test printer support |
3468 | for old std::unique_ptr layout. | |
3469 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Fix std::variant test | |
3470 | to become valueless. Add filesystem::path tests. | |
3471 | ||
58e897da | 3472 | PR libstdc++/87855 |
3473 | * include/std/optional (_Optional_payload_base): New class template | |
3474 | for common code hoisted from _Optional_payload specializations. Use | |
3475 | a template for the union, to allow a partial specialization for | |
3476 | types with non-trivial destructors. Add constructors for in-place | |
3477 | initialization to the union. | |
3478 | (_Optional_payload(bool, const _Optional_payload&)): Use _M_construct | |
3479 | to perform non-trivial copy construction, instead of relying on | |
3480 | non-standard copy elision in a delegating constructor. | |
3481 | (_Optional_payload(bool, _Optional_payload&&)): Likewise for | |
3482 | non-trivial move construction. | |
3483 | (_Optional_payload): Derive from _Optional_payload_base and use it | |
3484 | for everything except the non-trivial assignment operators, which are | |
3485 | defined as needed. | |
3486 | (_Optional_payload<false, C, M>): Derive from the specialization | |
3487 | _Optional_payload<true, false, false> and add a destructor. | |
3488 | (_Optional_base_impl::_M_destruct, _Optional_base_impl::_M_reset): | |
3489 | Forward to corresponding members of _Optional_payload. | |
3490 | (_Optional_base_impl::_M_is_engaged, _Optional_base_impl::_M_get): | |
3491 | Hoist common members from _Optional_base. | |
3492 | (_Optional_base): Make all members and base class public. | |
3493 | (_Optional_base::_M_get, _Optional_base::_M_is_engaged): Move to | |
3494 | _Optional_base_impl. | |
3495 | * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Add | |
3496 | support for new std::optional layout. | |
3497 | * testsuite/libstdc++-prettyprinters/compat.cc: New test. | |
3498 | ||
64a50f48 | 3499 | PR libstdc++/88066 |
3500 | * include/bits/locale_conv.h: Use <> for includes not "". | |
3501 | * include/ext/random: Likewise. | |
3502 | * include/ext/vstring.h: Likewise. | |
3503 | ||
95b40931 | 3504 | 2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3505 | ||
3506 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns. | |
3507 | (GLIBCXX_3.4.21): Likewise. | |
3508 | ||
fa00ec77 | 3509 | 2019-01-08 Jonathan Wakely <jwakely@redhat.com> |
3510 | ||
3511 | PR libstdc++/88749 | |
3512 | * src/filesystem/ops.cc (last_write_time): Fix preprocessor condition | |
3513 | to match the one that controls whether utimbuf and utime are declared. | |
3514 | ||
3f304b2d | 3515 | 2019-01-07 Jonathan Wakely <jwakely@redhat.com> |
3516 | ||
fc6ac813 | 3517 | PR libstdc++/87787 |
3518 | * include/bits/char_traits.h (char_traits::move): Do not pass null | |
3519 | pointers to memmove. | |
3520 | * include/bits/locale_facets.h | |
3521 | (ctype<char>::widen(const char*, const char*, char*)): Do not | |
3522 | pass null pointers to memcpy. | |
3523 | (ctype<char>::narrow(const char*, const char*, char, char*)): | |
3524 | Likewise. | |
3525 | (ctype<char>::do_widen(const char*, const char*, char*)): | |
3526 | Likewise. | |
3527 | (ctype<char>::do_narrow(const char*, const char*, char, char*)): | |
3528 | Likewise. | |
3529 | ||
bbc66c45 | 3530 | * doc/xml/manual/spine.xml: Update copyright years. |
3531 | * doc/xml/manual/status_cxx2017.xml: Adjust note about -lstdc++fs. | |
3532 | * doc/xml/manual/using.xml: Remove requirement to link with -lstdc++fs | |
3533 | for C++17 filesystem library. | |
3534 | * doc/html/*: Regenerate. | |
3535 | ||
3f304b2d | 3536 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for truncate. |
3537 | * config.h.in: Regenerate. | |
3538 | * config/abi/pre/gnu.ver: Order patterns for filesystem operations | |
3539 | alphabetically and add missing entries for copy_symlink, | |
3540 | hard_link_count, rename, and resize_file. | |
3541 | * configure: Regenerate. | |
3542 | * src/c++17/fs_ops.cc (resize_file): Remove #if so posix::truncate is | |
3543 | used unconditionally. | |
3544 | * src/filesystem/ops-common.h (__gnu_posix::truncate) | |
3545 | [!_GLIBCXX_HAVE_TRUNCATE]: Provide fallback definition that only | |
3546 | supports truncating to zero length. | |
3547 | * testsuite/27_io/filesystem/operations/all.cc: New test. | |
3548 | * testsuite/27_io/filesystem/operations/resize_file.cc: New test. | |
3549 | ||
0ebb0980 | 3550 | 2019-01-06 Jonathan Wakely <jwakely@redhat.com> |
3551 | ||
3935f409 | 3552 | PR libstdc++/86756 |
3553 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and | |
3554 | lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT. | |
3555 | * config.h.in: Regenerate. | |
3556 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for | |
3557 | remaining std::filesystem types and functions. | |
3558 | * configure: Regenerate. | |
3559 | * src/c++17/Makefile.am: Add C++17 filesystem sources. | |
3560 | * src/c++17/Makefile.in: Regenerate. | |
3561 | * src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to | |
3562 | here, and change name of included file. | |
3563 | * src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to | |
3564 | here, and change name of included file. | |
3565 | * src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change | |
3566 | path to dir-common.h. | |
3567 | * src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change | |
3568 | path to ops-common.h. Disable -Wunused-parameter warnings. | |
3569 | (internal_file_clock): Define unconditionally. | |
3570 | [!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not | |
3571 | define. | |
3572 | (do_copy_file, do_space): Move definitions to ops.common.h. | |
3573 | (copy, file_size, hard_link_count, last_write_time, space): Only | |
3574 | perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise | |
3575 | report an error. | |
3576 | (last_write_time, read_symlink): Remove unused attributes from | |
3577 | parameters. | |
3578 | * src/filesystem/Makefile.am: Remove C++17 filesystem sources. | |
3579 | * src/filesystem/Makefile.in: Regenerate. | |
3580 | * src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc. | |
3581 | * src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc. | |
3582 | * src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc. | |
3583 | * src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc. | |
3584 | * src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define | |
3585 | dummy types and functions instead of using #error. | |
3586 | * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error. | |
3587 | * src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define | |
3588 | in terms of stat. | |
3589 | [!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions. | |
3590 | (do_copy_file, do_space): Move definitions here from std-ops.cc. | |
3591 | * src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space | |
3592 | to account for new namespace. | |
3593 | * testsuite/27_io/filesystem/directory_entry/86597.cc: Remove | |
3594 | -lstdc++fs from dg-options. | |
3595 | * testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise. | |
3596 | * testsuite/27_io/filesystem/file_status/1.cc: Likewise. | |
3597 | * testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise. | |
3598 | * testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise. | |
3599 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: | |
3600 | Likewise. | |
3601 | * testsuite/27_io/filesystem/iterators/pop.cc: Likewise. | |
3602 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
3603 | Likewise. | |
3604 | * testsuite/27_io/filesystem/operations/absolute.cc: Likewise. | |
3605 | * testsuite/27_io/filesystem/operations/canonical.cc: Likewise. | |
3606 | * testsuite/27_io/filesystem/operations/copy.cc: Likewise. | |
3607 | * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise. | |
3608 | * testsuite/27_io/filesystem/operations/create_directories.cc: | |
3609 | Likewise. | |
3610 | * testsuite/27_io/filesystem/operations/create_directory.cc: Likewise. | |
3611 | * testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise. | |
3612 | * testsuite/27_io/filesystem/operations/current_path.cc: Likewise. | |
3613 | * testsuite/27_io/filesystem/operations/equivalent.cc: Likewise. | |
3614 | * testsuite/27_io/filesystem/operations/exists.cc: Likewise. | |
3615 | * testsuite/27_io/filesystem/operations/file_size.cc: Likewise. | |
3616 | * testsuite/27_io/filesystem/operations/is_empty.cc: Likewise. | |
3617 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise. | |
3618 | * testsuite/27_io/filesystem/operations/permissions.cc: Likewise. | |
3619 | * testsuite/27_io/filesystem/operations/proximate.cc: Likewise. | |
3620 | * testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise. | |
3621 | * testsuite/27_io/filesystem/operations/relative.cc: Likewise. | |
3622 | * testsuite/27_io/filesystem/operations/remove.cc: Likewise. | |
3623 | * testsuite/27_io/filesystem/operations/remove_all.cc: Likewise. | |
3624 | * testsuite/27_io/filesystem/operations/space.cc: Likewise. | |
3625 | * testsuite/27_io/filesystem/operations/status.cc: Likewise. | |
3626 | * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise. | |
3627 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: | |
3628 | Likewise. | |
3629 | * testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise. | |
3630 | ||
3631 | ||
c6e37a9f | 3632 | PR libstdc++/86756 |
3633 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Make various patterns for | |
3634 | typeinfo and vtables less greedy. | |
3635 | (GLIBCXX_3.4.26): Export symbols for std::filesystem::path. | |
3636 | * src/c++17/Makefile.am: Add fs_path.cc and cow-fs_path.cc. | |
3637 | * src/c++17/Makefile.in: Regenerate. | |
3638 | * src/c++17/cow-fs_path.cc: Move src/filesystem/cow-std-path.cc to | |
3639 | here, and change name of included file. | |
3640 | * src/c++17/fs_path.cc: Move src/filesystem/std-path.cc to here. | |
3641 | * src/filesystem/Makefile.am: Remove std-path.cc and cow-std-path.cc | |
3642 | from sources. | |
3643 | * src/filesystem/Makefile.in: Regenerate. | |
3644 | * src/filesystem/cow-std-path.cc: Move to src/c++17/cow-fs_path.cc. | |
3645 | * src/filesystem/std-path.cc: Move to src/c++17/fs_path.cc. | |
3646 | * testsuite/27_io/filesystem/path/append/path.cc: Remove -lstdc++fs | |
3647 | from dg-options and remove dg-require-filesystem-ts. | |
3648 | * testsuite/27_io/filesystem/path/append/source.cc: Likewise. | |
3649 | * testsuite/27_io/filesystem/path/assign/assign.cc: Likewise. | |
3650 | * testsuite/27_io/filesystem/path/assign/copy.cc: Likewise. | |
3651 | * testsuite/27_io/filesystem/path/compare/compare.cc: Likewise. | |
3652 | * testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise. | |
3653 | * testsuite/27_io/filesystem/path/compare/path.cc: Likewise. | |
3654 | * testsuite/27_io/filesystem/path/compare/strings.cc: Likewise. | |
3655 | * testsuite/27_io/filesystem/path/concat/path.cc: Likewise. | |
3656 | * testsuite/27_io/filesystem/path/concat/strings.cc: Likewise. | |
3657 | * testsuite/27_io/filesystem/path/construct/80762.cc: Likewise. | |
3658 | * testsuite/27_io/filesystem/path/construct/copy.cc: Likewise. | |
3659 | * testsuite/27_io/filesystem/path/construct/default.cc: Likewise. | |
3660 | * testsuite/27_io/filesystem/path/construct/format.cc: Likewise. | |
3661 | * testsuite/27_io/filesystem/path/construct/locale.cc: Likewise. | |
3662 | * testsuite/27_io/filesystem/path/construct/range.cc: Likewise. | |
3663 | * testsuite/27_io/filesystem/path/construct/string_view.cc: Likewise. | |
3664 | * testsuite/27_io/filesystem/path/decompose/extension.cc: Likewise. | |
3665 | * testsuite/27_io/filesystem/path/decompose/filename.cc: Likewise. | |
3666 | * testsuite/27_io/filesystem/path/decompose/parent_path.cc: Likewise. | |
3667 | * testsuite/27_io/filesystem/path/decompose/relative_path.cc: Likewise. | |
3668 | * testsuite/27_io/filesystem/path/decompose/root_directory.cc: | |
3669 | Likewise. | |
3670 | * testsuite/27_io/filesystem/path/decompose/root_name.cc: Likewise. | |
3671 | * testsuite/27_io/filesystem/path/decompose/root_path.cc: Likewise. | |
3672 | * testsuite/27_io/filesystem/path/decompose/stem.cc: Likewise. | |
3673 | * testsuite/27_io/filesystem/path/generation/normal.cc: Likewise. | |
3674 | * testsuite/27_io/filesystem/path/generation/normal2.cc: Likewise. | |
3675 | * testsuite/27_io/filesystem/path/generation/proximate.cc: Likewise. | |
3676 | * testsuite/27_io/filesystem/path/generation/relative.cc: Likewise. | |
3677 | * testsuite/27_io/filesystem/path/generic/generic_string.cc: Likewise. | |
3678 | * testsuite/27_io/filesystem/path/itr/components.cc: Likewise. | |
3679 | * testsuite/27_io/filesystem/path/itr/traversal.cc: Likewise. | |
3680 | * testsuite/27_io/filesystem/path/modifiers/clear.cc: Likewise. | |
3681 | * testsuite/27_io/filesystem/path/modifiers/make_preferred.cc: | |
3682 | Likewise. | |
3683 | * testsuite/27_io/filesystem/path/modifiers/remove_filename.cc: | |
3684 | Likewise. | |
3685 | * testsuite/27_io/filesystem/path/modifiers/replace_extension.cc: | |
3686 | Likewise. | |
3687 | * testsuite/27_io/filesystem/path/modifiers/replace_filename.cc: | |
3688 | Likewise. | |
3689 | * testsuite/27_io/filesystem/path/modifiers/swap.cc: Likewise. | |
3690 | * testsuite/27_io/filesystem/path/native/string.cc: Likewise. | |
3691 | * testsuite/27_io/filesystem/path/nonmember/append.cc: Likewise. | |
3692 | * testsuite/27_io/filesystem/path/nonmember/hash_value.cc: Likewise. | |
3693 | * testsuite/27_io/filesystem/path/query/empty.cc: Likewise. | |
3694 | * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise. | |
3695 | * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise. | |
3696 | * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise. | |
3697 | * testsuite/27_io/filesystem/path/query/has_relative_path.cc: Likewise. | |
3698 | * testsuite/27_io/filesystem/path/query/has_root_directory.cc: | |
3699 | Likewise. | |
3700 | * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise. | |
3701 | * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise. | |
3702 | * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise. | |
3703 | * testsuite/27_io/filesystem/path/query/is_absolute.cc: Likewise. | |
3704 | * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise. | |
3705 | ||
8815ac91 | 3706 | PR libstdc++/87431 |
3707 | * include/std/variant (_Variant_storage<true, _Types...>::_M_valid): | |
3708 | Check is_trivially_copyable instead of is_scalar. | |
3709 | (variant::emplace<N, Args>(Args&&...)): If construction of the new | |
3710 | contained value can throw and its type is trivially copyable then | |
3711 | construct into a temporary variant and move from it, to provide the | |
3712 | strong exception safety guarantee. | |
3713 | (variant::emplace<N, U, Args>(initializer_list<U>, Args&&...)): | |
3714 | Likewise. | |
3715 | * testsuite/20_util/variant/87431.cc: New test. | |
3716 | * testsuite/20_util/variant/run.cc: Adjust test so that throwing | |
3717 | conversion causes valueless state. | |
3718 | ||
0ebb0980 | 3719 | PR libstdc++/88607 |
3720 | * testsuite/17_intro/headers/c++1998/charset.cc: New test. | |
3721 | * testsuite/17_intro/headers/c++2011/charset.cc: New test. | |
3722 | * testsuite/17_intro/headers/c++2014/charset.cc: New test. | |
3723 | * testsuite/17_intro/headers/c++2017/charset.cc: New test. | |
3724 | * testsuite/17_intro/headers/c++2020/charset.cc: New test. | |
3725 | ||
adc6beee | 3726 | 2019-01-05 Jonathan Wakely <jwakely@redhat.com> |
3727 | ||
3728 | * include/bits/fs_fwd.h (__file_clock): Define new clock. | |
3729 | (file_time_type): Redefine in terms of __file_clock. | |
3730 | * src/filesystem/ops-common.h (file_time): Add FIXME comment about | |
3731 | overflow. | |
3732 | * src/filesystem/std-ops.cc (is_set(perm_options, perm_options)): Give | |
3733 | internal linkage. | |
3734 | (internal_file_lock): New helper type for accessing __file_clock. | |
3735 | (do_copy_file): Use internal_file_lock to convert system time to | |
3736 | file_time_type. | |
3737 | (last_write_time(const path&, error_code&)): Likewise. | |
3738 | (last_write_time(const path&, file_time_type, error_code&)): Likewise. | |
3739 | ||
6b4a77f2 | 3740 | 2019-01-04 Jonathan Wakely <jwakely@redhat.com> |
3741 | ||
98185b9f | 3742 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.21): Make patterns less greedy |
3743 | for const member functions of std::basic_string. | |
3744 | (GLIBCXX_3.4.26): Export member functions of std::basic_string added | |
3745 | in C++17. | |
3746 | * include/bits/basic_string.h (basic_string(__sv_wrapper, const A&)): | |
3747 | Make non-standard constructor private. | |
3748 | [!_GLIBCXX_USE_CXX11_ABI] (basic_string(__sv_wrapper, const A&)): | |
3749 | Likewise. | |
3750 | * include/bits/basic_string.tcc (std::string, std::wstring): Declare | |
3751 | explicit instantiations for C++17 as well as earlier dialects. | |
3752 | * src/c++17/Makefile.am: Add new source files. | |
3753 | * src/c++17/Makefile.in: Regenerate. | |
3754 | * src/c++17/cow-string-inst.cc: New file defining explicit | |
3755 | instantiations for basic_string member functions added in C++17. | |
3756 | * src/c++17/string-inst.cc: Likewise. | |
3757 | ||
859e6fed | 3758 | * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export allocator-extended |
3759 | copy/move constructors for old std::basic_string. | |
3760 | * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI] | |
3761 | (basic_string::reference, basic_string::const_reference): Define | |
3762 | as plain references for C++11 and later. | |
3763 | (basic_string::basic_string()): Put constructor body outside | |
3764 | preprocessor conditional groups. | |
3765 | (basic_string::basic_string(basic_string&&)): Move _Alloc_hider | |
3766 | instead of copying it. | |
3767 | (basic_string::basic_string(const basic_string&, const _Alloc&)): | |
3768 | Define. | |
3769 | (basic_string::basic_string(basic_string&&, const _Alloc&)): | |
3770 | Define. | |
3771 | * include/bits/fs_path.h [!_GLIBCXX_USE_CXX11_ABI]: Remove special | |
3772 | cases for old basic_string. | |
3773 | * testsuite/21_strings/basic_string/cons/char/8.cc: Test | |
3774 | allocator-extended constructors unconditionally. Add extra members to | |
3775 | allocator type when using old string ABI. | |
3776 | * testsuite/21_strings/basic_string/allocator/71964.cc: Enable test | |
3777 | for old string ABI. | |
3778 | * testsuite/21_strings/basic_string/cons/wchar_t/8.cc: Likewise. | |
3779 | ||
e13f6a7f | 3780 | * testsuite/23_containers/list/61347.cc: Avoid spurious failure when |
3781 | -fno-inline added to test flags. | |
3782 | ||
a18fccd0 | 3783 | * testsuite/21_strings/basic_string/requirements/ |
3784 | explicit_instantiation/debug.cc: Remove XFAIL for old ABI. | |
3785 | ||
7f77ca07 | 3786 | * testsuite/27_io/filesystem/filesystem_error/copy.cc: Fix static |
3787 | assertion failures with old std::string ABI. | |
3788 | ||
9346fb0e | 3789 | * include/bits/fs_path.h (path::_List::erase): Replace both overloads |
3790 | with ... | |
3791 | (path::pop_back(), path::_M_erase_from(const_iterator)): New member | |
3792 | functions that will only erase elements at the end. | |
3793 | * src/filesystem/std-path.cc (path::_List::_Impl::pop_back()): Define. | |
3794 | (path::_List::_Impl::_M_erase_from(const_iterator)): Define. | |
3795 | (path::_List::operator=(const _List&)): Use _M_erase_from(p) instead | |
3796 | of erase(p, end()). | |
3797 | (path::_List::pop_back()): Define. | |
3798 | (path::_List::_M_erase_from(const_iterator)): Define. | |
3799 | (path::operator/=(const path&)): Use pop_back to remove last component | |
3800 | and _M_erase_from to remove multiple components. | |
3801 | (path::_M_append(basic_string_view<value_type>)): Likewise. | |
3802 | (path::operator+=(const path&)): Likewise. | |
3803 | (path::_M_concat(basic_string_view<value_type>)): Likewise. | |
3804 | (path::remove_filename()): Likewise. | |
3805 | (path::lexically_normal()): Use _List::_Impl iterators instead of | |
3806 | path::iterator. Use pop_back to remove components from the end. Clear | |
3807 | trailing filename, instead of using erase(const_iterator) to remove | |
3808 | a non-final component. | |
3809 | * testsuite/27_io/filesystem/path/generation/normal.cc: Test | |
3810 | additional cases. | |
3811 | * testsuite/27_io/filesystem/path/generation/normal2.cc: New test. | |
3812 | ||
24230cab | 3813 | * src/filesystem/std-path.cc (path::operator+=(const path&)): Fix |
3814 | incorrect treatment of empty filename after trailing slash. | |
3815 | * testsuite/27_io/filesystem/path/concat/path.cc: Test problem case. | |
3816 | ||
6b4a77f2 | 3817 | * testsuite/21_strings/basic_string/modifiers/assign/char/ |
3818 | move_assign_optim.cc: Avoid spurious failure when -fno-inline added | |
3819 | to test flags. | |
3820 | * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/ | |
3821 | move_assign_optim.cc: Likewise. | |
3822 | ||
02df5941 | 3823 | 2019-01-03 Jonathan Wakely <jwakely@redhat.com> |
3824 | Jakub Jelinek <jakub@redhat.com> | |
3825 | ||
3826 | PR libstdc++/88607 | |
3827 | * include/experimental/memory: Replace UTF-8 quote characters. | |
3828 | * include/std/future: Replace UTF-8 "em dash" characters. | |
3829 | ||
f8ad40d8 | 3830 | 2019-01-03 Jonathan Wakely <jwakely@redhat.com> |
3831 | ||
9013258b | 3832 | PR libstdc++/88607 |
3833 | * include/bits/forward_list.h: Replace UTF-8 "ligature fi" character. | |
3834 | * include/debug/forward_list: Likewise. | |
3835 | * include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign" | |
3836 | character. | |
3837 | * include/experimental/chrono: Likewise. | |
3838 | * include/experimental/functional: Likewise. | |
3839 | * include/experimental/ratio: Likewise. | |
3840 | * include/experimental/system_error: Likewise. | |
3841 | * include/experimental/tuple: Likewise. | |
3842 | * include/experimental/type_traits: Likewise. | |
3843 | * include/parallel/workstealing.h: Replace UTF-8 "en dash" character. | |
3844 | * include/parallel/multiseq_selection.h: Likewise. | |
3845 | ||
f8ad40d8 | 3846 | PR libstdc++/88681 |
3847 | * config/abi/pre/gnu.ver: Add missing exports. | |
3848 | * testsuite/22_locale/collate_byname/88681.cc: New test. | |
3849 | * testsuite/22_locale/time_get/get/char/88681.cc: New test. | |
3850 | * testsuite/22_locale/time_get/get/wchar_t/88681.cc: New test. | |
3851 | ||
138292f4 | 3852 | 2019-01-02 Jonathan Wakely <jwakely@redhat.com> |
3853 | ||
553d41a8 | 3854 | * testsuite/23_containers/map/cons/deduction.cc: Test deduction from |
3855 | initializer_list<value_type> and from input iterator ranges. | |
3856 | * testsuite/23_containers/multimap/cons/deduction.cc: Likewise. | |
3857 | ||
138292f4 | 3858 | * testsuite/experimental/string_view/element_access/char/empty.cc: |
3859 | Fix year range in copyright header. | |
3860 | ||
963c0125 | 3861 | 2019-01-02 Joel Brobecker <brobecker@adacore.com> |
3862 | ||
3863 | * testsuite/21_strings/basic_string_view/element_access/char/empty.cc: | |
3864 | Fix year range in copyright header. | |
3865 | ||
fbd26352 | 3866 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
d353bf18 | 3867 | |
3868 | Update copyright years. | |
fb96fbb3 | 3869 | \f |
fbd26352 | 3870 | Copyright (C) 2019 Free Software Foundation, Inc. |
fb96fbb3 | 3871 | |
3872 | Copying and distribution of this file, with or without modification, | |
3873 | are permitted in any medium without royalty provided the copyright | |
3874 | notice and this notice are preserved. |