]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/ChangeLog
re PR tree-optimization/57206 (Auto-vectorization fails when array index is an unsign...
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
f5c40ce2
JW
12016-05-05 Jonathan Wakely <jwakely@redhat.com>
2
3 * testsuite/experimental/filesystem/path/native/string.cc: Add
4 dg-require-filesystem-ts directive.
5
d9cb3e75
JW
62016-05-04 Jonathan Wakely <jwakely@redhat.com>
7
8 PR libstdc++/70940
9 * include/experimental/memory_resource
10 (__resource_adaptor_imp::do_allocate): Do not default-construct
11 rebound allocator.
12 (__resource_adaptor_imp::do_deallocate): Likewise. Use
13 allocator_traits to get pointer type.
14 (__null_memory_resource::do_allocate): Remove unused parameters.
15 (__null_memory_resource::do_deallocate): Likewise.
16 (__null_memory_resource::do_is_equal): Likewise. Add return statement.
17 * testsuite/experimental/type_erased_allocator/1.cc: Combine with ...
18 * testsuite/experimental/type_erased_allocator/1_neg.cc: This, and
19 move to ...
20 * testsuite/experimental/memory_resource/1.cc: Here.
21 * testsuite/experimental/memory_resource/null_memory_resource.cc: New.
22 * testsuite/experimental/memory_resource/resource_adaptor.cc: New.
23
f92ab29f
CG
242016-04-29 Chris Gregory <czipperz@gmail.com>
25
26 * config/*: Remove trailing whitespace.
27 * src/*: Likewise.
28 * testsuite/tr1/*: Likewise.
29 * testsuite/util/*: Likewise.
30
272b2ce4
JW
312016-04-28 Jonathan Wakely <jwakely@redhat.com>
32
9f9eb84e
JW
33 PR libstdc++/70766
34 * include/bits/basic_ios.tcc (basic_ios::_M_cache_locale): Use
35 __addressof.
36 * include/bits/stream_iterator.h (istream_iterator, ostream_iterator):
37 Likewise.
38 * include/std/atomic (atomic<_Tp>): Likewise.
39 * include/std/shared_mutex (shared_lock): Likewise.
40 * testsuite/24_iterators/istream_iterator/70766.cc: New test.
41 * testsuite/24_iterators/ostream_iterator/70766.cc : New test.
42 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
43 * testsuite/29_atomics/atomic/70766.cc: New test.
44 * testsuite/30_threads/shared_lock/70766.cc: New test.
45
272b2ce4
JW
46 * include/bits/hashtable_policy.h (__detail::_Insert_base,
47 __detail::_Insert): Improve comments.
48
45e20696
JW
492016-04-27 Jonathan Wakely <jwakely@redhat.com>
50
51 PR libstdc++/70767
52 * include/std/limits: Update comments about DRs.
53 (numeric_limits<const _Tp>, numeric_limits<volatile _Tp>,
54 numeric_limits<const volatile _Tp>): Define unconditionally.
55
a635cdb2
JW
562016-04-24 Jonathan Wakely <jwakely@redhat.com>
57
58 PR libstdc++/70762
59 * testsuite/util/testsuite_fs.h (__gnu_test::nonexistent_path): Use
60 static counter to return a different path on every call.
61
216f7526
TS
622016-04-22 Tim Shen <timshen@google.com>
63
64 PR libstdc++/70745
65 * include/bits/regex_executor.tcc (_Executor<>::_M_word_boundary):
66 Fix the match_not_bow and match_not_eow behavior.
67 * testsuite/28_regex/regression.cc: Add testcase.
68
a1e1ec76
JW
692016-04-20 Jonathan Wakely <jwakely@redhat.com>
70
71 PR libstdc++/69703
72 * src/c++11/codecvt.cc (__codecvt_utf8_base<char16_t>::do_in,
73 __codecvt_utf8_utf16_base<char16_t>::do_in): Fix mask operations.
74
9c476ad4
JW
752016-04-19 Jonathan Wakely <jwakely@redhat.com>
76
29ca91f7 77 PR libstdc++/69703
a1e1ec76 78 * src/c++11/codecvt.cc (__codecvt_utf8_base<char16_t>::do_in):
29ca91f7
JW
79 Override endianness bit in mode.
80 * testsuite/22_locale/codecvt/codecvt_utf8/69703.cc: New test.
81 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: Test
82 that little_endian mode is ignored.
83 * testsuite/experimental/filesystem/path/native/string.cc: New test.
84
14905251
JW
85 PR libstdc++/70609
86 * src/filesystem/ops.cc (close_fd): New function.
87 (do_copy_file): Set permissions before copying file contents. Check
88 result of closing file descriptors. Don't copy streambuf when file
89 is empty.
90 (copy(const path&, const path&, copy_options, error_code&)): Use
91 lstat for source file when copy_symlinks is set.
92 * testsuite/experimental/filesystem/operations/copy.cc: Test copy().
93
9c476ad4
JW
94 * include/experimental/bits/fs_fwd.h (operator&, operator|, operator^,
95 operator~ operator&=, operator|=, operator^=): Add noexcept to
96 overloaded operators for copy_options, perms and directory_options.
97 * src/filesystem/ops.cc (make_file_type, make_file_status,
98 is_not_found_errno, file_time): Add noexcept.
99
d855ad89
ESR
1002016-04-19 Edward Smith-Rowland <3dw4rd@verizon.net>
101
102 * include/bits/c++14_warning.h: Do not refer C++14 as experimental.
103
8dc1e574
JW
1042016-04-18 Jonathan Wakely <jwakely@redhat.com>
105
0cded43d
JW
106 PR libstdc++/41759
107 * include/bits/random.h: Reword static assertion messages to state
108 positive conditions.
109 * include/bits/random.tcc: Likewise.
110 * include/bits/uniform_int_dist.h: Likewise.
111 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error
112 patterns.
113
90751aa7
JW
114 * include/std/function (_Bind, _Bind_result): Remove unused typedefs.
115
351a5f81
JW
116 * config/cpu/sh/atomicity.h: Fix typo in comment.
117
b05cf382
JW
118 PR libstdc++/70294
119 * include/std/thread (operator<, operator==): Move definitions to
120 namespace-scope.
121 * testsuite/30_threads/thread/id/70294.cc: New test.
122
4ed6e524
JW
123 * testsuite/18_support/bad_exception/23591_thread-1.c: Add
124 -Wno-pedantic to dg-options.
125 * testsuite/20_util/align/2.cc: Use type as operand of alignof.
126 * testsuite/20_util/is_floating_point/value.cc: Add -Wno-pedantic
127 to dg-options.
128 * testsuite/20_util/specialized_algorithms/uninitialized_fill/32158.cc:
129 Remove extra semi-colon.
130 * testsuite/23_containers/array/tuple_interface/tuple_element.cc:
131 Always supply second argument to static_assert.
132 * testsuite/25_algorithms/lower_bound/no_operator_ne.cc: Remove extra
133 semi-colon.
134 * testsuite/26_numerics/complex/c99.cc: Add -Wno-pedantic to
135 dg-options.
136 * testsuite/26_numerics/complex/literals/values.cc: Likewise.
137 * testsuite/29_atomics/atomic/60695.cc: Likewise.
138 * testsuite/29_atomics/atomic/62259.cc: use __alignof__ instead of
139 alignof when operand is an object not a type.
140 * testsuite/decimal/ctor.cc: Add -Wno-pedantic to dg-options.
141 * testsuite/decimal/make-decimal.cc: Likewise.
142 * testsuite/experimental/type_traits/value.cc: Always supply second
143 argument to static_assert.
144 * testsuite/util/testsuite_common_types.h: Use __extension__ for
145 __int128 types.
146
abb6e0a1
JW
147 * testsuite/experimental/type_erased_allocator/1.cc: Don't include
148 internal header.
149 * testsuite/experimental/type_erased_allocator/1_neg.cc: Likewise.
150 * testsuite/experimental/type_erased_allocator/2.cc: Likewise.
151 * testsuite/experimental/type_erased_allocator/uses_allocator.cc:
152 Likewise. Add licence and change to compile-only test.
153
6b6147dd
JW
154 * include/bits/locale_facets.h (ctype::do_narrow): Add attribute to
155 unused parameter.
156 * include/bits/regex_automaton.h (_NFA::_M_insert_alt): Likewise.
157
8dc1e574
JW
158 * include/ext/string_conversions.h (__stoa): Avoid -Wsign-compare
159 warnings.
160
80dbaf98
ESR
1612016-04-17 Edward Smith-Rowland <3dw4rd@verizon.net>
162
163 * include/bits/specfun.h: Trivial comment misspelling.
164
9f285ccb
JM
1652016-04-14 Jason Merrill <jason@redhat.com>
166
167 Revert Jonathan's empty ABI change from yesterday.
168
342fac95
MS
1692016-04-13 Martin Sebor <msebor@redhat.com>
170
171 PR c++/69517
172 * testsuite/25_algorithms/rotate/moveable2.cc: Make sure VLA
173 upper bound is positive.
174
a6297ab5
JW
1752016-04-13 Jonathan Wakely <jwakely@redhat.com>
176
177 * include/bits/c++config (_GLIBCXX_BEGIN_NAMESPACE_EMPTY_TYPES,
178 _GLIBCXX_END_NAMESPACE_EMPTY_TYPES, _GLIBCXX_ABI_TAG_EMPTY): Define.
179 * include/bits/hashtable.h (_Hashtable::_M_emplace): Change signatures
180 of functions taking empty structs by value. Add a template parameter
181 to overloads without hints. Rename overloads with hints to
182 _M_emplace_hint.
183 (_Hashtable::_M_erase(true_type, const_iterator),
184 _Hashtable::_M_erase(false_type, const_iterator)): Change signatures
185 by reordering parameters.
186 * include/bits/hashtable_policy.h (_Insert::insert): Adjust to call
187 _M_emplace_hint instead of _M_emplace.
188 * include/bits/shared_ptr.h (shared_ptr(_Tp1*, _Deleter, _Alloc),
189 shared_ptr(nullptr_t, _Deleter, _Alloc)): Use _GLIBCXX_ABI_TAG_EMPTY.
190 * include/bits/shared_ptr_base.h (_Sp_counted_deleter, __shared_count,
191 __shared_ptr): Likewise.
192 * include/bits/stl_algo.h (replace_if): Likewise.
193 * include/bits/stl_pair.h (piecewise_construct_t,
194 piecewise_construct): Use _GLIBCXX_BEGIN_NAMESPACE_EMPTY_TYPES.
195 * include/bits/uses_allocator.h (allocator_arg_t, allocator_arg,
196 __uses_alloc0): Likewise.
197 * include/ext/pb_ds/assoc_container.hpp (basic_hash_table): Likewise.
198 * testsuite/20_util/scoped_allocator/69293_neg.cc: Adjust dg-error.
199 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Likewise.
200 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
201 * testsuite/20_util/uses_allocator/69293_neg.cc: Likewise.
202 * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise.
203 * testsuite/ext/profile/mutex_extensions_neg.cc: Likewise.
204
0c39f36d
ESR
2052016-04-12 Edward Smith-Rowland <3dw4rd@verizon.net>
206
207 Document C++17/TR29124 C++ Special Math Functions.
208 * include/bits/specfun.h: Add Doxygen markup.
209
6da8b931
JW
2102016-04-07 Jonathan Wakely <jwakely@redhat.com>
211
212 * testsuite/30_threads/thread/70503.cc: Adjust from xfail to pass.
213
49a52ebc
EB
2142016-04-06 Eric Botcazou <ebotcazou@adacore.com>
215
216 * src/Makefile.am (libstdc++-symbols.ver): Remove useless /dev/null.
217 * src/Makefile.in: Regenerate.
218
87cec93e
JW
2192016-04-05 Jonathan Wakely <jwakely@redhat.com>
220
d2aee115
JW
221 PR libstdc++/70554
222 * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Don't test
223 __atomic_fetch_add for bool.
224 * configure: Regenerate.
225
d5ec69f3
JW
226 * testsuite/30_threads/thread/70503.cc: Require -static to work.
227
87cec93e
JW
228 PR libstdc++/70503
229 * src/c++11/thread.cc (execute_native_thread_routine,
230 execute_native_thread_routine_compat): Give internal linkage.
231 * testsuite/30_threads/thread/70503.cc: New test.
232
7b3318c4
VV
2332016-04-05 Ville Voutilainen <ville.voutilainen@gmail.com>
234
235 PR libstdc++/70437
236 * include/bits/stl_pair.h (_ConstructiblePair,
237 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
238 _ImplicitlyMoveConvertiblePair): Add shortcut conditions
239 for same-type cases.
240 * testsuite/20_util/pair/70437.cc: New.
241
00e6c25a
JW
2422016-03-24 Jonathan Wakely <jwakely@redhat.com>
243
244 PR libstdc++/69945
245 * config/abi/pre/gnu.ver: Add new symbol.
246 * libsupc++/eh_alloc.cc (__gnu_cxx::__freeres): Define.
247 * testsuite/18_support/free_eh_pool.cc: New test.
248
bfd84e6b
BE
2492016-03-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
250
251 * include/Makefile.am (install-freestanding-headers): Add
252 concept_check.h and move.h to the installed headers.
253 * include/Makefile.in: Regenerated.
254 * include/bits/concept_check.h: Ignore _GLIBCXX_CONCEPT_CHECKS for
255 freestanding implementations.
256 * doc/xml/manual/using.xml (_GLIBCXX_CONCEPT_CHECKS): Mention
257 that this macro has no effect for freestanding implementations.
258 * doc/html/manual/using_macros.html: Likewise.
259
86715b09
JW
2602016-02-24 Jonathan Wakely <jwakely@redhat.com>
261
262 PR libstdc++/69939
263 * include/experimental/tuple (__apply_impl): Qualify get and forward.
264
9aee022e
JW
2652016-02-23 Jonathan Wakely <jwakely@redhat.com>
266
be9967e8
JW
267 * doc/xml/manual/using.xml: Document __STDCPP_WANT_MATH_SPEC_FUNCS__.
268 * doc/html/*: Regenerate.
269
9aee022e
JW
270 PR libstdc++/69893
271 * include/tr1/cmath (acosh, asinh, atanh, cbrt, copysign, erf, erfc,
272 exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb, lgamma, llrint,
273 llround, log1p, log2, logb, lrint, lround, nan, nearbyint, nextafter,
274 nexttoward, remainder, remquo, rint, round, scalbln, scalbn, tgamma,
275 trunc) [__cplusplus >= 201103L]: Import from namespace std.
276 (fabs) [__cplusplus < 201103L]: Import from namespace std.
277 * include/tr1/complex (acosh, asinh, atanh) [__cplusplus >= 201103L]:
278 Likewise.
279 * testsuite/tr1/headers/c++200x/complex.cc: Add std::fabs to global
280 namespace before including TR1 headers.
281 * testsuite/tr1/headers/c++200x/math.cc: New test.
282
5f6dd593
BE
2832016-02-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
284
285 PR libstdc++/69881
286 * include/c_global/cstdarg: Undefine __need___va_list.
287 * include/c_global/cstddef: Undefine all kinds of __need_*.
288
244901a5
TS
2892016-02-16 Tim Shen <timshen@google.com>
290
291 PR libstdc++/69794
292 * include/bits/regex_scanner.h: Add different special character
293 sets for grep and egrep regex.
294 * include/bits/regex_scanner.tcc: Use _M_spec_char more uniformly.
295 * testsuite/28_regex/regression.cc: Add new testcase.
296
cc07da33
JW
2972016-02-08 Jonathan Wakely <jwakely@redhat.com>
298
2158532f
JW
299 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Remove accidentally
300 added 'constexpr' in previous commit.
301 * configure: Regenerate.
302
cc07da33
JW
303 PR libstdc++/48891
304 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Enable isinf and isnan
305 checks for all targets except *-*-solaris2.* and ensure we find the
306 libc math.h header not our own.
307 * configure: Regenerate.
308
acc04646
DV
3092016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
310
311 * config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt (FUNC):
312 New file. Copied over from s390-linux-gnu.
313
dbcda3ee
JW
3142016-02-04 Jonathan Wakely <jwakely@redhat.com>
315
3555173f
JW
316 PR libstdc++/69626
317 * acinclude.m4 (GLIBCXX_ENABLE_C99): Check C99 stdlib.h functions
318 with -std=c++98 and define _GLIBCXX98_USE_C99_STDLIB.
319 * config.h.in: Regenerate.
320 * configure: Regenerate.
321 * testsuite/21_strings/c_strings/char/69626.cc: New.
322
15ebf379
JW
323 * doc/html/index.html: Regenerate.
324
dbcda3ee
JW
325 * doc/xml/manual/containers.xml: Add cross-reference to Dual ABI.
326 * doc/xml/manual/spine.xml: Update copyright years and author blurb.
327 * doc/html/*: Regenerate.
328
571512d5
BE
3292016-02-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
330
331 PR libstdc++/69581
332 * include/c_compatibility/math.h: Move header guards.
333 * include/c_compatibility/stdlib.h: Likewise.
334
f597d5f7
JW
3352016-01-29 Jonathan Wakely <jwakely@redhat.com>
336
337 PR libstdc++/69506
338 * config/os/newlib/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
339
69b0daeb
JDA
3402016-01-28 John David Anglin <danglin@gcc.gnu.org>
341
342 PR libstdc++/69450
343 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Split check for obsolete
344 isinf and isnan functions into two independent checks. Check on hpux.
345 * config.h.in: Regenerate.
346 * configure: Regenerate.
347 * include/c_global/cmath (isinf(double), isnan(double)): Use
348 _GLIBCXX_HAVE_OBSOLETE_ISINF and _GLIBCXX_HAVE_OBSOLETE_ISNAN,
349 respectively.
350
8dc781e4
JJ
3512016-01-27 Jakub Jelinek <jakub@redhat.com>
352
353 * testsuite/libstdc++-prettyprinters/whatis.cc: Include <random>.
354
bae87f7f
JW
3552016-01-27 Jonathan Wakely <jwakely@redhat.com>
356
357 PR libstdc++/69295
358 * testsuite/ext/special_functions/hyperg/check_value.cc: Use
359 -ffp-contract=off, and -ffloat-store to disable excess precision.
360 * testsuite/special_functions/02_assoc_legendre/check_value.cc: Use
361 -ffp-contract=off.
362
f1d591e8
JW
3632016-01-26 Jonathan Wakely <jwakely@redhat.com>
364
365 PR libstdc++/69478
366 * include/bits/stl_algobase.h (__copy_move<_IsMove, true,
367 random_access_iterator_tag>): Check is_move_assignable when moving.
368 (__copy_move_backwards<_IsMove, true, random_access_iterator_tag>):
369 Likewise.
370 * testsuite/25_algorithms/copy/move_iterators/69478.cc: New.
371 * testsuite/25_algorithms/copy_backward/move_iterators/69478.cc: New.
372 * testsuite/25_algorithms/move/69478.cc: New.
373 * testsuite/25_algorithms/move_backward/69478.cc: new.
374
8964d2a0
AP
3752016-01-26 Andris Pavenis <andris.pavenis@iki.fi>
376
377 * include/c_compatibility/stdlib.h: Include wide character related
378 definitions only when they are available in cstdlib.
379
2944621e
JW
3802016-01-25 Jonathan Wakely <jwakely@redhat.com>
381
382 PR libstdc++/69464
383 * include/Makefile.am: Add new header.
384 * include/Makefile.in: Regenerate.
385 * include/bits/random.h (uniform_int_distribution): Move to
386 bits/uniform_int_dist.h.
387 * include/bits/random.tcc (uniform_int_distribution::operator(),
388 uniform_int_distribution::__generate_impl): Likewise.
389 * include/bits/uniform_int_dist.h: New header.
390 * include/bits/stl_algo.h [__cplusplus >= 201103L]: Include
391 <bits/uniform_int_dist.h> instead of <random>.
392 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
393 move_iterators/1.cc: Include correct header for uninitialized_copy.
394 * testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
395 move_iterators/1.cc: Likewise.
396 * testsuite/25_algorithms/nth_element/58800.cc: Include correct
397 header for vector.
398 * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lines.
399
3676c087
JDA
4002016-01-23 John David Anglin <danglin@gcc.gnu.org>
401
402 PR libstdc++/69446
403 * config/os/hpux/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
404
02dc2419
ESR
4052016-01-22 Edward Smith-Rowland <3dw4rd@verizon.net>
406
407 TR29124 C++ Special Math - <math.h> pulls funcs into global namespace.
408 * include/c_compatibility/math.h: Import the TR29124 functions
409 into the global namespace.
410 * testsuite/special_functions/01_assoc_laguerre/compile_2.cc: Remove
411 xfail and make compile-only.
412 * testsuite/special_functions/02_assoc_legendre/compile_2.cc: Ditto.
413 * testsuite/special_functions/03_beta/compile_2.cc: Ditto.
414 * testsuite/special_functions/04_comp_ellint_1/compile_2.cc: Ditto.
415 * testsuite/special_functions/05_comp_ellint_2/compile_2.cc: Ditto.
416 * testsuite/special_functions/06_comp_ellint_3/compile_2.cc: Ditto.
417 * testsuite/special_functions/07_cyl_bessel_i/compile_2.cc: Ditto.
418 * testsuite/special_functions/08_cyl_bessel_j/compile_2.cc: Ditto.
419 * testsuite/special_functions/09_cyl_bessel_k/compile_2.cc: Ditto.
420 * testsuite/special_functions/10_cyl_neumann/compile_2.cc: Ditto.
421 * testsuite/special_functions/11_ellint_1/compile_2.cc: Ditto.
422 * testsuite/special_functions/12_ellint_2/compile_2.cc: Ditto.
423 * testsuite/special_functions/13_ellint_3/compile_2.cc: Ditto.
424 * testsuite/special_functions/14_expint/compile_2.cc: Ditto.
425 * testsuite/special_functions/15_hermite/compile_2.cc: Ditto.
426 * testsuite/special_functions/16_laguerre/compile_2.cc: Ditto.
427 * testsuite/special_functions/17_legendre/compile_2.cc: Ditto.
428 * testsuite/special_functions/18_riemann_zeta/compile_2.cc: Ditto.
429 * testsuite/special_functions/19_sph_bessel/compile_2.cc: Ditto.
430 * testsuite/special_functions/20_sph_legendre/compile_2.cc: Ditto.
431 * testsuite/special_functions/21_sph_neumann/compile_2.cc: Ditto.
432
350fe282
JW
4332016-01-22 Jonathan Wakely <jwakely@redhat.com>
434
d1fb377c
JW
435 PR libstdc++/69116
436 * include/bits/valarray_before.h (__fun, __fun_with_valarray): Only
437 define result_type for types which can be safely used with valarrays.
438 * testsuite/26_numerics/valarray/69116.cc: New.
439
350fe282
JW
440 PR libstdc++/69413
441 * config/os/gnu-linux/os_defines.h: Define
442 _GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC.
443 * include/c_global/cmath (isinf, isnan): Check it.
444 * doc/xml/manual/internals.xml: Document it.
445 * doc/html/*: Regenerate.
446
ab56cbed
JW
4472016-01-21 Jonathan Wakely <jwakely@redhat.com>
448
449 PR libstdc++/69406
450 * include/bits/cpp_type_traits.h: Ensure C++ language linkage.
451 * include/ext/type_traits.h: Likewise.
452 * testsuite/17_intro/headers/c++2011/linkage.cc: Check autoconf macros
453 for presence of C headers.
454 * testsuite/ext/type_traits/add_unsigned_floating_neg.cc: Adjust
455 dg-error line number.
456 * testsuite/ext/type_traits/add_unsigned_integer_neg.cc: Likewise.
457 * testsuite/ext/type_traits/remove_unsigned_floating_neg.cc: Likewise.
458 * testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: Likewise.
459
7e10bcfa
TR
4602016-01-20 Torvald Riegel <triegel@redhat.com>
461
462 PR libstdc++/69310
463 * config/os/bsd/darwin/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
464
eac437bf
JW
4652016-01-20 Jonathan Wakely <jwakely@redhat.com>
466
3f93466a
JW
467 PR libstdc++/60401
468 * include/c_compatibility/math.h (acosh, asinh, atanh, acbrt,
469 copysign, erf, erfc, exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb,
470 lgamma, llrint, llround, log1p, log2, logb, lrint, lround, nearbyint,
471 nextafter, nexttoward, remainder, remquo, rint, round, scalbln, scalbn,
472 tgamma, trunc) [__cplusplus >= 201103L && _GLIBCXX_USE_C99_MATH_TR1]:
473 Add using declarations.
474 * testsuite/26_numerics/headers/cmath/60401.cc: New.
475
eac437bf
JW
476 PR libstdc++/69386
477 * include/c_global/ccomplex: Ensure C++ language linkage.
478 * include/c_global/cmath: Likewise.
479 * include/c_global/cstdlib: Likewise.
480 * include/c_global/ctgmath: Likewise.
481 * testsuite/17_intro/headers/c++2011/linkage.cc: New.
482
96e19ada
JW
4832016-01-19 Jonathan Wakely <jwakely@redhat.com>
484
485 PR libstdc++/14608
486 PR libstdc++/60401
487 * include/Makefile.am: Use c_compatibility math.h and stdlib.h for
488 --enable-cheaders=c_global configs.
489 * include/Makefile.in: Regenerate.
490 * include/c_compatibility/math.h: Remove obsolete _GLIBCXX_NAMESPACE_C
491 test and allow inclusion from C files.
492 * include/c_compatibility/stdlib.h: Likewise. Support freestanding.
493 (at_quick_exit, quick_exit): Add using directives.
494 * include/c_global/cmath: Use #include_next for math.h.
495 * include/c_global/cstdlib: Use #include_next for stdlib.h.
496 * testsuite/26_numerics/headers/cmath/14608.cc: New.
497 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
498 Remove xfail for most targets.
499 * testsuite/26_numerics/headers/cstdlib/60401.cc: New.
500
9585381a
TR
5012016-01-18 Torvald Riegel <triegel@redhat.com>
502
503 * include/bits/c++config (_GLIBCXX_USE_WEAK_REF): New.
504 (_GLIBCXX_TXN_SAFE, _GLIBCXX_TXN_SAFE_DYN): Use _GLIBCXX_USE_WEAK_REF
505 and move after its definition.
506 * config/os/aix/os_defines.h (_GLIBCXX_USE_WEAK_REF): Override.
507 * src/c++11/cow-stdexcept.cc: Use _GLIBCXX_USE_WEAK_REF instead of
508 __GXX_WEAK__, and only provide transactional clones if
509 _GLIBCXX_USE_WEAK_REF is true. Don't provide stubs of libitm
510 functions.
511
f5460595
JW
5122016-01-18 Jonathan Wakely <jwakely@redhat.com>
513
c91bcffc
JW
514 PR libstdc++/60637
515 * testsuite/26_numerics/headers/cmath/60637.cc: Add test.
516
d75d9f91 517 PR libstdc++/69243
9c5ad80e
JW
518 * include/std/functional (_Function_base::_M_not_empty_function):
519 Change overloads for pointers to take arguments by value.
520 * testsuite/20_util/function/cons/57465.cc: Add tests for
521 pointer-to-member cases.
522
f5460595
JW
523 PR libstdc++/69340
524 * src/c++11/cow-stdexcept.cc (_txnal_cow_string_C1_for_exceptions):
525 Use macros for exception handling and fix unused parameter warning.
526
271366f6
JDA
5272016-01-17 John David Anglin <danglin@gcc.gnu.org>
528
529 PR libstdc++/68734
530 * config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
531
7a5d1d34
TR
5322016-01-17 Torvald Riegel <triegel@redhat.com>
533
534 * src/c++11/cow-stdexcept.cc (txnal_read_ptr): Fix static_assert.
535
5445d5bf
L
5362016-01-16 H.J. Lu <hongjiu.lu@intel.com>
537
538 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Add
539 __int128 symbols.
540
3d076231
JW
5412016-01-15 Jonathan Wakely <jwakely@redhat.com>
542
d7c1581c
JW
543 PR libstdc++/69293
544 * include/bits/uses_allocator.h (__uses_alloc<true, ...>): Add
545 static assertion that type is constructible from the arguments.
546 * testsuite/20_util/scoped_allocator/69293_neg.cc: New.
547 * testsuite/20_util/uses_allocator/69293_neg.cc: New.
548 * testsuite/20_util/uses_allocator/cons_neg.cc: Adjust dg-error.
549
3d076231
JW
550 PR libstdc++/69294
551 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Check for obsolete isinf
552 and isnan on AIX. Quote variables.
553 * configure: Regenerate.
554
a04d5fc9
TR
5552016-01-15 Torvald Riegel <triegel@redhat.com>
556
557 * include/bits/basic_string.h (basic_string): Declare friends.
558 * include/bits/c++config (_GLIBCXX_TXN_SAFE,
559 _GLIBCXX_TXN_SAFE_DYN, _GLIBCXX_USE_ALLOCATOR_NEW): New.
560 * include/std/stdexcept (logic_error, domain_error, invalid_argument,
561 length_error, out_of_range, runtime_error, range_error,
562 underflow_error, overflow_error): Declare members as transaction-safe.
563 (logic_error, runtime_error): Declare friend functions.
564 * libsupc++/exception (exception, bad_exception): Declare members as
565 transaction-safe.
566 * src/c++11/cow-stdexcept.cc: Define transactional clones for the
567 transaction-safe members of exceptions and helper functions.
568 * libsupc++/eh_exception.cc: Adjust and define transactional clones.
569 * config/abi/pre/gnu.ver (GLIBCXX_3.4.22) Add transactional clones.
570 (CXXABI_1.3.10): New.
571 * acinclude.m4 (GLIBCXX_CHECK_SIZE_T_MANGLING): New.
572 (GLIBCXX_ENABLE_ALLOCATOR): Set ENABLE_ALLOCATOR_NEW.
573 * configure.ac: Call GLIBCXX_CHECK_SIZE_T_MANGLING.
574 * include/Makefile.am: Write ENABLE_ALLOCATOR_NEW to c++config.h.
575 * include/Makefile.in: Regenerate.
576 * config.h.in: Regenerate.
577 * configure: Regenerate.
578 * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.10.
579
cebeb718
SE
5802016-01-15 Steve Ellcey <sellcey@imgtec.com>
581
582 * include/ext/random.tcc: Use __builtin_isfinite instead of
583 std::isfinite.
584
3b07547d
JW
5852016-01-15 Jonathan Wakely <jwakely@redhat.com>
586
587 * include/bits/std_mutex.h: Fix Doxygen @file name.
588
2be75957
ESR
5892016-01-14 Edward Smith-Rowland <3dw4rd@verizon.net>
590 Jonathan Wakely <jwakely@redhat.com>
591 Florian Goth <CaptainSifff@gmx.de>
592
593 Implement TR29124 C++ special Math Functions.
594 * include/Makefile.am: Add new headers.
595 * include/Makefile.in: Regenerate.
596 * include/bits/specfun.h: New.
597 * include/c_global/cmath: Adjust for both tr1 and tr29124 maths.
598 * include/tr1/bessel_function.tcc: Ditto.
599 * include/tr1/beta_function.tcc: Ditto.
600 * include/tr1/cmath: Ditto.
601 * include/tr1/ell_integral.tcc: Ditto.
602 * include/tr1/exp_integral.tcc: Ditto.
603 * include/tr1/gamma.tcc: Ditto.
604 * include/tr1/hypergeometric.tcc: Ditto.
605 * include/tr1/legendre_function.tcc: Ditto.
606 * include/tr1/modified_bessel_func.tcc: Ditto.
607 * include/tr1/poly_hermite.tcc: Ditto.
608 * include/tr1/poly_laguerre.tcc: Ditto.
609 * include/tr1/riemann_zeta.tcc: Ditto.
610 * include/tr1/special_function_util.h: Ditto.
611 * testsuite/ext/special_functions/conf_hyperg: New.
612 * testsuite/ext/special_functions/conf_hyperg/check_nan.cc: New.
613 * testsuite/ext/special_functions/conf_hyperg/check_value.cc: New.
614 * testsuite/ext/special_functions/conf_hyperg/compile.cc: New.
615 * testsuite/ext/special_functions/hyperg: New.
616 * testsuite/ext/special_functions/hyperg/check_nan.cc: New.
617 * testsuite/ext/special_functions/hyperg/check_value.cc: New.
618 * testsuite/ext/special_functions/hyperg/compile.cc: New.
619 * testsuite/libstdc++-dg/conformance.exp: Add special_functions directory.
620 * testsuite/special_functions/01_assoc_laguerre/check_nan.cc: New.
621 * testsuite/special_functions/01_assoc_laguerre/check_value.cc: New.
622 * testsuite/special_functions/01_assoc_laguerre/compile.cc: New.
623 * testsuite/special_functions/01_assoc_laguerre/compile_2.cc: New.
624 * testsuite/special_functions/02_assoc_legendre/check_nan.cc: New.
625 * testsuite/special_functions/02_assoc_legendre/check_value.cc: New.
626 * testsuite/special_functions/02_assoc_legendre/compile.cc: New.
627 * testsuite/special_functions/02_assoc_legendre/compile_2.cc: New.
628 * testsuite/special_functions/03_beta/check_nan.cc: New.
629 * testsuite/special_functions/03_beta/check_value.cc: New.
630 * testsuite/special_functions/03_beta/compile.cc: New.
631 * testsuite/special_functions/03_beta/compile_2.cc: New.
632 * testsuite/special_functions/04_comp_ellint_1/check_nan.cc: New.
633 * testsuite/special_functions/04_comp_ellint_1/check_value.cc: New.
634 * testsuite/special_functions/04_comp_ellint_1/compile.cc: New.
635 * testsuite/special_functions/04_comp_ellint_1/compile_2.cc: New.
636 * testsuite/special_functions/05_comp_ellint_2/check_nan.cc: New.
637 * testsuite/special_functions/05_comp_ellint_2/check_value.cc: New.
638 * testsuite/special_functions/05_comp_ellint_2/compile.cc: New.
639 * testsuite/special_functions/05_comp_ellint_2/compile_2.cc: New.
640 * testsuite/special_functions/06_comp_ellint_3/check_nan.cc: New.
641 * testsuite/special_functions/06_comp_ellint_3/check_value.cc: New.
642 * testsuite/special_functions/06_comp_ellint_3/compile.cc: New.
643 * testsuite/special_functions/06_comp_ellint_3/compile_2.cc: New.
644 * testsuite/special_functions/07_cyl_bessel_i/check_nan.cc: New.
645 * testsuite/special_functions/07_cyl_bessel_i/check_value.cc: New.
646 * testsuite/special_functions/07_cyl_bessel_i/compile.cc: New.
647 * testsuite/special_functions/07_cyl_bessel_i/compile_2.cc: New.
648 * testsuite/special_functions/07_cyl_bessel_i/pr56216.cc: New.
649 * testsuite/special_functions/08_cyl_bessel_j/check_nan.cc: New.
650 * testsuite/special_functions/08_cyl_bessel_j/check_value.cc: New.
651 * testsuite/special_functions/08_cyl_bessel_j/compile.cc: New.
652 * testsuite/special_functions/08_cyl_bessel_j/compile_2.cc: New.
653 * testsuite/special_functions/09_cyl_bessel_k/check_nan.cc: New.
654 * testsuite/special_functions/09_cyl_bessel_k/check_value.cc: New.
655 * testsuite/special_functions/09_cyl_bessel_k/compile.cc: New.
656 * testsuite/special_functions/09_cyl_bessel_k/compile_2.cc: New.
657 * testsuite/special_functions/10_cyl_neumann/check_nan.cc: New.
658 * testsuite/special_functions/10_cyl_neumann/check_value.cc: New.
659 * testsuite/special_functions/10_cyl_neumann/compile.cc: New.
660 * testsuite/special_functions/10_cyl_neumann/compile_2.cc: New.
661 * testsuite/special_functions/11_ellint_1/check_nan.cc: New.
662 * testsuite/special_functions/11_ellint_1/check_value.cc: New.
663 * testsuite/special_functions/11_ellint_1/compile.cc: New.
664 * testsuite/special_functions/11_ellint_1/compile_2.cc: New.
665 * testsuite/special_functions/12_ellint_2/check_nan.cc: New.
666 * testsuite/special_functions/12_ellint_2/check_value.cc: New.
667 * testsuite/special_functions/12_ellint_2/compile.cc: New.
668 * testsuite/special_functions/12_ellint_2/compile_2.cc: New.
669 * testsuite/special_functions/13_ellint_3/check_nan.cc: New.
670 * testsuite/special_functions/13_ellint_3/check_value.cc: New.
671 * testsuite/special_functions/13_ellint_3/compile.cc: New.
672 * testsuite/special_functions/13_ellint_3/compile_2.cc: New.
673 * testsuite/special_functions/14_expint/check_nan.cc: New.
674 * testsuite/special_functions/14_expint/check_value.cc: New.
675 * testsuite/special_functions/14_expint/compile.cc: New.
676 * testsuite/special_functions/14_expint/compile_2.cc: New.
677 * testsuite/special_functions/15_hermite/check_nan.cc: New.
678 * testsuite/special_functions/15_hermite/check_value.cc: New.
679 * testsuite/special_functions/15_hermite/compile.cc: New.
680 * testsuite/special_functions/15_hermite/compile_2.cc: New.
681 * testsuite/special_functions/16_laguerre/check_nan.cc: New.
682 * testsuite/special_functions/16_laguerre/check_value.cc: New.
683 * testsuite/special_functions/16_laguerre/compile.cc: New.
684 * testsuite/special_functions/16_laguerre/compile_2.cc: New.
685 * testsuite/special_functions/17_legendre/check_nan.cc: New.
686 * testsuite/special_functions/17_legendre/check_value.cc: New.
687 * testsuite/special_functions/17_legendre/compile.cc: New.
688 * testsuite/special_functions/17_legendre/compile_2.cc: New.
689 * testsuite/special_functions/18_riemann_zeta/check_nan.cc: New.
690 * testsuite/special_functions/18_riemann_zeta/check_value.cc: New.
691 * testsuite/special_functions/18_riemann_zeta/compile.cc: New.
692 * testsuite/special_functions/18_riemann_zeta/compile_2.cc: New.
693 * testsuite/special_functions/19_sph_bessel/check_nan.cc: New.
694 * testsuite/special_functions/19_sph_bessel/check_value.cc: New.
695 * testsuite/special_functions/19_sph_bessel/compile.cc: New.
696 * testsuite/special_functions/19_sph_bessel/compile_2.cc: New.
697 * testsuite/special_functions/20_sph_legendre/check_nan.cc: New.
698 * testsuite/special_functions/20_sph_legendre/check_value.cc: New.
699 * testsuite/special_functions/20_sph_legendre/compile.cc: New.
700 * testsuite/special_functions/20_sph_legendre/compile_2.cc: New.
701 * testsuite/special_functions/21_sph_neumann/check_nan.cc: New.
702 * testsuite/special_functions/21_sph_neumann/check_value.cc: New.
703 * testsuite/special_functions/21_sph_neumann/compile.cc: New.
704 * testsuite/special_functions/21_sph_neumann/compile_2.cc: New.
705 * testsuite/util/specfun_testcase.h: New.
706 * testsuite/tr1/5_numerical_facilities/special_functions/08_cyl_bessel_i/check_value.cc: More testcases.
707 * testsuite/tr1/5_numerical_facilities/special_functions/09_cyl_bessel_j/check_value.cc: Ditto.
708 * testsuite/tr1/5_numerical_facilities/special_functions/10_cyl_bessel_k/check_value.cc: Ditto.
709 * testsuite/tr1/5_numerical_facilities/special_functions/11_cyl_neumann/check_value.cc: Ditto.
710 * testsuite/tr1/5_numerical_facilities/special_functions/21_sph_bessel/check_value.cc: Ditto.
711 * testsuite/tr1/5_numerical_facilities/special_functions/23_sph_neumann/check_value.cc: Ditto.
712 * testsuite/tr1/5_numerical_facilities/special_functions/16_hermite/check_value.cc: New.
713
39a1d8c8
JW
7142016-01-13 Jonathan Wakely <jwakely@redhat.com>
715
716 PR libstdc++/48891
717 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Check for obsolete isinf
718 and isnan functions.
719 * config.h.in: Regenerate.
720 * configure: Regenerate.
721 * include/c_global/cmath (isinf(double), isnan(double))
722 [_GLIBCXX_HAVE_OBSOLETE_ISINF_ISNAN]: Import via using-directive.
723 * testsuite/26_numerics/headers/cmath/48891.cc: New.
724
e862906c
RO
7252016-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
726
727 PR libstdc++/66006
728 * configure.host (abi_baseline_pair): Use separate baseline for
729 Solaris 11+ and Solaris 10 with gld.
730 * config/abi/post/solaris2.11/amd64/baseline_symbols.txt: New file.
731 * config/abi/post/solaris2.11/baseline_symbols.txt: New file.
732 * config/abi/post/solaris2.11/sparcv9/baseline_symbols.txt: New file.
733
26b5ace7
DK
7342016-01-12 Daniel Kruegler <daniel.kruegler@gmail.com>
735
736 PR libstdc++/68877
737 * include/std/type_traits: Following N4511, reimplement __is_swappable
738 and __is_nothrow_swappable. Move __is_swappable to namespace std,
739 adjust callers. Use __is_nothrow_swappable in swap.
740 * include/bits/move.h: Use __is_nothrow_swappable in swap.
741 * testsuite/20_util/is_nothrow_swappable/value.cc: Extend; remove
742 __is_swappable related tests.
743 * testsuite/20_util/is_swappable/value.cc: New.
744 * testsuite/20_util/is_swappable/requirements/
745 explicit_instantiation.cc: New.
746 * testsuite/20_util/is_swappable/requirements/typedefs.cc: New.
747 * testsuite/25_algorithms/swap/68877.cc: New.
748
1c3c7c41
JW
7492016-01-12 Jonathan Wakely <jwakely@redhat.com>
750
bd285a8b
JW
751 * testsuite/20_util/function/68995.cc: Test reference_wrapper cases.
752
1c3c7c41
JW
753 PR libstdc++/69005
754 PR libstdc++/69222
755 * include/std/functional (function::_Invoke): Remove, use result_of.
756 (function::_Callable): Replace alias template with class template
757 and use partial specialization instead of _NotSelf alias template.
758 (function(_Functor)): Add "not self" constraint so that _Callable is
759 not used while type is incomplete.
760 * testsuite/20_util/function/69222.cc: New.
761
1517bc30
JW
7622016-01-11 Jonathan Wakely <jwakely@redhat.com>
763
764 PR libstdc++/60976
765 * include/bits/alloc_traits.h (allocator_traits<allocator<_Tp>>):
766 Define partial specialization.
767 * testsuite/20_util/shared_ptr/cons/58659.cc: Add construct and
768 destroy members to std::allocator explicit specialization.
769
e525d78c
JW
7702016-01-08 Jonathan Wakely <jwakely@redhat.com>
771
8babc12b
JW
772 * testsuite/26_numerics/headers/cmath/
773 c99_classification_macros_c++.cc: Rename to ...
774 * testsuite/26_numerics/headers/cmath/
775 c99_classification_macros_c++98.cc: Here and add -std=gnu++98.
776 * testsuite/26_numerics/headers/cmath/
777 c99_classification_macros_c++0x.cc: Rename to ...
778 * testsuite/26_numerics/headers/cmath/
779 c99_classification_macros_c++11.cc: Here.
780
32a8c97f 781 PR libstdc++/69190
e525d78c
JW
782 * include/bits/uses_allocator.h: Add missing include.
783
f885fa89
JW
7842016-01-07 Jonathan Wakely <jwakely@redhat.com>
785
786 PR libstdc++/69105
787 PR libstdc++/69106
788 PR libstdc++/69114
789 * include/bits/stl_iterator.h (back_insert_iterator,
790 front_insert_iterator, insert_iterator): Use __addressof (LWG 2324).
791 * include/bits/uses_allocator.h (__use_alloc): Use __addressof.
792 * include/std/future (__future::base::_State_baseV2::__setter):
793 Likewise.
794 * include/std/scoped_allocator (__outermost): Likewise.
795 * testsuite/20_util/scoped_allocator/69114.cc: New.
796 * testsuite/20_util/uses_allocator/69114.cc: New.
797 * testsuite/30_threads/promise/69106.cc: New.
798
0c3e5dd1
JW
7992016-01-06 Jonathan Wakely <jwakely@redhat.com>
800
373a75fb
JW
801 PR libstdc++/69092
802 * include/bits/basic_string.h (basic_string::_S_copy_chars<_Iterator>):
803 Remove _GLIBCXX_NOEXCEPT.
804 testsuite/21_strings/basic_string/cons/char/69092.cc: New.
805
0c3e5dd1
JW
806 * include/Makefile.am: Adjust.
807 * include/Makefile.in: Regenerate.
808 * include/bits/mutex.h: Rename to bits/std_mutex.h.
809 * include/std/condition_variable: Adjust include.
810 * include/std/mutex: Likewise.
811
818ab71a 8122016-01-04 Jakub Jelinek <jakub@redhat.com>
5624e564
JJ
813
814 Update copyright years.
b4df5e92 815\f
818ab71a 816Copyright (C) 2016 Free Software Foundation, Inc.
b4df5e92
JW
817
818Copying and distribution of this file, with or without modification,
819are permitted in any medium without royalty provided the copyright
820notice and this notice are preserved.