1 2015-12-01 Jonathan Wakely <jwakely@redhat.com>
3 * include/experimental/bits/fs_path.h (path::_Cmpt): Move definition
4 after __is_encoded_char explicit specializations.
6 2015-11-26 Jonathan Wakely <jwakely@redhat.com>
8 * testsuite/libstdc++-prettyprinters/debug.cc: Add -std=gnu++98 to
9 dg-options and avoid use of uniform-init.
11 * testsuite/libstdc++-prettyprinters/simple.cc: Add -std=gnu++98 to
12 dg-options and avoid use of uniform-init.
14 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
16 * configure: Regenerate.
18 2015-11-25 Jonathan Wakely <jwakely@redhat.com>
20 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Explicitly
21 check minimum and maximum values, and size of underlying type.
22 * testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
23 * testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
25 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY) <solaris2*>: Use
28 -Wl,-R in VTV_CXXLINKFLAGS.
29 * configure: Regenerate.
31 * testsuite/18_support/bad_exception/23591_thread-1.c: Use
32 -fvtable-verify=none on Solaris 12+.
34 2015-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): New test.
37 * configure.ac: Use it.
38 * configure: Regenerate.
39 * config.h.in: Regenerate.
41 * include/c_global/cmath [__cplusplus >= 201103L]
42 (std::fpclassify): Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO.
43 (std::isfinite): Likewise.
44 (std::isinf): Likewise.
45 (std::isnan): Likewise.
46 (std::isnormal): Likewise.
47 (std::signbit): Likewise.
48 (std::isgreater): Likewise.
49 (std::isgreaterequal): Likewise.
50 (std::isless): Likewise.
51 (std::islessequal): Likewise.
52 (std::islessgreater): Likewise.
53 (std::isunordered): Likewise.
54 (std::acosh): Likewise.
55 (std::asinh): Likewise.
56 (std::atanh): Likewise.
57 (std::cbrt): Likewise.
58 (std::copysign): Likewise.
60 (std::erfc): Likewise.
61 (std::exp2): Likewise.
62 (std::expm1): Likewise.
63 (std::fdim): Likewise.
65 (std::fmax): Likewise.
66 (std::fmin): Likewise.
67 (std::hypot): Likewise.
68 (std::ilogb): Likewise.
69 (std::lgamma): Likewise.
70 (std::llrint): Likewise.
71 (std::llround): Likewise.
72 (std::log1p): Likewise.
73 (std::log2): Likewise.
74 (std::logb): Likewise.
75 (std::lrint): Likewise.
76 (std::lround): Likewise.
77 (std::nearbyint): Likewise.
78 (std::nextafter): Likewise.
79 (std::nexttoward): Likewise.
80 (std::remainder): Likewise.
81 (std::remquo): Likewise.
82 (std::rint): Likewise.
83 (std::round): Likewise.
84 (std::scalbln): Likewise.
85 (std::scalbn): Likewise.
86 (std::tgamma): Likewise.
87 (std::trunc): Likewise.
88 * include/tr1/cmath [_GLIBCXX_USE_C99_MATH_TR1] (std::tr1::acosh):
89 Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO.
90 (std::tr1::asinh): Likewise.
91 (std::tr1::atanh): Likewise.
92 (std::tr1::cbrt): Likewise.
93 (std::tr1::copysign): Likewise.
94 (std::tr1::erf): Likewise.
95 (std::tr1::erfc): Likewise.
96 (std::tr1::exp2): Likewise.
97 (std::tr1::expm1): Likewise.
98 (std::tr1::fabs): Likewise.
99 (std::tr1::fdim): Likewise.
100 (std::tr1::fma): Likewise.
101 (std::tr1::fmax): Likewise.
102 (std::tr1::fmin): Likewise.
103 (std::tr1::hypot): Likewise.
104 (std::tr1::ilogb): Likewise.
105 (std::tr1::lgamma): Likewise.
106 (std::tr1::llrint): Likewise.
107 (std::tr1::llround): Likewise.
108 (std::tr1::log1p): Likewise.
109 (std::tr1::log2): Likewise.
110 (std::tr1::logb): Likewise.
111 (std::tr1::lrint): Likewise.
112 (std::tr1::lround): Likewise.
113 (std::tr1::nearbyint): Likewise.
114 (std::tr1::nextafter): Likewise.
115 (std::tr1::nexttoward): Likewise.
116 (std::tr1::remainder): Likewise.
117 (std::tr1::remquo): Likewise.
118 (std::tr1::rint): Likewise.
119 (std::tr1::scalbln): Likewise.
120 (std::tr1::scalbn): Likewise.
121 (std::tr1::tgamma): Likewise.
122 (std::tr1::trunc): Likewise.
123 (std::tr1::pow): Likewise.
125 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
126 Restrict dg-xfail-if, dg-excess-errors to *-*-solaris2.1[01]*.
128 2015-11-21 David Edelsohn <dje.gcc@gmail.com>
130 * testsuite/23_containers/vector/profile/vector.cc: Add maxdata
133 2015-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
136 * python/hook.in: Call register_libstdcxx_printers.
137 * python/libstdcxx/v6/__init__.py: Wrap it to
138 register_libstdcxx_printers.
140 2015-11-17 Jonathan Wakely <jwakely@redhat.com>
143 * include/std/utility (_Build_index_tuple): Optimise.
145 2015-11-16 Doug Evans <dje@google.com>
148 * python/libstdcxx/v6/printers.py (find_type): Handle "const" in
150 * testsuite/libstdc++-prettyprinters/debug.cc: Add test for
152 * testsuite/libstdc++-prettyprinters/simple.cc: Ditto.
153 * testsuite/libstdc++-prettyprinters/simple11.cc: Ditto.
155 2015-11-15 Jonathan Wakely <jwakely@redhat.com>
158 * include/bits/basic_string.h: Test value of _GLIBCXX_USE_C99_WCHAR
159 not whether it is defined.
160 * include/ext/vstring.h: Likewise.
162 2015-11-14 Andreas Tobler <andreast@gcc.gnu.org>
164 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Change locale implementation
165 from darwin to DragonFly.
166 * configure: Regenerate.
167 * config/os/bsd/freebsd/ctype_configure_char.cc: Improve locale
168 support, do it the same as DragonFly.
169 * config/os/bsd/freebsd/os_defines.h: Add fine grained C99 defines.
171 2015-11-14 Jonathan Wakely <jwakely@redhat.com>
173 * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
174 real minimum capacity.
175 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc:
178 2015-11-13 David Edelsohn <dje.gcc@gmail.com>
180 * testsuite/experimental/random/randint.cc: Add dg-add-options tls.
182 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
184 * include/Makefile.am: Add new header.
185 * include/Makefile.in: Regenerate.
186 * include/experimental/random: New.
187 * testsuite/experimental/random/randint.cc: New.
189 2015-11-13 John Marino <gnugcc@marino.st>
191 * testsuite/22_locale/codecvt/always_noconv/char/wrapped_env.cc:
192 Use portable locale name
193 * testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc:
195 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Likewise.
196 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Likewise.
197 * testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc:
199 * testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc:
201 * testsuite/22_locale/codecvt/encoding/char/wrapped_env.cc: Likewise.
202 * testsuite/22_locale/codecvt/encoding/char/wrapped_locale.cc:
204 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Likewise.
205 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Likewise.
206 * testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_env.cc:
208 * testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc:
210 * testsuite/22_locale/codecvt/in/char/wrapped_env.cc: Likewise.
211 * testsuite/22_locale/codecvt/in/char/wrapped_locale.cc: Likewise.
212 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Likewise.
213 * testsuite/22_locale/codecvt/in/wchar_t/wrapped_env.cc: Likewise.
214 * testsuite/22_locale/codecvt/in/wchar_t/wrapped_locale.cc: Likewise.
215 * testsuite/22_locale/codecvt/length/char/wrapped_env.cc: Likewise.
216 * testsuite/22_locale/codecvt/length/char/wrapped_locale.cc: Likewise.
217 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Likewise.
218 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Likewise.
219 * testsuite/22_locale/codecvt/length/wchar_t/wrapped_env.cc: Likewise.
220 * testsuite/22_locale/codecvt/length/wchar_t/wrapped_locale.cc:
222 * testsuite/22_locale/codecvt/max_length/char/wrapped_env.cc: Likewise.
223 * testsuite/22_locale/codecvt/max_length/char/wrapped_locale.cc:
225 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Likewise.
226 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Likewise.
227 * testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_env.cc:
229 * testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc:
231 * testsuite/22_locale/codecvt/out/char/wrapped_env.cc: Likewise.
232 * testsuite/22_locale/codecvt/out/char/wrapped_locale.cc: Likewise.
233 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Likewise.
234 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Likewise.
235 * testsuite/22_locale/codecvt/out/wchar_t/wrapped_env.cc: Likewise.
236 * testsuite/22_locale/codecvt/out/wchar_t/wrapped_locale.cc: Likewise.
237 * testsuite/22_locale/codecvt/unshift/char/wrapped_env.cc: Likewise.
238 * testsuite/22_locale/codecvt/unshift/char/wrapped_locale.cc: Likewise.
239 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.
240 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.
241 * testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: Likewise.
242 * testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc:
244 * testsuite/22_locale/codecvt_byname/50714.cc: Likewise.
245 * testsuite/22_locale/collate/compare/char/1.cc: Likewise.
246 * testsuite/22_locale/collate/compare/char/2.cc: Likewise.
247 * testsuite/22_locale/collate/compare/char/3.cc: Likewise.
248 * testsuite/22_locale/collate/compare/char/wrapped_env.cc: Likewise.
249 * testsuite/22_locale/collate/compare/char/wrapped_locale.cc: Likewise.
250 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Likewise.
251 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Likewise.
252 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Likewise.
253 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Likewise.
254 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc:
256 * testsuite/22_locale/collate/hash/char/2.cc: Likewise.
257 * testsuite/22_locale/collate/hash/char/wrapped_env.cc: Likewise.
258 * testsuite/22_locale/collate/hash/char/wrapped_locale.cc: Likewise.
259 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Likewise.
260 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Likewise.
261 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Likewise.
262 * testsuite/22_locale/collate/transform/char/2.cc: Likewise.
263 * testsuite/22_locale/collate/transform/char/3.cc: Likewise.
264 * testsuite/22_locale/collate/transform/char/wrapped_env.cc: Likewise.
265 * testsuite/22_locale/collate/transform/char/wrapped_locale.cc:
267 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Likewise.
268 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Likewise.
269 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc:
271 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
273 * testsuite/22_locale/collate_byname/named_equivalence.cc: Likewise.
274 * testsuite/22_locale/ctype/cons/char/wrapped_env.cc: Likewise.
275 * testsuite/22_locale/ctype/cons/char/wrapped_locale.cc: Likewise.
276 * testsuite/22_locale/ctype/is/char/2.cc: Likewise.
277 * testsuite/22_locale/ctype/is/char/wrapped_env.cc: Likewise.
278 * testsuite/22_locale/ctype/is/char/wrapped_locale.cc: Likewise.
279 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
280 * testsuite/22_locale/ctype/is/wchar_t/wrapped_env.cc: Likewise.
281 * testsuite/22_locale/ctype/is/wchar_t/wrapped_locale.cc: Likewise.
282 * testsuite/22_locale/ctype/narrow/char/wrapped_env.cc: Likewise.
283 * testsuite/22_locale/ctype/narrow/char/wrapped_locale.cc: Likewise.
284 * testsuite/22_locale/ctype/narrow/wchar_t/wrapped_env.cc: Likewise.
285 * testsuite/22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: Likewise.
286 * testsuite/22_locale/ctype/scan/char/wrapped_env.cc: Likewise.
287 * testsuite/22_locale/ctype/scan/char/wrapped_locale.cc: Likewise.
288 * testsuite/22_locale/ctype/scan/wchar_t/wrapped_env.cc: Likewise.
289 * testsuite/22_locale/ctype/scan/wchar_t/wrapped_locale.cc: Likewise.
290 * testsuite/22_locale/ctype/to/char/wrapped_env.cc: Likewise.
291 * testsuite/22_locale/ctype/to/char/wrapped_locale.cc: Likewise.
292 * testsuite/22_locale/ctype/to/wchar_t/wrapped_env.cc: Likewise.
293 * testsuite/22_locale/ctype/to/wchar_t/wrapped_locale.cc: Likewise.
294 * testsuite/22_locale/ctype/widen/char/wrapped_env.cc: Likewise.
295 * testsuite/22_locale/ctype/widen/char/wrapped_locale.cc: Likewise.
296 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Likewise.
297 * testsuite/22_locale/ctype/widen/wchar_t/wrapped_env.cc: Likewise.
298 * testsuite/22_locale/ctype/widen/wchar_t/wrapped_locale.cc: Likewise.
299 * testsuite/22_locale/facet/2.cc: Likewise.
300 * testsuite/22_locale/locale/cons/12352.cc: Likewise.
301 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
302 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
303 * testsuite/22_locale/locale/cons/2.cc: Likewise.
304 * testsuite/22_locale/locale/cons/38365.cc: Likewise.
305 * testsuite/22_locale/locale/cons/38368.cc: Likewise.
306 * testsuite/22_locale/locale/cons/4.cc: Likewise.
307 * testsuite/22_locale/locale/cons/40184.cc: Likewise.
308 * testsuite/22_locale/locale/cons/7.cc: Likewise.
309 * testsuite/22_locale/locale/global_locale_objects/14071.cc: Likewise.
310 * testsuite/22_locale/locale/global_locale_objects/2.cc: Likewise.
311 * testsuite/22_locale/messages/13631.cc: Likewise.
312 * testsuite/22_locale/messages/members/char/1.cc: Likewise.
313 * testsuite/22_locale/messages/members/char/2.cc: Likewise.
314 * testsuite/22_locale/messages/members/char/3.cc: Likewise.
315 * testsuite/22_locale/messages/members/char/wrapped_env.cc: Likewise.
316 * testsuite/22_locale/messages/members/char/wrapped_locale.cc:
318 * testsuite/22_locale/messages_byname/named_equivalence.cc: Likewise.
319 * testsuite/22_locale/money_get/get/char/1.cc: Likewise.
320 * testsuite/22_locale/money_get/get/char/10.cc: Likewise.
321 * testsuite/22_locale/money_get/get/char/11.cc: Likewise.
322 * testsuite/22_locale/money_get/get/char/11528.cc: Likewise.
323 * testsuite/22_locale/money_get/get/char/12.cc: Likewise.
324 * testsuite/22_locale/money_get/get/char/13.cc: Likewise.
325 * testsuite/22_locale/money_get/get/char/15.cc: Likewise.
326 * testsuite/22_locale/money_get/get/char/16.cc: Likewise.
327 * testsuite/22_locale/money_get/get/char/17.cc: Likewise.
328 * testsuite/22_locale/money_get/get/char/18.cc: Likewise.
329 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
330 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
331 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
332 * testsuite/22_locale/money_get/get/char/wrapped_env.cc: Likewise.
333 * testsuite/22_locale/money_get/get/char/wrapped_locale.cc: Likewise.
334 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
335 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Likewise.
336 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Likewise.
337 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Likewise.
338 * testsuite/22_locale/money_get/get/wchar_t/12.cc: Likewise.
339 * testsuite/22_locale/money_get/get/wchar_t/13.cc: Likewise.
340 * testsuite/22_locale/money_get/get/wchar_t/15.cc: Likewise.
341 * testsuite/22_locale/money_get/get/wchar_t/16.cc: Likewise.
342 * testsuite/22_locale/money_get/get/wchar_t/17.cc: Likewise.
343 * testsuite/22_locale/money_get/get/wchar_t/18.cc: Likewise.
344 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
345 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
346 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
347 * testsuite/22_locale/money_get/get/wchar_t/wrapped_env.cc: Likewise.
348 * testsuite/22_locale/money_get/get/wchar_t/wrapped_locale.cc:
350 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
351 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
352 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
353 * testsuite/22_locale/money_put/put/char/9780-3.cc: Likewise.
354 * testsuite/22_locale/money_put/put/char/wrapped_env.cc: Likewise.
355 * testsuite/22_locale/money_put/put/char/wrapped_locale.cc: Likewise.
356 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
357 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
358 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
359 * testsuite/22_locale/money_put/put/wchar_t/wrapped_env.cc: Likewise.
360 * testsuite/22_locale/money_put/put/wchar_t/wrapped_locale.cc:
362 * testsuite/22_locale/moneypunct/40712.cc: Likewise.
363 * testsuite/22_locale/moneypunct/members/char/2.cc: Likewise.
364 * testsuite/22_locale/moneypunct/members/char/wrapped_env.cc:
366 * testsuite/22_locale/moneypunct/members/char/wrapped_locale.cc:
368 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Likewise.
369 * testsuite/22_locale/moneypunct/members/wchar_t/wrapped_env.cc:
371 * testsuite/22_locale/moneypunct/members/wchar_t/wrapped_locale.cc:
373 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc:
375 * testsuite/22_locale/num_get/get/char/1.cc: Likewise.
376 * testsuite/22_locale/num_get/get/char/3.cc: Likewise.
377 * testsuite/22_locale/num_get/get/char/5.cc: Likewise.
378 * testsuite/22_locale/num_get/get/char/6.cc: Likewise.
379 * testsuite/22_locale/num_get/get/char/9.cc: Likewise.
380 * testsuite/22_locale/num_get/get/char/wrapped_env.cc: Likewise.
381 * testsuite/22_locale/num_get/get/char/wrapped_locale.cc: Likewise.
382 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.
383 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Likewise.
384 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Likewise.
385 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Likewise.
386 * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
387 * testsuite/22_locale/num_get/get/wchar_t/wrapped_env.cc: Likewise.
388 * testsuite/22_locale/num_get/get/wchar_t/wrapped_locale.cc: Likewise.
389 * testsuite/22_locale/num_put/put/char/1.cc: Likewise.
390 * testsuite/22_locale/num_put/put/char/20909.cc: Likewise.
391 * testsuite/22_locale/num_put/put/char/20914.cc: Likewise.
392 * testsuite/22_locale/num_put/put/char/3.cc: Likewise.
393 * testsuite/22_locale/num_put/put/char/5.cc: Likewise.
394 * testsuite/22_locale/num_put/put/char/9780-2.cc: Likewise.
395 * testsuite/22_locale/num_put/put/char/wrapped_env.cc: Likewise.
396 * testsuite/22_locale/num_put/put/char/wrapped_locale.cc: Likewise.
397 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise.
398 * testsuite/22_locale/num_put/put/wchar_t/20909.cc: Likewise.
399 * testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.
400 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
401 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
402 * testsuite/22_locale/num_put/put/wchar_t/wrapped_env.cc: Likewise.
403 * testsuite/22_locale/num_put/put/wchar_t/wrapped_locale.cc: Likewise.
404 * testsuite/22_locale/numpunct/members/char/2.cc: Likewise.
405 * testsuite/22_locale/numpunct/members/char/3.cc: Likewise.
406 * testsuite/22_locale/numpunct/members/char/wrapped_env.cc: Likewise.
407 * testsuite/22_locale/numpunct/members/char/wrapped_locale.cc:
409 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.
410 * testsuite/22_locale/numpunct/members/wchar_t/wrapped_env.cc:
412 * testsuite/22_locale/numpunct/members/wchar_t/wrapped_locale.cc:
414 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: Likewise.
415 * testsuite/22_locale/time_get/date_order/char/wrapped_env.cc:
417 * testsuite/22_locale/time_get/date_order/char/wrapped_locale.cc:
419 * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_env.cc:
421 * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_locale.cc:
423 * testsuite/22_locale/time_get/get/char/2.cc: Likewise.
424 * testsuite/22_locale/time_get/get/wchar_t/2.cc: Likewise.
425 * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
426 * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
427 * testsuite/22_locale/time_get/get_date/char/26701.cc: Likewise.
428 * testsuite/22_locale/time_get/get_date/char/wrapped_env.cc: Likewise.
429 * testsuite/22_locale/time_get/get_date/char/wrapped_locale.cc:
431 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
432 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
433 * testsuite/22_locale/time_get/get_date/wchar_t/26701.cc: Likewise.
434 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Likewise.
435 * testsuite/22_locale/time_get/get_date/wchar_t/wrapped_env.cc:
437 * testsuite/22_locale/time_get/get_date/wchar_t/wrapped_locale.cc:
439 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
440 * testsuite/22_locale/time_get/get_monthname/char/wrapped_env.cc:
442 * testsuite/22_locale/time_get/get_monthname/char/wrapped_locale.cc:
444 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
445 * testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc:
447 * testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc:
449 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
450 * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
451 * testsuite/22_locale/time_get/get_time/char/wrapped_env.cc:
453 * testsuite/22_locale/time_get/get_time/char/wrapped_locale.cc:
455 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
456 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
457 * testsuite/22_locale/time_get/get_time/wchar_t/wrapped_env.cc:
459 * testsuite/22_locale/time_get/get_time/wchar_t/wrapped_locale.cc:
461 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
462 * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc: Likewise.
463 * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc: Likewise.
464 * testsuite/22_locale/time_get/get_weekday/char/wrapped_env.cc:
466 * testsuite/22_locale/time_get/get_weekday/char/wrapped_locale.cc:
468 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
469 * testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc:
471 * testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc:
473 * testsuite/22_locale/time_get/get_year/char/wrapped_env.cc: Likewise.
474 * testsuite/22_locale/time_get/get_year/char/wrapped_locale.cc:
476 * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_env.cc:
478 * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_locale.cc:
480 * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
481 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
482 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
483 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
484 * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
485 * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
486 * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
487 * testsuite/22_locale/time_put/put/char/9780-1.cc: Likewise.
488 * testsuite/22_locale/time_put/put/char/wrapped_env.cc: Likewise.
489 * testsuite/22_locale/time_put/put/char/wrapped_locale.cc: Likewise.
490 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
491 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
492 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
493 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
494 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
495 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
496 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
497 * testsuite/22_locale/time_put/put/wchar_t/wrapped_env.cc: Likewise.
498 * testsuite/22_locale/time_put/put/wchar_t/wrapped_locale.cc: Likewise.
499 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: Likewise.
500 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: Likewise.
501 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
502 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Likewise.
503 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
504 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: Likewise.
505 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Likewise.
506 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Likewise.
507 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: Likewise.
508 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: Likewise.
509 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
510 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Likewise.
511 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
512 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
513 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: Likewise.
514 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: Likewise.
515 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Likewise.
516 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
518 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/2.cc:
520 * testsuite/27_io/basic_streambuf/cons/57394.cc: Likewise.
521 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: Likewise.
522 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Likewise.
523 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: Likewise.
524 * testsuite/27_io/basic_streambuf/imbue/wchar_t/9322.cc: Likewise.
525 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Likewise.
526 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/9322.cc: Likewise.
527 * testsuite/27_io/manipulators/extended/get_money/char/1.cc: Likewise.
528 * testsuite/27_io/manipulators/extended/get_money/wchar_t/1.cc:
530 * testsuite/27_io/manipulators/extended/get_time/char/2.cc: Likewise.
531 * testsuite/27_io/manipulators/extended/get_time/wchar_t/2.cc:
533 * testsuite/27_io/manipulators/extended/put_money/char/1.cc: Likewise.
534 * testsuite/27_io/manipulators/extended/put_money/wchar_t/1.cc:
536 * testsuite/27_io/manipulators/extended/put_time/char/2.cc: Likewise.
537 * testsuite/27_io/manipulators/extended/put_time/wchar_t/2.cc:
539 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Likewise.
540 * testsuite/27_io/objects/wchar_t/9520.cc: Likewise.
541 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Check
542 for named locale as appropriate for target.
543 * testsuite/util/testsuite_hooks.h (ISO_8859): Define macro to form
544 target's preferred form of locale name.
546 2015-11-13 Jennifer Yao <jenny.hyphen.fa@gmail.com>
547 Jonathan Wakely <jwakely@redhat.com>
551 * acinclude.m4 (GLIBCXX_ENABLE_C99): Perform tests twice, with
552 -std=c++11 as well as -std=c++98, and define separate macros for each.
553 Cache the results of checking for complex math and wide character
554 functions. Reformat for readability.
555 * config.h.in: Regenerate.
556 * include/bits/c++config: Define _GLIBCXX_USE_C99_XXX macros to
557 either _GLIBCXX98_USE_C99_XXX or _GLIBCXX11_USE_C99_XXX according to
558 language standard in use.
559 * config/locale/dragonfly/c_locale.h (std::__convert_from_v): Replace
560 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
561 * config/locale/generic/c_locale.h (std::__convert_from_v): Likewise.
562 * config/locale/gnu/c_locale.h (std::__convert_from_v): Likewise.
563 * config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99_STDIO,
564 _GLIBCXX_USE_C99_STDLIB, and _GLIBCXX_USE_C99_WCHAR.
565 * configure: Regenerate.
566 * include/bits/basic_string.h: Make numeric conversion functions
567 depend on _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, or
568 _GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
569 * include/ext/vstring.h: Likewise.
570 * include/bits/locale_facets.tcc (std::num_put::_M_insert_float):
571 Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
572 * include/bits/locale_facets_nonio.tcc (std::money_put::do_put):
574 * include/c_compatibility/math.h: Replace _GLIBCXX_USE_C99 with
575 _GLIBCXX_USE_C99_MATH.
576 * include/c_compatibility/wchar.h: Replace _GLIBCXX_USE_C99 with
577 _GLIBCXX_USE_C99_WCHAR.
578 * include/c_global/cstdio: Replace _GLIBCXX_USE_C99 with
579 _GLIBCXX_USE_C99_STDIO.
580 * include/c_global/cstdlib: Replace _GLIBCXX_USE_C99 with
581 _GLIBCXX_USE_C99_STDLIB.
582 * include/c_global/cwchar: Replace _GLIBCXX_USE_C99 with
583 _GLIBCXX_USE_C99_WCHAR.
584 * include/c_std/cstdio: Replace _GLIBCXX_USE_C99 with
585 _GLIBCXX_USE_C99_STDIO.
586 * include/c_std/cstdlib: Replace _GLIBCXX_USE_C99 with
587 _GLIBCXX_USE_C99_STDLIB.
588 * include/c_std/cwchar: Replace _GLIBCXX_USE_C99 with
589 _GLIBCXX_USE_C99_WCHAR.
590 * include/tr1/cstdio: Replace _GLIBCXX_USE_C99 with
591 _GLIBCXX_USE_C99_STDIO.
592 * include/tr1/cstdlib: Replace _GLIBCXX_USE_C99 with
593 _GLIBCXX_USE_C99_STDLIB.
594 * include/tr1/cwchar: Replace _GLIBCXX_USE_C99 with
595 _GLIBCXX_USE_C99_WCHAR.
596 * include/tr1/stdlib.h: Replace _GLIBCXX_USE_C99 with
597 _GLIBCXX_USE_C99_STDLIB.
598 * src/c++98/locale_facets.cc (std::__num_base::_S_format_float):
599 Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
600 * testsuite/18_support/exception_ptr/60612-terminate.cc: Replace
601 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
602 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.
603 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc
604 (test01): Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
605 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
607 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
609 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
611 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
613 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
615 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
617 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
619 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
620 to_wstring.cc: Likewise.
621 * testsuite/26_numerics/headers/cstdlib/13943.cc: Replace
622 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
623 * testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc: Likewise.
624 * testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
625 Change preprocessor #if conditional so that it uses
626 _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, and
627 _GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
628 * testsuite/tr1/8_c_compatibility/cmath/templates.cc: Replace
629 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_MATH.
630 * testsuite/tr1/8_c_compatibility/cstdio/functions.cc: Replace
631 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
632 * testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Replace
633 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
634 * testsuite/tr1/8_c_compatibility/cstdlib/types_std_tr1.cc: Likewise.
635 * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Replace
636 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
637 * testsuite/util/testsuite_fs.h: Replace _GLIBCXX_USE_C99 with
638 _GLIBCXX_USE_C99_STDIO.
640 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
642 * include/experimental/bits/shared_ptr.h: Tweak comments.
644 2015-11-13 Fan You <youfan.noey@gmail.com>
645 Jonathan Wakely <jwakely@redhat.com>
647 * include/Makefile.am: Add new header.
648 * include/Makefile.in: Regenerate.
649 * include/experimental/bits/shared_ptr.h: New.
650 * include/experimental/memory: Include new header.
651 * testsuite/experimental/memory/shared_ptr/assign/assign.cc: New.
652 * testsuite/experimental/memory/shared_ptr/cast/cast.cc: New.
653 * testsuite/experimental/memory/shared_ptr/comparison/comparison.cc:
655 * testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc: New.
656 * testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc: New.
657 * testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc: New.
658 * testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc: New.
659 * testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc: New.
660 * testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc: New.
661 * testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc: New.
662 * testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
664 * testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc: New.
665 * testsuite/experimental/memory/shared_ptr/dest/dest.cc: New.
666 * testsuite/experimental/memory/shared_ptr/modifiers/reset.cc: New.
667 * testsuite/experimental/memory/shared_ptr/modifiers/swap.cc: New.
668 * testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc:
670 * testsuite/experimental/memory/shared_ptr/observers/operators.cc:
672 * testsuite/experimental/memory/shared_ptr/observers/owner_before.cc:
674 * testsuite/experimental/memory/shared_ptr/observers/use_count.cc: New.
676 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
678 * include/Makefile.am: Add new header.
679 * include/Makefile.in: Regenerate.
680 * include/experimental/memory_resource: Add feature-test macro.
681 * include/experimental/regex: New.
682 * include/experimental/deque: Add alias template using PMR.
683 * include/experimental/forward_list: Likewise.
684 * include/experimental/list: Likewise.
685 * include/experimental/map: Likewise.
686 * include/experimental/set: Likewise.
687 * include/experimental/string: Likewise.
688 * include/experimental/unordered_map: Likewise.
689 * include/experimental/unordered_set: Likewise.
690 * include/experimental/vector: Likewise.
692 2015-11-13 Fan You <youfan.noey@gmail.com>
694 * include/Makefile.am: Add new headers.
695 * include/Makefile.in: Regenerate.
696 * include/bits/uses_allocator.h (__erased_type): Define.
697 (__uses_allocator_helper): Check for __erased_type.
698 * include/experimental/memory_resource: New.
699 * include/experimental/utlity: New.
700 * testsuite/experimental/type_erased_allocator/1.cc: New.
701 * testsuite/experimental/type_erased_allocator/1_neg.cc: New.
702 * testsuite/experimental/type_erased_allocator/2.cc: New.
703 * testsuite/experimental/type_erased_allocator/uses_allocator.cc: New.
705 2015-11-12 Jonathan Wakely <jwakely@redhat.com>
708 * include/bits/ios_base.h (_Ios_Fmtflags, _Ios_Openmode, _Ios_Iostate):
709 Define enumerators to ensure all values of type int are valid values
710 of the enumeration type.
711 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Add new cases.
712 * testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
713 * testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
715 * include/std/thread: Include <cerrno> for EINTR.
717 2015-11-12 Ville Voutilainen <ville.voutilainen@gmail.com>
719 Implement D0013R2, logical type traits.
721 * include/experimental/type_traits (conjunction, disjunction,
722 negation, conjunction_v, disjunction_v, negation_v): New.
723 * include/std/type_traits (conjunction, disjunction, negation):
725 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
726 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise.
727 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
729 * testsuite/experimental/type_traits/value.cc: Likewise.
730 * testsuite/20_util/logical_traits/requirements/explicit_instantiation.cc: New.
731 * testsuite/20_util/logical_traits/requirements/typedefs.cc: Likewise.
732 * testsuite/20_util/logical_traits/value.cc: Likewise.
734 2015-11-12 Jonathan Wakely <jwakely@redhat.com>
736 * include/experimental/bits/string_view.tcc: Fix doxygen @file.
738 2015-11-11 Jonathan Wakely <jwakely@redhat.com>
740 * libsupc++/new_handler.cc: Fix for explicit constructor change.
743 * include/std/thread (this_thread::sleep_for): Retry on EINTR.
744 (this_thread::sleep_until): Retry if time not reached.
745 * src/c++11/thread.cc (__sleep_for): Retry on EINTR.
746 * testsuite/30_threads/this_thread/60421.cc: Test interruption and
749 2015-11-11 Ville Voutilainen <ville.voutilainen@gmail.com>
751 LWG 2510, make the default constructors of library tag types
753 * include/bits/mutex.h (defer_lock_t, try_lock_t,
754 adopt_lock_t): Add an explicit default constructor.
755 * include/bits/stl_pair.h (piecewise_construct_t): Likewise.
756 * include/bits/uses_allocator.h (allocator_arg_t): Likewise.
757 * libsupc++/new (nothrow_t): Likewise.
758 * testsuite/17_intro/tag_type_explicit_ctor.cc: New.
760 2015-11-11 Jonathan Wakely <jwakely@redhat.com>
763 * libsupc++/exception_ptr.h (rethrow_exception): Add using-declaration
764 to __exception_ptr namespace.
765 * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test ADL.
766 Remove unnecessary test variables.
768 2015-11-10 Jonathan Wakely <jwakely@redhat.com>
771 * include/bits/stl_multiset.h (multiset::find): Fix return types.
772 * include/bits/stl_set.h (set::find): Likewise.
773 * testsuite/23_containers/map/operations/2.cc: Test find return types.
774 * testsuite/23_containers/multimap/operations/2.cc: Likewise.
775 * testsuite/23_containers/multiset/operations/2.cc: Likewise.
776 * testsuite/23_containers/set/operations/2.cc: Likewise.
778 * doc/xml/manual/status_cxx2017.xml: Update.
779 * doc/html/*: Regenerate.
781 * include/bits/functional_hash.h: Fix grammar in comment.
783 2015-11-09 François Dumont <fdumont@gcc.gnu.org>
785 * include/bits/stl_algo.h
786 (partial_sort_copy): Instantiate std::iterator_traits only if concept
788 (lower_bound): Likewise.
789 (upper_bound): Likewise.
790 (equal_range): Likewise.
791 (binary_search): Likewise.
792 * include/bits/stl_heap.h (pop_heap): Likewise.
794 2015-11-06 Kai Tietz <ktietz70@googlemail.com>
796 * testsuite/26_numerics/complex/requirements/constexpr.cc
797 * testsuite/26_numerics/complex/requirements/constexpr_functions.cc:
798 Use constexpr where needed.
800 2015-11-06 David Malcolm <dmalcolm@redhat.com>
802 * testsuite/lib/libstdc++.exp (v3_target_compile): Add
803 -fno-diagnostics-show-caret -fdiagnostics-color=never to
804 option's additional_flags.
806 2015-11-03 Jason Merrill <jason@redhat.com>
808 * libsupc++/new: Declare sized deletes.
810 2015-11-03 Ville Voutilainen <ville.voutilainen@gmail.com>
812 Make the default constructors of tuple and pair conditionally explicit.
813 * include/std/type_traits (is_unsigned, __is_array_unknown_bounds,
814 __is_default_constructible_atom, __is_default_constructible_safe,
815 __is_direct_constructible_new_safe, __is_direct_constructible_ref_cast,
816 __is_nt_default_constructible_impl, is_nothrow_default_constructible,
817 is_nothrow_constructible, is_nothrow_assignable,
818 is_trivially_constructible, is_trivially_copy_constructible,
819 is_trivially_move_constructible, is_trivially_assignable,
820 is_trivially_copy_assignable, is_trivially_move_assignable,
821 is_trivially_destructible): Simplify.
822 * include/std/type_traits (
823 __do_is_implicitly_default_constructible_impl,
824 __is_implicitly_default_constructible_impl,
825 __is_implicitly_default_constructible_safe,
826 __is_implicitly_default_constructible): New.
827 * include/bits/stl_pair.h (pair::pair()): Use it.
828 * include/std/tuple (tuple<_T1, _T2>::tuple): Use it.
829 * include/std/tuple (_ImplicitlyDefaultConstructibleTuple): New.
830 * include/std/tuple (tuple<_Types...>::tuple()): Use it.
831 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
832 * testsuite/20_util/is_implicitly_default_constructible/
833 requirements/explicit_instantiation.cc: New.
834 * testsuite/20_util/is_implicitly_default_constructible/requirements/
835 typedefs.cc: Likewise.
836 * testsuite/20_util/is_implicitly_default_constructible/value.cc:
838 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust.
839 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
841 * testsuite/20_util/pair/cons/explicit_construct.cc: Likewise.
842 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
844 2015-10-24 Jonathan Wakely <jwakely@redhat.com>
846 * include/std/functional (__invoke_impl): New overloads.
847 (__invoke): Replace with a single function calling __invoke_impl.
848 (invoke): Add C++17 std::invoke.
849 (reference_wrapper::operator()): Qualify call to __invoke.
850 (_Mem_fn_traits_base, _Mem_fn_traits): Remove unused typedefs.
851 (_Mem_fn_base): Remove unused typedefs and implement call operator in
853 * include/std/future (__future_base::_Async_state_commonV2): Do not
854 pass reference_wrapper as object argument to call_once.
855 * include/std/type_traits (result_of): Define nested __invoke_type.
856 Handle reference_wrapper as per LWG 2219.
857 * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error directives.
858 * testsuite/20_util/function_objects/mem_fn/55463.cc: Remove tests
859 using member functions of reference_wrapper.
861 2015-10-24 Jonathan Wakely <jwakely@redhat.com>
863 * include/std/future (async): Use deferred function on exception.
864 * testsuite/30_threads/async/except.cc: New.
866 2015-10-21 Jonathan Wakely <jwakely@redhat.com>
868 * include/std/type_traits (__cpp_lib_bool_constant): Define.
870 2015-10-16 Jonathan Wakely <jwakely@redhat.com>
872 * doc/xml/manual/configure.xml: Document
873 --enable-libstdcxx-filesystem-ts option.
874 * doc/xml/manual/status_cxx2014.xml: Document libstdc++fs.a.
875 * doc/xml/manual/using.xml: Likewise.
876 * doc/html/*: Regenerate.
878 2015-10-16 Aurelio Remonda <aurelio.remonda@tallertechnologies.com>
880 * testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable
881 N from const int N = 200000 to const unsigned int N = 10000.
882 Delete useless fill_ascending function call.
884 2015-10-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
886 * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
887 unsupported compiler output.
889 2015-10-13 Nathan Froyd <froydnj@gcc.gnu.org>
891 * config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead
892 of x86intrin.h, and only do so when __SSE3__
893 * include/ext/random: Include emmintrin.h instead of x86intrin.h
895 2015-10-11 Joseph Myers <joseph@codesourcery.com>
897 * crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* |
898 *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*>: Check for
899 __cxa_thread_atexit_impl.
900 * configure: Regenerate.
902 2015-10-09 Jonathan Wakely <jwakely@redhat.com>
904 * include/experimental/erase_if.h: Move to ...
905 * include/experimental/bits/erase_if.h: New.
906 * include/experimental/fs_dir.h: Move to ...
907 * include/experimental/bits/fs_dir.h: New.
908 * include/experimental/fs_fwd.h: Move to ...
909 * include/experimental/bits/fs_fwd.h: New.
910 * include/experimental/fs_ops.h: Move to ...
911 * include/experimental/bits/fs_ops.h: New.
912 * include/experimental/fs_path.h: Move to ...
913 * include/experimental/bits/fs_path.h: New.
914 * include/experimental/string_view.tcc: Move to ...
915 * include/experimental/bits/string_view.tcc: New.
916 * include/Makefile.am: Add include/experimental/bits sub-directory.
917 * include/Makefile.in: Regenerate.
918 * include/experimental/filesystem: Adjust includes.
919 * include/experimental/map: Likewise.
920 * include/experimental/set: Likewise.
921 * include/experimental/string_view: Likewise.
922 * include/experimental/unordered_map: Likewise.
923 * include/experimental/unordered_set: Likewise.
925 2015-10-05 Ville Voutilainen <ville.voutilainen@gmail.com>
928 * include/std/tuple (_TC::_NonNestedTuple): Eagerly reject
929 conversions from tuple types same as the target tuple.
930 * testsuite/20_util/tuple/67844.cc: New.
931 * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: Add
932 a missing copyright header.
934 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
936 * python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Remove support
939 * src/c++98/locale.cc: Fix comment.
940 * src/c++98/locale_init.cc: Likewise.
942 * testsuite/21_strings/basic_string/literals/types.cc: Guard use of
943 wchar_t with _GLIBCXX_USE_WCHAR_T.
944 * testsuite/21_strings/basic_string/literals/values.cc: Likewise.
945 * testsuite/21_strings/basic_string/requirements/citerators.cc:
947 * testsuite/22_locale/messages/13631.cc: Likewise.
948 * testsuite/experimental/string_view/literals/types.cc: Likewise.
949 * testsuite/experimental/string_view/literals/values.cc: Likewise.
951 * src/filesystem/Makefile.am: Add cxx11_abi_sources.
952 * src/filesystem/Makefile.in: Regenerate.
953 * src/filesystem/cow-dir.cc: New.
954 * src/filesystem/cow-ops.cc: New.
955 * src/filesystem/cow-path.cc: New.
956 * src/filesystem/dir.cc: Define macro for new ABI.
957 * src/filesystem/ops.cc: Likewise.
958 * src/filesystem/path.cc: Likewise.
960 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
962 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
963 Minor tweaks to match narrow char version.
965 * testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard
966 explicit instantiation with check for new ABI.
967 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
968 Likewise. Use wchar_t as char_type.
970 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
971 (basic_string::front() const, basic_string::back() const): Use
972 noexcept instead of _GLIBCXX_NOEXCEPT macro.
973 (__versa_string::front, __versa_string::back): Likewise.
975 * acinclude.m4 (GLIBCXX_ENABLE_DEBUG_FLAGS): Fix comment.
977 * include/bits/locale_conv.h [!_GLIBCXX_USE_WCHAR_T]
978 (__do_str_codecvt, __str_codecvt_in, __str_codecvt_out): Enable.
979 * include/experimental/fs_path.h [!_GLIBCXX_USE_WCHAR_T]
980 (path::wstring, path::generic_wstring): Disable.
981 * src/filesystem/path.cc (path::_S_convert_loc)
982 [!_GLIBCXX_USE_WCHAR_T]: Skip conversion.
983 * testsuite/experimental/filesystem/path/assign/assign.cc: Check for
985 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
986 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
988 * testsuite/util/testsuite_fs.h (nonexistent_path): Use less generic
989 name for paths. Prefer snprintf to sprintf.
992 * src/filesystem/dir.cc (native_readdir): Remove.
993 (_Dir::advance): Use readdir instead of native_readdir.
994 (recursive_directory_iterator(const path&, directory_options,
995 error_code*)): Use swap instead of reset.
997 2015-10-01 Jonathan Wakely <jwakely@redhat.com>
999 * doc/html/manual/errno.html: Add new file.
1001 * doc/xml/manual/diagnostics.xml: Document use of errno.
1002 * doc/html/*: Regenerate.
1003 * config/locale/generic/c_locale.cc (_Save_errno): New helper.
1004 (__convert_to_v): Use _Save_errno.
1005 * include/ext/string_conversions.h (__stoa): Only restore errno when
1006 it isn't set to non-zero.
1008 2015-09-30 François Dumont <fdumont@gcc.gnu.org>
1009 Jonathan Wakely <jwakely@redhat.com>
1011 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs):
1013 * config/locale/gnu/c++locale_internal.h: ...here in std namespace.
1014 * config/locale/gnu/c_locale.cc: Move implementation of latter here.
1015 * src/c++98/Makefile.am: Compile c++locale.cc with -fimplicit-templates.
1016 * src/c++98/Makefile.in: Regenerate.
1017 * config/abi/pre/gnu.ver: Adjust.
1019 2015-09-30 Matthias Klose <doko@ubuntu.com>
1021 * config/cpu/alpha, config/cpu/ia64: Remove empty directories.
1023 2015-09-29 Jonathan Wakely <jwakely@redhat.com>
1025 * include/ext/string_conversions.h (__stoa): Save and restore errno.
1026 * testsuite/21_strings/basic_string/numeric_conversions/char/errno.cc:
1030 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Fix sputn call
1031 with mismatched arguments.
1032 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1035 * config/abi/pre/gnu.ver: Export new symbols.
1036 * include/std/thread (thread::_State, thread::_State_impl): New types.
1037 (thread::_M_start_thread): Add overload taking unique_ptr<_State>.
1038 (thread::_M_make_routine): Remove.
1039 (thread::_S_make_state): Add.
1040 (thread::_Impl_base, thread::_Impl, thread::_M_start_thread)
1041 [_GLIBCXX_THREAD_ABI_COMPAT] Only declare conditionally.
1042 * src/c++11/thread.cc (execute_native_thread_routine): Rename to
1043 execute_native_thread_routine_compat and re-define to use _State.
1044 (thread::_State::~_State()): Define.
1045 (thread::_M_make_thread): Define new overload.
1046 (thread::_M_make_thread) [_GLIBCXX_THREAD_ABI_COMPAT]: Only define old
1047 overloads conditionally.
1049 2015-09-28 Jonathan Wakely <jwakely@redhat.com>
1051 * include/std/condition_variable (condition_variable::wait): Add
1053 * src/c++11/condition_variable.cc (condition_variable::wait): Call
1054 std::terminate on error (DR 2135).
1056 2015-09-25 Ville Voutilainen <ville.voutilainen@gmail.com>
1058 Avoid creating dangling references in case of nested tuples
1059 for tuple constructors that construct from other tuples.
1060 * include/std/tuple (_TC::_NonNestedTuple): New.
1061 * include/std/tuple (tuple::_TNTC): New.
1062 * include/std/tuple (tuple(const tuple<_UElements...>&),
1063 tuple(tuple<_UElements...>&&): Use _TNTC.
1064 * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: New.
1066 2015-09-24 Jonathan Wakely <jwakely@redhat.com>
1069 * include/bits/stl_deque.h (_Deque_base::_M_move_impl): Initialize
1071 * testsuite/23_containers/deque/allocator/move.cc: Check moved-from
1074 2015-09-23 Jonathan Wakely <jwakely@redhat.com>
1076 * src/filesystem/ops.cc (canonical): Simplify error handling and
1077 limit number of symlinks that can be resolved.
1079 2015-09-23 Jonathan Wakely <jwakely@redhat.com>
1081 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Remove _GLIBCXX_
1082 prefix from HAVE_STRUCT_DIRENT_D_TYPE.
1083 * config.h.in: Regenerate.
1084 * configure: Regenerate.
1085 * include/experimental/fs_dir.h (operator==, operator==):
1086 Use owner_before instead of pointer equality.
1087 (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
1088 * src/filesystem/dir.cc (ErrorCode): Remove.
1089 (_Dir::advance): Change ErrorCode parameter to error_code*, add
1090 directory_options parameter and check it on error.
1091 (opendir): Rename to open_dir to avoid clashing with macro. Change
1092 ErrorCode parameter to error_code*.
1093 (make_shared_dir): Remove.
1094 (native_readdir) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Don't set errno.
1095 (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
1096 (directory_iterator(const path&, directory_options, error_code*)):
1097 Pass options to _Dir::advance and create non-end iterator on error.
1098 (recursive_directory_iterator(const path&, directory_options,
1099 error_code*)): Clear error_code on ignored error, create non-end
1101 (recursive_directory_iterator::increment): Pass _M_options to
1103 (recursive_directory_iterator::pop): Likewise.
1104 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
1106 * testsuite/experimental/filesystem/iterators/
1107 recursive_directory_iterator.cc: New.
1109 * src/filesystem/ops.cc (is_dot, is_dotdot): Define new helpers.
1110 (create_directories): Fix error handling.
1111 * testsuite/experimental/filesystem/operations/create_directories.cc:
1114 2015-09-21 Jonathan Wakely <jwakely@redhat.com>
1117 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
1118 (basic_string::shrink_to_fit): Fix #endif placement.
1120 2015-09-19 Tim Shen <timshen@google.com>
1123 * include/bits/regex_error.h: Add __throw_regex_error that
1125 * include/bits/regex_automaton.h: Add more specific exception
1127 * include/bits/regex_automaton.tcc: Likewise.
1128 * include/bits/regex_compiler.h: Likewise.
1129 * include/bits/regex_compiler.tcc: Likewise.
1130 * include/bits/regex_scanner.h: Likewise.
1131 * include/bits/regex_scanner.tcc: Likewise.
1133 2015-09-18 Jonathan Wakely <jwakely@redhat.com>
1135 * include/precompiled/extc++.h: Fix bootstrap error due to
1136 unconditional inclusion of <ext/enc_filebuf.h>.
1137 * include/ext/random: Check for definition of UINT32_C.
1139 2015-09-17 Catherine Moore <clm@codesourcery.com>
1141 * src/c++11/debug.cc: Include <cstdio>.
1143 2015-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1145 * src/c++11/random.cc: Include <cerrno>.
1147 2015-09-17 François Dumont <fdumont@gcc.gnu.org>
1149 * include/debug/formatter.h
1150 (_Error_formatter::_Parameter::_M_print_field): Deprecate.
1151 (_Error_formatter::_Parameter::_M_print_description): Likewise.
1152 (_Error_formatter::_M_format_word): Likewise.
1153 (_Error_formatter::_M_print_word): Likewise.
1154 (_Error_formatter::_M_print_string): Likewise.
1155 (_Error_formatter::_M_get_max_length): Likewise.
1156 (_Error_formatter::_M_max_length): Delete.
1157 (_Error_formatter::_M_indent): Likewise.
1158 (_Error_formatter::_M_column): Likewise.
1159 (_Error_formatter::_M_first_line): Likewise.
1160 (_Error_formatter::_M_wordwrap): Likewise.
1161 * src/c++11/debug.cc: Adapt.
1163 2015-09-17 Jonathan Wakely <jwakely@redhat.com>
1166 * include/bits/atomic_base.h (__atomic_base<_TTp>::is_lock_free(),
1167 __atomic_base<_PTp*>::is_lock_free()): Call the built-in with the
1168 immediate pointer value, not a variable.
1169 * include/std/atomic (atomic<T>::is_lock_free()): Likewise.
1170 * testsuite/29_atomics/atomic/65913.cc: New.
1172 * testsuite/experimental/filesystem/operations/canonical.cc: Remove
1173 non-deterministic part of the test.
1176 * src/c++11/random.cc (random_device::_M_getval()): Retry after short
1179 * include/std/system_error (error_code::operator bool(),
1180 error_condition::operator bool()): Remove redundant conditional
1183 * include/bits/allocator.h (__shrink_to_fit_aux<T, true>::_S_do_it):
1184 Do nothing if exceptions are disabled.
1185 * include/bits/basic_string.h (basic_string::shrink_to_fit): Likewise.
1187 2015-09-16 Jonathan Wakely <jwakely@redhat.com>
1190 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check _XOPEN_VERSION
1191 and PATH_MAX for _GLIBCXX_USE_REALPATH.
1192 * config.h.in: Regenerate.
1193 * configure: Regenerate.
1194 * src/filesystem/ops.cc: (canonical) [!_GLIBCXX_USE_REALPATH]: Add
1195 alternative implementation.
1196 * testsuite/experimental/filesystem/operations/canonical.cc: New.
1197 * testsuite/experimental/filesystem/operations/exists.cc: Add more
1199 * testsuite/experimental/filesystem/operations/absolute.cc: Add test
1201 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
1202 * testsuite/experimental/filesystem/operations/current_path.cc:
1204 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
1205 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
1206 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1209 2015-09-11 Jonathan Wakely <jwakely@redhat.com>
1212 * src/filesystem/ops.cc (filesystem::canonical): Allocate buffer for
1213 realpath on Solaris 10.
1216 * src/c++11/random.cc (random_device::_M_getval()): Check read result.
1218 2015-09-11 John Marino <gnugcc@marino.st>
1219 Jonathan Wakely <jwakely@redhat.com>
1222 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Do not test code points
1224 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
1225 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
1226 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise.
1227 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise.
1228 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
1229 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise.
1230 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
1231 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise.
1232 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
1233 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
1234 * testsuite/27_io/objects/wchar_t/10.cc: Likewise.
1235 * testsuite/27_io/objects/wchar_t/11.cc: Likewise.
1236 * testsuite/27_io/objects/wchar_t/12.cc: Likewise.
1237 * testsuite/27_io/objects/wchar_t/13.cc: Likewise.
1239 2015-09-11 Jonathan Wakely <jwakely@redhat.com>
1242 * doc/xml/manual/using.xml: Improve aggregate header documentation.
1243 * doc/html/manual/*: Regenerate.
1244 * include/precompiled/extc++.h: Include <bits/stdc++.h> for C++11
1245 and later and include more extension headers.
1246 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Remove
1248 * testsuite/17_intro/headers/c++200x/: Rename to c++2011.
1249 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Remove
1251 * testsuite/17_intro/headers/c++2014/all_no_exceptions.cc: New.
1252 * testsuite/17_intro/headers/c++2014/all_no_rtti.cc: New.
1253 * testsuite/17_intro/headers/c++2014/all_pedantic_errors.cc: New.
1254 * testsuite/17_intro/headers/c++2014/operator_names.cc: New.
1255 * testsuite/17_intro/headers/c++2014/stdc++.cc: New.
1256 * testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc:
1260 * doc/xml/manual/intro.xml: Document LWG 2063 and 2064 resolutions.
1261 * doc/html/manual/bugs.html: Regenerate.
1262 * include/bits/basic_string.h (basic_string): Implement N4258. Add
1263 correct exception-specifications and propagate allocators correctly.
1264 * include/bits/basic_string.tcc (basic_string::swap): Propagate
1265 allocators correctly.
1266 * include/debug/string (__gnu_debug::basic_string): Add correct
1267 exceptions-specifications and allcoator-extended constructors.
1268 * testsuite/21_strings/basic_string/allocator/char/copy.cc: New.
1269 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1271 * testsuite/21_strings/basic_string/allocator/char/minimal.cc: New.
1272 * testsuite/21_strings/basic_string/allocator/char/move.cc: New.
1273 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1275 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc: New.
1276 * testsuite/21_strings/basic_string/allocator/char/swap.cc: New.
1277 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: New.
1278 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1280 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: New.
1281 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: New.
1282 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1284 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: New.
1285 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: New.
1286 * testsuite/util/testsuite_allocator.h (tracker_allocator): Define
1287 defaulted assignment operators.
1290 * include/bits/stl_queue.h (queue, priority_queue): Add
1291 allocator-extended constructors.
1292 * include/bits/stl_stack.h (stack): Likewise.
1293 * testsuite/23_containers/priority_queue/requirements/
1294 uses_allocator.cc: Test allocator-extended constructors.
1295 * testsuite/23_containers/queue/requirements/uses_allocator.cc:
1297 * testsuite/23_containers/stack/requirements/uses_allocator.cc:
1300 2015-09-10 Jonathan Wakely <jwakely@redhat.com>
1302 * testsuite/util/testsuite_allocator.h (PointerBase::operator[]): Add.
1304 * testsuite/21_strings/basic_string/operators/char/1.cc: Verify the
1307 2015-09-09 Jonathan Wakely <jwakely@redhat.com>
1309 * doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document.
1310 * doc/html/manual/using_macros.html: Regenerate.
1311 * include/bits/c++config: Define _GLIBCXX_ASSERTIONS when
1312 _GLIBCXX_DEBUG is defined. Disable std::string extern templates when
1313 (_GLIBCXX_EXTERN_TEMPLATE, __glibcxx_assert): Depend on
1314 _GLIBCXX_ASSERTIONS instead of _GLIBCXX_DEBUG.
1315 * include/debug/debug.h [!_GLIBCXX_DEBUG]: Define
1316 __glibcxx_requires_non_empty_range and __glibcxx_requires_nonempty.
1317 * include/backward/auto_ptr.h (auto_ptr::operator*,
1318 auto_ptr::operator->): Replace _GLIBCXX_DEBUG_ASSERT with
1320 * include/bits/basic_string.h (basic_string::operator[],
1321 basic_string::front, basic_string::back, basic_string::pop_back):
1323 * include/bits/random.h
1324 (uniform_int_distribution::param_type::param_type,
1325 uniform_real_distribution::param_type::param_type,
1326 normal_distribution::param_type::param_type,
1327 gamma_distribution::param_type::param_type,
1328 bernoulli_distribution::param_type::param_type,
1329 binomial_distribution::param_type::param_type,
1330 geometric_distribution::param_type::param_type,
1331 negative_binomial_distribution::param_type::param_type,
1332 poisson_distribution::param_type::param_type,
1333 exponential_distribution::param_type::param_type): Likewise.
1334 * include/bits/regex.h (match_results::operator[],
1335 match_results::prefix, match_results::suffix): Likewise.
1336 * include/bits/regex.tcc (format, regex_iterator::operator++):
1338 * include/bits/regex_automaton.tcc (_StateSeq::_M_clone): Likewise.
1339 * include/bits/regex_compiler.tcc (_Compiler::_Compiler,
1340 _Compiler::_M_insert_character_class_matcher): Likewise.
1341 * include/bits/regex_executor.tcc (_Executor::_M_dfs): Likewise.
1342 * include/bits/regex_scanner.tcc (_Scanner::_M_advance,
1343 _Scanner::_M_scan_normal): Likewise.
1344 * include/bits/shared_ptr_base.h (__shared_ptr::_M_reset,
1345 __shared_ptr::operator*): Likewise.
1346 * include/bits/stl_iterator_base_funcs.h (__advance): Likewise.
1347 * include/bits/unique_ptr.h (unique_ptr::operator*,
1348 unique_ptr::operator[]): Likewise.
1349 * include/experimental/fs_path.h (path::path(string_type, _Type),
1350 path::iterator::operator++, path::iterator::operator--,
1351 path::iterator::operator*): Likewise.
1352 * include/experimental/string_view (basic_string_view::operator[],
1353 basic_string_view::front, basic_string_view::back,
1354 basic_string_view::remove_prefix): Likewise.
1355 * include/ext/random (beta_distribution::param_type::param_type,
1356 normal_mv_distribution::param_type::param_type,
1357 rice_distribution::param_type::param_type,
1358 pareto_distribution::param_type::param_type,
1359 k_distribution::param_type::param_type,
1360 arcsine_distribution::param_type::param_type,
1361 hoyt_distribution::param_type::param_type,
1362 triangular_distribution::param_type::param_type,
1363 von_mises_distribution::param_type::param_type,
1364 hypergeometric_distribution::param_type::param_type,
1365 logistic_distribution::param_type::param_type): Likewise.
1366 * include/ext/vstring.h (__versa_string::operator[]): Likewise.
1367 * include/std/complex (polar): Likewise.
1368 * include/std/mutex [!_GTHREAD_USE_MUTEX_TIMEDLOCK]
1369 (timed_mutex::~timed_mutex, timed_mutex::unlock,
1370 (recursive_timed_mutex::~timed_mutex, recursive_timed_mutex::unlock):
1372 * include/std/shared_mutex [!PTHREAD_RWLOCK_INITIALIZER]
1373 (__shared_mutex_pthread::__shared_mutex_pthread,
1374 __shared_mutex_pthread::~__shared_mutex_pthread): Likewise.
1375 (__shared_mutex_pthread::lock, __shared_mutex_pthread::try_lock,
1376 __shared_mutex_pthread::unlock, __shared_mutex_pthread::lock_shared,
1377 __shared_mutex_pthread::try_lock_shared): Likewise.
1378 (__shared_mutex_cv::~__shared_mutex_cv, __shared_mutex_cv::unlock,
1379 __shared_mutex_cv::unlock_shared): Likewise.
1380 (shared_timed_mutex::try_lock_until,
1381 shared_timed_mutex::try_lock_shared_until): Likewise.
1382 * include/std/valarray (valarray::valarray(const _Tp*, size_t),
1383 valarray::operator=, valarray::sum, valarray::min, valarray::max,
1384 _DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT, _DEFINE_BINARY_OPERATOR):
1387 2015-09-07 Jonathan Wakely <jwakely@redhat.com>
1389 * include/bits/shared_ptr_base.h (__shared_ptr::operator->): Change
1390 _GLIBCXX_DEBUG_ASSERT to _GLIBCXX_DEBUG_PEDASSERT.
1391 * include/bits/unique_ptr.h (unique_ptr::operator->): Likewise.
1392 * testsuite/20_util/shared_ptr/observers/get.cc: Test operator-> on
1395 * include/bits/regex_compiler.h (_BracketMatcher::_M_is_ready):
1396 Initialize using NSDMI and set using _GLIBCXX_DEBUG_ONLY.
1398 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Rename
1401 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Run on
1403 * testsuite/30_threads/timed_mutex/unlock/2.cc: Run on darwin.
1405 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
1408 * include/std/mutex (recursive_timed_mutex): Fix uses of _Can_lock.
1411 * include/Makefile.am: Add <bits/mutex.h>.
1412 * include/Makefile.in: Regenerate.
1413 * include/bits/mutex.h (__mutex_base, mutex, lock_guard, unique_lock):
1414 New file containing types moved from <mutex>.
1415 * include/std/condition_variable: Include <bits/mutex.h> instead of
1417 * include/std/mutex (__mutex_base, mutex, lock_guard, unique_lock):
1418 Move to <bits/mutex.h>.
1419 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Remove
1420 dg-require-gthreads-timed.
1421 * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
1423 * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
1425 * testsuite/30_threads/recursive_timed_mutex/dest/
1426 destructor_locked.cc: Likewise.
1427 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1428 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1429 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
1430 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
1431 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1433 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1435 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1437 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1439 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1441 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1442 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1443 * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
1444 * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
1445 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc:
1447 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1448 * testsuite/30_threads/timed_mutex/requirements/standard_layout.cc:
1450 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1451 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1452 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1453 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1454 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1455 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1456 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1457 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
1458 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1459 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1460 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1461 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1462 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1464 2015-09-04 Edward Smith-Rowland <3dw4rd@verizon.net>
1465 Jonathan Wakely <jwakely@redhat.com>
1467 Add C++11 header <cuchar>.
1468 * acinclude.m4 (GLIBCXX_CHECK_UCHAR_H): Define.
1469 * config.h.in: Regenerate.
1470 * configure: Regenerate.
1471 * configure.ac: Check for <uchar.h>.
1472 * include/Makefile.am: Add new headers.
1473 * include/Makefile.in: Regenerate.
1474 * include/c/cuchar: New.
1475 * include/c_compatibility/uchar.h: New.
1476 * include/c_global/cuchar: New.
1477 * include/c_std/cuchar: New.
1478 * include/precompiled/stdc++.h: Include <cuchar>.
1479 * testsuite/17_intro/headers/c++200x/stdc++.cc: Include <uchar.h>.
1480 * testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc:
1483 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
1486 * include/c/cassert: Include <bits/c++config.h>.
1487 * include/c/cerrno: Likewise.
1488 * include/c/cfloat: Likewise.
1489 * include/c/ciso646: Likewise.
1490 * include/c/climits: Likewise.
1491 * include/c_global/cassert: Likewise.
1492 * include/c_global/cerrno: Likewise.
1493 * include/c_global/cfloat: Likewise.
1494 * include/c_global/ciso646: Likewise.
1495 * include/c_global/climits: Likewise.
1496 * include/c_std/cassert: Likewise.
1497 * include/c_std/cerrno: Likewise.
1498 * include/c_std/cfloat: Likewise.
1499 * include/c_std/ciso646: Likewise.
1500 * include/c_std/climits: Likewise.
1502 2015-09-03 Jonathan Wakely <jwakely@redhat.com>
1504 * include/bits/shared_ptr_base.h: Add required header.
1505 * include/std/condition_variable: Likewise.
1506 * include/std/mutex: Remove unused header.
1507 * include/std/shared_mutex: Remove redundant header.
1508 (shared_mutex::shared_mutex()): Replace throw with __throw_bad_alloc.
1511 * src/c++11/debug.cc (_S_debug_messages): Make array const.
1514 * include/experimental/functional (_Not_fn): Add exception
1515 specifications and non-deduced return types.
1516 (not_fn): Add exception specification and wrap pointer-to-member.
1517 * testsuite/experimental/functional/not_fn.cc: Test in SFINAE context
1518 and test pointer-to-member.
1521 * include/bits/stl_iterator_base_funcs.h (next, prev): Add concept
1523 * testsuite/24_iterators/operations/prev_neg.cc: New.
1524 * testsuite/24_iterators/operations/next_neg.cc: New.
1526 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1528 * testsuite/18_support/pthread_guard.cc: Add *-*-rtems* target
1529 selector to all lines which contain a *-*-cygwin target selector.
1530 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
1531 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise.
1532 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
1533 * testsuite/21_strings/basic_string/pthread18185.cc: Likewise.
1534 * testsuite/21_strings/basic_string/pthread33394.cc: Likewise.
1535 * testsuite/21_strings/basic_string/pthread4.cc: Likewise.
1536 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
1537 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
1538 * testsuite/23_containers/list/pthread1.cc: Likewise.
1539 * testsuite/23_containers/list/pthread5.cc: Likewise.
1540 * testsuite/23_containers/map/pthread6.cc: Likewise.
1541 * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise.
1542 * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise.
1543 * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise.
1544 * testsuite/30_threads/async/42819.cc: Likewise.
1545 * testsuite/30_threads/async/49668.cc: Likewise.
1546 * testsuite/30_threads/async/54297.cc: Likewise.
1547 * testsuite/30_threads/async/any.cc: Likewise.
1548 * testsuite/30_threads/async/async.cc: Likewise.
1549 * testsuite/30_threads/async/launch.cc: Likewise.
1550 * testsuite/30_threads/async/lwg2021.cc: Likewise.
1551 * testsuite/30_threads/async/sync.cc: Likewise.
1552 * testsuite/30_threads/call_once/39909.cc: Likewise.
1553 * testsuite/30_threads/call_once/49668.cc: Likewise.
1554 * testsuite/30_threads/call_once/60497.cc: Likewise.
1555 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
1556 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
1557 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
1558 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
1559 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
1560 * testsuite/30_threads/condition_variable/members/3.cc: Likewise.
1561 * testsuite/30_threads/condition_variable/members/53841.cc: Likewise.
1562 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
1564 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
1565 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
1566 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
1567 * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise.
1568 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
1569 * testsuite/30_threads/future/cons/move.cc: Likewise.
1570 * testsuite/30_threads/future/members/45133.cc: Likewise.
1571 * testsuite/30_threads/future/members/get.cc: Likewise.
1572 * testsuite/30_threads/future/members/get2.cc: Likewise.
1573 * testsuite/30_threads/future/members/share.cc: Likewise.
1574 * testsuite/30_threads/future/members/valid.cc: Likewise.
1575 * testsuite/30_threads/future/members/wait.cc: Likewise.
1576 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
1577 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
1578 * testsuite/30_threads/lock/1.cc: Likewise.
1579 * testsuite/30_threads/lock/2.cc: Likewise.
1580 * testsuite/30_threads/lock/3.cc: Likewise.
1581 * testsuite/30_threads/lock/4.cc: Likewise.
1582 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
1583 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
1584 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
1585 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
1586 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
1587 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
1588 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
1589 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
1590 * testsuite/30_threads/mutex/unlock/2.cc: Likewise.
1591 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
1592 * testsuite/30_threads/packaged_task/60564.cc: Likewise.
1593 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
1594 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
1595 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
1596 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
1597 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
1598 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
1599 * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise.
1600 * testsuite/30_threads/packaged_task/members/at_thread_exit.cc:
1602 * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise.
1603 * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
1604 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
1605 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
1606 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
1607 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
1608 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
1609 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
1610 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
1611 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
1612 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
1613 * testsuite/30_threads/promise/60966.cc: Likewise.
1614 * testsuite/30_threads/promise/cons/1.cc: Likewise.
1615 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
1616 * testsuite/30_threads/promise/cons/move.cc: Likewise.
1617 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
1618 * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise.
1619 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
1620 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
1621 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
1622 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
1623 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
1624 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
1625 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
1626 * testsuite/30_threads/promise/members/swap.cc: Likewise.
1627 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
1628 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
1630 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
1631 * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
1632 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
1634 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
1635 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
1636 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
1637 * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise.
1638 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
1639 * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
1641 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1642 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1643 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
1645 * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc:
1647 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
1648 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
1649 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1651 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1653 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1655 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1657 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1659 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1660 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise.
1661 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
1662 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
1663 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
1664 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
1665 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
1666 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
1667 * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
1668 * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
1669 * testsuite/30_threads/shared_lock/cons/1.cc: Likewise.
1670 * testsuite/30_threads/shared_lock/cons/2.cc: Likewise.
1671 * testsuite/30_threads/shared_lock/cons/3.cc: Likewise.
1672 * testsuite/30_threads/shared_lock/cons/4.cc: Likewise.
1673 * testsuite/30_threads/shared_lock/cons/5.cc: Likewise.
1674 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1675 * testsuite/30_threads/shared_lock/locking/1.cc: Likewise.
1676 * testsuite/30_threads/shared_lock/locking/2.cc: Likewise.
1677 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1678 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1679 * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise.
1680 * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise.
1681 * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise.
1682 * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise.
1683 * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise.
1684 * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise.
1685 * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise.
1686 * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise.
1687 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise.
1688 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise.
1689 * testsuite/30_threads/this_thread/1.cc: Likewise.
1690 * testsuite/30_threads/this_thread/2.cc: Likewise.
1691 * testsuite/30_threads/this_thread/3.cc: Likewise.
1692 * testsuite/30_threads/this_thread/4.cc: Likewise.
1693 * testsuite/30_threads/thread/cons/1.cc: Likewise.
1694 * testsuite/30_threads/thread/cons/2.cc: Likewise.
1695 * testsuite/30_threads/thread/cons/3.cc: Likewise.
1696 * testsuite/30_threads/thread/cons/4.cc: Likewise.
1697 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
1698 * testsuite/30_threads/thread/cons/5.cc: Likewise.
1699 * testsuite/30_threads/thread/cons/6.cc: Likewise.
1700 * testsuite/30_threads/thread/cons/7.cc: Likewise.
1701 * testsuite/30_threads/thread/cons/8.cc: Likewise.
1702 * testsuite/30_threads/thread/cons/9.cc: Likewise.
1703 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
1704 * testsuite/30_threads/thread/members/1.cc: Likewise.
1705 * testsuite/30_threads/thread/members/2.cc: Likewise.
1706 * testsuite/30_threads/thread/members/3.cc: Likewise.
1707 * testsuite/30_threads/thread/members/4.cc: Likewise.
1708 * testsuite/30_threads/thread/members/5.cc: Likewise.
1709 * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise.
1710 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
1711 * testsuite/30_threads/thread/swap/1.cc: Likewise.
1712 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1713 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
1714 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1715 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
1716 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise.
1717 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1718 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1719 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1720 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1721 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1722 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1723 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1724 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
1725 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1726 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1727 * testsuite/30_threads/try_lock/1.cc: Likewise.
1728 * testsuite/30_threads/try_lock/2.cc: Likewise.
1729 * testsuite/30_threads/try_lock/3.cc: Likewise.
1730 * testsuite/30_threads/try_lock/4.cc: Likewise.
1731 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
1732 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
1733 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
1734 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
1735 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1736 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1737 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
1738 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1739 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1740 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1741 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1742 * testsuite/ext/rope/pthread7-rope.cc: Likewise.
1743 * testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc:
1745 * testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc:
1748 2015-09-02 Dmitry Vyukov <dvyukov@google.com>
1750 * include/bits/basic_string.h: Fix data races on _M_refcount.
1752 2015-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
1755 * include/std/mutex (__timed_mutex_impl::_M_try_lock_until): Use
1756 _Derived::_M_timedlock().
1757 (timed_mutex): Add _M_timedlock() and make base class a friend.
1758 (recursive_timed_mutex): Likewise.
1760 2015-08-28 Tim Shen <timshen@google.com>
1763 * include/bits/regex_scanner.tcc (_Scanner<>::_M_scan_normal):
1764 Always returns ordinary char token if the char isn't
1765 considered a special char.
1766 * testsuite/28_regex/regression.cc: New test file for collecting
1767 regression testcases from, typically, bugzilla.
1769 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
1772 * include/bits/range_access.h (valarray, begin, end): Declare.
1773 * testsuite/26_numerics/valarray/range_access.cc: Test const
1775 * testsuite/26_numerics/valarray/range_access2.cc: New.
1777 2015-08-27 John Marino <gnugcc@marino.st>
1779 * acinclude.m4 (*-*-dragonfly*): Change 7 locale support files
1780 from generic to new DragonFly versions.
1781 * configure: Regenerate.
1782 * config/locale/dragonfly/c_locale.cc: Improve locale support.
1783 * config/locale/dragonfly/ctype_members.cc: Likewise.
1784 * config/os/bsd/dragonfly/ctype_configure_char.cc: Likewise.
1785 * config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99.
1786 * config/locale/dragonfly/c_locale.h: New.
1787 * config/locale/dragonfly/codecvt_members.cc: New.
1788 * config/locale/dragonfly/collate_members.cc: New.
1789 * config/locale/dragonfly/monetary_members.cc: New.
1790 * config/locale/dragonfly/numeric_members.cc: New.
1791 * config/locale/dragonfly/time_members.cc: New.
1792 * config/locale/dragonfly/time_members.h: New.
1794 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
1796 * configure: Regenerate.
1798 2015-08-26 Edward Smith-Rowland <3dw4rd@verizon.net>
1799 Jonathan Wakely <jwakely@redhat.com>
1803 * include/bits/random.tcc (generate_canonical): Loop until we get a
1804 result less than one.
1805 * testsuite/26_numerics/random/uniform_real_distribution/operators/
1808 2015-08-26 Jonathan Wakely <jwakely@redhat.com>
1810 * include/bits/shared_ptr.h (__enable_shared_from_this_helper): Use
1812 * include/bits/shared_ptr_base.h (weak_ptr::_M_assign): Don't assign
1813 if ownership is already shared with a shared_ptr object.
1814 (__enable_shared_from_this_helper): Use nullptr.
1815 * testsuite/20_util/enable_shared_from_this/members/const.cc: New.
1816 * testsuite/20_util/enable_shared_from_this/members/reinit.cc: New.
1817 * testsuite/20_util/enable_shared_from_this/requirements/
1818 explicit_instantiation.cc: Instantiate with const and incomplete types.
1820 * include/debug/map.h (map::try_emplace, map::insert_or_assign):
1822 * include/debug/unordered_map (unordered_map::try_emplace,
1823 unordered_map::insert_or_assign): Define.
1826 * src/c++11/debug.cc (_S_debug_messages): Give internal linkage.
1828 2015-08-24 François Dumont <fdumont@gcc.gnu.org>
1831 * include/debug/formatter.h (_Debug_msg_id::__msg_irreflexive_ordering):
1833 * include/debug/functions.h (_Irreflexive_checker): New.
1834 (__is_irreflexive, __is_irreflexive_pred): New.
1835 * include/debug/macros.h
1836 (__glibcxx_check_irreflexive, __glibcxx_check_irreflexive_pred): New
1838 (__glibcxx_check_irreflexive2, __glibcxx_check_irreflexive_pred2): New
1839 macros limited to post-C++11 mode.
1840 * include/debug/debug.h
1841 (__glibcxx_requires_irreflexive, __glibcxx_requires_irreflexive_pred):
1842 New macros, use latter.
1843 (__glibcxx_requires_irreflexive2, __glibcxx_requires_irreflexive_pred2):
1845 * include/bits/stl_algo.h
1846 (partial_sort_copy): Add irreflexive debug check.
1847 (partial_sort_copy): Likewise.
1848 (lower_bound): Likewise.
1849 (upper_bound): Likewise.
1850 (equal_range): Likewise.
1851 (binary_search): Likewise.
1852 (inplace_merge): Likewise.
1853 (includes): Likewise.
1854 (next_permutation): Likewise.
1855 (prev_permutation): Likewise.
1856 (is_sorted_until): Likewise.
1857 (minmax_element): Likewise.
1858 (partial_sort): Likewise.
1859 (nth_element): Likewise.
1862 (stable_sort): Likewise.
1863 (set_union): Likewise.
1864 (set_intersection): Likewise.
1865 (set_difference): Likewise.
1866 (set_symmetric_difference): Likewise.
1867 (min_element): Likewise.
1868 (max_element): Likewise.
1869 * include/bits/stl_algobase.h
1870 (lower_bound): Likewise.
1871 (lexicographical_compare): Likewise.
1872 * include/bits/stl_heap.h
1873 (push_heap): Likewise.
1874 (pop_heap): Likewise.
1875 (make_heap): Likewise.
1876 (sort_heap): Likewise.
1877 (is_heap_until): Likewise.
1878 * testsuite/25_algorithms/lexicographical_compare/debug/
1879 irreflexive_neg.cc: New.
1880 * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: New.
1881 * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
1884 2015-08-24 Jonathan Wakely <jwakely@redhat.com>
1887 * include/bits/char_traits.h (char_traits<char>::compare,
1888 char_traits<char>::find, char_traits<char>::move,
1889 char_traits<char>::copy, char_traits<char>::assign): Check for zero
1891 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find,
1892 char_traits<wchar_t>::move, char_traits<wchar_t>::copy,
1893 char_traits<wchar_t>::assign): Likewise.
1894 (char_traits<char16_t>::move, char_traits<char16_t>::copy): Likewise.
1895 (char_traits<char32_t>::move, char_traits<char32_t>::copy): Likewise.
1896 * include/ext/pod_char_traits.h (char_traits<character<>>::move,
1897 char_traits<character<>>::copy): Likewise.
1898 * testsuite/21_strings/char_traits/requirements/char/65049.cc: New.
1899 * testsuite/21_strings/char_traits/requirements/char16_t/65049.cc:
1901 * testsuite/21_strings/char_traits/requirements/char32_t/65049.cc:
1903 * testsuite/21_strings/char_traits/requirements/wchar_t/65049.cc:
1907 * include/bits/random.tcc
1908 (poisson_distribution::param_type::_M_initialize): Use max<double>.
1909 (binomial_distribution::param_type::_M_initialize): Likewise.
1910 * testsuite/17_intro/headers/c++200x/67309.cc: New.
1911 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Remove
1914 2015-08-20 Jonathan Wakely <jwakely@redhat.com>
1917 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Do not run
1919 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1921 * include/experimental/any (__any_caster): Define at namespace scope
1922 so the name is visible to name lookup.
1923 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1925 * python/Makefile.am: Ensure gdb.py is installed for libstdc++ not
1927 * python/Makefile.in: Regenerate.
1929 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
1931 * include/c_global/cmath: Fix typo in comment.
1933 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
1935 * include/c_global/cmath: Revert fix for libstdc++/58625, no
1936 longer necessary (__builtin_signbit is now type-generic).
1938 2015-08-18 Jonathan Wakely <jwakely@redhat.com>
1941 * testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc:
1942 Fix use of safe-bool idiom that isn't valid in C++11.
1944 * include/bits/ptr_traits.h: Include <bits/move.h> for addressof.
1947 * doc/xml/manual/configure.xml (manual.intro.setup.configure): Add
1948 caveats for --enable-concept-checks. Improve link text.
1949 * doc/xml/manual/diagnostics.xml (std.diagnostics.concept_checking):
1951 * doc/html/*: Regenerate.
1952 * include/bits/stl_deque.h (deque): Only use concept checks in C++03.
1953 * include/bits/stl_stack.h (stack): Likewise.
1954 * include/bits/stl_vector.h (vector): Likewise.
1956 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
1958 * include/experimental/any (any::operator=(const any&)): Move check
1959 for self-assignment.
1960 (any::operator=(any&&)): Add check for self-assignment.
1961 (any::operator=(_ValueType&&)): Constrain template argument.
1962 (any::swap(any&)): Add check for self-swap.
1963 * testsuite/experimental/any/assign/self.cc: Test move and swap.
1964 * testsuite/experimental/any/misc/any_cast_neg.cc: Update dg-error.
1966 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
1968 * include/experimental/array: Add feature-test macro.
1969 * testsuite/experimental/array/neg.cc: Update dg-error.
1971 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1973 * testsuite/experimental/array/neg.s: Remove.
1974 * testsuite/experimental/array/neg.ii.gz: Remove.
1976 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1978 Implement std::experimental::fundamentals_v2::make_array and
1979 std::experimental::fundamentals_v2::to_array.
1980 * include/Makefile.am: Add array.
1981 * include/Makefile.in: Add array.
1982 * include/experimental/array: New.
1983 * testsuite/experimental/array/make_array.cc: Likewise.
1984 * testsuite/experimental/array/neg.cc: Likewise.
1985 * doc/html/manual/status.html: Mark make_array as Y.
1986 * doc/xml/manual/status_cxx2017.xml: Likewise.
1988 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
1990 * include/bits/alloc_traits.h: Add feature-test macro.
1991 * include/bits/allocator.h: Likewise.
1992 * include/bits/range_access.h: Likewise.
1993 * include/bits/stl_map.h: Likewise.
1994 * include/bits/unordered_map.h: Likewise.
1996 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
1998 * testsuite/30_threads/mutex/unlock/2.cc: New.
1999 * testsuite/30_threads/recursive_mutex/unlock/2.cc: New.
2000 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: New.
2001 * testsuite/30_threads/shared_mutex/unlock/1.cc: New.
2002 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: New.
2003 * testsuite/30_threads/timed_mutex/unlock/2.cc: New.
2005 2015-08-13 Eelis van der Weegen <eelis@eelis.net>
2007 * include/std/shared_mutex (shared_mutex::unlock()): Fix typo.
2009 2015-08-12 Caroline Tice <cmtice@google.com>
2011 PR 66521, Contributed by Eric Gallager
2012 * acinclude.m4 (VTV_CXXLINKFLAGS): Make this variable OS-specific, and
2013 fix the rpath flag to work properly for darwin.
2014 * configure: Regenerated.
2016 2015-08-12 Jonathan Wakely <jwakely@redhat.com>
2018 * doc/xml/manual/appendix_contributing.xml: Update patch email policy.
2019 * doc/xml/manual/status_cxx2017.xml: Update status table.
2020 * doc/html/manual/*: Regenerate.
2022 2015-08-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2024 Implement N4279, Improved insertion interface for unique-key maps.
2025 * include/bits/stl_map.h (try_emplace, insert_or_assign): New.
2026 * include/bits/stl_tree.h (_M_get_insert_unique_pos,
2027 _M_get_insert_equal_pos, _M_get_insert_hint_unique_pos,
2028 _M_get_insert_hint_equal_pos): Make public.
2029 * include/bits/unordered_map.h (try_emplace, insert_or_assign): New.
2030 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2032 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2033 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
2035 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
2038 2015-08-08 Ville Voutilainen <ville.voutilainen@gmail.com>
2040 Implement N4089 Safe conversions in unique_ptr<T[]> (LWG 2118)
2041 and N4366 LWG 2228: Missing SFINAE rule in unique_ptr
2042 templated assignment
2043 * include/bits/unique_ptr.h
2044 (__remove_cv, __is_derived_Tp): Remove.
2045 (default_delete::default_delete(const default_delete<_Up[]>)):
2046 Constrain with array convertibility.
2047 (default_delete::operator(_Up*)): Turn into a template,
2048 constrain with array convertibility.
2049 (__safe_conversion_up): New, single object version.
2050 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Constrain with deleter
2052 (unique_ptr::operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
2053 is_assignable as a constraint.
2054 (__safe_conversion_up): Array version, renamed from __safe_conversion,
2055 updated to implement N4089.
2056 (__safe_conversion_raw): New.
2057 (unique_ptr(_Up)): Turn into a template, constrain with array
2060 typename conditional<is_reference<deleter_type>::value,
2061 deleter_type, const deleter_type&>::type)): Likewise.
2062 (unique_ptr(_Up, typename
2063 remove_reference<deleter_type>::type&&)): Likewise.
2064 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Likewise.
2065 (operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
2066 is_assignable as a constraint (array version).
2067 (reset(_Up)): Turn into a template, constrain with array
2069 (reset(nullptr_t)): New.
2070 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
2071 * testsuite/20_util/unique_ptr/assign/48635.cc: Likewise.
2072 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
2073 * testsuite/20_util/unique_ptr/assign/cv_qual.cc: Likewise.
2074 * testsuite/20_util/unique_ptr/cons/cv_qual.cc: Likewise.
2075 * testsuite/20_util/unique_ptr/dr2228.cc: New.
2076 * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Adjust.
2078 2015-08-05 Nikolai Bozhenov <n.bozhenov@samsung.com>
2080 * testsuite/20_util/enable_shared_from_this/cons/constexpr.cc: Remove
2081 redundant -save-temps option.
2082 * testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise.
2083 * testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
2084 * testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.
2085 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
2086 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
2088 2015-08-03 Jonathan Wakely <jwakely@redhat.com>
2091 * include/bits/range_access.h (size, empty, data): Fix _N bad name.
2093 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
2095 * testsuite/experimental/filesystem/operations/current_path.cc: Use
2096 canonical paths for comparisons.
2098 2015-07-30 Tim Shen <timshen@google.com>
2100 * include/bits/regex_automaton.h (_State_base, _State<>):
2101 Remove _TraitsT dependency from _State<>; Make matcher member
2102 into the union to reduce struct size.
2103 * include/bits/regex_automaton.tcc (_State_base<>::_M_print,
2104 _State_base<>::_M_dot, _StateSeq<>::_M_clone):
2105 Adjust to fit the interface. Factor out common parts in
2106 _M_clone as _State<>::_M_has_alt.
2107 * include/bits/regex_executor.h (_Executer<>::_M_lookahead):
2108 Only pass state id instead of the whole state.
2109 * include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
2110 _Executer<>::_M_lookahead): Adjust to fit the interface.
2111 * include/std/regex: Include <ext/aligned_buffer.h>
2113 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
2115 * include/experimental/any (any::operator=(const any&)): Check for
2117 * testsuite/experimental/any/assign/self.cc: New.
2118 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
2120 2015-07-29 Jonathan Wakely <jwakely@redhat.com>
2123 * testsuite/lib/libstdc++.exp (v3-build_support): Compile
2124 testsuite_shared.cc with -std=gnu++98.
2126 2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2128 * include/bits/range_access.h: Change class to typename in every
2130 (size, empty, data): New functions from N4280.
2131 * testsuite/24_iterators/container_access.cc: New.
2134 * include/bits/functional_hash.h (__hash_enum): New.
2135 (hash): Derive from __hash_enum.
2136 * testsuite/20_util/hash/60970.cc: New.
2138 2015-07-29 Tim Shen <timshen@google.com>
2141 * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
2142 _BracketMatcher<>::_M_add_collating_element): Change signature
2143 to make checking the and of bracket expression easier.
2144 * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
2145 Treat '-' as a valid literal if it's at the end of bracket expression.
2146 * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
2149 2015-07-24 Jonathan Wakely <jwakely@redhat.com>
2151 * include/bits/atomic_futex.h [_GLIBCXX_HAVE_LINUX_FUTEX]
2152 (_M_load_and_test_until): Whitespace.
2153 (_M_load_and_test): Value-initialize the unused durations.
2154 (_M_load_when_equal): Add missing return value.
2156 2015-07-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2158 * fragment.am (AM_CPPFLAGS): Add CPPFLAGS.
2159 * Makefile.in: Regenerate.
2160 * doc/Makefile.in: Regenerate.
2161 * include/Makefile.in: Regenerate.
2162 * libsupc++/Makefile.in: Regenerate.
2163 * po/Makefile.in: Regenerate.
2164 * python/Makefile.in: Regenerate.
2165 * src/Makefile.in: Regenerate.
2166 * src/c++11/Makefile.in: Regenerate.
2167 * src/c++98/Makefile.in: Regenerate.
2168 * src/filesystem/Makefile.in: Regenerate.
2169 * testsuite/Makefile.in: Regenerate.
2171 2015-07-23 DJ Delorie <dj@redhat.com>
2173 * include/bits/functional_hash.h: Add specializations for __intN
2176 * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp (__gnu_pbds):
2177 Guard against values that might exceed size_t's precision.
2179 2015-07-20 Jason Merrill <jason@redhat.com>
2181 * include/bits/c++config: Fix abi_tag in special modes.
2183 2015-07-19 Jonathan Wakely <jwakely@redhat.com>
2185 * doc/xml/manual/status_cxx2017.xml: Fix URL for N4279.
2186 * doc/html/manual/status.html: Regenerate.
2188 2015-07-17 Jonathan Wakely <jwakely@redhat.com>
2190 * doc/xml/manual/status_cxx2011.xml: Add caveats for native_handle.
2191 * doc/html/manual/status.html: Regenerate.
2193 2015-07-16 François Dumont <fdumont@gcc.gnu.org>
2195 * include/bits/stl_algobase.h (__miter_base): Move...
2196 * include/bits/cpp_type_traits.h: ...here.
2197 * include/debug/functions.h (__foreign_iterator_aux): Use latter.
2198 * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
2200 2015-07-13 Jonathan Wakely <jwakely@redhat.com>
2203 * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
2204 endianness bit in mode.
2205 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
2207 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
2208 * include/bits/forward_list.h (forward_list::swap): Make noexcept
2210 * include/bits/hashtable.h (_Hashtable::swap): Do not use
2212 * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
2214 * include/bits/stl_deque.h (deque::swap): Likewise.
2215 (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
2216 * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
2217 (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
2218 * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
2219 _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
2220 * include/bits/stl_multimap.h (multimap::swap,
2221 swap(multimap&, multimap&)): Likewise.
2222 * include/bits/stl_multiset.h (multiset::swap,
2223 swap(multiset&, multiset&)): Likewise.
2224 * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
2225 * include/bits/stl_tree.h (_Rb_tree::swap,
2226 swap(_Rb_tree&, _Rb_tree&)): Likewise.
2227 * include/bits/stl_vector.h (vector::swap): Make noexcept
2229 (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
2230 * include/debug/deque (deque::swap, swap): Likewise.
2231 * include/debug/forward_list (swap): Add noexcept.
2232 * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
2233 * include/debug/map.h (map::swap, swap): Likewise.
2234 * include/debug/multimap.h (multimap::swap, swap): Likewise.
2235 * include/debug/multiset.h (multiset::Swap, swap): Likewise.
2236 * include/debug/set.h (set::swap, swap): Likewise.
2237 * include/debug/unordered_map (unordered_map::swap,
2238 unordered_multimap::swap, swap): Likewise.
2239 * include/debug/unordered_set (unordered_set::swap,
2240 unordered_multiset::swap, swap): Likewise.
2241 * include/debug/vector (vector::swap, swap): Likewise.
2242 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
2244 * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
2245 * include/profile/forward_list (swap): Add noexcept.
2246 * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
2247 * include/profile/map.h (map::swap, swap): Likewise.
2248 * include/profile/multimap.h (multimap::swap, swap): Likewise.
2249 * include/profile/multiset.h (multiset::swap, swap): Likewise.
2250 * include/profile/set.h (set::swap, swap): Likewise.
2251 * include/profile/unordered_map (swap): Likewise.
2252 * include/profile/unordered_set (swap): Likewise.
2253 * include/profile/vector (vector::swap, swap): Likewise. Remove
2254 overloads for swapping rvalues.
2255 * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
2256 for noexcept on swap.
2257 * testsuite/23_containers/forward_list/allocator/noexcept.cc:
2259 * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
2260 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
2261 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
2262 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
2263 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
2264 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
2266 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
2268 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
2270 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
2272 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
2273 * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
2274 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
2277 2015-07-13 John Marino <gnugcc@marino.st>
2279 * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
2280 _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
2281 _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
2283 2015-07-05 François Dumont <fdumont@gcc.gnu.org>
2285 * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
2287 * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
2290 2015-07-03 Jonathan Wakely <jwakely@redhat.com>
2292 * doc/xml/manual/status_cxx2017.xml: Update status table.
2293 * doc/html/manual/*: Regenerate.
2295 2015-07-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2297 Implement std::experimental::fundamentals_v2::propagate_const.
2298 * include/Makefile.am: Add propagate_const.
2299 * include/Makefile.in: Regenerate.
2300 * include/experimental/propagate_const: New.
2301 * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
2302 * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
2303 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
2305 * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
2306 * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
2307 * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
2308 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
2309 * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
2310 * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
2311 * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
2312 * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
2313 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
2314 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
2315 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
2316 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
2317 * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
2318 * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
2320 2015-07-02 Jonathan Wakely <jwakely@redhat.com>
2322 * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
2323 --with-default-libstdcxx-abi
2324 * configure: Regenerate.
2325 * doc/xml/manual/configure.xml: Document valid arguments.
2327 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
2329 * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
2330 to avoid unused variable warning.
2331 (__set_and_release): Use __p after __atomic_store to avoid unused
2334 2015-07-01 Jonathan Wakely <jwakely@redhat.com>
2336 * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
2337 (__allocator_traits_base): New base class.
2338 (__alloc_rebind): Reimplement in terms of detection idiom.
2339 (allocator_traits): Derive from __allocator_traits_base. Reimplement
2340 nested types in terms of detection idiom. Simplify SFINAE constraints
2341 on overloaded static member functions.
2342 * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
2343 of __alloctr_rebind.
2344 * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
2345 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
2346 dg-error line number.
2348 * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
2349 __ptrtr_rebind, __ptrtr_not_void): Remove
2350 (__get_first_arg, __replace_first_arg, __make_not_void): Define new
2352 (__detected_or_): New detection trait.
2353 (pointer_traits): Use new traits.
2354 * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
2355 * testsuite/20_util/pointer_traits/requirements/
2356 explicit_instantiation.cc: Use valid arguments to pointer_traits.
2358 * doc/xml/manual/status_cxx2017.xml: Update status table.
2359 * include/experimental/type_traits (void_t, is_detected,
2360 is_detected_v, detected_t, detected_or, detected_or_t,
2361 is_detected_exact, is_detected_exact_v, is_detected_convertible,
2362 is_detected_convertible_v): Define.
2363 * include/std/type_traits (__detector, __detected_or, __detected_or_t,
2364 __detected_or_t_): Define.
2365 * testsuite/experimental/type_traits/detection.cc: New.
2367 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
2369 * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
2370 * doc/Makefile.in: Regenerate.
2372 * include/bits/stl_pair.h: Replace class keyword with typename.
2374 2015-06-30 Ville Voutilainen <ville.voutilainen@gmail.com>
2376 Implement N4387, "Improving pair and tuple", and LWG 2367.
2378 * include/bits/stl_pair.h (_ConstructiblePair,
2379 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
2380 _ImplicitlyMoveConvertiblePair): New.
2381 (pair()): Constrain it.
2382 (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
2383 pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
2384 pair(pair<_U1, _U2>&&)): Make conditionally explicit.
2385 * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
2386 (tuple()): Constrain it.
2387 (tuple(const _UElements&...), tuple(_UElements&&...),
2388 tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
2389 tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
2390 tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
2391 tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
2392 tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
2393 tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
2394 tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
2395 tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
2396 conditionally explicit.
2397 * include/experimental/functional (__boyer_moore_array_base): Name
2398 array type explicitly instead of using an empty braced-init-list.
2399 * testsuite/20_util/pair/cons/explicit_construct.cc: New.
2400 * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
2401 * testsuite/20_util/pair/requirements/dr2367.cc: New.
2402 * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
2403 * testsuite/20_util/tuple/requirements/dr2367.cc: New.
2405 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
2407 * configure: Regenerate.
2409 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
2411 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
2413 * include/debug/functions.h
2414 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
2415 * include/debug/safe_iterator.h
2416 (__gnu_debug::_Sequence_traits): New.
2417 (__gnu_debug::__get_distance_from_begin): New.
2418 (__gnu_debug::__get_distance_to_end): New.
2419 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
2420 distance information. Add optional check_dereferenceable parameter,
2422 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
2423 default definition...
2424 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
2425 (__gnu_debug::__unsafe): Likewise.
2426 * include/debug/helper_functions.h: ...here. New.
2427 (__gnu_debug::__unsafe): New helper function to remove safe iterator
2429 * include/debug/stl_iterator.h: New. Include latter.
2430 * include/bits/stl_iterator.h: Include latter in debug mode.
2431 * include/debug/stl_iterator.tcc: Adapt.
2432 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
2433 overload for _Safe_local_iterator.
2434 (__gnu_debug::__unsafe): Likewise.
2435 * include/debug/safe_local_iterator.tcc: Adapt.
2436 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
2437 (__glibcxx_check_insert_range): Add _Dist parameter.
2438 (__glibcxx_check_insert_range_after): Likewise.
2439 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
2440 _GLIBCXX_DEBUG_PEDASSERT.
2441 * include/debug/deque (deque<>::assign): Remove iterator debug layer
2443 (deque<>::insert): Likewise.
2444 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
2445 (forward_list<>::splice_after): Use latter.
2446 (forward_list<>::assign): Remove iterator debug layer when possible.
2447 (forward_list<>::insert_after): Likewise.
2448 (__gnu_debug::_Sequence_traits<>): Partial specialization.
2449 * include/debug/list (list<>::assign): Remove iterator debug layer when
2451 (list<>::insert): Likewise.
2452 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
2453 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
2455 * include/debug/multimap.h (multimap<>::insert): Likewise.
2456 * include/debug/set.h (set<>::insert): Likewise.
2457 * include/debug/multiset.h (multiset<>::insert): Likewise.
2458 * include/debug/string (basic_string<>::append, basic_string<>::assign,
2459 basic_string<>::insert, basic_string<>::replace): Likewise.
2460 * include/debug/unordered_map
2461 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
2462 * include/debug/unordered_set
2463 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
2464 * include/debug/vector
2465 (vector<>::assign, vector<>::insert): Likewise.
2466 * include/Makefile.am: Add new debug headers.
2467 * include/Makefile.in: Regenerate.
2469 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
2471 * doc/xml/manual/intro.xml: Document LWG 2108 status.
2472 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
2474 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
2475 * include/bits/forward_list.h
2476 (forward_list::operator=(forward_list&&)): Use __bool_constant.
2477 (forward_list::swap(forward_list&)): Add noexcept.
2478 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
2480 (_Hashtable::swap(_Hashtable&)): Likewise.
2481 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
2482 Use _Alloc_traits::is_always_equal.
2483 (deque::operator=(deque&&)): Likewise.
2484 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
2486 (swap(deque&, deque&)): Add noexcept.
2487 * include/bits/stl_list.h (list::operator=(list&&)): Use
2489 (swap(list&, list&)): Add noexcept.
2490 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
2492 (swap(map&, map&)): Add noexcept.
2493 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
2494 _Compare in noexcept.
2495 (swap(multimap&, multimap&)): Add noexcept.
2496 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
2497 _Compare in noexcept.
2498 (swap(multiset&, multiset&)): Add noexcept.
2499 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
2501 (swap(set&, set&)): Add noexcept.
2502 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
2503 _Compare in noexcept.
2504 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
2506 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
2508 (swap(vector&, vector&)): Add noexcept.
2509 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
2510 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
2511 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
2512 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
2513 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
2515 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
2516 __allocator_always_compares_equal.
2517 * include/ext/array_allocator.h (array_allocator::is_always_equal):
2519 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
2520 __propagate_on_move, __propagate_on_swap): Remove.
2521 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
2522 scoped_allocator_adaptor::propagate_on_container_move_assignment,
2523 scoped_allocator_adaptor::propagate_on_container_swap): Define with
2524 __and_ instead of __any_of.
2525 (scoped_allocator_adaptor::is_always_equal): Define.
2526 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
2527 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
2528 derive from true_type or false_type.
2529 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
2530 is_always_equal member and remove the trait specialization.
2531 * testsuite/23_containers/vector/52591.cc: Likewise.
2532 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2533 Adjust dg-error line number.
2534 * testsuite/23_containers/deque/requirements/dr438/
2535 constructor_1_neg.cc: Likewise.
2536 * testsuite/23_containers/deque/requirements/dr438/
2537 constructor_2_neg.cc: Likewise.
2538 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2540 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2542 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2544 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2546 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2548 * testsuite/23_containers/vector/requirements/dr438/
2549 constructor_1_neg.cc: Likewise.
2550 * testsuite/23_containers/vector/requirements/dr438/
2551 constructor_2_neg.cc: Likewise.
2552 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2555 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
2556 * include/bits/stl_map.h (map::map()): Likewise.
2557 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
2558 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
2559 * include/bits/stl_set.h (set::set()): Likewise.
2561 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
2563 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
2565 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
2567 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
2569 (basic_string<>::back()): Likewise.
2570 (basic_string<>::pop_back()): Likewise.
2572 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
2574 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
2575 dg-error line numbers.
2576 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2579 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
2581 * include/debug/array: Include <array>. Add version namespace when
2582 specializing tuple interface to array. Add specialization for
2583 __is_tuple_like_impl.
2584 * include/profile/array: Likewise.
2585 * include/std/array: Include <utility>. Add specialization for
2586 __is_tuple_like_impl.
2588 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
2589 * include/std/utility: ... here. Include <type_traits>.
2590 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
2591 dg-error line number.
2592 * testsuite/23_containers/array/tuple_interface/
2593 tuple_element_debug_neg.cc: Likewise.
2595 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
2597 * testsuite/26_numerics/complex/value_operations/1.cc: Use
2598 non-negative rho argument.
2600 * include/debug/list (__gnu_debug::list): Use allocator-aware
2601 _Safe_container base.
2602 * include/debug/string (__gnu_debug::basic_string): Use
2603 allocator-aware _Safe_container base for cxx11 ABI.
2605 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
2606 (wstring_convert): Move into __cxx11 namespace.
2607 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
2611 * include/bits/stl_uninitialized.h
2612 (__uninitialized_copy::__uninit_copy): Cast expression to void.
2614 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
2617 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
2618 (list::list(const list&)): Use allocator propagation trait. Use
2619 _M_assign_dispatch to copy elements.
2620 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
2621 (_List_node::_M_valptr()): Add accessor for stored value.
2622 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
2623 (_List_base, list): Use allocator traits.
2624 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
2625 (_List_base::_M_move_nodes): New function.
2626 (_List_base(_List_base&&)): Use _M_move_nodes.
2627 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
2628 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
2630 (list(size_type)): Add allocator parameter.
2631 (list(const list&)): Use allocator propagation trait.
2632 (list(const list&, const allocator_type&)): New constructor.
2633 (list(list&&, const allocator_type&)): Likewise.
2634 (list::operator=(list&&), list::swap(list&)): Use allocator
2636 (list::_M_move_assign): New functions.
2637 * include/debug/list: Add allocator-extended constructors.
2638 * include/profile/list: Likewise.
2639 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
2640 function to get value from _List_node.
2641 (StdListPrinter): Use get_value_from_list_node.
2642 * testsuite/23_containers/list/allocator/copy.cc: New.
2643 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
2644 * testsuite/23_containers/list/allocator/minimal.cc: New.
2645 * testsuite/23_containers/list/allocator/move.cc: New.
2646 * testsuite/23_containers/list/allocator/move_assign.cc: New.
2647 * testsuite/23_containers/list/allocator/noexcept.cc: New.
2648 * testsuite/23_containers/list/allocator/swap.cc: New.
2649 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2650 Adjust dg-prune-output line number.
2651 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2653 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2656 * include/bits/forward_list.h
2657 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
2659 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
2660 (forward_list(const _Alloc&)): Split default constructor out to
2662 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
2664 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
2665 swap call with two assignments.
2666 * include/bits/forward_list.tcc
2667 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
2668 move elements when allocators are not equal.
2669 * include/debug/forward_list (forward_list(const allocator_type&)):
2670 Split default constructor out to separate function.
2671 * include/profile/forward_list (forward_list(const _Alloc&)):
2674 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
2675 Remove unnecessary uses of operator& and static_cast.
2676 * include/bits/forward_list.tcc
2677 (forward_list::operator=(const forward_list&)): Use __addressof
2678 instead of operator&.
2679 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
2680 Remove invalid static_casts.
2681 * include/debug/forward_list: Use __addressof instead of operator&.
2682 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
2684 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
2685 __is_nothrow_swappable.
2687 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
2689 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
2691 * include/bits/list.tcc (list::operator=(const list&), list::merge):
2692 Use __addressof instead of operator&.
2693 (list::sort): Use array-to-pointer decay instead of operator&.
2694 * include/bits/stl_list.h (list::splice): Use __addressof instead of
2696 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
2698 * include/debug/functions.h (__check_singular): Likewise.
2699 * include/debug/list (list::splice, list::merge): Likewise.
2700 * testsuite/23_containers/list/modifiers/addressof.cc: New.
2703 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
2706 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
2708 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
2711 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
2714 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2718 * config/cpu/alpha/atomic_word.h: Remove.
2719 * config/cpu/ia64/atomic_word.h: Remove.
2720 * config/cpu/powerpc/atomic_word.h: Remove.
2721 * config/os/aix/atomic_word.h: Remove.
2722 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
2723 Use generic definition.
2725 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2729 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
2730 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
2731 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
2732 * include/ext/atomicity.h: Likewise.
2733 * include/tr1/shared_ptr.h: Likewise.
2734 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
2736 (__set_and_release): Likewise.
2737 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
2739 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
2740 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
2743 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
2745 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
2746 debug and profile modes.
2747 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
2748 for swap in C++11 and later.
2750 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
2753 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
2756 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
2759 * testsuite/22_locale/conversions/string/66441.cc: New.
2760 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
2761 in the output string for BOM and complete result.
2764 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
2765 for single UTF-16 units.
2766 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
2768 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
2770 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
2771 outer scope and rename to ...
2772 (std::__hash_is_transparent<>): ... this.
2773 * include/debug/stl_map.h (map::find<>,
2774 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
2775 member function templates to perform heterogeneous lookup.
2776 * include/debug/stl_multimap.h (multimap::find<>,
2777 multimap::lower_bound<>, multimap::upper_bound<>,
2778 multimap::equal_range<>): Likewise.
2779 * include/debug/stl_multiset.h (multiset::find<>,
2780 multiset::lower_bound<>, multiset::upper_bound<>,
2781 multiset::equal_range<>): Likewise.
2782 * include/debug/stl_set.h (set::find<>,
2783 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2784 * include/profile/stl_map.h (map::find<>, map::count<>,
2785 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
2786 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
2787 multimap::lower_bound<>, multimap::upper_bound<>,
2788 multimap::equal_range<>): Likewise.
2789 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
2790 multiset::lower_bound<>, multiset::upper_bound<>,
2791 multiset::equal_range<>): Likewise.
2792 * include/profile/stl_set.h (set::find<>, set::count<>,
2793 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2794 * testsuite/23_containers/map/operations/1.cc: Check const variants.
2795 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
2796 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
2797 * testsuite/23_containers/set/operations/1.cc: Likewise.
2799 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
2801 * doc/xml/manual/status_cxx2017.xml: Update status tables.
2802 * doc/html/manual/*: Regenerate.
2803 * include/std/type_traits (bool_constant): Define.
2804 * testsuite/20_util/bool_constant/requirements.cc: New.
2805 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
2806 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2808 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2811 * include/std/shared_mutex (__shared_mutex_pthread,
2812 __shared_mutex_cv): New helper types implementing the shared mutex
2814 (shared_mutex): New type for C++17.
2815 (shared_timed_mutex): Derive from one of the new helper types.
2816 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
2817 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
2818 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
2819 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
2821 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
2822 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
2824 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
2826 Add __is_nothrow_swappable and take it into use.
2827 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
2828 * include/bits/move.h (swap): Add constraints in C++11 and later.
2829 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
2830 for the free swap function for pair.
2831 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
2832 for the free swap functions for queue and priority_queue.
2833 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
2834 for the free swap function for stack.
2835 * include/debug/array (swap): Use __is_nothrow_swappable
2836 for the free swap function for array.
2837 * include/profile/array (swap): Likewise.
2838 * include/std/array (swap): Likewise.
2839 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
2840 * include/std/type_traits (__is_swappable_impl::__is_swappable,
2841 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
2842 * testsuite/20_util/is_nothrow_swappable/requirements/
2843 explicit_instantiation.cc: New.
2844 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
2846 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
2848 2015-06-03 François Dumont fdumont@gcc.gnu.org>
2850 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
2852 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
2854 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
2855 * doc/html/manual/*: Regenerate.
2857 * doc/html/ext/lwg-active.html: Update to R93.
2858 * doc/html/ext/lwg-closed.html: Likewise.
2859 * doc/html/ext/lwg-defects.html: Likewise.
2860 * doc/html/manual/*: Regenerate.
2861 * doc/xml/manual/intro.xml: Document status of several DRs.
2863 2015-06-02 Renlin Li <renlin.li@arm.com>
2865 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
2867 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
2869 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
2870 environment variable.
2872 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
2875 * include/bits/stl_algobase.h (__fill_a): Check length before calling
2878 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
2880 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
2881 instead of checking for null pointers.
2882 (__lexicographical_compare<true>::__lc): Only check shorter length.
2884 2015-05-29 François Dumont fdumont@gcc.gnu.org>
2886 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
2887 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
2888 * include/debug/assertions.h: ...here, new.
2889 * include/debug/formatter.h
2890 (_Error_formatter::_Is_iterator_value_type): New.
2891 (_Error_formatter::_Is_instance): New.
2892 (_Error_formatter::_Parameter): Make public and not friend anymore.
2893 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
2894 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
2896 (_Error_formatter::_Parameter::_Type): New.
2897 (_Error_formatter::_Parameter::_Instance): New, inherit from
2899 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
2900 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
2901 overloads take iterator through a const reference.
2902 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
2904 (_Parameter(const _Type&, const char*, _Is_instance)): New.
2905 (_Error_formatter::_M_print_type): Delete.
2906 (_Error_formatter::_M_iterator_value_type): New.
2907 (_Error_formatter::_M_instance): New.
2908 * include/Makefile.am: Add new above debug file.
2909 * include/Makefile.in: Regenerate.
2910 * include/debug/functions.h
2911 (__check_dereferenceable(const _Safe_iterator<>&),
2912 __valid_range(const _Safe_iterator<>&),
2913 __is_safe_random_iterator<_Safe_iterator<>>): Move...
2914 * include/debug/safe_iterator.h: ... here.
2915 Replace debug.h include with assertions.h.
2916 (__check_singular_aux): Move...
2917 * include/debug/safe_base.h: ... here.
2918 * include/debug/functions.h
2919 (__check_dereferenceable(const _Safe_local_iterator<>&),
2920 __valid_range(const _Safe_local_iterator<>&): Move...
2921 * include/debug/safe_local_iterator.h: ...here.
2922 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
2923 Remove _Safe_iterator declaration.
2924 * include/debug/safe_unordered_container.h: Replace debug.h with
2926 * include/debug/array: Replace safe_sequence.h include with
2927 formatter.h and macros.h.
2928 * include/debug/deque: Include functions.tcc.
2929 * include/debug/forward_list: Likewise.
2930 * include/debug/list: Likewise.
2931 * include/debug/string: Likewise.
2932 * include/debug/vector: Likewise.
2933 * include/bits/unique_ptr.h: Replace debug.h include with new
2935 * include/bits/stl_iterator_base_funcs.h: Likewise.
2936 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
2937 Adjust dg-error line number.
2938 * testsuite/23_containers/array/tuple_interface/
2939 tuple_element_debug_neg.cc: Likewise.
2940 * src/c++11/debug.cc: Adapt.
2942 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
2944 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
2945 * doc/html/manual/*: Regenerate.
2947 * include/std/future (__async_result_of): New alias template.
2948 (async): Use __async_result_of to pass decayed types to result_of.
2949 * testsuite/30_threads/async/lwg2021.cc: New.
2950 * doc/xml/manual/intro.xml: Document LWG 2021 status.
2953 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
2954 memcmp with null pointers.
2955 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
2958 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
2961 * include/profile/array (array::data): Use _S_ptr.
2962 * include/debug/array (array::data): Likewise.
2965 * include/std/array (__array_traits::_S_ptr): New function.
2966 (array::data): Use _S_ptr to avoid creating invalid reference.
2967 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
2968 dg-error line numbers.
2969 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2972 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
2974 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
2975 instead of downcasting.
2976 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
2977 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
2978 (_Rb_tree::_S_iter): Remove.
2979 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
2980 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
2981 instead of _S_lower_bound_tr
2982 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
2983 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
2984 instead of calling _S_lower_bound_tr.
2985 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
2986 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
2987 instead of calling _S_upper_bound_tr.
2988 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
2989 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
2990 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
2991 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
2992 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
2993 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
2994 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
2995 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
2998 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
2999 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
3001 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
3002 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
3003 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
3004 alignment of _Tp as a member subobject, not as a complete object.
3005 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
3006 _Link_type manually as it might not be in the debug info.
3008 2015-05-26 Doug Evans <dje@google.com>
3010 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
3012 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
3015 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
3017 * include/bits/locale_conv.h: Fix copyright years.
3018 * include/bits/quoted_string.h: Likewise.
3019 * src/filesystem/Makefile.am: Likewise.
3020 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
3021 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
3023 * testsuite/22_locale/conversions/string/1.cc: Likewise.
3024 * testsuite/22_locale/conversions/string/2.cc: Likewise.
3025 * testsuite/22_locale/conversions/string/3.cc: Likewise.
3026 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
3028 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
3030 * testsuite/util/testsuite_fs.h: Likewise.
3032 2015-05-23 François Dumont fdumont@gcc.gnu.org>
3035 * include/debug/functions.h (__check_sorted_aux): Cast expression to
3038 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
3041 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
3042 Don't use isync. Use lwsync if available.
3043 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
3044 powerpc cpu definition.
3046 2015-05-21 Jason Merrill <jason@redhat.com>
3048 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
3049 * libsupc++/del_op.cc: Likewise.
3051 2015-05-20 François Dumont fdumont@gcc.gnu.org>
3053 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
3055 (_Error_formatter::_M_print_type): New.
3056 * src/c++11/debug.cc
3057 (_Error_formatter::_Parameter::_M_print_field): Use latter.
3058 (_Error_formatter::_M_print_type): Implement latter using
3059 __cxaabiv1::__cxa_demangle to print demangled type name.
3061 * include/bits/cpp_type_traits.h
3062 (std::move_iterator): Delete declaration.
3063 (std::__is_move_iterator<move_iterator>): Move partial specialization...
3064 * include/bits/stl_iterator.h: ... here.
3065 (std::__miter_base): Overloads for std::reverse_iterator and
3067 * include/bits/stl_algobase.h (std::__miter_base): Provide default
3070 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
3072 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
3075 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
3076 overload for pointers.
3077 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
3078 808590.cc: Add -std=gnu++03 switch.
3079 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
3080 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
3081 * testsuite/23_containers/vector/modifiers/push_back/
3082 strong_guarantee.cc: New.
3084 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
3086 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
3087 (operator==(const list&, const list&)): If size() is O(1) compare
3088 sizes before comparing each element.
3089 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
3090 (list::resize): Use _M_resize_pos.
3092 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
3094 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
3096 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
3097 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
3098 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
3100 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3102 * configure.host: Define cpu_defines_dir for ARM.
3103 * config/cpu/arm/cpu_defines.h: New file.
3105 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
3107 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
3108 missing constructors.
3109 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
3111 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
3112 missing constructors.
3113 * include/debug/unordered_set (unordered_set, unordered_multiset):
3115 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
3116 missing constructors.
3117 * include/profile/unordered_set (unordered_set, unordered_multiset):
3120 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
3122 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
3123 use throughout the file.
3124 (make_file_type): New function.
3125 (file_size(const path&, error_code&)): Report an error for anything
3126 that isn't a regular file.
3127 (status(const path&), symlink_status(const path&)): Do not throw for
3128 file_type::not_found.
3129 (temp_directory_path()): Check additional environment variables.
3130 * testsuite/experimental/filesystem/operations/exists.cc: New.
3131 * testsuite/experimental/filesystem/operations/file_size.cc: New.
3132 * testsuite/experimental/filesystem/operations/status.cc: New.
3133 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
3136 2015-05-14 Nathan Myers <ncm@cantrip.org>
3137 Jonathan Wakely <jwakely@redhat.com>
3140 * include/std/unordered_map (unordered_map, unordered_multimap): Add
3141 missing constructors.
3142 * include/std/unordered_set (unordered_set, unordered_multiset):
3144 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
3145 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
3146 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
3147 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
3149 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
3152 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
3154 * config.h.in: Regenerate.
3155 * configure: Regenerate.
3156 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
3157 not return after copying contents. Use fchmod, fchmodat, and sendfile
3159 (current_path, permissions, space): Use errno not return value.
3162 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
3164 * config.h.in: Regenerate.
3165 * configure: Regenerate.
3166 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
3168 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
3170 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
3171 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
3172 * config.h.in: Regenerate.
3173 * configure: Likewise.
3174 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
3175 __USING_SJLJ_EXCEPTIONS__.
3176 * libsupc++/eh_throw.cc: Likewise.
3177 * libsupc++/eh_ptr.cc: Likewise.
3178 * doc/html/manual/appendix_porting.html: Remove
3179 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
3180 * doc/xml/manual/build_hacking.xml: Likewise.
3181 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
3182 * doc/xml/manual/configure.xml: Likewise.
3184 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
3186 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
3187 for nullptr (LWG 2415).
3188 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
3189 construction from empty unique_ptr.
3190 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
3191 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
3193 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
3195 * testsuite/20_util/raw_storage_iterator/base.cc: New.
3197 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
3198 Remove explicit (LWG 2407).
3200 * include/bits/basic_string.h (basic_string::basic_string()): Make
3201 noexcept conditional on allocator (LWG 2455).
3203 * include/std/complex (polar): Check for negative rho (LWG 2459).
3205 * include/experimental/tuple (apply): Handle pointers to member (LWG
3207 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
3208 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
3209 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
3211 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
3213 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
3214 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
3215 * testsuite/23_containers/forward_list/allocator/minimal.cc:
3217 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
3218 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
3219 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
3220 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
3221 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
3223 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
3225 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
3227 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
3229 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
3231 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
3232 * configure: Regenerate.
3234 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
3236 * Makefile.in: Regenerated with automake-1.11.6.
3237 * aclocal.m4: Likewise.
3238 * configure: Likewise.
3239 * doc/Makefile.in: Likewise.
3240 * include/Makefile.in: Likewise.
3241 * libsupc++/Makefile.in: Likewise.
3242 * po/Makefile.in: Likewise.
3243 * python/Makefile.in: Likewise.
3244 * src/Makefile.in: Likewise.
3245 * src/c++11/Makefile.in: Likewise.
3246 * src/c++98/Makefile.in: Likewise.
3247 * src/filesystem/Makefile.in: Likewise.
3248 * testsuite/Makefile.in: Likewise.
3250 2015-05-09 Jason Merrill <jason@redhat.com>
3252 * testsuite/20_util/headers/functional/synopsis.cc: Add
3253 _GLIBCXX14_CONSTEXPR.
3254 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
3256 2015-05-08 Jason Merrill <jason@redhat.com>
3258 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
3259 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
3260 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
3261 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
3262 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
3263 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
3264 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
3265 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
3266 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
3267 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
3268 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
3270 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
3271 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
3272 Adjust expected errors.
3273 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
3275 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
3277 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
3279 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3281 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
3283 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
3285 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
3287 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3289 * testsuite/23_containers/vector/requirements/dr438
3290 /constructor_1_neg.cc: Likewise.
3291 * testsuite/23_containers/vector/requirements/dr438
3292 /constructor_2_neg.cc: Likewise.
3293 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3295 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
3296 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
3297 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
3298 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
3299 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
3300 Add -Wno-deprecated.
3301 * testsuite/ext/array_allocator/check_deallocate_null.cc:
3302 Add -Wno-deprecated.
3303 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
3304 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
3305 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
3306 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
3308 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
3310 * testsuite/tr1/2_general_utilities/shared_ptr/assign
3311 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
3312 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
3313 Add -std=c++98 -fno-show-column.
3314 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
3316 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
3318 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
3319 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
3321 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
3322 * src/c++98/Makefile.in: Regenerate.
3323 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
3324 * src/Makefile.in: Regenerate.
3326 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
3329 * include/std/future (async): Change default policy to launch::async.
3331 * include/experimental/any (any::_Storage): Fix alignment of buffer.
3332 (any::_Internal): Check alignment of type.
3333 * testsuite/experimental/any/cons/aligned.cc: New.
3334 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3336 * include/experimental/iterator (ostream_joiner): Simplify by using
3337 the injected-class-name and the ostream_type typedef.
3339 * include/experimental/iterator: New. Define ostream_joiner.
3340 * include/Makefile.am: Add new header.
3341 * include/Makefile.in: Regenerate.
3342 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
3343 * testsuite/experimental/iterator/ostream_joiner.cc: New.
3344 * testsuite/experimental/iterator/requirements.cc: New.
3345 * doc/xml/manual/status_cxx2017.xml: Update status.
3346 * doc/html/manual/status.html: Regenerate.
3348 * include/experimental/numeric: New. Define gcd and lcm.
3349 * include/Makefile.am: Add new header.
3350 * include/Makefile.in: Regenerate.
3351 * testsuite/experimental/numeric/gcd.cc: New.
3352 * testsuite/experimental/numeric/lcm.cc: New.
3353 * doc/xml/manual/status_cxx2017.xml: Update status.
3354 * doc/html/manual/status.html: Regenerate.
3356 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
3358 Revert addition of feature macros from other headers per latest SD-6.
3359 * include/experimental/deque: Remove feature-test macro.
3360 * include/experimental/forward_list: Ditto.
3361 * include/experimental/list: Ditto.
3362 * include/experimental/map: Ditto.
3363 * include/experimental/set: Ditto.
3364 * include/experimental/string: Ditto.
3365 * include/experimental/unordered_map: Ditto.
3366 * include/experimental/unordered_set: Ditto.
3368 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
3370 * include/experimental/any (any::_Storage): Make non-copyable.
3371 (any::any): Do not copy _Storage object.
3372 (any::operator=): Implement more efficiently than swapping.
3373 (any::swap): Use new _Op_xfer operation.
3374 (any::_Op::_Op_xfer): New enumerator.
3375 (_Manager_internal::_S_alloc): Remove unused function.
3376 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
3377 parameter instead of returning a _Storage object.
3378 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
3379 _Op_xfer operation for moving and swapping.
3380 * testsuite/experimental/any/cons/nontrivial.cc: New.
3381 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3383 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
3385 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
3389 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
3390 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
3391 and fix tests for forward_as_tuple and tie.
3393 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
3394 Set timespec members explicitly instead of with a braced-init-list.
3395 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
3397 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
3399 * include/experimental/deque: Add feature-test macro.
3400 * include/experimental/forward_list: Ditto.
3401 * include/experimental/list: Ditto.
3402 * include/experimental/map: Ditto.
3403 * include/experimental/set: Ditto.
3404 * include/experimental/string: Ditto.
3405 * include/experimental/unordered_map: Ditto.
3406 * include/experimental/unordered_set: Ditto.
3408 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3410 * include/experimental/memory: Correct feature-test macro.
3412 * include/experimental/memory: Add feature-test macro.
3413 * include/experimental/vector: Likewise.
3414 * doc/xml/manual/status_cxx2017.xml: Update status.
3415 * doc/html/manual/status.html: Regenerate.
3417 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
3419 Implement observer_ptr.
3420 * include/Makefile.am: Add new header.
3421 * include/Makefile.in: Regenerate.
3422 * include/experimental/memory: New.
3423 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
3424 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
3425 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
3426 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
3427 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
3428 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
3429 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
3430 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
3432 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3434 * src/filesystem/path.cc (path::compare): Do not copy strings.
3436 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
3438 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
3439 * configure: Regenerate.
3440 * config.h.in: Regenerate.
3441 * configure.ac: Check for utime.h
3442 * include/experimental/fs_path.h (path::string<>)
3443 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
3444 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
3445 closedir, dirent, readdir_r): Replace dummy functions with #error.
3446 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
3447 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
3448 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
3449 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
3450 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
3453 * include/experimental/fs_path.h (path::_List): Use vector instead of
3455 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
3456 * src/filesystem/path.cc: Use std::prev instead of decrementing
3457 rvalues. Fix whitespace.
3458 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
3459 Do not decrement iterators before begin.
3461 * include/experimental/fs_dir.h: Fix use of non-reserved names.
3462 * include/experimental/fs_ops.h: Likewise.
3463 * include/experimental/fs_path.h: Likewise.
3464 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
3465 C++11 when checking for support.
3467 * include/bits/locale_classes.h (locale::facet): Delete copy
3468 operations in C++11 mode.
3470 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
3472 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
3473 * configure: Regenerate.
3475 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3477 Inline one-line erasure dispatch functions.
3478 * include/experimental/forward_list (erase_if(), erase()): Inline.
3479 * include/experimental/list (erase_if(), erase()): Inline.
3480 * include/experimental/map (erase_if(*)): Inline.
3481 * include/experimental/set (erase_if(*)): Inline.
3482 * include/experimental/string (erase_if(), erase()): Inline.
3483 * include/experimental/unordered_map (erase_if(*)): Inline.
3484 * include/experimental/unordered_set (erase_if(*)): Inline.
3486 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3488 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
3489 * doc/xml/manual/status_cxx2011.xml: Update status tables.
3490 * doc/xml/manual/status_cxx2014.xml: Likewise.
3491 * doc/xml/manual/status_cxx2017.xml: New.
3492 * doc/xml/manual/using.xml: Fix typo.
3493 * doc/html/*: Regenerate.
3495 * include/std/memory (pointer_safety, declare_reachable,
3496 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
3497 get_pointer_safety): Define.
3498 * testsuite/20_util/pointer_safety/1.cc: New.
3500 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
3502 Implement N4100 File System TS
3503 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
3504 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
3505 * config.h.in: Regenerate.
3506 * configure: Regenerate.
3507 * configure.ac: Enable filesystem TS and check its dependencies.
3508 * include/Makefile.am: Add new headers.
3509 * include/Makefile.in: Regenerate.
3510 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
3511 __str_codecvt_out): Move code conversion logic from wstring_convert
3512 into new global functions.
3513 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
3515 (wstring_convert::_M_conv): Remove.
3516 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
3517 * include/experimental/filesystem: New.
3518 * include/experimental/fs_dir.h: New.
3519 * include/experimental/fs_fwd.h: New.
3520 * include/experimental/fs_ops.h: New.
3521 * include/experimental/fs_path.h: New.
3522 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
3523 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
3524 * src/Makefile.am (SUBDIRS): Add filesystem.
3525 * src/Makefile.in: Regenerate.
3526 * src/filesystem/Makefile.am: New.
3527 * src/filesystem/Makefile.in: New.
3528 * src/filesystem/dir.cc: New.
3529 * src/filesystem/ops.cc: New.
3530 * src/filesystem/path.cc: New.
3531 * testsuite/experimental/filesystem/operations/absolute.cc: New.
3532 * testsuite/experimental/filesystem/operations/copy.cc: New.
3533 * testsuite/experimental/filesystem/operations/current_path.cc: New.
3534 * testsuite/experimental/filesystem/path/append/path.cc: New.
3535 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
3536 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
3537 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
3538 * testsuite/experimental/filesystem/path/compare/path.cc: New.
3539 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
3540 * testsuite/experimental/filesystem/path/concat/path.cc: New.
3541 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
3542 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
3543 * testsuite/experimental/filesystem/path/construct/default.cc: New.
3544 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
3545 * testsuite/experimental/filesystem/path/construct/range.cc: New.
3546 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
3547 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
3548 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
3550 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
3552 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
3554 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
3556 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
3558 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
3559 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
3561 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
3562 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
3563 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
3565 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
3567 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
3569 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
3571 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
3572 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
3573 * testsuite/experimental/filesystem/path/query/empty.cc: New.
3574 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
3575 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
3576 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
3578 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
3580 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
3582 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
3584 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
3586 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
3587 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
3588 * testsuite/util/testsuite_fs.h: New.
3590 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3592 Add fundamentals TR container erasure.
3593 * include/Makefile.am: Add new headers.
3594 * include/Makefile.in: Add new headers.
3595 * include/experimental/array: New.
3596 * include/experimental/deque: New.
3597 * include/experimental/erase_if.tcc: New.
3598 * include/experimental/forward_list: New.
3599 * include/experimental/list: New.
3600 * include/experimental/map: New.
3601 * include/experimental/set: New.
3602 * include/experimental/string: New.
3603 * include/experimental/unordered_map: New.
3604 * include/experimental/unordered_set: New.
3605 * include/experimental/vector: New.
3606 * testsuite/experimental/deque/erasure.cc: New.
3607 * testsuite/experimental/forward_list/erasure.cc: New.
3608 * testsuite/experimental/list/erasure.cc: New.
3609 * testsuite/experimental/map/erasure.cc: New.
3610 * testsuite/experimental/set/erasure.cc: New.
3611 * testsuite/experimental/string/erasure.cc: New.
3612 * testsuite/experimental/unordered_map/erasure.cc: New.
3613 * testsuite/experimental/unordered_set/erasure.cc: New.
3614 * testsuite/experimental/vector/erasure.cc: New.
3616 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
3618 * include/bits/cpp_type_traits.h
3619 (__gnu_cxx::__is_normal_iterator): Delete.
3620 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
3621 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
3622 (std::__niter_base): Overloads for std::reverse_iterator,
3623 __gnu_cxx::__normal_iterator and std::move_iterator.
3625 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
3627 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
3629 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
3630 Remove usage of latter and compute size of the prime numbers array
3633 2015-04-29 Doug Evans <dje@google.com>
3636 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
3637 Replace all lookups of "bool" with this.
3638 (get_std_size_type): New function. Replace all lookups of std::size_t
3640 (*Worker): New method get_result_type.
3641 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
3642 (ListWorkerBase.__init__): New arg val_type. All callers updated.
3643 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
3644 Delete setting of name, enabled.
3645 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
3646 updated. Delete setting of name.
3647 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
3648 libstdc++ xmethod matchers.
3649 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
3650 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
3651 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
3652 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
3653 * testsuite/libstdc++-xmethods/list.cc: Ditto.
3654 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
3655 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
3657 2015-04-29 Doug Evans <dje@google.com>
3659 Use consistent naming for value type attributes.
3660 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
3662 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
3663 (ArrayFrontWorker, ArrayBackWorker): Ditto.
3664 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
3665 (DequeWorkerBase): Rename elemtype to val_type.
3666 (ForwardListWorkerBase): Rename _elem_type to _val_type.
3667 (ForwardListFrontWorker): Ditto. And rename elem_address to
3669 (ForwardListMethodsMatcher): Rename elem_type to val_type.
3670 (VectorWorkerBase): Rename _elemtype to _val_type.
3672 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
3675 * include/std/functional (__check_func_return_type): Use is_same to
3676 avoid using _is_convertible on incomplete types.
3677 * testsuite/20_util/function/65760.cc: New.
3680 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
3682 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
3683 time_get::_M_extract_num, time_get::_M_extract_name,
3684 time_get::_M_extract_wday_or_month): Likewise.
3685 * include/bits/stl_algo.h (__includes, __replace_copy_if,
3686 __is_sorted_until, __is_permutation, transform): Likewise.
3687 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
3688 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
3689 * include/bits/stl_numeric.h (inner_product): Likewise.
3690 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
3691 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
3692 input_iterator_wrapper): Declare unusable comma operator.
3693 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
3694 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
3697 2015-04-28 Doug Evans <dje@google.com>
3699 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
3702 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3704 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
3707 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3709 * Makefile.am (SUBDIRS): Move python to hosted_source.
3710 * Makefile.in: Regenerate.
3711 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
3712 * configure: Regenerate.
3714 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
3717 * include/std/limits (numeric_limits): Add missing unsigned.
3719 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
3721 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
3723 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3726 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
3727 Handle enumeration types larger than sizeof(long).
3728 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
3730 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
3731 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3733 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
3734 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
3736 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
3739 * include/bits/forward_list.h (forward_list::splice_after): Add
3741 * include/bits/forward_list.tcc (forward_list::splice_after):
3745 * include/bits/random.h (seed_seq) Define copy constructor and copy
3746 assignment as deleted.
3747 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
3749 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
3750 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
3751 Use -std=gnu++1z. Check feature-test macro.
3753 * include/std/type_traits (void_t): Add.
3754 * testsuite/20_util/void_t/1.cc: New.
3756 2015-04-28 Tim Shen <timshen@google.com>
3758 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
3759 * include/bits/regex_automaton.tcc: Throw exception when parsing
3760 back-reference with flag __polynomial.
3761 * include/bits/regex_constants.h: Add extension flag
3762 syntax_option_type __polynomial.
3763 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
3764 Alternative operation will be fixed in the coming refactoring.
3765 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
3766 loose match_search_debug to use DFS only.
3768 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
3771 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
3772 Make the generated test program fail gracefully if the target
3773 doesn't support passing command-line arguments.
3775 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
3776 Jonathan Wakely <jwakely@redhat.com>
3778 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
3779 Return false or zero if the library is built without exceptions.
3780 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
3781 the library is built without exceptions.
3783 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
3785 * config/abi/pre/gnu.ver: Fix comment.
3787 Add support for std::uncaught_exceptions.
3788 * acinclude.m4: Bump libtool_VERSION.
3789 * config/abi/pre/gnu.ver: Export the new symbol.
3790 * configure: Regenerate.
3791 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
3792 * libsupc++/exception (uncaught_exceptions): New.
3793 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
3794 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
3796 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
3797 Michael Hanselmann <public@hansmi.ch>
3800 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
3801 uncaught exceptions.
3802 * testsuite/18_support/exception_ptr/62258.cc: New.
3804 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
3806 * doc/xml/manual/extensions.xml: Add cross-reference.
3807 * doc/html/manual/ext_compile_checks.html: Regenerate.
3809 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3811 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
3812 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
3814 2015-04-22 Renlin Li <renlin.li@arm.com>
3816 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
3817 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
3818 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
3819 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
3820 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
3822 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
3824 * doc/xml/manual/configure.xml: Update descriptions of options
3825 affecting dual ABI and add cross-references.
3826 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
3827 * doc/xml/manual/using.xml: Document ABI transition.
3828 * doc/html/*: Regenerate.
3830 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
3831 * doc/xml/manual/using.xml: Document newer -std options. Use better
3832 examples of nested namespaces.
3834 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
3836 * doc/xml/manual/concurrency_extensions.xml: Update documentation
3838 * doc/xml/manual/using.xml: Likewise. Improve markup.
3839 * doc/html/*: Regenerate.
3841 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3843 * scripts/extract_symvers.pl: Ignore elfdump error output.
3845 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
3848 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
3849 _List_const_iterator): Declare.
3850 (__distance): Declare new overloads for _List_iterator and
3851 _List_const_iterator.
3852 * include/bits/stl_list.h (__distance): New overloads for
3853 _List_iterator and _List_const_iterator.
3854 * testsuite/23_containers/list/61347.cc: New testcase.
3856 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
3858 * doc/xml/manual/evolution.xml: Fix typos.
3859 * doc/html/manual/api.html: Regenerate.
3861 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
3863 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
3864 alignment is larger-equal, not equal, to default alignment.
3866 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
3869 * config/abi/pre/gnu.ver: Export base object constructors for
3871 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3872 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3873 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
3874 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3875 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3876 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3877 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
3878 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3879 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
3880 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3881 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3882 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3883 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3884 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3885 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3886 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3887 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
3888 * testsuite/27_io/basic_fstream/cons/base.cc: New.
3890 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
3892 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
3893 * doc/html/*: Regenerate.
3895 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
3897 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3899 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
3901 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
3903 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3905 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
3907 * doc/xml/manual/test.xml: Improve documentation on running a subset
3909 * doc/html/manual/test.html: Regenerate.
3911 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3913 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
3914 for GCC 5.1 release.
3915 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
3918 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
3920 * include/std/shared_mutex (shared_timed_mutex): Add comments to
3921 explain the logic in the non-pthread_rwlock_t version.
3922 (_Mutex): Remove redundant type.
3923 (_M_n_readers): Rename to _S_max_readers.
3924 (_M_write_entered, _M_readers): New convenience functions.
3925 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
3926 functions. Use predicates with condition variables. Simplify bitwise
3928 (try_lock_for, try_shared_lock_for): Convert duration to time_point
3929 and call try_lock_until or try_shared_lock_until respectively.
3930 (try_lock_until, try_shared_lock_until): Wait on the condition
3931 variables until the specified time passes.
3932 (unlock): Add Debug Mode assertion.
3933 (unlock_shared): Add Debug Mode assertion.
3934 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
3936 * include/std/shared_mutex (shared_timed_mutex): Only use
3937 pthread_rwlock_t when the POSIX Timeouts option is supported.
3938 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
3939 dg-require-gthreads-timed.
3940 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
3941 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
3942 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
3944 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
3946 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
3948 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
3949 Richard Henderson <rth@redhat.com>
3952 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
3954 * include/std/atomic (atomic): For types with a power of two size set
3955 alignment to at least the size.
3956 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
3957 * testsuite/29_atomics/atomic/65147.cc: New.
3958 * testsuite/29_atomics/atomic_integral/65147.cc: New.
3960 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3962 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3963 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3964 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3966 2015-04-07 Jakub Jelinek <jakub@redhat.com>
3968 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3969 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3970 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3971 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3972 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3973 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3974 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3975 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3977 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
3980 * config/abi/pre/gnu.ver: Export operator+ for new strings.
3981 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
3982 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
3984 2015-03-28 Tim Shen <timshen@google.com>
3987 * include/bits/regex_constants.h: Use constexpr variables for flags.
3988 * testsuite/28_regex/constants/constexpr.cc: New testcase.
3990 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
3993 * include/std/chrono: Add using-directive for literals to std::chrono.
3994 * testsuite/20_util/duration/literals/65499.cc: New.
3996 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
4000 * include/std/thread (this_thread::sleep_for): Check for negative
4002 (this_thread::sleep_until): Check for times in the past.
4003 * testsuite/30_threads/this_thread/58038.cc: New.
4004 * testsuite/30_threads/this_thread/60421.cc: New.
4006 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
4010 * include/std/atomic (atomic<T>): Increase alignment for types with
4011 the same size as one of the integral types.
4012 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
4013 * testsuite/29_atomics/atomic/62259.cc: New.
4015 2015-03-26 Richard Henderson <rth@redhat.com>
4018 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
4019 a fake pointer indicating type alignment.
4020 (__atomic_base<T *>::is_lock_free): Likewise.
4021 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
4023 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
4026 * testsuite/21_strings/basic_string/pthread33394.cc: Use
4027 dg-additional-options.
4029 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
4032 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
4034 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
4036 * testsuite/27_io/rvalue_streams-2.cc: New.
4038 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
4041 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
4043 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
4046 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
4047 * configure: Regenerate.
4048 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
4049 system_category): Use macros for versioned namespace.
4050 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
4052 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
4054 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
4055 test for unused for ARM.
4056 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
4057 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
4059 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
4061 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
4062 * include/ext/codecvt_specializations.h (encoding_state,
4063 encoding_char_traits): Remove abi-tag and use inline namespace.
4064 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
4066 2015-03-19 Jason Merrill <jason@redhat.com>
4068 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
4069 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
4071 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4074 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
4075 get_catalogs): Add abi-tag.
4076 * include/ext/codecvt_specializations.h (encoding_state,
4077 encoding_char_traits): Likewise.
4078 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
4079 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
4080 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
4081 money_get_shim, money_put_shim, messages_shim): Likewise.
4082 * src/c++11/future.cc (future_error_category::message): Likewise.
4083 * src/c++11/system_error.cc (generic_error_category::message,
4084 system_error_category::message): Likewise.
4085 (__sso_string): Disable -Wabi-tag warnings.
4087 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4090 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
4091 implementation for old glibc. Fix whitespace.
4093 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4094 Torvald Riegel <triegel@redhat.com>
4096 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
4097 * config.h.in: Regenerate.
4098 * configure: Regenerate.
4099 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
4100 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
4101 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
4102 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
4105 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
4107 * libsupc++/nested_exception.h: Do not try to derive from final
4109 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
4112 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
4113 unused exception variable.
4114 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
4115 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
4117 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
4119 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
4121 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
4122 * configure: Regenerate.
4124 * include/experimental/system_error: Fix include guard.
4126 2015-03-12 Renlin Li <renlin.li@arm.com>
4128 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
4131 2015-03-10 Tim Shen <timshen@google.com>
4134 * include/bits/regex.h (match_results<>::size,
4135 match_results<>::position, match_results<>::str,
4136 match_results<>::operator[], match_results<>::prefix,
4137 match_results<>::suffix, match_results<>::end,
4138 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
4139 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
4140 global __unmatched_sub. Add unmatched submatch as part of
4142 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
4143 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
4144 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
4147 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
4150 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
4151 for newlib targets. Really fix mixed line-endings this time.
4153 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
4155 * include/std/future (future_error(error_code)): Construct base
4156 class with error_code's message.
4157 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
4160 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
4162 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
4164 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
4165 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
4167 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
4170 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
4171 incomplete multibyte sequences correctly.
4172 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
4173 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
4174 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
4176 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
4177 Define convenience functions.
4178 (read_utf8_code_point): Return relevant constant to distinguish
4179 incomplete characters from invalid sequences.
4180 (read_utf16_code_point): Likewise. Check for invalid sequences.
4181 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
4182 (utf16_out): Check for invalid sequences.
4183 (utf16_span): Fix condition.
4184 (ucs2_out): Use is_high_surrogate.
4185 (ucs2_in): Use incomplete_mb_character constant and fix condition.
4186 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
4187 * testsuite/22_locale/conversions/buffer/1.cc: New.
4188 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
4189 char32_t instead of wchar_t.
4190 * testsuite/22_locale/conversions/string/3.cc: New.
4192 2015-03-03 Iain Sandoe <iain@codesourcery.com>
4195 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
4196 visibility for Darwin.
4197 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
4199 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
4201 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
4204 * include/std/scoped_allocator (__inner_type_impl,
4205 scoped_allocator_adaptor): Add defaulted copy assignment and move
4206 assignment operators.
4207 * testsuite/20_util/scoped_allocator/65279.cc: New.
4209 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
4212 * include/std/stdexcept (__sso_string): Don't use non-static member
4215 2015-02-28 Matthias Klose <doko@ubuntu.com>
4218 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
4220 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
4222 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
4223 * doc/html/manual/status.html: Regenerate.
4225 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
4228 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
4231 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
4233 * doc/html/manual/status.html: Regenerate.
4235 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
4238 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
4239 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
4241 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
4244 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
4245 (test01): Add explanatory comment. Keep only the bd1 sub-test and
4246 split out bd2, bd3, bd4, and bd5 sub-tests into...
4247 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
4248 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
4249 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
4250 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
4251 New separate files with the old parts.
4253 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
4255 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
4257 (utf16_in): Pass mode argument to write_utf16_code_point.
4258 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
4260 * testsuite/22_locale/codecvt/char16_t.cc: New.
4261 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
4263 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
4264 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
4266 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
4267 Jonathan Wakely <jwakely@redhat.com>
4269 * testsuite/22_locale/codecvt/char32_t.cc: New.
4271 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
4274 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
4275 empty string gets null-terminated.
4276 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
4278 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
4280 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
4281 mixed line-endings introduced in last change.
4283 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
4285 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
4286 for __NEWLIB__ macro with a dejagnu set macro.
4287 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
4289 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
4292 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
4293 special case for '\n'.
4294 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
4296 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
4298 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
4300 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
4303 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
4305 * include/c_std/cstdio (gets): Likewise.
4306 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
4307 with attributes used in darwin headers.
4309 2015-01-29 Jakub Jelinek <jakub@redhat.com>
4311 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
4312 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
4313 * configure: Regenerated.
4315 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
4317 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
4318 after vtv_cygmin is set.
4319 * configure: Regenerated.
4321 2015-01-29 Matthias Klose <doko@ubuntu.com>
4323 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
4325 * configure: Regenerate.
4327 2015-01-29 Caroline Tice <cmtice@google.com>
4329 Committing VTV Cywin/Ming patch for Patrick Wollgast
4330 * configure: Regenerate.
4331 * libsupc++/Makefile.in: Regenerate.
4332 * src/Makefile.in: Regenerate.
4334 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
4336 * include/bits/atomic_base.h: Use __always_inline__ instead of
4338 * include/bits/atomic_futex.h: Likewise.
4339 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
4340 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
4341 __packed__ instead of packed.
4342 * include/std/shared_mutex: Use __unused__ instead of unused.
4343 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
4344 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
4345 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
4347 2015-01-28 Caroline Tice <cmtice@google.com>
4349 Committing VTV Cywin/Ming patch for Patrick Wollgast
4350 * acinclude.m4: Define VTV_CYGMIN.
4351 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
4352 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
4353 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
4354 for Cygwin and MinGW.
4355 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
4356 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
4357 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
4359 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
4362 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
4363 * libsupc++/Makefile.in: Regenerate.
4364 * src/c++11/Makefile.in: Regenerate.
4366 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4368 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
4369 check for unsupported.
4370 (v3_target_compile_as_c): Likewise.
4372 2015-01-28 Richard Biener <rguenther@suse.de>
4375 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
4377 (pool::allocate): Adjust allocation size and alignment to
4379 (pool::free): Adjust pointer offsetting.
4381 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
4384 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
4385 shared_timed_mutex::try_lock_until): Only define when POSIX thread
4386 timeouts option is supported.
4387 (shared_timed_mutex::try_shared_lock_for,
4388 shared_timed_mutex::try_shared_lock_until): Likewise.
4390 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
4393 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
4394 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
4395 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
4396 and use cache's _M_grouping field.
4397 (__numpunct_fill_cache): Likewise.
4398 (__moneypunct_fill_cache): Improve comments.
4400 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
4402 * testsuite/23_containers/set/operations/2.cc: Add test for
4403 non-transparent comparison function.
4405 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
4408 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
4409 Remove SH4A inline asm and lock based implementations and use the
4410 defaults from ext/atomicity.h.
4412 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
4414 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
4415 new std::string constructors for byname facets.
4417 2015-01-22 Richard Biener <rguenther@suse.de>
4420 * libsupc++/eh_alloc.cc: Include new.
4421 (bitmask_type): Remove.
4422 (one_buffer): Likewise.
4423 (emergency_buffer): Likewise.
4424 (emergency_used): Likewise.
4425 (dependents_buffer): Likewise.
4426 (dependents_used): Likewise.
4427 (class pool): New custom fixed-size arena, variable size object
4429 (emergency_pool): New global.
4430 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
4431 (__cxxabiv1::__cxa_free_exception): Likewise.
4432 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
4433 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
4435 2015-01-22 Tim Shen <timshen@google.com>
4438 * include/bits/regex.h (basic_regex<>::basic_regex,
4439 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
4441 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
4443 2015-01-22 Tim Shen <timshen@google.com>
4446 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
4447 regex_traits<>::lookup_classname): Correctly narrow input chars.
4448 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
4450 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
4452 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
4454 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
4456 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
4458 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4460 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
4461 * doc/xml/manual/status_cxx2014.xml: Update status.
4462 * doc/html/manual/status.html: Regenerate.
4464 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4467 * include/experimental/optional (bad_optional_access): Add default
4469 * testsuite/experimental/optional/requirements.cc: Test for default
4472 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4474 * include/bits/stl_map.h (map::find<>, map::count<>,
4475 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
4476 member function templates to perform heterogeneous lookup.
4477 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
4478 multimap::lower_bound<>, multimap::upper_bound<>,
4479 multimap::equal_range<>): Likewise.
4480 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
4481 multiset::lower_bound<>, multiset::upper_bound<>,
4482 multiset::equal_range<>): Likewise.
4483 * include/bits/stl_set.h (set::find<>, set::count<>,
4484 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
4485 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
4486 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
4487 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
4488 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
4489 * testsuite/23_containers/map/operations/2.cc: New.
4490 * testsuite/23_containers/multimap/operations/2.cc: New.
4491 * testsuite/23_containers/multiset/operations/2.cc: New.
4492 * testsuite/23_containers/set/operations/2.cc: New.
4494 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4496 * config/abi/pre/gnu.ver: Export new constructors.
4497 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
4498 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
4499 specializations and declare explicit instantiations.
4500 * include/bits/locale_classes.h (locale, collate_byname): Add string
4502 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
4504 * include/bits/locale_facets_nonio.h (time_get_byname,
4505 time_put_byname, moneypunct_byname, messages_byname): Likewise.
4506 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
4507 codecvt_byname<char32_t>): Define explicit instantiations.
4508 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
4509 Instantiate string constructors.
4510 (ctype_byname): Define string constructor.
4511 * testsuite/22_locale/codecvt_byname/1.cc: New.
4512 * testsuite/22_locale/collate_byname/1.cc: New.
4513 * testsuite/22_locale/ctype_byname/2.cc: New.
4514 * testsuite/22_locale/messages_byname/1.cc: New.
4515 * testsuite/22_locale/moneypunct_byname/1.cc: New.
4516 * testsuite/22_locale/numpunct_byname/1.cc: New.
4518 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4521 * include/std/atomic (atomic_init): Define.
4522 * testsuite/29_atomics/atomic/64658.cc: New.
4524 2015-01-19 Tim Shen <timshen@google.com>
4527 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
4528 regex_traits<>::lookup_classname): Support forward iterators.
4529 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
4530 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
4532 2015-01-19 Tim Shen <timshen@google.com>
4536 * include/bits/regex.h (basic_regex<>::basic_regex,
4537 basic_regex<>::assign, basic_regex<>::imbue,
4538 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
4539 imbuing basic_regex; Make assign() transactional against exception.
4540 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
4541 __compile_nfa SFINAE.
4542 * include/std/regex: Adjust include order to avoid __compile_nfa
4543 forward declaration.
4544 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
4545 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
4547 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
4548 Jonathan Wakely <jwakely@redhat.com>
4550 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
4551 on overloads for arrays.
4552 (cbegin, cend, rbegin, rend, crbegin, crend): New.
4553 * testsuite/24_iterators/range_access_cpp14.cc: New.
4555 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4558 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
4559 end of the second range.
4560 * testsuite/25_algorithms/is_permutation/64646.cc: New.
4562 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4564 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
4565 * doc/html/manual/status.html: Regenerate.
4567 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4569 * include/bits/atomic_futex.h: Use mutex and condition_variable when
4570 atomic int is not lock-free. Make member variables private.
4571 * src/c++11/futex.cc: Likewise.
4573 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
4575 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4578 * include/bits/atomic_futex.h: Use appropriate config macros for
4579 availability of std::mutex, std::condition and std::chrono.
4581 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
4582 Jonathan Wakely <jwakely@redhat.com>
4584 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
4585 * doc/html/*: Regenerate.
4587 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4591 * include/bits/algorithmfwd.h (rotate): Return an iterator.
4592 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
4593 * testsuite/25_algorithms/rotate/dr488.cc: New.
4594 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
4595 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
4597 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
4600 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4603 * include/bits/atomic_base.h: Remove atomic integral typedefs as
4604 synonyms for __atomic_base<int> etc.
4605 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
4606 likewise for all atomic integral types.
4607 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
4608 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
4610 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4613 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
4614 and define one-element specialization.
4615 * testsuite/20_util/tuple/56785.cc: New.
4617 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4619 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
4620 Remove unused header.
4621 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
4623 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
4626 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4628 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
4629 * include/std/locale: Include new header.
4630 * include/Makefile.am: Add it.
4631 * include/Makefile.in: Regenerate.
4632 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
4633 * testsuite/22_locale/conversions/string/1.cc: New.
4634 * testsuite/22_locale/conversions/string/2.cc: New.
4635 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
4636 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
4639 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4641 * config/abi/pre/gnu.ver: Export new symbols.
4642 * include/Makefile.am: Add codecvt.
4643 * include/Makefile.in: Regenerate.
4644 * include/std/codecvt: New header.
4645 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
4646 __codecvt_utf8_utf16_base): Define specializations.
4647 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
4648 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
4649 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
4652 2015-01-16 Torvald Riegel <triegel@redhat.com>
4654 * src/c++11/futex.cc: New file.
4655 * include/bits/atomic_futex.h: New file.
4656 * include/std/future (__future_base::_State_baseV2): Use
4657 atomic_futex_unsigned instead of mutex+condvar.
4658 * src/c++11/futex.cc: Likewise.
4659 * include/Makefile.am: Add atomic_futex.h.
4660 * include/Makefile.in: Likewise.
4661 * src/c++11/Makefile.am: Add futex.cc.
4662 * src/c++11/Makefile.in: Likewise.
4664 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4666 * acinclude.m4: Fix typo in comment.
4667 * configure: Regenerate.
4668 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
4669 codecvt<char16_t, char, mbstate_t>): Declare specializations.
4670 * include/bits/locale_facets.h: Reserve space for new specializations.
4671 * src/c++11/Makefile.am: Add codecvt.cc.
4672 * src/c++11/Makefile.in: Regenerate.
4673 * src/c++11/codecvt.cc: New.
4674 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
4676 * src/c++98/Makefile.in: Regenerate.
4677 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
4678 * src/c++98/localename.cc: Likewise.
4679 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
4680 * testsuite/22_locale/codecvt/utf8.cc: New.
4681 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
4682 specializations are installed in locale objects.
4684 2015-01-16 Torvald Riegel <triegel@redhat.com>
4686 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
4689 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
4692 * config/abi/pre/gnu.ver: Export fstream functions using new string.
4694 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
4697 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
4701 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
4703 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4705 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
4706 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
4707 Multi Processing Runtime Library".
4709 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
4712 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
4713 is_assignable arguments.
4714 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
4717 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4719 * libsupc++/unwind-cxx.h: Revert previous commit.
4721 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4723 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
4725 2015-01-09 Tim Shen <timshen@google.com>
4728 * include/bits/regex.h (match_results<>::swap): Use std::swap
4730 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
4732 * testsuite/28_regex/match_results/swap.cc: New testcase.
4734 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
4737 * include/std/type_traits (has_trivial_default_constructor,
4738 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
4740 * testsuite/20_util/has_trivial_copy_assign/requirements/
4741 explicit_instantiation.cc: Use -Wno-deprecated.
4742 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
4744 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
4745 * testsuite/20_util/has_trivial_copy_constructor/requirements/
4746 explicit_instantiation.cc: Likewise.
4747 * testsuite/20_util/has_trivial_copy_constructor/requirements/
4748 typedefs.cc: Likewise.
4749 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
4750 * testsuite/20_util/has_trivial_default_constructor/requirements/
4751 explicit_instantiation.c: Likewise.
4752 * testsuite/20_util/has_trivial_default_constructor/requirements/
4753 typedefs.cc: Likewise.
4754 * testsuite/20_util/has_trivial_default_constructor/value.cc:
4756 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
4758 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
4759 * testsuite/util/testsuite_common_types.h: Likewise.
4761 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
4763 * include/bits/hashtable_policy.h: Use __bool_constant.
4765 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
4767 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
4768 * libsupc++/Makefile.in: Regenerate.
4770 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
4772 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
4774 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4776 Update copyright years.
4778 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
4781 * testsuite/18_support/exception_ptr/64241.cc: Use
4782 dg-require-atomic-builtins.
4784 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4786 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
4789 2015-01-02 Tim Shen <timshen@google.com>
4792 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
4793 iterator, since the original one shouldn't be mutated.
4795 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4798 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
4799 (string::insert): Likewise.
4800 (string::replace): Likewise.
4801 (wstring::erase): Likewise.
4802 (wstring::insert): Likewise.
4803 (wstring::replace): Likewise.
4804 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
4806 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4809 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
4811 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4814 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
4815 Revert removal of dg-require-string-conversions.
4816 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
4818 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
4820 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
4822 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
4824 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
4826 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
4828 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
4830 * testsuite/21_strings/basic_string/numeric_conversions/char/
4831 stoull.cc: Likewise.
4832 * testsuite/21_strings/basic_string/numeric_conversions/char/
4833 to_string.cc: Likewise.
4835 Copyright (C) 2015 Free Software Foundation, Inc.
4837 Copying and distribution of this file, with or without modification,
4838 are permitted in any medium without royalty provided the copyright
4839 notice and this notice are preserved.