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