]>
Commit | Line | Data |
---|---|---|
c7790bdb JW |
1 | 2018-10-11 Jonathan Wakely <jwakely@redhat.com> |
2 | ||
cfef4c32 JW |
3 | PR libstdc++/80538 |
4 | * src/c++11/thread.cc (this_thread::__sleep_for) | |
5 | [_GLIBCXX_HAVE_SLEEP]: Only call sleep for non-zero values. | |
6 | Loop while sleep call is interrupted and until steady_clock | |
7 | shows requested duration has elapsed. | |
8 | (!_GLIBCXX_HAVE_USLEEP]: Use the _GLIBCXX_HAVE_SLEEP code path, but | |
9 | avoiding the usleep call. | |
10 | * testsuite/30_threads/this_thread/60421.cc: Test repeated | |
11 | signal interruptions. | |
12 | ||
c7790bdb JW |
13 | * include/bits/allocator.h |
14 | (operator==(const allocator<_Tp>&, const allocator<_Tp>)) | |
15 | (operator!=(const allocator<_Tp>&, const allocator<_Tp>)): Replace | |
16 | with inline friends. | |
17 | * include/ext/debug_allocator.h (operator==, operator!=): Replace | |
18 | with inline friend functions that compare to rebound allocators. | |
19 | * include/ext/malloc_allocator.h (operator==, operator!=): Likewise. | |
20 | * include/ext/new_allocator.h (operator==, operator!=): Likewise. | |
21 | * testsuite/ext/debug_allocator/eq.cc: New test. | |
22 | * testsuite/ext/ext_pointer/alloc_eq.cc: New test. | |
23 | * testsuite/ext/malloc_allocator/eq.cc: New test. | |
24 | * testsuite/ext/new_allocator/eq.cc: New test. | |
25 | ||
422a9f77 JW |
26 | 2018-10-10 Jonathan Wakely <jwakely@redhat.com> |
27 | ||
28 | PR libstdc++/87544 | |
29 | * include/bits/stl_vector.h (vector::_S_max_size): Limit size to | |
30 | PTRDIFF_MAX / sizeof(value_type). | |
31 | * include/ext/malloc_allocator.h (malloc_allocator::max_size): | |
32 | Likewise. | |
33 | * include/ext/new_allocator.h (new_allocator::max_size): Likewise. | |
34 | * testsuite/23_containers/vector/allocator/minimal.cc: Adjust | |
35 | expected value for max_size(). | |
36 | * testsuite/23_containers/vector/capacity/87544.cc: New test. | |
37 | ||
2f039722 FD |
38 | 2018-10-09 François Dumont <fdumont@gcc.gnu.org> |
39 | ||
40 | * include/bits/stl_list.h | |
41 | (_List_operator<>::operator==): Replace member function with inline | |
42 | friend. | |
43 | (_List_operator<>::operator!=): Likewise. | |
44 | (_List_const_operator<>::operator==): Likewise. | |
45 | (_List_const_operator<>::operator!=): Likewise. | |
46 | (operator==(const _List_iterator<>&, const _List_const_iterator<>&)): | |
47 | Remove. | |
48 | (operator!=(const _List_iterator<>&, const _List_const_iterator<>&)): | |
49 | Remove. | |
50 | ||
33b43b0d JW |
51 | 2018-10-09 Jonathan Wakely <jwakely@redhat.com> |
52 | ||
53 | * include/bits/stringfwd.h (string, wstring, u16string, u32string): | |
54 | Define typedefs outside of __cxx11 inline namespace. | |
55 | * python/libstdcxx/v6/printers.py (register_type_printers): Also | |
56 | register printers for typedefs in new location. | |
57 | ||
606f6be6 JW |
58 | 2018-10-08 Jonathan Wakely <jwakely@redhat.com> |
59 | ||
aca0dcde JW |
60 | PR libstdc++/87538 |
61 | * testsuite/experimental/functional/87538.cc: New test. | |
62 | ||
606f6be6 JW |
63 | PR libstdc++/87538 |
64 | * include/std/functional (_Not_fn::operator()): Check value of | |
65 | __is_nothrow_invocable as well. | |
66 | * testsuite/20_util/function_objects/not_fn/87538.cc: New test. | |
67 | ||
edec2bad FD |
68 | 2018-10-08 François Dumont <fdumont@gcc.gnu.org> |
69 | ||
70 | * include/debug/list (list<>::cbegin()): Use C++11 direct | |
71 | initialization. | |
72 | (list<>::cend()): Likewise. | |
73 | (list<>::emplace<>(const_iterator, _Args&&...)): Likewise. | |
74 | (list<>::insert(const_iterator, initializer_list<>)): Likewise. | |
75 | (list<>::insert(const_iterator, size_type, const _Tp&)): Likewise. | |
76 | (list<>::erase(const_iterator, const_iterator)): Ensure consistent | |
77 | iterator comparisons. | |
78 | (list<>::splice(const_iterator, list&&, const_iterator, | |
79 | const_iterator)): Likewise. | |
80 | ||
e0b9bc23 FD |
81 | 2018-10-05 François Dumont <fdumont@gcc.gnu.org> |
82 | ||
83 | * include/bits/stl_tree.h | |
84 | (_Rb_tree_iterator<>::operator==): Make inline friend. | |
85 | (_Rb_tree_iterator<>::operator!=): Likewise. | |
86 | (_Rb_tree_const_iterator<>::operator==): Likewise. | |
87 | (_Rb_tree_const_iterator<>::operator!=): Likewise. | |
88 | (operator==(const _Rb_tree_iterator<>&, | |
89 | const _Rb_tree_const_iterator&)): Remove. | |
90 | (operator!=(const _Rb_tree_iterator<>&, | |
91 | const _Rb_tree_const_iterator&)): Remove. | |
92 | (operator==(const _Rb_tree<>&, const _Rb_tree<>&)): Make inline friend. | |
93 | (operator<(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise. | |
94 | (operator!=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise and | |
95 | deprecate. | |
96 | (operator>(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise. | |
97 | (operator<=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise. | |
98 | (operator>=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise. | |
99 | * include/debug/map.h (map<>::erase(const_iterator, const_iterator)): | |
100 | Compare __victim with _Base::cend(). | |
101 | * include/debug/multimap.h | |
102 | (multimap<>::erase(const_iterator, const_iterator)): Likewise. | |
103 | * include/debug/set.h (set<>::erase(const_iterator, const_iterator)): | |
104 | Compare __victim with _Base::cend(). | |
105 | * include/debug/multiset.h | |
106 | (multiset<>::erase(const_iterator, const_iterator)): Likewise. | |
107 | ||
749c0e1d JW |
108 | 2018-10-03 Jonathan Wakely <jwakely@redhat.com> |
109 | ||
110 | PR libstdc++/59439 | |
111 | * src/c++98/locale.cc (locale::locale(const locale&)): Bypass | |
112 | reference count updates for the classic locale. | |
113 | (locale::~locale()): Likewise. | |
114 | (locale::operator=(const locale&)): Likewise. | |
115 | * src/c++98/locale_init.cc (locale::locale()): Likewise. | |
116 | (locale::global(const locale&)): Likewise. | |
117 | ||
784779d4 FD |
118 | 2018-10-03 François Dumont <fdumont@gcc.gnu.org> |
119 | ||
120 | * include/debug/map.h | |
121 | (map<>::emplace<>(_Args&&...)): Use C++11 direct initialization. | |
122 | (map<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise. | |
123 | (map<>::insert(value_type&&)): Likewise. | |
124 | (map<>::insert<>(_Pair&&)): Likewise. | |
125 | (map<>::insert<>(const_iterator, _Pair&&)): Likewise. | |
126 | (map<>::try_emplace): Likewise. | |
127 | (map<>::insert_or_assign): Likewise. | |
128 | (map<>::insert(node_type&&)): Likewise. | |
129 | (map<>::insert(const_iterator, node_type&&)): Likewise. | |
130 | (map<>::erase(const_iterator)): Likewise. | |
131 | (map<>::erase(const_iterator, const_iterator)): Likewise. | |
132 | * include/debug/multimap.h | |
133 | (multimap<>::emplace<>(_Args&&...)): Use C++11 direct initialization. | |
134 | (multimap<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise. | |
135 | (multimap<>::insert<>(_Pair&&)): Likewise. | |
136 | (multimap<>::insert<>(const_iterator, _Pair&&)): Likewise. | |
137 | (multimap<>::insert(node_type&&)): Likewise. | |
138 | (multimap<>::insert(const_iterator, node_type&&)): Likewise. | |
139 | (multimap<>::erase(const_iterator)): Likewise. | |
140 | (multimap<>::erase(const_iterator, const_iterator)): Likewise. | |
141 | * include/debug/set.h | |
142 | (set<>::emplace<>(_Args&&...)): Use C++11 direct initialization. | |
143 | (set<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise. | |
144 | (set<>::insert(value_type&&)): Likewise. | |
145 | (set<>::insert<>(const_iterator, value_type&&)): Likewise. | |
146 | (set<>::insert(const_iterator, node_type&&)): Likewise. | |
147 | (set<>::erase(const_iterator)): Likewise. | |
148 | (set<>::erase(const_iterator, const_iterator)): Likewise. | |
149 | * include/debug/multiset.h | |
150 | (multiset<>::emplace<>(_Args&&...)): Use C++11 direct initialization. | |
151 | (multiset<>::emplace_hint<>(const_iterator, _Args&&...)): Likewise. | |
152 | (multiset<>::insert<>(value_type&&)): Likewise. | |
153 | (multiset<>::insert<>(const_iterator, value_type&&)): Likewise. | |
154 | (multiset<>::insert(node_type&&)): Likewise. | |
155 | (multiset<>::insert(const_iterator, node_type&&)): Likewise. | |
156 | (multiset<>::erase(const_iterator)): Likewise. | |
157 | (multiset<>::erase(const_iterator, const_iterator)): Likewise. | |
158 | ||
86920074 MG |
159 | 2018-10-02 Marc Glisse <marc.glisse@inria.fr> |
160 | ||
161 | PR libstdc++/87258 | |
162 | * include/bits/stl_bvector.h (vector::begin(), vector::cbegin()): | |
163 | Rebuild _M_start with an explicit 0 offset. | |
164 | ||
469218a3 JW |
165 | 2018-10-02 Jonathan Wakely <jwakely@redhat.com> |
166 | ||
167 | * include/std/variant (__gen_vtable_impl::__visit_invoke): Call __get | |
168 | directly instead of get, as caller ensures correct index is used. | |
169 | (holds_alternative, get, get_if): Remove redundant inline specifiers. | |
170 | (_VARIANT_RELATION_FUNCTION_TEMPLATE): Likewise. | |
171 | ||
1c029282 JM |
172 | 2018-10-02 Joseph Myers <joseph@codesourcery.com> |
173 | ||
174 | * testsuite/lib/libstdc++.exp (libstdc++_init): Use | |
175 | -fno-show-column in default cxxflags. | |
176 | ||
15b946f7 BRF |
177 | 2018-10-01 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
178 | ||
179 | * config/os/uclibc/os_defines.h (__NO_STRING_INLINES): Delete. | |
180 | ||
3553df86 GP |
181 | 2018-10-01 Gerald Pfeifer <gerald@pfeifer.com> |
182 | ||
183 | * doc/xml/manual/allocator.xml: Adjust link to "Reconsidering | |
184 | Custom Memory Allocation". | |
185 | ||
8e4d333b JW |
186 | 2018-10-01 Jonathan Wakely <jwakely@redhat.com> |
187 | ||
188 | * doc/html/*: Regenerate. | |
189 | ||
8b3f1589 GP |
190 | 2018-09-30 Gerald Pfeifer <gerald@pfeifer.com> |
191 | ||
f1525dd4 GP |
192 | * doc/xml/manual/messages.xml: Switch link to www.oracle.com |
193 | to https. | |
194 | ||
195 | 2018-09-30 Gerald Pfeifer <gerald@pfeifer.com> | |
15b946f7 | 196 | |
8b3f1589 GP |
197 | * doc/xml/manual/policy_data_structures_biblio.xml: Update |
198 | link to Microsoft Component Model Object Technologies. | |
199 | ||
15f8a377 GP |
200 | 2018-09-29 Gerald Pfeifer <gerald@pfeifer.com> |
201 | ||
202 | * doc/xml/gnu/fdl-1.3.xml: The Free Software Foundation web | |
203 | site now uses https. Also omit the unnecessary trailing slash. | |
204 | * doc/xml/gnu/gpl-3.0.xml: Ditto. | |
205 | ||
5c441345 FD |
206 | 2018-09-28 François Dumont <fdumont@gcc.gnu.org> |
207 | ||
208 | * include/debug/functions.h | |
209 | (__foreign_iterator_aux3(const _Safe_iterator<>&, const _InputeIter&, | |
210 | const _InputIter&, __true_type)): Use empty() rather than begin() == | |
211 | end(). | |
212 | ||
29b26763 MC |
213 | 2018-09-25 Mike Crowe <mac@mcrowe.com> |
214 | ||
215 | * include/std/condition_variable (condition_variable::wait_for): Use | |
216 | steady clock in overload that uses a predicate. | |
217 | ||
16d30bbd JW |
218 | 2018-09-25 Jonathan Wakely <jwakely@redhat.com> |
219 | ||
220 | PR libstdc++/87431 | |
221 | * include/std/variant (_Variant_storage<true, _Types...>::_M_valid): | |
222 | Avoid runtime test when all alternatives are scalars and so cannot | |
223 | throw during initialization. | |
224 | ||
44eb8fa7 GP |
225 | 2018-09-25 Gerald Pfeifer <gerald@pfeifer.com> |
226 | ||
227 | * doc/xml/manual/codecvt.xml: Move link to "UTF-8 and Unicode FAQ" | |
228 | to https. | |
229 | ||
54b7d98e GP |
230 | 2018-09-24 Gerald Pfeifer <gerald@pfeifer.com> |
231 | ||
232 | * doc/xml/manual/policy_data_structures_biblio.xml: Update link | |
233 | to "Priority Queues and the STL". | |
234 | ||
839837b0 GP |
235 | 2018-09-23 Gerald Pfeifer <gerald@pfeifer.com> |
236 | ||
237 | * doc/xml/manual/using_exceptions.xml: Move boost.orgs link to | |
238 | https. | |
239 | ||
9b297949 FD |
240 | 2018-09-21 François Dumont <fdumont@gcc.gnu.org> |
241 | ||
242 | PR libstdc++/87135 | |
243 | * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt): | |
244 | Use __builtin_floor to compute _M_next_resize. | |
245 | * testsuite/23_containers/unordered_set/hash_policy/71181.cc: Adapt. | |
246 | * testsuite/23_containers/unordered_set/hash_policy/prime_rehash.cc: | |
247 | Adapt. | |
248 | ||
ac51f07a JW |
249 | 2018-09-21 Jonathan Wakely <jwakely@redhat.com> |
250 | ||
251 | * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: Remove. | |
252 | * testsuite/26_numerics/headers/cmath/hypot.cc: Restore test for | |
253 | long double unconditionally, but use lower tolerance when | |
254 | sizeof(long double) == sizeof(double). | |
255 | ||
eb3f7317 CL |
256 | 2018-09-20 Christophe Lyon <christophe.lyon@linaro.org> |
257 | ||
258 | * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: Skip | |
259 | on arm*. | |
260 | ||
dc9acaa9 JW |
261 | 2018-09-19 Jonathan Wakely <jwakely@redhat.com> |
262 | ||
263 | * include/bits/regex_automaton.tcc (_StateSeq<_TraitsT>::_M_clone()): | |
264 | Remove __glibcxx_assert statements and use map::find instead of | |
265 | map::operator[]. | |
266 | ||
a521e626 FD |
267 | 2018-09-18 François Dumont <fdumont@gcc.gnu.org> |
268 | ||
269 | PR libstdc++/87135 | |
270 | * src/c++11/hashtable_c++0x.cc: | |
271 | (_Prime_rehash_policy::_M_next_bkt): Return a prime no smaller than | |
272 | requested size, but not necessarily greater. | |
273 | (_Prime_rehash_policy::_M_need_rehash): Rehash only if target size is | |
274 | strictly greater than next resize threshold. | |
275 | * testsuite/23_containers/unordered_map/modifiers/reserve.cc: Adapt test | |
276 | to validate that there is no rehash as long as number of insertion is | |
277 | lower or equal to the reserved number of elements. | |
278 | ||
a12c16de JW |
279 | 2018-09-18 Jonathan Wakely <jwakely@redhat.com> |
280 | ||
281 | * include/bits/unique_ptr.h (__uniq_ptr_impl): Remove static assertion | |
282 | checking invocable condition. | |
283 | (unique_ptr::~unique_ptr, unique_ptr::reset): Restore static assertion | |
284 | here, where types must be complete. Pass pointer to deleter as an | |
285 | rvalue. | |
286 | * testsuite/20_util/unique_ptr/requirements/incomplete.cc: New test. | |
287 | ||
08233f0d JW |
288 | 2018-09-13 Jonathan Wakely <jwakely@redhat.com> |
289 | ||
290 | * include/std/variant (variant) [__clang__]: Limit workaround to | |
291 | Clang 7 and older. | |
292 | ||
86fc6ec9 JW |
293 | 2018-09-11 Jonathan Wakely <jwakely@redhat.com> |
294 | ||
9e2d426c JW |
295 | PR libstdc++/87278 |
296 | * include/bits/shared_ptr.h (make_shared): Use remove_cv instead of | |
297 | remove_const. | |
298 | * testsuite/20_util/shared_ptr/creation/87278.cc: New test. | |
299 | ||
86fc6ec9 JW |
300 | Implement LWG 2905 changes to constrain unique_ptr constructors |
301 | * include/bits/unique_ptr.h (__uniq_ptr_impl): Add assertions to | |
302 | check deleter type. | |
303 | (unique_ptr::unique_ptr(pointer, const deleter_type&)): Add copy | |
304 | constructible constraint. | |
305 | (unique_ptr::unique_ptr(pointer, deleter_type&&)): Disable for | |
306 | deleters of reference type and add move constructible constraint. | |
307 | (unique_ptr::unique_ptr(pointer, remove_reference_t<deleter_type>&&)): | |
308 | Disable for deleters of non-reference type. Define as deleted. | |
309 | (unique_ptr<T[], D>): Likewise. | |
310 | * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Replace dg-error | |
311 | directives with unstable line numbers with dg-prune-output. | |
312 | * testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise. | |
313 | * testsuite/20_util/unique_ptr/cons/lwg2905.cc: New test. | |
314 | * testsuite/20_util/unique_ptr/specialized_algorithms/swap_cxx17.cc: | |
315 | Make deleter types invocable. | |
316 | ||
cfaa1c89 JW |
317 | 2018-09-05 Jonathan Wakely <jwakely@redhat.com> |
318 | ||
319 | * libsupc++/cxxabi.h (__cxa_demangle): Clarify doxygen comment. | |
320 | ||
bc62e155 JW |
321 | 2018-09-03 Jonathan Wakely <jwakely@redhat.com> |
322 | ||
d4baef5b JW |
323 | PR libstdc++/78179 |
324 | * testsuite/26_numerics/headers/cmath/hypot-long-double.cc: New test | |
325 | that runs the long double part of hypot.cc. | |
326 | * testsuite/26_numerics/headers/cmath/hypot.cc: Disable long double | |
327 | tests unless TEST_HYPOT_LONG_DOUBLE is defined. | |
328 | ||
7efe0dd0 JW |
329 | * include/bits/stl_vector.h (vector::_Temporary_value::_M_ptr): |
330 | Return raw pointer not allocator's pointer type. | |
331 | (vector::_Temporary_value::_M_val): Use _M_ptr. | |
332 | ||
83a840a9 JW |
333 | PR libstdc++/87194 |
334 | * include/bits/stl_map.h | |
335 | (map::map(initializer_list<value_type>, const Compare&, const Alloc&)) | |
336 | (map::map(initializer_list<value_type>, const Alloc&)) | |
337 | (map::map(InputIterator, InputIterator, const Alloc&)) | |
338 | (map::map(InputIterator, InputIterator)) | |
339 | (map::map(InputIterator, InputIterator, const Compare&, const Alloc&)) | |
340 | (map::insert(InputIterator, InputIterator)): | |
341 | Call _M_insert_range_unique instead of _M_insert_unique. | |
342 | * include/bits/stl_multimap.h | |
343 | (multimap::multimap(initializer_list<value_type>, const C&, const A&)) | |
344 | (multimap::multimap(initializer_list<value_type>, const A&)) | |
345 | (multimap::multimap(InputIterator, InputIterator, const A&)) | |
346 | (multimap::multimap(InputIterator, InputIterator)) | |
347 | (multimap::multimap(InputIterator, InputIterator, const C&, const A&)) | |
348 | (multimap::insert(InputIterator, InputIterator)): Call | |
349 | _M_insert_range_equal instead of _M_insert_equal. | |
350 | * include/bits/stl_multiset.h | |
351 | (multiset::multiset(InputIterator, InputIterator)) | |
352 | (multiset::multiset(InputIterator, InputIterator, const C&, const A&)) | |
353 | (multiset::multiset(initializer_list<value_type>, const C&, const A&)) | |
354 | (multiset::multiset(initializer_list<value_type>, const A&)) | |
355 | (multiset::multiset(InputIterator, InputIterator, const A&)) | |
356 | (multiset::insert(InputIterator, InputIterator)): Call | |
357 | _M_insert_range_equal instead of _M_insert_equal. | |
358 | * include/bits/stl_set.h | |
359 | (set::set(InputIterator, InputIterator)) | |
360 | (set::set(InputIterator, InputIterator, const Compare&, const Alloc&)) | |
361 | (set::set(initializer_list<value_type>, const Compare&, const Alloc&)) | |
362 | (set::set(initializer_list<value_type>, const Alloc&)) | |
363 | (set::set(InputIterator, InputIterator, const Alloc&)) | |
364 | (set::insert(InputIterator, InputIterator)): | |
365 | Call _M_insert_range_unique instead of _M_insert_unique. | |
366 | * include/bits/stl_tree.h | |
367 | [__cplusplus >= 201103L] (_Rb_tree::__same_value_type): New alias | |
368 | template for SFINAE constraints. | |
369 | [__cplusplus >= 201103L] (_Rb_tree::_M_insert_range_unique): Pair of | |
370 | constrained overloads that either insert or emplace, depending on | |
371 | iterator's value_type. | |
372 | [__cplusplus >= 201103L] (_Rb_tree::_M_insert_range_equal): Likewise. | |
373 | [__cplusplus < 201103L] (_Rb_tree::_M_insert_range_unique) | |
374 | (_Rb_tree::_M_insert_range_equal): New functions replacing range | |
375 | versions of _M_insert_unique and _M_insert_equal. | |
376 | (_Rb_tree::_M_insert_unique(_InputIterator, _InputIterator)) | |
377 | (_Rb_tree::_M_insert_equal(_InputIterator, _InputIterator)): Remove. | |
378 | * testsuite/23_containers/map/modifiers/insert/87194.cc: New test. | |
379 | * testsuite/23_containers/multimap/modifiers/insert/87194.cc: New test. | |
380 | * testsuite/23_containers/multiset/modifiers/insert/87194.cc: New test. | |
381 | * testsuite/23_containers/set/modifiers/insert/87194.cc: New test. | |
382 | ||
bc62e155 JW |
383 | PR libstdc++/78595 |
384 | * include/bits/stl_map.h (map::insert(_Pair&&)) | |
385 | (map::insert(const_iterator, _Pair&&)): Do emplace instead of insert. | |
386 | * include/bits/stl_multimap.h (multimap::insert(_Pair&&)) | |
387 | (multimap::insert(const_iterator, _Pair&&)): Likewise. | |
388 | * include/bits/unordered_map.h (unordered_map::insert(_Pair&&)) | |
389 | (unordered_map::insert(const_iterator, _Pair&&)) | |
390 | (unordered_multimap::insert(_Pair&&)) | |
391 | (unordered_multimap::insert(const_iterator, _Pair&&)): Likewise. | |
392 | * testsuite/23_containers/map/modifiers/insert/78595.cc: New test. | |
393 | * testsuite/23_containers/multimap/modifiers/insert/78595.cc: New test. | |
394 | * testsuite/23_containers/unordered_map/modifiers/78595.cc: New test. | |
395 | * testsuite/23_containers/unordered_multimap/modifiers/78595.cc: New | |
396 | test. | |
397 | ||
b101633f FD |
398 | 2018-09-02 François Dumont <fdumont@gcc.gnu.org> |
399 | ||
400 | * include/debug/safe_iterator.h | |
401 | (_Safe_iterator<_It, _Seq, _Cat>::_Self): New. | |
402 | (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag>::_Self): | |
403 | New. | |
404 | (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag> | |
405 | ::_OtherSelf): New. | |
406 | (_GLIBCXX_DEBUG_VERIFY_OPERANDS, _GLIBCXX_DEBUG_VERIFY_EQ_OPERANDS) | |
407 | (_GLIBCXX_DEBUG_VERIFY_REL_OPERANDS) | |
408 | (_GLIBCXX_DEBUG_VERIFY_DIST_OPERANDS): Define macros. | |
409 | (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag> | |
410 | ::operator+(difference_type)): Use latters, inline as friend. | |
411 | (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag> | |
412 | ::operator-(difference_type)): Likewise. | |
413 | (operator==(const _Safe_iterator<>&, const _Safe_iterator<>&)): | |
414 | Likewise. | |
415 | (operator!=(const _Safe_iterator<>&, const _Safe_iterator<>&)): | |
416 | Likewise. | |
417 | (operator<(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. | |
418 | (operator<=(const _Safe_iterator<>&, const _Safe_iterator<>&)): | |
419 | Likewise. | |
420 | (operator>(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. | |
421 | (operator>=(const _Safe_iterator<>&, const _Safe_iterator<>&)): | |
422 | Likewise. | |
423 | (operator-(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. | |
424 | (operator+(difference_type, const _Safe_iterator<>&)): Likewise. | |
425 | (operator-(const _Safe_iterator<>&, difference_type)): Likewise. | |
426 | * include/debug/safe_iterator.tcc | |
427 | (_Safe_iterator<>::_M_can_advance(difference_type)): Take parameter by | |
428 | copy. | |
429 | * include/debug/safe_local_iterator.h | |
430 | (_Safe_local_iterator<_It, _Seq>::_Self): New. | |
431 | (_Safe_local_iterator<_It, _Seq>::_OtherSelf): New. | |
432 | (_GLIBCXX_DEBUG_VERIFY_OPERANDS): Define macro. | |
433 | (operator==(const _Safe_local_iterator<>&, | |
434 | const _Safe_local_iterator<>&)): Use latter, inline as friend. | |
435 | (operator!=(const _Safe_local_iterator<>&, | |
436 | const _Safe_local_iterator<>&)): Likewise. | |
437 | * testsuite/util/testsuite_containers.h: Include utility. | |
438 | (struct forward_members_unordered<_Tp, bool>): Remove 2nd template | |
439 | parameter. | |
440 | (forward_members_unordered<>::forward_members_unordered(value_type&)): | |
441 | Add using namespace std::rel_ops. | |
442 | Add iterator_concept_checks on local_iterator and const_local_iterator. | |
443 | Add asserts on comparison between const_local_iterator and | |
444 | local_iterator. | |
445 | (struct forward_members_unordered<_Tp, false>): Remove partial | |
446 | specialization. | |
447 | * testsuite/23_containers/forward_list/types/1.cc: New. | |
448 | * testsuite/23_containers/list/types/1.cc: New. | |
449 | ||
d1f43ba3 GP |
450 | 2018-09-01 Gerald Pfeifer <gerald@pfeifer.com> |
451 | ||
452 | * doc/xml/manual/profile_mode.xml: Update three ieeexplore.ieee.org | |
453 | references. | |
454 | ||
6cec3c81 SL |
455 | 2018-08-31 Sandra Loosemore <sandra@codesourcery.com> |
456 | ||
457 | * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc: | |
458 | Add dg-require-fileio. | |
459 | * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc: | |
460 | Likewise. | |
461 | * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc: | |
462 | Likewise. | |
463 | * testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc: | |
464 | Likewise. | |
465 | * testsuite/25_algorithms/copy/streambuf_iterators/wchar_t/4.cc: | |
466 | Likewise. | |
467 | * testsuite/25_algorithms/find/istreambuf_iterators/wchar_t/2.cc: | |
468 | Likewise. | |
469 | * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc: Likewise. | |
470 | * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc: Likewise. | |
471 | * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc: Likewise. | |
472 | * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc: Likewise. | |
473 | * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: Likewise. | |
474 | * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc: | |
475 | Likewise. | |
476 | * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc: | |
477 | Likewise. | |
478 | * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc: | |
479 | Likewise. | |
480 | * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc: | |
481 | Likewise. | |
482 | * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc: | |
483 | Likewise. | |
484 | * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc: | |
485 | Likewise. | |
486 | * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc: | |
487 | Likewise. | |
488 | * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise. | |
489 | * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise. | |
490 | * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: Likewise. | |
491 | * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: Likewise. | |
492 | * testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc: | |
493 | Likewise. | |
494 | * testsuite/27_io/basic_istream/extractors_other/wchar_t/2.cc: | |
495 | Likewise. | |
496 | * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise. | |
497 | * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise. | |
498 | * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise. | |
499 | * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise. | |
500 | * testsuite/27_io/basic_istream/seekg/wchar_t/sstream.cc: Likewise. | |
501 | * testsuite/27_io/basic_istream/tellg/wchar_t/sstream.cc: Likewise. | |
502 | * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: Likewise. | |
503 | * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: Likewise. | |
504 | * testsuite/27_io/basic_ostream/inserters_other/wchar_t/1.cc: | |
505 | Likewise. | |
506 | * testsuite/27_io/objects/wchar_t/10.cc: Likewise. | |
507 | * testsuite/27_io/objects/wchar_t/12048-1.cc: Likewise. | |
508 | * testsuite/27_io/objects/wchar_t/12048-2.cc: Likewise. | |
509 | * testsuite/27_io/objects/wchar_t/12048-3.cc: Likewise. | |
510 | * testsuite/27_io/objects/wchar_t/12048-4.cc: Likewise. | |
511 | * testsuite/27_io/objects/wchar_t/12048-5.cc: Likewise. | |
512 | * testsuite/experimental/string_view/inserters/wchar_t/2.cc: | |
513 | Likewise. | |
514 | * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise. | |
515 | ||
24ce3d94 SL |
516 | 2018-08-30 Sandra Loosemore <sandra@codesourcery.com> |
517 | ||
518 | * testsuite/experimental/propagate_const/observers/1.cc: Make | |
519 | dependence on -fdelete-null-pointer-checks explicit. | |
520 | ||
4a559e91 JW |
521 | 2018-08-30 Jonathan Wakely <jwakely@redhat.com> |
522 | ||
2fb17d2d JW |
523 | * include/bits/hashtable_policy.h (__clp2): Fix calculation for LLP64 |
524 | targets where sizeof(size_t) > sizeof(long). Avoid undefined shifts | |
525 | of the number of bits in the type. | |
526 | * include/std/bit (__ceil2): Avoid undefined shifts. | |
527 | * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: Test values with | |
528 | the most signifiant bit set. | |
529 | ||
0c05d456 JW |
530 | * config/abi/pre/gnu.ver: Add missing exports for mingw. |
531 | ||
4a559e91 JW |
532 | * include/ext/pointer.h (_Pointer_adapter): Define operators for |
533 | pointer arithmetic using long long offsets. | |
534 | * testsuite/ext/ext_pointer/1.cc: Test pointer arithmetic using | |
535 | long long values. | |
536 | ||
9111b083 JW |
537 | 2018-08-29 Jonathan Wakely <jwakely@redhat.com> |
538 | ||
539 | PR libstdc++/31413 | |
540 | * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Check D_FMT | |
541 | string for alternative format. | |
542 | ||
dd35da2c JW |
543 | 2018-08-28 Jonathan Wakely <jwakely@redhat.com> |
544 | ||
545 | PR libstdc++/87116 | |
546 | * src/filesystem/std-path.cc (path::lexically_normal): When handling | |
547 | a dot-dot filename, preserve an empty final component in the iteration | |
548 | sequence. | |
549 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Use preferred-separator for | |
550 | root-directory. | |
551 | * testsuite/27_io/filesystem/path/generation/normal.cc: Add new tests | |
552 | for more than two adjacent dot-dot filenames. | |
553 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Replace slashes with | |
554 | preferred-separator in expected normalized strings. | |
555 | ||
ee959ecb IS |
556 | 2018-08-25 Iain Sandoe <iain@sandoe.co.uk> |
557 | ||
558 | PR libstdc++/70694 | |
559 | * configure.host (OPT_LDFLAGS): Don't append | |
560 | -fvisibility-inlines-hidden for newer Darwin. | |
561 | ||
6eac0600 MG |
562 | 2018-08-24 Marc Glisse <marc.glisse@inria.fr> |
563 | ||
564 | PR libstdc++/86822 | |
565 | * libsupc++/new (operator new(size_t, nothrow_t), operator | |
566 | new[](size_t, nothrow_t), operator new(size_t, align_val_t, nothrow_t), | |
567 | operator new[](size_t, align_val_t, nothrow_t)): Add malloc attribute. | |
568 | ||
9ca2ac69 JW |
569 | 2018-08-24 Jonathan Wakely <jwakely@redhat.com> |
570 | ||
571 | * include/debug/deque (std::__debug::deque): Declare. | |
572 | * include/debug/forward_list (std::__debug::forward_list): Declare. | |
573 | * include/debug/list (std::__debug::list): Declare. | |
574 | * include/debug/map (std::__debug::map): Declare. | |
575 | * include/debug/set (std::__debug::set): Declare. | |
576 | * include/debug/unordered_map (std::__debug::unordered_map): Declare. | |
577 | * include/debug/unordered_set (std::__debug::unordered_set): Declare. | |
578 | * include/debug/vector (std::__debug::vector): Declare. | |
579 | * testsuite/23_containers/deque/types/pmr_typedefs_debug.cc: New test. | |
580 | * testsuite/23_containers/forward_list/pmr_typedefs_debug.cc: New | |
581 | test. | |
582 | * testsuite/23_containers/list/pmr_typedefs_debug.cc: New test. | |
583 | * testsuite/23_containers/map/pmr_typedefs_debug.cc: New test. | |
584 | * testsuite/23_containers/multimap/pmr_typedefs_debug.cc: New test. | |
585 | * testsuite/23_containers/multiset/pmr_typedefs_debug.cc: New test. | |
586 | * testsuite/23_containers/set/pmr_typedefs_debug.cc: New test. | |
587 | * testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc: New | |
588 | test. | |
589 | * testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc: | |
590 | New test. | |
591 | * testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc: | |
592 | New test. | |
593 | * testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc: New | |
594 | test. | |
595 | * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: | |
596 | Adjust dg-error lineno. | |
597 | * testsuite/23_containers/vector/types/pmr_typedefs_debug.cc: New | |
598 | test. | |
599 | ||
f73a5316 JW |
600 | 2018-08-23 Jonathan Wakely <jwakely@redhat.com> |
601 | ||
763ef11b JW |
602 | * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource): |
603 | Only define when RTTI is enabled. | |
604 | ||
568d5ee4 JW |
605 | * include/debug/vector (__niter_base): Define for C++98. |
606 | ||
c0787027 JW |
607 | * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc: |
608 | Fix C++98 test to not use C++11 features. | |
609 | * testsuite/25_algorithms/fill_n/2.cc: Likewise. | |
610 | ||
6de2ce26 JW |
611 | * scripts/check_compile: Fix comments. |
612 | ||
21bf6b2a JW |
613 | * include/debug/string (insert(__const_iterator, _InIter, _InIter)): |
614 | [!_GLIBCXX_USE_CXX11_ABI]: Replace use of C++11-only cbegin() with | |
615 | begin(), for C++98 compatibility. | |
616 | ||
3eb1eda1 JW |
617 | * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] |
618 | (basic_string::__const_iterator): Change access to protected. | |
619 | [!_GLIBCXX_USE_CXX11_ABI] (basic_string::__const_iterator): Define | |
620 | as typedef for iterator. | |
621 | * include/debug/string (__const_iterator): Use typedef from base. | |
622 | (insert(const_iterator, _CharT)) | |
623 | (replace(const_iterator, const_iterator, const basic_string&)) | |
624 | (replace(const_iterator, const_iterator, const _CharT*, size_type)) | |
625 | (replace(const_iterator, const_iterator, const CharT*)) | |
626 | (replace(const_iterator, const_iterator, size_type, _CharT)) | |
627 | (replace(const_iterator, const_iterator, _InputIter, _InputIter)) | |
628 | (replace(const_iterator, const_iterator, initializer_list<_CharT>)): | |
629 | Change const_iterator parameters to __const_iterator. | |
630 | (insert(iterator, size_type, _CharT)): Add C++98 overload. | |
631 | (insert(const_iterator, _InputIterator, _InputIterator)): Change | |
632 | const_iterator parameter to __const_iterator. | |
633 | [!_GLIBCXX_USE_CXX11_ABI]: Add workaround for incorrect return type | |
634 | of base's member function. | |
635 | (insert(const_iterator, size_type, _CharT)) [!_GLIBCXX_USE_CXX11_ABI]: | |
636 | Likewise. | |
637 | (insert(const_iterator, initializer_list<_CharT>)) | |
638 | [!_GLIBCXX_USE_CXX11_ABI]: Likewise. | |
639 | * testsuite/21_strings/basic_string/init-list.cc: Remove effective | |
640 | target directive. | |
641 | ||
0aa2934a JW |
642 | * testsuite/20_util/reference_wrapper/lwg2993.cc: Fix C++11 test to |
643 | not use C++14 feature. | |
644 | * testsuite/23_containers/list/68222_neg.cc: Likewise. | |
645 | ||
75224273 JW |
646 | * testsuite/21_strings/basic_string/init-list.cc: |
647 | Require cxx11-abi. | |
648 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc: | |
649 | Likewise. | |
650 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc: | |
651 | Likewise. | |
652 | ||
f73a5316 JW |
653 | * testsuite/23_containers/deque/capacity/max_size.cc: Fix test for |
654 | C++98 mode. | |
655 | * testsuite/23_containers/deque/modifiers/assign/1.cc: Likewise. | |
656 | * testsuite/23_containers/list/modifiers/assign/1.cc: Likewise. | |
657 | * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: Likewise. | |
658 | * testsuite/23_containers/vector/capacity/max_size.cc: Likewise. | |
659 | * testsuite/23_containers/vector/modifiers/assign/1.cc: Likewise. | |
660 | ||
af55b3af JW |
661 | 2018-08-22 Jonathan Wakely <jwakely@redhat.com> |
662 | ||
1bc7a28f JW |
663 | PR libstdc++/87061 |
664 | * include/experimental/regex [!_GLIBCXX_USE_CXX11_ABI] | |
665 | (experimental::pmr::match_results, experimental::pmr::cmatch) | |
666 | (experimental::pmr::smatch, experimental::pmr::wcmatch) | |
667 | (experimental::pmr::wsmatch): Do not declare for gcc4-compatible ABI, | |
668 | because COW strings don't support C++11 allocator model. | |
669 | * include/experimental/string [!_GLIBCXX_USE_CXX11_ABI] | |
670 | (experimental::pmr::basic_string, experimental::pmr::string) | |
671 | (experimental::pmr::u16string, experimental::pmr::u32string) | |
672 | (experimental::pmr::wstring): Likewise. | |
673 | * include/std/regex [!_GLIBCXX_USE_CXX11_ABI] (pmr::match_results) | |
674 | (pmr::cmatch, pmr::smatch, pmr::wcmatch, pmr::wsmatch): Likewise. | |
675 | * include/std/string [!_GLIBCXX_USE_CXX11_ABI] (pmr::basic_string) | |
676 | (pmr::string, pmr::u16string, pmr::u32string, pmr::wstring): Likewise. | |
677 | * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: Require | |
678 | cxx11-abi. | |
679 | * testsuite/28_regex/match_results/pmr_typedefs.cc: Likewise. | |
680 | ||
af55b3af JW |
681 | PR libstdc++/78448 |
682 | * include/bits/deque.tcc (deque::_M_range_initialize): Use | |
683 | _S_check_init_len to check size. | |
684 | (deque::_M_push_back_aux, deque::_M_push_front_aux): Throw length | |
685 | error if size would exceed max_size(). | |
686 | * include/bits/stl_deque.h (_Deque_base::size_type): Remove typedef. | |
687 | (_Deque_base(_Deque_base&&, const allocator_type&, size_t)): Use | |
688 | size_t instead of size_type. | |
689 | (deq(size_type, const allocator_type&) | |
690 | (deq(size_type, const value_type&, const allocator_type&) | |
691 | (deque::_M_initialize_dispatch): Use _S_check_init_len to check size. | |
692 | (deque::max_size): Call _S_max_size. | |
693 | (deque::_S_check_init_len, deque::_S_max_size): New functions. | |
694 | * include/bits/stl_vector.h (vector(size_type, const allocator_type&)) | |
695 | (vector(size_type, const value_type&, const allocator_type&)) | |
696 | (vector::_M_initialize_dispatch, vector::_M_range_initialize): Use | |
697 | _S_check_init_len to check size. | |
698 | (vector::max_size): Call _S_max_size. | |
699 | (vector::_M_check_len): Prevent max from being expanded as a | |
700 | function-like macro. | |
701 | (vector::_S_check_init_len, vector::_S_max_size): New functions. | |
702 | * include/bits/vector.tcc (vector::_M_assign_aux): Use | |
703 | _S_check_init_len to check size. | |
704 | * testsuite/23_containers/deque/capacity/max_size.cc: New test. | |
705 | * testsuite/23_containers/vector/capacity/max_size.cc: New test. | |
706 | ||
e9afbed0 FD |
707 | 2018-08-22 François Dumont <fdumont@gcc.gnu.org> |
708 | ||
709 | PR libstdc++/68222 | |
710 | * include/debug/safe_iterator.h | |
711 | (_Safe_iterator<_It, _Sq, _Cat>): Add category template parameter. | |
712 | (_Safe_iterator<>::_Const_iterator): Remove. | |
713 | (_Safe_iterator<>::_IsConstant): New. | |
714 | (_Safe_iterator<>::_OtherIterator): New. | |
715 | (_Safe_iterator<_It, _Sq, _Cat>::_Safe_iterator<_MutIte>( | |
716 | const _Safe_iterator<_MutIte, _Sq, _Cat>&)): Add _IsConstant::__value in | |
717 | __gnu_cxx::__enable_if condition. | |
718 | (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_to): New. | |
719 | (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_from_begin): New. | |
720 | (_Safe_iterator<_It, _Sq, _Cat>::_M_get_distance_to_end): New. | |
721 | (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag>): New. | |
722 | (_Safe_iterator<_It, _Sq, _Cat>::operator--()): Move... | |
723 | (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag> | |
724 | ::operator--()): ...here. | |
725 | (_Safe_iterator<_It, _Sq, _Cat>::operator--(int)): Move... | |
726 | (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag> | |
727 | ::operator--(int)): ...here. | |
728 | (_Safe_iterator<_It, _Sq, _Cat>::_M_decrementable()): Move... | |
729 | (_Safe_iterator<_It, _Sq, std::bidirectional_iterator_tag> | |
730 | ::_M_decrementable()): ...here. | |
731 | (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag>): New. | |
732 | (_Safe_iterator<_It, _Sq, _Cat>::operator[](const difference_type&)): | |
733 | Move... | |
734 | (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> | |
735 | ::operator[](const difference_type&)): ...here. | |
736 | (_Safe_iterator<_It, _Sq, _Cat>::operator+=(const difference_type&)): | |
737 | Move... | |
738 | (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> | |
739 | ::operator+=(const difference_type&)): ...here. | |
740 | (_Safe_iterator<_It, _Sq, _Cat>::operator+(const difference_type&)): | |
741 | Move... | |
742 | (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> | |
743 | ::operator+(const difference_type&)): ...here. | |
744 | (_Safe_iterator<_It, _Sq, _Cat>::operator-=(const difference_type&)): | |
745 | Move... | |
746 | (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> | |
747 | ::operator-=(const difference_type&)): ...here. | |
748 | (_Safe_iterator<_It, _Sq, _Cat>::operator-(const difference_type&)): | |
749 | Move... | |
750 | (_Safe_iterator<_It, _Sq, std::random_access_iterator_tag> | |
751 | ::operator-(const difference_type&)): ...here. | |
752 | (operator<(const _Safe_iterator<>&, const _Safe_iterator<>&)): | |
753 | Constraint to random access iterators. | |
754 | (operator<=(const _Safe_iterator<>&, const _Safe_iterator<>&)): | |
755 | Likewise. | |
756 | (operator>(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. | |
757 | (operator>=(const _Safe_iterator<>&, const _Safe_iterator<>&)): | |
758 | Likewise. | |
759 | (operator-(const _Safe_iterator<>&, const _Safe_iterator<>&)): Likewise. | |
760 | (operator+(const difference_type&, const _Safe_iterator<>&)): Likewise. | |
761 | (__check_dereferenceable(const _Safe_iterator<>&)): Remove. | |
762 | (__get_distance): Remove. | |
763 | (__get_distance_from_begin): Remove. | |
764 | (__get_distance_to_end): Remove. | |
765 | (struct __is_safe_random_iterator<_Safe_iterator<>>): Remove partial | |
766 | specialization. | |
767 | (__base(const _Safe_iterator<>&, std::input_iterator_tag)): Remove. | |
768 | (__base(const _Safe_iterator<>&, std::random_access_iterator_tag)): Remove. | |
769 | (__base(const _Safe_iterator<>&)): Constraint to random access iterator. | |
770 | * include/debug/safe_iterator.tcc | |
771 | (_Safe_iterator<>::_M_get_distance_from_begin()): New. | |
772 | (_Safe_iterator<>::_M_get_distance_to_end()): New. | |
773 | (_Safe_iterator<>::_M_get_distance_to(const _Safe_iterator<>&)): New. | |
774 | (_Safe_iterator<_It, _Seq, std::random_access_iterator_tag> | |
775 | ::_M_valid_range): New. | |
776 | * include/debug/safe_local_iterator.h | |
777 | (_Safe_local_iterator<>::_Const_local_iterator): Remove. | |
778 | (_Safe_local_iterator<>::_IsConstant): New. | |
779 | (_Safe_local_iterator<>::_OtherIterator): New. | |
780 | (_Safe_local_iterator<_It, _Cont>::_Safe_local_iterator<_MutIte, _Cont>( | |
781 | const _Safe_local_iterator<_MutIte, _Seq>&)): Add _IsConstant::__value | |
782 | in __gnu_cxx::__enable_if condition. If singular compare base iterator | |
783 | with _MutIte rather than _It. | |
784 | (_Safe_local_iterator<>::_S_constant): Make constexpr. | |
785 | (_Safe_local_iterator<>::_M_get_distance_to): New. | |
786 | (__check_dereferenceable(const _Safe_local_iterator<>&)): Remove. | |
787 | (__get_distance(const _Safe_local_iterator<>&, | |
788 | const _Safe_local_iterator<>&, std::input_iterator_tag)): Remove. | |
789 | (__valid_range(const _Safe_local_iterator<>&, | |
790 | const _Safe_local_iterator<>&)): New. | |
791 | * include/debug/safe_local_iterator.tcc | |
792 | (_Safe_local_iterator<>::_M_get_distance_to): New. | |
793 | * include/debug/deque (std::__debug::deque<>): Add | |
794 | ::__gnu_debug::_Safe_iterator<> friend declaration. | |
795 | * include/debug/forward_list (std::__debug::forward_list<>): Likewise. | |
796 | * include/debug/list (std::__debug::list<>): Likewise. | |
797 | * include/debug/map.h (std::__debug::map<>): Likewise. | |
798 | * include/debug/multimap.h (std::__debug::multimap<>): Likewise. | |
799 | * include/debug/set.h (std::__debug::set<>): Likewise. | |
800 | * include/debug/multiset.h (std::__debug::multiset<>): Likewise. | |
801 | * include/debug/string (std::__debug::basic_string<>): Likewise. | |
802 | * include/debug/unordered_map (std::__debug::unordered_map<>): Likewise | |
803 | and add ::__gnu_debug::_Safe_local_iterator<> friend declaration. | |
804 | (std::__debug::unordered_multimap<>): Likewise. | |
805 | * include/debug/unordered_set (std::__debug::unordered_set<>): Likewise. | |
806 | (std::__debug::unordered_multiset<>): Likewise. | |
807 | * include/debug/formatter.h: Adapt. | |
808 | * include/debug/helper_functions.h | |
809 | (__gnu_debug::_Safe_local_iterator<>): Add declaration. | |
810 | (__get_distance<_Ite>(_Ite, _Ite, std::random_access_iterator_tag): | |
811 | Pass parameter by copy. | |
812 | (__get_distance<_Ite>(_Ite, _Ite, std::input_iterator_tag): Likewise. | |
813 | (__get_distance<_Ite>(_Ite, _Ite): Likewise. | |
814 | (__valid_range_aux<_Integral>): Pass _Integral by copy. | |
815 | (__valid_range<_InputIterator>): Pass _InputIterator by copy. | |
816 | (__valid_range<>(const _Safe_iterator<>&, | |
817 | const _Safe_iterator<>&, typename _Distance_traits<>::__type&)): | |
818 | Declare. | |
819 | (__valid_range(const _Safe_local_iterator<>&, | |
820 | const _Safe_local_iterator<>&, typename _Distance_traits<>::__type&)): | |
821 | Declare. | |
822 | (__valid_range<>(const _Safe_iterator<>&, const _Safe_iterator<>&)): | |
823 | Declare. | |
824 | (__valid_range(const _Safe_local_iterator<>&, const _Safe_local_iterator<>&)): | |
825 | Declare. | |
826 | (__can_advance): Adapt. | |
827 | (struct __is_safe_random_iterator<>): Remove. | |
828 | (struct _SIter_base<>): Remove. | |
829 | * include/debug/functions.h: Include <bits/stl_iterator.h>. | |
830 | (__check_dereferenceable): Remove. | |
831 | (__foreign_iterator_aux4, __foreign_iterator_aux3): Adapt. | |
832 | (__foreign_iterator_aux2, __foreign_iterator_aux): Adapt. | |
833 | (__foreign_iterator): Adapt. | |
834 | * include/debug/stl_iterator.h | |
835 | (__is_safe_random_iterator<std::reverse_iterator<>>): Remove. | |
836 | (__base(const std::reverse_iterator<_Safe_iterator<_It, _Sq>)): | |
837 | Constraint for random access iterators. | |
838 | (__niter_base): Adapt. | |
839 | * testsuite/util/testsuite_containers.h: | |
840 | Include <bits/boost_concept_check.h>. | |
841 | (iterator_concept_checks<_It, _Mutable, _Category>): New. | |
842 | (citerator<_Cont>::forward_members::forward_members()): Instantiate | |
843 | latter for container iterator and const_iterator. | |
844 | * testsuite/23_containers/list/68222_neg.cc: New. | |
845 | * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: Adapt | |
846 | line number. | |
847 | * testsuite/23_containers/unordered_set/debug/debug_functions.cc: | |
848 | (test01): Remove. | |
849 | * testsuite/23_containers/vector/debug/debug_functions.cc (test01): | |
850 | Remove. | |
851 | ||
7c1dcf50 JW |
852 | 2018-08-22 Jonathan Wakely <jwakely@redhat.com> |
853 | ||
854 | PR libstdc++/77854 | |
855 | * doc/xml/manual/status_cxx1998.xml: Document size_type and | |
856 | difference_type for containers. | |
857 | * doc/html/*: Regenerate. | |
858 | ||
f7191a37 FD |
859 | 2018-08-21 François Dumont <fdumont@gcc.gnu.org> |
860 | ||
861 | P0646R1 Improving the Return Value of Erase-Like Algorithms I | |
862 | * include/debug/forward_list (forward_list::__remove_return_type): | |
863 | Define typedef as size_type or void, according to __cplusplus value. | |
864 | (_GLIBCXX_FWDLIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or | |
865 | empty, according to __cplusplus value. | |
866 | (_GLIBCXX20_ONLY): Define macro. | |
867 | (forward_list::remove, forward_list::unique): Use typedef and macro | |
868 | to change return type and add abi-tag for C++2a. Return number of | |
869 | removed elements for C++2a. | |
870 | (forward_list::remove_if<Pred>, forward_list::unique<BinPred>): Use | |
871 | typedef to change return type for C++2a. Return number of removed | |
872 | elements for C++2a. | |
873 | * include/debug/list (list::__remove_return_type): Define typedef as | |
874 | size_type or void, according to __cplusplus value. | |
875 | (_GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or | |
876 | empty, according to __cplusplus value. | |
877 | (_GLIBCXX20_ONLY): Define macro. | |
878 | (list::remove, list::unique): Use typedef and macro to change return | |
879 | type and add abi-tag for C++2a. Return number of removed elements for | |
880 | C++2a. | |
881 | (list::remove_if<Predicate>, list::unique<BinaryPredicate>): Use typedef | |
882 | to change return type for C++2a. Return number of removed elements for | |
883 | C++2a. | |
884 | ||
bce17c39 DE |
885 | 2018-08-21 David Edelsohn <dje.gcc@gmail.com> |
886 | ||
887 | * testsuite/18_support/new_nothrow.cc: XFAIL on AIX. | |
888 | ||
25d40363 JW |
889 | 2018-08-21 Jonathan Wakely <jwakely@redhat.com> |
890 | ||
891 | * testsuite/26_numerics/bit/bitops.count/countl_one.cc: Remove | |
892 | redundant dg-do directive. | |
893 | * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: Likewise. | |
894 | * testsuite/26_numerics/bit/bitops.count/countr_one.cc: Likewise. | |
895 | * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: Likewise. | |
896 | * testsuite/26_numerics/bit/bitops.count/popcount.cc: Likewise. | |
897 | ||
b655b8fc JW |
898 | 2018-08-20 Jonathan Wakely <jwakely@redhat.com> |
899 | ||
a2c5e1ae JW |
900 | PR libstdc++/86963 |
901 | * include/std/tuple (_Tuple_impl::operator=): Define as deleted. | |
902 | (_Tuple_impl::_M_assign): New functions to perform assignment instead | |
903 | of assignment operators. | |
904 | (_Tuple_impl::_M_swap): Remove exception specification. | |
905 | (_Tuple_impl<_Idx, _Head>): Likewise. | |
906 | (_TC::_NonNestedTuple, _TC::_NotSameTuple): Use __remove_cvref_t. | |
907 | (__tuple_base): Remove. | |
908 | (tuple, tuple<_T1, _T2>): Remove inheritance from __tuple_base. | |
909 | (tuple::operator=, tuple<_T1, _T2>::operator=): Call _M_assign. | |
910 | (tuple::swap, tuple<_T1, _T2>::swap): Define exception specification | |
911 | using __is_nothrow_swappable. | |
912 | (tuple<_T1, _T2>::tuple(_U1&&, _U2&&)): Use __remove_cvref_t. | |
913 | ||
b655b8fc JW |
914 | * include/std/optional (_Optional_payload): Use variable templates |
915 | for conditions in default template arguments and exception | |
916 | specifications. | |
917 | (optional): Likewise. Adjust indentation. | |
918 | (optional::__not_self, optional::__not_tag, optional::_Requires): New | |
919 | SFINAE helpers. | |
920 | (optional::optional): Use new helpers in constructor constraints. | |
921 | * include/std/type_traits (__or_v, __and_v): New variable templates. | |
922 | * testsuite/20_util/optional/cons/value_neg.cc: Change dg-error to | |
923 | dg-prune-output. Remove unused header. | |
924 | ||
6672e849 FD |
925 | 2018-08-18 François Dumont <fdumont@gcc.gnu.org> |
926 | ||
927 | * testsuite/25_algorithms/copy/86658.cc: Use dg-options to define | |
928 | _GLIBCXX_DEBUG. | |
929 | ||
478490f6 JW |
930 | 2018-08-17 Jonathan Wakely <jwakely@redhat.com> |
931 | ||
932 | PR libstdc++/86963 | |
933 | * include/std/tuple (__tuple_base): New class template with deleted | |
934 | copy assignment operator. | |
935 | (tuple, tuple<_T1, _T2>): Derive from __tuple_base<tuple> so that | |
936 | implicit copy/move assignment operator will be deleted/suppressed. | |
937 | (tuple::__assignable, tuple<_T1, _T2>::__assignable): New helper | |
938 | functions for SFINAE constraints on assignment operators. | |
939 | (tuple::__nothrow_assignable, tuple<_T1, _T2>::__nothrow_assignable): | |
940 | New helper functions for exception specifications. | |
941 | (tuple::operator=(const tuple&), tuple::operator=(tuple&&)) | |
942 | (tuple<_T1, _T2>::operator=(const tuple&)) | |
943 | (tuple<_T1, _T2>::operator=(tuple&&)): Change parameter types to | |
944 | __nonesuch_no_braces when the operator should be defined implicitly. | |
945 | Use __nothrow_assignable for exception specifications. | |
946 | (tuple::operator=(const tuple<_UElements...>&)) | |
947 | (tuple::operator=(tuple<_UElements...>&&)) | |
948 | (tuple<_T1, _T2>::operator=(const tuple<_U1, _U2>&)) | |
949 | (tuple<_T1, _T2>::operator=(tuple<_U1, _U2>&&)) | |
950 | (tuple<_T1, _T2>::operator=(const pair<_U1, _U2>&)) | |
951 | (tuple<_T1, _T2>::operator=(pair<_U1, _U2>&&)): Constrain using | |
952 | __assignable and use __nothrow_assignable for exception | |
953 | specifications. | |
954 | * python/libstdcxx/v6/printers.py (is_specialization_of): Accept | |
955 | gdb.Type as first argument, instead of a string. | |
956 | (StdTuplePrinter._iterator._is_nonempty_tuple): New method to check | |
957 | tuple for expected structure. | |
958 | (StdTuplePrinter._iterator.__init__): Use _is_nonempty_tuple. | |
959 | * testsuite/20_util/tuple/dr2729.cc: New test. | |
960 | * testsuite/20_util/tuple/element_access/get_neg.cc: Change dg-error | |
961 | to dg-prune-output. | |
962 | ||
891b1d68 JW |
963 | 2018-08-16 Jonathan Wakely <jwakely@redhat.com> |
964 | ||
0ac40f61 JW |
965 | * include/tr1/legendre_function.tcc (__sph_legendre): Avoid warning |
966 | about signed/unsigned comparison. | |
967 | ||
450f33d6 JW |
968 | * include/std/ostream (basic_ostream::sentry::~sentry): Suppress |
969 | deprecation warnings for using uncaught_exception(). | |
970 | ||
891b1d68 JW |
971 | PR libstdc++/86447 |
972 | * src/c++11/cow-stdexcept.cc [_GLIBCXX_FULLY_DYNAMIC_STRING] | |
973 | (logic_error::logic_error(logic_error&&)) | |
974 | (logic_error::operator=(logic_error&&)) | |
975 | (runtime_error::runtime_error(runtime_error&&)) | |
976 | (runtime_error::operator=(runtime_error&&)): Copy strings instead of | |
977 | moving, to avoid allocating empty reps for moved-from strings. | |
978 | ||
25b030b8 JW |
979 | 2018-08-15 Jonathan Wakely <jwakely@redhat.com> |
980 | ||
b8eac4d0 JW |
981 | * include/experimental/regex: Remove begin/end macros for namespace. |
982 | * include/experimental/string: Likewise. | |
983 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_deque.cc: | |
984 | New test. | |
985 | * testsuite/experimental/polymorphic_allocator/ | |
986 | pmr_typedefs_forward_list.cc: New test. | |
987 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_list.cc: | |
988 | New test. | |
989 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_map.cc: | |
990 | New test. | |
991 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc: | |
992 | New test. | |
993 | * testsuite/experimental/polymorphic_allocator/ | |
994 | pmr_typedefs_multimap.cc: New test. | |
995 | * testsuite/experimental/polymorphic_allocator/ | |
996 | pmr_typedefs_multiset.cc: New test. | |
997 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_set.cc: | |
998 | New test. | |
999 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc: | |
1000 | New test. | |
1001 | * testsuite/experimental/polymorphic_allocator/ | |
1002 | pmr_typedefs_unordered_map.cc: New test. | |
1003 | * testsuite/experimental/polymorphic_allocator/ | |
1004 | pmr_typedefs_unordered_multimap.cc: New test. | |
1005 | * testsuite/experimental/polymorphic_allocator/ | |
1006 | pmr_typedefs_unordered_multiset.cc: New test. | |
1007 | * testsuite/experimental/polymorphic_allocator/ | |
1008 | pmr_typedefs_unordered_set.cc: New test. | |
1009 | * testsuite/experimental/polymorphic_allocator/pmr_typedefs_vector.cc: | |
1010 | New test. | |
1011 | ||
b479fbad JW |
1012 | * include/bits/uses_allocator.h (__uses_allocator_construct): Qualify |
1013 | calls to __uses_allocator_construct_impl and __use_alloc. | |
1014 | * include/experimental/memory_resource | |
1015 | (polymorphic_allocator::_M_construct): Remove. | |
1016 | (polymorphic_allocator::construct): Call __uses_allocator_construct. | |
1017 | Qualify calls to __use_alloc. | |
1018 | * include/std/memory_resource (polymorphic_allocator::construct): Fix | |
1019 | type in SFINAE constraint. Use constexpr if instead of tag dispatching | |
1020 | to _S_construct overloads. | |
1021 | (polymorphic_allocator::construct(pair<T1, T2>*, ...)): Fix order of | |
1022 | arguments to _S_construct_p. | |
1023 | (polymorphic_allocator::_S_construct): Remove. | |
1024 | (polymorphic_allocator::_S_construct_p): Return allocators by value | |
1025 | not by reference. | |
1026 | * include/std/scoped_allocator (scoped_allocator_adaptor::construct): | |
1027 | Qualify calls to __use_alloc. | |
1028 | * testsuite/20_util/polymorphic_allocator/construct_pair.cc: New test, | |
1029 | copied from testsuite/20_util/scoped_allocator/construct_pair.cc. | |
1030 | * testsuite/experimental/polymorphic_allocator/1.cc: New test. | |
1031 | * testsuite/experimental/polymorphic_allocator/construct_pair.cc: | |
1032 | New test. | |
1033 | ||
25b030b8 JW |
1034 | * src/c++17/memory_resource.cc [!_GLIBCXX_HAS_GTHREADS] |
1035 | (atomic_mem_res): Add unsynchronized definition for single-threaded. | |
1036 | ||
484e936e JW |
1037 | 2018-08-14 Jonathan Wakely <jwakely@redhat.com> |
1038 | ||
aa7df52e JW |
1039 | PR libstdc++/86954 |
1040 | * include/bits/stl_tempbuf.h (return_temporary_buffer): Use | |
1041 | non-placement delete. | |
1042 | ||
b8b5398c JW |
1043 | * include/std/chrono (__check_overflow): Simplify definition. |
1044 | (_Checked_integral_constant): Remove. | |
1045 | ||
26e13048 JW |
1046 | PR libstdc++/86846 |
1047 | * src/c++17/default_resource.h: New file, defining default_res. | |
1048 | * src/c++17/memory_resource.cc [ATOMIC_POINTER_LOCK_FREE != 2] | |
1049 | (atomic_mem_res): Define alternative for atomic<memory_resource*> | |
1050 | using a mutex instead of atomics. | |
1051 | ||
484e936e JW |
1052 | PR libstdc++/85343 |
1053 | * config/abi/pre/gnu.ver: Export new symbol. | |
1054 | * doc/xml/manual/abi.xml: Document new versions. | |
1055 | * include/bits/fstream.tcc (basic_filebuf<C, T>::underflow) | |
1056 | (basic_filebuf<C, T>::xsgetn): Pass errno to __throw_ios_failure. | |
1057 | * include/bits/functexcept.h (__throw_ios_failure(const char*, int)): | |
1058 | Declare new overload. | |
1059 | * src/c++11/cxx11-ios_failure.cc (__ios_failure): Add new constructor | |
1060 | and static member function. | |
1061 | (__throw_ios_failure(const char*, int)): Define. | |
1062 | * src/c++98/ios_failure.cc [!_GLIBCXX_USE_DUAL_ABI] | |
1063 | (__throw_ios_failure(const char*, int)): Define. | |
1064 | ||
3ffa55de JS |
1065 | 2018-08-14 Jeremy Sawicki <jeremy-gcc@sawicki.us> |
1066 | ||
1067 | * include/ext/rope (_Rope_iterator_base(const _Rope_iterator_base&)) | |
1068 | (_Rope_const_iterator::operator=(const _Rope_const_iterator&)) | |
1069 | (_Rope_iterator::operator=(const _Rope_iterator&)): Ensure | |
1070 | copied/assigned rope iterators don't retain pointers to the iterator | |
1071 | they were copied/assigned from. | |
1072 | * testsuite/ext/rope/7.cc: New. | |
1073 | ||
9db03bee JW |
1074 | 2018-08-13 Jonathan Wakely <jwakely@redhat.com> |
1075 | ||
ca086dda JW |
1076 | PR libstdc++/45093 |
1077 | * include/bits/stl_tree.h (_Rb_tree::_M_destroy_node(_Link_type)): | |
1078 | Combine definitions to avoid --detect-odr-violations warning. | |
1079 | ||
2383ed02 JW |
1080 | * libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Use |
1081 | __is_pow2 to check for valid alignment. Avoid branching when rounding | |
1082 | size to multiple of alignment. | |
1083 | ||
7997ede2 JW |
1084 | * include/Makefile.am: Install <bit> and <version> for freestanding. |
1085 | * include/Makefile.in: Regenerate. | |
1086 | * testsuite/17_intro/freestanding.cc: Check for <bit> and <version>. | |
1087 | ||
9db03bee JW |
1088 | Revert |
1089 | 2018-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de> | |
1090 | ||
1091 | PR target/85904 | |
1092 | * configure.ac: Define HAVE_ALIGNED_ALLOC if building for | |
1093 | Newlib. | |
1094 | * configure: Regenerate. | |
1095 | ||
b66e5a95 JW |
1096 | 2018-08-10 Jonathan Wakely <jwakely@redhat.com> |
1097 | ||
1098 | PR libstdc++/68210 | |
1099 | * doc/xml/manual/intro.xml: Document LWG 206 change. | |
1100 | * libsupc++/del_op.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept. | |
1101 | * libsupc++/del_opa.cc: Likewise. | |
1102 | * libsupc++/del_opant.cc: Likewise. | |
1103 | * libsupc++/del_opnt.cc: Likewise. Call operator delete(ptr) instead | |
1104 | of free(ptr). | |
1105 | * libsupc++/del_ops.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept. | |
1106 | * libsupc++/del_opsa.cc: Likewise. | |
1107 | * libsupc++/del_opva.cc: Likewise. | |
1108 | * libsupc++/del_opvant.cc: Likewise. | |
1109 | * libsupc++/del_opvnt.cc: Likewise. Call operator delete[](ptr) | |
1110 | instead of operator delete(ptr). | |
1111 | * libsupc++/del_opvs.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept. | |
1112 | * libsupc++/del_opvsa.cc: Likewise. | |
1113 | * libsupc++/new_op.cc: Use __builtin_expect in check for zero size. | |
1114 | * libsupc++/new_opa.cc: Use nullptr instead of literal 0. | |
1115 | * libsupc++/new_opant.cc: Likewise. Replace _GLIBCXX_USE_NOEXCEPT | |
1116 | with noexcept. | |
1117 | * libsupc++/new_opnt.cc: Likewise. Call operator new(sz) instead of | |
1118 | malloc(sz). | |
1119 | * libsupc++/new_opvant.cc: Use nullptr and noexcept. | |
1120 | * libsupc++/new_opvnt.cc: Likewise. Call operator new[](sz) instead of | |
1121 | operator new(sz, nothrow). | |
1122 | * testsuite/18_support/new_nothrow.cc: New test. | |
1123 | ||
8b9a5b5e ML |
1124 | 2018-08-10 Martin Liska <mliska@suse.cz> |
1125 | ||
1126 | * libsupc++/new_op.cc (new): Remove __builtin_expect as malloc | |
6894c57b | 1127 | predictor can handle that. |
8b9a5b5e ML |
1128 | * libsupc++/new_opa.cc: Likewise. |
1129 | * libsupc++/new_opnt.cc (new): Likewise. | |
1130 | ||
ee6ad3e7 SH |
1131 | 2018-08-10 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1132 | ||
1133 | PR target/85904 | |
1134 | * configure.ac: Define HAVE_ALIGNED_ALLOC if building for | |
1135 | Newlib. | |
1136 | * configure: Regenerate. | |
1137 | ||
1fc9d0b0 JW |
1138 | 2018-08-10 Jonathan Wakely <jwakely@redhat.com> |
1139 | ||
1140 | * include/std/deque (std::pmr::deque): Declare alias. | |
1141 | * include/std/forward_list (std::pmr::forward_list): Likewise. | |
1142 | * include/std/list (std::pmr::list): Likewise. | |
1143 | * include/std/map (std::pmr::map, std::pmr::multimap): Likewise. | |
1144 | * include/std/regex (std::pmr::match_results, std::pmr::cmatch) | |
1145 | (std::pmr::smatch, std::pmr::wcmatch, std::pmr::wsmatch): Likewise. | |
1146 | * include/std/set (std::pmr::set, std::pmr::multiset): Likewise. | |
1147 | * include/std/string (std::pmr::basic_string, std::pmr::string) | |
1148 | (std::pmr::u16string, std::pmr::u32string, std::pmr::wstring): | |
1149 | Likewise. | |
1150 | * include/std/unordered_map (std::pmr::unordered_map) | |
1151 | (std::pmr::unordered_multimap): Likewise. | |
1152 | * include/std/unordered_set (std::pmr::unordered_set) | |
1153 | (std::pmr::unordered_multiset): Likewise. | |
1154 | * include/std/vector (std::pmr::vector): Likewise. | |
1155 | * testsuite/21_strings/basic_string/types/pmr_typedefs.cc: New test. | |
1156 | * testsuite/23_containers/deque/types/pmr_typedefs.cc: New test. | |
1157 | * testsuite/23_containers/forward_list/pmr_typedefs.cc: New test. | |
1158 | * testsuite/23_containers/list/pmr_typedefs.cc: New test. | |
1159 | * testsuite/23_containers/map/pmr_typedefs.cc: New test. | |
1160 | * testsuite/23_containers/multimap/pmr_typedefs.cc: New test. | |
1161 | * testsuite/23_containers/multiset/pmr_typedefs.cc: New test. | |
1162 | * testsuite/23_containers/set/pmr_typedefs.cc: New test. | |
1163 | * testsuite/23_containers/unordered_map/pmr_typedefs.cc: New test. | |
1164 | * testsuite/23_containers/unordered_multimap/pmr_typedefs.cc: New | |
1165 | test. | |
1166 | * testsuite/23_containers/unordered_multiset/pmr_typedefs.cc: New | |
1167 | test. | |
1168 | * testsuite/23_containers/unordered_set/pmr_typedefs.cc: New test. | |
1169 | * testsuite/23_containers/vector/pmr_typedefs.cc: New test. | |
1170 | * testsuite/28_regex/match_results/pmr_typedefs.cc: New test. | |
1171 | ||
29a9c26c FD |
1172 | 2018-08-08 François Dumont <fdumont@gcc.gnu.org> |
1173 | ||
1174 | * include/bits/stl_algo.h | |
1175 | (__rotate(_Ite, _Ite, _Ite, forward_iterator_tag)) | |
1176 | (__rotate(_Ite, _Ite, _Ite, bidirectional_iterator_tag)) | |
6894c57b JW |
1177 | (__rotate(_Ite, _Ite, _Ite, random_access_iterator_tag)): Move code |
1178 | duplication... | |
29a9c26c FD |
1179 | (rotate(_Ite, _Ite, _Ite)): ...here. |
1180 | (__stable_partition_adaptive(_FIt, _FIt, _Pred, _Dist, _Pointer, _Dist)): | |
1181 | Simplify rotate call. | |
1182 | (__rotate_adaptive(_BIt1, _BIt1, _BIt1, _Dist, _Dist, _Bit2, _Dist)): | |
1183 | Likewise. | |
1184 | (__merge_without_buffer(_BIt, _BIt, _BIt, _Dist, _Dist, _Comp)): | |
1185 | Likewise. | |
1186 | ||
d3f3c680 JW |
1187 | 2018-08-08 Jonathan Wakely <jwakely@redhat.com> |
1188 | ||
a8019919 JW |
1189 | * libsupc++/new_opa.cc (aligned_alloc): Declare inside namespace to |
1190 | avoid clashing with an ::aligned_alloc function that was not detected | |
1191 | by configure. | |
1192 | ||
2e9dae04 JW |
1193 | * doc/xml/manual/using.xml: Fix markup for empty table entry. |
1194 | * doc/html/*: Regenerate. | |
1195 | ||
c0d57e63 JW |
1196 | * doc/xml/manual/using.xml: Add missing header to table and fix typo. |
1197 | * doc/html/*: Regenerate. | |
1198 | ||
d3f3c680 JW |
1199 | PR libstdc++/86597 |
1200 | * include/bits/fs_dir.h (directory_entry::_M_file_type(error_code&)): | |
1201 | Clear error_code when cached type is used. | |
1202 | * testsuite/27_io/filesystem/directory_entry/86597.cc: New test. | |
1203 | ||
ea2329d1 JW |
1204 | 2018-08-07 Jonathan Wakely <jwakely@redhat.com> |
1205 | ||
0ec78a93 JW |
1206 | PR libstdc++/86874 |
1207 | * include/std/variant (_Copy_ctor_base::_M_destructive_move): Define | |
1208 | here instead of in _Move_assign_base. | |
1209 | (_Copy_ctor_base<true, _Types...>::_M_destructive_move): Define. | |
1210 | (_Copy_assign_base::operator=): Use _M_destructive_move when changing | |
1211 | the contained value to another alternative. | |
1212 | (_Move_assign_base::operator=): Likewise. | |
1213 | (_Move_assign_base::_M_destructive_move): Remove. | |
1214 | * testsuite/20_util/variant/86874.cc: New test. | |
1215 | ||
1d1b7328 JW |
1216 | PR libstdc++/86861 |
1217 | * libsupc++/new_opa.cc [_GLIBCXX_HAVE_MEMALIGN] (aligned_alloc): | |
1218 | Replace macro with inline function. | |
1219 | [__sun]: Increase alignment to meet memalign precondition. | |
1220 | [!HAVE__ALIGNED_MALLOC && !HAVE_POSIX_MEMALIGN && !HAVE_MEMALIGN] | |
1221 | (aligned_alloc): Move check for valid alignment to operator new. | |
1222 | Remove redundant check for non-zero size, it's enforced by the caller. | |
1223 | (operator new): Move check for valid alignment here. Use | |
1224 | __builtin_expect on check for zero size. | |
1225 | ||
ea2329d1 JW |
1226 | * config/abi/pre/gnu.ver: Export monotonic_buffer_resource members. |
1227 | * include/std/memory_resource (monotonic_buffer_resource::release): | |
1228 | Call _M_release_buffers to free buffers. | |
1229 | (monotonic_buffer_resource::do_allocate): Call _M_new_buffer to | |
1230 | allocate a new buffer from upstream. | |
1231 | (monotonic_buffer_resource::_M_new_buffer): Declare. | |
1232 | (monotonic_buffer_resource::_M_release_buffers): Declare. | |
1233 | (monotonic_buffer_resource::_Chunk): Replace definition with | |
1234 | declaration as opaque type. | |
1235 | * src/c++17/memory_resource.cc (monotonic_buffer_resource::_Chunk): | |
1236 | Define. | |
1237 | (monotonic_buffer_resource::_M_new_buffer): Define. | |
1238 | (monotonic_buffer_resource::_M_release_buffers): Define. | |
1239 | ||
dd5faf20 FD |
1240 | 2018-08-05 François Dumont <fdumont@gcc.gnu.org> |
1241 | ||
1242 | * include/bits/stl_iterator.h: Fix comment. | |
1243 | ||
d7487e2a JW |
1244 | 2018-08-03 Jonathan Wakely <jwakely@redhat.com> |
1245 | ||
1246 | * src/c++11/system_error.cc | |
1247 | (system_error_category::default_error_condition): Add workaround for | |
1248 | ENOTEMPTY and EEXIST having the same value on AIX. | |
1249 | * testsuite/19_diagnostics/error_category/system_category.cc: Add | |
1250 | extra testcases for EDOM, EILSEQ, ERANGE, EEXIST and ENOTEMPTY. | |
1251 | ||
9fbd2e55 JW |
1252 | 2018-08-01 Jonathan Wakely <jwakely@redhat.com> |
1253 | ||
1254 | * configure: Regenerate. | |
1255 | * configure.ac: Add -D_GLIBCXX_ASSERTIONS to default DEBUG_FLAGS. | |
1256 | * src/c++11/futex.cc: Use __glibcxx_assert instead of | |
1257 | _GLIBCXX_DEBUG_ASSERT. | |
1258 | ||
9e68aa3c MC |
1259 | 2018-08-01 Mike Crowe <mac@mcrowe.com> |
1260 | ||
1261 | * include/std/condition_variable (wait_for): Use steady_clock. | |
1262 | ||
2f593432 MC |
1263 | 2018-08-01 Mike Crowe <mac@mcrowe.com> |
1264 | ||
1265 | * include/std/condition_variable (wait_until): Only report timeout | |
1266 | if we really have timed out when measured against the | |
1267 | caller-supplied clock. | |
1268 | * testsuite/30_threads/condition_variable/members/2.cc: Add test | |
1269 | case to confirm above behaviour. | |
1270 | ||
5ecfbf82 JW |
1271 | 2018-08-01 Jonathan Wakely <jwakely@redhat.com> |
1272 | ||
1273 | PR libstdc++/60555 | |
1274 | * src/c++11/system_error.cc | |
1275 | (system_error_category::default_error_condition): New override to | |
1276 | check for POSIX errno values. | |
1277 | * testsuite/19_diagnostics/error_category/generic_category.cc: New | |
1278 | * testsuite/19_diagnostics/error_category/system_category.cc: New | |
1279 | test. | |
1280 | ||
77a6c969 JW |
1281 | 2018-07-31 Jonathan Wakely <jwakely@redhat.com> |
1282 | ||
e1821582 JW |
1283 | PR libstdc++/86751 |
1284 | * include/bits/stl_pair.h (__pair_base): New class with deleted copy | |
1285 | assignment operator. | |
1286 | (pair): Derive from __pair_base. | |
1287 | (pair::operator=): Remove deleted overload. | |
1288 | * python/libstdcxx/v6/printers.py (StdPairPrinter): New pretty printer | |
1289 | so that new base class isn't shown in GDB. | |
1290 | * testsuite/20_util/pair/86751.cc: New test. | |
1291 | * testsuite/20_util/pair/ref_assign.cc: New test. | |
1292 | ||
ff273400 JW |
1293 | * include/bits/c++config (_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP) |
1294 | (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Move definitions here. | |
1295 | (_GLIBCXX_HAVE_BUILTIN_LAUNDER): Likewise. Use !__is_identifier | |
1296 | instead of __has_builtin. | |
1297 | * include/std/type_traits (_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP) | |
1298 | (_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE): Remove definitions from here. | |
1299 | * include/std/version [!_GLIBCXX_HAS_GTHREADS] | |
1300 | (__cpp_lib_shared_timed_mutex, __cpp_lib_scoped_lock) | |
1301 | (__cpp_lib_shared_mutex): Don't define when Gthreads not in use. | |
1302 | [!_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP] | |
1303 | (__cpp_lib_has_unique_object_representations): Don't define when | |
1304 | builtin not available. | |
1305 | [!_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE] (__cpp_lib_is_aggregate): | |
1306 | Likewise. | |
1307 | [!_GLIBCXX_HAVE_BUILTIN_LAUNDER] (__cpp_lib_launder): Likewise. | |
1308 | * libsupc++/new (_GLIBCXX_HAVE_BUILTIN_LAUNDER): Remove definition | |
1309 | from here. | |
1310 | ||
3e64a626 JW |
1311 | * doc/xml/manual/test.xml: Improve documentation on writing tests for |
1312 | newer standards. | |
1313 | * doc/xml/manual/using.xml: Document all headers for C++11 and later. | |
1314 | * doc/html/*: Regenerate. | |
1315 | ||
77a6c969 JW |
1316 | * include/ext/pointer.h [__cplusplus >= 201103L] |
1317 | (_Pointer_adapter::operator bool): Add explicit conversion operator | |
1318 | to replace safe bool idiom. | |
1319 | ||
1b3b888d JW |
1320 | 2018-07-30 Jonathan Wakely <jwakely@redhat.com> |
1321 | ||
a64ede72 JW |
1322 | PR libstdc++/86734 |
1323 | * include/bits/stl_iterator.h (reverse_iterator::operator->): Call | |
1324 | _S_to_pointer (LWG 1052, LWG 2118). | |
1325 | (reverse_iterator::_S_to_pointer): Define overloaded helper functions. | |
1326 | * testsuite/24_iterators/reverse_iterator/dr1052.cc: New test. | |
1327 | * testsuite/24_iterators/reverse_iterator/dr2188.cc: New test. | |
1328 | ||
1b3b888d JW |
1329 | * libsupc++/new_opa.cc (operator new(size_t, align_val_t)): Add |
1330 | workaround for aligned_alloc bug on AIX. | |
1331 | * testsuite/18_support/new_aligned.cc: New test. | |
1332 | ||
ccfe77fa MP |
1333 | 2018-07-26 Marek Polacek <polacek@redhat.com> |
1334 | ||
1335 | * testsuite/30_threads/condition_variable_any/cond.cc: New. | |
1336 | ||
4b8b1f59 MP |
1337 | 2018-07-26 Marek Polacek <polacek@redhat.com> |
1338 | ||
1339 | * src/c++98/locale_init.cc: Fix #ifdef condition. | |
1340 | ||
8ba7f29e JW |
1341 | 2018-07-26 Jonathan Wakely <jwakely@redhat.com> |
1342 | ||
49ba2588 JW |
1343 | * testsuite/18_support/aligned_alloc/aligned_alloc.cc: Add |
1344 | dg-require-cstdint directive. | |
1345 | * testsuite/20_util/allocator/overaligned.cc: Likewise. | |
1346 | * testsuite/20_util/any/cons/aligned.cc: Likewise. | |
1347 | * testsuite/20_util/monotonic_buffer_resource/allocate.cc: Likewise. | |
1348 | * testsuite/20_util/monotonic_buffer_resource/deallocate.cc: Likewise. | |
1349 | * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: | |
1350 | Likewise. | |
1351 | * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. | |
1352 | * testsuite/23_containers/list/modifiers/insert/25288.cc: Likewise. | |
1353 | * testsuite/23_containers/set/allocator/move_assign.cc: Likewise. | |
1354 | * testsuite/25_algorithms/make_heap/complexity.cc: Likewise. | |
1355 | * testsuite/25_algorithms/pop_heap/complexity.cc: Require cstdint and | |
1356 | random_device effective-target. | |
1357 | * testsuite/25_algorithms/push_heap/complexity.cc: Likewise. | |
1358 | * testsuite/25_algorithms/sample/1.cc: Require cstdint. | |
1359 | * testsuite/25_algorithms/sample/2.cc: Likewise. | |
1360 | * testsuite/25_algorithms/sort_heap/complexity.cc: Require cstdint | |
1361 | and random_device. | |
1362 | * testsuite/26_numerics/headers/random/types_std_c++0x.cc: Require | |
1363 | cstdint. | |
1364 | * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: | |
1365 | Likewise. | |
1366 | * testsuite/26_numerics/random/discard_block_engine/requirements/ | |
1367 | constexpr_data.cc: Likewise. | |
1368 | * testsuite/26_numerics/random/discard_block_engine/requirements/ | |
1369 | constexpr_functions.cc: Likewise. | |
1370 | * testsuite/26_numerics/random/independent_bits_engine/requirements/ | |
1371 | constexpr_functions.cc: Likewise. | |
1372 | * testsuite/26_numerics/random/linear_congruential_engine/requirements/ | |
1373 | constexpr_data.cc: Likewise. | |
1374 | * testsuite/26_numerics/random/linear_congruential_engine/requirements/ | |
1375 | constexpr_functions.cc: Likewise. | |
1376 | * testsuite/26_numerics/random/mersenne_twister_engine/requirements/ | |
1377 | constexpr_data.cc: Likewise. | |
1378 | * testsuite/26_numerics/random/mersenne_twister_engine/requirements/ | |
1379 | constexpr_functions.cc: Likewise. | |
1380 | * testsuite/26_numerics/random/pr60037-neg.cc: Likewise. | |
1381 | * testsuite/26_numerics/random/seed_seq/cons/65631.cc: Likewise. | |
1382 | * testsuite/26_numerics/random/shuffle_order_engine/requirements/ | |
1383 | constexpr_data.cc: Add dg-require-cstdint directive. | |
1384 | * testsuite/26_numerics/random/shuffle_order_engine/requirements/ | |
1385 | constexpr_functions.cc: Likewise. | |
1386 | * testsuite/26_numerics/random/subtract_with_carry_engine/requirements/ | |
1387 | constexpr_data.cc: Likewise. | |
1388 | * testsuite/26_numerics/random/subtract_with_carry_engine/requirements/ | |
1389 | constexpr_functions.cc: Likewise. | |
1390 | * testsuite/26_numerics/random/uniform_real_distribution/operators/ | |
1391 | 64351.cc: Likewise. | |
1392 | * testsuite/29_atomics/headers/atomic/types_std_c++0x.cc: Likewise. | |
1393 | * testsuite/experimental/algorithm/sample-2.cc: Likewise. | |
1394 | * testsuite/experimental/algorithm/sample.cc: Likewise. | |
1395 | * testsuite/experimental/algorithm/search.cc: Likewise. | |
1396 | * testsuite/experimental/algorithm/shuffle.cc: Likewise. | |
1397 | * testsuite/experimental/any/cons/aligned.cc: Likewise. | |
1398 | * testsuite/experimental/memory_resource/new_delete_resource.cc: | |
1399 | Likewise. | |
1400 | * testsuite/experimental/memory_resource/resource_adaptor.cc: Likewise. | |
1401 | * testsuite/experimental/random/randint.cc: Likewise. | |
1402 | * testsuite/experimental/source_location/1.cc: Likewise. | |
1403 | * testsuite/ext/bitmap_allocator/overaligned.cc: Likewise. | |
1404 | * testsuite/ext/malloc_allocator/overaligned.cc: Likewise. | |
1405 | * testsuite/ext/mt_allocator/overaligned.cc: Likewise. | |
1406 | * testsuite/ext/new_allocator/overaligned.cc: Likewise. | |
1407 | * testsuite/ext/pb_ds/regression/hash_map_rand.cc: Likewise. | |
1408 | * testsuite/ext/pb_ds/regression/hash_set_rand.cc: Likewise. | |
1409 | * testsuite/ext/pb_ds/regression/list_update_map_rand.cc: Likewise. | |
1410 | * testsuite/ext/pb_ds/regression/list_update_set_rand.cc: Likewise. | |
1411 | * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Likewise. | |
1412 | * testsuite/ext/pb_ds/regression/tree_map_rand.cc: Likewise. | |
1413 | * testsuite/ext/pb_ds/regression/tree_set_rand.cc: Likewise. | |
1414 | * testsuite/ext/pb_ds/regression/trie_map_rand.cc: Likewise. | |
1415 | * testsuite/ext/pb_ds/regression/trie_set_rand.cc: Likewise. | |
1416 | * testsuite/ext/pool_allocator/overaligned.cc: Likewise. | |
1417 | * testsuite/ext/throw_allocator/check_allocate_max_size.cc: Likewise. | |
1418 | * testsuite/ext/throw_allocator/check_deallocate_null.cc: Likewise. | |
1419 | * testsuite/ext/throw_allocator/check_delete.cc: Likewise. | |
1420 | * testsuite/ext/throw_allocator/check_new.cc: Likewise. | |
1421 | * testsuite/ext/throw_allocator/deallocate_global.cc: Likewise. | |
1422 | * testsuite/ext/throw_allocator/deallocate_local.cc: Likewise. | |
1423 | * testsuite/ext/throw_allocator/explicit_instantiation.cc: Likewise. | |
1424 | * testsuite/ext/throw_allocator/variadic_construct.cc: Likewise. | |
1425 | * testsuite/tr1/8_c_compatibility/cinttypes/functions.cc: Likewise. | |
1426 | ||
47114f2d JW |
1427 | * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise. |
1428 | * testsuite/30_threads/recursive_mutex/cons/assign_neg.cc: Likewise. | |
1429 | * testsuite/30_threads/recursive_mutex/cons/copy_neg.cc: Likewise. | |
1430 | * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: | |
1431 | Likewise. | |
1432 | * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise. | |
1433 | * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise. | |
1434 | * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: | |
1435 | Likewise. | |
1436 | * testsuite/30_threads/recursive_mutex/requirements/standard_layout.cc: | |
1437 | Likewise. | |
1438 | * testsuite/30_threads/recursive_mutex/requirements/typedefs.cc: | |
1439 | Likewise. | |
1440 | * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise. | |
1441 | * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise. | |
1442 | * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise. | |
1443 | * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise. | |
1444 | * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise. | |
1445 | * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc: | |
1446 | Likewise. | |
1447 | * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc: | |
1448 | Likewise. | |
1449 | * testsuite/30_threads/recursive_timed_mutex/dest/ | |
1450 | destructor_locked.cc: Likewise. | |
1451 | * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise. | |
1452 | * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise. | |
1453 | * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc: | |
1454 | Likewise. | |
1455 | * testsuite/30_threads/recursive_timed_mutex/native_handle/ | |
1456 | typesizes.cc: Likewise. | |
1457 | * testsuite/30_threads/recursive_timed_mutex/requirements/typedefs.cc: | |
1458 | Likewise. | |
1459 | * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: | |
1460 | Likewise. | |
1461 | * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: | |
1462 | Likewise. | |
1463 | * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc: | |
1464 | Likewise. | |
1465 | * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc: | |
1466 | Likewise. | |
1467 | * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc: | |
1468 | Likewise. | |
1469 | * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc: | |
1470 | Likewise. | |
1471 | * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc: | |
1472 | Likewise. | |
1473 | * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise. | |
1474 | * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise. | |
1475 | * testsuite/30_threads/scoped_lock/cons/1.cc: Likewise. | |
1476 | * testsuite/30_threads/scoped_lock/requirements/ | |
1477 | explicit_instantiation.cc: Likewise. | |
1478 | * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Likewise. | |
1479 | * testsuite/30_threads/shared_future/cons/assign.cc: Likewise. | |
1480 | * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise. | |
1481 | * testsuite/30_threads/shared_future/cons/copy.cc: Likewise. | |
1482 | * testsuite/30_threads/shared_future/cons/default.cc: Likewise. | |
1483 | * testsuite/30_threads/shared_future/cons/move.cc: Likewise. | |
1484 | * testsuite/30_threads/shared_future/cons/move_assign.cc: Likewise. | |
1485 | * testsuite/30_threads/shared_future/members/45133.cc: Likewise. | |
1486 | * testsuite/30_threads/shared_future/members/get.cc: Likewise. | |
1487 | * testsuite/30_threads/shared_future/members/get2.cc: Likewise. | |
1488 | * testsuite/30_threads/shared_future/members/valid.cc: Likewise. | |
1489 | * testsuite/30_threads/shared_future/members/wait.cc: Likewise. | |
1490 | * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. | |
1491 | * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. | |
1492 | * testsuite/30_threads/shared_future/requirements/ | |
1493 | explicit_instantiation.cc: Likewise. | |
1494 | * testsuite/30_threads/shared_lock/cons/1.cc: Likewise. | |
1495 | * testsuite/30_threads/shared_lock/cons/2.cc: Likewise. | |
1496 | * testsuite/30_threads/shared_lock/cons/3.cc: Likewise. | |
1497 | * testsuite/30_threads/shared_lock/cons/4.cc: Likewise. | |
1498 | * testsuite/30_threads/shared_lock/cons/5.cc: Likewise. | |
1499 | * testsuite/30_threads/shared_lock/cons/6.cc: Likewise. | |
1500 | * testsuite/30_threads/shared_lock/locking/1.cc: Likewise. | |
1501 | * testsuite/30_threads/shared_lock/locking/2.cc: Likewise. | |
1502 | * testsuite/30_threads/shared_lock/locking/3.cc: Likewise. | |
1503 | * testsuite/30_threads/shared_lock/locking/4.cc: Likewise. | |
1504 | * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise. | |
1505 | * testsuite/30_threads/shared_lock/requirements/ | |
1506 | explicit_instantiation.cc: Likewise. | |
1507 | * testsuite/30_threads/shared_lock/requirements/typedefs.cc: Likewise. | |
1508 | * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise. | |
1509 | * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: Likewise. | |
1510 | * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: Likewise. | |
1511 | * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc: | |
1512 | Likewise. | |
1513 | * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise. | |
1514 | * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise. | |
1515 | * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise. | |
1516 | * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise. | |
1517 | * testsuite/30_threads/shared_timed_mutex/cons/assign_neg.cc: Likewise. | |
1518 | * testsuite/30_threads/shared_timed_mutex/cons/copy_neg.cc: Likewise. | |
1519 | * testsuite/30_threads/shared_timed_mutex/requirements/ | |
1520 | standard_layout.cc: Likewise. | |
1521 | * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise. | |
1522 | * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise. | |
1523 | * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise. | |
1524 | * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise. | |
1525 | * testsuite/30_threads/this_thread/1.cc: Likewise. | |
1526 | * testsuite/30_threads/this_thread/2.cc: Likewise. | |
1527 | * testsuite/30_threads/this_thread/3.cc: Likewise. | |
1528 | * testsuite/30_threads/this_thread/4.cc: Likewise. | |
1529 | * testsuite/30_threads/this_thread/58038.cc: Likewise. | |
1530 | * testsuite/30_threads/thread/70503.cc: Likewise. | |
1531 | * testsuite/30_threads/thread/84532.cc: Likewise. | |
1532 | * testsuite/30_threads/thread/adl.cc: Likewise. | |
1533 | * testsuite/30_threads/thread/cons/1.cc: Likewise. | |
1534 | * testsuite/30_threads/thread/cons/2.cc: Likewise. | |
1535 | * testsuite/30_threads/thread/cons/3.cc: Likewise. | |
1536 | * testsuite/30_threads/thread/cons/4.cc: Likewise. | |
1537 | * testsuite/30_threads/thread/cons/49668.cc: Likewise. | |
1538 | * testsuite/30_threads/thread/cons/5.cc: Likewise. | |
1539 | * testsuite/30_threads/thread/cons/6.cc: Likewise. | |
1540 | * testsuite/30_threads/thread/cons/7.cc: Likewise. | |
1541 | * testsuite/30_threads/thread/cons/8.cc: Likewise. | |
1542 | * testsuite/30_threads/thread/cons/84535.cc: Likewise. | |
1543 | * testsuite/30_threads/thread/cons/9.cc: Likewise. | |
1544 | * testsuite/30_threads/thread/cons/assign_neg.cc: Likewise. | |
1545 | * testsuite/30_threads/thread/cons/copy_neg.cc: Likewise. | |
1546 | * testsuite/30_threads/thread/cons/lwg2097.cc: Likewise. | |
1547 | * testsuite/30_threads/thread/cons/moveable.cc: Likewise. | |
1548 | * testsuite/30_threads/thread/cons/terminate.cc: Likewise. | |
1549 | * testsuite/30_threads/thread/id/operators.cc: Likewise. | |
1550 | * testsuite/30_threads/thread/members/1.cc: Likewise. | |
1551 | * testsuite/30_threads/thread/members/2.cc: Likewise. | |
1552 | * testsuite/30_threads/thread/members/3.cc: Likewise. | |
1553 | * testsuite/30_threads/thread/members/4.cc: Likewise. | |
1554 | * testsuite/30_threads/thread/members/5.cc: Likewise. | |
1555 | * testsuite/30_threads/thread/members/hardware_concurrency.cc: | |
1556 | Likewise. | |
1557 | * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise. | |
1558 | * testsuite/30_threads/thread/swap/1.cc: Likewise. | |
1559 | * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise. | |
1560 | * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise. | |
1561 | * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise. | |
1562 | * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise. | |
1563 | * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise. | |
1564 | * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise. | |
1565 | * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: | |
1566 | Likewise. | |
1567 | * testsuite/30_threads/timed_mutex/requirements/ | |
1568 | standard_layout.cc: Likewise. | |
1569 | * testsuite/30_threads/timed_mutex/requirements/typedefs.cc: Likewise. | |
1570 | * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise. | |
1571 | * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise. | |
1572 | * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise. | |
1573 | * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise. | |
1574 | * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise. | |
1575 | * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise. | |
1576 | * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise. | |
1577 | * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise. | |
1578 | * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise. | |
1579 | * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise. | |
1580 | * testsuite/30_threads/try_lock/1.cc: Likewise. | |
1581 | * testsuite/30_threads/try_lock/2.cc: Likewise. | |
1582 | * testsuite/30_threads/try_lock/3.cc: Likewise. | |
1583 | * testsuite/30_threads/try_lock/4.cc: Likewise. | |
1584 | * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. | |
1585 | * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. | |
1586 | * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. | |
1587 | * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. | |
1588 | * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. | |
1589 | * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. | |
1590 | * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. | |
1591 | * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. | |
1592 | * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. | |
1593 | * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. | |
1594 | * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. | |
1595 | * testsuite/30_threads/unique_lock/requirements/ | |
1596 | explicit_instantiation.cc: Likewise. | |
1597 | * testsuite/30_threads/unique_lock/requirements/typedefs.cc: Likewise. | |
1598 | ||
c37f07c4 JW |
1599 | * testsuite/30_threads/async/42819.cc: Remove dg-require-cstdint |
1600 | directive. | |
1601 | * testsuite/30_threads/async/49668.cc: Likewise. | |
1602 | * testsuite/30_threads/async/54297.cc: Likewise. | |
1603 | * testsuite/30_threads/async/84532.cc: Likewise. | |
1604 | * testsuite/30_threads/async/any.cc: Likewise. | |
1605 | * testsuite/30_threads/async/async.cc: Likewise. | |
1606 | * testsuite/30_threads/async/except.cc: Likewise. | |
1607 | * testsuite/30_threads/async/forced_unwind.cc: Likewise. | |
1608 | * testsuite/30_threads/async/launch.cc: Likewise. | |
1609 | * testsuite/30_threads/async/lwg2021.cc: Likewise. | |
1610 | * testsuite/30_threads/async/sync.cc: Likewise. | |
1611 | * testsuite/30_threads/call_once/39909.cc: Likewise. | |
1612 | * testsuite/30_threads/call_once/49668.cc: Likewise. | |
1613 | * testsuite/30_threads/call_once/60497.cc: Likewise. | |
1614 | * testsuite/30_threads/call_once/call_once1.cc: Likewise. | |
1615 | * testsuite/30_threads/call_once/constexpr.cc: Likewise. | |
1616 | * testsuite/30_threads/call_once/dr2442.cc: Likewise. | |
1617 | * testsuite/30_threads/call_once/once_flag.cc: Likewise. | |
1618 | * testsuite/30_threads/condition_variable/54185.cc: Likewise. | |
1619 | * testsuite/30_threads/condition_variable/cons/1.cc: Likewise. | |
1620 | * testsuite/30_threads/condition_variable/cons/assign_neg.cc: | |
1621 | Likewise. | |
1622 | * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise. | |
1623 | * testsuite/30_threads/condition_variable/members/1.cc: Likewise. | |
1624 | * testsuite/30_threads/condition_variable/members/2.cc: Likewise. | |
1625 | * testsuite/30_threads/condition_variable/members/3.cc: Likewise. | |
1626 | * testsuite/30_threads/condition_variable/members/53841.cc: Likewise. | |
1627 | * testsuite/30_threads/condition_variable/members/68519.cc: Likewise. | |
1628 | * testsuite/30_threads/condition_variable/native_handle/typesizes.cc: | |
1629 | Likewise. | |
1630 | * testsuite/30_threads/condition_variable/requirements/ | |
1631 | standard_layout.cc: Likewise. | |
1632 | * testsuite/30_threads/condition_variable/requirements/typedefs.cc: | |
1633 | * Likewise. | |
1634 | * testsuite/30_threads/condition_variable_any/50862.cc: Likewise. | |
1635 | * testsuite/30_threads/condition_variable_any/53830.cc: Likewise. | |
1636 | * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise. | |
1637 | * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: | |
1638 | Likewise. | |
1639 | * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc: | |
1640 | Likewise. | |
1641 | * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise. | |
1642 | * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise. | |
1643 | * testsuite/30_threads/future/cons/assign_neg.cc: Likewise. | |
1644 | * testsuite/30_threads/future/cons/constexpr.cc: Likewise. | |
1645 | * testsuite/30_threads/future/cons/copy_neg.cc: Likewise. | |
1646 | * testsuite/30_threads/future/cons/default.cc: Likewise. | |
1647 | * testsuite/30_threads/future/cons/move.cc: Likewise. | |
1648 | * testsuite/30_threads/future/cons/move_assign.cc: Likewise. | |
1649 | * testsuite/30_threads/future/members/45133.cc: Likewise. | |
1650 | * testsuite/30_threads/future/members/get.cc: Likewise. | |
1651 | * testsuite/30_threads/future/members/get2.cc: Likewise. | |
1652 | * testsuite/30_threads/future/members/share.cc: Likewise. | |
1653 | * testsuite/30_threads/future/members/valid.cc: Likewise. | |
1654 | * testsuite/30_threads/future/members/wait.cc: Likewise. | |
1655 | * testsuite/30_threads/future/members/wait_for.cc: Likewise. | |
1656 | * testsuite/30_threads/future/members/wait_until.cc: Likewise. | |
1657 | * testsuite/30_threads/future/requirements/explicit_instantiation.cc: | |
1658 | Likewise. | |
1659 | * testsuite/30_threads/headers/condition_variable/types_std_c++0x.cc: | |
1660 | Likewise. | |
1661 | * testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise. | |
1662 | * testsuite/30_threads/headers/mutex/types_std_c++0x.cc: Likewise. | |
1663 | * testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise. | |
1664 | * testsuite/30_threads/headers/thread/types_std_c++0x.cc: Likewise. | |
1665 | * testsuite/30_threads/lock/1.cc: Likewise. | |
1666 | * testsuite/30_threads/lock/2.cc: Likewise. | |
1667 | * testsuite/30_threads/lock/3.cc: Likewise. | |
1668 | * testsuite/30_threads/lock/4.cc: Likewise. | |
1669 | * testsuite/30_threads/lock_guard/cons/1.cc: Likewise. | |
1670 | * testsuite/30_threads/lock_guard/requirements/ | |
1671 | explicit_instantiation.cc: Likewise. | |
1672 | * testsuite/30_threads/lock_guard/requirements/typedefs.cc: Likewise. | |
1673 | * testsuite/30_threads/mutex/cons/1.cc: Likewise. | |
1674 | * testsuite/30_threads/mutex/cons/assign_neg.cc: Likewise. | |
1675 | * testsuite/30_threads/mutex/cons/constexpr.cc: Likewise. | |
1676 | * testsuite/30_threads/mutex/cons/copy_neg.cc: Likewise. | |
1677 | * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. | |
1678 | * testsuite/30_threads/mutex/lock/1.cc: Likewise. | |
1679 | * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. | |
1680 | * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. | |
1681 | * testsuite/30_threads/mutex/requirements/standard_layout.cc:: | |
1682 | Likewise. | |
1683 | * testsuite/30_threads/mutex/requirements/typedefs.cc: Likewise. | |
1684 | * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. | |
1685 | * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. | |
1686 | * testsuite/30_threads/mutex/unlock/1.cc: Likewise. | |
1687 | * testsuite/30_threads/mutex/unlock/2.cc: Likewise. | |
1688 | * testsuite/30_threads/once_flag/cons/constexpr.cc: Likewise. | |
1689 | * testsuite/30_threads/packaged_task/49668.cc: Likewise. | |
1690 | * testsuite/30_threads/packaged_task/60564.cc: Likewise. | |
1691 | * testsuite/30_threads/packaged_task/cons/1.cc: Likewise. | |
1692 | * testsuite/30_threads/packaged_task/cons/2.cc: Likewise. | |
1693 | * testsuite/30_threads/packaged_task/cons/3.cc: Likewise. | |
1694 | * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise. | |
1695 | * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise. | |
1696 | * testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise. | |
1697 | * testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise. | |
1698 | * testsuite/30_threads/packaged_task/cons/assign_neg.cc: Likewise. | |
1699 | * testsuite/30_threads/packaged_task/cons/copy_neg.cc: Likewise. | |
1700 | * testsuite/30_threads/packaged_task/cons/move.cc: Likewise. | |
1701 | * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise. | |
1702 | * testsuite/30_threads/packaged_task/members/at_thread_exit.cc: | |
1703 | Likewise. | |
1704 | * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise. | |
1705 | * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise. | |
1706 | * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise. | |
1707 | * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise. | |
1708 | * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise. | |
1709 | * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise. | |
1710 | * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise. | |
1711 | * testsuite/30_threads/packaged_task/members/reset.cc: Likewise. | |
1712 | * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise. | |
1713 | * testsuite/30_threads/packaged_task/members/swap.cc: Likewise. | |
1714 | * testsuite/30_threads/packaged_task/members/valid.cc: Likewise. | |
1715 | * testsuite/30_threads/packaged_task/requirements/ | |
1716 | explicit_instantiation.cc: Likewise. | |
1717 | * testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise. | |
1718 | * testsuite/30_threads/promise/60966.cc: Likewise. | |
1719 | * testsuite/30_threads/promise/69106.cc: Likewise. | |
1720 | * testsuite/30_threads/promise/cons/1.cc: Likewise. | |
1721 | * testsuite/30_threads/promise/cons/alloc.cc: Likewise. | |
1722 | * testsuite/30_threads/promise/cons/alloc2.cc: Likewise. | |
1723 | * testsuite/30_threads/promise/cons/alloc_min.cc: Likewise. | |
1724 | * testsuite/30_threads/promise/cons/assign_neg.cc: Likewise. | |
1725 | * testsuite/30_threads/promise/cons/copy_neg.cc: Likewise. | |
1726 | * testsuite/30_threads/promise/cons/move.cc: Likewise. | |
1727 | * testsuite/30_threads/promise/cons/move_assign.cc: Likewise. | |
1728 | * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise. | |
1729 | * testsuite/30_threads/promise/members/at_thread_exit2.cc: Likewise. | |
1730 | * testsuite/30_threads/promise/members/get_future.cc: Likewise. | |
1731 | * testsuite/30_threads/promise/members/get_future2.cc: Likewise. | |
1732 | * testsuite/30_threads/promise/members/set_exception.cc: Likewise. | |
1733 | * testsuite/30_threads/promise/members/set_exception2.cc: Likewise. | |
1734 | * testsuite/30_threads/promise/members/set_value.cc: Likewise. | |
1735 | * testsuite/30_threads/promise/members/set_value2.cc: Likewise. | |
1736 | * testsuite/30_threads/promise/members/set_value3.cc: Likewise. | |
1737 | * testsuite/30_threads/promise/members/swap.cc: Likewise. | |
1738 | * testsuite/30_threads/promise/requirements/explicit_instantiation.cc: | |
1739 | * Likewise. | |
1740 | * testsuite/30_threads/promise/uses_allocator.cc: Likewise. | |
1741 | ||
2b69e93c JW |
1742 | * testsuite/18_support/numeric_limits/char16_32_t.cc: Qualify names |
1743 | from namespace std. | |
1744 | * testsuite/20_util/align/2.cc: Remove dg-require-cstdint directive. | |
1745 | * testsuite/20_util/duration/arithmetic/1.cc: Likewise. | |
1746 | * testsuite/20_util/duration/arithmetic/2.cc: Likewise. | |
1747 | * testsuite/20_util/duration/arithmetic/dr2020.cc: Likewise. | |
1748 | * testsuite/20_util/duration/arithmetic/dr934-1.cc: Likewise. | |
1749 | * testsuite/20_util/duration/arithmetic/dr934-2.cc: Likewise. | |
1750 | * testsuite/20_util/duration/comparison_operators/1.cc: Likewise. | |
1751 | * testsuite/20_util/duration/cons/1.cc: Likewise. | |
1752 | * testsuite/20_util/duration/cons/1_neg.cc: Likewise. | |
1753 | * testsuite/20_util/duration/cons/2.cc: Likewise. | |
1754 | * testsuite/20_util/duration/cons/54025.cc: Likewise. | |
1755 | * testsuite/20_util/duration/cons/dr974_neg.cc: Likewise. | |
1756 | * testsuite/20_util/duration/requirements/explicit_instantiation/ | |
1757 | explicit_instantiation.cc: Likewise. | |
1758 | * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise. | |
1759 | * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. | |
1760 | * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. | |
1761 | * testsuite/20_util/make_signed/requirements/typedefs-4.cc: Likewise. | |
1762 | * testsuite/20_util/ratio/comparisons/comp1.cc: Likewise. | |
1763 | * testsuite/20_util/ratio/comparisons/comp2.cc: Likewise. | |
1764 | * testsuite/20_util/ratio/comparisons/comp3.cc: Likewise. | |
1765 | * testsuite/20_util/ratio/cons/cons1.cc: Likewise. | |
1766 | * testsuite/20_util/ratio/operations/45866.cc: Likewise. | |
1767 | * testsuite/20_util/ratio/operations/47913.cc: Likewise. | |
1768 | * testsuite/20_util/ratio/operations/53840.cc: Likewise. | |
1769 | * testsuite/20_util/ratio/operations/ops1.cc: Likewise. | |
1770 | * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise. | |
1771 | * testsuite/20_util/system_clock/1.cc: Likewise. | |
1772 | * testsuite/20_util/time_point/1.cc: Likewise. | |
1773 | * testsuite/20_util/time_point/2.cc: Likewise. | |
1774 | * testsuite/20_util/time_point/3.cc: Likewise. | |
1775 | * testsuite/20_util/time_point/requirements/explicit_instantiation/ | |
1776 | explicit_instantiation.cc: Likewise. | |
1777 | * testsuite/21_strings/basic_string/requirements/ | |
1778 | explicit_instantiation/char16_t/1.cc: Likewise. | |
1779 | * testsuite/21_strings/basic_string/requirements/ | |
1780 | explicit_instantiation/char32_t/1.cc: Likewise. | |
1781 | * testsuite/21_strings/basic_string_view/requirements/ | |
1782 | explicit_instantiation/char16_t/1.cc: Likewise. | |
1783 | * testsuite/21_strings/basic_string_view/requirements/ | |
1784 | explicit_instantiation/char32_t/1.cc: Likewise. | |
1785 | * testsuite/21_strings/char_traits/requirements/ | |
1786 | explicit_instantiation/char16_t/1.cc: Likewise. | |
1787 | * testsuite/21_strings/char_traits/requirements/ | |
1788 | explicit_instantiation/char32_t/1.cc: Likewise. | |
1789 | * testsuite/21_strings/headers/string/types_std_c++0x.cc: Likewise. | |
1790 | * testsuite/22_locale/codecvt/char16_t.cc: Likewise. | |
1791 | * testsuite/22_locale/codecvt/char32_t.cc: Likewise. | |
1792 | * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: | |
1793 | Likewise. | |
1794 | * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: | |
1795 | Likewise. | |
1796 | * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc: | |
1797 | Likewise. | |
1798 | * testsuite/22_locale/codecvt/utf8.cc: Likewise. | |
1799 | * testsuite/23_containers/vector/bool/72847.cc: Likewise. | |
1800 | * testsuite/23_containers/vector/debug/multithreaded_swap.cc: | |
1801 | Likewise. | |
1802 | * testsuite/experimental/string_view/requirements/ | |
1803 | explicit_instantiation/char16_t/1.cc: Likewise. | |
1804 | * testsuite/experimental/string_view/requirements/ | |
1805 | explicit_instantiation/char32_t/1.cc: Likewise. | |
1806 | * testsuite/ext/vstring/requirements/explicit_instantiation/char16_t/ | |
1807 | 1.cc: Likewise. | |
1808 | * testsuite/ext/vstring/requirements/explicit_instantiation/char32_t/ | |
1809 | 1.cc: Likewise. | |
1810 | ||
54c67432 JW |
1811 | * include/ext/throw_allocator.h [!_GLIBCXX_USE_C99_STDINT_TR1] |
1812 | (random_condition, throw_value_random, throw_allocator_random) | |
1813 | (std::hash<throw_value_random>): Do not define when <tr1/random> is | |
1814 | not usable. | |
1815 | * src/c++11/cow-stdexcept.cc [!_GLIBCXX_USE_C99_STDINT_TR1]: Do not | |
1816 | define transactional memory support when <stdint.h> is not usable. | |
1817 | ||
4957b284 JW |
1818 | * include/bits/hashtable_policy.h (__detail::__clp2): Use faster |
1819 | implementation that doesn't depend on <stdint.h> types. | |
1820 | * include/std/memory (align) [!_GLIBCXX_USE_C99_STDINT_TR1]: Use | |
1821 | std::size_t when std::uintptr_t is not usable. | |
1822 | [!_GLIBCXX_USE_C99_STDINT_TR1] (pointer_safety, declare_reachable) | |
1823 | (undeclare_reachable, declare_no_pointers, undeclare_no_pointers): | |
1824 | Define independent of _GLIBCXX_USE_C99_STDINT_TR1. | |
1825 | ||
612c9c70 JW |
1826 | * include/bits/basic_string.h [!_GLIBCXX_USE_C99_STDINT_TR1] |
1827 | (hash<u16string>, hash<u32string>): Remove dependency on | |
1828 | _GLIBCXX_USE_C99_STDINT_TR1. | |
1829 | * include/bits/char_traits.h [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1830 | (char_traits<char16_t>, char_traits<char32_t>): Remove dependency on | |
1831 | _GLIBCXX_USE_C99_STDINT_TR1. Use __UINT_LEAST16_TYPE__ and | |
1832 | __UINT_LEAST32_TYPE__ or make_unsigned when <stdint.h> is not usable. | |
1833 | * include/bits/codecvt.h [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1834 | (codecvt<char16_t, char, mbstate_t>) | |
1835 | (codecvt<char32_t, char, mbstate_t>) | |
1836 | (codecvt_byname<char16_t, char, mbstate_t>) | |
1837 | (codecvt_byname<char32_t, char, mbstate_t>): Remove dependency | |
1838 | on _GLIBCXX_USE_C99_STDINT_TR1. | |
1839 | * include/bits/locale_facets.h [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1840 | (_GLIBCXX_NUM_UNICODE_FACETS): Likewise. | |
1841 | * include/bits/stringfwd.h [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1842 | (char_traits<char16_t>, char_traits<char32_t>) | |
1843 | (basic_string<char16_t>, basic_string<char32_t>): Remove dependency | |
1844 | on _GLIBCXX_USE_C99_STDINT_TR1. | |
1845 | * include/experimental/string_view [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1846 | (u16string_view, u32string_view, hash<u16string_view>) | |
1847 | (hash<u32string_view>, operator""sv(const char16_t, size_t)) | |
1848 | (operator""sv(const char32_t, size_t)): Likewise. | |
1849 | * include/ext/vstring.h [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1850 | (hash<__u16vstring>, hash<__u32vstring>): Likewise. | |
1851 | * include/ext/vstring_fwd.h [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1852 | (__u16vstring, __u16sso_string, __u16rc_string, __u32vstring) | |
1853 | (__u32sso_string, __u32rc_string): Likewise. | |
1854 | * include/std/codecvt [!_GLIBCXX_USE_C99_STDINT_TR1] (codecvt_mode) | |
1855 | (codecvt_utf8, codecvt_utf16, codecvt_utf8_utf16): Likewise. | |
1856 | * include/std/string_view [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1857 | (u16string_view, u32string_view, hash<u16string_view>) | |
1858 | (hash<u32string_view>, operator""sv(const char16_t, size_t)) | |
1859 | (operator""sv(const char32_t, size_t)): Likewise. | |
1860 | * src/c++11/codecvt.cc: Likewise. | |
1861 | * src/c++98/locale_init.cc: Likewise. | |
1862 | * src/c++98/localename.cc: Likewise. | |
1863 | ||
8ba7f29e JW |
1864 | * include/bits/atomic_futex.h [!_GLIBCXX_USE_C99_STDINT_TR1] |
1865 | (__atomic_futex_unsigned_base): Remove dependency on | |
1866 | _GLIBCXX_USE_C99_STDINT_TR1 macro. | |
1867 | * include/bits/unique_lock.h [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1868 | (unique_lock): Remove dependency on _GLIBCXX_USE_C99_STDINT_TR1. | |
1869 | * include/c_global/cstdint [!_GLIBCXX_USE_C99_STDINT_TR1] (intmax_t) | |
1870 | (uintmax_t): Define using predefined macros. | |
1871 | * include/std/chrono [!_GLIBCXX_USE_C99_STDINT_TR1] (duration) | |
1872 | (time_point, system_clock, high_resolution_clock, steady_clock): Remove | |
1873 | dependency on _GLIBCXX_USE_C99_STDINT_TR1 macro. | |
1874 | (nanoseconds, microseconds, milliseconds, seconds, minutes, hours): | |
1875 | [!_GLIBCXX_USE_C99_STDINT_TR1]: Define using __INT64_TYPE__ or | |
1876 | long long when <stdint.h> is not usable. | |
1877 | * include/std/condition_variable [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1878 | (condition_variable, condition_variable_any): Remove dependency on | |
1879 | _GLIBCXX_USE_C99_STDINT_TR1. | |
1880 | * include/std/future [!_GLIBCXX_USE_C99_STDINT_TR1] (future, promise) | |
1881 | (packaged_task, async): Likewise. | |
1882 | * include/std/mutex [!_GLIBCXX_USE_C99_STDINT_TR1] (recursive_mutex) | |
1883 | (timed_mutex, recursive_timed_mutex, try_lock, lock, scoped_lock) | |
1884 | (once_flag, call_once): Likewise. | |
1885 | * include/std/ratio [!_GLIBCXX_USE_C99_STDINT_TR1] (ratio): Likewise. | |
1886 | * include/std/shared_mutex [!_GLIBCXX_USE_C99_STDINT_TR1] | |
1887 | (shared_mutex, shared_timed_mutex, shared_lock): Likewise. | |
1888 | * include/std/thread [!_GLIBCXX_USE_C99_STDINT_TR1] (thread) | |
1889 | (this_thread::get_id, this_thread::yield, this_thread::sleep_for) | |
1890 | (this_thread::sleep_until): Likewise. | |
1891 | * src/c++11/chrono.cc: Remove dependency on | |
1892 | _GLIBCXX_USE_C99_STDINT_TR1 macro. | |
1893 | * src/c++11/condition_variable.cc: Likewise. | |
1894 | * src/c++11/futex.cc: Likewise. | |
1895 | * src/c++11/future.cc: Likewise. | |
1896 | * src/c++11/mutex.cc: Likewise. | |
1897 | * src/c++11/thread.cc: Likewise. | |
1898 | * testsuite/20_util/duration/literals/range_neg.cc: Adjust dg-error. | |
1899 | * testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise. | |
1900 | * testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise. | |
1901 | * testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise. | |
1902 | * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Likewise. | |
1903 | * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise. | |
1904 | ||
864f020a RO |
1905 | 2018-07-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1906 | ||
1907 | PR libstdc++/77691 | |
1908 | * testsuite/experimental/memory_resource/new_delete_resource.cc: | |
1909 | xfail execution on 32-bit Solaris/x86. | |
1910 | ||
e98edc20 MG |
1911 | 2018-07-26 Marc Glisse <marc.glisse@inria.fr> |
1912 | ||
1913 | * include/bits/stl_vector.h (_Vector_impl_data::_M_copy_data): New. | |
1914 | (_Vector_impl_data::_M_swap_data): Use _M_copy_data. | |
1915 | (vector::_M_move_assign): Reorder the swaps. | |
1916 | ||
aea37223 JW |
1917 | 2018-07-26 Jonathan Wakely <jwakely@redhat.com> |
1918 | ||
1919 | PR libstdc++/86676 | |
1920 | * testsuite/20_util/monotonic_buffer_resource/release.cc: Request | |
1921 | same alignment for post-release allocation. | |
1922 | ||
1fba0606 JW |
1923 | 2018-07-25 Jonathan Wakely <jwakely@redhat.com> |
1924 | ||
17a63212 JW |
1925 | PR libstdc++/86676 |
1926 | * testsuite/20_util/monotonic_buffer_resource/release.cc: Allow for | |
1927 | buffer being misaligned and so returned pointer not being at start. | |
1928 | ||
16d0ab7f JW |
1929 | * include/experimental/memory_resource: Include <cstddef> header. |
1930 | ||
a9d49e96 JW |
1931 | * acinclude.m4 (glibcxx_SUBDIRS): Add src/c++17. |
1932 | * src/Makefile.am: Add comment. | |
1933 | * src/c++17/Makefile.in: Regenerate. | |
1934 | ||
1fba0606 JW |
1935 | * include/Makefile.am: Add new <bits/unique_lock.h> header. |
1936 | * include/Makefile.in: Regenerate. | |
1937 | * include/bits/std_mutex.h [!_GLIBCXX_USE_C99_STDINT_TR1] (mutex) | |
1938 | (lock_guard): Define independent of _GLIBCXX_USE_C99_STDINT_TR1. | |
1939 | (unique_lock): Move definition to ... | |
1940 | * include/bits/unique_lock.h: New header. | |
1941 | [!_GLIBCXX_USE_C99_STDINT_TR1] (unique_lock): Define unconditionally. | |
1942 | [_GLIBCXX_USE_C99_STDINT_TR1] (unique_lock(mutex_type&, time_point)) | |
1943 | (unique_lock(mutex_type&, duration), unique_lock::try_lock_until) | |
1944 | (unique_lock::try_lock_for): Define only when <chrono> is usable. | |
1945 | * include/std/condition_variable: Include <bits/unique_lock.h>. | |
1946 | * include/std/mutex: Likewise. | |
1947 | ||
0568ade6 JW |
1948 | 2018-07-24 Jonathan Wakely <jwakely@redhat.com> |
1949 | ||
dfaa3c47 JW |
1950 | * config/abi/pre/gnu.ver: Export new symbols. |
1951 | * configure: Regenerate. | |
1952 | * include/Makefile.am: Add new <memory_resource> header. | |
1953 | * include/Makefile.in: Regenerate. | |
1954 | * include/precompiled/stdc++.h: Include <memory_resource> for C++17. | |
1955 | * include/std/memory_resource: New header. | |
1956 | (memory_resource, polymorphic_allocator, new_delete_resource) | |
1957 | (null_memory_resource, set_default_resource, get_default_resource) | |
1958 | (pool_options, monotonic_buffer_resource): Define. | |
1959 | * src/Makefile.am: Add c++17 directory. | |
1960 | * src/Makefile.in: Regenerate. | |
1961 | * src/c++11/Makefile.am: Fix comment. | |
1962 | * src/c++17/Makefile.am: Add makefile for new sub-directory. | |
1963 | * src/c++17/Makefile.in: Generate. | |
1964 | * src/c++17/memory_resource.cc: New. | |
1965 | (newdel_res_t, null_res_t, constant_init, newdel_res, null_res) | |
1966 | (default_res, new_delete_resource, null_memory_resource) | |
1967 | (set_default_resource, get_default_resource): Define. | |
1968 | * testsuite/20_util/memory_resource/1.cc: New test. | |
1969 | * testsuite/20_util/memory_resource/2.cc: New test. | |
1970 | * testsuite/20_util/monotonic_buffer_resource/1.cc: New test. | |
1971 | * testsuite/20_util/monotonic_buffer_resource/allocate.cc: New test. | |
1972 | * testsuite/20_util/monotonic_buffer_resource/deallocate.cc: New test. | |
1973 | * testsuite/20_util/monotonic_buffer_resource/release.cc: New test. | |
1974 | * testsuite/20_util/monotonic_buffer_resource/upstream_resource.cc: | |
1975 | New test. | |
1976 | * testsuite/20_util/polymorphic_allocator/1.cc: New test. | |
1977 | * testsuite/20_util/polymorphic_allocator/resource.cc: New test. | |
1978 | * testsuite/20_util/polymorphic_allocator/select.cc: New test. | |
1979 | * testsuite/util/testsuite_allocator.h (__gnu_test::memory_resource): | |
1980 | Define concrete memory resource for testing. | |
1981 | (__gnu_test::default_resource_mgr): Define RAII helper for changing | |
1982 | default resource. | |
1983 | ||
e874029d JW |
1984 | PR libstdc++/86658 |
1985 | * include/bits/stl_algobase.h (__niter_wrap<_Iterator>): Pass unused | |
1986 | parameter by reference, to avoid copying invalid iterators. | |
1987 | * testsuite/25_algorithms/copy/86658.cc: New test. | |
1988 | ||
337dc307 JW |
1989 | * include/std/bit (__countl_zero, __countr_zero, __popcount): Use |
1990 | local variables for number of digits instead of type aliases. | |
1991 | (__log2p1): Remove redundant branch also checked in __countl_zero. | |
1992 | ||
4f3c75ba JW |
1993 | * include/bits/uses_allocator.h (__is_erased_or_convertible): Reorder |
1994 | conditions. Add comments. | |
1995 | * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error line. | |
1996 | * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise. | |
1997 | * testsuite/20_util/scoped_allocator/69293_neg.cc: Likewise. | |
1998 | ||
1999 | * include/bits/uses_allocator.h (__is_erased_or_convertible): Remove. | |
2000 | (__uses_allocator_helper): Check conditions directly instead of | |
2001 | using __is_erased_or_convertible. | |
2002 | ||
7a4be380 JW |
2003 | * include/experimental/memory_resource: Adjust comments and |
2004 | whitespace. | |
2005 | (__resource_adaptor_imp): Add second template parameter for type of | |
2006 | memory resource base class. | |
2007 | (memory_resource): Define default constructor, destructor, copy | |
2008 | constructor and copy assignment operator as defaulted. | |
2009 | ||
0568ade6 JW |
2010 | PR libstdc++/70966 |
2011 | * include/experimental/memory_resource (__get_default_resource): Use | |
2012 | placement new to create an object with dynamic storage duration. | |
2013 | ||
2d6c8eea JW |
2014 | 2018-07-23 Jonathan Wakely <jwakely@redhat.com> |
2015 | ||
2016 | PR libstdc++/70940 | |
2017 | * include/experimental/memory_resource | |
2018 | (__resource_adaptor_common::_AlignMgr::_M_unadjust): Add assertion. | |
2019 | (__resource_adaptor_common::__guaranteed_alignment): New helper to | |
2020 | give maximum alignment an allocator guarantees. Specialize for known | |
2021 | allocators using new and malloc. | |
2022 | (__resource_adaptor_imp::do_allocate): Use __guaranteed_alignment. | |
2023 | (__resource_adaptor_imp::do_deallocate): Likewise. | |
2024 | * testsuite/experimental/memory_resource/new_delete_resource.cc: | |
2025 | Check that new and delete are called with expected sizes. | |
2026 | ||
bf0086f1 JW |
2027 | 2018-07-20 Jonathan Wakely <jwakely@redhat.com> |
2028 | ||
2029 | PR libstdc++/86595 | |
2030 | * include/bits/fs_dir.h (directory_entry::refresh(error_code&)): Add | |
2031 | noexcept. | |
2032 | ||
2143168e FS |
2033 | 2018-07-20 Fangrui Song <maskray@google.com> |
2034 | ||
2035 | * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Use | |
2036 | _GLIBCXX_VISIBILITY(default). | |
2037 | ||
afa07bdd JW |
2038 | 2018-07-20 Jonathan Wakely <jwakely@redhat.com> |
2039 | ||
2040 | PR libstdc++/86603 | |
2041 | * include/std/version: Move __cpp_lib_list_remove_return_type macro. | |
2042 | ||
c01f9216 JW |
2043 | 2018-07-19 Jonathan Wakely <jwakely@redhat.com> |
2044 | ||
2045 | * include/std/type_traits (__is_member_object_pointer_helper): Use | |
2046 | __not_<is_function<_Tp>>::type instead of integral_constant. | |
2047 | (__is_member_function_pointer_helper): Likewise for | |
2048 | is_function<_Tp>::type. | |
2049 | (is_compund): Likewise for __not_<is_fundamental<_Tp>>::type. | |
2050 | (__do_is_nt_destructible_impl): Use __bool_constant and reindent. | |
2051 | (is_trivially_constructible): Remove redundant use of | |
2052 | is_constructible. | |
2053 | (__is_trivially_copy_assignable_impl): Remove redundant use of | |
2054 | is_copy_assignable. | |
2055 | (__is_trivially_move_assignable_impl): Remove redundant use of | |
2056 | is_move_assignable. | |
2057 | (is_trivially_destructible): Use __bool_constant. | |
2058 | * testsuite/20_util/is_trivially_assignable/value.cc: Add some more | |
2059 | tests for scalar types. | |
2060 | ||
20a0c4e3 GJF |
2061 | 2018-07-19 Glen Joseph Fernandes <glenjofe@gmail.com> |
2062 | ||
2063 | * include/bits/stl_algobase.h (__copy_move_a): Used | |
2064 | __is_trivially_copyable. | |
2065 | (__copy_move_backward_a): Likewise. | |
2066 | * testsuite/20_util/specialized_algorithms/uninitialized_copy/1.cc: | |
2067 | New test. | |
2068 | ||
79a88477 JW |
2069 | 2018-07-17 Jonathan Wakely <jwakely@redhat.com> |
2070 | ||
c3be340e JW |
2071 | PR libstdc++/86450 |
2072 | * acinclude.m4 (GLIBCXX_CHECK_COMPILER_FEATURES): Don't define WERROR. | |
2073 | (GLIBCXX_EXPORT_FLAGS): Use -Wabi=2 instead of -Wabi. | |
2074 | * configure: Regenerate. | |
2075 | * configure.ac: Change GLIBCXX_ENABLE_WERROR default to "no". | |
2076 | * doc/Makefile.in: Regenerate. | |
2077 | * fragment.am: Set WERROR_FLAG to -Werror instead of $(WERROR). | |
2078 | * include/Makefile.in: Regenerate. | |
2079 | * libsupc++/Makefile.in: Regenerate. | |
2080 | * po/Makefile.in: Regenerate. | |
2081 | * python/Makefile.in: Regenerate. | |
2082 | * src/Makefile.in: Regenerate. | |
2083 | * src/c++11/Makefile.in: Regenerate. | |
2084 | * src/c++11/debug.cc: Use diagnostic pragmas to suppress warnings | |
2085 | from -Wabi=2 that don't affect exported symbols. | |
2086 | * src/c++98/Makefile.in: Regenerate. | |
2087 | * src/filesystem/Makefile.in: Regenerate. | |
2088 | * testsuite/Makefile.in: Regenerate. | |
2089 | ||
79a88477 JW |
2090 | * src/c++11/compatibility-thread-c++0x.cc [_GLIBCXX_SHARED] |
2091 | (_Async_state_common::_M_join): Simplify use of std::call_once and | |
2092 | corresponding explicit instantiation. | |
2093 | (_Maybe_wrap_member_pointer, _Bind_simple, _Bind_simple_helper) | |
2094 | (__bind_simple): Remove definitions and explicit instantiation that | |
2095 | are not required by exported symbols. | |
2096 | ||
20b47be0 JW |
2097 | 2018-07-16 Jonathan Wakely <jwakely@redhat.com> |
2098 | ||
b8c9cad3 JW |
2099 | * scripts/create_testsuite_files: Fix typo in comment. |
2100 | ||
20b47be0 JW |
2101 | PR libstdc++/86537 |
2102 | * include/bits/shared_ptr.h (less<shared_ptr<_Tp>>): Remove | |
2103 | non-standard partial specialization. | |
2104 | * include/bits/shared_ptr_base.h (_Sp_less): Remove class definition. | |
2105 | (less<__shared_ptr<_Tp, _Lp>): Remove partial specialization. | |
2106 | * testsuite/20_util/shared_ptr/comparison/86537.cc: New test. | |
2107 | ||
9c588dbe AK |
2108 | 2018-07-16 Andreas Krebbel <krebbel@linux.ibm.com> |
2109 | ||
2110 | * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update. | |
2111 | * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update. | |
2112 | * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update. | |
2113 | ||
1e736a95 FD |
2114 | 2018-07-06 François Dumont <fdumont@gcc.gnu.org> |
2115 | ||
2116 | * include/debug/functions.h (__gnu_debug::__check_string): Move... | |
2117 | * include/debug/string (__gnu_debug::__check_string): ... here. | |
2118 | (_GLIBCXX_DEBUG_VERIFY_STR_COND_AT): New. | |
2119 | (__glibcxx_check_string_n_constructor): New. | |
2120 | (__gnu_debug::basic_string<>(const _CharT*, size_type, const _Alloc&)): | |
2121 | Use latter. | |
2122 | (__glibcxx_check_string_constructor): New. | |
2123 | (__gnu_debug::basic_string<>(const _CharT*, const _Alloc&)): | |
2124 | Use latter. | |
2125 | * testsuite/21_strings/basic_string/debug/1_neg.cc: New. | |
2126 | * testsuite/21_strings/basic_string/debug/2_neg.cc: New. | |
2127 | ||
4d023b5b JW |
2128 | 2018-07-06 Jonathan Wakely <jwakely@redhat.com> |
2129 | ||
5840e3b8 JW |
2130 | PR libstdc++/84928 use std::move in <numeric> algorithms |
2131 | * include/bits/stl_numeric.h (_GLIBCXX_MOVE_IF_20): Define macro to | |
2132 | conditionally move, according to __cplusplus value. | |
2133 | (accumulate, inner_product, partial_sum, adjacent_difference): Use | |
2134 | _GLIBCXX_MOVE_IF_20. | |
2135 | * testsuite/26_numerics/accumulate/lwg2055.cc: New test. | |
2136 | * testsuite/26_numerics/adjacent_difference/lwg2055.cc: New test. | |
2137 | * testsuite/26_numerics/inner_product/lwg2055.cc: New test. | |
2138 | * testsuite/26_numerics/partial_sum/lwg2055.cc: New test. | |
2139 | ||
f1b3168d JW |
2140 | * config/abi/pre/gnu.ver: Use wildcards to combine related patterns. |
2141 | ||
97271bd8 JW |
2142 | P0935R0 Eradicating unnecessarily explicit default constructors |
2143 | * config/abi/pre/gnu.ver: Tighten existing patterns and export new | |
2144 | default constructor symbols. | |
2145 | * include/std/sstream (basic_stringbuf, basic_istringstream) | |
2146 | (basic_ostringstream, basic_stringstream): Remove default arguments | |
2147 | from explicit constructors taking ios_base::openmode and add separate | |
2148 | non-explicit default constructors. | |
2149 | * testsuite/27_io/basic_istringstream/cons/default.cc: New. | |
2150 | * testsuite/27_io/basic_ostringstream/cons/default.cc: New. | |
2151 | * testsuite/27_io/basic_stringstream/cons/default.cc: New. | |
2152 | * testsuite/27_io/basic_stringbuf/cons/char/default.cc: New. | |
2153 | * testsuite/27_io/basic_stringbuf/cons/wchar_t/default.cc: New. | |
2154 | ||
4d023b5b JW |
2155 | * include/std/variant (__accepted_index): Use void_t. |
2156 | ||
d8d9b83b JW |
2157 | 2018-07-05 Jonathan Wakely <jwakely@redhat.com> |
2158 | ||
d04dbb8a JW |
2159 | PR libstdc++/85831 |
2160 | * config/abi/pre/gnu.ver: Export move constructors and move | |
2161 | assignment operators for std::logic_error and std::runtime_error. | |
2162 | * include/std/stdexcept: Use _GLIBCXX_NOTHROW instead of | |
2163 | _GLIBCXX_USE_NOEXCEPT. | |
2164 | (logic_error, runtime_error): Declare move constructors and move | |
2165 | assignment operators. When not declared already, define copy | |
2166 | constructors and copy assignment operators as explicit-defaulted. | |
2167 | (domain_error, invalid_argument, length_error, out_of_range) | |
2168 | (overflow_error, underflow_error): Define move constructors and move | |
2169 | assignment operators as explicitly-defaulted. | |
2170 | * libsupc++/exception.h (exception): Likewise. | |
2171 | * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Define | |
2172 | move constructors and move assignment operators as defaulted. | |
2173 | * testsuite/19_diagnostics/stdexcept.cc: Check that constructors and | |
2174 | assignment operators are defined. | |
2175 | ||
339657d2 JW |
2176 | * testsuite/21_strings/basic_string/cons/char/deduction.cc: XFAIL for |
2177 | COW strings. | |
2178 | * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: | |
2179 | Likewise. | |
2180 | * testsuite/21_strings/basic_string/requirements/ | |
2181 | explicit_instantiation/debug.cc: Likewise. | |
2182 | ||
30236791 JW |
2183 | PR libstdc++/58265 |
2184 | * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI] | |
2185 | (basic_string::assign(basic_string&&)): Add conditional noexcept | |
2186 | depending on the allocator's is_always_equal property (LWG 2063). | |
2187 | * testsuite/21_strings/basic_string/modifiers/assign/char/ | |
2188 | move_assign.cc: Check for non-throwing exception specification. | |
2189 | * testsuite/21_strings/basic_string/modifiers/assign/wchar_t/ | |
2190 | move_assign.cc: Likewise. | |
2191 | ||
d8d9b83b JW |
2192 | PR libstdc++/58265 |
2193 | * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI] | |
2194 | [_GLIBCXX_FULLY_DYNAMIC_STRING==0] (basic_string::basic_string()): | |
2195 | Add GLIBCXX_NOEXCEPT. | |
2196 | (basic_string::operator=(basic_string&&)): Add _GLIBCXX_NOEXCEPT_IF | |
2197 | to depend on the allocator's is_always_equal property (LWG 2063). | |
2198 | (basic_string::swap(basic_string&)): Likewise. | |
2199 | * include/bits/basic_string.tcc [!_GLIBCXX_USE_CXX11_ABI] | |
2200 | (basic_string::swap(basic_string&)): Likewise. | |
2201 | * testsuite/21_strings/basic_string/allocator/char/move_assign.cc: | |
2202 | Check is_nothrow_move_assignable. | |
2203 | * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc: | |
2204 | Check is_nothrow_move_assignable. | |
2205 | * testsuite/21_strings/basic_string/cons/char/ | |
2206 | noexcept_move_construct.cc: Likewise. | |
2207 | * testsuite/21_strings/basic_string/cons/wchar_t/ | |
2208 | noexcept_move_construct.cc: Likewise. | |
2209 | ||
3adea09e JW |
2210 | 2018-07-04 Jonathan Wakely <jwakely@redhat.com> |
2211 | ||
ef45724a JW |
2212 | P0646R1 Improving the Return Value of Erase-Like Algorithms I |
2213 | * include/bits/forward_list.h (__cpp_lib_list_remove_return_type): | |
2214 | Define. | |
2215 | (forward_list::__remove_return_type): Define typedef as size_type or | |
2216 | void, according to __cplusplus value. | |
2217 | (_GLIBCXX_FWDLIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or | |
2218 | empty, according to __cplusplus value. | |
2219 | (forward_list::remove, forward_list::unique): Use typedef and macro | |
2220 | to change return type and add abi-tag for C++2a. | |
2221 | (forward_list::remove_if<Pred>, forward_list::unique<BinPred>): Use | |
2222 | typedef to change return type for C++2a. | |
2223 | * include/bits/forward_list.tcc (_GLIBCXX20_ONLY): Define macro. | |
2224 | (forward_list::remove, forward_list::remove_if<Pred>) | |
2225 | (forward_list::unique<BinPred>): Return number of removed elements | |
2226 | for C++2a. | |
2227 | * include/bits/list.tcc (_GLIBCXX20_ONLY): Define macro. | |
2228 | (list::remove, list::unique, list::remove_if<Predicate>) | |
2229 | (list::unique<BinaryPredicate>): Return number of removed elements | |
2230 | for C++2a. | |
2231 | * include/bits/stl_list.h (__cpp_lib_list_remove_return_type): Define. | |
2232 | (list::__remove_return_type): Define typedef as size_type or | |
2233 | void, according to __cplusplus value. | |
2234 | (_GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or | |
2235 | empty, according to __cplusplus value. | |
2236 | (list::remove, list::unique): Use typedef and macro to change return | |
2237 | type and add abi-tag for C++2a. | |
2238 | (list::remove_if<Predicate>, list::unique<BinaryPredicate>): Use | |
2239 | typedef to change return type for C++2a. | |
2240 | * include/std/version (__cpp_lib_list_remove_return_type): Define. | |
2241 | * testsuite/23_containers/forward_list/operations/ | |
2242 | remove_cxx20_return.cc: New. | |
2243 | * testsuite/23_containers/forward_list/operations/ | |
2244 | unique_cxx20_return.cc: New. | |
2245 | ||
3adea09e JW |
2246 | P0458R2 Checking for Existence of an Element in Associative Containers |
2247 | * include/bits/stl_map.h (map::contains): Add for C++2a. | |
2248 | * include/bits/stl_multimap.h (multimap::contains): Likewise. | |
2249 | * include/bits/stl_multiset.h (multiset::contains): Likewise. | |
2250 | * include/bits/stl_set.h (set::contains): Likewise. | |
2251 | * include/bits/stl_tree.h (__has_is_transparent_t): Define alias. | |
2252 | (_Rb_tree::_M_find_tr, _Rb_tree::_M_count_tr) | |
2253 | (_Rb_tree::_M_lower_bound_tr, _Rb_tree::_M_upper_bound_tr) | |
2254 | (_Rb_tree::_M_equal_range_tr): Use __has_is_transparent_t. | |
2255 | * include/bits/unordered_map.h (unordered_map::contains) | |
2256 | (unordered_multimap::contains): Add for C++2a. | |
2257 | * include/bits/unordered_set.h (unordered_set::contains) | |
2258 | (unordered_multiset::contains): Likewise. | |
2259 | * testsuite/23_containers/map/operations/contains.cc: New. | |
2260 | * testsuite/23_containers/multimap/operations/contains.cc: New. | |
2261 | * testsuite/23_containers/multiset/operations/contains.cc: New. | |
2262 | * testsuite/23_containers/set/operations/contains.cc: New. | |
2263 | * testsuite/23_containers/unordered_map/operations/contains.cc: New. | |
2264 | * testsuite/23_containers/unordered_multimap/operations/contains.cc: | |
2265 | New. | |
2266 | * testsuite/23_containers/unordered_multiset/operations/contains.cc: | |
2267 | New. | |
2268 | * testsuite/23_containers/unordered_set/operations/contains.cc: New. | |
2269 | ||
d3fc820e | 2270 | 2018-07-04 François Dumont <fdumont@gcc.gnu.org> |
96eb9df6 | 2271 | |
d3fc820e | 2272 | PR libstdc++/86272 |
96eb9df6 FD |
2273 | * include/debug/string |
2274 | (__gnu_debug::basic_string<>::insert<_Ite>(const_iterator, _Ite, _Ite)): | |
2275 | Use __glibcxx_check_insert_range. | |
2276 | * 21_strings/basic_string/cons/char/1.cc: Adapt test to use | |
2277 | __gnu_debug::string when _GLIBCXX_DEBUG. | |
2278 | * 21_strings/basic_string/init-list.cc: Likewise. | |
2279 | * 21_strings/basic_string/modifiers/insert/char/1.cc: Likewise. | |
2280 | * 21_strings/basic_string/modifiers/insert/char/2.cc: Likewise. | |
2281 | * 21_strings/basic_string/modifiers/insert/char/83328.cc: Likewise. | |
2282 | * 21_strings/basic_string/types/1.cc: Likewise. | |
2283 | ||
89bc4ab1 JW |
2284 | 2018-07-04 Jonathan Wakely <jwakely@redhat.com> |
2285 | ||
2286 | * testsuite/25_algorithms/make_heap/complexity.cc: Require effective | |
2287 | target for std::random_device. | |
2288 | * testsuite/26_numerics/random/random_device/cons/default.cc: | |
2289 | Likewise. | |
2290 | * testsuite/experimental/algorithm/sample-2.cc: Likewise. | |
2291 | * testsuite/experimental/algorithm/shuffle.cc: Likewise. | |
2292 | * testsuite/experimental/random/randint.cc: Likewise. | |
2293 | * testsuite/lib/libstdc++.exp | |
2294 | (check_effective_target_random_device): New proc. | |
2295 | ||
4e4120a2 JW |
2296 | 2018-07-04 Jonathan Wakely <jwakely@redhat.com> |
2297 | Jakub Jelinek <jakub@redhat.com> | |
2298 | ||
2299 | * include/std/bit (__rotl, __rotr): Fix for non-power of two sizes. | |
2300 | ||
90fc44ec JW |
2301 | 2018-07-04 Jonathan Wakely <jwakely@redhat.com> |
2302 | ||
e9029d55 JW |
2303 | PR libstdc++/86398 |
2304 | * include/std/type_traits (is_trivially_constructible): Check | |
2305 | is_constructible before __is_trivially_constructible. | |
2306 | * testsuite/20_util/is_trivially_constructible/value.cc: Add more | |
2307 | tests, including negative cases. | |
2308 | * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Use | |
2309 | zero for dg-error lineno. | |
2310 | * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: | |
2311 | Likewise. | |
2312 | ||
90fc44ec JW |
2313 | * include/std/bit (__rotl, __rotr): Avoid branch. |
2314 | (_If_is_unsigned_integer): Use remove_cv_t. | |
2315 | * testsuite/26_numerics/bit/bitops.count/popcount.cc: New. | |
2316 | ||
cf3e6e9f JW |
2317 | 2018-07-03 Jonathan Wakely <jwakely@redhat.com> |
2318 | ||
f3e91052 JW |
2319 | P0556R3 Integral power-of-2 operations, P0553R2 Bit operations |
2320 | * include/Makefile.am: Add new header. | |
2321 | * include/Makefile.in: Regenerate. | |
2322 | * include/precompiled/stdc++.h: Include new header. | |
2323 | * include/std/bit: New header. | |
2324 | (__rotl, __rotr, __countl_zero, __countl_one, __countr_zero) | |
2325 | (__countr_one, __popcount, __ispow2, __ceil2, __floor2, __log2p1): | |
2326 | Define for C++14. | |
2327 | [!__STRICT_ANSI__] (rotl, rotr, countl_zero, countl_one, countr_zero) | |
2328 | (countr_one, popcount): Define for C++2a. Also overload for std::byte. | |
2329 | (ispow2, ceil2, floor2, log2p1): Define for C++2a. | |
2330 | [!__STRICT_ANSI__] (ispow2, ceil2, floor2, log2p1): Overload for | |
2331 | std::byte. | |
2332 | * testsuite/26_numerics/bit/bit.pow.two/ceil2.cc: New. | |
2333 | * testsuite/26_numerics/bit/bit.pow.two/floor2.cc: New. | |
2334 | * testsuite/26_numerics/bit/bit.pow.two/ispow2.cc: New. | |
2335 | * testsuite/26_numerics/bit/bit.pow.two/log2p1.cc: New. | |
2336 | * testsuite/26_numerics/bit/bitops.rot/rotl.cc: New. | |
2337 | * testsuite/26_numerics/bit/bitops.rot/rotr.cc: New. | |
2338 | * testsuite/26_numerics/bit/bitops.count/countl_one.cc: New. | |
2339 | * testsuite/26_numerics/bit/bitops.count/countl_zero.cc: New. | |
2340 | * testsuite/26_numerics/bit/bitops.count/countr_one.cc: New. | |
2341 | * testsuite/26_numerics/bit/bitops.count/countr_zero.cc: New. | |
2342 | ||
cf3e6e9f JW |
2343 | * include/bits/alloc_traits.h: Remove redundant preprocessor |
2344 | condition. | |
2345 | ||
315aadc8 FD |
2346 | 2018-07-03 François Dumont <fdumont@gcc.gnu.org> |
2347 | ||
2348 | * include/bits/stl_algobase.h (__niter_wrap): New. | |
2349 | (__copy_move_a2(_II, _II, _OI)): Use latter. | |
2350 | (__copy_move_backward_a2(_BI1, _BI1, _BI2)): Likewise. | |
2351 | (fill_n(_OI, _Size, const _Tp&)): Likewise. | |
2352 | (equal(_II1, _II1, _II2)): Use __glibcxx_requires_can_increment. | |
2353 | * include/debug/stl_iterator.h | |
2354 | (std::__niter_base(const __gnu_cxx::_Safe_iterator< | |
2355 | __gnu_cxx::__normal_iterator<>, _Sequence>&)): New declaration. | |
2356 | * include/debug/vector (__niter_base(const __gnu_cxx::_Safe_iterator< | |
2357 | __gnu_cxx::__normal_iterator<>, _Sequence>&)): New. | |
2358 | ||
e112d53a JW |
2359 | 2018-07-02 Jonathan Wakely <jwakely@redhat.com> |
2360 | ||
8df27fcb JW |
2361 | P0758R1 Implicit conversion traits |
2362 | * include/std/type_traits [__cplusplus > 201703] | |
2363 | (__is_convertible_helper::__is_nothrow_type): Define new member. | |
2364 | (__is_convertible_helper<_From, _To, false>::__test_aux1): Add | |
2365 | noexcept. | |
2366 | (__is_convertible_helper<_From, _To, false>::__test_nothrow) | |
2367 | (__is_convertible_helper<_From, _To, false>::__is_nothrow_type): Add | |
2368 | new members. | |
2369 | (is_nothrow_convertible, is_nothrow_convertible_v): Define for C++2a. | |
2370 | * testsuite/20_util/is_nothrow_convertible/value.cc: New. | |
2371 | * testsuite/20_util/is_nothrow_convertible/requirements/ | |
2372 | explicit_instantiation.cc: New. | |
2373 | * testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc: | |
2374 | New. | |
2375 | ||
ee896276 JW |
2376 | P0887R1 The identity metafunction |
2377 | * include/std/type_traits (type_identity, type_identity_t): Define | |
2378 | for C++2a. | |
2379 | * testsuite/20_util/type_identity/requirements/alias_decl.cc: New. | |
2380 | * testsuite/20_util/type_identity/requirements/ | |
2381 | explicit_instantiation.cc:New. | |
2382 | * testsuite/20_util/type_identity/requirements/typedefs.cc: New. | |
2383 | ||
e112d53a JW |
2384 | * include/bits/regex.h (sub_match::operator string_type): Call str(). |
2385 | (sub_match::compare): Use _M_str() instead of str(). | |
2386 | (sub_match::_M_compare): New public function. | |
2387 | (sub_match::__string_view): New helper type. | |
2388 | (sub_match::_M_str): New overloaded functions to avoid creating a | |
2389 | string_type object when not needed. | |
2390 | (operator==, operator!=, operator<, operator>, operator<=, operator>=): | |
2391 | Use sub_match::_M_compare instead of creating string_type objects. | |
2392 | Fix Doxygen comments. | |
2393 | * include/bits/regex_compiler.h (__has_contiguous_iter): Remove. | |
2394 | (__is_contiguous_normal_iter): Rename to __is_contiguous_iter and | |
2395 | simplify. | |
2396 | (__enable_if_contiguous_iter, __disable_if_contiguous_iter): Use | |
2397 | __enable_if_t. | |
2398 | * include/std/type_traits (__enable_if_t): Define for C++11. | |
2399 | * testsuite/28_regex/sub_match/compare.cc: New. | |
2400 | * testsuite/util/testsuite_iterators.h (remove_cv): Add transformation | |
2401 | trait. | |
2402 | (input_iterator_wrapper): Use remove_cv for value_type argument of | |
2403 | std::iterator base class. | |
2404 | ||
6fdce073 JW |
2405 | 2018-06-29 Jonathan Wakely <jwakely@redhat.com> |
2406 | ||
2407 | * testsuite/20_util/add_rvalue_reference/requirements/alias_decl.cc: | |
2408 | Add whitespace to dejagnu directive. | |
2409 | * testsuite/23_containers/array/element_access/at_neg.cc: Likewise. | |
2410 | ||
e6cad987 FD |
2411 | 2018-06-27 François Dumont <fdumont@gcc.gnu.org> |
2412 | ||
2413 | * include/bits/stl_vector.h | |
2414 | (struct _Vector_base<>::_Vector_impl_data): New. | |
2415 | (struct _Vector_base<>::_Vector_impl): Inherit from latter. | |
2416 | (_Vector_base<>::_Vector_impl::_M_swap_data): Move... | |
2417 | (_Vector_base<>::_Vector_impl_data::_M_swap_data): ...here. | |
2418 | (_Vector_base<>::_Vector_impl()): Add noexcept qualification. | |
2419 | (_Vector_base<>::_Vector_impl(_Vector_impl&&)): New. | |
2420 | (_Vector_base<>::_Vector_impl(_Tp_alloc_type&&, _Vector_impl&&)): New. | |
2421 | (_Vector_base(const allocator_type&, _Vector_base&&)): New, use latter. | |
2422 | (_Vector_base()): Default. | |
2423 | (_Vector_base(_Vector_base&&)): Default. | |
2424 | (_Vector_base(size_t)) [_GLIBCXX_INLINE_VERSION]: Delete. | |
2425 | (_Vector_base(_Tp_alloc_type&&)) [_GLIBCXX_INLINE_VERSION]: Delete. | |
2426 | (_Vector_base::_M_create_storage(size_t)): Make protected. | |
2427 | (vector()): Default. | |
2428 | (vector(vector&&)): Default. | |
2429 | (vector(vector&&, const allocator_type&, true_type)): New. | |
2430 | (vector(vector&&, const allocator_type&, false_type)): New. | |
2431 | (vector(vector&&, const allocator_type&)): Use latters. | |
2432 | (vector(_InputIte, _InputIte, const allocator_type&)): Call | |
2433 | _M_range_initialize directly. | |
2434 | * include/debug/vector | |
2435 | (vector(vector&&, const allocator_type&)): Add noexcept qualification. | |
2436 | * testsuite/23_containers/vector/allocator/default_init.cc: New. | |
2437 | * testsuite/23_containers/vector/cons/noexcept_move_construct.cc: Add | |
2438 | static assertions. | |
2439 | ||
db9e7b2a JW |
2440 | 2018-06-27 Jonathan Wakely <jwakely@redhat.com> |
2441 | ||
cd7ec27c JW |
2442 | * include/bits/cpp_type_traits.h [__cplusplus >= 201703] |
2443 | (__is_byte<byte>): Define specialization for std::byte. | |
2444 | ||
db9e7b2a JW |
2445 | PR libstdc++/86138 |
2446 | * include/bits/basic_string.tcc: [_GLIBCXX_EXTERN_TEMPLATE < 0] | |
2447 | Declare explicit instantiations of COW empty reps and I/O functions. | |
2448 | ||
18338e9e DE |
2449 | 2018-06-26 David Edelsohn <dje.gcc@gmail.com> |
2450 | ||
2451 | * testsuite/experimental/algorithm/sample-2.cc: Add TLS DejaGNU | |
2452 | directives. | |
2453 | * testsuite/experimental/algorithm/shuffle.cc: Likewise. | |
2454 | ||
3da2f26c JW |
2455 | 2018-06-26 Jonathan Wakely <jwakely@redhat.com> |
2456 | ||
2457 | * include/bits/regex.tcc (regex_iterator::operator==): Add missing | |
2458 | noexcept. | |
2459 | ||
37cb7887 JW |
2460 | 2018-06-25 Jonathan Wakely <jwakely@redhat.com> |
2461 | ||
4fdb6fb6 JW |
2462 | PR libstdc++/86112 |
2463 | * python/libstdcxx/v6/printers.py (add_one_template_type_printer): | |
2464 | Replace dict comprehension. | |
2465 | ||
03cd7d3f JW |
2466 | PR libstdc++/81092 |
2467 | * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update. | |
2468 | ||
3685dcd7 JW |
2469 | PR libstdc++/86292 |
2470 | * include/bits/stl_vector.h (vector::_M_range_initialize<InputIter>): | |
2471 | Add try-catch block. | |
2472 | * testsuite/23_containers/vector/cons/86292.cc: New. | |
2473 | ||
b03f3a94 JW |
2474 | * doc/xml/manual/status_cxx2017.xml: Document N4531 status. |
2475 | ||
37cb7887 JW |
2476 | * include/experimental/algorithm (sample, shuffle): Add new overloads |
2477 | using per-thread random number engine. | |
2478 | * testsuite/experimental/algorithm/sample.cc: Simpify and reduce | |
2479 | dependencies by using __gnu_test::test_container. | |
2480 | * testsuite/experimental/algorithm/sample-2.cc: New. | |
2481 | * testsuite/experimental/algorithm/shuffle.cc: New. | |
2482 | ||
d72888d3 JW |
2483 | 2018-06-22 Jonathan Wakely <jwakely@redhat.com> |
2484 | ||
626d407b JW |
2485 | * config/abi/pre/gnu.ver: Fix __cxx11::basic_string patterns for |
2486 | different size_t mangling on 32-bit targets. | |
2487 | ||
0b4bc9a1 JW |
2488 | PR libstdc++/86280 |
2489 | * include/experimental/memory_resource | |
2490 | (__resource_adaptor_common::_AlignMgr::_M_token_size): Use type large | |
2491 | enough for result of left shift. | |
2492 | ||
d72888d3 JW |
2493 | PR libstdc++/86138 |
2494 | * include/bits/basic_string.tcc: | |
2495 | [__cplusplus > 201402 && !_GLIBCXX_USE_CXX11_ABI] | |
2496 | (basic_string<char>::_Rep::_S_empty_rep_storage) | |
2497 | (basic_string<wchar_t>::_Rep::_S_empty_rep_storage): Add explicit | |
2498 | instantiation declarations. | |
2499 | [__cplusplus > 201402] (operator>>, operator<<, getline): Re-enable | |
2500 | explicit instantiation declarations. | |
2501 | * testsuite/21_strings/basic_string/cons/char/86138.cc: New. | |
2502 | * testsuite/21_strings/basic_string/cons/wchar_t/86138.cc: New. | |
2503 | ||
7956c508 JW |
2504 | 2018-06-21 Jonathan Wakely <jwakely@redhat.com> |
2505 | ||
cda121ac JW |
2506 | PR libstdc++/83328 |
2507 | * acinclude.m4 (libtool_VERSION): Bump to 6:26:0. | |
2508 | * config/abi/pre/gnu.ver: Add GLIBCXX_3.4.26 and export new symbol. | |
2509 | * configure: Regenerate. | |
2510 | * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] | |
2511 | (basic_string::insert(const_iterator, initializer_list<C>)): Add. | |
2512 | [_GLIBCXX_USE_CXX11_ABI && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS] | |
2513 | (basic_string::insert(iterator, initializer_list<C>)): Suppress | |
2514 | definition. | |
2515 | * include/debug/string (basic_string::insert(iterator, C)): Change | |
2516 | first parameter to const_iterator. | |
2517 | (basic_string::insert(iterator, size_type, C)): Likewise. Change | |
2518 | return type to iterator. | |
2519 | (basic_string::insert(iterator, InputIterator, InputIterator)): | |
2520 | Likewise. | |
2521 | (basic_string::insert(iterator, initializer_list<C>)): Change first | |
2522 | parameter to const_iterator and return type to iterator. | |
2523 | * src/c++11/string-inst.cc: Extend comment. | |
2524 | * testsuite/21_strings/basic_string/modifiers/insert/char/83328.cc: | |
2525 | New. | |
2526 | * testsuite/21_strings/basic_string/modifiers/insert/wchar_t/83328.cc: | |
2527 | New. | |
2528 | * testsuite/util/testsuite_abi.cc: Add new symbol version. | |
2529 | ||
5cfd8620 JW |
2530 | * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update. |
2531 | ||
e9df6a8f JW |
2532 | PR libstdc++/70940 |
2533 | * include/experimental/memory_resource | |
2534 | (__resource_adaptor_imp::do_deallocate): Add missing return. | |
2535 | * testsuite/experimental/memory_resource/new_delete_resource.cc: New. | |
2536 | * testsuite/experimental/memory_resource/resource_adaptor.cc: Test | |
2537 | resource_adaptor with std::allocator, __gnu_cxx::new_allocator and | |
2538 | __gnu_cxx::malloc_allocator. | |
2539 | ||
7956c508 JW |
2540 | PR libstdc++/70940 |
2541 | * include/experimental/memory_resource (__resource_adaptor_common): | |
2542 | New base class. | |
2543 | (__resource_adaptor_common::_AlignMgr): Helper for obtaining aligned | |
2544 | pointer from unaligned, and vice versa. | |
2545 | (__resource_adaptor_imp::do_allocate): Use _AlignMgr to adjust | |
2546 | allocated pointer to meet alignment request. | |
2547 | (__resource_adaptor_imp::do_deallocate): Use _AlignMgr to retrieve | |
2548 | original pointer for deallocation. | |
2549 | (__resource_adaptor_imp::do_is_equal): Reformat. | |
2550 | (__resource_adaptor_imp::_S_aligned_size): Remove. | |
2551 | (__resource_adaptor_imp::_S_supported): Remove. | |
2552 | (new_delete_resource): Use __gnu_cxx::new_allocator. | |
2553 | * testsuite/experimental/memory_resource/resource_adaptor.cc: Test | |
2554 | extended alignments and use debug_allocator to check for matching | |
2555 | allocate/deallocate pairs. | |
2556 | ||
802743ba FD |
2557 | 2018-06-21 François Dumont <fdumont@gcc.gnu.org> |
2558 | ||
89de39a9 | 2559 | * include/debug/safe_iterator.h |
802743ba | 2560 | (_Safe_iterator<>(const _Safe_iterator<_MutableIterator,>& __x)): |
89de39a9 | 2561 | Compare __x base iterator with a value-initialized iterator of the |
802743ba FD |
2562 | same type. |
2563 | ||
d9addf33 JW |
2564 | 2018-06-20 Jonathan Wakely <jwakely@redhat.com> |
2565 | ||
e70359b3 JW |
2566 | PR libstdc++/70966 |
2567 | * include/experimental/memory_resource (__resource_adaptor_imp): Add | |
2568 | static assertions to enforce requirements on pointer types. | |
2569 | (__resource_adaptor_imp::get_allocator()): Add noexcept. | |
2570 | (new_delete_resource, null_memory_resource): Return address of an | |
2571 | object with dynamic storage duration. | |
2572 | (__null_memory_resource): Remove. | |
2573 | * testsuite/experimental/memory_resource/70966.cc: New. | |
2574 | ||
d9addf33 JW |
2575 | * testsuite/20_util/duration/arithmetic/dr3050.cc: Add new test |
2576 | missed from recent commit. | |
2577 | ||
828d6449 JW |
2578 | 2018-06-19 Jonathan Wakely <jwakely@redhat.com> |
2579 | ||
2580 | * include/std/utility: Remove unused <exception> header. | |
2581 | ||
8499a82c JW |
2582 | 2018-06-18 Jonathan Wakely <jwakely@redhat.com> |
2583 | ||
05891e9f JW |
2584 | LWG 2975 ensure construct(pair<T,U>*, ...) used to construct pairs |
2585 | * include/std/scoped_allocator (__not_pair): Define SFINAE helper. | |
2586 | (construct(_Tp*, _Args&&...)): Remove from overload set when _Tp is | |
2587 | a specialization of std::pair. | |
2588 | * testsuite/20_util/scoped_allocator/construct_pair.cc: Ensure | |
2589 | pair elements are constructed correctly. | |
2590 | ||
b0874c66 JW |
2591 | LWG 2989 hide path iostream operators from normal lookup |
2592 | * include/bits/fs_path.h (operator<<, operator>>): Define inline as | |
2593 | friends. | |
2594 | * testsuite/27_io/filesystem/path/io/dr2989.cc: New. | |
2595 | ||
8499a82c JW |
2596 | LWG 3050 Fix cv-qualification of convertibility constraints |
2597 | * include/std/chrono (duration, operator*, operator/, operator%): Use | |
2598 | const-qualified type as source type in is_convertible constraints. | |
2599 | * testsuite/20_util/duration/arithmetic/dr3050.cc: New. | |
2600 | * testsuite/20_util/duration/cons/dr3050.cc: New. | |
2601 | * testsuite/20_util/duration/literals/range.cc: Rename to... | |
2602 | * testsuite/20_util/duration/literals/range_neg.cc: Here. Adjust | |
2603 | dg-error lineno. | |
2604 | ||
4f9eae9f MR |
2605 | 2018-06-18 Maya Rashish <coypu@sdf.org> |
2606 | ||
2607 | * crossconfig.m4: Handle OpenBSD just like NetBSD. | |
2608 | * configure: Rebuilt. | |
2609 | ||
3be9ded2 JW |
2610 | 2018-06-18 Jonathan Wakely <jwakely@redhat.com> |
2611 | ||
410fb7d7 JW |
2612 | P0754R2 <version> header |
2613 | * include/Makefile.am: Add new header. | |
2614 | * include/Makefile.in: Regenerate. | |
2615 | * include/bits/c++config: Change doxygen comment to suggest <version> | |
2616 | instead of <iosfwd>. | |
2617 | * include/precompiled/stdc++.h: Include <cwchar> and <cwctype> | |
2618 | unconditionally. Add C++17 and C++20 headers. | |
2619 | * include/std/version: New header. | |
2620 | * testsuite/17_intro/headers/c++2017/all_attributes.cc: New. | |
2621 | * testsuite/17_intro/headers/c++2017/all_no_exceptions.cc: New. | |
2622 | * testsuite/17_intro/headers/c++2017/all_no_rtti.cc: New. | |
2623 | * testsuite/17_intro/headers/c++2017/all_pedantic_errors.cc: New. | |
2624 | * testsuite/17_intro/headers/c++2017/operator_names.cc: New. | |
2625 | * testsuite/17_intro/headers/c++2017/stdc++.cc: New. | |
2626 | * testsuite/17_intro/headers/c++2017/stdc++_multiple_inclusion.cc: | |
2627 | New. | |
2628 | * testsuite/17_intro/headers/c++2020/all_attributes.cc: New. | |
2629 | * testsuite/17_intro/headers/c++2020/all_no_exceptions.cc: New. | |
2630 | * testsuite/17_intro/headers/c++2020/all_no_rtti.cc: New. | |
2631 | * testsuite/17_intro/headers/c++2020/all_pedantic_errors.cc: New. | |
2632 | * testsuite/17_intro/headers/c++2020/operator_names.cc: New. | |
2633 | * testsuite/17_intro/headers/c++2020/stdc++.cc: New. | |
2634 | * testsuite/17_intro/headers/c++2020/stdc++_multiple_inclusion.cc: | |
2635 | New. | |
2636 | * testsuite/18_support/headers/version/macros.cc: New. | |
2637 | * testsuite/18_support/headers/version/macros.cc: New. | |
2638 | ||
7314856c JW |
2639 | * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Only check when |
2640 | enable_libstdcxx_filesystem_ts = yes. Check for link, readlink and | |
2641 | symlink. | |
2642 | * config.h.in: Regenerate. | |
2643 | * configure: Regenerate. | |
2644 | * configure.ac: Remove AC_CHECK_FUNCS for link, readlink and symlink. | |
2645 | ||
3be9ded2 JW |
2646 | LWG 3035. std::allocator's constructors should be constexpr |
2647 | * include/bits/allocator.h (allocator): Add constexpr to constructors | |
2648 | for C++2a. Replace dynamic exception specifications with NOTHROW | |
2649 | macro. | |
2650 | (allocator, operator==, operator!=): Replace USE_NOEXCEPT macro with | |
2651 | NOTHROW. | |
2652 | * include/bits/c++config (_GLIBCXX20_CONSTEXPR): Define. | |
2653 | * include/ext/malloc_allocator.h (malloc_allocator): Add constexpr | |
2654 | to constructors for C++2a. | |
2655 | * include/ext/new_allocator.h (new_allocator): Likewise. | |
2656 | ||
5d84e6c5 JW |
2657 | 2018-06-16 Jonathan Wakely <jwakely@redhat.com> |
2658 | ||
2659 | LWG 3076 basic_string CTAD ambiguity | |
2660 | * doc/xml/manual/intro.xml: Document LWG 3076 change. | |
2661 | * include/bits/basic_string.h | |
2662 | [__cpp_deduction_guides && !_GLIBCXX_DEFINING_STRING_INSTANTIATIONS] | |
2663 | (basic_string(const _CharT*, const _Alloc&)): Turn into a function | |
2664 | template constrained by _RequireAllocator. | |
2665 | (basic_string(size_type, _CharT, const _Alloc&)): Likewise. | |
2666 | * src/c++11/string-inst.cc (_GLIBCXX_DEFINING_STRING_INSTANTIATIONS): | |
2667 | Define. | |
2668 | * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test | |
2669 | deduction | |
2670 | * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: | |
2671 | Likewise. | |
2672 | ||
cb4f9a8c JW |
2673 | 2018-06-15 Jonathan Wakely <jwakely@redhat.com> |
2674 | ||
525d67d4 JW |
2675 | PR libstdc++/86169 |
2676 | * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI] | |
2677 | (basic_string::data()): Unshare string. | |
2678 | * testsuite/21_strings/basic_string/operations/data/char/86169.cc: | |
2679 | New. | |
2680 | ||
36eec25a JW |
2681 | * include/std/string_view (basic_string_view(const CharT*)): Remove |
2682 | check for null pointer and add nonnull attribute. | |
2683 | (compare(const CharT*), compare(size_type, size_type, const CharT*)) | |
2684 | (find(const CharT*, size_type), rfind(const CharT*, size_type)) | |
2685 | (find_first_of(const CharT*, size_type)) | |
2686 | (find_last_of(const CharT*, size_type)) | |
2687 | (find_first_not_of(const CharT*, size_type)) | |
2688 | (find_last_not_of(const CharT*, size_type)): Add nonnull attribute. | |
2689 | * testsuite/21_strings/basic_string_view/cons/char/nonnull.cc: New. | |
2690 | * testsuite/21_strings/basic_string_view/operations/compare/char/ | |
2691 | nonnull.cc: New. | |
2692 | * testsuite/21_strings/basic_string_view/operations/find/char/ | |
2693 | nonnull.cc: New. | |
2694 | * testsuite/21_strings/basic_string_view/operations/rfind/char/ | |
2695 | nonnull.cc: New. | |
2696 | ||
3438bf7b JW |
2697 | PR libstdc++/86168 |
2698 | * include/bits/random.h (random_device(const string&)): Remove | |
2699 | default argument. | |
2700 | ||
5a95794c JW |
2701 | * include/bits/char_traits.h (__cpp_lib_constexpr_char_traits): Only |
2702 | define for C++17 and above. | |
2703 | ||
7f93abd8 JW |
2704 | LWG 2993 reference_wrapper<T> conversion from T&& |
2705 | * doc/xml/manual/intro.xml: Document LWG 2993 change. | |
2706 | * include/bits/refwrap.h (reference_wrapper(_Tp&)): Remove. | |
2707 | (reference_wrapper(_Tp&&)): Remove. | |
2708 | (reference_wrapper<_Up>(_Up&&)): Define new constructor as constrained | |
2709 | template. | |
2710 | (reference_wrapper): Add deduction guide. | |
2711 | * testsuite/20_util/reference_wrapper/deduction.cc: New. | |
2712 | * testsuite/20_util/reference_wrapper/lwg2993.cc: New. | |
2713 | ||
cb4f9a8c JW |
2714 | LWG 3039 Unnecessary decay in thread and packaged_task |
2715 | * include/std/future (__constrain_pkgdtask): Replace with ... | |
2716 | (packaged_task::__not_same): New alias template, using | |
2717 | __remove_cvref_t instead of decay. | |
2718 | * include/std/thread (thread::__not_same): Add comment. | |
2719 | ||
977ac63e JW |
2720 | 2018-06-14 Jonathan Wakely <jwakely@redhat.com> |
2721 | ||
53e926c8 JW |
2722 | LWG 3075 basic_string needs deduction guides from basic_string_view |
2723 | * testsuite/21_strings/basic_string/cons/char/deduction.cc: Test | |
2724 | deduction from string views. | |
2725 | * testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: | |
2726 | Likewise. | |
2727 | ||
db5ab3aa JW |
2728 | LWG 3074 make scalar types non-deduced in valarray non-member functions |
2729 | * include/bits/valarray_after.h (_DEFINE_EXPR_BINARY_FUNCTION): Change | |
2730 | scalar parameters to be a non-deduced context. | |
2731 | * include/std/valarray (_DEFINE_BINARY_OPERATOR): Likewise. Adjust | |
2732 | whitespace. | |
2733 | * testsuite/26_numerics/valarray/operators.cc: Test scalar operands. | |
2734 | * testsuite/26_numerics/valarray/transcend.cc: New. | |
2735 | ||
2d26d4ce JW |
2736 | * include/std/tuple (__cpp_lib_tuple_element_t, tuple_element_t): |
2737 | Move back to <utility>. | |
2738 | * include/std/utility (__cpp_lib_tuple_element_t. tuple_element_t): | |
2739 | Restore to here. | |
2740 | ||
e9ecac30 JW |
2741 | P0935R0 Eradicating unnecessarily explicit default constructors |
2742 | * include/backward/strstream (strstreambuf): Add non-explicit default | |
2743 | constructor. | |
2744 | * include/bits/locale_conv.h (wbuffer_convert, wstring_convert): | |
2745 | Likewise. | |
2746 | * include/bits/regex.h (match_results): Likewise. | |
2747 | * testsuite/22_locale/conversions/buffer/1.cc: Test for non-explicit | |
2748 | default constructor. | |
2749 | * testsuite/22_locale/conversions/string/1.cc: Likewise. | |
2750 | * testsuite/28_regex/match_results/ctors/char/default.cc: Likewise. | |
2751 | * testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise. | |
2752 | ||
74755c6a JW |
2753 | * include/std/tuple (__cpp_lib_tuple_element_t): Move feature test |
2754 | macro from <utility> and change type to long. | |
2755 | * include/std/utility (__cpp_lib_tuple_element_t): Remove. | |
2756 | * testsuite/20_util/tuple/tuple_element_t.cc: Check for feature test | |
2757 | macro. | |
2758 | ||
977ac63e JW |
2759 | P0935R0 Eradicating unnecessarily explicit default constructors |
2760 | * include/bits/random.h (uniform_real_distribution::param_type) | |
2761 | (normal_distribution::param_type, lognormal_distribution::param_type) | |
2762 | (gamma_distribution::param_type, chi_squared_distribution::param_type) | |
2763 | (cauchy_distribution::param_type, fisher_f_distribution::param_type) | |
2764 | (student_t_distribution::param_type) | |
2765 | (bernoulli_distribution::param_type) | |
2766 | (binomial_distribution::param_type) | |
2767 | (geometric_distribution::param_type) | |
2768 | (negative_binomial_distribution::param_type) | |
2769 | (poisson_distribution::param_type) | |
2770 | (exponential_distribution::param_type) | |
2771 | (weibull_distribution::param_type) | |
2772 | (extreme_value_distribution::param_type): Add non-explicit default | |
2773 | constructors. Remove default argument for first parameter of explicit | |
2774 | constructors. | |
2775 | * include/bits/uniform_int_dist.h | |
2776 | (uniform_int_distribution::param_type): Likewise. | |
2777 | * include/ext/random | |
2778 | (beta_distribution::param_type, rice_distribution::param_type) | |
2779 | (nakagami_distribution::param_type, pareto_distribution::param_type) | |
2780 | (k_distribution::param_type, arcsine_distribution::param_type) | |
2781 | (hoyt_distribution::param_type, triangular_distribution::param_type) | |
2782 | (von_mises_distribution::param_type) | |
2783 | (hypergeometric_distribution::param_type) | |
2784 | (logistic_distribution::param_type) | |
2785 | (uniform_inside_sphere_distribution::param_type): Likewise. | |
2786 | (uniform_on_sphere_distribution::param_type): Make default constructor | |
2787 | non-explicit. | |
2788 | * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc: | |
2789 | Test param_type for non-explicit default constructor. | |
2790 | * testsuite/26_numerics/random/binomial_distribution/cons/default.cc: | |
2791 | Likewise. | |
2792 | * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc: | |
2793 | Likewise. | |
2794 | * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc: | |
2795 | Likewise. | |
2796 | * testsuite/26_numerics/random/discrete_distribution/cons/default.cc: | |
2797 | Likewise. | |
2798 | * testsuite/26_numerics/random/exponential_distribution/cons/default.cc: | |
2799 | Likewise. | |
2800 | * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc: | |
2801 | Likewise. | |
2802 | * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc: | |
2803 | Likewise. | |
2804 | * testsuite/26_numerics/random/gamma_distribution/cons/default.cc: | |
2805 | Likewise. | |
2806 | * testsuite/26_numerics/random/geometric_distribution/cons/default.cc: | |
2807 | Likewise. | |
2808 | * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc: | |
2809 | Likewise. | |
2810 | * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc: | |
2811 | Likewise. | |
2812 | * testsuite/26_numerics/random/normal_distribution/cons/default.cc: | |
2813 | Likewise. | |
2814 | * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc: | |
2815 | Likewise. | |
2816 | * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc: | |
2817 | Likewise. | |
2818 | * testsuite/26_numerics/random/poisson_distribution/cons/default.cc: | |
2819 | Likewise. | |
2820 | * testsuite/26_numerics/random/student_t_distribution/cons/default.cc: | |
2821 | Likewise. | |
2822 | * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc: | |
2823 | Likewise. | |
2824 | * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc: | |
2825 | Likewise. | |
2826 | * testsuite/26_numerics/random/weibull_distribution/cons/default.cc: | |
2827 | Likewise. | |
2828 | * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise. | |
2829 | * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise. | |
2830 | * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise. | |
2831 | * testsuite/ext/random/hypergeometric_distribution/cons/default.cc: | |
2832 | Likewise. | |
2833 | * testsuite/ext/random/k_distribution/cons/default.cc: Likewise. | |
2834 | * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise. | |
2835 | * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise. | |
2836 | * testsuite/ext/random/normal_mv_distribution/cons/default.cc: | |
2837 | Likewise. | |
2838 | * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise. | |
2839 | * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise. | |
2840 | * testsuite/ext/random/triangular_distribution/cons/default.cc: | |
2841 | Likewise. | |
2842 | * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc: | |
2843 | Likewise. | |
2844 | * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc: | |
2845 | Likewise. | |
2846 | * testsuite/ext/random/von_mises_distribution/cons/default.cc: | |
2847 | Likewise. | |
2848 | ||
4c1d999a DT |
2849 | 2018-06-14 Daniel Trebbien <dtrebbien@gmail.com> |
2850 | Jonathan Wakely <jwakely@redhat.com> | |
2851 | ||
2852 | PR libstdc++/83982 | |
2853 | * include/bits/vector.tcc (vector::_M_default_append(size_type)): | |
2854 | Default-construct new elements before moving existing ones. | |
2855 | * testsuite/23_containers/vector/capacity/resize/strong_guarantee.cc: | |
2856 | New. | |
2857 | ||
1cc56f07 JW |
2858 | 2018-06-13 Jonathan Wakely <jwakely@redhat.com> |
2859 | ||
2860 | PR libstdc++/86127 | |
2861 | * include/bits/forward_list.h (_Fwd_list_base::_Tp_alloc_type): Remove | |
2862 | unused typedef. | |
1cc56f07 JW |
2863 | (_Fwd_list_base::_M_create_node, _Fwd_list_base::_M_erase_after): |
2864 | Use node allocator to create and destroy elements. | |
2865 | (forward_list::_Tp_alloc_type): Remove unused typedef. | |
2866 | (forward_list::_Alloc_traits): Use allocator_traits instead of | |
2867 | __gnu_cxx::__alloc_traits. | |
2868 | ||
cde650fe FD |
2869 | 2018-06-13 François Dumont <fdumont@gcc.gnu.org> |
2870 | ||
eb04ee1d FD |
2871 | * include/debug/helper_functions.h |
2872 | (__gnu_debug::_Safe_iterator<>): Add declaration. | |
2873 | (__can_advance(_Ite, _Size)): New. | |
2874 | (__can_advance(const _Safe_iterator<>&, _Size)): Overload declaration. | |
2875 | * include/debug/functions.h | |
2876 | (__gnu_debug::_Safe_iterator<>): Remove declaration. | |
2877 | * include/debug/stl_iterator.h | |
2878 | (__can_advance(const _Safe_iterator<>&)): New definition. | |
2879 | * include/debug/stl_iterator.h | |
2880 | (__can_advance(const std::reverse_iterator<>&, _Size)): New. | |
2881 | (__can_advance(const std::move_iterator<>&, _Size)): New. | |
2882 | * include/debug/macros.h (__glibcxx_check_can_increment): New. | |
2883 | * include/debug/debug.h (__glibcxx_requires_can_increment): New. | |
2884 | * include/bits/stl_algobase.h (fill_n): Use latter. | |
2885 | * testsuite/25_algorithms/fill_n/2.cc: New. | |
2886 | * testsuite/25_algorithms/fill_n/debug/1_neg.cc: New. | |
2887 | * testsuite/25_algorithms/fill_n/debug/2_neg.cc: New. | |
2888 | * testsuite/25_algorithms/fill_n/debug/3_neg.cc: New. | |
2889 | * testsuite/25_algorithms/fill_n/debug/4_neg.cc: New. | |
2890 | ||
cde650fe FD |
2891 | * include/debug/debug.h (__glibcxx_requires_can_increment_range): New. |
2892 | (__glibcxx_requires_can_decrement_range): New. | |
2893 | ||
84a9d3b6 FD |
2894 | 2018-06-12 François Dumont <fdumont@gcc.gnu.org> |
2895 | ||
2896 | * include/debug/macros.h (__glibcxx_check_can_increment_range): New. | |
2897 | (__glibcxx_check_can_decrement_range): New. | |
84a9d3b6 FD |
2898 | * include/bits/stl_algobase.h (std::copy(_II, _II, _OI)): Use |
2899 | __glibcxx_requires_can_increment_range. | |
2900 | (std::move(_II, _II, _OI)): Likewise. | |
2901 | (std::copy_backward(_BI, _BI, _BI2)): Use | |
2902 | __glibcxx_requires_can_decrement_range. | |
2903 | (std::move_backward(_BI, _BI, _BI2)): Likewise. | |
2904 | * testsuite/25_algorithms/copy_backward/debug/1_neg.cc: New. | |
2905 | * testsuite/25_algorithms/copy_backward/debug/2_neg.cc: New. | |
2906 | * testsuite/25_algorithms/copy_backward/debug/3_neg.cc: New. | |
2907 | * testsuite/25_algorithms/equal/debug/1_neg.cc: New. | |
2908 | * testsuite/25_algorithms/equal/debug/2_neg.cc: New. | |
2909 | * testsuite/25_algorithms/equal/debug/3_neg.cc: New. | |
2910 | ||
dd9db6f8 JW |
2911 | 2018-06-12 Jonathan Wakely <jwakely@redhat.com> |
2912 | ||
2913 | P0935R0 Eradicating unnecessarily explicit default constructors | |
2914 | * include/bits/random.h (linear_congruential_engine) | |
2915 | (mersenne_twister_engine, subtract_with_carry_engine, random_device) | |
2916 | (uniform_real_distribution, normal_distribution) | |
2917 | (lognormal_distribution, gamma_distribution, chi_squared_distribution) | |
2918 | (cauchy_distribution, fisher_f_distribution, student_t_distribution) | |
2919 | (bernoulli_distribution, binomial_distribution,geometric_distribution) | |
2920 | (negative_binomial_distribution, exponential_distribution) | |
2921 | (weibull_distribution, extreme_value_distribution): Add non-explicit | |
2922 | default constructors. Remove default argument for first parameter of | |
2923 | explicit constructors. | |
2924 | (piecewise_constant_distribution, piecewise_linear_distribution): | |
2925 | Make default constructor non-explicit. | |
2926 | * include/bits/uniform_int_dist.h (uniform_int_distribution): Add | |
2927 | non-explicit default constructors. Remove default argument for first | |
2928 | parameter of explicit constructor. | |
8513bec3 | 2929 | * include/ext/random |
dd9db6f8 JW |
2930 | (simd_fast_mersenne_twister_engine, beta_distribution) |
2931 | (rice_distribution, nakagami_distribution, pareto_distribution) | |
2932 | (k_distribution, arcsine_distribution, hoyt_distribution) | |
2933 | (triangular_distribution, von_mises_distribution) | |
2934 | (hypergeometric_distribution, logistic_distribution) | |
2935 | (uniform_inside_sphere_distribution): Likewise. | |
2936 | (uniform_on_sphere_distribution): Make default constructor | |
2937 | non-explicit. | |
2938 | * testsuite/26_numerics/random/bernoulli_distribution/cons/default.cc: | |
2939 | Test for non-explicit default constructor. Fix references to standard. | |
2940 | * testsuite/26_numerics/random/binomial_distribution/cons/default.cc: | |
2941 | Likewise. | |
2942 | * testsuite/26_numerics/random/cauchy_distribution/cons/default.cc: | |
2943 | Likewise. | |
2944 | * testsuite/26_numerics/random/chi_squared_distribution/cons/default.cc: | |
2945 | Likewise. | |
2946 | * testsuite/26_numerics/random/discrete_distribution/cons/default.cc: | |
2947 | Likewise. | |
2948 | * testsuite/26_numerics/random/exponential_distribution/cons/default.cc: | |
2949 | Likewise. | |
2950 | * testsuite/26_numerics/random/extreme_value_distribution/cons/default.cc: | |
2951 | Likewise. | |
2952 | * testsuite/26_numerics/random/fisher_f_distribution/cons/default.cc: | |
2953 | Likewise. | |
2954 | * testsuite/26_numerics/random/gamma_distribution/cons/default.cc: | |
2955 | Likewise. | |
2956 | * testsuite/26_numerics/random/geometric_distribution/cons/default.cc: | |
2957 | Likewise. | |
2958 | * testsuite/26_numerics/random/lognormal_distribution/cons/default.cc: | |
2959 | Likewise. | |
2960 | * testsuite/26_numerics/random/negative_binomial_distribution/cons/default.cc: | |
2961 | Likewise. | |
2962 | * testsuite/26_numerics/random/normal_distribution/cons/default.cc: | |
2963 | Likewise. | |
2964 | * testsuite/26_numerics/random/piecewise_constant_distribution/cons/default.cc: | |
2965 | Likewise. | |
2966 | * testsuite/26_numerics/random/piecewise_linear_distribution/cons/default.cc: | |
2967 | Likewise. | |
2968 | * testsuite/26_numerics/random/poisson_distribution/cons/default.cc: | |
2969 | Likewise. | |
2970 | * testsuite/26_numerics/random/student_t_distribution/cons/default.cc: | |
2971 | Likewise. | |
2972 | * testsuite/26_numerics/random/uniform_int_distribution/cons/default.cc: | |
2973 | Likewise. | |
2974 | * testsuite/26_numerics/random/uniform_real_distribution/cons/default.cc: | |
2975 | Likewise. | |
2976 | * testsuite/26_numerics/random/weibull_distribution/cons/default.cc: | |
2977 | Likewise. | |
2978 | * testsuite/ext/random/arcsine_distribution/cons/default.cc: Likewise. | |
2979 | * testsuite/ext/random/beta_distribution/cons/default.cc: Likewise. | |
2980 | * testsuite/ext/random/hoyt_distribution/cons/default.cc: Likewise. | |
2981 | * testsuite/ext/random/hypergeometric_distribution/cons/default.cc: | |
2982 | Likewise. | |
2983 | * testsuite/ext/random/k_distribution/cons/default.cc: Likewise. | |
2984 | * testsuite/ext/random/logistic_distribution/cons/default.cc: Likewise. | |
2985 | * testsuite/ext/random/nakagami_distribution/cons/default.cc: Likewise. | |
2986 | * testsuite/ext/random/normal_mv_distribution/cons/default.cc: | |
2987 | Likewise. | |
2988 | * testsuite/ext/random/pareto_distribution/cons/default.cc: Likewise. | |
2989 | * testsuite/ext/random/rice_distribution/cons/default.cc: Likewise. | |
2990 | * testsuite/ext/random/triangular_distribution/cons/default.cc: | |
2991 | Likewise. | |
2992 | * testsuite/ext/random/uniform_inside_sphere_distribution/cons/default.cc: | |
2993 | Likewise. | |
2994 | * testsuite/ext/random/uniform_on_sphere_distribution/cons/default.cc: | |
2995 | Likewise. | |
2996 | * testsuite/ext/random/von_mises_distribution/cons/default.cc: | |
2997 | Likewise. | |
2998 | * testsuite/util/testsuite_common_types.h | |
2999 | (implicitly_default_constructible): New helper. | |
3000 | ||
a1417556 JW |
3001 | 2018-06-08 Jonathan Wakely <jwakely@redhat.com> |
3002 | ||
3003 | * include/bits/ios_base.h (ios::Init::Init(const Init&)) | |
3004 | (ios::Init::operator=): Define as defaulted. | |
3005 | * include/bits/stl_bvector.h (_Bit_reference(const _Bit_reference&)): | |
3006 | Likewise. | |
3007 | * include/bits/stream_iterator.h (istream_iterator::operator=) | |
3008 | (ostream_iterator::operator=): Likewise. | |
3009 | * include/bits/streambuf_iterator.h (istreambuf_iterator::operator=) | |
3010 | Likewise. | |
3011 | * include/std/bitset (bitset::reference::reference(const reference&)): | |
3012 | Likewise. | |
3013 | * include/std/complex (complex<float>::complex(const complex&)) | |
3014 | (complex<double>::complex(const complex&)) | |
3015 | (complex<long double>::complex(const complex&)): Likewise. | |
3016 | ||
c962b2c3 JW |
3017 | 2018-06-07 Jonathan Wakely <jwakely@redhat.com> |
3018 | ||
3019 | * include/bits/regex.h (sub_match): Add noexcept to default | |
3020 | constructor and length observer. | |
3021 | (match_results): Add noexcept to default constructor and observers | |
3022 | with no preconditions. Define destructor as defaulted. | |
3023 | (operator==, operator!=, swap): Add noexcept. | |
3024 | (regex_iterator): Add default member initializers and define default | |
3025 | constructor and destructor as defaulted. Add noexcept to equality | |
3026 | and dereference operators. | |
3027 | ||
7a205f50 FD |
3028 | 2018-06-07 François Dumont <fdumont@gcc.gnu.org> |
3029 | ||
3030 | * src/c++11/debug.cc | |
3031 | (_Safe_iterator_base::_M_detach()): Reset state only if needed. | |
3032 | (_Safe_iterator_base::_M_detach_single()): Likewise. | |
3033 | (_Safe_local_iterator_base::_M_detach()): Reset state only if needed. | |
3034 | (_Safe_local_iterator_base::_M_detach_single()): Likewise. | |
3035 | ||
9d67f13e JW |
3036 | 2018-06-06 Jonathan Wakely <jwakely@redhat.com> |
3037 | ||
3038 | * include/bits/shared_ptr_base.h (__shared_count): Remove redundant | |
3039 | move of const value. | |
3040 | ||
fe16acf2 JJ |
3041 | 2018-06-06 Jakub Jelinek <jakub@redhat.com> |
3042 | ||
3043 | PR c++/86068 | |
3044 | * include/bits/c++config: Check __cpp_transactional_memory >= 201500L | |
3045 | rather than __cpp_transactional_memory >= 201505L. | |
3046 | ||
7db54ccd JW |
3047 | 2018-06-06 Jonathan Wakely <jwakely@redhat.com> |
3048 | ||
3049 | PR libstdc++/86008 | |
3050 | * include/bits/quoted_string.h (_Quoted_string<basic_string_view, C>): | |
3051 | Define new partial specialization. | |
3052 | * include/std/iomanip (quoted(basic_string_view<C,T>, C, C)): Define | |
3053 | new overload. | |
3054 | (operator<<(basic_ostream<C,T>&, const _Quoted_string<S,C>&)): Use | |
3055 | value not reference for iteration. | |
3056 | * testsuite/27_io/manipulators/standard/char/quoted.cc: Adjust | |
3057 | comment. | |
3058 | * testsuite/27_io/manipulators/standard/char/quoted_sv.cc: New test. | |
3059 | * testsuite/27_io/manipulators/standard/wchar_t/quoted.cc: Adjust | |
3060 | comment. | |
3061 | ||
ce6efef8 JW |
3062 | 2018-06-05 Jonathan Wakely <jwakely@redhat.com> |
3063 | ||
d4b695e4 JW |
3064 | * include/std/type_traits: Fix comment typos. |
3065 | ||
ce6efef8 JW |
3066 | * testsuite/27_io/filesystem/operations/read_symlink.cc: XFAIL for |
3067 | mingw* targets. | |
3068 | * testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise. | |
3069 | * testsuite/experimental/filesystem/operations/read_symlink.cc: | |
3070 | Likewise. | |
3071 | ||
d31238cf FD |
3072 | 2018-06-05 François Dumont <fdumont@gcc.gnu.org> |
3073 | ||
3074 | * include/bits/stl_tempbuf.h | |
3075 | (_Temporary_buffer(_FwdIte, _FwdIte)): Delete, replaced by... | |
3076 | (_Temporary_buffer(_FwdIte, size_type)): ...this, new. | |
3077 | * include/ext/memory (temporary_buffer<>(_FwdIte, _FwdIte)): Adapt. | |
3078 | * include/bits/stl_algo.h (__stable_partition): Adapt. | |
3079 | (__inplace_merge): Adapt. | |
3080 | (__stable_sort): Adapt. | |
3081 | ||
dbda636d JW |
3082 | 2018-06-04 Jonathan Wakely <jwakely@redhat.com> |
3083 | ||
d552d819 JW |
3084 | PR libstdc++/85930 |
3085 | * include/bits/shared_ptr_base.h [!__cpp_rtti]: Include <typeinfo> | |
3086 | unconditionally. Remove redundant declaration. | |
3087 | [!__cpp_rtti] (_Sp_make_shared_tag::_S_ti): Fix location of | |
3088 | alignment-specifier. | |
3089 | ||
389f7757 JW |
3090 | * include/bits/postypes.h (fpos): Define special members as defaulted. |
3091 | ||
dbda636d JW |
3092 | PR libstdc++/85930 |
3093 | * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align | |
3094 | the static variable correctly. | |
3095 | ||
9534a5e6 JW |
3096 | 2018-05-24 Jonathan Wakely <jwakely@redhat.com> |
3097 | ||
3098 | PR libstdc++/78870 support std::filesystem on Windows | |
3099 | * config.h.in: Regenerate. | |
3100 | * configure: Regenerate. | |
3101 | * configure.ac: Check for link, readlink and symlink. | |
3102 | * include/bits/fs_path.h (path::operator/=(const path&)): Move | |
3103 | definition out of class body. | |
3104 | (path::is_absolute(), path::_M_append(path)): Likewise. | |
3105 | (operator<<(basic_ostream, const path&)): Use std::quoted directly. | |
3106 | (operator>>(basic_istream, path&)): Likewise. | |
3107 | (u8path): Reorder definitions and fix Windows implementation. | |
3108 | (path::is_absolute()): Define inline and fix for Windows. | |
3109 | [!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)): | |
3110 | Define POSIX version inline. | |
3111 | (path::_M_append(path)): Define inline. | |
3112 | * include/experimental/bits/fs_path.h (path::is_absolute()): Move | |
3113 | definition out of class body. | |
3114 | (operator<<(basic_ostream, const path&)): Fix type of delimiter and | |
3115 | escape characters. | |
3116 | (operator>>(basic_istream, path&)): Likewise. | |
3117 | (path::is_absolute()): Define inline and fix for Windows. | |
3118 | * src/filesystem/dir-common.h (__gnu_posix): New namespace. | |
3119 | (__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent) | |
3120 | (__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir): | |
3121 | Define as adaptors for Windows functions/types or as | |
3122 | using-declarations for POSIX functions/types. | |
3123 | (_Dir_base, get_file_type): Qualify names to use declarations from | |
3124 | __gnu_posix namespace. | |
3125 | (_Dir_base::is_dor_or_dotdot): New helper functions. | |
3126 | * src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify | |
3127 | names to use declarations from __gnu_posix namespace. | |
3128 | * src/filesystem/ops-common.h (__gnu_posix): New nested namespace. | |
3129 | (__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type) | |
3130 | (__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t) | |
3131 | (__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd) | |
3132 | (__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime) | |
3133 | (__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type): | |
3134 | Define as adaptors for Windows functions/types or as | |
3135 | using-declarations for POSIX functions/types. | |
3136 | (stat_type, do_copy_file): Qualify names to use declarations from | |
3137 | __gnu_posix namespace. | |
3138 | (do_space): Declare new function. | |
3139 | (make_file_type): Only use S_ISLNK if defined. | |
3140 | * src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use | |
3141 | path::value_type not char. | |
3142 | (filesystem::copy, create_dir, filesystem::create_directory): Qualify | |
3143 | names to use declarations from __gnu_posix namespace. | |
3144 | (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and | |
3145 | add implementation for Windows. | |
3146 | (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro. | |
3147 | (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd. | |
3148 | [!_PC_PATH_MAX]: Don't use pathconf. | |
3149 | [PATH_MAX]: Use if defined. | |
3150 | (filesystem::current_path(const path&, error_code&)) | |
3151 | (filesystem::equivalent, do_stat, filesystem::hard_link_count) | |
3152 | (filesystem::last_write_time, filesystem::permissions): Use names | |
3153 | from __gnu_posix. | |
3154 | (filesystem::read_symlink): Check HAVE_READLINK autoconf macro. | |
3155 | (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add | |
3156 | implementation for Windows. | |
3157 | (filesystem::rename, filesystem::resize_file): Use names from | |
3158 | __gnu_posix. | |
3159 | (filesystem::space): Use do_space. | |
3160 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory. | |
3161 | (filesystem::status, filesystem::symlink_status): Use names from | |
3162 | __gnu_posix. | |
3163 | (filesystem::temp_directory_path): Add implementation for Windows. | |
3164 | * src/filesystem/path.cc (dot): Define constant. | |
3165 | (path::replace_extension): Use dot. | |
3166 | (path::_M_find_extension): Likewise. Use path::string_type not | |
3167 | std::string. | |
3168 | (path::_M_split_cmpts): Use dot. | |
3169 | (filesystem_error::_M_get_what): Use u8string() not native(). | |
3170 | * src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator): | |
3171 | Qualify names to use declarations from __gnu_posix namespace. | |
3172 | * src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use | |
3173 | correct error_code. | |
3174 | (filesystem::absolute(const path&, error_code&)): Add implementation | |
3175 | for Windows. | |
3176 | (char_ptr, filesystem::canonical): Use path::value_type not char. | |
3177 | (do_copy_file): Use names from __gnu_posix. | |
3178 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or | |
3179 | sendfile. | |
3180 | (filesystem::copy, create_dir, filesystem::create_directory): Qualify | |
3181 | names to use declarations from __gnu_posix namespace. | |
3182 | (filesystem::create_hard_link): Check HAVE_LINK autoconf macro and | |
3183 | add implementation for Windows. | |
3184 | (filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro. | |
3185 | (filesystem::current_path(error_code&)): Use __gnu_posix::getcwd. | |
3186 | [!_PC_PATH_MAX]: Don't use pathconf. | |
3187 | [PATH_MAX]: Use if defined. | |
3188 | (filesystem::current_path(const path&, error_code&)) | |
3189 | (filesystem::equivalent, do_stat, filesystem::hard_link_count) | |
3190 | (filesystem::last_write_time, filesystem::permissions): Use names | |
3191 | from __gnu_posix. | |
3192 | (filesystem::read_symlink): Check HAVE_READLINK autoconf macro. | |
3193 | (filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add | |
3194 | implementation for Windows. | |
3195 | (filesystem::rename, filesystem::resize_file): Use names from | |
3196 | __gnu_posix. | |
3197 | (do_space): Define. | |
3198 | (filesystem::space): Use do_space. | |
3199 | (filesystem::status, filesystem::symlink_status): Use names from | |
3200 | __gnu_posix. | |
3201 | (filesystem::temp_directory_path): Add implementation for Windows. | |
3202 | * src/filesystem/std-path.cc | |
3203 | [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)): | |
3204 | Define for Windows. | |
3205 | (dot): Define constant. | |
3206 | (path::replace_extension, is_dot): Use dot. | |
3207 | (path::lexically_normal): Check _M_type instead of calling | |
3208 | non-existent function. | |
3209 | (path::_M_find_extension): Use dot. Use path::string_type not | |
3210 | std::string. | |
3211 | (path::_M_split_cmpts): Use dot. | |
3212 | (filesystem_error::_M_get_what): Use u8string() not native(). | |
3213 | * testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not | |
3214 | use symlinks. | |
3215 | * testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc: | |
3216 | Likewise. | |
3217 | * testsuite/27_io/filesystem/operations/absolute.cc: Use | |
3218 | __gnu_test::root_path() instead of "/" and add Windows-specific tests. | |
3219 | * testsuite/27_io/filesystem/operations/canonical.cc: Use | |
3220 | path::string() to get narrow string, not path::native(). | |
3221 | * testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams | |
3222 | with std::filesystem::path not std::basic_string. | |
3223 | * testsuite/27_io/filesystem/operations/copy_file.cc: Likewise. | |
3224 | * testsuite/27_io/filesystem/operations/exists.cc: Use | |
3225 | __gnu_test::root_path() instead of "/". | |
3226 | * testsuite/27_io/filesystem/operations/is_empty.cc: Construct | |
3227 | fstreams with std::filesystem::path not std::basic_string. | |
3228 | * testsuite/27_io/filesystem/operations/last_write_time.cc: Use | |
3229 | path::string() to get narrow string. | |
3230 | * testsuite/27_io/filesystem/operations/space.cc: Check results for | |
3231 | errors, expect sensible values otherwise. | |
3232 | * testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add | |
3233 | helpers for adjusting the environment on Windows. | |
3234 | * testsuite/27_io/filesystem/path/append/path.cc: Test | |
3235 | Windows-specific behaviour. | |
3236 | * testsuite/27_io/filesystem/path/construct/format.cc: Fix creation | |
3237 | of path::string_type objects. | |
3238 | * testsuite/27_io/filesystem/path/construct/locale.cc: Compare native | |
3239 | string to wide string on Windows. | |
3240 | * testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow | |
3241 | for backslash as root-directory. | |
3242 | * testsuite/27_io/filesystem/path/decompose/stem.cc: Use | |
3243 | path::string() to get narrow string. | |
3244 | * testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style | |
3245 | paths. | |
3246 | * testsuite/27_io/filesystem/path/native/string.cc: Use string_type | |
3247 | not std::string. | |
3248 | * testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for | |
3249 | different definintion of absolute paths on Windows. | |
3250 | * testsuite/experimental/filesystem/iterators/directory_iterator.cc: | |
3251 | Do not use symlinks. | |
3252 | * testsuite/experimental/filesystem/operations/absolute.cc: Test | |
3253 | Windows behaviour. | |
3254 | * testsuite/experimental/filesystem/operations/copy.cc: Construct | |
3255 | fstreams with NTCTS not std::basic_string. | |
3256 | * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise. | |
3257 | * testsuite/experimental/filesystem/operations/exists.cc: Use | |
3258 | __gnu_test::root_path() instead of "/". | |
3259 | * testsuite/experimental/filesystem/operations/is_empty.cc: Construct | |
3260 | fstreams with NTCTS not std::basic_string. | |
3261 | * testsuite/experimental/filesystem/operations/last_write_time.cc: | |
3262 | Use path::string() to get narrow string. | |
3263 | * testsuite/experimental/filesystem/operations/space.cc: Use | |
3264 | __gnu_test::root_path() instead of "/". | |
3265 | * testsuite/experimental/filesystem/operations/temp_directory_path.cc: | |
3266 | Add helpers for adjusting the environment on Windows. | |
3267 | * testsuite/experimental/filesystem/path/append/path.cc: Use | |
3268 | path::string() to get narrow strings for comparisons. | |
3269 | * testsuite/experimental/filesystem/path/concat/path.cc: Likewise. | |
3270 | * testsuite/experimental/filesystem/path/decompose/root_directory.cc: | |
3271 | Likewise. | |
3272 | * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise. | |
3273 | * testsuite/experimental/filesystem/path/native/string.cc: Use | |
3274 | string_type not std::string. | |
3275 | * testsuite/experimental/filesystem/path/query/is_absolute.cc: | |
3276 | Adjust for different definintion of absolute paths on Windows. | |
3277 | * testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New | |
3278 | function. | |
3279 | (__gnu_test::scoped_file): Construct fstreams with NTCTS not | |
3280 | std::basic_string. | |
3281 | ||
22f1f4c7 JW |
3282 | 2018-05-31 Jonathan Wakely <jwakely@redhat.com> |
3283 | ||
3284 | PR libstdc++/85951 | |
3285 | * include/std/type_traits [_GLIBCXX_USE_C99_STDINT_TR1]: Do not define | |
3286 | uint_least16_t and uint_least32_t. | |
3287 | (__make_unsigned<wchar_t>): Define unconditionally. | |
3288 | (__make_unsigned_selector<_Tp, true, false>): Remove intermediate | |
3289 | typedefs. | |
3290 | (__make_unsigned_selector_base): New type to provide helper templates. | |
3291 | (__make_unsigned_selector<_Tp, false, true>): Reimplement using | |
3292 | __make_unsigned_selector_base helpers. | |
3293 | (__make_unsigned<char16_t>, __make_unsigned<char32_t>): Define. | |
3294 | (__make_signed_selector<_Tp, true, false>): Remove intermediate | |
3295 | typedefs. | |
3296 | (__make_signed<wchar_t>, __make_signed<char16_t>) | |
3297 | (__make_signed<char32_t>)): Define unconditionally. | |
3298 | * testsuite/20_util/make_signed/requirements/typedefs-3.cc: Check | |
3299 | wchar_t, char16_t and char32_t are transformed correctly. | |
3300 | * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust | |
3301 | dg-error lineno. | |
3302 | * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: Check | |
3303 | wchar_t, char16_t and char32_t are transformed correctly. | |
3304 | * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust | |
3305 | dg-error lineno. | |
3306 | ||
5baa6f8e JW |
3307 | 2018-05-29 Jonathan Wakely <jwakely@redhat.com> |
3308 | ||
3309 | * include/std/variant (__erased_dtor): Qualify call to __get. | |
3310 | ||
538a7cd0 FD |
3311 | 2018-05-27 François Dumont <fdumont@gcc.gnu.org> |
3312 | ||
3313 | * include/bits/stl_tree.h (_Rb_tree_impl(_Node_allocator&&)): New. | |
3314 | (_Rb_tree(const allocator_type&)): Use latter. | |
3315 | * include/bits/stl_map.h (map(const allocator_type&)): Likewise. | |
3316 | (map(initializer_list<value_type>, const allocator_type&)): Likewise. | |
3317 | (map(_InputIterator, _InputIterator, const allocator_type&)): Likewise. | |
3318 | * include/bits/stl_multimap.h | |
3319 | (multimap(const allocator_type&)): Likewise. | |
3320 | (multimap(initializer_list<value_type>, const allocator_type&)): | |
3321 | Likewise. | |
3322 | (multimap(_InputIterator, _InputIterator, const allocator_type&)): | |
3323 | Likewise. | |
3324 | * include/bits/stl_set.h (set(const allocator_type&)): Likewise. | |
3325 | (set(initializer_list<value_type>, const allocator_type&)): Likewise. | |
3326 | (set(_InputIterator, _InputIterator, const allocator_type&)): Likewise. | |
3327 | * include/bits/stl_multiset.h | |
3328 | (multiset(const allocator_type&)): Likewise. | |
3329 | (multiset(initializer_list<value_type>, const allocator_type&)): | |
3330 | Likewise. | |
3331 | (multiset(_InputIterator, _InputIterator, const allocator_type&)): | |
3332 | Likewise. | |
3333 | ||
18b11937 FD |
3334 | 2018-05-25 François Dumont <fdumont@gcc.gnu.org> |
3335 | ||
3336 | PR libstdc++/85768 | |
3337 | * src/c++11/debug.cc: Remove backtrace usage. | |
3338 | ||
95c921d1 MR |
3339 | 2018-05-24 Maya Rashish <coypu@sdf.org> |
3340 | ||
3341 | PR target/85904 | |
3342 | * crossconfig.m4: Test for aligned_alloc on netbsd. | |
3343 | * configure: Regenerate. | |
3344 | ||
25999a11 JW |
3345 | 2018-05-24 Jonathan Wakely <jwakely@redhat.com> |
3346 | ||
3347 | PR libstdc++/69769 | |
3348 | PR libstdc++/85886 | |
3349 | * include/bits/atomic_base.h (__atomic_base::value_type) | |
3350 | (__atomic_base::difference_type): Add new typedefs. | |
3351 | * include/std/atomic (atomic<bool>::value_type, atomic<T>::value_type) | |
3352 | (atomic<T*>::value_type, atomic<T*>::difference_type): Likewise. | |
3353 | (atomic<T*>::operator++, atomic<T*>::operator--) | |
3354 | (atomic<T*>::operator+=, atomic<T*>::operator-=) | |
3355 | (atomic<T*>::fetch_add, atomic<T*>::fetch_sub): Add static assertion | |
3356 | to enforce C++17 requirement on pointer arithmetic. | |
3357 | (__atomic_val_t, __atomic_diff_t): New alias templates. | |
3358 | (atomic_init, atomic_store_explicit, atomic_exchange_explicit) | |
3359 | (atomic_compare_exchange_weak_explicit) | |
3360 | (atomic_compare_exchange_strong_explicit, atomic_store) | |
3361 | (atomic_exchange, atomic_compare_exchange_weak) | |
3362 | (atomic_compare_exchange_strong): Use __atomic_val_t to make | |
3363 | scalar parameters be non-deduced contexts. | |
3364 | (atomic_fetch_add_explicit, atomic_fetch_sub_explicit) | |
3365 | (atomic_fetch_add, atomic_fetch_sub): Change first parameter to be | |
3366 | atomic instead of __atomic_base, and use __atomic_diff_t for scalar | |
3367 | parameters. | |
3368 | (atomic_fetch_and_explicit, atomic_fetch_or_explicit) | |
3369 | (atomic_fetch_xor_explicit, atomic_fetch_and, atomic_fetch_or) | |
3370 | (atomic_fetch_xor): Use __atomic_val_t for scalar parameters. | |
3371 | (atomic_fetch_add_explicit, atomic_fetch_sub_explicit) | |
3372 | (atomic_fetch_add, atomic_fetch_sub): Remove overloads for atomic | |
3373 | address types. | |
3374 | * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error lineno. | |
3375 | * testsuite/29_atomics/atomic/69769.cc: New test. | |
3376 | * testsuite/29_atomics/atomic/nonmembers.cc: New test. | |
3377 | * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: | |
3378 | Disable test for C++17 and later. | |
3379 | * testsuite/29_atomics/atomic/requirements/typedefs.cc: New test. | |
3380 | * testsuite/29_atomics/atomic_integral/nonmembers.cc: New test. | |
3381 | * testsuite/29_atomics/atomic_integral/requirements/typedefs.cc: New | |
3382 | test. | |
3383 | ||
cf290ea3 JW |
3384 | 2018-05-23 Jonathan Wakely <jwakely@redhat.com> |
3385 | ||
49d729ea JW |
3386 | * include/bits/fs_path.h (path::__is_encoded_char): Change from class |
3387 | template to alias template. | |
3388 | (path::__value_type_is_char): Use remove_const_t. | |
3389 | (path:_S_string_from_iter): New helper function. | |
3390 | (path::_S_convert(InputIter, __null_terminated)) | |
3391 | (path::_S_convert_loc(InputIter, __null_terminated, const locale&)): | |
3392 | Use _S_string_from_iter. | |
3393 | (path::string<_CharT, _Allocator>(const _Allocator&)): Allow sharing | |
3394 | rep for COW strings. | |
3395 | * include/experimental/bits/fs_path.h (path::__is_encoded_char): | |
3396 | Change from class template to alias template. | |
3397 | (path::__value_type_is_char): Use remove_const. | |
3398 | (path:_S_string_from_iter): New helper function. | |
3399 | (path::_S_convert(InputIter, __null_terminated)) | |
3400 | (path::_S_convert_loc(InputIter, __null_terminated, const locale&)): | |
3401 | Use _S_string_from_iter. | |
3402 | * testsuite/27_io/filesystem/path/append/source.cc: Test appending | |
3403 | wide strings. | |
3404 | * testsuite/27_io/filesystem/path/concat/strings.cc: Check for exact | |
3405 | string equality, not path equivalence. | |
3406 | * testsuite/27_io/filesystem/path/construct/format.cc: Check | |
3407 | construction from std::string and std::wstring and input iterators. | |
3408 | * testsuite/27_io/filesystem/path/construct/locale.cc: Check | |
3409 | construction from iterators. | |
3410 | * testsuite/experimental/filesystem/path/concat/strings.cc: Check for | |
3411 | exact string equality, not path equivalence. | |
3412 | * testsuite/experimental/filesystem/path/construct/locale.cc: Check | |
3413 | construction from iterators. | |
3414 | ||
cf290ea3 JW |
3415 | * include/bits/fs_path.h (path::_M_type): Change default member |
3416 | initializer to _Filename. | |
3417 | (path::begin): Create past-the-end iterator for empty path. | |
3418 | * src/filesystem/std-path.cc (path::remove_filename()): Remove | |
3419 | debugging check. | |
3420 | (path::has_relative_path()): Return false for empty filenames. | |
3421 | (path::_M_split_cmpts): Set _M_type to _Filename for empty paths. | |
3422 | Fix offset of empty final component. | |
3423 | * testsuite/27_io/filesystem/path/itr/components.cc: New. | |
3424 | * testsuite/27_io/filesystem/path/itr/traversal.cc: Add new inputs. | |
3425 | ||
b0292359 JW |
3426 | 2018-05-21 Jonathan Wakely <jwakely@redhat.com> |
3427 | ||
3428 | Add support for opening file streams from wide character strings. | |
3429 | * config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN] | |
3430 | (__basic_file<char>::open(const wchar_t*, ios_base::openmode)): | |
3431 | Define new overload. | |
3432 | * config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN] | |
3433 | (__basic_file<char>::open(const wchar_t*, ios_base::openmode)): | |
3434 | Declare new overload. | |
3435 | * configure.ac: Check for _wfopen. | |
3436 | * crossconfig.m4: Likewise. | |
3437 | * configure: Regenerate. | |
3438 | * config.h.in: Regenerate. | |
3439 | * include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN] | |
3440 | (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)): | |
3441 | Define new overload. | |
3442 | * include/std/fstream [_GLIBCXX_HAVE__WFOPEN] | |
3443 | (basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)): | |
3444 | Declare new overload. | |
3445 | [_GLIBCXX_HAVE__WFOPEN] | |
3446 | (basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode)) | |
3447 | (basic_ifstream<C,T>::basic_open(const wchar_t*, openmode)) | |
3448 | (basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode)) | |
3449 | (basic_ofstream<C,T>::basic_open(const wchar_t*, openmode)) | |
3450 | (basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode)) | |
3451 | (basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define | |
3452 | new overloads. | |
3453 | * testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New. | |
3454 | * testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New. | |
3455 | * testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New. | |
3456 | * testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New. | |
3457 | * testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New. | |
3458 | * testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New. | |
3459 | * testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New. | |
3460 | ||
8b6d2d3b FD |
3461 | 2018-05-21 François Dumont <fdumont@gcc.gnu.org> |
3462 | ||
3463 | PR libstdc++/85845 | |
3464 | * include/bits/stl_tree.h | |
3465 | (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): Fix noexcept | |
3466 | qualification. | |
3467 | ||
f5a9710a JW |
3468 | 2018-05-21 Jonathan Wakely <jwakely@redhat.com> |
3469 | ||
8a49324e JW |
3470 | * src/filesystem/std-ops.cc (absolute): Report an error for empty |
3471 | paths. | |
3472 | (weakly_canonical(const path&)): Do not call canonical on empty path. | |
3473 | (weakly_canonical(const path&, error_code&)): Likewise. | |
3474 | * testsuite/27_io/filesystem/operations/absolute.cc: Check for errors. | |
3475 | ||
cc343938 JW |
3476 | PR libstdc++/85818 |
3477 | * testsuite/experimental/filesystem/path/preferred_separator.cc: Add | |
3478 | dg-require-filesystem-ts. | |
3479 | ||
f5a9710a JW |
3480 | PR libstdc++/85843 |
3481 | * src/c++11/cow-stdexcept.cc (logic_error, runtime_error): Explicitly | |
3482 | initialize base class to avoid warnings. | |
3483 | ||
a76400f4 JW |
3484 | 2018-05-19 Jonathan Wakely <jwakely@redhat.com> |
3485 | ||
3486 | * src/c++11/codecvt.cc (__codecvt_utf8_base<wchar_t>::do_in) | |
3487 | [__SIZEOF_WCHAR_T__==2 && __BYTE_ORDER__!=__ORDER_BIG_ENDIAN__]: Set | |
3488 | little_endian element in bitmask. | |
3489 | * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: Run all tests. | |
3490 | * testsuite/22_locale/codecvt/codecvt_utf8/wchar_t/1.cc: New. | |
3491 | ||
8b0cd47a FD |
3492 | 2018-05-18 François Dumont <fdumont@gcc.gnu.org> |
3493 | ||
3494 | * include/bits/stl_tree.h | |
3495 | (_Rb_tree_impl(_Rb_tree_impl&&, _Node_allocator&&)): New. | |
3496 | (_Rb_tree(_Rb_tree&&, _Node_allocator&&, true_type)): New, use latter. | |
3497 | (_Rb_tree(_Rb_tree&&, _Node_allocator&&, false_type)): New. | |
3498 | (_Rb_tree(_Rb_tree&&, _Node_allocator&&)): Adapt, use latters. | |
3499 | * include/debug/map.h | |
3500 | (map(map&&, const_allocator_type&)): Add noexcept qualitication. | |
3501 | * include/debug/multimap.h | |
3502 | (multimap(multimap&&, const_allocator_type&)): Likewise. | |
3503 | * include/debug/set.h | |
3504 | (set(set&&, const_allocator_type&)): Likewise. | |
3505 | * include/debug/multiset.h | |
3506 | (multiset(multiset&&, const_allocator_type&)): Likewise. | |
3507 | * testsuite/23_containers/map/cons/noexcept_default_construct.cc: | |
3508 | Add checks. | |
3509 | * testsuite/23_containers/map/cons/noexcept_move_construct.cc: | |
3510 | Add checks. | |
3511 | * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc: | |
3512 | Add checks. | |
3513 | * testsuite/23_containers/multimap/cons/noexcept_move_construct.cc: | |
3514 | Add checks. | |
3515 | * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc: | |
3516 | Add checks. | |
3517 | * testsuite/23_containers/multiset/cons/noexcept_move_construct.cc: | |
3518 | Add checks. | |
3519 | * testsuite/23_containers/set/cons/noexcept_default_construct.cc: | |
3520 | Add checks. | |
3521 | * testsuite/23_containers/set/cons/noexcept_move_construct.cc: | |
3522 | Add checks. | |
3523 | ||
f07c2237 JM |
3524 | 2018-05-18 Jason Merrill <jason@redhat.com> |
3525 | ||
3526 | * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor | |
3527 | for conversion to const_iterator. Add defaulted copy ops. | |
3528 | * libsupc++/new (bad_alloc): Add defaulted copy ops. | |
3529 | * libsupc++/exception.h (exception): Add defaulted copy ops. | |
3530 | * include/std/system_error (system_error): Add defaulted copy ops. | |
3531 | * include/std/stdexcept (domain_error, invalid_argument) | |
3532 | (length_error, out_of_range, range_error, overflow_error) | |
3533 | (underflow_error): Add defaulted copy ops. | |
3534 | * include/bits/stl_iterator.h (reverse_iterator): Add defaulted | |
3535 | copy assignment. | |
3536 | * include/bits/allocator.h (allocator): Add defaulted copy assignment. | |
3537 | * include/ext/throw_allocator.h (condition_base): Add defaulted | |
3538 | default and copy ctor and copy assignment. | |
3539 | ||
2d76fab4 JW |
3540 | 2018-05-18 Jonathan Wakely <jwakely@redhat.com> |
3541 | ||
3542 | PR libstdc++/85098 | |
3543 | * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase) | |
3544 | (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate) | |
3545 | (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended) | |
3546 | (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add | |
3547 | definitions. | |
3548 | * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust | |
3549 | whitespace. | |
3550 | * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add | |
3551 | braces around body of do-while. | |
3552 | * testsuite/28_regex/basic_regex/85098.cc: New | |
3553 | ||
ff03245e JW |
3554 | 2018-05-17 Jonathan Wakely <jwakely@redhat.com> |
3555 | ||
079638f9 JW |
3556 | PR libstdc++/85818 |
3557 | * src/filesystem/path.cc (path::preferred_separator): Add used | |
3558 | attribute. | |
3559 | * testsuite/experimental/filesystem/path/preferred_separator.cc: New. | |
3560 | ||
ff03245e JW |
3561 | PR libstdc++/85812 |
3562 | * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare. | |
3563 | * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]: | |
3564 | Refactor to separate non-throwing and throwing implementations. | |
3565 | [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory | |
3566 | if constructing the object throws. | |
3567 | ||
e4a5135f JW |
3568 | 2018-05-15 Jonathan Wakely <jwakely@redhat.com> |
3569 | ||
5a7960da JW |
3570 | PR libstdc++/85749 |
3571 | * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper. | |
3572 | (linear_congruential_engine, mersenne_twister_engine) | |
3573 | (subtract_with_carry_engine, discard_block_engine) | |
3574 | (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to | |
3575 | constrain function templates taking seed sequences. | |
3576 | * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&)) | |
3577 | (mersenne_twister_engine::seed(_Sseq&)) | |
3578 | (subtract_with_carry_engine::seed(_Sseq&)): Change return types to | |
3579 | match declarations. | |
3580 | * include/ext/random (simd_fast_mersenne_twister_engine): Use | |
3581 | __is_seed_seq to constrain function templates taking seed sequences. | |
3582 | * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed): | |
3583 | Change return type to match declaration. | |
3584 | * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc: | |
3585 | New. | |
3586 | * testsuite/26_numerics/random/independent_bits_engine/cons/ | |
3587 | seed_seq2.cc: New. | |
3588 | * testsuite/26_numerics/random/linear_congruential_engine/cons/ | |
3589 | seed_seq2.cc: New. | |
3590 | * testsuite/26_numerics/random/mersenne_twister_engine/cons/ | |
3591 | seed_seq2.cc: New. | |
3592 | * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno. | |
3593 | * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc: | |
3594 | New. | |
3595 | * testsuite/26_numerics/random/subtract_with_carry_engine/cons/ | |
3596 | seed_seq2.cc: New. | |
3597 | * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/ | |
3598 | seed_seq2.cc: New. | |
3599 | ||
c3b61fda JW |
3600 | PR libstdc++/83891 |
3601 | * include/bits/fs_path.h (path::is_absolute()): Use same definition | |
3602 | for all operating systems. | |
3603 | * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise. | |
3604 | * testsuite/27_io/filesystem/path/query/is_absolute.cc: New. | |
3605 | * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment. | |
3606 | * testsuite/experimental/filesystem/path/query/is_absolute.cc: New. | |
3607 | ||
b0e01682 JW |
3608 | * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove |
3609 | unused <vector> header. | |
3610 | * testsuite/27_io/filesystem/path/query/empty.cc: Likewise. | |
3611 | * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise. | |
3612 | * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise. | |
3613 | * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise. | |
3614 | * testsuite/27_io/filesystem/path/query/has_relative_path.cc: | |
3615 | Likewise. | |
3616 | * testsuite/27_io/filesystem/path/query/has_root_directory.cc: | |
3617 | Likewise. | |
3618 | * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise. | |
3619 | * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise. | |
3620 | * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise. | |
3621 | * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise. | |
3622 | * testsuite/experimental/filesystem/path/decompose/extension.cc: | |
3623 | Likewise. | |
3624 | * testsuite/experimental/filesystem/path/query/empty.cc: Likewise. | |
3625 | * testsuite/experimental/filesystem/path/query/has_extension.cc: | |
3626 | Likewise. | |
3627 | * testsuite/experimental/filesystem/path/query/has_filename.cc: | |
3628 | Likewise. | |
3629 | * testsuite/experimental/filesystem/path/query/has_parent_path.cc: | |
3630 | Likewise. | |
3631 | * testsuite/experimental/filesystem/path/query/has_relative_path.cc: | |
3632 | Likewise. | |
3633 | * testsuite/experimental/filesystem/path/query/has_root_directory.cc: | |
3634 | Likewise. | |
3635 | * testsuite/experimental/filesystem/path/query/has_root_name.cc: | |
3636 | Likewise. | |
3637 | * testsuite/experimental/filesystem/path/query/has_root_path.cc: | |
3638 | Likewise. | |
3639 | * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise. | |
3640 | * testsuite/experimental/filesystem/path/query/is_relative.cc: | |
3641 | Likewise. | |
3642 | ||
6cda876d JW |
3643 | PR libstdc++/84159 |
3644 | * include/bits/fs_path.h (path::operator/=, path::append): Construct | |
3645 | temporary path before calling _M_append. | |
3646 | (path::_M_append): Change parameter to path and implement C++17 | |
3647 | semantics. | |
3648 | * testsuite/27_io/filesystem/path/append/path.cc: Add helper function | |
3649 | and more examples from the standard. | |
3650 | * testsuite/27_io/filesystem/path/append/source.cc: New. | |
3651 | * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment. | |
3652 | * testsuite/27_io/filesystem/path/nonmember/append.cc: New. | |
3653 | ||
e4a5135f JW |
3654 | * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify |
3655 | __invoke to prevent ADL. | |
3656 | ||
3846b8e4 JW |
3657 | 2018-05-14 Jonathan Wakely <jwakely@redhat.com> |
3658 | ||
e77497ab JW |
3659 | PR libstdc++/81256 |
3660 | * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow | |
3661 | exceptions from _M_terminate_output(). | |
3662 | * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any | |
3663 | exceptions from close(). | |
3664 | * testsuite/27_io/basic_filebuf/close/81256.cc: New. | |
3665 | ||
cd2f262b JW |
3666 | * include/bits/valarray_array.h (__valarray_get_memory): Remove. |
3667 | (__valarray_get_storage): Call operator new directly. Remove ignored | |
3668 | top-level restrict qualifier and add malloc attribute instead. | |
3669 | (_Array<_Tp>::_Array(size_t)): Remove unused constructor. | |
3670 | ||
6bfbebb0 JW |
3671 | PR libstdc++/67554 |
3672 | * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>) | |
3673 | (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy. | |
3674 | ||
3846b8e4 JW |
3675 | PR libstdc++/82966 |
3676 | * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value | |
3677 | instead of type. | |
3678 | * testsuite/23_containers/set/modifiers/node_swap.cc: New. | |
3679 | ||
456dbc72 VV |
3680 | 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com> |
3681 | ||
3682 | PR libstdc++/80165 | |
3683 | * testsuite/20_util/variant/80165.cc: New. | |
3684 | ||
0f8a1c15 JW |
3685 | 2018-05-10 Jonathan Wakely <jwakely@redhat.com> |
3686 | ||
3687 | * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer. | |
3688 | * doc/xml/manual/debug_mode.xml: Add array and forward_list to list | |
3689 | of C++11 containers with Debug Mode support. | |
3690 | * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure. | |
3691 | * doc/html/*: Regenerate. | |
3692 | ||
a6e1cfdd JM |
3693 | 2018-05-10 Jason Merrill <jason@redhat.com> |
3694 | ||
3695 | * include/bits/regex_compiler.h (_S_cache_size): Change from | |
3696 | function to variable. | |
3697 | ||
88bf4c34 ESR |
3698 | 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
3699 | ||
3700 | PR libstdc++/83140 - assoc_legendre returns negated value when m is odd | |
3701 | * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase | |
3702 | argument defaulted to +1. Doxy comments on same. | |
3703 | * testsuite/special_functions/02_assoc_legendre/ | |
3a2e98ce | 3704 | check_value.cc: Regen. |
88bf4c34 | 3705 | * testsuite/tr1/5_numerical_facilities/special_functions/ |
3a2e98ce | 3706 | 02_assoc_legendre/check_value.cc: Regen. |
88bf4c34 | 3707 | |
daf69489 JW |
3708 | 2018-05-10 Jonathan Wakely <jwakely@redhat.com> |
3709 | ||
3710 | PR libstdc++/85729 | |
3711 | * include/bits/c++config.h (__replacement_assert): Add linkage | |
3712 | specification. | |
3713 | * include/bits/std_abs.h: Add comment to closing brace of block. | |
3714 | * include/c_global/cstddef: Add linkage specification. | |
3715 | * include/c_global/cstring: Likewise. | |
3716 | * include/c_global/cwchar: Likewise. | |
3717 | ||
6c882d0f FD |
3718 | 2018-05-09 François Dumont <fdumont@gcc.gnu.org> |
3719 | ||
3720 | * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()): | |
3721 | Rename in... | |
3722 | (_Safe_iterator<>::_S_constant()): ...that. | |
3723 | * include/debug/safe_local_iterator.h | |
3724 | (_Safe_local_iterator<>::_M_constant()): Rename in... | |
3725 | (_Safe_local_iterator<>::_S_constant()): ...that. | |
3726 | * include/debug/formatter.h: Remove bits/cpp_type_traits.h include. | |
3727 | (_Iterator_state::__rbegin): New. | |
3728 | (_Iterator_state::__rmiddle): New. | |
3729 | (_Iterator_state::__rend): New. | |
3730 | (_Parameter::_Parameter(const _Safe_iterator<>&, const char*, | |
3731 | _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying | |
3732 | iterator type. | |
3733 | (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*, | |
3734 | _Is_iterator)): Likewise. | |
3735 | (_Parameter::_S_reverse_state(_Iterator_state)): New. | |
0f8a1c15 | 3736 | (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*, |
6c882d0f FD |
3737 | _Is_iterator)): New. |
3738 | (_Parameter(std::reverse_iterator<> const&, const char*, | |
3739 | _Is_iterator)): New. | |
3740 | (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&, | |
3741 | const char*, _Is_iterator)): New. | |
3742 | (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator): | |
3743 | New. | |
3744 | (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*, | |
3745 | _Is_iterator)): New. | |
3746 | * testsuite/24_iterators/move_iterator/debug_neg.cc: New. | |
3747 | * testsuite/24_iterators/normal_iterator/debug_neg.cc: New. | |
3748 | * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New. | |
3749 | ||
88b1e41c JW |
3750 | 2018-05-09 Jonathan Wakely <jwakely@redhat.com> |
3751 | ||
3752 | * include/bits/std_function.h (_Base_manager::_M_get_pointer): | |
3753 | Use constexpr if in C++17 mode. | |
3754 | (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)): | |
3755 | Copy from const object. | |
3756 | * testsuite/20_util/function/cons/non_copyconstructible.cc: New. | |
3757 | ||
a5277405 FD |
3758 | 2018-05-08 François Dumont <fdumont@gcc.gnu.org> |
3759 | ||
e95a74fd FD |
3760 | * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h. |
3761 | [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render | |
3762 | backtrace. | |
3763 | ||
90aabc7e FD |
3764 | * include/debug/macros.h (__glibcxx_check_valid_range_at): New. |
3765 | * include/debug/functions.h (__check_valid_range): Use latter. | |
3766 | * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New, | |
3767 | use latter. | |
3768 | * include/debug/deque | |
3769 | (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter. | |
3770 | * include/debug/forward_list | |
3771 | (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)): | |
3772 | Likewise. | |
3773 | * include/debug/list | |
3774 | (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
3775 | * include/debug/list | |
3776 | (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
3777 | * include/debug/map.h | |
3778 | (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
3779 | (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)): | |
3780 | Likewise. | |
3781 | * include/debug/multimap.h | |
3782 | (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
3783 | (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&, | |
3784 | const _Alloc&)): Likewise. | |
3785 | * include/debug/set.h | |
3786 | (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
3787 | (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)): | |
3788 | Likewise. | |
3789 | * include/debug/multiset.h | |
3790 | (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise. | |
3791 | (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&, | |
3792 | const _Alloc&)): Likewise. | |
3793 | * include/debug/string | |
3794 | (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)): | |
3795 | Likewise. | |
3796 | * include/debug/unordered_map | |
3797 | (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)): | |
3798 | Likewise. | |
3799 | (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter, | |
3800 | const _Alloc&)): Likewise. | |
3801 | * include/debug/unordered_set | |
3802 | (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)): | |
3803 | Likewise. | |
3804 | (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter, | |
3805 | const _Alloc&)): Likewise. | |
3806 | * include/debug/vector | |
3807 | (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter. | |
3808 | ||
a5277405 FD |
3809 | * include/debug/formatter.h (_Error_formatter::_M_function): New. |
3810 | (_Error_formatter(const char*, unsigned int)): Adapt. | |
3811 | (_Error_formatter::_M_at): Rename in... | |
3812 | (_Error_formatter::_S_at): ...that and adapt. | |
3813 | * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New. | |
3814 | (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt. | |
3815 | * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function | |
3816 | when available. | |
3817 | ||
41c3db9f JW |
3818 | 2018-05-08 Jonathan Wakely <jwakely@redhat.com> |
3819 | ||
ec332f1b JW |
3820 | * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA): |
3821 | Use normal std::vector even in Debug Mode. | |
3822 | ||
41c3db9f JW |
3823 | PR libstdc++/85672 |
3824 | * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry | |
3825 | to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero. | |
3826 | * include/Makefile.in: Regenerate. | |
3827 | * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition | |
3828 | within conditional block. | |
3829 | ||
a989f637 JW |
3830 | 2018-05-07 Jonathan Wakely <jwakely@redhat.com> |
3831 | ||
b83f5981 JW |
3832 | * doc/xml/manual/using.xml (table.cmd_options): Document that the |
3833 | C++17 Filesystem implementation also needs -lstdc++fs. | |
3834 | ||
a989f637 JW |
3835 | PR libstdc++/85671 |
3836 | * include/bits/fs_path.h (operator/): Permit copy elision. | |
3837 | * include/experimental/bits/fs_path.h (operator/): Likewise. | |
3838 | ||
228aa0ec ESR |
3839 | 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net> |
3840 | ||
3841 | Moar PR libstdc++/80506 | |
3842 | * include/bits/random.tcc (gamma_distribution::__generate_impl()): | |
3843 | Fix magic number used in loop condition. | |
3844 | ||
d6ed6b07 JW |
3845 | 2018-05-04 Jonathan Wakely <jwakely@redhat.com> |
3846 | ||
3847 | PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>> | |
3848 | * include/std/optional (_Optional_payload): Add noexcept to default | |
3849 | constructor. Re-indent. | |
3850 | (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to | |
3851 | constructor for copying disengaged payloads. | |
3852 | (_Optional_payload<_Tp, true, false, true>): Likewise. | |
3853 | (_Optional_payload<_Tp, true, true, false>): Likewise. | |
3854 | (_Optional_payload<_Tp, true, false, false>): Likewise. | |
3855 | * testsuite/20_util/optional/cons/85642.cc: New. | |
3856 | * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines. | |
3857 | ||
6791489e JW |
3858 | 2018-05-03 Jonathan Wakely <jwakely@redhat.com> |
3859 | ||
86f66562 JW |
3860 | PR libstdc++/82644 |
3861 | * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use | |
3862 | inline definitions instead of using-declarations. | |
3863 | [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise. | |
3864 | * testsuite/tr1/5_numerical_facilities/special_functions/ | |
3865 | 07_conf_hyperg/compile_cxx17.cc: New. | |
3866 | * testsuite/tr1/5_numerical_facilities/special_functions/ | |
3867 | 17_hyperg/compile_cxx17.cc: New. | |
3868 | ||
1ee021f2 JW |
3869 | PR libstdc++/84769 |
3870 | * include/std/variant (visit): Qualify std::get call. | |
3871 | ||
2e023647 JW |
3872 | PR libstdc++/85632 use uintmax_t for arithmetic |
3873 | * src/filesystem/ops.cc (experimental::filesystem::space): Perform | |
3874 | arithmetic in result type. | |
3875 | * src/filesystem/std-ops.cc (filesystem::space): Likewise. | |
3876 | * testsuite/27_io/filesystem/operations/space.cc: Check total capacity | |
3877 | is greater than free space. | |
3878 | * testsuite/experimental/filesystem/operations/space.cc: New. | |
3879 | ||
adba76a3 JW |
3880 | * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New. |
3881 | * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc: | |
3882 | New. | |
3883 | * testsuite/20_util/remove_cvref/value.cc: New. | |
3884 | * testsuite/20_util/remove_cvref/value_ext.cc: New. | |
3885 | ||
852ee53c JW |
3886 | PR libstdc++/84087 LWG DR 2268 basic_string default arguments |
3887 | * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1] | |
3888 | (append(const basic_string&, size_type, size_type) | |
3889 | (assign(const basic_string&, size_type, size_type) | |
3890 | (insert(size_type, const basic_string&, size_type, size_type) | |
3891 | (replace(size_type,size_type,const basic_string&,size_type,size_type) | |
3892 | (compare(size_type,size_type,constbasic_string&,size_type,size_type)): | |
3893 | Add default arguments (LWG 2268). | |
3894 | [_GLIBCXX_USE_CXX11_ABI=0] | |
3895 | (append(const basic_string&, size_type, size_type) | |
3896 | (assign(const basic_string&, size_type, size_type) | |
3897 | (insert(size_type, const basic_string&, size_type, size_type) | |
3898 | (replace(size_type,size_type,const basic_string&,size_type,size_type) | |
3899 | (compare(size_type,size_type,constbasic_string&,size_type,size_type)): | |
3900 | Likewise. | |
3901 | * testsuite/21_strings/basic_string/dr2268.cc: New test. | |
3902 | ||
d49b3426 JW |
3903 | PR libstdc++/84535 |
3904 | * include/std/thread (thread::__not_same): New SFINAE helper. | |
3905 | (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that | |
3906 | first argument is not a std::thread. Add static assertion to check | |
3907 | INVOKE expression is valid. | |
3908 | (thread::thread(thread&), thread::thread(const thread&&)): Remove. | |
3909 | (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use | |
3910 | __invoke_result for return types and remove exception specifications. | |
3911 | * testsuite/30_threads/thread/cons/84535.cc: New. | |
3912 | ||
9e3ef542 JW |
3913 | * include/std/future (__async_result_of): Use __invoke_result instead |
3914 | of result_of. | |
3915 | ||
6791489e JW |
3916 | * include/std/any (any_cast): Use __remove_cvref_t. |
3917 | * include/std/tuple (__make_tuple): Likewise. | |
3918 | * include/std/type_traits (__remove_cvref_t): Define. | |
3919 | (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t. | |
3920 | [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define. | |
3921 | * include/std/variant (__erased_hash): Use __remove_cvref_t. | |
3922 | ||
27db01d8 FD |
3923 | 2018-05-02 François Dumont <fdumont@gcc.gnu.org> |
3924 | ||
3925 | * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to | |
3926 | ensure overloaded comma not used. | |
3927 | * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise. | |
3928 | * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise. | |
3929 | * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise. | |
3930 | * testsuite/23_containers/deque/modifiers/assign/1.cc: New. | |
3931 | * testsuite/23_containers/list/modifiers/assign/1.cc: New. | |
3932 | * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New. | |
3933 | * testsuite/23_containers/vector/modifiers/assign/1.cc: New. | |
3934 | ||
c6d42579 JW |
3935 | 2018-05-02 Jonathan Wakely <jwakely@redhat.com> |
3936 | ||
85d0fad4 JW |
3937 | PR libstdc++/68197 |
3938 | * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast | |
3939 | indices to unsigned. | |
3940 | * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices | |
3941 | as failure. Refactor error handling. | |
3942 | * testsuite/27_io/ios_base/storage/68197.cc: New. | |
3943 | ||
1b749ae9 JW |
3944 | PR libstdc++/57997 |
3945 | PR libstdc++/83860 | |
3946 | * include/bits/gslice_array.h (gslice_array): Define default | |
3947 | constructor as deleted, as per C++11 standard. | |
3948 | * include/bits/mask_array.h (mask_array): Likewise. | |
3949 | * include/bits/slice_array.h (slice_array): Likewise. | |
3950 | * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move | |
3951 | to namespace __detail. | |
3952 | (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data | |
3953 | members. | |
3954 | * include/bits/valarray_before.h (_ValArrayRef): New helper for type | |
3955 | of data members in closure objects. | |
3956 | (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase) | |
3957 | (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace | |
3958 | __detail. | |
3959 | (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1) | |
3960 | (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2) | |
3961 | (_SBase::_M_expr): Use _ValArrayRef for type of data members. | |
3962 | * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos) | |
3963 | (_ValFunClos, _RefFunClos): Move to namespace __detail and add | |
3964 | using-declarations to namespace std. | |
3965 | * testsuite/26_numerics/valarray/83860.cc: New. | |
3966 | ||
59bcf900 JW |
3967 | * testsuite/backward/strstream_move.cc: Remove duplicate function |
3968 | call. | |
3969 | ||
c6d42579 JW |
3970 | PR libstdc++/69608 |
3971 | * include/backward/strstream (strstreambuf): Define move constructor | |
3972 | and move assignment operator. | |
3973 | (istrstream, ostrstream, strstream): Likewise. | |
3974 | * testsuite/backward/strstream_move.cc: New. | |
3975 | ||
f421e442 TMQMF |
3976 | 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> |
3977 | ||
3978 | PR libstdc++/84654 | |
3979 | * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128. | |
3980 | * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128. | |
3981 | * configure: Regenerate. | |
3982 | * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128 | |
3983 | based on ENABLE_FLOAT128. | |
3984 | * include/Makefile.in: Regenerate. | |
3985 | * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128. | |
3986 | [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine | |
3987 | _GLIBCXX_USE_FLOAT128. | |
3988 | ||
7b47ecf2 L |
3989 | 2018-04-24 H.J. Lu <hongjiu.lu@intel.com> |
3990 | ||
3991 | * configure: Regenerated. | |
3992 | ||
a0e1df88 JJ |
3993 | 2018-04-19 Jakub Jelinek <jakub@redhat.com> |
3994 | ||
3995 | * configure: Regenerated. | |
3996 | ||
05b14480 JW |
3997 | 2018-04-18 Jonathan Wakely <jwakely@redhat.com> |
3998 | Jakub Jelinek <jakub@redhat.com> | |
3999 | ||
4000 | PR libstdc++/85442 | |
4001 | * src/c++11/Makefile.am: Don't generate debuginfo again for | |
4002 | cxx11-ios_failure-lt.s and cxx11-ios_failure.s files. | |
4003 | * src/c++11/Makefile.in: Regenerate. | |
4004 | ||
8cc8789f JW |
4005 | 2018-04-18 Jonathan Wakely <jwakely@redhat.com> |
4006 | ||
4007 | PR libstdc++/84442 | |
4008 | * testsuite/30_threads/thread/cons/terminate.cc | |
4009 | [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit. | |
4010 | ||
001ddaa8 DM |
4011 | 2018-04-18 David Malcolm <dmalcolm@redhat.com> |
4012 | ||
4013 | PR jit/85384 | |
4014 | * configure: Regenerate. | |
4015 | ||
ef0e80d2 JW |
4016 | 2018-04-16 Jonathan Wakely <jwakely@redhat.com> |
4017 | ||
4018 | * testsuite/experimental/filesystem/file_status/1.cc: Add | |
4019 | -DUSE_FILESYSTEM_TS to dg-options. | |
4020 | * testsuite/experimental/filesystem/iterators/directory_iterator.cc: | |
4021 | Likewise. | |
4022 | * testsuite/experimental/filesystem/iterators/pop.cc: Likewise. | |
4023 | * testsuite/experimental/filesystem/iterators/ | |
4024 | recursive_directory_iterator.cc: Likewise. | |
4025 | * testsuite/experimental/filesystem/operations/absolute.cc: Likewise. | |
4026 | * testsuite/experimental/filesystem/operations/canonical.cc: Likewise. | |
4027 | * testsuite/experimental/filesystem/operations/copy.cc: Likewise. | |
4028 | * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise. | |
4029 | * testsuite/experimental/filesystem/operations/create_directories.cc: | |
4030 | Likewise. | |
4031 | * testsuite/experimental/filesystem/operations/create_directory.cc: | |
4032 | Likewise. | |
4033 | * testsuite/experimental/filesystem/operations/create_symlink.cc: | |
4034 | Likewise. | |
4035 | * testsuite/experimental/filesystem/operations/current_path.cc: | |
4036 | Likewise. | |
4037 | * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise. | |
4038 | * testsuite/experimental/filesystem/operations/exists.cc: Likewise. | |
4039 | * testsuite/experimental/filesystem/operations/file_size.cc: Likewise. | |
4040 | * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise. | |
4041 | * testsuite/experimental/filesystem/operations/last_write_time.cc: | |
4042 | Likewise. | |
4043 | * testsuite/experimental/filesystem/operations/permissions.cc: | |
4044 | Likewise. | |
4045 | * testsuite/experimental/filesystem/operations/read_symlink.cc: | |
4046 | Likewise. | |
4047 | * testsuite/experimental/filesystem/operations/remove.cc: Likewise. | |
4048 | * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise. | |
4049 | * testsuite/experimental/filesystem/operations/status.cc: Likewise. | |
4050 | * testsuite/experimental/filesystem/operations/temp_directory_path.cc: | |
4051 | Likewise. | |
4052 | * testsuite/experimental/filesystem/path/append/path.cc: Likewise. | |
4053 | * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise. | |
4054 | * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise. | |
4055 | * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise. | |
4056 | * testsuite/experimental/filesystem/path/compare/path.cc: Likewise. | |
4057 | * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise. | |
4058 | * testsuite/experimental/filesystem/path/concat/path.cc: Likewise. | |
4059 | * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise. | |
4060 | * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise. | |
4061 | * testsuite/experimental/filesystem/path/construct/default.cc: | |
4062 | Likewise. | |
4063 | * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise. | |
4064 | * testsuite/experimental/filesystem/path/construct/range.cc: Likewise. | |
4065 | * testsuite/experimental/filesystem/path/construct/string_view.cc: | |
4066 | Likewise. | |
4067 | * testsuite/experimental/filesystem/path/decompose/extension.cc: | |
4068 | Likewise. | |
4069 | * testsuite/experimental/filesystem/path/decompose/filename.cc: | |
4070 | Likewise. | |
4071 | * testsuite/experimental/filesystem/path/decompose/parent_path.cc: | |
4072 | Likewise. | |
4073 | * testsuite/experimental/filesystem/path/decompose/relative_path.cc: | |
4074 | Likewise. | |
4075 | * testsuite/experimental/filesystem/path/decompose/root_directory.cc: | |
4076 | Likewise. | |
4077 | * testsuite/experimental/filesystem/path/decompose/root_name.cc: | |
4078 | Likewise. | |
4079 | * testsuite/experimental/filesystem/path/decompose/root_path.cc: | |
4080 | Likewise. | |
4081 | * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise. | |
4082 | * testsuite/experimental/filesystem/path/generic/generic_string.cc: | |
4083 | Likewise. | |
4084 | * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise. | |
4085 | * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise. | |
4086 | * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc: | |
4087 | Likewise. | |
4088 | * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc: | |
4089 | Likewise. | |
4090 | * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc: | |
4091 | Likewise. | |
4092 | * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc: | |
4093 | Likewise. | |
4094 | * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise. | |
4095 | * testsuite/experimental/filesystem/path/native/string.cc: Likewise. | |
4096 | * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: | |
4097 | Likewise. | |
4098 | * testsuite/experimental/filesystem/path/query/empty.cc: Likewise. | |
4099 | * testsuite/experimental/filesystem/path/query/has_extension.cc: | |
4100 | Likewise. | |
4101 | * testsuite/experimental/filesystem/path/query/has_filename.cc: | |
4102 | Likewise. | |
4103 | * testsuite/experimental/filesystem/path/query/has_parent_path.cc: | |
4104 | Likewise. | |
4105 | * testsuite/experimental/filesystem/path/query/has_relative_path.cc: | |
4106 | Likewise. | |
4107 | * testsuite/experimental/filesystem/path/query/has_root_directory.cc: | |
4108 | Likewise. | |
4109 | * testsuite/experimental/filesystem/path/query/has_root_name.cc: | |
4110 | Likewise. | |
4111 | * testsuite/experimental/filesystem/path/query/has_root_path.cc: | |
4112 | Likewise. | |
4113 | * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise. | |
4114 | * testsuite/experimental/filesystem/path/query/is_relative.cc: | |
4115 | Likewise. | |
4116 | ||
06258a7f JW |
4117 | 2018-04-13 Jonathan Wakely <jwakely@redhat.com> |
4118 | ||
272277dc JW |
4119 | * src/c++11/Makefile.am: Fix sed command. |
4120 | * src/c++11/Makefile.in: Regenerate. | |
4121 | ||
06258a7f JW |
4122 | * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to |
4123 | handle mangled names starting with double underscores on darwin. | |
4124 | * src/c++11/Makefile.in: Regenerate. | |
4125 | ||
ee3e8f43 JW |
4126 | 2018-04-12 Jonathan Wakely <jwakely@redhat.com> |
4127 | ||
741346a2 JW |
4128 | * src/c++11/Makefile.am: Fix comment. |
4129 | * src/c++11/Makefile.in: Regenerate. | |
4130 | * src/c++11/cxx11-ios_failure.cc: Fix comment. | |
4131 | * src/c++98/ios_failure.cc: Likewise. | |
4132 | ||
ee3e8f43 JW |
4133 | * src/c++11/ios.cc: Remove redundant macro definition. |
4134 | ||
52556a87 JW |
4135 | 2018-04-11 Jonathan Wakely <jwakely@redhat.com> |
4136 | ||
4137 | * doc/xml/manual/abi.xml: Document header locations in recent | |
4138 | releases. | |
4139 | * doc/xml/manual/evolution.xml: Add API changes since GCC 5. | |
4140 | * doc/xml/manual/spine.xml: Update copyright years. | |
4141 | * doc/xml/manual/strings.xml: Adjust tolower example to avoid | |
4142 | undefined behaviour. | |
4143 | * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests. | |
4144 | * doc/html/*: Regenerate. | |
4145 | ||
5f302518 JW |
4146 | 2018-04-10 Jonathan Wakely <jwakely@redhat.com> |
4147 | ||
25949ee3 JW |
4148 | * doc/xml/faq.xml: Update links to archived copy of SGI STL docs. |
4149 | * doc/xml/manual/backwards_compatibility.xml: Likewise. | |
4150 | * doc/xml/manual/containers.xml: Likewise. | |
4151 | * doc/xml/manual/debug_mode.xml: Likewise. | |
4152 | * doc/xml/manual/extensions.xml: Likewise. | |
4153 | * doc/xml/manual/policy_data_structures_biblio.xml: Likewise. | |
4154 | * doc/xml/manual/using.xml: Likewise. | |
4155 | * doc/xml/manual/utilities.xml: Likewise. | |
4156 | ||
5f302518 JW |
4157 | PR libstdc++/85222 |
4158 | * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for | |
4159 | cxx11-ios_failure.cc to rewrite type info for __ios_failure. | |
4160 | * src/c++11/Makefile.in: Regenerate. | |
4161 | * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info): | |
4162 | New types. | |
4163 | [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here. | |
4164 | * src/c++11/ios.cc (__throw_ios_failure): Remove definition. | |
4165 | * src/c++98/ios_failure.cc (__construct_ios_failure) | |
4166 | (__destroy_ios_failure, is_ios_failure_handler): New functions. | |
4167 | [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here. | |
4168 | * testsuite/27_io/ios_base/failure/dual_abi.cc: New. | |
4169 | * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to | |
4170 | handler types, to always catch std::ios_base::failure. | |
4171 | * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise. | |
4172 | * testsuite/27_io/basic_istream/extractors_arithmetic/char/ | |
4173 | exceptions_failbit.cc: Likewise. | |
4174 | * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/ | |
4175 | exceptions_failbit.cc: Likewise. | |
4176 | * testsuite/27_io/basic_istream/extractors_other/char/ | |
4177 | exceptions_null.cc: Likewise. | |
4178 | * testsuite/27_io/basic_istream/extractors_other/wchar_t/ | |
4179 | exceptions_null.cc: Likewise. | |
4180 | * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise. | |
4181 | * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise. | |
4182 | * testsuite/27_io/basic_ostream/inserters_other/char/ | |
4183 | exceptions_null.cc: Likewise. | |
4184 | * testsuite/27_io/basic_ostream/inserters_other/wchar_t/ | |
4185 | exceptions_null.cc: Likewise. | |
4186 | * testsuite/27_io/ios_base/storage/2.cc: Likewise. | |
4187 | ||
970d3d90 JW |
4188 | 2018-04-05 Jonathan Wakely <jwakely@redhat.com> |
4189 | ||
4190 | * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify | |
4191 | __get calls to avoid ADL and avoid ambiguity due to Clang bug. | |
4192 | ||
c73847e7 JW |
4193 | 2018-04-03 Jonathan Wakely <jwakely@redhat.com> |
4194 | ||
4195 | PR libstdc++/85183 | |
4196 | * include/std/variant (_Move_assign_base::operator=): Fix incorrect | |
4197 | value categories. | |
4198 | * testsuite/20_util/variant/85183.cc: New. | |
4199 | ||
aafaa325 JW |
4200 | 2018-03-26 Jonathan Wakely <jwakely@redhat.com> |
4201 | ||
4202 | * include/std/variant (__get): Qualify calls to avoid ADL. | |
4203 | (__select_index): Adjust whitespace. | |
4204 | (variant): Add using-declaration to workaround Clang bug. | |
4205 | ||
7c69a7d9 JW |
4206 | 2018-03-22 Jonathan Wakely <jwakely@redhat.com> |
4207 | ||
4208 | PR libstdc++/85040 | |
4209 | * include/bits/stl_function.h (greater::__not_overloaded) | |
4210 | (less::__not_overloaded, greater_equal::__not_overloaded) | |
4211 | (less_equal::__not_overloaded): Fix ambiguous specializations. | |
4212 | * testsuite/20_util/function_objects/comparisons_pointer.cc: Add | |
970d3d90 | 4213 | tests for type with overloaded operators. |
7c69a7d9 | 4214 | |
83872062 RO |
4215 | 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
4216 | ||
4217 | PR libstdc++/77691 | |
4218 | * testsuite/experimental/memory_resource/resource_adaptor.cc: | |
4219 | xfail execution on 32-bit Solaris/x86. | |
4220 | ||
5a0729f5 JW |
4221 | 2018-03-21 Jonathan Wakely <jwakely@redhat.com> |
4222 | ||
4223 | * testsuite/20_util/function_objects/comparisons_pointer.cc: Use | |
4224 | VERIFY instead of assert. | |
4225 | * testsuite/20_util/hash/84998.cc: New test. | |
4226 | * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New | |
4227 | copy of test adjusted for Debug Mode. | |
4228 | * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run | |
4229 | test in Debug Mode. | |
4230 | ||
5dfb5e5b FD |
4231 | 2018-03-20 François Dumont <fdumont@gcc.gnu.org> |
4232 | ||
4233 | PR libstdc++/84998 | |
4234 | * include/bits/stl_bvector.h: Fix std::hash friend declaration. | |
4235 | * include/std/bitset: Likewise. | |
4236 | * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend | |
4237 | declaration. | |
4238 | * include/bits/stl_multimap.h (std::multimap<>): Likewise. | |
4239 | * include/bits/stl_multiset.h (std::multiset<>): Likewise. | |
4240 | * include/bits/stl_set.h (std::set<>): Likewise. | |
4241 | * include/bits/unordered_map.h (std::unordered_map<>): Fix | |
4242 | _Hash_merge_helper friend declaration. | |
4243 | (std::unordered_multimap<>): Likewise. | |
4244 | * include/bits/unordered_set.h (std::unordered_set<>): Likewise. | |
4245 | (std::unordered_multiset<>): Likewise. | |
4246 | ||
1de51fbc GP |
4247 | 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com> |
4248 | ||
8c00b6a4 GP |
4249 | * doc/xml/api.xml: www.fsf.org has moved to https. Also omit |
4250 | trailing slash for domain level link. | |
4251 | * doc/xml/faq.xml: Ditto. | |
4252 | * doc/xml/manual/appendix_free.xml (software): Ditto. | |
4253 | * doc/xml/manual/intro.xml: Ditto. | |
4254 | * doc/xml/manual/spine.xml: Ditto. | |
4255 | * doc/xml/spine.xml: Ditto. | |
4256 | ||
5dfb5e5b FD |
4257 | 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com> |
4258 | ||
1de51fbc GP |
4259 | * doc/xml/manual/documentation_hacking.xml: Adjust link to |
4260 | docbook.org. | |
4261 | ||
0fb9dc36 JW |
4262 | 2018-03-17 Jonathan Wakely <jwakely@redhat.com> |
4263 | ||
4264 | * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust | |
4265 | to compile as C++98. | |
4266 | ||
0b3ec8f4 JW |
4267 | 2018-03-14 Jonathan Wakely <jwakely@redhat.com> |
4268 | ||
4269 | PR libstdc++/78420 | |
4270 | * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>) | |
4271 | (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations | |
4272 | to ensure total order for pointers. | |
4273 | (greater<void>, less<void>, greater_equal<void>, less_equal<void>): | |
4274 | Add operator() overloads for pointer arguments and make generic | |
4275 | overloads dispatch to new _S_cmp functions when comparisons would | |
4276 | use built-in operators for pointers. | |
4277 | * testsuite/20_util/function_objects/comparisons_pointer.cc: New. | |
4278 | ||
97ca95ac JW |
4279 | 2018-03-12 Jonathan Wakely <jwakely@redhat.com> |
4280 | ||
4281 | PR libstdc++/84773 | |
4282 | PR libstdc++/83662 | |
4283 | * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32. | |
4284 | * configure: Regenerate. | |
4285 | * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC] | |
4286 | (aligned_alloc): Add using-declaration. | |
4287 | * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test. | |
4288 | ||
5da6b013 FD |
4289 | 2018-03-09 François Dumont <fdumont@gcc.gnu.org> |
4290 | ||
4291 | * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary): | |
4292 | Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers | |
4293 | registration. | |
4294 | ||
311735db JW |
4295 | 2018-03-09 Jonathan Wakely <jwakely@redhat.com> |
4296 | ||
5dbbf899 JW |
4297 | PR libstdc++/84769 |
4298 | * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>): | |
4299 | Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>. | |
4300 | ||
311735db JW |
4301 | src/filesystem/ops.cc (create_dir): Pass error_code to is_directory. |
4302 | src/filesystem/std-ops.cc (create_dir): Likewise. | |
4303 | ||
fe6bd21a FD |
4304 | 2018-03-08 François Dumont <fdumont@gcc.gnu.org> |
4305 | ||
4306 | * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New. | |
4307 | (StdListIteratorPrinter): Inherit from latter. | |
4308 | (StdFwdListIteratorPrinter): New, inherit from latter. | |
4309 | (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer | |
4310 | when iterator has no associated container. | |
4311 | (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and | |
4312 | __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace | |
4313 | registrations. | |
4314 | * testsuite/libstdc++-prettyprinters/debug.cc: Adapt. | |
4315 | * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt. | |
4316 | ||
447346e4 VV |
4317 | 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com> |
4318 | ||
4319 | PR libstdc++/84601 | |
4320 | * include/std/optional (_Optional_payload): Split into multiple | |
4321 | specializations that can handle different cases of trivial or | |
4322 | non-trivial assignment operators. | |
4323 | * testsuite/20_util/optional/84601.cc: New. | |
4324 | * testsuite/20_util/optional/cons/value_neg.cc: Adjust. | |
4325 | ||
2f03003d JW |
4326 | 2018-03-02 Jonathan Wakely <jwakely@redhat.com> |
4327 | ||
4328 | PR libstdc++/84671 | |
4329 | * include/bits/parse_numbers.h (_Number_help): Add partial | |
4330 | specialization to handle digit separators. Adjust partial | |
4331 | specialization for recursion temrination to require _Pow == 1ULL. | |
4332 | * testsuite/20_util/duration/literals/84671.cc: New | |
4333 | ||
23c3a059 VV |
4334 | 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com> |
4335 | ||
4336 | Implement the missing bits of LWG 2769 | |
4337 | * include/std/any (any_cast(const any&)): Add static_assert. | |
4338 | (any_cast(any&)): Likewise. | |
4339 | (any_cast(any&&)): Likewise, and remove the handling | |
4340 | for copyable-but-not-movable type. | |
4341 | * testsuite/20_util/any/misc/any_cast.cc: Adjust. | |
4342 | * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and | |
4343 | add new tests. | |
4344 | ||
cc535146 JW |
4345 | 2018-02-23 Jonathan Wakely <jwakely@redhat.com> |
4346 | ||
4347 | PR libstdc++/84532 | |
4348 | * include/std/thread (thread::__make_invoker): Construct tuple | |
4349 | directly instead of using make_tuple. | |
4350 | * testsuite/30_threads/async/84532.cc: New. | |
4351 | * testsuite/30_threads/thread/84532.cc: New. | |
4352 | ||
549b1796 FD |
4353 | 2018-02-20 François Dumont <fdumont@gcc.gnu.org> |
4354 | ||
4355 | * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION] | |
4356 | (template<> __aligned_buffer): Define as __aligned_membuf alias. | |
4357 | ||
14e335ed IT |
4358 | 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com> |
4359 | ||
4360 | PR target/84148 | |
4361 | * configure: Regenerate. | |
4362 | ||
51f174c0 JW |
4363 | 2018-02-15 Jonathan Wakely <jwakely@redhat.com> |
4364 | ||
4365 | PR libstdc++/81797 | |
4366 | * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define. | |
4367 | * configure: Regenerate. | |
4368 | * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when | |
4369 | defined. | |
4370 | * include/Makefile.in: Regenerate. | |
4371 | ||
73ebece3 JW |
4372 | 2018-01-29 Jonathan Wakely <jwakely@redhat.com> |
4373 | ||
50ea03f4 JW |
4374 | PR libstdc++/83833 |
4375 | * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: | |
4376 | Add -ffloat-store to options for m68k and ia32. | |
4377 | ||
b53e4e1c JW |
4378 | * doc/xml/faq.xml: Update copyright years. |
4379 | * doc/html/*: Regenerate. | |
4380 | ||
73ebece3 JW |
4381 | PR libstdc++/83658 |
4382 | * include/std/any (any::__do_emplace): Only set _M_manager after | |
4383 | constructing the contained object. | |
4384 | * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line. | |
4385 | * testsuite/20_util/any/modifiers/83658.cc: New test. | |
4386 | ||
58078de7 JW |
4387 | 2018-01-25 Jonathan Wakely <jwakely@redhat.com> |
4388 | ||
4389 | PR libstdc++/81076 | |
4390 | * include/c_global/cstddef (__byte_operand): Define primary template. | |
4391 | * testsuite/18_support/byte/81076.cc: New test. | |
4392 | ||
a46c4287 CL |
4393 | 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org> |
4394 | ||
4395 | * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix | |
58078de7 | 4396 | dg-options and dg-add-options order. |
a46c4287 CL |
4397 | * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise. |
4398 | * testsuite/ext/special_functions/conf_hyperg/check_nan.cc: | |
4399 | Likewise. | |
4400 | * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise. | |
4401 | * testsuite/special_functions/01_assoc_laguerre/check_nan.cc: | |
4402 | Likewise. | |
4403 | * testsuite/special_functions/02_assoc_legendre/check_nan.cc: | |
4404 | Likewise. | |
4405 | * testsuite/special_functions/03_beta/check_nan.cc: Likewise. | |
4406 | * testsuite/special_functions/04_comp_ellint_1/check_nan.cc: | |
4407 | Likewise. | |
4408 | * testsuite/special_functions/05_comp_ellint_2/check_nan.cc: | |
4409 | Likewise. | |
4410 | * testsuite/special_functions/06_comp_ellint_3/check_nan.cc: | |
4411 | Likewise. | |
4412 | * testsuite/special_functions/06_comp_ellint_3/pr66689.cc: | |
4413 | Likewise. | |
4414 | * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: | |
4415 | Likewise. | |
4416 | * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: | |
4417 | Likewise. | |
4418 | * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: | |
4419 | Likewise. | |
4420 | * testsuite/special_functions/10_cyl_neumann/check_nan.cc: | |
4421 | Likewise. | |
4422 | * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise. | |
4423 | * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise. | |
4424 | * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise. | |
4425 | * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise. | |
4426 | * testsuite/special_functions/14_expint/check_nan.cc: Likewise. | |
4427 | * testsuite/special_functions/15_hermite/check_nan.cc: Likewise. | |
4428 | * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise. | |
4429 | * testsuite/special_functions/17_legendre/check_nan.cc: Likewise. | |
4430 | * testsuite/special_functions/18_riemann_zeta/check_nan.cc: | |
4431 | Likewise. | |
4432 | * testsuite/special_functions/19_sph_bessel/check_nan.cc: | |
4433 | Likewise. | |
4434 | * testsuite/special_functions/20_sph_legendre/check_nan.cc: | |
4435 | Likewise. | |
4436 | * testsuite/special_functions/21_sph_neumann/check_nan.cc: | |
4437 | Likewise. | |
4438 | ||
dac867c9 UB |
4439 | 2018-01-18 Uros Bizjak <ubizjak@gmail.com> |
4440 | ||
4441 | * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally | |
4442 | include linux/types.h when checking linux/random.h header. | |
4443 | * config.h.in: Regenerate. | |
4444 | * configure: Ditto. | |
4445 | * src/c++11/random.cc: Conditionally include linux/types.h. | |
4446 | ||
229433c9 EB |
4447 | 2018-01-16 Eric Botcazou <ebotcazou@adacore.com> |
4448 | ||
4449 | * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux. | |
4450 | ||
cce6078d JW |
4451 | 2018-01-16 Jonathan Wakely <jwakely@redhat.com> |
4452 | ||
4453 | PR libstdc++/83834 | |
4454 | * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard | |
4455 | pattern with exact match for std::cerr. | |
4456 | ||
b0e63d94 JW |
4457 | 2018-01-15 Jonathan Wakely <jwakely@redhat.com> |
4458 | ||
8b3085e7 JW |
4459 | PR libstdc++/83833 |
4460 | * include/bits/random.h (chi_squared_distribution::param): Update | |
4461 | gamma distribution parameter. | |
4462 | * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New | |
4463 | test. | |
4464 | ||
b0e63d94 JW |
4465 | PR libstdc++/83830 |
4466 | * include/std/type_traits (has_unique_object_representations_v): Add | |
4467 | variable template. | |
4468 | * testsuite/20_util/has_unique_object_representations/value.cc: Check | |
4469 | variable template. | |
4470 | ||
c89f2d24 VV |
4471 | 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com> |
4472 | ||
4473 | Make optional conditionally | |
4474 | trivially_{copy,move}_{constructible,assignable} | |
4475 | * include/std/optional (_Optional_payload): Fix the comment in | |
4476 | the class head and turn into a primary and one specialization. | |
4477 | (_Optional_payload::_M_engaged): Strike the NSDMI. | |
4478 | (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)): | |
4479 | New. | |
4480 | (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)): | |
4481 | Likewise. | |
4482 | (_Optional_payload<_Tp, false>::_M_get): Likewise. | |
4483 | (_Optional_payload<_Tp, false>::_M_reset): Likewise. | |
4484 | (_Optional_base_impl): Likewise. | |
4485 | (_Optional_base): Turn into a primary and three specializations. | |
4486 | (optional(nullopt)): Change the base init. | |
4487 | * testsuite/20_util/optional/assignment/8.cc: New. | |
4488 | * testsuite/20_util/optional/cons/trivial.cc: Likewise. | |
4489 | * testsuite/20_util/optional/cons/value_neg.cc: Adjust. | |
4490 | ||
bab0a26d JW |
4491 | 2018-01-15 Jonathan Wakely <jwakely@redhat.com> |
4492 | ||
4493 | PR libstdc++/80276 | |
4494 | * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New. | |
4495 | (get_template_arg_list): New. | |
4496 | (StdVariantPrinter._template_args): Remove, use get_template_arg_list | |
4497 | instead. | |
4498 | (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead | |
4499 | of strings and regular expressions. | |
4500 | (add_one_template_type_printer): Adapt to new TemplateTypePrinter. | |
4501 | (FilteringTypePrinter): Add docstring. Match using startswith. Use | |
4502 | strip_inline_namespaces instead of strip_versioned_namespace. | |
4503 | (add_one_type_printer): Prepend namespace to match argument. | |
4504 | (register_type_printers): Add type printers for char16_t and char32_t | |
4505 | string types and for types using cxx11 ABI. Update calls to | |
4506 | add_one_template_type_printer to provide default argument dicts. | |
4507 | * testsuite/libstdc++-prettyprinters/80276.cc: New test. | |
4508 | * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for | |
4509 | basic_string<unsigned char> and basic_string<signed char>. | |
4510 | * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc | |
4511 | to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI. | |
4512 | ||
a61bac1e AS |
4513 | 2018-01-14 Andreas Schwab <schwab@linux-m68k.org> |
4514 | ||
4515 | PR libstdc++/81092 | |
4516 | * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update. | |
4517 | ||
8532713f TS |
4518 | 2018-01-13 Tim Shen <timshen@google.com> |
4519 | ||
4520 | PR libstdc++/83601 | |
4521 | * include/bits/regex.tcc (regex_replace): Fix escaping in sed. | |
4522 | * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests. | |
4523 | * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests. | |
4524 | ||
c969e34e RO |
4525 | 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
4526 | ||
4527 | PR libstdc++/64054 | |
4528 | * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc: | |
4529 | Remove dg-xfail-run-if. | |
4530 | ||
75ce74bb FD |
4531 | 2018-01-10 François Dumont <fdumont@gcc.gnu.org> |
4532 | ||
4533 | * include/bits/forward_list.h | |
4534 | (_Fwd_list_node_base(_Fwd_list_node_base&&)): New. | |
4535 | (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New. | |
4536 | (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete. | |
4537 | (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise. | |
4538 | (_Fwd_list_impl()): Add noexcept qualification. | |
4539 | (_Fwd_list_impl(const _Node_alloc_type&)): Delete. | |
4540 | (_Fwd_list_impl(_Fwd_list_impl&&)): New, default. | |
4541 | (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New. | |
4542 | (_Fwd_list_base()): Default. | |
4543 | (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New. | |
4544 | (_Fwd_list_base(_Fwd_list_base&&)): Default. | |
4545 | (forward_list<>()): Default. | |
4546 | (forward_list<>(forward_list&&)): Default. | |
4547 | (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New. | |
4548 | (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New. | |
4549 | (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters. | |
4550 | * include/bits/forward_list.tcc | |
4551 | (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use | |
4552 | _M_impl._M_head move assignment. | |
4553 | (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise. | |
4554 | * testsuite/23_containers/forward_list/allocator/default_init.cc: New. | |
4555 | ||
8273aa77 JW |
4556 | 2018-01-09 Jonathan Wakely <jwakely@redhat.com> |
4557 | ||
4558 | PR libstdc++/80276 | |
4559 | * python/libstdcxx/v6/printers.py (SharedPointerPrinter) | |
4560 | (UniquePointerPrinter): Print correct template argument, not type of | |
4561 | the pointer. | |
4562 | (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup | |
4563 | a type. | |
4564 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of | |
4565 | array type. | |
4566 | * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and | |
4567 | weak_ptr of array types. | |
4568 | ||
0f146257 FD |
4569 | 2018-01-09 François Dumont <fdumont@gcc.gnu.org> |
4570 | ||
4571 | PR libstdc++/83709 | |
4572 | * include/bits/hashtable_policy.h | |
4573 | (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if | |
4574 | __first != __last. | |
4575 | (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New. | |
4576 | (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)): | |
4577 | Add false_type parameter. | |
4578 | (_Insert_base::insert): Adapt. | |
4579 | * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)): | |
4580 | Adapt. | |
4581 | (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)): | |
4582 | Add __n_elt parameter, defaulted to 1. | |
4583 | (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash | |
4584 | policy _M_need_rehash. | |
4585 | (_Hashtable::_M_merge_unique): Pass target number of elements to add to | |
4586 | produce only 1 rehash if necessary. | |
4587 | * testsuite/23_containers/unordered_map/insert/83709.cc: New. | |
4588 | * testsuite/23_containers/unordered_set/insert/83709.cc: New. | |
4589 | ||
ed99ae13 JO |
4590 | 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr> |
4591 | Jonathan Wakely <jwakely@redhat.com> | |
d2dfcf82 JO |
4592 | |
4593 | PR libstdc++/59253 (partial) | |
4594 | * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator | |
4595 | type for pointer stored by shared_ptr, weak_ptr and unique_ptr. | |
4596 | (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as | |
4597 | children. | |
4598 | * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output | |
4599 | of unique_ptr printer. | |
4600 | * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected | |
4601 | output of shared_ptr printer. | |
4602 | ||
388058dd JW |
4603 | 2018-01-05 Jonathan Wakely <jwakely@redhat.com> |
4604 | ||
4ca07db0 JW |
4605 | PR libstdc++/83626 |
4606 | * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove | |
4607 | unnecessary symlink_status call. | |
4608 | (remove_all(const path&, error_code&)): Use filesystem::remove. | |
4609 | * src/filesystem/std-ops.cc: Likewise. | |
4610 | ||
2526c53a JW |
4611 | PR libstdc++/83279 |
4612 | * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with | |
4613 | sendfile. | |
4614 | ||
388058dd JW |
4615 | PR libstdc++/83626 |
4616 | * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not | |
4617 | report an error for ENOENT. | |
4618 | (remove_all(const path&)): Fix type of result variable. | |
4619 | (remove_all(const path&, error_code&)): Use non-throwing increment | |
4620 | for directory iterator. Call POSIX remove directly to avoid redundant | |
4621 | calls to symlink_status. Do not report errors for ENOENT. | |
4622 | * src/filesystem/std-ops.cc: Likewise. | |
4623 | * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing | |
4624 | overload. | |
4625 | * testsuite/experimental/filesystem/operations/remove_all.cc: | |
4626 | Likewise. | |
4627 | ||
32489ab5 JW |
4628 | 2018-01-04 Jonathan Wakely <jwakely@redhat.com> |
4629 | ||
994844d3 JW |
4630 | PR libstdc++/83626 |
4631 | * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove | |
4632 | redundant call to ec.clear(). | |
4633 | (remove_all(const path&, error_code&))): Do not return an error for | |
4634 | non-existent paths. | |
4635 | * src/filesystem/std-ops.cc: Likewise. | |
4636 | * testsuite/27_io/filesystem/operations/remove.cc: New test. | |
4637 | * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected | |
4638 | results for non-existent paths. | |
4639 | * testsuite/experimental/filesystem/operations/remove.cc: New test. | |
4640 | * testsuite/experimental/filesystem/operations/remove_all.cc: Fix | |
4641 | expected results for non-existent paths. | |
4642 | ||
f7373fce JW |
4643 | * include/bits/fs_ops.h (exists(const path&, error_code&))): Only |
4644 | check status_known once. | |
4645 | * include/experimental/bits/fs_ops.h: Likewise. | |
4646 | ||
32489ab5 JW |
4647 | PR libstdc++/83607 |
4648 | * include/std/functional (__is_byte_like): New trait. | |
4649 | (__is_std_equal_to): Remove. | |
4650 | (__boyer_moore_base_t): Use __is_byte_like instead of | |
4651 | __is_std_equal_to. | |
4652 | * include/experimental/functional (__is_std_equal_to): Remove. | |
4653 | (__boyer_moore_base_t): Use __is_byte_like instead of | |
4654 | __is_std_equal_to. | |
4655 | * testsuite/20_util/function_objects/83607.cc: New test. | |
4656 | ||
8bdbeed1 VV |
4657 | 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com> |
4658 | ||
4659 | Protect optional's deduction guide with the feature macro | |
4660 | * include/std/optional: Use the feature macro. | |
4661 | ||
85ec4feb | 4662 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
5624e564 JJ |
4663 | |
4664 | Update copyright years. | |
b4df5e92 | 4665 | \f |
85ec4feb | 4666 | Copyright (C) 2018 Free Software Foundation, Inc. |
b4df5e92 JW |
4667 | |
4668 | Copying and distribution of this file, with or without modification, | |
4669 | are permitted in any medium without royalty provided the copyright | |
4670 | notice and this notice are preserved. |