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