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