* config/cpu/sh/atomicity.h: Fix typo in comment.
[gcc.git] / libstdc++-v3 / ChangeLog
1 2016-04-18 Jonathan Wakely <jwakely@redhat.com>
2
3 * config/cpu/sh/atomicity.h: Fix typo in comment.
4
5 PR libstdc++/70294
6 * include/std/thread (operator<, operator==): Move definitions to
7 namespace-scope.
8 * testsuite/30_threads/thread/id/70294.cc: New test.
9
10 * testsuite/18_support/bad_exception/23591_thread-1.c: Add
11 -Wno-pedantic to dg-options.
12 * testsuite/20_util/align/2.cc: Use type as operand of alignof.
13 * testsuite/20_util/is_floating_point/value.cc: Add -Wno-pedantic
14 to dg-options.
15 * testsuite/20_util/specialized_algorithms/uninitialized_fill/32158.cc:
16 Remove extra semi-colon.
17 * testsuite/23_containers/array/tuple_interface/tuple_element.cc:
18 Always supply second argument to static_assert.
19 * testsuite/25_algorithms/lower_bound/no_operator_ne.cc: Remove extra
20 semi-colon.
21 * testsuite/26_numerics/complex/c99.cc: Add -Wno-pedantic to
22 dg-options.
23 * testsuite/26_numerics/complex/literals/values.cc: Likewise.
24 * testsuite/29_atomics/atomic/60695.cc: Likewise.
25 * testsuite/29_atomics/atomic/62259.cc: use __alignof__ instead of
26 alignof when operand is an object not a type.
27 * testsuite/decimal/ctor.cc: Add -Wno-pedantic to dg-options.
28 * testsuite/decimal/make-decimal.cc: Likewise.
29 * testsuite/experimental/type_traits/value.cc: Always supply second
30 argument to static_assert.
31 * testsuite/util/testsuite_common_types.h: Use __extension__ for
32 __int128 types.
33
34 * testsuite/experimental/type_erased_allocator/1.cc: Don't include
35 internal header.
36 * testsuite/experimental/type_erased_allocator/1_neg.cc: Likewise.
37 * testsuite/experimental/type_erased_allocator/2.cc: Likewise.
38 * testsuite/experimental/type_erased_allocator/uses_allocator.cc:
39 Likewise. Add licence and change to compile-only test.
40
41 * include/bits/locale_facets.h (ctype::do_narrow): Add attribute to
42 unused parameter.
43 * include/bits/regex_automaton.h (_NFA::_M_insert_alt): Likewise.
44
45 * include/ext/string_conversions.h (__stoa): Avoid -Wsign-compare
46 warnings.
47
48 2016-04-17 Edward Smith-Rowland <3dw4rd@verizon.net>
49
50 * include/bits/specfun.h: Trivial comment misspelling.
51
52 2016-04-14 Jason Merrill <jason@redhat.com>
53
54 Revert Jonathan's empty ABI change from yesterday.
55
56 2016-04-13 Martin Sebor <msebor@redhat.com>
57
58 PR c++/69517
59 * testsuite/25_algorithms/rotate/moveable2.cc: Make sure VLA
60 upper bound is positive.
61
62 2016-04-13 Jonathan Wakely <jwakely@redhat.com>
63
64 * include/bits/c++config (_GLIBCXX_BEGIN_NAMESPACE_EMPTY_TYPES,
65 _GLIBCXX_END_NAMESPACE_EMPTY_TYPES, _GLIBCXX_ABI_TAG_EMPTY): Define.
66 * include/bits/hashtable.h (_Hashtable::_M_emplace): Change signatures
67 of functions taking empty structs by value. Add a template parameter
68 to overloads without hints. Rename overloads with hints to
69 _M_emplace_hint.
70 (_Hashtable::_M_erase(true_type, const_iterator),
71 _Hashtable::_M_erase(false_type, const_iterator)): Change signatures
72 by reordering parameters.
73 * include/bits/hashtable_policy.h (_Insert::insert): Adjust to call
74 _M_emplace_hint instead of _M_emplace.
75 * include/bits/shared_ptr.h (shared_ptr(_Tp1*, _Deleter, _Alloc),
76 shared_ptr(nullptr_t, _Deleter, _Alloc)): Use _GLIBCXX_ABI_TAG_EMPTY.
77 * include/bits/shared_ptr_base.h (_Sp_counted_deleter, __shared_count,
78 __shared_ptr): Likewise.
79 * include/bits/stl_algo.h (replace_if): Likewise.
80 * include/bits/stl_pair.h (piecewise_construct_t,
81 piecewise_construct): Use _GLIBCXX_BEGIN_NAMESPACE_EMPTY_TYPES.
82 * include/bits/uses_allocator.h (allocator_arg_t, allocator_arg,
83 __uses_alloc0): Likewise.
84 * include/ext/pb_ds/assoc_container.hpp (basic_hash_table): Likewise.
85 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
86 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise.
87 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
88 * testsuite/20_util/uses_allocator/69293_neg.cc: Likewise.
89 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
90 * testsuite/ext/profile/mutex_extensions_neg.cc: Likewise.
91
92 2016-04-12 Edward Smith-Rowland <3dw4rd@verizon.net>
93
94 Document C++17/TR29124 C++ Special Math Functions.
95 * include/bits/specfun.h: Add Doxygen markup.
96
97 2016-04-07 Jonathan Wakely <jwakely@redhat.com>
98
99 * testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
100
101 2016-04-06 Eric Botcazou <ebotcazou@adacore.com>
102
103 * src/Makefile.am (libstdc++-symbols.ver): Remove useless /dev/null.
104 * src/Makefile.in: Regenerate.
105
106 2016-04-05 Jonathan Wakely <jwakely@redhat.com>
107
108 PR libstdc++/70554
109 * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Don't test
110 __atomic_fetch_add for bool.
111 * configure: Regenerate.
112
113 * testsuite/30_threads/thread/70503.cc: Require -static to work.
114
115 PR libstdc++/70503
116 * src/c++11/thread.cc (execute_native_thread_routine,
117 execute_native_thread_routine_compat): Give internal linkage.
118 * testsuite/30_threads/thread/70503.cc: New test.
119
120 2016-04-05 Ville Voutilainen <ville.voutilainen@gmail.com>
121
122 PR libstdc++/70437
123 * include/bits/stl_pair.h (_ConstructiblePair,
124 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
125 _ImplicitlyMoveConvertiblePair): Add shortcut conditions
126 for same-type cases.
127 * testsuite/20_util/pair/70437.cc: New.
128
129 2016-03-24 Jonathan Wakely <jwakely@redhat.com>
130
131 PR libstdc++/69945
132 * config/abi/pre/gnu.ver: Add new symbol.
133 * libsupc++/eh_alloc.cc (__gnu_cxx::__freeres): Define.
134 * testsuite/18_support/free_eh_pool.cc: New test.
135
136 2016-03-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
137
138 * include/Makefile.am (install-freestanding-headers): Add
139 concept_check.h and move.h to the installed headers.
140 * include/Makefile.in: Regenerated.
141 * include/bits/concept_check.h: Ignore _GLIBCXX_CONCEPT_CHECKS for
142 freestanding implementations.
143 * doc/xml/manual/using.xml (_GLIBCXX_CONCEPT_CHECKS): Mention
144 that this macro has no effect for freestanding implementations.
145 * doc/html/manual/using_macros.html: Likewise.
146
147 2016-02-24 Jonathan Wakely <jwakely@redhat.com>
148
149 PR libstdc++/69939
150 * include/experimental/tuple (__apply_impl): Qualify get and forward.
151
152 2016-02-23 Jonathan Wakely <jwakely@redhat.com>
153
154 * doc/xml/manual/using.xml: Document __STDCPP_WANT_MATH_SPEC_FUNCS__.
155 * doc/html/*: Regenerate.
156
157 PR libstdc++/69893
158 * include/tr1/cmath (acosh, asinh, atanh, cbrt, copysign, erf, erfc,
159 exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb, lgamma, llrint,
160 llround, log1p, log2, logb, lrint, lround, nan, nearbyint, nextafter,
161 nexttoward, remainder, remquo, rint, round, scalbln, scalbn, tgamma,
162 trunc) [__cplusplus >= 201103L]: Import from namespace std.
163 (fabs) [__cplusplus < 201103L]: Import from namespace std.
164 * include/tr1/complex (acosh, asinh, atanh) [__cplusplus >= 201103L]:
165 Likewise.
166 * testsuite/tr1/headers/c++200x/complex.cc: Add std::fabs to global
167 namespace before including TR1 headers.
168 * testsuite/tr1/headers/c++200x/math.cc: New test.
169
170 2016-02-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
171
172 PR libstdc++/69881
173 * include/c_global/cstdarg: Undefine __need___va_list.
174 * include/c_global/cstddef: Undefine all kinds of __need_*.
175
176 2016-02-16 Tim Shen <timshen@google.com>
177
178 PR libstdc++/69794
179 * include/bits/regex_scanner.h: Add different special character
180 sets for grep and egrep regex.
181 * include/bits/regex_scanner.tcc: Use _M_spec_char more uniformly.
182 * testsuite/28_regex/regression.cc: Add new testcase.
183
184 2016-02-08 Jonathan Wakely <jwakely@redhat.com>
185
186 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Remove accidentally
187 added 'constexpr' in previous commit.
188 * configure: Regenerate.
189
190 PR libstdc++/48891
191 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Enable isinf and isnan
192 checks for all targets except *-*-solaris2.* and ensure we find the
193 libc math.h header not our own.
194 * configure: Regenerate.
195
196 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
197
198 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt (FUNC):
199 New file. Copied over from s390-linux-gnu.
200
201 2016-02-04 Jonathan Wakely <jwakely@redhat.com>
202
203 PR libstdc++/69626
204 * acinclude.m4 (GLIBCXX_ENABLE_C99): Check C99 stdlib.h functions
205 with -std=c++98 and define _GLIBCXX98_USE_C99_STDLIB.
206 * config.h.in: Regenerate.
207 * configure: Regenerate.
208 * testsuite/21_strings/c_strings/char/69626.cc: New.
209
210 * doc/html/index.html: Regenerate.
211
212 * doc/xml/manual/containers.xml: Add cross-reference to Dual ABI.
213 * doc/xml/manual/spine.xml: Update copyright years and author blurb.
214 * doc/html/*: Regenerate.
215
216 2016-02-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
217
218 PR libstdc++/69581
219 * include/c_compatibility/math.h: Move header guards.
220 * include/c_compatibility/stdlib.h: Likewise.
221
222 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
223
224 PR libstdc++/69506
225 * config/os/newlib/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
226
227 2016-01-28 John David Anglin <danglin@gcc.gnu.org>
228
229 PR libstdc++/69450
230 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Split check for obsolete
231 isinf and isnan functions into two independent checks. Check on hpux.
232 * config.h.in: Regenerate.
233 * configure: Regenerate.
234 * include/c_global/cmath (isinf(double), isnan(double)): Use
235 _GLIBCXX_HAVE_OBSOLETE_ISINF and _GLIBCXX_HAVE_OBSOLETE_ISNAN,
236 respectively.
237
238 2016-01-27 Jakub Jelinek <jakub@redhat.com>
239
240 * testsuite/libstdc++-prettyprinters/whatis.cc: Include <random>.
241
242 2016-01-27 Jonathan Wakely <jwakely@redhat.com>
243
244 PR libstdc++/69295
245 * testsuite/ext/special_functions/hyperg/check_value.cc: Use
246 -ffp-contract=off, and -ffloat-store to disable excess precision.
247 * testsuite/special_functions/02_assoc_legendre/check_value.cc: Use
248 -ffp-contract=off.
249
250 2016-01-26 Jonathan Wakely <jwakely@redhat.com>
251
252 PR libstdc++/69478
253 * include/bits/stl_algobase.h (__copy_move<_IsMove, true,
254 random_access_iterator_tag>): Check is_move_assignable when moving.
255 (__copy_move_backwards<_IsMove, true, random_access_iterator_tag>):
256 Likewise.
257 * testsuite/25_algorithms/copy/move_iterators/69478.cc: New.
258 * testsuite/25_algorithms/copy_backward/move_iterators/69478.cc: New.
259 * testsuite/25_algorithms/move/69478.cc: New.
260 * testsuite/25_algorithms/move_backward/69478.cc: new.
261
262 2016-01-26 Andris Pavenis <andris.pavenis@iki.fi>
263
264 * include/c_compatibility/stdlib.h: Include wide character related
265 definitions only when they are available in cstdlib.
266
267 2016-01-25 Jonathan Wakely <jwakely@redhat.com>
268
269 PR libstdc++/69464
270 * include/Makefile.am: Add new header.
271 * include/Makefile.in: Regenerate.
272 * include/bits/random.h (uniform_int_distribution): Move to
273 bits/uniform_int_dist.h.
274 * include/bits/random.tcc (uniform_int_distribution::operator(),
275 uniform_int_distribution::__generate_impl): Likewise.
276 * include/bits/uniform_int_dist.h: New header.
277 * include/bits/stl_algo.h [__cplusplus >= 201103L]: Include
278 <bits/uniform_int_dist.h> instead of <random>.
279 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
280 move_iterators/1.cc: Include correct header for uninitialized_copy.
281 * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
282 move_iterators/1.cc: Likewise.
283 * testsuite/25_algorithms/nth_element/58800.cc: Include correct
284 header for vector.
285 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lines.
286
287 2016-01-23 John David Anglin <danglin@gcc.gnu.org>
288
289 PR libstdc++/69446
290 * config/os/hpux/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
291
292 2016-01-22 Edward Smith-Rowland <3dw4rd@verizon.net>
293
294 TR29124 C++ Special Math - <math.h> pulls funcs into global namespace.
295 * include/c_compatibility/math.h: Import the TR29124 functions
296 into the global namespace.
297 * testsuite/special_functions/01_assoc_laguerre/compile_2.cc: Remove
298 xfail and make compile-only.
299 * testsuite/special_functions/02_assoc_legendre/compile_2.cc: Ditto.
300 * testsuite/special_functions/03_beta/compile_2.cc: Ditto.
301 * testsuite/special_functions/04_comp_ellint_1/compile_2.cc: Ditto.
302 * testsuite/special_functions/05_comp_ellint_2/compile_2.cc: Ditto.
303 * testsuite/special_functions/06_comp_ellint_3/compile_2.cc: Ditto.
304 * testsuite/special_functions/07_cyl_bessel_i/compile_2.cc: Ditto.
305 * testsuite/special_functions/08_cyl_bessel_j/compile_2.cc: Ditto.
306 * testsuite/special_functions/09_cyl_bessel_k/compile_2.cc: Ditto.
307 * testsuite/special_functions/10_cyl_neumann/compile_2.cc: Ditto.
308 * testsuite/special_functions/11_ellint_1/compile_2.cc: Ditto.
309 * testsuite/special_functions/12_ellint_2/compile_2.cc: Ditto.
310 * testsuite/special_functions/13_ellint_3/compile_2.cc: Ditto.
311 * testsuite/special_functions/14_expint/compile_2.cc: Ditto.
312 * testsuite/special_functions/15_hermite/compile_2.cc: Ditto.
313 * testsuite/special_functions/16_laguerre/compile_2.cc: Ditto.
314 * testsuite/special_functions/17_legendre/compile_2.cc: Ditto.
315 * testsuite/special_functions/18_riemann_zeta/compile_2.cc: Ditto.
316 * testsuite/special_functions/19_sph_bessel/compile_2.cc: Ditto.
317 * testsuite/special_functions/20_sph_legendre/compile_2.cc: Ditto.
318 * testsuite/special_functions/21_sph_neumann/compile_2.cc: Ditto.
319
320 2016-01-22 Jonathan Wakely <jwakely@redhat.com>
321
322 PR libstdc++/69116
323 * include/bits/valarray_before.h (__fun, __fun_with_valarray): Only
324 define result_type for types which can be safely used with valarrays.
325 * testsuite/26_numerics/valarray/69116.cc: New.
326
327 PR libstdc++/69413
328 * config/os/gnu-linux/os_defines.h: Define
329 _GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC.
330 * include/c_global/cmath (isinf, isnan): Check it.
331 * doc/xml/manual/internals.xml: Document it.
332 * doc/html/*: Regenerate.
333
334 2016-01-21 Jonathan Wakely <jwakely@redhat.com>
335
336 PR libstdc++/69406
337 * include/bits/cpp_type_traits.h: Ensure C++ language linkage.
338 * include/ext/type_traits.h: Likewise.
339 * testsuite/17_intro/headers/c++2011/linkage.cc: Check autoconf macros
340 for presence of C headers.
341 * testsuite/ext/type_traits/add_unsigned_floating_neg.cc: Adjust
342 dg-error line number.
343 * testsuite/ext/type_traits/add_unsigned_integer_neg.cc: Likewise.
344 * testsuite/ext/type_traits/remove_unsigned_floating_neg.cc: Likewise.
345 * testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: Likewise.
346
347 2016-01-20 Torvald Riegel <triegel@redhat.com>
348
349 PR libstdc++/69310
350 * config/os/bsd/darwin/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
351
352 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
353
354 PR libstdc++/60401
355 * include/c_compatibility/math.h (acosh, asinh, atanh, acbrt,
356 copysign, erf, erfc, exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb,
357 lgamma, llrint, llround, log1p, log2, logb, lrint, lround, nearbyint,
358 nextafter, nexttoward, remainder, remquo, rint, round, scalbln, scalbn,
359 tgamma, trunc) [__cplusplus >= 201103L && _GLIBCXX_USE_C99_MATH_TR1]:
360 Add using declarations.
361 * testsuite/26_numerics/headers/cmath/60401.cc: New.
362
363 PR libstdc++/69386
364 * include/c_global/ccomplex: Ensure C++ language linkage.
365 * include/c_global/cmath: Likewise.
366 * include/c_global/cstdlib: Likewise.
367 * include/c_global/ctgmath: Likewise.
368 * testsuite/17_intro/headers/c++2011/linkage.cc: New.
369
370 2016-01-19 Jonathan Wakely <jwakely@redhat.com>
371
372 PR libstdc++/14608
373 PR libstdc++/60401
374 * include/Makefile.am: Use c_compatibility math.h and stdlib.h for
375 --enable-cheaders=c_global configs.
376 * include/Makefile.in: Regenerate.
377 * include/c_compatibility/math.h: Remove obsolete _GLIBCXX_NAMESPACE_C
378 test and allow inclusion from C files.
379 * include/c_compatibility/stdlib.h: Likewise. Support freestanding.
380 (at_quick_exit, quick_exit): Add using directives.
381 * include/c_global/cmath: Use #include_next for math.h.
382 * include/c_global/cstdlib: Use #include_next for stdlib.h.
383 * testsuite/26_numerics/headers/cmath/14608.cc: New.
384 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
385 Remove xfail for most targets.
386 * testsuite/26_numerics/headers/cstdlib/60401.cc: New.
387
388 2016-01-18 Torvald Riegel <triegel@redhat.com>
389
390 * include/bits/c++config (_GLIBCXX_USE_WEAK_REF): New.
391 (_GLIBCXX_TXN_SAFE, _GLIBCXX_TXN_SAFE_DYN): Use _GLIBCXX_USE_WEAK_REF
392 and move after its definition.
393 * config/os/aix/os_defines.h (_GLIBCXX_USE_WEAK_REF): Override.
394 * src/c++11/cow-stdexcept.cc: Use _GLIBCXX_USE_WEAK_REF instead of
395 __GXX_WEAK__, and only provide transactional clones if
396 _GLIBCXX_USE_WEAK_REF is true. Don't provide stubs of libitm
397 functions.
398
399 2016-01-18 Jonathan Wakely <jwakely@redhat.com>
400
401 PR libstdc++/60637
402 * testsuite/26_numerics/headers/cmath/60637.cc: Add test.
403
404 PR libstdc++/69243
405 * include/std/functional (_Function_base::_M_not_empty_function):
406 Change overloads for pointers to take arguments by value.
407 * testsuite/20_util/function/cons/57465.cc: Add tests for
408 pointer-to-member cases.
409
410 PR libstdc++/69340
411 * src/c++11/cow-stdexcept.cc (_txnal_cow_string_C1_for_exceptions):
412 Use macros for exception handling and fix unused parameter warning.
413
414 2016-01-17 John David Anglin <danglin@gcc.gnu.org>
415
416 PR libstdc++/68734
417 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
418
419 2016-01-17 Torvald Riegel <triegel@redhat.com>
420
421 * src/c++11/cow-stdexcept.cc (txnal_read_ptr): Fix static_assert.
422
423 2016-01-16 H.J. Lu <hongjiu.lu@intel.com>
424
425 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Add
426 __int128 symbols.
427
428 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
429
430 PR libstdc++/69293
431 * include/bits/uses_allocator.h (__uses_alloc<true, ...>): Add
432 static assertion that type is constructible from the arguments.
433 * testsuite/20_util/scoped_allocator/69293_neg.cc: New.
434 * testsuite/20_util/uses_allocator/69293_neg.cc: New.
435 * testsuite/20_util/uses_allocator/cons_neg.cc: Adjust dg-error.
436
437 PR libstdc++/69294
438 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Check for obsolete isinf
439 and isnan on AIX. Quote variables.
440 * configure: Regenerate.
441
442 2016-01-15 Torvald Riegel <triegel@redhat.com>
443
444 * include/bits/basic_string.h (basic_string): Declare friends.
445 * include/bits/c++config (_GLIBCXX_TXN_SAFE,
446 _GLIBCXX_TXN_SAFE_DYN, _GLIBCXX_USE_ALLOCATOR_NEW): New.
447 * include/std/stdexcept (logic_error, domain_error, invalid_argument,
448 length_error, out_of_range, runtime_error, range_error,
449 underflow_error, overflow_error): Declare members as transaction-safe.
450 (logic_error, runtime_error): Declare friend functions.
451 * libsupc++/exception (exception, bad_exception): Declare members as
452 transaction-safe.
453 * src/c++11/cow-stdexcept.cc: Define transactional clones for the
454 transaction-safe members of exceptions and helper functions.
455 * libsupc++/eh_exception.cc: Adjust and define transactional clones.
456 * config/abi/pre/gnu.ver (GLIBCXX_3.4.22) Add transactional clones.
457 (CXXABI_1.3.10): New.
458 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): New.
459 (GLIBCXX_ENABLE_ALLOCATOR): Set ENABLE_ALLOCATOR_NEW.
460 * configure.ac: Call GLIBCXX_CHECK_SIZE_T_MANGLING.
461 * include/Makefile.am: Write ENABLE_ALLOCATOR_NEW to c++config.h.
462 * include/Makefile.in: Regenerate.
463 * config.h.in: Regenerate.
464 * configure: Regenerate.
465 * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.10.
466
467 2016-01-15 Steve Ellcey <sellcey@imgtec.com>
468
469 * include/ext/random.tcc: Use __builtin_isfinite instead of
470 std::isfinite.
471
472 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
473
474 * include/bits/std_mutex.h: Fix Doxygen @file name.
475
476 2016-01-14 Edward Smith-Rowland <3dw4rd@verizon.net>
477 Jonathan Wakely <jwakely@redhat.com>
478 Florian Goth <CaptainSifff@gmx.de>
479
480 Implement TR29124 C++ special Math Functions.
481 * include/Makefile.am: Add new headers.
482 * include/Makefile.in: Regenerate.
483 * include/bits/specfun.h: New.
484 * include/c_global/cmath: Adjust for both tr1 and tr29124 maths.
485 * include/tr1/bessel_function.tcc: Ditto.
486 * include/tr1/beta_function.tcc: Ditto.
487 * include/tr1/cmath: Ditto.
488 * include/tr1/ell_integral.tcc: Ditto.
489 * include/tr1/exp_integral.tcc: Ditto.
490 * include/tr1/gamma.tcc: Ditto.
491 * include/tr1/hypergeometric.tcc: Ditto.
492 * include/tr1/legendre_function.tcc: Ditto.
493 * include/tr1/modified_bessel_func.tcc: Ditto.
494 * include/tr1/poly_hermite.tcc: Ditto.
495 * include/tr1/poly_laguerre.tcc: Ditto.
496 * include/tr1/riemann_zeta.tcc: Ditto.
497 * include/tr1/special_function_util.h: Ditto.
498 * testsuite/ext/special_functions/conf_hyperg: New.
499 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc: New.
500 * testsuite/ext/special_functions/conf_hyperg/check_value.cc: New.
501 * testsuite/ext/special_functions/conf_hyperg/compile.cc: New.
502 * testsuite/ext/special_functions/hyperg: New.
503 * testsuite/ext/special_functions/hyperg/check_nan.cc: New.
504 * testsuite/ext/special_functions/hyperg/check_value.cc: New.
505 * testsuite/ext/special_functions/hyperg/compile.cc: New.
506 * testsuite/libstdc++-dg/conformance.exp: Add special_functions directory.
507 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc: New.
508 * testsuite/special_functions/01_assoc_laguerre/check_value.cc: New.
509 * testsuite/special_functions/01_assoc_laguerre/compile.cc: New.
510 * testsuite/special_functions/01_assoc_laguerre/compile_2.cc: New.
511 * testsuite/special_functions/02_assoc_legendre/check_nan.cc: New.
512 * testsuite/special_functions/02_assoc_legendre/check_value.cc: New.
513 * testsuite/special_functions/02_assoc_legendre/compile.cc: New.
514 * testsuite/special_functions/02_assoc_legendre/compile_2.cc: New.
515 * testsuite/special_functions/03_beta/check_nan.cc: New.
516 * testsuite/special_functions/03_beta/check_value.cc: New.
517 * testsuite/special_functions/03_beta/compile.cc: New.
518 * testsuite/special_functions/03_beta/compile_2.cc: New.
519 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc: New.
520 * testsuite/special_functions/04_comp_ellint_1/check_value.cc: New.
521 * testsuite/special_functions/04_comp_ellint_1/compile.cc: New.
522 * testsuite/special_functions/04_comp_ellint_1/compile_2.cc: New.
523 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc: New.
524 * testsuite/special_functions/05_comp_ellint_2/check_value.cc: New.
525 * testsuite/special_functions/05_comp_ellint_2/compile.cc: New.
526 * testsuite/special_functions/05_comp_ellint_2/compile_2.cc: New.
527 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc: New.
528 * testsuite/special_functions/06_comp_ellint_3/check_value.cc: New.
529 * testsuite/special_functions/06_comp_ellint_3/compile.cc: New.
530 * testsuite/special_functions/06_comp_ellint_3/compile_2.cc: New.
531 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: New.
532 * testsuite/special_functions/07_cyl_bessel_i/check_value.cc: New.
533 * testsuite/special_functions/07_cyl_bessel_i/compile.cc: New.
534 * testsuite/special_functions/07_cyl_bessel_i/compile_2.cc: New.
535 * testsuite/special_functions/07_cyl_bessel_i/pr56216.cc: New.
536 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: New.
537 * testsuite/special_functions/08_cyl_bessel_j/check_value.cc: New.
538 * testsuite/special_functions/08_cyl_bessel_j/compile.cc: New.
539 * testsuite/special_functions/08_cyl_bessel_j/compile_2.cc: New.
540 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: New.
541 * testsuite/special_functions/09_cyl_bessel_k/check_value.cc: New.
542 * testsuite/special_functions/09_cyl_bessel_k/compile.cc: New.
543 * testsuite/special_functions/09_cyl_bessel_k/compile_2.cc: New.
544 * testsuite/special_functions/10_cyl_neumann/check_nan.cc: New.
545 * testsuite/special_functions/10_cyl_neumann/check_value.cc: New.
546 * testsuite/special_functions/10_cyl_neumann/compile.cc: New.
547 * testsuite/special_functions/10_cyl_neumann/compile_2.cc: New.
548 * testsuite/special_functions/11_ellint_1/check_nan.cc: New.
549 * testsuite/special_functions/11_ellint_1/check_value.cc: New.
550 * testsuite/special_functions/11_ellint_1/compile.cc: New.
551 * testsuite/special_functions/11_ellint_1/compile_2.cc: New.
552 * testsuite/special_functions/12_ellint_2/check_nan.cc: New.
553 * testsuite/special_functions/12_ellint_2/check_value.cc: New.
554 * testsuite/special_functions/12_ellint_2/compile.cc: New.
555 * testsuite/special_functions/12_ellint_2/compile_2.cc: New.
556 * testsuite/special_functions/13_ellint_3/check_nan.cc: New.
557 * testsuite/special_functions/13_ellint_3/check_value.cc: New.
558 * testsuite/special_functions/13_ellint_3/compile.cc: New.
559 * testsuite/special_functions/13_ellint_3/compile_2.cc: New.
560 * testsuite/special_functions/14_expint/check_nan.cc: New.
561 * testsuite/special_functions/14_expint/check_value.cc: New.
562 * testsuite/special_functions/14_expint/compile.cc: New.
563 * testsuite/special_functions/14_expint/compile_2.cc: New.
564 * testsuite/special_functions/15_hermite/check_nan.cc: New.
565 * testsuite/special_functions/15_hermite/check_value.cc: New.
566 * testsuite/special_functions/15_hermite/compile.cc: New.
567 * testsuite/special_functions/15_hermite/compile_2.cc: New.
568 * testsuite/special_functions/16_laguerre/check_nan.cc: New.
569 * testsuite/special_functions/16_laguerre/check_value.cc: New.
570 * testsuite/special_functions/16_laguerre/compile.cc: New.
571 * testsuite/special_functions/16_laguerre/compile_2.cc: New.
572 * testsuite/special_functions/17_legendre/check_nan.cc: New.
573 * testsuite/special_functions/17_legendre/check_value.cc: New.
574 * testsuite/special_functions/17_legendre/compile.cc: New.
575 * testsuite/special_functions/17_legendre/compile_2.cc: New.
576 * testsuite/special_functions/18_riemann_zeta/check_nan.cc: New.
577 * testsuite/special_functions/18_riemann_zeta/check_value.cc: New.
578 * testsuite/special_functions/18_riemann_zeta/compile.cc: New.
579 * testsuite/special_functions/18_riemann_zeta/compile_2.cc: New.
580 * testsuite/special_functions/19_sph_bessel/check_nan.cc: New.
581 * testsuite/special_functions/19_sph_bessel/check_value.cc: New.
582 * testsuite/special_functions/19_sph_bessel/compile.cc: New.
583 * testsuite/special_functions/19_sph_bessel/compile_2.cc: New.
584 * testsuite/special_functions/20_sph_legendre/check_nan.cc: New.
585 * testsuite/special_functions/20_sph_legendre/check_value.cc: New.
586 * testsuite/special_functions/20_sph_legendre/compile.cc: New.
587 * testsuite/special_functions/20_sph_legendre/compile_2.cc: New.
588 * testsuite/special_functions/21_sph_neumann/check_nan.cc: New.
589 * testsuite/special_functions/21_sph_neumann/check_value.cc: New.
590 * testsuite/special_functions/21_sph_neumann/compile.cc: New.
591 * testsuite/special_functions/21_sph_neumann/compile_2.cc: New.
592 * testsuite/util/specfun_testcase.h: New.
593 * testsuite/tr1/5_numerical_facilities/special_functions/08_cyl_bessel_i/check_value.cc: More testcases.
594 * testsuite/tr1/5_numerical_facilities/special_functions/09_cyl_bessel_j/check_value.cc: Ditto.
595 * testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/check_value.cc: Ditto.
596 * testsuite/tr1/5_numerical_facilities/special_functions/11_cyl_neumann/check_value.cc: Ditto.
597 * testsuite/tr1/5_numerical_facilities/special_functions/21_sph_bessel/check_value.cc: Ditto.
598 * testsuite/tr1/5_numerical_facilities/special_functions/23_sph_neumann/check_value.cc: Ditto.
599 * testsuite/tr1/5_numerical_facilities/special_functions/16_hermite/check_value.cc: New.
600
601 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
602
603 PR libstdc++/48891
604 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Check for obsolete isinf
605 and isnan functions.
606 * config.h.in: Regenerate.
607 * configure: Regenerate.
608 * include/c_global/cmath (isinf(double), isnan(double))
609 [_GLIBCXX_HAVE_OBSOLETE_ISINF_ISNAN]: Import via using-directive.
610 * testsuite/26_numerics/headers/cmath/48891.cc: New.
611
612 2016-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
613
614 PR libstdc++/66006
615 * configure.host (abi_baseline_pair): Use separate baseline for
616 Solaris 11+ and Solaris 10 with gld.
617 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: New file.
618 * config/abi/post/solaris2.11/baseline_symbols.txt: New file.
619 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: New file.
620
621 2016-01-12 Daniel Kruegler <daniel.kruegler@gmail.com>
622
623 PR libstdc++/68877
624 * include/std/type_traits: Following N4511, reimplement __is_swappable
625 and __is_nothrow_swappable. Move __is_swappable to namespace std,
626 adjust callers. Use __is_nothrow_swappable in swap.
627 * include/bits/move.h: Use __is_nothrow_swappable in swap.
628 * testsuite/20_util/is_nothrow_swappable/value.cc: Extend; remove
629 __is_swappable related tests.
630 * testsuite/20_util/is_swappable/value.cc: New.
631 * testsuite/20_util/is_swappable/requirements/
632 explicit_instantiation.cc: New.
633 * testsuite/20_util/is_swappable/requirements/typedefs.cc: New.
634 * testsuite/25_algorithms/swap/68877.cc: New.
635
636 2016-01-12 Jonathan Wakely <jwakely@redhat.com>
637
638 * testsuite/20_util/function/68995.cc: Test reference_wrapper cases.
639
640 PR libstdc++/69005
641 PR libstdc++/69222
642 * include/std/functional (function::_Invoke): Remove, use result_of.
643 (function::_Callable): Replace alias template with class template
644 and use partial specialization instead of _NotSelf alias template.
645 (function(_Functor)): Add "not self" constraint so that _Callable is
646 not used while type is incomplete.
647 * testsuite/20_util/function/69222.cc: New.
648
649 2016-01-11 Jonathan Wakely <jwakely@redhat.com>
650
651 PR libstdc++/60976
652 * include/bits/alloc_traits.h (allocator_traits<allocator<_Tp>>):
653 Define partial specialization.
654 * testsuite/20_util/shared_ptr/cons/58659.cc: Add construct and
655 destroy members to std::allocator explicit specialization.
656
657 2016-01-08 Jonathan Wakely <jwakely@redhat.com>
658
659 * testsuite/26_numerics/headers/cmath/
660 c99_classification_macros_c++.cc: Rename to ...
661 * testsuite/26_numerics/headers/cmath/
662 c99_classification_macros_c++98.cc: Here and add -std=gnu++98.
663 * testsuite/26_numerics/headers/cmath/
664 c99_classification_macros_c++0x.cc: Rename to ...
665 * testsuite/26_numerics/headers/cmath/
666 c99_classification_macros_c++11.cc: Here.
667
668 PR libstdc++/69190
669 * include/bits/uses_allocator.h: Add missing include.
670
671 2016-01-07 Jonathan Wakely <jwakely@redhat.com>
672
673 PR libstdc++/69105
674 PR libstdc++/69106
675 PR libstdc++/69114
676 * include/bits/stl_iterator.h (back_insert_iterator,
677 front_insert_iterator, insert_iterator): Use __addressof (LWG 2324).
678 * include/bits/uses_allocator.h (__use_alloc): Use __addressof.
679 * include/std/future (__future::base::_State_baseV2::__setter):
680 Likewise.
681 * include/std/scoped_allocator (__outermost): Likewise.
682 * testsuite/20_util/scoped_allocator/69114.cc: New.
683 * testsuite/20_util/uses_allocator/69114.cc: New.
684 * testsuite/30_threads/promise/69106.cc: New.
685
686 2016-01-06 Jonathan Wakely <jwakely@redhat.com>
687
688 PR libstdc++/69092
689 * include/bits/basic_string.h (basic_string::_S_copy_chars<_Iterator>):
690 Remove _GLIBCXX_NOEXCEPT.
691 testsuite/21_strings/basic_string/cons/char/69092.cc: New.
692
693 * include/Makefile.am: Adjust.
694 * include/Makefile.in: Regenerate.
695 * include/bits/mutex.h: Rename to bits/std_mutex.h.
696 * include/std/condition_variable: Adjust include.
697 * include/std/mutex: Likewise.
698
699 2016-01-04 Jakub Jelinek <jakub@redhat.com>
700
701 Update copyright years.
702 \f
703 Copyright (C) 2016 Free Software Foundation, Inc.
704
705 Copying and distribution of this file, with or without modification,
706 are permitted in any medium without royalty provided the copyright
707 notice and this notice are preserved.