Some libstdc++ fixes for -Wdeprecated-copy.
[gcc.git] / libstdc++-v3 / ChangeLog
1 2018-05-18 Jason Merrill <jason@redhat.com>
2
3 * include/bits/stl_deque.h (_Deque_iterator): Constrain constructor
4 for conversion to const_iterator. Add defaulted copy ops.
5 * libsupc++/new (bad_alloc): Add defaulted copy ops.
6 * libsupc++/exception.h (exception): Add defaulted copy ops.
7 * include/std/system_error (system_error): Add defaulted copy ops.
8 * include/std/stdexcept (domain_error, invalid_argument)
9 (length_error, out_of_range, range_error, overflow_error)
10 (underflow_error): Add defaulted copy ops.
11 * include/bits/stl_iterator.h (reverse_iterator): Add defaulted
12 copy assignment.
13 * include/bits/allocator.h (allocator): Add defaulted copy assignment.
14 * include/ext/throw_allocator.h (condition_base): Add defaulted
15 default and copy ctor and copy assignment.
16
17 2018-05-18 Jonathan Wakely <jwakely@redhat.com>
18
19 PR libstdc++/85098
20 * include/bits/regex.h [__cplusplus < 201703L] (basic_regex::icase)
21 (basic_regex::nosubs, basic_regex::optimize, basic_regex::collate)
22 (basic_regex::ECMAScript, basic_regex::basic, basic_regex::extended)
23 (basic_regex::awk, basic_regex::grep, basic_regex::egrep): Add
24 definitions.
25 * include/bits/regex_automaton.h (_NFA::_M_insert_state): Adjust
26 whitespace.
27 * include/bits/regex_compiler.tcc (__INSERT_REGEX_MATCHER): Add
28 braces around body of do-while.
29 * testsuite/28_regex/basic_regex/85098.cc: New
30
31 2018-05-17 Jonathan Wakely <jwakely@redhat.com>
32
33 PR libstdc++/85818
34 * src/filesystem/path.cc (path::preferred_separator): Add used
35 attribute.
36 * testsuite/experimental/filesystem/path/preferred_separator.cc: New.
37
38 PR libstdc++/85812
39 * libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
40 * libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
41 Refactor to separate non-throwing and throwing implementations.
42 [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
43 if constructing the object throws.
44
45 2018-05-15 Jonathan Wakely <jwakely@redhat.com>
46
47 PR libstdc++/85749
48 * include/bits/random.h (__detail::__is_seed_seq): New SFINAE helper.
49 (linear_congruential_engine, mersenne_twister_engine)
50 (subtract_with_carry_engine, discard_block_engine)
51 (independent_bits_engine, shuffle_order_engine): Use __is_seed_seq to
52 constrain function templates taking seed sequences.
53 * include/bits/random.tcc (linear_congruential_engine::seed(_Sseq&))
54 (mersenne_twister_engine::seed(_Sseq&))
55 (subtract_with_carry_engine::seed(_Sseq&)): Change return types to
56 match declarations.
57 * include/ext/random (simd_fast_mersenne_twister_engine): Use
58 __is_seed_seq to constrain function templates taking seed sequences.
59 * include/ext/random.tcc (simd_fast_mersenne_twister_engine::seed):
60 Change return type to match declaration.
61 * testsuite/26_numerics/random/discard_block_engine/cons/seed_seq2.cc:
62 New.
63 * testsuite/26_numerics/random/independent_bits_engine/cons/
64 seed_seq2.cc: New.
65 * testsuite/26_numerics/random/linear_congruential_engine/cons/
66 seed_seq2.cc: New.
67 * testsuite/26_numerics/random/mersenne_twister_engine/cons/
68 seed_seq2.cc: New.
69 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.
70 * testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq2.cc:
71 New.
72 * testsuite/26_numerics/random/subtract_with_carry_engine/cons/
73 seed_seq2.cc: New.
74 * testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/
75 seed_seq2.cc: New.
76
77 PR libstdc++/83891
78 * include/bits/fs_path.h (path::is_absolute()): Use same definition
79 for all operating systems.
80 * include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
81 * testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
82 * testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
83 * testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
84
85 * testsuite/27_io/filesystem/path/decompose/extension.cc: Remove
86 unused <vector> header.
87 * testsuite/27_io/filesystem/path/query/empty.cc: Likewise.
88 * testsuite/27_io/filesystem/path/query/has_extension.cc: Likewise.
89 * testsuite/27_io/filesystem/path/query/has_filename.cc: Likewise.
90 * testsuite/27_io/filesystem/path/query/has_parent_path.cc: Likewise.
91 * testsuite/27_io/filesystem/path/query/has_relative_path.cc:
92 Likewise.
93 * testsuite/27_io/filesystem/path/query/has_root_directory.cc:
94 Likewise.
95 * testsuite/27_io/filesystem/path/query/has_root_name.cc: Likewise.
96 * testsuite/27_io/filesystem/path/query/has_root_path.cc: Likewise.
97 * testsuite/27_io/filesystem/path/query/has_stem.cc: Likewise.
98 * testsuite/27_io/filesystem/path/query/is_relative.cc: Likewise.
99 * testsuite/experimental/filesystem/path/decompose/extension.cc:
100 Likewise.
101 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
102 * testsuite/experimental/filesystem/path/query/has_extension.cc:
103 Likewise.
104 * testsuite/experimental/filesystem/path/query/has_filename.cc:
105 Likewise.
106 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
107 Likewise.
108 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
109 Likewise.
110 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
111 Likewise.
112 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
113 Likewise.
114 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
115 Likewise.
116 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
117 * testsuite/experimental/filesystem/path/query/is_relative.cc:
118 Likewise.
119
120 PR libstdc++/84159
121 * include/bits/fs_path.h (path::operator/=, path::append): Construct
122 temporary path before calling _M_append.
123 (path::_M_append): Change parameter to path and implement C++17
124 semantics.
125 * testsuite/27_io/filesystem/path/append/path.cc: Add helper function
126 and more examples from the standard.
127 * testsuite/27_io/filesystem/path/append/source.cc: New.
128 * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment.
129 * testsuite/27_io/filesystem/path/nonmember/append.cc: New.
130
131 * include/std/variant (__gen_vtable_impl::__visit_invoke): Qualify
132 __invoke to prevent ADL.
133
134 2018-05-14 Jonathan Wakely <jwakely@redhat.com>
135
136 PR libstdc++/81256
137 * include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
138 exceptions from _M_terminate_output().
139 * include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
140 exceptions from close().
141 * testsuite/27_io/basic_filebuf/close/81256.cc: New.
142
143 * include/bits/valarray_array.h (__valarray_get_memory): Remove.
144 (__valarray_get_storage): Call operator new directly. Remove ignored
145 top-level restrict qualifier and add malloc attribute instead.
146 (_Array<_Tp>::_Array(size_t)): Remove unused constructor.
147
148 PR libstdc++/67554
149 * include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
150 (_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.
151
152 PR libstdc++/82966
153 * include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
154 instead of type.
155 * testsuite/23_containers/set/modifiers/node_swap.cc: New.
156
157 2018-05-13 Ville Voutilainen <ville.voutilainen@gmail.com>
158
159 PR libstdc++/80165
160 * testsuite/20_util/variant/80165.cc: New.
161
162 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
163
164 * doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
165 * doc/xml/manual/debug_mode.xml: Add array and forward_list to list
166 of C++11 containers with Debug Mode support.
167 * doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
168 * doc/html/*: Regenerate.
169
170 2018-05-10 Jason Merrill <jason@redhat.com>
171
172 * include/bits/regex_compiler.h (_S_cache_size): Change from
173 function to variable.
174
175 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net>
176
177 PR libstdc++/83140 - assoc_legendre returns negated value when m is odd
178 * include/tr1/legendre_function.tcc (__assoc_legendre_p): Add __phase
179 argument defaulted to +1. Doxy comments on same.
180 * testsuite/special_functions/02_assoc_legendre/
181 check_value.cc: Regen.
182 * testsuite/tr1/5_numerical_facilities/special_functions/
183 02_assoc_legendre/check_value.cc: Regen.
184
185 2018-05-10 Jonathan Wakely <jwakely@redhat.com>
186
187 PR libstdc++/85729
188 * include/bits/c++config.h (__replacement_assert): Add linkage
189 specification.
190 * include/bits/std_abs.h: Add comment to closing brace of block.
191 * include/c_global/cstddef: Add linkage specification.
192 * include/c_global/cstring: Likewise.
193 * include/c_global/cwchar: Likewise.
194
195 2018-05-09 François Dumont <fdumont@gcc.gnu.org>
196
197 * include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
198 Rename in...
199 (_Safe_iterator<>::_S_constant()): ...that.
200 * include/debug/safe_local_iterator.h
201 (_Safe_local_iterator<>::_M_constant()): Rename in...
202 (_Safe_local_iterator<>::_S_constant()): ...that.
203 * include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
204 (_Iterator_state::__rbegin): New.
205 (_Iterator_state::__rmiddle): New.
206 (_Iterator_state::__rend): New.
207 (_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
208 _Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
209 iterator type.
210 (_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
211 _Is_iterator)): Likewise.
212 (_Parameter::_S_reverse_state(_Iterator_state)): New.
213 (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
214 _Is_iterator)): New.
215 (_Parameter(std::reverse_iterator<> const&, const char*,
216 _Is_iterator)): New.
217 (_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
218 const char*, _Is_iterator)): New.
219 (_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
220 New.
221 (_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
222 _Is_iterator)): New.
223 * testsuite/24_iterators/move_iterator/debug_neg.cc: New.
224 * testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
225 * testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.
226
227 2018-05-09 Jonathan Wakely <jwakely@redhat.com>
228
229 * include/bits/std_function.h (_Base_manager::_M_get_pointer):
230 Use constexpr if in C++17 mode.
231 (_Base_manager::_M_clone(_Any_data&, const _Any_data&, true_type)):
232 Copy from const object.
233 * testsuite/20_util/function/cons/non_copyconstructible.cc: New.
234
235 2018-05-08 François Dumont <fdumont@gcc.gnu.org>
236
237 * src/c++11/debug.cc [_GLIBCXX_HAVE_EXECINFO_H]: Include execinfo.h.
238 [_GLIBCXX_HAVE_EXECINFO_H](_Error_formatter::_M_error): Render
239 backtrace.
240
241 * include/debug/macros.h (__glibcxx_check_valid_range_at): New.
242 * include/debug/functions.h (__check_valid_range): Use latter.
243 * include/debug/macros.h (__glibcxx_check_valid_constructor_range): New,
244 use latter.
245 * include/debug/deque
246 (deque::deque<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
247 * include/debug/forward_list
248 (forward_list::forward_list<_Iter>(_Iter, _Iter, const _Alloc&)):
249 Likewise.
250 * include/debug/list
251 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
252 * include/debug/list
253 (list::list<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
254 * include/debug/map.h
255 (map::map<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
256 (map::map<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
257 Likewise.
258 * include/debug/multimap.h
259 (multimap::multimap<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
260 (multimap::multimap<_Iter>(_Iter, _Iter, const _Compare&,
261 const _Alloc&)): Likewise.
262 * include/debug/set.h
263 (set::set<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
264 (set::set<_Iter>(_Iter, _Iter, const _Compare&, const _Alloc&)):
265 Likewise.
266 * include/debug/multiset.h
267 (multiset::multiset<_Iter>(_Iter, _Iter, const _Alloc&)): Likewise.
268 (multiset::multiset<_Iter>(_Iter, _Iter, const _Compare&,
269 const _Alloc&)): Likewise.
270 * include/debug/string
271 (basic_string::basic_string<_Iter>(_Iter, _Iter, const _Alloc&)):
272 Likewise.
273 * include/debug/unordered_map
274 (unordered_map::unordered_map<_Iter>(_Iter, _Iter, const _Alloc&)):
275 Likewise.
276 (unordered_multimap::unordered_multimap<_Iter>(_Iter, _Iter,
277 const _Alloc&)): Likewise.
278 * include/debug/unordered_set
279 (unordered_set::unordered_set<_Iter>(_Iter, _Iter, const _Alloc&)):
280 Likewise.
281 (unordered_multiset::unordered_multiset<_Iter>(_Iter, _Iter,
282 const _Alloc&)): Likewise.
283 * include/debug/vector
284 (vector::vector<_Iter>(_Iter, _Iter, const _Alloc&)): Use latter.
285
286 * include/debug/formatter.h (_Error_formatter::_M_function): New.
287 (_Error_formatter(const char*, unsigned int)): Adapt.
288 (_Error_formatter::_M_at): Rename in...
289 (_Error_formatter::_S_at): ...that and adapt.
290 * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
291 (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
292 * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
293 when available.
294
295 2018-05-08 Jonathan Wakely <jwakely@redhat.com>
296
297 * include/bits/regex_automaton.h (_NFA_base::_M_paren_stack, _NFA):
298 Use normal std::vector even in Debug Mode.
299
300 PR libstdc++/85672
301 * include/Makefile.am [!ENABLE_FLOAT128]: Change c++config.h entry
302 to #undef _GLIBCXX_USE_FLOAT128 instead of defining it to zero.
303 * include/Makefile.in: Regenerate.
304 * include/bits/c++config (_GLIBCXX_USE_FLOAT128): Move definition
305 within conditional block.
306
307 2018-05-07 Jonathan Wakely <jwakely@redhat.com>
308
309 * doc/xml/manual/using.xml (table.cmd_options): Document that the
310 C++17 Filesystem implementation also needs -lstdc++fs.
311
312 PR libstdc++/85671
313 * include/bits/fs_path.h (operator/): Permit copy elision.
314 * include/experimental/bits/fs_path.h (operator/): Likewise.
315
316 2018-05-07 Edward Smith-Rowland <3dw4rd@verizon.net>
317
318 Moar PR libstdc++/80506
319 * include/bits/random.tcc (gamma_distribution::__generate_impl()):
320 Fix magic number used in loop condition.
321
322 2018-05-04 Jonathan Wakely <jwakely@redhat.com>
323
324 PR libstdc++/85642 fix is_nothrow_default_constructible<optional<T>>
325 * include/std/optional (_Optional_payload): Add noexcept to default
326 constructor. Re-indent.
327 (_Optional_payload<_Tp, true, true, true>): Likewise. Add noexcept to
328 constructor for copying disengaged payloads.
329 (_Optional_payload<_Tp, true, false, true>): Likewise.
330 (_Optional_payload<_Tp, true, true, false>): Likewise.
331 (_Optional_payload<_Tp, true, false, false>): Likewise.
332 * testsuite/20_util/optional/cons/85642.cc: New.
333 * testsuite/20_util/optional/cons/value_neg.cc: Adjust dg-error lines.
334
335 2018-05-03 Jonathan Wakely <jwakely@redhat.com>
336
337 PR libstdc++/82644
338 * include/tr1/cmath [__STRICT_ANSI__] (hypergf, hypergl, hyperg): Use
339 inline definitions instead of using-declarations.
340 [__STRICT_ANSI__] (conf_hypergf, conf_hypergl, conf_hyperg): Likewise.
341 * testsuite/tr1/5_numerical_facilities/special_functions/
342 07_conf_hyperg/compile_cxx17.cc: New.
343 * testsuite/tr1/5_numerical_facilities/special_functions/
344 17_hyperg/compile_cxx17.cc: New.
345
346 PR libstdc++/84769
347 * include/std/variant (visit): Qualify std::get call.
348
349 PR libstdc++/85632 use uintmax_t for arithmetic
350 * src/filesystem/ops.cc (experimental::filesystem::space): Perform
351 arithmetic in result type.
352 * src/filesystem/std-ops.cc (filesystem::space): Likewise.
353 * testsuite/27_io/filesystem/operations/space.cc: Check total capacity
354 is greater than free space.
355 * testsuite/experimental/filesystem/operations/space.cc: New.
356
357 * testsuite/20_util/remove_cvref/requirements/alias_decl.cc: New.
358 * testsuite/20_util/remove_cvref/requirements/explicit_instantiation.cc:
359 New.
360 * testsuite/20_util/remove_cvref/value.cc: New.
361 * testsuite/20_util/remove_cvref/value_ext.cc: New.
362
363 PR libstdc++/84087 LWG DR 2268 basic_string default arguments
364 * include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
365 (append(const basic_string&, size_type, size_type)
366 (assign(const basic_string&, size_type, size_type)
367 (insert(size_type, const basic_string&, size_type, size_type)
368 (replace(size_type,size_type,const basic_string&,size_type,size_type)
369 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
370 Add default arguments (LWG 2268).
371 [_GLIBCXX_USE_CXX11_ABI=0]
372 (append(const basic_string&, size_type, size_type)
373 (assign(const basic_string&, size_type, size_type)
374 (insert(size_type, const basic_string&, size_type, size_type)
375 (replace(size_type,size_type,const basic_string&,size_type,size_type)
376 (compare(size_type,size_type,constbasic_string&,size_type,size_type)):
377 Likewise.
378 * testsuite/21_strings/basic_string/dr2268.cc: New test.
379
380 PR libstdc++/84535
381 * include/std/thread (thread::__not_same): New SFINAE helper.
382 (thread::thread(_Callable&&, _Args&&...)): Add SFINAE constraint that
383 first argument is not a std::thread. Add static assertion to check
384 INVOKE expression is valid.
385 (thread::thread(thread&), thread::thread(const thread&&)): Remove.
386 (thread::_Invoke::_M_invoke, thread::_Invoke::operator()): Use
387 __invoke_result for return types and remove exception specifications.
388 * testsuite/30_threads/thread/cons/84535.cc: New.
389
390 * include/std/future (__async_result_of): Use __invoke_result instead
391 of result_of.
392
393 * include/std/any (any_cast): Use __remove_cvref_t.
394 * include/std/tuple (__make_tuple): Likewise.
395 * include/std/type_traits (__remove_cvref_t): Define.
396 (__result_of_memobj, __result_of_memfun): Use __remove_cvref_t.
397 [__cplusplus > 201703L] (remove_cvref, remove_cvref_t): Define.
398 * include/std/variant (__erased_hash): Use __remove_cvref_t.
399
400 2018-05-02 François Dumont <fdumont@gcc.gnu.org>
401
402 * include/bits/deque.tcc (deque<>::_M_assign_aux): Cast to void to
403 ensure overloaded comma not used.
404 * include/bits/list.tcc (list<>::_M_assign_dispatch): Likewise.
405 * include/bits/vector.tcc (vector<>::_M_assign_aux): Likewise.
406 * include/bits/stl_bvector.h (vector<bool>::_M_assign_aux): Likewise.
407 * testsuite/23_containers/deque/modifiers/assign/1.cc: New.
408 * testsuite/23_containers/list/modifiers/assign/1.cc: New.
409 * testsuite/23_containers/vector/bool/modifiers/assign/1.cc: New.
410 * testsuite/23_containers/vector/modifiers/assign/1.cc: New.
411
412 2018-05-02 Jonathan Wakely <jwakely@redhat.com>
413
414 PR libstdc++/68197
415 * include/bits/ios_base.h (ios_base::iword, ios_base::pword): Cast
416 indices to unsigned.
417 * src/c++11/ios.cc (ios_base::_M_grow_words): Treat negative indices
418 as failure. Refactor error handling.
419 * testsuite/27_io/ios_base/storage/68197.cc: New.
420
421 PR libstdc++/57997
422 PR libstdc++/83860
423 * include/bits/gslice_array.h (gslice_array): Define default
424 constructor as deleted, as per C++11 standard.
425 * include/bits/mask_array.h (mask_array): Likewise.
426 * include/bits/slice_array.h (slice_array): Likewise.
427 * include/bits/valarray_after.h (_GBase, _GClos, _IBase, _IClos): Move
428 to namespace __detail.
429 (_GBase::_M_expr, _IBase::_M_expr): Use _ValArrayRef for type of data
430 members.
431 * include/bits/valarray_before.h (_ValArrayRef): New helper for type
432 of data members in closure objects.
433 (_FunBase, _ValFunClos, _RefFunClos, _UnBase, _UnClos, _BinBase)
434 (_BinBase2, _BinBase1, _BinClos, _SBase, _SClos): Move to namespace
435 __detail.
436 (_FunBase::_M_expr, _UnBase::_M_expr, _BinBase::_M_expr1)
437 (_BinBase::_M_expr2, _BinBase2::_M_expr1, _BinBase1::_M_expr2)
438 (_SBase::_M_expr): Use _ValArrayRef for type of data members.
439 * include/std/valarray (_UnClos, _BinClos, _SClos, _GClos, _IClos)
440 (_ValFunClos, _RefFunClos): Move to namespace __detail and add
441 using-declarations to namespace std.
442 * testsuite/26_numerics/valarray/83860.cc: New.
443
444 * testsuite/backward/strstream_move.cc: Remove duplicate function
445 call.
446
447 PR libstdc++/69608
448 * include/backward/strstream (strstreambuf): Define move constructor
449 and move assignment operator.
450 (istrstream, ostrstream, strstream): Likewise.
451 * testsuite/backward/strstream_move.cc: New.
452
453 2018-05-01 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
454
455 PR libstdc++/84654
456 * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
457 * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
458 * configure: Regenerate.
459 * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
460 based on ENABLE_FLOAT128.
461 * include/Makefile.in: Regenerate.
462 * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
463 [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
464 _GLIBCXX_USE_FLOAT128.
465
466 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
467
468 * configure: Regenerated.
469
470 2018-04-19 Jakub Jelinek <jakub@redhat.com>
471
472 * configure: Regenerated.
473
474 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
475 Jakub Jelinek <jakub@redhat.com>
476
477 PR libstdc++/85442
478 * src/c++11/Makefile.am: Don't generate debuginfo again for
479 cxx11-ios_failure-lt.s and cxx11-ios_failure.s files.
480 * src/c++11/Makefile.in: Regenerate.
481
482 2018-04-18 Jonathan Wakely <jwakely@redhat.com>
483
484 PR libstdc++/84442
485 * testsuite/30_threads/thread/cons/terminate.cc
486 [!_GLIBCXX_USE_C99_STDLIB] : Use _exit or std::exit instead of _Exit.
487
488 2018-04-18 David Malcolm <dmalcolm@redhat.com>
489
490 PR jit/85384
491 * configure: Regenerate.
492
493 2018-04-16 Jonathan Wakely <jwakely@redhat.com>
494
495 * testsuite/experimental/filesystem/file_status/1.cc: Add
496 -DUSE_FILESYSTEM_TS to dg-options.
497 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
498 Likewise.
499 * testsuite/experimental/filesystem/iterators/pop.cc: Likewise.
500 * testsuite/experimental/filesystem/iterators/
501 recursive_directory_iterator.cc: Likewise.
502 * testsuite/experimental/filesystem/operations/absolute.cc: Likewise.
503 * testsuite/experimental/filesystem/operations/canonical.cc: Likewise.
504 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
505 * testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
506 * testsuite/experimental/filesystem/operations/create_directories.cc:
507 Likewise.
508 * testsuite/experimental/filesystem/operations/create_directory.cc:
509 Likewise.
510 * testsuite/experimental/filesystem/operations/create_symlink.cc:
511 Likewise.
512 * testsuite/experimental/filesystem/operations/current_path.cc:
513 Likewise.
514 * testsuite/experimental/filesystem/operations/equivalent.cc: Likewise.
515 * testsuite/experimental/filesystem/operations/exists.cc: Likewise.
516 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
517 * testsuite/experimental/filesystem/operations/is_empty.cc: Likewise.
518 * testsuite/experimental/filesystem/operations/last_write_time.cc:
519 Likewise.
520 * testsuite/experimental/filesystem/operations/permissions.cc:
521 Likewise.
522 * testsuite/experimental/filesystem/operations/read_symlink.cc:
523 Likewise.
524 * testsuite/experimental/filesystem/operations/remove.cc: Likewise.
525 * testsuite/experimental/filesystem/operations/remove_all.cc: Likewise.
526 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
527 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
528 Likewise.
529 * testsuite/experimental/filesystem/path/append/path.cc: Likewise.
530 * testsuite/experimental/filesystem/path/assign/assign.cc: Likewise.
531 * testsuite/experimental/filesystem/path/assign/copy.cc: Likewise.
532 * testsuite/experimental/filesystem/path/compare/compare.cc: Likewise.
533 * testsuite/experimental/filesystem/path/compare/path.cc: Likewise.
534 * testsuite/experimental/filesystem/path/compare/strings.cc: Likewise.
535 * testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
536 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
537 * testsuite/experimental/filesystem/path/construct/copy.cc: Likewise.
538 * testsuite/experimental/filesystem/path/construct/default.cc:
539 Likewise.
540 * testsuite/experimental/filesystem/path/construct/locale.cc: Likewise.
541 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
542 * testsuite/experimental/filesystem/path/construct/string_view.cc:
543 Likewise.
544 * testsuite/experimental/filesystem/path/decompose/extension.cc:
545 Likewise.
546 * testsuite/experimental/filesystem/path/decompose/filename.cc:
547 Likewise.
548 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
549 Likewise.
550 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
551 Likewise.
552 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
553 Likewise.
554 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
555 Likewise.
556 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
557 Likewise.
558 * testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
559 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
560 Likewise.
561 * testsuite/experimental/filesystem/path/itr/traversal.cc: Likewise.
562 * testsuite/experimental/filesystem/path/modifiers/clear.cc: Likewise.
563 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
564 Likewise.
565 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
566 Likewise.
567 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
568 Likewise.
569 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
570 Likewise.
571 * testsuite/experimental/filesystem/path/modifiers/swap.cc: Likewise.
572 * testsuite/experimental/filesystem/path/native/string.cc: Likewise.
573 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc:
574 Likewise.
575 * testsuite/experimental/filesystem/path/query/empty.cc: Likewise.
576 * testsuite/experimental/filesystem/path/query/has_extension.cc:
577 Likewise.
578 * testsuite/experimental/filesystem/path/query/has_filename.cc:
579 Likewise.
580 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
581 Likewise.
582 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
583 Likewise.
584 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
585 Likewise.
586 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
587 Likewise.
588 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
589 Likewise.
590 * testsuite/experimental/filesystem/path/query/has_stem.cc: Likewise.
591 * testsuite/experimental/filesystem/path/query/is_relative.cc:
592 Likewise.
593
594 2018-04-13 Jonathan Wakely <jwakely@redhat.com>
595
596 * src/c++11/Makefile.am: Fix sed command.
597 * src/c++11/Makefile.in: Regenerate.
598
599 * src/c++11/Makefile.am: Rewrite sed rule to be less fragile and to
600 handle mangled names starting with double underscores on darwin.
601 * src/c++11/Makefile.in: Regenerate.
602
603 2018-04-12 Jonathan Wakely <jwakely@redhat.com>
604
605 * src/c++11/Makefile.am: Fix comment.
606 * src/c++11/Makefile.in: Regenerate.
607 * src/c++11/cxx11-ios_failure.cc: Fix comment.
608 * src/c++98/ios_failure.cc: Likewise.
609
610 * src/c++11/ios.cc: Remove redundant macro definition.
611
612 2018-04-11 Jonathan Wakely <jwakely@redhat.com>
613
614 * doc/xml/manual/abi.xml: Document header locations in recent
615 releases.
616 * doc/xml/manual/evolution.xml: Add API changes since GCC 5.
617 * doc/xml/manual/spine.xml: Update copyright years.
618 * doc/xml/manual/strings.xml: Adjust tolower example to avoid
619 undefined behaviour.
620 * doc/xml/manual/test.xml: Update outdated notes on VERIFY in tests.
621 * doc/html/*: Regenerate.
622
623 2018-04-10 Jonathan Wakely <jwakely@redhat.com>
624
625 * doc/xml/faq.xml: Update links to archived copy of SGI STL docs.
626 * doc/xml/manual/backwards_compatibility.xml: Likewise.
627 * doc/xml/manual/containers.xml: Likewise.
628 * doc/xml/manual/debug_mode.xml: Likewise.
629 * doc/xml/manual/extensions.xml: Likewise.
630 * doc/xml/manual/policy_data_structures_biblio.xml: Likewise.
631 * doc/xml/manual/using.xml: Likewise.
632 * doc/xml/manual/utilities.xml: Likewise.
633
634 PR libstdc++/85222
635 * src/c++11/Makefile.am [ENABLE_DUAL_ABI]: Add special rules for
636 cxx11-ios_failure.cc to rewrite type info for __ios_failure.
637 * src/c++11/Makefile.in: Regenerate.
638 * src/c++11/cxx11-ios_failure.cc (__ios_failure, __iosfail_type_info):
639 New types.
640 [_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
641 * src/c++11/ios.cc (__throw_ios_failure): Remove definition.
642 * src/c++98/ios_failure.cc (__construct_ios_failure)
643 (__destroy_ios_failure, is_ios_failure_handler): New functions.
644 [!_GLIBCXX_USE_DUAL_ABI] (__throw_ios_failure): Define here.
645 * testsuite/27_io/ios_base/failure/dual_abi.cc: New.
646 * testsuite/27_io/basic_ios/copyfmt/char/1.cc: Revert changes to
647 handler types, to always catch std::ios_base::failure.
648 * testsuite/27_io/basic_ios/exceptions/char/1.cc: Likewise.
649 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
650 exceptions_failbit.cc: Likewise.
651 * testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/
652 exceptions_failbit.cc: Likewise.
653 * testsuite/27_io/basic_istream/extractors_other/char/
654 exceptions_null.cc: Likewise.
655 * testsuite/27_io/basic_istream/extractors_other/wchar_t/
656 exceptions_null.cc: Likewise.
657 * testsuite/27_io/basic_istream/sentry/char/12297.cc: Likewise.
658 * testsuite/27_io/basic_istream/sentry/wchar_t/12297.cc: Likewise.
659 * testsuite/27_io/basic_ostream/inserters_other/char/
660 exceptions_null.cc: Likewise.
661 * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
662 exceptions_null.cc: Likewise.
663 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
664
665 2018-04-05 Jonathan Wakely <jwakely@redhat.com>
666
667 * include/std/variant (_VARIANT_RELATION_FUNCTION_TEMPLATE): Qualify
668 __get calls to avoid ADL and avoid ambiguity due to Clang bug.
669
670 2018-04-03 Jonathan Wakely <jwakely@redhat.com>
671
672 PR libstdc++/85183
673 * include/std/variant (_Move_assign_base::operator=): Fix incorrect
674 value categories.
675 * testsuite/20_util/variant/85183.cc: New.
676
677 2018-03-26 Jonathan Wakely <jwakely@redhat.com>
678
679 * include/std/variant (__get): Qualify calls to avoid ADL.
680 (__select_index): Adjust whitespace.
681 (variant): Add using-declaration to workaround Clang bug.
682
683 2018-03-22 Jonathan Wakely <jwakely@redhat.com>
684
685 PR libstdc++/85040
686 * include/bits/stl_function.h (greater::__not_overloaded)
687 (less::__not_overloaded, greater_equal::__not_overloaded)
688 (less_equal::__not_overloaded): Fix ambiguous specializations.
689 * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
690 tests for type with overloaded operators.
691
692 2018-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
693
694 PR libstdc++/77691
695 * testsuite/experimental/memory_resource/resource_adaptor.cc:
696 xfail execution on 32-bit Solaris/x86.
697
698 2018-03-21 Jonathan Wakely <jwakely@redhat.com>
699
700 * testsuite/20_util/function_objects/comparisons_pointer.cc: Use
701 VERIFY instead of assert.
702 * testsuite/20_util/hash/84998.cc: New test.
703 * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: New
704 copy of test adjusted for Debug Mode.
705 * testsuite/23_containers/vector/cons/destructible_neg.cc: Do not run
706 test in Debug Mode.
707
708 2018-03-20 François Dumont <fdumont@gcc.gnu.org>
709
710 PR libstdc++/84998
711 * include/bits/stl_bvector.h: Fix std::hash friend declaration.
712 * include/std/bitset: Likewise.
713 * include/bits/stl_map.h (std::map<>): Fix _Rb_tree_merge_helper friend
714 declaration.
715 * include/bits/stl_multimap.h (std::multimap<>): Likewise.
716 * include/bits/stl_multiset.h (std::multiset<>): Likewise.
717 * include/bits/stl_set.h (std::set<>): Likewise.
718 * include/bits/unordered_map.h (std::unordered_map<>): Fix
719 _Hash_merge_helper friend declaration.
720 (std::unordered_multimap<>): Likewise.
721 * include/bits/unordered_set.h (std::unordered_set<>): Likewise.
722 (std::unordered_multiset<>): Likewise.
723
724 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
725
726 * doc/xml/api.xml: www.fsf.org has moved to https. Also omit
727 trailing slash for domain level link.
728 * doc/xml/faq.xml: Ditto.
729 * doc/xml/manual/appendix_free.xml (software): Ditto.
730 * doc/xml/manual/intro.xml: Ditto.
731 * doc/xml/manual/spine.xml: Ditto.
732 * doc/xml/spine.xml: Ditto.
733
734 2018-03-19 Gerald Pfeifer <gerald@pfeifer.com>
735
736 * doc/xml/manual/documentation_hacking.xml: Adjust link to
737 docbook.org.
738
739 2018-03-17 Jonathan Wakely <jwakely@redhat.com>
740
741 * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
742 to compile as C++98.
743
744 2018-03-14 Jonathan Wakely <jwakely@redhat.com>
745
746 PR libstdc++/78420
747 * include/bits/stl_function.h (greater<_Tp*>, less<_Tp*>)
748 (greater_equal<_Tp*>, less_equal<_Tp>*): Add partial specializations
749 to ensure total order for pointers.
750 (greater<void>, less<void>, greater_equal<void>, less_equal<void>):
751 Add operator() overloads for pointer arguments and make generic
752 overloads dispatch to new _S_cmp functions when comparisons would
753 use built-in operators for pointers.
754 * testsuite/20_util/function_objects/comparisons_pointer.cc: New.
755
756 2018-03-12 Jonathan Wakely <jwakely@redhat.com>
757
758 PR libstdc++/84773
759 PR libstdc++/83662
760 * crossconfig.m4: Check for aligned_alloc etc. on freebsd and mingw32.
761 * configure: Regenerate.
762 * include/c_global/cstdlib [_GLIBCXX_HAVE_ALIGNED_ALLOC]
763 (aligned_alloc): Add using-declaration.
764 * testsuite/18_support/aligned_alloc/aligned_alloc.cc: New test.
765
766 2018-03-09 François Dumont <fdumont@gcc.gnu.org>
767
768 * python/libstdcxx/v6/printers.py (build_libstdcxx_dictionary):
769 Fix std::_Fwd_list_iterator and std::_Fwd_list_const_iterator printers
770 registration.
771
772 2018-03-09 Jonathan Wakely <jwakely@redhat.com>
773
774 PR libstdc++/84769
775 * include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
776 Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
777
778 src/filesystem/ops.cc (create_dir): Pass error_code to is_directory.
779 src/filesystem/std-ops.cc (create_dir): Likewise.
780
781 2018-03-08 François Dumont <fdumont@gcc.gnu.org>
782
783 * python/libstdcxx/v6/printers.py (NodeIteratorPrinter): New.
784 (StdListIteratorPrinter): Inherit from latter.
785 (StdFwdListIteratorPrinter): New, inherit from latter.
786 (StdDebugIteratorPrinter.to_string): Use non-debug iterator printer
787 when iterator has no associated container.
788 (build_libstdcxx_dictionary): Add __gnu_cxx::_Fwd_list_iterator and
789 __gnu_cxx::_Fwd_list_const_iterator printers. Remove __norm namespace
790 registrations.
791 * testsuite/libstdc++-prettyprinters/debug.cc: Adapt.
792 * testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Adapt.
793
794 2018-03-06 Ville Voutilainen <ville.voutilainen@gmail.com>
795
796 PR libstdc++/84601
797 * include/std/optional (_Optional_payload): Split into multiple
798 specializations that can handle different cases of trivial or
799 non-trivial assignment operators.
800 * testsuite/20_util/optional/84601.cc: New.
801 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
802
803 2018-03-02 Jonathan Wakely <jwakely@redhat.com>
804
805 PR libstdc++/84671
806 * include/bits/parse_numbers.h (_Number_help): Add partial
807 specialization to handle digit separators. Adjust partial
808 specialization for recursion temrination to require _Pow == 1ULL.
809 * testsuite/20_util/duration/literals/84671.cc: New
810
811 2018-02-27 Ville Voutilainen <ville.voutilainen@gmail.com>
812
813 Implement the missing bits of LWG 2769
814 * include/std/any (any_cast(const any&)): Add static_assert.
815 (any_cast(any&)): Likewise.
816 (any_cast(any&&)): Likewise, and remove the handling
817 for copyable-but-not-movable type.
818 * testsuite/20_util/any/misc/any_cast.cc: Adjust.
819 * testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
820 add new tests.
821
822 2018-02-23 Jonathan Wakely <jwakely@redhat.com>
823
824 PR libstdc++/84532
825 * include/std/thread (thread::__make_invoker): Construct tuple
826 directly instead of using make_tuple.
827 * testsuite/30_threads/async/84532.cc: New.
828 * testsuite/30_threads/thread/84532.cc: New.
829
830 2018-02-20 François Dumont <fdumont@gcc.gnu.org>
831
832 * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION]
833 (template<> __aligned_buffer): Define as __aligned_membuf alias.
834
835 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
836
837 PR target/84148
838 * configure: Regenerate.
839
840 2018-02-15 Jonathan Wakely <jwakely@redhat.com>
841
842 PR libstdc++/81797
843 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
844 * configure: Regenerate.
845 * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
846 defined.
847 * include/Makefile.in: Regenerate.
848
849 2018-01-29 Jonathan Wakely <jwakely@redhat.com>
850
851 PR libstdc++/83833
852 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc:
853 Add -ffloat-store to options for m68k and ia32.
854
855 * doc/xml/faq.xml: Update copyright years.
856 * doc/html/*: Regenerate.
857
858 PR libstdc++/83658
859 * include/std/any (any::__do_emplace): Only set _M_manager after
860 constructing the contained object.
861 * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust dg-error line.
862 * testsuite/20_util/any/modifiers/83658.cc: New test.
863
864 2018-01-25 Jonathan Wakely <jwakely@redhat.com>
865
866 PR libstdc++/81076
867 * include/c_global/cstddef (__byte_operand): Define primary template.
868 * testsuite/18_support/byte/81076.cc: New test.
869
870 2018-01-19 Christophe Lyon <christophe.lyon@linaro.org>
871
872 * testsuite/ext/special_functions/airy_ai/check_nan.cc: Fix
873 dg-options and dg-add-options order.
874 * testsuite/ext/special_functions/airy_bi/check_nan.cc: Likewise.
875 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc:
876 Likewise.
877 * testsuite/ext/special_functions/hyperg/check_nan.cc: Likewise.
878 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc:
879 Likewise.
880 * testsuite/special_functions/02_assoc_legendre/check_nan.cc:
881 Likewise.
882 * testsuite/special_functions/03_beta/check_nan.cc: Likewise.
883 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc:
884 Likewise.
885 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc:
886 Likewise.
887 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc:
888 Likewise.
889 * testsuite/special_functions/06_comp_ellint_3/pr66689.cc:
890 Likewise.
891 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc:
892 Likewise.
893 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc:
894 Likewise.
895 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc:
896 Likewise.
897 * testsuite/special_functions/10_cyl_neumann/check_nan.cc:
898 Likewise.
899 * testsuite/special_functions/11_ellint_1/check_nan.cc: Likewise.
900 * testsuite/special_functions/12_ellint_2/check_nan.cc: Likewise.
901 * testsuite/special_functions/13_ellint_3/check_nan.cc: Likewise.
902 * testsuite/special_functions/13_ellint_3/pr66689.cc: Likewise.
903 * testsuite/special_functions/14_expint/check_nan.cc: Likewise.
904 * testsuite/special_functions/15_hermite/check_nan.cc: Likewise.
905 * testsuite/special_functions/16_laguerre/check_nan.cc: Likewise.
906 * testsuite/special_functions/17_legendre/check_nan.cc: Likewise.
907 * testsuite/special_functions/18_riemann_zeta/check_nan.cc:
908 Likewise.
909 * testsuite/special_functions/19_sph_bessel/check_nan.cc:
910 Likewise.
911 * testsuite/special_functions/20_sph_legendre/check_nan.cc:
912 Likewise.
913 * testsuite/special_functions/21_sph_neumann/check_nan.cc:
914 Likewise.
915
916 2018-01-18 Uros Bizjak <ubizjak@gmail.com>
917
918 * configure.ac (AC_CHECK_HEADERS): Add linux/types.h. Conditionally
919 include linux/types.h when checking linux/random.h header.
920 * config.h.in: Regenerate.
921 * configure: Ditto.
922 * src/c++11/random.cc: Conditionally include linux/types.h.
923
924 2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
925
926 * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.
927
928 2018-01-16 Jonathan Wakely <jwakely@redhat.com>
929
930 PR libstdc++/83834
931 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
932 pattern with exact match for std::cerr.
933
934 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
935
936 PR libstdc++/83833
937 * include/bits/random.h (chi_squared_distribution::param): Update
938 gamma distribution parameter.
939 * testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
940 test.
941
942 PR libstdc++/83830
943 * include/std/type_traits (has_unique_object_representations_v): Add
944 variable template.
945 * testsuite/20_util/has_unique_object_representations/value.cc: Check
946 variable template.
947
948 2018-01-15 Ville Voutilainen <ville.voutilainen@gmail.com>
949
950 Make optional conditionally
951 trivially_{copy,move}_{constructible,assignable}
952 * include/std/optional (_Optional_payload): Fix the comment in
953 the class head and turn into a primary and one specialization.
954 (_Optional_payload::_M_engaged): Strike the NSDMI.
955 (_Optional_payload<_Tp, false>::operator=(const _Optional_payload&)):
956 New.
957 (_Optional_payload<_Tp, false>::operator=(_Optional_payload&&)):
958 Likewise.
959 (_Optional_payload<_Tp, false>::_M_get): Likewise.
960 (_Optional_payload<_Tp, false>::_M_reset): Likewise.
961 (_Optional_base_impl): Likewise.
962 (_Optional_base): Turn into a primary and three specializations.
963 (optional(nullopt)): Change the base init.
964 * testsuite/20_util/optional/assignment/8.cc: New.
965 * testsuite/20_util/optional/cons/trivial.cc: Likewise.
966 * testsuite/20_util/optional/cons/value_neg.cc: Adjust.
967
968 2018-01-15 Jonathan Wakely <jwakely@redhat.com>
969
970 PR libstdc++/80276
971 * python/libstdcxx/v6/printers.py (strip_inline_namespaces): New.
972 (get_template_arg_list): New.
973 (StdVariantPrinter._template_args): Remove, use get_template_arg_list
974 instead.
975 (TemplateTypePrinter): Rewrite to work with gdb.Type objects instead
976 of strings and regular expressions.
977 (add_one_template_type_printer): Adapt to new TemplateTypePrinter.
978 (FilteringTypePrinter): Add docstring. Match using startswith. Use
979 strip_inline_namespaces instead of strip_versioned_namespace.
980 (add_one_type_printer): Prepend namespace to match argument.
981 (register_type_printers): Add type printers for char16_t and char32_t
982 string types and for types using cxx11 ABI. Update calls to
983 add_one_template_type_printer to provide default argument dicts.
984 * testsuite/libstdc++-prettyprinters/80276.cc: New test.
985 * testsuite/libstdc++-prettyprinters/whatis.cc: Remove tests for
986 basic_string<unsigned char> and basic_string<signed char>.
987 * testsuite/libstdc++-prettyprinters/whatis2.cc: Duplicate whatis.cc
988 to test local variables, without overriding _GLIBCXX_USE_CXX11_ABI.
989
990 2018-01-14 Andreas Schwab <schwab@linux-m68k.org>
991
992 PR libstdc++/81092
993 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
994
995 2018-01-13 Tim Shen <timshen@google.com>
996
997 PR libstdc++/83601
998 * include/bits/regex.tcc (regex_replace): Fix escaping in sed.
999 * testsuite/28_regex/algorithms/regex_replace/char/pr83601.cc: Tests.
1000 * testsuite/28_regex/algorithms/regex_replace/wchar_t/pr83601.cc: Tests.
1001
1002 2018-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1003
1004 PR libstdc++/64054
1005 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
1006 Remove dg-xfail-run-if.
1007
1008 2018-01-10 François Dumont <fdumont@gcc.gnu.org>
1009
1010 * include/bits/forward_list.h
1011 (_Fwd_list_node_base(_Fwd_list_node_base&&)): New.
1012 (_Fwd_list_node_base& operator=(_Fwd_list_node_base&&)): New.
1013 (_Fwd_list_node_base(const _Fwd_list_node_base&)): Explicit delete.
1014 (_Fwd_list_node_base& operator=(const _Fwd_list_node_base&)): Likewise.
1015 (_Fwd_list_impl()): Add noexcept qualification.
1016 (_Fwd_list_impl(const _Node_alloc_type&)): Delete.
1017 (_Fwd_list_impl(_Fwd_list_impl&&)): New, default.
1018 (_Fwd_list_impl(_Fwd_list_impl&&, _Node_alloc_type&&)): New.
1019 (_Fwd_list_base()): Default.
1020 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&, true_type)): New.
1021 (_Fwd_list_base(_Fwd_list_base&&)): Default.
1022 (forward_list<>()): Default.
1023 (forward_list<>(forward_list&&)): Default.
1024 (forward_list(forward_list&&, _Node_alloc_type&&, false_type)): New.
1025 (forward_list(forward_list&&, _Node_alloc_type&&, true_type)): New.
1026 (forward_list(forward_list&&, const _Alloc&)): Adapt to use latters.
1027 * include/bits/forward_list.tcc
1028 (_Fwd_list_base(_Fwd_list_base&&, _Node_alloc_type&&)): Adapt to use
1029 _M_impl._M_head move assignment.
1030 (forward_list<>::merge(forward_list<>&&, _Comp)): Likewise.
1031 * testsuite/23_containers/forward_list/allocator/default_init.cc: New.
1032
1033 2018-01-09 Jonathan Wakely <jwakely@redhat.com>
1034
1035 PR libstdc++/80276
1036 * python/libstdcxx/v6/printers.py (SharedPointerPrinter)
1037 (UniquePointerPrinter): Print correct template argument, not type of
1038 the pointer.
1039 (TemplateTypePrinter._recognizer.recognize): Handle failure to lookup
1040 a type.
1041 * testsuite/libstdc++-prettyprinters/cxx11.cc: Test unique_ptr of
1042 array type.
1043 * testsuite/libstdc++-prettyprinters/cxx17.cc: Test shared_ptr and
1044 weak_ptr of array types.
1045
1046 2018-01-09 François Dumont <fdumont@gcc.gnu.org>
1047
1048 PR libstdc++/83709
1049 * include/bits/hashtable_policy.h
1050 (__distance_fwd(_Iterator, _Iterator, input_iterator_tag)): Return 1 if
1051 __first != __last.
1052 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, true_type)): New.
1053 (_Insert_base::_M_insert_range(_Ite, _Ite, _NodeGetter, false_type)):
1054 Add false_type parameter.
1055 (_Insert_base::insert): Adapt.
1056 * include/bits/hashtable.h (_Hashtable::operator=(initializzr_list<>)):
1057 Adapt.
1058 (_Hashtable::_M_insert(_Arg&&, const _NodeGen&, true_type, size_t)):
1059 Add __n_elt parameter, defaulted to 1.
1060 (_Hashtable::_M_insert_unique_node): Likewise. Use it to call rehash
1061 policy _M_need_rehash.
1062 (_Hashtable::_M_merge_unique): Pass target number of elements to add to
1063 produce only 1 rehash if necessary.
1064 * testsuite/23_containers/unordered_map/insert/83709.cc: New.
1065 * testsuite/23_containers/unordered_set/insert/83709.cc: New.
1066
1067 2018-01-09 Juraj Oršulić <juraj.orsulic@fer.hr>
1068 Jonathan Wakely <jwakely@redhat.com>
1069
1070 PR libstdc++/59253 (partial)
1071 * python/libstdcxx/v6/printers.py (SmartPtrIterator): Common iterator
1072 type for pointer stored by shared_ptr, weak_ptr and unique_ptr.
1073 (SharedPointerPrinter, UniquePointerPrinter): Treat stored values as
1074 children.
1075 * testsuite/libstdc++-prettyprinters/cxx11.cc: Update expected output
1076 of unique_ptr printer.
1077 * testsuite/libstdc++-prettyprinters/shared_ptr.cc: Update expected
1078 output of shared_ptr printer.
1079
1080 2018-01-05 Jonathan Wakely <jwakely@redhat.com>
1081
1082 PR libstdc++/83626
1083 * src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
1084 unnecessary symlink_status call.
1085 (remove_all(const path&, error_code&)): Use filesystem::remove.
1086 * src/filesystem/std-ops.cc: Likewise.
1087
1088 PR libstdc++/83279
1089 * src/filesystem/std-ops.cc (do_copy_file): Use non-null offset with
1090 sendfile.
1091
1092 PR libstdc++/83626
1093 * src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
1094 report an error for ENOENT.
1095 (remove_all(const path&)): Fix type of result variable.
1096 (remove_all(const path&, error_code&)): Use non-throwing increment
1097 for directory iterator. Call POSIX remove directly to avoid redundant
1098 calls to symlink_status. Do not report errors for ENOENT.
1099 * src/filesystem/std-ops.cc: Likewise.
1100 * testsuite/27_io/filesystem/operations/remove_all.cc: Test throwing
1101 overload.
1102 * testsuite/experimental/filesystem/operations/remove_all.cc:
1103 Likewise.
1104
1105 2018-01-04 Jonathan Wakely <jwakely@redhat.com>
1106
1107 PR libstdc++/83626
1108 * src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
1109 redundant call to ec.clear().
1110 (remove_all(const path&, error_code&))): Do not return an error for
1111 non-existent paths.
1112 * src/filesystem/std-ops.cc: Likewise.
1113 * testsuite/27_io/filesystem/operations/remove.cc: New test.
1114 * testsuite/27_io/filesystem/operations/remove_all.cc: Fix expected
1115 results for non-existent paths.
1116 * testsuite/experimental/filesystem/operations/remove.cc: New test.
1117 * testsuite/experimental/filesystem/operations/remove_all.cc: Fix
1118 expected results for non-existent paths.
1119
1120 * include/bits/fs_ops.h (exists(const path&, error_code&))): Only
1121 check status_known once.
1122 * include/experimental/bits/fs_ops.h: Likewise.
1123
1124 PR libstdc++/83607
1125 * include/std/functional (__is_byte_like): New trait.
1126 (__is_std_equal_to): Remove.
1127 (__boyer_moore_base_t): Use __is_byte_like instead of
1128 __is_std_equal_to.
1129 * include/experimental/functional (__is_std_equal_to): Remove.
1130 (__boyer_moore_base_t): Use __is_byte_like instead of
1131 __is_std_equal_to.
1132 * testsuite/20_util/function_objects/83607.cc: New test.
1133
1134 2018-01-03 Ville Voutilainen <ville.voutilainen@gmail.com>
1135
1136 Protect optional's deduction guide with the feature macro
1137 * include/std/optional: Use the feature macro.
1138
1139 2018-01-03 Jakub Jelinek <jakub@redhat.com>
1140
1141 Update copyright years.
1142 \f
1143 Copyright (C) 2018 Free Software Foundation, Inc.
1144
1145 Copying and distribution of this file, with or without modification,
1146 are permitted in any medium without royalty provided the copyright
1147 notice and this notice are preserved.