1 2015-11-26 Jonathan Wakely <jwakely@redhat.com>
3 * testsuite/libstdc++-prettyprinters/debug.cc: Add -std=gnu++98 to
4 dg-options and avoid use of uniform-init.
6 * testsuite/libstdc++-prettyprinters/simple.cc: Add -std=gnu++98 to
7 dg-options and avoid use of uniform-init.
9 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
11 * configure: Regenerate.
13 2015-11-25 Jonathan Wakely <jwakely@redhat.com>
15 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Explicitly
16 check minimum and maximum values, and size of underlying type.
17 * testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
18 * testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
20 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY) <solaris2*>: Use
23 -Wl,-R in VTV_CXXLINKFLAGS.
24 * configure: Regenerate.
26 * testsuite/18_support/bad_exception/23591_thread-1.c: Use
27 -fvtable-verify=none on Solaris 12+.
29 2015-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): New test.
32 * configure.ac: Use it.
33 * configure: Regenerate.
34 * config.h.in: Regenerate.
36 * include/c_global/cmath [__cplusplus >= 201103L]
37 (std::fpclassify): Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO.
38 (std::isfinite): Likewise.
39 (std::isinf): Likewise.
40 (std::isnan): Likewise.
41 (std::isnormal): Likewise.
42 (std::signbit): Likewise.
43 (std::isgreater): Likewise.
44 (std::isgreaterequal): Likewise.
45 (std::isless): Likewise.
46 (std::islessequal): Likewise.
47 (std::islessgreater): Likewise.
48 (std::isunordered): Likewise.
49 (std::acosh): Likewise.
50 (std::asinh): Likewise.
51 (std::atanh): Likewise.
52 (std::cbrt): Likewise.
53 (std::copysign): Likewise.
55 (std::erfc): Likewise.
56 (std::exp2): Likewise.
57 (std::expm1): Likewise.
58 (std::fdim): Likewise.
60 (std::fmax): Likewise.
61 (std::fmin): Likewise.
62 (std::hypot): Likewise.
63 (std::ilogb): Likewise.
64 (std::lgamma): Likewise.
65 (std::llrint): Likewise.
66 (std::llround): Likewise.
67 (std::log1p): Likewise.
68 (std::log2): Likewise.
69 (std::logb): Likewise.
70 (std::lrint): Likewise.
71 (std::lround): Likewise.
72 (std::nearbyint): Likewise.
73 (std::nextafter): Likewise.
74 (std::nexttoward): Likewise.
75 (std::remainder): Likewise.
76 (std::remquo): Likewise.
77 (std::rint): Likewise.
78 (std::round): Likewise.
79 (std::scalbln): Likewise.
80 (std::scalbn): Likewise.
81 (std::tgamma): Likewise.
82 (std::trunc): Likewise.
83 * include/tr1/cmath [_GLIBCXX_USE_C99_MATH_TR1] (std::tr1::acosh):
84 Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO.
85 (std::tr1::asinh): Likewise.
86 (std::tr1::atanh): Likewise.
87 (std::tr1::cbrt): Likewise.
88 (std::tr1::copysign): Likewise.
89 (std::tr1::erf): Likewise.
90 (std::tr1::erfc): Likewise.
91 (std::tr1::exp2): Likewise.
92 (std::tr1::expm1): Likewise.
93 (std::tr1::fabs): Likewise.
94 (std::tr1::fdim): Likewise.
95 (std::tr1::fma): Likewise.
96 (std::tr1::fmax): Likewise.
97 (std::tr1::fmin): Likewise.
98 (std::tr1::hypot): Likewise.
99 (std::tr1::ilogb): Likewise.
100 (std::tr1::lgamma): Likewise.
101 (std::tr1::llrint): Likewise.
102 (std::tr1::llround): Likewise.
103 (std::tr1::log1p): Likewise.
104 (std::tr1::log2): Likewise.
105 (std::tr1::logb): Likewise.
106 (std::tr1::lrint): Likewise.
107 (std::tr1::lround): Likewise.
108 (std::tr1::nearbyint): Likewise.
109 (std::tr1::nextafter): Likewise.
110 (std::tr1::nexttoward): Likewise.
111 (std::tr1::remainder): Likewise.
112 (std::tr1::remquo): Likewise.
113 (std::tr1::rint): Likewise.
114 (std::tr1::scalbln): Likewise.
115 (std::tr1::scalbn): Likewise.
116 (std::tr1::tgamma): Likewise.
117 (std::tr1::trunc): Likewise.
118 (std::tr1::pow): Likewise.
120 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
121 Restrict dg-xfail-if, dg-excess-errors to *-*-solaris2.1[01]*.
123 2015-11-21 David Edelsohn <dje.gcc@gmail.com>
125 * testsuite/23_containers/vector/profile/vector.cc: Add maxdata
128 2015-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
131 * python/hook.in: Call register_libstdcxx_printers.
132 * python/libstdcxx/v6/__init__.py: Wrap it to
133 register_libstdcxx_printers.
135 2015-11-17 Jonathan Wakely <jwakely@redhat.com>
138 * include/std/utility (_Build_index_tuple): Optimise.
140 2015-11-16 Doug Evans <dje@google.com>
143 * python/libstdcxx/v6/printers.py (find_type): Handle "const" in
145 * testsuite/libstdc++-prettyprinters/debug.cc: Add test for
147 * testsuite/libstdc++-prettyprinters/simple.cc: Ditto.
148 * testsuite/libstdc++-prettyprinters/simple11.cc: Ditto.
150 2015-11-15 Jonathan Wakely <jwakely@redhat.com>
153 * include/bits/basic_string.h: Test value of _GLIBCXX_USE_C99_WCHAR
154 not whether it is defined.
155 * include/ext/vstring.h: Likewise.
157 2015-11-14 Andreas Tobler <andreast@gcc.gnu.org>
159 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Change locale implementation
160 from darwin to DragonFly.
161 * configure: Regenerate.
162 * config/os/bsd/freebsd/ctype_configure_char.cc: Improve locale
163 support, do it the same as DragonFly.
164 * config/os/bsd/freebsd/os_defines.h: Add fine grained C99 defines.
166 2015-11-14 Jonathan Wakely <jwakely@redhat.com>
168 * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
169 real minimum capacity.
170 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc:
173 2015-11-13 David Edelsohn <dje.gcc@gmail.com>
175 * testsuite/experimental/random/randint.cc: Add dg-add-options tls.
177 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
179 * include/Makefile.am: Add new header.
180 * include/Makefile.in: Regenerate.
181 * include/experimental/random: New.
182 * testsuite/experimental/random/randint.cc: New.
184 2015-11-13 John Marino <gnugcc@marino.st>
186 * testsuite/22_locale/codecvt/always_noconv/char/wrapped_env.cc:
187 Use portable locale name
188 * testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc:
190 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Likewise.
191 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Likewise.
192 * testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc:
194 * testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc:
196 * testsuite/22_locale/codecvt/encoding/char/wrapped_env.cc: Likewise.
197 * testsuite/22_locale/codecvt/encoding/char/wrapped_locale.cc:
199 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Likewise.
200 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Likewise.
201 * testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_env.cc:
203 * testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc:
205 * testsuite/22_locale/codecvt/in/char/wrapped_env.cc: Likewise.
206 * testsuite/22_locale/codecvt/in/char/wrapped_locale.cc: Likewise.
207 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Likewise.
208 * testsuite/22_locale/codecvt/in/wchar_t/wrapped_env.cc: Likewise.
209 * testsuite/22_locale/codecvt/in/wchar_t/wrapped_locale.cc: Likewise.
210 * testsuite/22_locale/codecvt/length/char/wrapped_env.cc: Likewise.
211 * testsuite/22_locale/codecvt/length/char/wrapped_locale.cc: Likewise.
212 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Likewise.
213 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Likewise.
214 * testsuite/22_locale/codecvt/length/wchar_t/wrapped_env.cc: Likewise.
215 * testsuite/22_locale/codecvt/length/wchar_t/wrapped_locale.cc:
217 * testsuite/22_locale/codecvt/max_length/char/wrapped_env.cc: Likewise.
218 * testsuite/22_locale/codecvt/max_length/char/wrapped_locale.cc:
220 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Likewise.
221 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Likewise.
222 * testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_env.cc:
224 * testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc:
226 * testsuite/22_locale/codecvt/out/char/wrapped_env.cc: Likewise.
227 * testsuite/22_locale/codecvt/out/char/wrapped_locale.cc: Likewise.
228 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Likewise.
229 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Likewise.
230 * testsuite/22_locale/codecvt/out/wchar_t/wrapped_env.cc: Likewise.
231 * testsuite/22_locale/codecvt/out/wchar_t/wrapped_locale.cc: Likewise.
232 * testsuite/22_locale/codecvt/unshift/char/wrapped_env.cc: Likewise.
233 * testsuite/22_locale/codecvt/unshift/char/wrapped_locale.cc: Likewise.
234 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.
235 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.
236 * testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: Likewise.
237 * testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc:
239 * testsuite/22_locale/codecvt_byname/50714.cc: Likewise.
240 * testsuite/22_locale/collate/compare/char/1.cc: Likewise.
241 * testsuite/22_locale/collate/compare/char/2.cc: Likewise.
242 * testsuite/22_locale/collate/compare/char/3.cc: Likewise.
243 * testsuite/22_locale/collate/compare/char/wrapped_env.cc: Likewise.
244 * testsuite/22_locale/collate/compare/char/wrapped_locale.cc: Likewise.
245 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Likewise.
246 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Likewise.
247 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Likewise.
248 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Likewise.
249 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc:
251 * testsuite/22_locale/collate/hash/char/2.cc: Likewise.
252 * testsuite/22_locale/collate/hash/char/wrapped_env.cc: Likewise.
253 * testsuite/22_locale/collate/hash/char/wrapped_locale.cc: Likewise.
254 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Likewise.
255 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Likewise.
256 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Likewise.
257 * testsuite/22_locale/collate/transform/char/2.cc: Likewise.
258 * testsuite/22_locale/collate/transform/char/3.cc: Likewise.
259 * testsuite/22_locale/collate/transform/char/wrapped_env.cc: Likewise.
260 * testsuite/22_locale/collate/transform/char/wrapped_locale.cc:
262 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Likewise.
263 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Likewise.
264 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc:
266 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
268 * testsuite/22_locale/collate_byname/named_equivalence.cc: Likewise.
269 * testsuite/22_locale/ctype/cons/char/wrapped_env.cc: Likewise.
270 * testsuite/22_locale/ctype/cons/char/wrapped_locale.cc: Likewise.
271 * testsuite/22_locale/ctype/is/char/2.cc: Likewise.
272 * testsuite/22_locale/ctype/is/char/wrapped_env.cc: Likewise.
273 * testsuite/22_locale/ctype/is/char/wrapped_locale.cc: Likewise.
274 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
275 * testsuite/22_locale/ctype/is/wchar_t/wrapped_env.cc: Likewise.
276 * testsuite/22_locale/ctype/is/wchar_t/wrapped_locale.cc: Likewise.
277 * testsuite/22_locale/ctype/narrow/char/wrapped_env.cc: Likewise.
278 * testsuite/22_locale/ctype/narrow/char/wrapped_locale.cc: Likewise.
279 * testsuite/22_locale/ctype/narrow/wchar_t/wrapped_env.cc: Likewise.
280 * testsuite/22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: Likewise.
281 * testsuite/22_locale/ctype/scan/char/wrapped_env.cc: Likewise.
282 * testsuite/22_locale/ctype/scan/char/wrapped_locale.cc: Likewise.
283 * testsuite/22_locale/ctype/scan/wchar_t/wrapped_env.cc: Likewise.
284 * testsuite/22_locale/ctype/scan/wchar_t/wrapped_locale.cc: Likewise.
285 * testsuite/22_locale/ctype/to/char/wrapped_env.cc: Likewise.
286 * testsuite/22_locale/ctype/to/char/wrapped_locale.cc: Likewise.
287 * testsuite/22_locale/ctype/to/wchar_t/wrapped_env.cc: Likewise.
288 * testsuite/22_locale/ctype/to/wchar_t/wrapped_locale.cc: Likewise.
289 * testsuite/22_locale/ctype/widen/char/wrapped_env.cc: Likewise.
290 * testsuite/22_locale/ctype/widen/char/wrapped_locale.cc: Likewise.
291 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Likewise.
292 * testsuite/22_locale/ctype/widen/wchar_t/wrapped_env.cc: Likewise.
293 * testsuite/22_locale/ctype/widen/wchar_t/wrapped_locale.cc: Likewise.
294 * testsuite/22_locale/facet/2.cc: Likewise.
295 * testsuite/22_locale/locale/cons/12352.cc: Likewise.
296 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
297 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
298 * testsuite/22_locale/locale/cons/2.cc: Likewise.
299 * testsuite/22_locale/locale/cons/38365.cc: Likewise.
300 * testsuite/22_locale/locale/cons/38368.cc: Likewise.
301 * testsuite/22_locale/locale/cons/4.cc: Likewise.
302 * testsuite/22_locale/locale/cons/40184.cc: Likewise.
303 * testsuite/22_locale/locale/cons/7.cc: Likewise.
304 * testsuite/22_locale/locale/global_locale_objects/14071.cc: Likewise.
305 * testsuite/22_locale/locale/global_locale_objects/2.cc: Likewise.
306 * testsuite/22_locale/messages/13631.cc: Likewise.
307 * testsuite/22_locale/messages/members/char/1.cc: Likewise.
308 * testsuite/22_locale/messages/members/char/2.cc: Likewise.
309 * testsuite/22_locale/messages/members/char/3.cc: Likewise.
310 * testsuite/22_locale/messages/members/char/wrapped_env.cc: Likewise.
311 * testsuite/22_locale/messages/members/char/wrapped_locale.cc:
313 * testsuite/22_locale/messages_byname/named_equivalence.cc: Likewise.
314 * testsuite/22_locale/money_get/get/char/1.cc: Likewise.
315 * testsuite/22_locale/money_get/get/char/10.cc: Likewise.
316 * testsuite/22_locale/money_get/get/char/11.cc: Likewise.
317 * testsuite/22_locale/money_get/get/char/11528.cc: Likewise.
318 * testsuite/22_locale/money_get/get/char/12.cc: Likewise.
319 * testsuite/22_locale/money_get/get/char/13.cc: Likewise.
320 * testsuite/22_locale/money_get/get/char/15.cc: Likewise.
321 * testsuite/22_locale/money_get/get/char/16.cc: Likewise.
322 * testsuite/22_locale/money_get/get/char/17.cc: Likewise.
323 * testsuite/22_locale/money_get/get/char/18.cc: Likewise.
324 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
325 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
326 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
327 * testsuite/22_locale/money_get/get/char/wrapped_env.cc: Likewise.
328 * testsuite/22_locale/money_get/get/char/wrapped_locale.cc: Likewise.
329 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
330 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Likewise.
331 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Likewise.
332 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Likewise.
333 * testsuite/22_locale/money_get/get/wchar_t/12.cc: Likewise.
334 * testsuite/22_locale/money_get/get/wchar_t/13.cc: Likewise.
335 * testsuite/22_locale/money_get/get/wchar_t/15.cc: Likewise.
336 * testsuite/22_locale/money_get/get/wchar_t/16.cc: Likewise.
337 * testsuite/22_locale/money_get/get/wchar_t/17.cc: Likewise.
338 * testsuite/22_locale/money_get/get/wchar_t/18.cc: Likewise.
339 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
340 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
341 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
342 * testsuite/22_locale/money_get/get/wchar_t/wrapped_env.cc: Likewise.
343 * testsuite/22_locale/money_get/get/wchar_t/wrapped_locale.cc:
345 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
346 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
347 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
348 * testsuite/22_locale/money_put/put/char/9780-3.cc: Likewise.
349 * testsuite/22_locale/money_put/put/char/wrapped_env.cc: Likewise.
350 * testsuite/22_locale/money_put/put/char/wrapped_locale.cc: Likewise.
351 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
352 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
353 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
354 * testsuite/22_locale/money_put/put/wchar_t/wrapped_env.cc: Likewise.
355 * testsuite/22_locale/money_put/put/wchar_t/wrapped_locale.cc:
357 * testsuite/22_locale/moneypunct/40712.cc: Likewise.
358 * testsuite/22_locale/moneypunct/members/char/2.cc: Likewise.
359 * testsuite/22_locale/moneypunct/members/char/wrapped_env.cc:
361 * testsuite/22_locale/moneypunct/members/char/wrapped_locale.cc:
363 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Likewise.
364 * testsuite/22_locale/moneypunct/members/wchar_t/wrapped_env.cc:
366 * testsuite/22_locale/moneypunct/members/wchar_t/wrapped_locale.cc:
368 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc:
370 * testsuite/22_locale/num_get/get/char/1.cc: Likewise.
371 * testsuite/22_locale/num_get/get/char/3.cc: Likewise.
372 * testsuite/22_locale/num_get/get/char/5.cc: Likewise.
373 * testsuite/22_locale/num_get/get/char/6.cc: Likewise.
374 * testsuite/22_locale/num_get/get/char/9.cc: Likewise.
375 * testsuite/22_locale/num_get/get/char/wrapped_env.cc: Likewise.
376 * testsuite/22_locale/num_get/get/char/wrapped_locale.cc: Likewise.
377 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.
378 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Likewise.
379 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Likewise.
380 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Likewise.
381 * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
382 * testsuite/22_locale/num_get/get/wchar_t/wrapped_env.cc: Likewise.
383 * testsuite/22_locale/num_get/get/wchar_t/wrapped_locale.cc: Likewise.
384 * testsuite/22_locale/num_put/put/char/1.cc: Likewise.
385 * testsuite/22_locale/num_put/put/char/20909.cc: Likewise.
386 * testsuite/22_locale/num_put/put/char/20914.cc: Likewise.
387 * testsuite/22_locale/num_put/put/char/3.cc: Likewise.
388 * testsuite/22_locale/num_put/put/char/5.cc: Likewise.
389 * testsuite/22_locale/num_put/put/char/9780-2.cc: Likewise.
390 * testsuite/22_locale/num_put/put/char/wrapped_env.cc: Likewise.
391 * testsuite/22_locale/num_put/put/char/wrapped_locale.cc: Likewise.
392 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise.
393 * testsuite/22_locale/num_put/put/wchar_t/20909.cc: Likewise.
394 * testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.
395 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
396 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
397 * testsuite/22_locale/num_put/put/wchar_t/wrapped_env.cc: Likewise.
398 * testsuite/22_locale/num_put/put/wchar_t/wrapped_locale.cc: Likewise.
399 * testsuite/22_locale/numpunct/members/char/2.cc: Likewise.
400 * testsuite/22_locale/numpunct/members/char/3.cc: Likewise.
401 * testsuite/22_locale/numpunct/members/char/wrapped_env.cc: Likewise.
402 * testsuite/22_locale/numpunct/members/char/wrapped_locale.cc:
404 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.
405 * testsuite/22_locale/numpunct/members/wchar_t/wrapped_env.cc:
407 * testsuite/22_locale/numpunct/members/wchar_t/wrapped_locale.cc:
409 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: Likewise.
410 * testsuite/22_locale/time_get/date_order/char/wrapped_env.cc:
412 * testsuite/22_locale/time_get/date_order/char/wrapped_locale.cc:
414 * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_env.cc:
416 * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_locale.cc:
418 * testsuite/22_locale/time_get/get/char/2.cc: Likewise.
419 * testsuite/22_locale/time_get/get/wchar_t/2.cc: Likewise.
420 * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
421 * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
422 * testsuite/22_locale/time_get/get_date/char/26701.cc: Likewise.
423 * testsuite/22_locale/time_get/get_date/char/wrapped_env.cc: Likewise.
424 * testsuite/22_locale/time_get/get_date/char/wrapped_locale.cc:
426 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
427 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
428 * testsuite/22_locale/time_get/get_date/wchar_t/26701.cc: Likewise.
429 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Likewise.
430 * testsuite/22_locale/time_get/get_date/wchar_t/wrapped_env.cc:
432 * testsuite/22_locale/time_get/get_date/wchar_t/wrapped_locale.cc:
434 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
435 * testsuite/22_locale/time_get/get_monthname/char/wrapped_env.cc:
437 * testsuite/22_locale/time_get/get_monthname/char/wrapped_locale.cc:
439 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
440 * testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc:
442 * testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc:
444 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
445 * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
446 * testsuite/22_locale/time_get/get_time/char/wrapped_env.cc:
448 * testsuite/22_locale/time_get/get_time/char/wrapped_locale.cc:
450 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
451 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
452 * testsuite/22_locale/time_get/get_time/wchar_t/wrapped_env.cc:
454 * testsuite/22_locale/time_get/get_time/wchar_t/wrapped_locale.cc:
456 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
457 * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc: Likewise.
458 * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc: Likewise.
459 * testsuite/22_locale/time_get/get_weekday/char/wrapped_env.cc:
461 * testsuite/22_locale/time_get/get_weekday/char/wrapped_locale.cc:
463 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
464 * testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc:
466 * testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc:
468 * testsuite/22_locale/time_get/get_year/char/wrapped_env.cc: Likewise.
469 * testsuite/22_locale/time_get/get_year/char/wrapped_locale.cc:
471 * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_env.cc:
473 * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_locale.cc:
475 * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
476 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
477 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
478 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
479 * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
480 * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
481 * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
482 * testsuite/22_locale/time_put/put/char/9780-1.cc: Likewise.
483 * testsuite/22_locale/time_put/put/char/wrapped_env.cc: Likewise.
484 * testsuite/22_locale/time_put/put/char/wrapped_locale.cc: Likewise.
485 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
486 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
487 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
488 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
489 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
490 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
491 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
492 * testsuite/22_locale/time_put/put/wchar_t/wrapped_env.cc: Likewise.
493 * testsuite/22_locale/time_put/put/wchar_t/wrapped_locale.cc: Likewise.
494 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: Likewise.
495 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: Likewise.
496 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
497 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Likewise.
498 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
499 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: Likewise.
500 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Likewise.
501 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Likewise.
502 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: Likewise.
503 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: Likewise.
504 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
505 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Likewise.
506 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
507 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
508 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: Likewise.
509 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: Likewise.
510 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Likewise.
511 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
513 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/2.cc:
515 * testsuite/27_io/basic_streambuf/cons/57394.cc: Likewise.
516 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: Likewise.
517 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Likewise.
518 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: Likewise.
519 * testsuite/27_io/basic_streambuf/imbue/wchar_t/9322.cc: Likewise.
520 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Likewise.
521 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/9322.cc: Likewise.
522 * testsuite/27_io/manipulators/extended/get_money/char/1.cc: Likewise.
523 * testsuite/27_io/manipulators/extended/get_money/wchar_t/1.cc:
525 * testsuite/27_io/manipulators/extended/get_time/char/2.cc: Likewise.
526 * testsuite/27_io/manipulators/extended/get_time/wchar_t/2.cc:
528 * testsuite/27_io/manipulators/extended/put_money/char/1.cc: Likewise.
529 * testsuite/27_io/manipulators/extended/put_money/wchar_t/1.cc:
531 * testsuite/27_io/manipulators/extended/put_time/char/2.cc: Likewise.
532 * testsuite/27_io/manipulators/extended/put_time/wchar_t/2.cc:
534 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Likewise.
535 * testsuite/27_io/objects/wchar_t/9520.cc: Likewise.
536 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Check
537 for named locale as appropriate for target.
538 * testsuite/util/testsuite_hooks.h (ISO_8859): Define macro to form
539 target's preferred form of locale name.
541 2015-11-13 Jennifer Yao <jenny.hyphen.fa@gmail.com>
542 Jonathan Wakely <jwakely@redhat.com>
546 * acinclude.m4 (GLIBCXX_ENABLE_C99): Perform tests twice, with
547 -std=c++11 as well as -std=c++98, and define separate macros for each.
548 Cache the results of checking for complex math and wide character
549 functions. Reformat for readability.
550 * config.h.in: Regenerate.
551 * include/bits/c++config: Define _GLIBCXX_USE_C99_XXX macros to
552 either _GLIBCXX98_USE_C99_XXX or _GLIBCXX11_USE_C99_XXX according to
553 language standard in use.
554 * config/locale/dragonfly/c_locale.h (std::__convert_from_v): Replace
555 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
556 * config/locale/generic/c_locale.h (std::__convert_from_v): Likewise.
557 * config/locale/gnu/c_locale.h (std::__convert_from_v): Likewise.
558 * config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99_STDIO,
559 _GLIBCXX_USE_C99_STDLIB, and _GLIBCXX_USE_C99_WCHAR.
560 * configure: Regenerate.
561 * include/bits/basic_string.h: Make numeric conversion functions
562 depend on _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, or
563 _GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
564 * include/ext/vstring.h: Likewise.
565 * include/bits/locale_facets.tcc (std::num_put::_M_insert_float):
566 Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
567 * include/bits/locale_facets_nonio.tcc (std::money_put::do_put):
569 * include/c_compatibility/math.h: Replace _GLIBCXX_USE_C99 with
570 _GLIBCXX_USE_C99_MATH.
571 * include/c_compatibility/wchar.h: Replace _GLIBCXX_USE_C99 with
572 _GLIBCXX_USE_C99_WCHAR.
573 * include/c_global/cstdio: Replace _GLIBCXX_USE_C99 with
574 _GLIBCXX_USE_C99_STDIO.
575 * include/c_global/cstdlib: Replace _GLIBCXX_USE_C99 with
576 _GLIBCXX_USE_C99_STDLIB.
577 * include/c_global/cwchar: Replace _GLIBCXX_USE_C99 with
578 _GLIBCXX_USE_C99_WCHAR.
579 * include/c_std/cstdio: Replace _GLIBCXX_USE_C99 with
580 _GLIBCXX_USE_C99_STDIO.
581 * include/c_std/cstdlib: Replace _GLIBCXX_USE_C99 with
582 _GLIBCXX_USE_C99_STDLIB.
583 * include/c_std/cwchar: Replace _GLIBCXX_USE_C99 with
584 _GLIBCXX_USE_C99_WCHAR.
585 * include/tr1/cstdio: Replace _GLIBCXX_USE_C99 with
586 _GLIBCXX_USE_C99_STDIO.
587 * include/tr1/cstdlib: Replace _GLIBCXX_USE_C99 with
588 _GLIBCXX_USE_C99_STDLIB.
589 * include/tr1/cwchar: Replace _GLIBCXX_USE_C99 with
590 _GLIBCXX_USE_C99_WCHAR.
591 * include/tr1/stdlib.h: Replace _GLIBCXX_USE_C99 with
592 _GLIBCXX_USE_C99_STDLIB.
593 * src/c++98/locale_facets.cc (std::__num_base::_S_format_float):
594 Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
595 * testsuite/18_support/exception_ptr/60612-terminate.cc: Replace
596 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
597 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.
598 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc
599 (test01): Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
600 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
602 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
604 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
606 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
608 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
610 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
612 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
614 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
615 to_wstring.cc: Likewise.
616 * testsuite/26_numerics/headers/cstdlib/13943.cc: Replace
617 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
618 * testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc: Likewise.
619 * testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
620 Change preprocessor #if conditional so that it uses
621 _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, and
622 _GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
623 * testsuite/tr1/8_c_compatibility/cmath/templates.cc: Replace
624 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_MATH.
625 * testsuite/tr1/8_c_compatibility/cstdio/functions.cc: Replace
626 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
627 * testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Replace
628 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
629 * testsuite/tr1/8_c_compatibility/cstdlib/types_std_tr1.cc: Likewise.
630 * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Replace
631 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
632 * testsuite/util/testsuite_fs.h: Replace _GLIBCXX_USE_C99 with
633 _GLIBCXX_USE_C99_STDIO.
635 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
637 * include/experimental/bits/shared_ptr.h: Tweak comments.
639 2015-11-13 Fan You <youfan.noey@gmail.com>
640 Jonathan Wakely <jwakely@redhat.com>
642 * include/Makefile.am: Add new header.
643 * include/Makefile.in: Regenerate.
644 * include/experimental/bits/shared_ptr.h: New.
645 * include/experimental/memory: Include new header.
646 * testsuite/experimental/memory/shared_ptr/assign/assign.cc: New.
647 * testsuite/experimental/memory/shared_ptr/cast/cast.cc: New.
648 * testsuite/experimental/memory/shared_ptr/comparison/comparison.cc:
650 * testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc: New.
651 * testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc: New.
652 * testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc: New.
653 * testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc: New.
654 * testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc: New.
655 * testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc: New.
656 * testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc: New.
657 * testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
659 * testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc: New.
660 * testsuite/experimental/memory/shared_ptr/dest/dest.cc: New.
661 * testsuite/experimental/memory/shared_ptr/modifiers/reset.cc: New.
662 * testsuite/experimental/memory/shared_ptr/modifiers/swap.cc: New.
663 * testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc:
665 * testsuite/experimental/memory/shared_ptr/observers/operators.cc:
667 * testsuite/experimental/memory/shared_ptr/observers/owner_before.cc:
669 * testsuite/experimental/memory/shared_ptr/observers/use_count.cc: New.
671 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
673 * include/Makefile.am: Add new header.
674 * include/Makefile.in: Regenerate.
675 * include/experimental/memory_resource: Add feature-test macro.
676 * include/experimental/regex: New.
677 * include/experimental/deque: Add alias template using PMR.
678 * include/experimental/forward_list: Likewise.
679 * include/experimental/list: Likewise.
680 * include/experimental/map: Likewise.
681 * include/experimental/set: Likewise.
682 * include/experimental/string: Likewise.
683 * include/experimental/unordered_map: Likewise.
684 * include/experimental/unordered_set: Likewise.
685 * include/experimental/vector: Likewise.
687 2015-11-13 Fan You <youfan.noey@gmail.com>
689 * include/Makefile.am: Add new headers.
690 * include/Makefile.in: Regenerate.
691 * include/bits/uses_allocator.h (__erased_type): Define.
692 (__uses_allocator_helper): Check for __erased_type.
693 * include/experimental/memory_resource: New.
694 * include/experimental/utlity: New.
695 * testsuite/experimental/type_erased_allocator/1.cc: New.
696 * testsuite/experimental/type_erased_allocator/1_neg.cc: New.
697 * testsuite/experimental/type_erased_allocator/2.cc: New.
698 * testsuite/experimental/type_erased_allocator/uses_allocator.cc: New.
700 2015-11-12 Jonathan Wakely <jwakely@redhat.com>
703 * include/bits/ios_base.h (_Ios_Fmtflags, _Ios_Openmode, _Ios_Iostate):
704 Define enumerators to ensure all values of type int are valid values
705 of the enumeration type.
706 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Add new cases.
707 * testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
708 * testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
710 * include/std/thread: Include <cerrno> for EINTR.
712 2015-11-12 Ville Voutilainen <ville.voutilainen@gmail.com>
714 Implement D0013R2, logical type traits.
716 * include/experimental/type_traits (conjunction, disjunction,
717 negation, conjunction_v, disjunction_v, negation_v): New.
718 * include/std/type_traits (conjunction, disjunction, negation):
720 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
721 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise.
722 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
724 * testsuite/experimental/type_traits/value.cc: Likewise.
725 * testsuite/20_util/logical_traits/requirements/explicit_instantiation.cc: New.
726 * testsuite/20_util/logical_traits/requirements/typedefs.cc: Likewise.
727 * testsuite/20_util/logical_traits/value.cc: Likewise.
729 2015-11-12 Jonathan Wakely <jwakely@redhat.com>
731 * include/experimental/bits/string_view.tcc: Fix doxygen @file.
733 2015-11-11 Jonathan Wakely <jwakely@redhat.com>
735 * libsupc++/new_handler.cc: Fix for explicit constructor change.
738 * include/std/thread (this_thread::sleep_for): Retry on EINTR.
739 (this_thread::sleep_until): Retry if time not reached.
740 * src/c++11/thread.cc (__sleep_for): Retry on EINTR.
741 * testsuite/30_threads/this_thread/60421.cc: Test interruption and
744 2015-11-11 Ville Voutilainen <ville.voutilainen@gmail.com>
746 LWG 2510, make the default constructors of library tag types
748 * include/bits/mutex.h (defer_lock_t, try_lock_t,
749 adopt_lock_t): Add an explicit default constructor.
750 * include/bits/stl_pair.h (piecewise_construct_t): Likewise.
751 * include/bits/uses_allocator.h (allocator_arg_t): Likewise.
752 * libsupc++/new (nothrow_t): Likewise.
753 * testsuite/17_intro/tag_type_explicit_ctor.cc: New.
755 2015-11-11 Jonathan Wakely <jwakely@redhat.com>
758 * libsupc++/exception_ptr.h (rethrow_exception): Add using-declaration
759 to __exception_ptr namespace.
760 * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test ADL.
761 Remove unnecessary test variables.
763 2015-11-10 Jonathan Wakely <jwakely@redhat.com>
766 * include/bits/stl_multiset.h (multiset::find): Fix return types.
767 * include/bits/stl_set.h (set::find): Likewise.
768 * testsuite/23_containers/map/operations/2.cc: Test find return types.
769 * testsuite/23_containers/multimap/operations/2.cc: Likewise.
770 * testsuite/23_containers/multiset/operations/2.cc: Likewise.
771 * testsuite/23_containers/set/operations/2.cc: Likewise.
773 * doc/xml/manual/status_cxx2017.xml: Update.
774 * doc/html/*: Regenerate.
776 * include/bits/functional_hash.h: Fix grammar in comment.
778 2015-11-09 François Dumont <fdumont@gcc.gnu.org>
780 * include/bits/stl_algo.h
781 (partial_sort_copy): Instantiate std::iterator_traits only if concept
783 (lower_bound): Likewise.
784 (upper_bound): Likewise.
785 (equal_range): Likewise.
786 (binary_search): Likewise.
787 * include/bits/stl_heap.h (pop_heap): Likewise.
789 2015-11-06 Kai Tietz <ktietz70@googlemail.com>
791 * testsuite/26_numerics/complex/requirements/constexpr.cc
792 * testsuite/26_numerics/complex/requirements/constexpr_functions.cc:
793 Use constexpr where needed.
795 2015-11-06 David Malcolm <dmalcolm@redhat.com>
797 * testsuite/lib/libstdc++.exp (v3_target_compile): Add
798 -fno-diagnostics-show-caret -fdiagnostics-color=never to
799 option's additional_flags.
801 2015-11-03 Jason Merrill <jason@redhat.com>
803 * libsupc++/new: Declare sized deletes.
805 2015-11-03 Ville Voutilainen <ville.voutilainen@gmail.com>
807 Make the default constructors of tuple and pair conditionally explicit.
808 * include/std/type_traits (is_unsigned, __is_array_unknown_bounds,
809 __is_default_constructible_atom, __is_default_constructible_safe,
810 __is_direct_constructible_new_safe, __is_direct_constructible_ref_cast,
811 __is_nt_default_constructible_impl, is_nothrow_default_constructible,
812 is_nothrow_constructible, is_nothrow_assignable,
813 is_trivially_constructible, is_trivially_copy_constructible,
814 is_trivially_move_constructible, is_trivially_assignable,
815 is_trivially_copy_assignable, is_trivially_move_assignable,
816 is_trivially_destructible): Simplify.
817 * include/std/type_traits (
818 __do_is_implicitly_default_constructible_impl,
819 __is_implicitly_default_constructible_impl,
820 __is_implicitly_default_constructible_safe,
821 __is_implicitly_default_constructible): New.
822 * include/bits/stl_pair.h (pair::pair()): Use it.
823 * include/std/tuple (tuple<_T1, _T2>::tuple): Use it.
824 * include/std/tuple (_ImplicitlyDefaultConstructibleTuple): New.
825 * include/std/tuple (tuple<_Types...>::tuple()): Use it.
826 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
827 * testsuite/20_util/is_implicitly_default_constructible/
828 requirements/explicit_instantiation.cc: New.
829 * testsuite/20_util/is_implicitly_default_constructible/requirements/
830 typedefs.cc: Likewise.
831 * testsuite/20_util/is_implicitly_default_constructible/value.cc:
833 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust.
834 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
836 * testsuite/20_util/pair/cons/explicit_construct.cc: Likewise.
837 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
839 2015-10-24 Jonathan Wakely <jwakely@redhat.com>
841 * include/std/functional (__invoke_impl): New overloads.
842 (__invoke): Replace with a single function calling __invoke_impl.
843 (invoke): Add C++17 std::invoke.
844 (reference_wrapper::operator()): Qualify call to __invoke.
845 (_Mem_fn_traits_base, _Mem_fn_traits): Remove unused typedefs.
846 (_Mem_fn_base): Remove unused typedefs and implement call operator in
848 * include/std/future (__future_base::_Async_state_commonV2): Do not
849 pass reference_wrapper as object argument to call_once.
850 * include/std/type_traits (result_of): Define nested __invoke_type.
851 Handle reference_wrapper as per LWG 2219.
852 * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error directives.
853 * testsuite/20_util/function_objects/mem_fn/55463.cc: Remove tests
854 using member functions of reference_wrapper.
856 2015-10-24 Jonathan Wakely <jwakely@redhat.com>
858 * include/std/future (async): Use deferred function on exception.
859 * testsuite/30_threads/async/except.cc: New.
861 2015-10-21 Jonathan Wakely <jwakely@redhat.com>
863 * include/std/type_traits (__cpp_lib_bool_constant): Define.
865 2015-10-16 Jonathan Wakely <jwakely@redhat.com>
867 * doc/xml/manual/configure.xml: Document
868 --enable-libstdcxx-filesystem-ts option.
869 * doc/xml/manual/status_cxx2014.xml: Document libstdc++fs.a.
870 * doc/xml/manual/using.xml: Likewise.
871 * doc/html/*: Regenerate.
873 2015-10-16 Aurelio Remonda <aurelio.remonda@tallertechnologies.com>
875 * testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable
876 N from const int N = 200000 to const unsigned int N = 10000.
877 Delete useless fill_ascending function call.
879 2015-10-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
881 * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
882 unsupported compiler output.
884 2015-10-13 Nathan Froyd <froydnj@gcc.gnu.org>
886 * config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead
887 of x86intrin.h, and only do so when __SSE3__
888 * include/ext/random: Include emmintrin.h instead of x86intrin.h
890 2015-10-11 Joseph Myers <joseph@codesourcery.com>
892 * crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* |
893 *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*>: Check for
894 __cxa_thread_atexit_impl.
895 * configure: Regenerate.
897 2015-10-09 Jonathan Wakely <jwakely@redhat.com>
899 * include/experimental/erase_if.h: Move to ...
900 * include/experimental/bits/erase_if.h: New.
901 * include/experimental/fs_dir.h: Move to ...
902 * include/experimental/bits/fs_dir.h: New.
903 * include/experimental/fs_fwd.h: Move to ...
904 * include/experimental/bits/fs_fwd.h: New.
905 * include/experimental/fs_ops.h: Move to ...
906 * include/experimental/bits/fs_ops.h: New.
907 * include/experimental/fs_path.h: Move to ...
908 * include/experimental/bits/fs_path.h: New.
909 * include/experimental/string_view.tcc: Move to ...
910 * include/experimental/bits/string_view.tcc: New.
911 * include/Makefile.am: Add include/experimental/bits sub-directory.
912 * include/Makefile.in: Regenerate.
913 * include/experimental/filesystem: Adjust includes.
914 * include/experimental/map: Likewise.
915 * include/experimental/set: Likewise.
916 * include/experimental/string_view: Likewise.
917 * include/experimental/unordered_map: Likewise.
918 * include/experimental/unordered_set: Likewise.
920 2015-10-05 Ville Voutilainen <ville.voutilainen@gmail.com>
923 * include/std/tuple (_TC::_NonNestedTuple): Eagerly reject
924 conversions from tuple types same as the target tuple.
925 * testsuite/20_util/tuple/67844.cc: New.
926 * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: Add
927 a missing copyright header.
929 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
931 * python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Remove support
934 * src/c++98/locale.cc: Fix comment.
935 * src/c++98/locale_init.cc: Likewise.
937 * testsuite/21_strings/basic_string/literals/types.cc: Guard use of
938 wchar_t with _GLIBCXX_USE_WCHAR_T.
939 * testsuite/21_strings/basic_string/literals/values.cc: Likewise.
940 * testsuite/21_strings/basic_string/requirements/citerators.cc:
942 * testsuite/22_locale/messages/13631.cc: Likewise.
943 * testsuite/experimental/string_view/literals/types.cc: Likewise.
944 * testsuite/experimental/string_view/literals/values.cc: Likewise.
946 * src/filesystem/Makefile.am: Add cxx11_abi_sources.
947 * src/filesystem/Makefile.in: Regenerate.
948 * src/filesystem/cow-dir.cc: New.
949 * src/filesystem/cow-ops.cc: New.
950 * src/filesystem/cow-path.cc: New.
951 * src/filesystem/dir.cc: Define macro for new ABI.
952 * src/filesystem/ops.cc: Likewise.
953 * src/filesystem/path.cc: Likewise.
955 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
957 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
958 Minor tweaks to match narrow char version.
960 * testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard
961 explicit instantiation with check for new ABI.
962 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
963 Likewise. Use wchar_t as char_type.
965 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
966 (basic_string::front() const, basic_string::back() const): Use
967 noexcept instead of _GLIBCXX_NOEXCEPT macro.
968 (__versa_string::front, __versa_string::back): Likewise.
970 * acinclude.m4 (GLIBCXX_ENABLE_DEBUG_FLAGS): Fix comment.
972 * include/bits/locale_conv.h [!_GLIBCXX_USE_WCHAR_T]
973 (__do_str_codecvt, __str_codecvt_in, __str_codecvt_out): Enable.
974 * include/experimental/fs_path.h [!_GLIBCXX_USE_WCHAR_T]
975 (path::wstring, path::generic_wstring): Disable.
976 * src/filesystem/path.cc (path::_S_convert_loc)
977 [!_GLIBCXX_USE_WCHAR_T]: Skip conversion.
978 * testsuite/experimental/filesystem/path/assign/assign.cc: Check for
980 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
981 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
983 * testsuite/util/testsuite_fs.h (nonexistent_path): Use less generic
984 name for paths. Prefer snprintf to sprintf.
987 * src/filesystem/dir.cc (native_readdir): Remove.
988 (_Dir::advance): Use readdir instead of native_readdir.
989 (recursive_directory_iterator(const path&, directory_options,
990 error_code*)): Use swap instead of reset.
992 2015-10-01 Jonathan Wakely <jwakely@redhat.com>
994 * doc/html/manual/errno.html: Add new file.
996 * doc/xml/manual/diagnostics.xml: Document use of errno.
997 * doc/html/*: Regenerate.
998 * config/locale/generic/c_locale.cc (_Save_errno): New helper.
999 (__convert_to_v): Use _Save_errno.
1000 * include/ext/string_conversions.h (__stoa): Only restore errno when
1001 it isn't set to non-zero.
1003 2015-09-30 François Dumont <fdumont@gcc.gnu.org>
1004 Jonathan Wakely <jwakely@redhat.com>
1006 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs):
1008 * config/locale/gnu/c++locale_internal.h: ...here in std namespace.
1009 * config/locale/gnu/c_locale.cc: Move implementation of latter here.
1010 * src/c++98/Makefile.am: Compile c++locale.cc with -fimplicit-templates.
1011 * src/c++98/Makefile.in: Regenerate.
1012 * config/abi/pre/gnu.ver: Adjust.
1014 2015-09-30 Matthias Klose <doko@ubuntu.com>
1016 * config/cpu/alpha, config/cpu/ia64: Remove empty directories.
1018 2015-09-29 Jonathan Wakely <jwakely@redhat.com>
1020 * include/ext/string_conversions.h (__stoa): Save and restore errno.
1021 * testsuite/21_strings/basic_string/numeric_conversions/char/errno.cc:
1025 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Fix sputn call
1026 with mismatched arguments.
1027 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1030 * config/abi/pre/gnu.ver: Export new symbols.
1031 * include/std/thread (thread::_State, thread::_State_impl): New types.
1032 (thread::_M_start_thread): Add overload taking unique_ptr<_State>.
1033 (thread::_M_make_routine): Remove.
1034 (thread::_S_make_state): Add.
1035 (thread::_Impl_base, thread::_Impl, thread::_M_start_thread)
1036 [_GLIBCXX_THREAD_ABI_COMPAT] Only declare conditionally.
1037 * src/c++11/thread.cc (execute_native_thread_routine): Rename to
1038 execute_native_thread_routine_compat and re-define to use _State.
1039 (thread::_State::~_State()): Define.
1040 (thread::_M_make_thread): Define new overload.
1041 (thread::_M_make_thread) [_GLIBCXX_THREAD_ABI_COMPAT]: Only define old
1042 overloads conditionally.
1044 2015-09-28 Jonathan Wakely <jwakely@redhat.com>
1046 * include/std/condition_variable (condition_variable::wait): Add
1048 * src/c++11/condition_variable.cc (condition_variable::wait): Call
1049 std::terminate on error (DR 2135).
1051 2015-09-25 Ville Voutilainen <ville.voutilainen@gmail.com>
1053 Avoid creating dangling references in case of nested tuples
1054 for tuple constructors that construct from other tuples.
1055 * include/std/tuple (_TC::_NonNestedTuple): New.
1056 * include/std/tuple (tuple::_TNTC): New.
1057 * include/std/tuple (tuple(const tuple<_UElements...>&),
1058 tuple(tuple<_UElements...>&&): Use _TNTC.
1059 * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: New.
1061 2015-09-24 Jonathan Wakely <jwakely@redhat.com>
1064 * include/bits/stl_deque.h (_Deque_base::_M_move_impl): Initialize
1066 * testsuite/23_containers/deque/allocator/move.cc: Check moved-from
1069 2015-09-23 Jonathan Wakely <jwakely@redhat.com>
1071 * src/filesystem/ops.cc (canonical): Simplify error handling and
1072 limit number of symlinks that can be resolved.
1074 2015-09-23 Jonathan Wakely <jwakely@redhat.com>
1076 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Remove _GLIBCXX_
1077 prefix from HAVE_STRUCT_DIRENT_D_TYPE.
1078 * config.h.in: Regenerate.
1079 * configure: Regenerate.
1080 * include/experimental/fs_dir.h (operator==, operator==):
1081 Use owner_before instead of pointer equality.
1082 (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
1083 * src/filesystem/dir.cc (ErrorCode): Remove.
1084 (_Dir::advance): Change ErrorCode parameter to error_code*, add
1085 directory_options parameter and check it on error.
1086 (opendir): Rename to open_dir to avoid clashing with macro. Change
1087 ErrorCode parameter to error_code*.
1088 (make_shared_dir): Remove.
1089 (native_readdir) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Don't set errno.
1090 (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
1091 (directory_iterator(const path&, directory_options, error_code*)):
1092 Pass options to _Dir::advance and create non-end iterator on error.
1093 (recursive_directory_iterator(const path&, directory_options,
1094 error_code*)): Clear error_code on ignored error, create non-end
1096 (recursive_directory_iterator::increment): Pass _M_options to
1098 (recursive_directory_iterator::pop): Likewise.
1099 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
1101 * testsuite/experimental/filesystem/iterators/
1102 recursive_directory_iterator.cc: New.
1104 * src/filesystem/ops.cc (is_dot, is_dotdot): Define new helpers.
1105 (create_directories): Fix error handling.
1106 * testsuite/experimental/filesystem/operations/create_directories.cc:
1109 2015-09-21 Jonathan Wakely <jwakely@redhat.com>
1112 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
1113 (basic_string::shrink_to_fit): Fix #endif placement.
1115 2015-09-19 Tim Shen <timshen@google.com>
1118 * include/bits/regex_error.h: Add __throw_regex_error that
1120 * include/bits/regex_automaton.h: Add more specific exception
1122 * include/bits/regex_automaton.tcc: Likewise.
1123 * include/bits/regex_compiler.h: Likewise.
1124 * include/bits/regex_compiler.tcc: Likewise.
1125 * include/bits/regex_scanner.h: Likewise.
1126 * include/bits/regex_scanner.tcc: Likewise.
1128 2015-09-18 Jonathan Wakely <jwakely@redhat.com>
1130 * include/precompiled/extc++.h: Fix bootstrap error due to
1131 unconditional inclusion of <ext/enc_filebuf.h>.
1132 * include/ext/random: Check for definition of UINT32_C.
1134 2015-09-17 Catherine Moore <clm@codesourcery.com>
1136 * src/c++11/debug.cc: Include <cstdio>.
1138 2015-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1140 * src/c++11/random.cc: Include <cerrno>.
1142 2015-09-17 François Dumont <fdumont@gcc.gnu.org>
1144 * include/debug/formatter.h
1145 (_Error_formatter::_Parameter::_M_print_field): Deprecate.
1146 (_Error_formatter::_Parameter::_M_print_description): Likewise.
1147 (_Error_formatter::_M_format_word): Likewise.
1148 (_Error_formatter::_M_print_word): Likewise.
1149 (_Error_formatter::_M_print_string): Likewise.
1150 (_Error_formatter::_M_get_max_length): Likewise.
1151 (_Error_formatter::_M_max_length): Delete.
1152 (_Error_formatter::_M_indent): Likewise.
1153 (_Error_formatter::_M_column): Likewise.
1154 (_Error_formatter::_M_first_line): Likewise.
1155 (_Error_formatter::_M_wordwrap): Likewise.
1156 * src/c++11/debug.cc: Adapt.
1158 2015-09-17 Jonathan Wakely <jwakely@redhat.com>
1161 * include/bits/atomic_base.h (__atomic_base<_TTp>::is_lock_free(),
1162 __atomic_base<_PTp*>::is_lock_free()): Call the built-in with the
1163 immediate pointer value, not a variable.
1164 * include/std/atomic (atomic<T>::is_lock_free()): Likewise.
1165 * testsuite/29_atomics/atomic/65913.cc: New.
1167 * testsuite/experimental/filesystem/operations/canonical.cc: Remove
1168 non-deterministic part of the test.
1171 * src/c++11/random.cc (random_device::_M_getval()): Retry after short
1174 * include/std/system_error (error_code::operator bool(),
1175 error_condition::operator bool()): Remove redundant conditional
1178 * include/bits/allocator.h (__shrink_to_fit_aux<T, true>::_S_do_it):
1179 Do nothing if exceptions are disabled.
1180 * include/bits/basic_string.h (basic_string::shrink_to_fit): Likewise.
1182 2015-09-16 Jonathan Wakely <jwakely@redhat.com>
1185 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check _XOPEN_VERSION
1186 and PATH_MAX for _GLIBCXX_USE_REALPATH.
1187 * config.h.in: Regenerate.
1188 * configure: Regenerate.
1189 * src/filesystem/ops.cc: (canonical) [!_GLIBCXX_USE_REALPATH]: Add
1190 alternative implementation.
1191 * testsuite/experimental/filesystem/operations/canonical.cc: New.
1192 * testsuite/experimental/filesystem/operations/exists.cc: Add more
1194 * testsuite/experimental/filesystem/operations/absolute.cc: Add test
1196 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
1197 * testsuite/experimental/filesystem/operations/current_path.cc:
1199 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
1200 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
1201 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1204 2015-09-11 Jonathan Wakely <jwakely@redhat.com>
1207 * src/filesystem/ops.cc (filesystem::canonical): Allocate buffer for
1208 realpath on Solaris 10.
1211 * src/c++11/random.cc (random_device::_M_getval()): Check read result.
1213 2015-09-11 John Marino <gnugcc@marino.st>
1214 Jonathan Wakely <jwakely@redhat.com>
1217 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Do not test code points
1219 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
1220 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
1221 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise.
1222 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise.
1223 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
1224 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise.
1225 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
1226 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise.
1227 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
1228 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
1229 * testsuite/27_io/objects/wchar_t/10.cc: Likewise.
1230 * testsuite/27_io/objects/wchar_t/11.cc: Likewise.
1231 * testsuite/27_io/objects/wchar_t/12.cc: Likewise.
1232 * testsuite/27_io/objects/wchar_t/13.cc: Likewise.
1234 2015-09-11 Jonathan Wakely <jwakely@redhat.com>
1237 * doc/xml/manual/using.xml: Improve aggregate header documentation.
1238 * doc/html/manual/*: Regenerate.
1239 * include/precompiled/extc++.h: Include <bits/stdc++.h> for C++11
1240 and later and include more extension headers.
1241 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Remove
1243 * testsuite/17_intro/headers/c++200x/: Rename to c++2011.
1244 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Remove
1246 * testsuite/17_intro/headers/c++2014/all_no_exceptions.cc: New.
1247 * testsuite/17_intro/headers/c++2014/all_no_rtti.cc: New.
1248 * testsuite/17_intro/headers/c++2014/all_pedantic_errors.cc: New.
1249 * testsuite/17_intro/headers/c++2014/operator_names.cc: New.
1250 * testsuite/17_intro/headers/c++2014/stdc++.cc: New.
1251 * testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc:
1255 * doc/xml/manual/intro.xml: Document LWG 2063 and 2064 resolutions.
1256 * doc/html/manual/bugs.html: Regenerate.
1257 * include/bits/basic_string.h (basic_string): Implement N4258. Add
1258 correct exception-specifications and propagate allocators correctly.
1259 * include/bits/basic_string.tcc (basic_string::swap): Propagate
1260 allocators correctly.
1261 * include/debug/string (__gnu_debug::basic_string): Add correct
1262 exceptions-specifications and allcoator-extended constructors.
1263 * testsuite/21_strings/basic_string/allocator/char/copy.cc: New.
1264 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1266 * testsuite/21_strings/basic_string/allocator/char/minimal.cc: New.
1267 * testsuite/21_strings/basic_string/allocator/char/move.cc: New.
1268 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1270 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc: New.
1271 * testsuite/21_strings/basic_string/allocator/char/swap.cc: New.
1272 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: New.
1273 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1275 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: New.
1276 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: New.
1277 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1279 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: New.
1280 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: New.
1281 * testsuite/util/testsuite_allocator.h (tracker_allocator): Define
1282 defaulted assignment operators.
1285 * include/bits/stl_queue.h (queue, priority_queue): Add
1286 allocator-extended constructors.
1287 * include/bits/stl_stack.h (stack): Likewise.
1288 * testsuite/23_containers/priority_queue/requirements/
1289 uses_allocator.cc: Test allocator-extended constructors.
1290 * testsuite/23_containers/queue/requirements/uses_allocator.cc:
1292 * testsuite/23_containers/stack/requirements/uses_allocator.cc:
1295 2015-09-10 Jonathan Wakely <jwakely@redhat.com>
1297 * testsuite/util/testsuite_allocator.h (PointerBase::operator[]): Add.
1299 * testsuite/21_strings/basic_string/operators/char/1.cc: Verify the
1302 2015-09-09 Jonathan Wakely <jwakely@redhat.com>
1304 * doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document.
1305 * doc/html/manual/using_macros.html: Regenerate.
1306 * include/bits/c++config: Define _GLIBCXX_ASSERTIONS when
1307 _GLIBCXX_DEBUG is defined. Disable std::string extern templates when
1308 (_GLIBCXX_EXTERN_TEMPLATE, __glibcxx_assert): Depend on
1309 _GLIBCXX_ASSERTIONS instead of _GLIBCXX_DEBUG.
1310 * include/debug/debug.h [!_GLIBCXX_DEBUG]: Define
1311 __glibcxx_requires_non_empty_range and __glibcxx_requires_nonempty.
1312 * include/backward/auto_ptr.h (auto_ptr::operator*,
1313 auto_ptr::operator->): Replace _GLIBCXX_DEBUG_ASSERT with
1315 * include/bits/basic_string.h (basic_string::operator[],
1316 basic_string::front, basic_string::back, basic_string::pop_back):
1318 * include/bits/random.h
1319 (uniform_int_distribution::param_type::param_type,
1320 uniform_real_distribution::param_type::param_type,
1321 normal_distribution::param_type::param_type,
1322 gamma_distribution::param_type::param_type,
1323 bernoulli_distribution::param_type::param_type,
1324 binomial_distribution::param_type::param_type,
1325 geometric_distribution::param_type::param_type,
1326 negative_binomial_distribution::param_type::param_type,
1327 poisson_distribution::param_type::param_type,
1328 exponential_distribution::param_type::param_type): Likewise.
1329 * include/bits/regex.h (match_results::operator[],
1330 match_results::prefix, match_results::suffix): Likewise.
1331 * include/bits/regex.tcc (format, regex_iterator::operator++):
1333 * include/bits/regex_automaton.tcc (_StateSeq::_M_clone): Likewise.
1334 * include/bits/regex_compiler.tcc (_Compiler::_Compiler,
1335 _Compiler::_M_insert_character_class_matcher): Likewise.
1336 * include/bits/regex_executor.tcc (_Executor::_M_dfs): Likewise.
1337 * include/bits/regex_scanner.tcc (_Scanner::_M_advance,
1338 _Scanner::_M_scan_normal): Likewise.
1339 * include/bits/shared_ptr_base.h (__shared_ptr::_M_reset,
1340 __shared_ptr::operator*): Likewise.
1341 * include/bits/stl_iterator_base_funcs.h (__advance): Likewise.
1342 * include/bits/unique_ptr.h (unique_ptr::operator*,
1343 unique_ptr::operator[]): Likewise.
1344 * include/experimental/fs_path.h (path::path(string_type, _Type),
1345 path::iterator::operator++, path::iterator::operator--,
1346 path::iterator::operator*): Likewise.
1347 * include/experimental/string_view (basic_string_view::operator[],
1348 basic_string_view::front, basic_string_view::back,
1349 basic_string_view::remove_prefix): Likewise.
1350 * include/ext/random (beta_distribution::param_type::param_type,
1351 normal_mv_distribution::param_type::param_type,
1352 rice_distribution::param_type::param_type,
1353 pareto_distribution::param_type::param_type,
1354 k_distribution::param_type::param_type,
1355 arcsine_distribution::param_type::param_type,
1356 hoyt_distribution::param_type::param_type,
1357 triangular_distribution::param_type::param_type,
1358 von_mises_distribution::param_type::param_type,
1359 hypergeometric_distribution::param_type::param_type,
1360 logistic_distribution::param_type::param_type): Likewise.
1361 * include/ext/vstring.h (__versa_string::operator[]): Likewise.
1362 * include/std/complex (polar): Likewise.
1363 * include/std/mutex [!_GTHREAD_USE_MUTEX_TIMEDLOCK]
1364 (timed_mutex::~timed_mutex, timed_mutex::unlock,
1365 (recursive_timed_mutex::~timed_mutex, recursive_timed_mutex::unlock):
1367 * include/std/shared_mutex [!PTHREAD_RWLOCK_INITIALIZER]
1368 (__shared_mutex_pthread::__shared_mutex_pthread,
1369 __shared_mutex_pthread::~__shared_mutex_pthread): Likewise.
1370 (__shared_mutex_pthread::lock, __shared_mutex_pthread::try_lock,
1371 __shared_mutex_pthread::unlock, __shared_mutex_pthread::lock_shared,
1372 __shared_mutex_pthread::try_lock_shared): Likewise.
1373 (__shared_mutex_cv::~__shared_mutex_cv, __shared_mutex_cv::unlock,
1374 __shared_mutex_cv::unlock_shared): Likewise.
1375 (shared_timed_mutex::try_lock_until,
1376 shared_timed_mutex::try_lock_shared_until): Likewise.
1377 * include/std/valarray (valarray::valarray(const _Tp*, size_t),
1378 valarray::operator=, valarray::sum, valarray::min, valarray::max,
1379 _DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT, _DEFINE_BINARY_OPERATOR):
1382 2015-09-07 Jonathan Wakely <jwakely@redhat.com>
1384 * include/bits/shared_ptr_base.h (__shared_ptr::operator->): Change
1385 _GLIBCXX_DEBUG_ASSERT to _GLIBCXX_DEBUG_PEDASSERT.
1386 * include/bits/unique_ptr.h (unique_ptr::operator->): Likewise.
1387 * testsuite/20_util/shared_ptr/observers/get.cc: Test operator-> on
1390 * include/bits/regex_compiler.h (_BracketMatcher::_M_is_ready):
1391 Initialize using NSDMI and set using _GLIBCXX_DEBUG_ONLY.
1393 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Rename
1396 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Run on
1398 * testsuite/30_threads/timed_mutex/unlock/2.cc: Run on darwin.
1400 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
1403 * include/std/mutex (recursive_timed_mutex): Fix uses of _Can_lock.
1406 * include/Makefile.am: Add <bits/mutex.h>.
1407 * include/Makefile.in: Regenerate.
1408 * include/bits/mutex.h (__mutex_base, mutex, lock_guard, unique_lock):
1409 New file containing types moved from <mutex>.
1410 * include/std/condition_variable: Include <bits/mutex.h> instead of
1412 * include/std/mutex (__mutex_base, mutex, lock_guard, unique_lock):
1413 Move to <bits/mutex.h>.
1414 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Remove
1415 dg-require-gthreads-timed.
1416 * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
1418 * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
1420 * testsuite/30_threads/recursive_timed_mutex/dest/
1421 destructor_locked.cc: Likewise.
1422 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1423 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1424 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
1425 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
1426 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1428 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1430 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1432 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1434 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1436 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1437 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1438 * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
1439 * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
1440 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc:
1442 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1443 * testsuite/30_threads/timed_mutex/requirements/standard_layout.cc:
1445 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1446 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1447 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1448 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1449 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1450 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1451 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1452 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
1453 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1454 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1455 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1456 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1457 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1459 2015-09-04 Edward Smith-Rowland <3dw4rd@verizon.net>
1460 Jonathan Wakely <jwakely@redhat.com>
1462 Add C++11 header <cuchar>.
1463 * acinclude.m4 (GLIBCXX_CHECK_UCHAR_H): Define.
1464 * config.h.in: Regenerate.
1465 * configure: Regenerate.
1466 * configure.ac: Check for <uchar.h>.
1467 * include/Makefile.am: Add new headers.
1468 * include/Makefile.in: Regenerate.
1469 * include/c/cuchar: New.
1470 * include/c_compatibility/uchar.h: New.
1471 * include/c_global/cuchar: New.
1472 * include/c_std/cuchar: New.
1473 * include/precompiled/stdc++.h: Include <cuchar>.
1474 * testsuite/17_intro/headers/c++200x/stdc++.cc: Include <uchar.h>.
1475 * testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc:
1478 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
1481 * include/c/cassert: Include <bits/c++config.h>.
1482 * include/c/cerrno: Likewise.
1483 * include/c/cfloat: Likewise.
1484 * include/c/ciso646: Likewise.
1485 * include/c/climits: Likewise.
1486 * include/c_global/cassert: Likewise.
1487 * include/c_global/cerrno: Likewise.
1488 * include/c_global/cfloat: Likewise.
1489 * include/c_global/ciso646: Likewise.
1490 * include/c_global/climits: Likewise.
1491 * include/c_std/cassert: Likewise.
1492 * include/c_std/cerrno: Likewise.
1493 * include/c_std/cfloat: Likewise.
1494 * include/c_std/ciso646: Likewise.
1495 * include/c_std/climits: Likewise.
1497 2015-09-03 Jonathan Wakely <jwakely@redhat.com>
1499 * include/bits/shared_ptr_base.h: Add required header.
1500 * include/std/condition_variable: Likewise.
1501 * include/std/mutex: Remove unused header.
1502 * include/std/shared_mutex: Remove redundant header.
1503 (shared_mutex::shared_mutex()): Replace throw with __throw_bad_alloc.
1506 * src/c++11/debug.cc (_S_debug_messages): Make array const.
1509 * include/experimental/functional (_Not_fn): Add exception
1510 specifications and non-deduced return types.
1511 (not_fn): Add exception specification and wrap pointer-to-member.
1512 * testsuite/experimental/functional/not_fn.cc: Test in SFINAE context
1513 and test pointer-to-member.
1516 * include/bits/stl_iterator_base_funcs.h (next, prev): Add concept
1518 * testsuite/24_iterators/operations/prev_neg.cc: New.
1519 * testsuite/24_iterators/operations/next_neg.cc: New.
1521 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1523 * testsuite/18_support/pthread_guard.cc: Add *-*-rtems* target
1524 selector to all lines which contain a *-*-cygwin target selector.
1525 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
1526 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise.
1527 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
1528 * testsuite/21_strings/basic_string/pthread18185.cc: Likewise.
1529 * testsuite/21_strings/basic_string/pthread33394.cc: Likewise.
1530 * testsuite/21_strings/basic_string/pthread4.cc: Likewise.
1531 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
1532 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
1533 * testsuite/23_containers/list/pthread1.cc: Likewise.
1534 * testsuite/23_containers/list/pthread5.cc: Likewise.
1535 * testsuite/23_containers/map/pthread6.cc: Likewise.
1536 * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise.
1537 * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise.
1538 * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise.
1539 * testsuite/30_threads/async/42819.cc: Likewise.
1540 * testsuite/30_threads/async/49668.cc: Likewise.
1541 * testsuite/30_threads/async/54297.cc: Likewise.
1542 * testsuite/30_threads/async/any.cc: Likewise.
1543 * testsuite/30_threads/async/async.cc: Likewise.
1544 * testsuite/30_threads/async/launch.cc: Likewise.
1545 * testsuite/30_threads/async/lwg2021.cc: Likewise.
1546 * testsuite/30_threads/async/sync.cc: Likewise.
1547 * testsuite/30_threads/call_once/39909.cc: Likewise.
1548 * testsuite/30_threads/call_once/49668.cc: Likewise.
1549 * testsuite/30_threads/call_once/60497.cc: Likewise.
1550 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
1551 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
1552 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
1553 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
1554 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
1555 * testsuite/30_threads/condition_variable/members/3.cc: Likewise.
1556 * testsuite/30_threads/condition_variable/members/53841.cc: Likewise.
1557 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
1559 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
1560 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
1561 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
1562 * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise.
1563 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
1564 * testsuite/30_threads/future/cons/move.cc: Likewise.
1565 * testsuite/30_threads/future/members/45133.cc: Likewise.
1566 * testsuite/30_threads/future/members/get.cc: Likewise.
1567 * testsuite/30_threads/future/members/get2.cc: Likewise.
1568 * testsuite/30_threads/future/members/share.cc: Likewise.
1569 * testsuite/30_threads/future/members/valid.cc: Likewise.
1570 * testsuite/30_threads/future/members/wait.cc: Likewise.
1571 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
1572 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
1573 * testsuite/30_threads/lock/1.cc: Likewise.
1574 * testsuite/30_threads/lock/2.cc: Likewise.
1575 * testsuite/30_threads/lock/3.cc: Likewise.
1576 * testsuite/30_threads/lock/4.cc: Likewise.
1577 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
1578 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
1579 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
1580 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
1581 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
1582 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
1583 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
1584 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
1585 * testsuite/30_threads/mutex/unlock/2.cc: Likewise.
1586 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
1587 * testsuite/30_threads/packaged_task/60564.cc: Likewise.
1588 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
1589 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
1590 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
1591 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
1592 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
1593 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
1594 * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise.
1595 * testsuite/30_threads/packaged_task/members/at_thread_exit.cc:
1597 * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise.
1598 * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
1599 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
1600 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
1601 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
1602 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
1603 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
1604 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
1605 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
1606 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
1607 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
1608 * testsuite/30_threads/promise/60966.cc: Likewise.
1609 * testsuite/30_threads/promise/cons/1.cc: Likewise.
1610 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
1611 * testsuite/30_threads/promise/cons/move.cc: Likewise.
1612 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
1613 * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise.
1614 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
1615 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
1616 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
1617 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
1618 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
1619 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
1620 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
1621 * testsuite/30_threads/promise/members/swap.cc: Likewise.
1622 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
1623 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
1625 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
1626 * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
1627 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
1629 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
1630 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
1631 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
1632 * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise.
1633 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
1634 * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
1636 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1637 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1638 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
1640 * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc:
1642 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
1643 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
1644 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1646 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1648 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1650 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1652 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1654 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1655 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise.
1656 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
1657 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
1658 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
1659 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
1660 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
1661 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
1662 * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
1663 * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
1664 * testsuite/30_threads/shared_lock/cons/1.cc: Likewise.
1665 * testsuite/30_threads/shared_lock/cons/2.cc: Likewise.
1666 * testsuite/30_threads/shared_lock/cons/3.cc: Likewise.
1667 * testsuite/30_threads/shared_lock/cons/4.cc: Likewise.
1668 * testsuite/30_threads/shared_lock/cons/5.cc: Likewise.
1669 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1670 * testsuite/30_threads/shared_lock/locking/1.cc: Likewise.
1671 * testsuite/30_threads/shared_lock/locking/2.cc: Likewise.
1672 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1673 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1674 * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise.
1675 * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise.
1676 * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise.
1677 * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise.
1678 * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise.
1679 * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise.
1680 * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise.
1681 * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise.
1682 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise.
1683 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise.
1684 * testsuite/30_threads/this_thread/1.cc: Likewise.
1685 * testsuite/30_threads/this_thread/2.cc: Likewise.
1686 * testsuite/30_threads/this_thread/3.cc: Likewise.
1687 * testsuite/30_threads/this_thread/4.cc: Likewise.
1688 * testsuite/30_threads/thread/cons/1.cc: Likewise.
1689 * testsuite/30_threads/thread/cons/2.cc: Likewise.
1690 * testsuite/30_threads/thread/cons/3.cc: Likewise.
1691 * testsuite/30_threads/thread/cons/4.cc: Likewise.
1692 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
1693 * testsuite/30_threads/thread/cons/5.cc: Likewise.
1694 * testsuite/30_threads/thread/cons/6.cc: Likewise.
1695 * testsuite/30_threads/thread/cons/7.cc: Likewise.
1696 * testsuite/30_threads/thread/cons/8.cc: Likewise.
1697 * testsuite/30_threads/thread/cons/9.cc: Likewise.
1698 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
1699 * testsuite/30_threads/thread/members/1.cc: Likewise.
1700 * testsuite/30_threads/thread/members/2.cc: Likewise.
1701 * testsuite/30_threads/thread/members/3.cc: Likewise.
1702 * testsuite/30_threads/thread/members/4.cc: Likewise.
1703 * testsuite/30_threads/thread/members/5.cc: Likewise.
1704 * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise.
1705 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
1706 * testsuite/30_threads/thread/swap/1.cc: Likewise.
1707 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1708 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
1709 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1710 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
1711 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise.
1712 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1713 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1714 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1715 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1716 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1717 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1718 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1719 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
1720 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1721 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1722 * testsuite/30_threads/try_lock/1.cc: Likewise.
1723 * testsuite/30_threads/try_lock/2.cc: Likewise.
1724 * testsuite/30_threads/try_lock/3.cc: Likewise.
1725 * testsuite/30_threads/try_lock/4.cc: Likewise.
1726 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
1727 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
1728 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
1729 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
1730 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1731 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1732 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
1733 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1734 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1735 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1736 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1737 * testsuite/ext/rope/pthread7-rope.cc: Likewise.
1738 * testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc:
1740 * testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc:
1743 2015-09-02 Dmitry Vyukov <dvyukov@google.com>
1745 * include/bits/basic_string.h: Fix data races on _M_refcount.
1747 2015-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
1750 * include/std/mutex (__timed_mutex_impl::_M_try_lock_until): Use
1751 _Derived::_M_timedlock().
1752 (timed_mutex): Add _M_timedlock() and make base class a friend.
1753 (recursive_timed_mutex): Likewise.
1755 2015-08-28 Tim Shen <timshen@google.com>
1758 * include/bits/regex_scanner.tcc (_Scanner<>::_M_scan_normal):
1759 Always returns ordinary char token if the char isn't
1760 considered a special char.
1761 * testsuite/28_regex/regression.cc: New test file for collecting
1762 regression testcases from, typically, bugzilla.
1764 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
1767 * include/bits/range_access.h (valarray, begin, end): Declare.
1768 * testsuite/26_numerics/valarray/range_access.cc: Test const
1770 * testsuite/26_numerics/valarray/range_access2.cc: New.
1772 2015-08-27 John Marino <gnugcc@marino.st>
1774 * acinclude.m4 (*-*-dragonfly*): Change 7 locale support files
1775 from generic to new DragonFly versions.
1776 * configure: Regenerate.
1777 * config/locale/dragonfly/c_locale.cc: Improve locale support.
1778 * config/locale/dragonfly/ctype_members.cc: Likewise.
1779 * config/os/bsd/dragonfly/ctype_configure_char.cc: Likewise.
1780 * config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99.
1781 * config/locale/dragonfly/c_locale.h: New.
1782 * config/locale/dragonfly/codecvt_members.cc: New.
1783 * config/locale/dragonfly/collate_members.cc: New.
1784 * config/locale/dragonfly/monetary_members.cc: New.
1785 * config/locale/dragonfly/numeric_members.cc: New.
1786 * config/locale/dragonfly/time_members.cc: New.
1787 * config/locale/dragonfly/time_members.h: New.
1789 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
1791 * configure: Regenerate.
1793 2015-08-26 Edward Smith-Rowland <3dw4rd@verizon.net>
1794 Jonathan Wakely <jwakely@redhat.com>
1798 * include/bits/random.tcc (generate_canonical): Loop until we get a
1799 result less than one.
1800 * testsuite/26_numerics/random/uniform_real_distribution/operators/
1803 2015-08-26 Jonathan Wakely <jwakely@redhat.com>
1805 * include/bits/shared_ptr.h (__enable_shared_from_this_helper): Use
1807 * include/bits/shared_ptr_base.h (weak_ptr::_M_assign): Don't assign
1808 if ownership is already shared with a shared_ptr object.
1809 (__enable_shared_from_this_helper): Use nullptr.
1810 * testsuite/20_util/enable_shared_from_this/members/const.cc: New.
1811 * testsuite/20_util/enable_shared_from_this/members/reinit.cc: New.
1812 * testsuite/20_util/enable_shared_from_this/requirements/
1813 explicit_instantiation.cc: Instantiate with const and incomplete types.
1815 * include/debug/map.h (map::try_emplace, map::insert_or_assign):
1817 * include/debug/unordered_map (unordered_map::try_emplace,
1818 unordered_map::insert_or_assign): Define.
1821 * src/c++11/debug.cc (_S_debug_messages): Give internal linkage.
1823 2015-08-24 François Dumont <fdumont@gcc.gnu.org>
1826 * include/debug/formatter.h (_Debug_msg_id::__msg_irreflexive_ordering):
1828 * include/debug/functions.h (_Irreflexive_checker): New.
1829 (__is_irreflexive, __is_irreflexive_pred): New.
1830 * include/debug/macros.h
1831 (__glibcxx_check_irreflexive, __glibcxx_check_irreflexive_pred): New
1833 (__glibcxx_check_irreflexive2, __glibcxx_check_irreflexive_pred2): New
1834 macros limited to post-C++11 mode.
1835 * include/debug/debug.h
1836 (__glibcxx_requires_irreflexive, __glibcxx_requires_irreflexive_pred):
1837 New macros, use latter.
1838 (__glibcxx_requires_irreflexive2, __glibcxx_requires_irreflexive_pred2):
1840 * include/bits/stl_algo.h
1841 (partial_sort_copy): Add irreflexive debug check.
1842 (partial_sort_copy): Likewise.
1843 (lower_bound): Likewise.
1844 (upper_bound): Likewise.
1845 (equal_range): Likewise.
1846 (binary_search): Likewise.
1847 (inplace_merge): Likewise.
1848 (includes): Likewise.
1849 (next_permutation): Likewise.
1850 (prev_permutation): Likewise.
1851 (is_sorted_until): Likewise.
1852 (minmax_element): Likewise.
1853 (partial_sort): Likewise.
1854 (nth_element): Likewise.
1857 (stable_sort): Likewise.
1858 (set_union): Likewise.
1859 (set_intersection): Likewise.
1860 (set_difference): Likewise.
1861 (set_symmetric_difference): Likewise.
1862 (min_element): Likewise.
1863 (max_element): Likewise.
1864 * include/bits/stl_algobase.h
1865 (lower_bound): Likewise.
1866 (lexicographical_compare): Likewise.
1867 * include/bits/stl_heap.h
1868 (push_heap): Likewise.
1869 (pop_heap): Likewise.
1870 (make_heap): Likewise.
1871 (sort_heap): Likewise.
1872 (is_heap_until): Likewise.
1873 * testsuite/25_algorithms/lexicographical_compare/debug/
1874 irreflexive_neg.cc: New.
1875 * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: New.
1876 * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
1879 2015-08-24 Jonathan Wakely <jwakely@redhat.com>
1882 * include/bits/char_traits.h (char_traits<char>::compare,
1883 char_traits<char>::find, char_traits<char>::move,
1884 char_traits<char>::copy, char_traits<char>::assign): Check for zero
1886 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find,
1887 char_traits<wchar_t>::move, char_traits<wchar_t>::copy,
1888 char_traits<wchar_t>::assign): Likewise.
1889 (char_traits<char16_t>::move, char_traits<char16_t>::copy): Likewise.
1890 (char_traits<char32_t>::move, char_traits<char32_t>::copy): Likewise.
1891 * include/ext/pod_char_traits.h (char_traits<character<>>::move,
1892 char_traits<character<>>::copy): Likewise.
1893 * testsuite/21_strings/char_traits/requirements/char/65049.cc: New.
1894 * testsuite/21_strings/char_traits/requirements/char16_t/65049.cc:
1896 * testsuite/21_strings/char_traits/requirements/char32_t/65049.cc:
1898 * testsuite/21_strings/char_traits/requirements/wchar_t/65049.cc:
1902 * include/bits/random.tcc
1903 (poisson_distribution::param_type::_M_initialize): Use max<double>.
1904 (binomial_distribution::param_type::_M_initialize): Likewise.
1905 * testsuite/17_intro/headers/c++200x/67309.cc: New.
1906 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Remove
1909 2015-08-20 Jonathan Wakely <jwakely@redhat.com>
1912 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Do not run
1914 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1916 * include/experimental/any (__any_caster): Define at namespace scope
1917 so the name is visible to name lookup.
1918 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1920 * python/Makefile.am: Ensure gdb.py is installed for libstdc++ not
1922 * python/Makefile.in: Regenerate.
1924 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
1926 * include/c_global/cmath: Fix typo in comment.
1928 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
1930 * include/c_global/cmath: Revert fix for libstdc++/58625, no
1931 longer necessary (__builtin_signbit is now type-generic).
1933 2015-08-18 Jonathan Wakely <jwakely@redhat.com>
1936 * testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc:
1937 Fix use of safe-bool idiom that isn't valid in C++11.
1939 * include/bits/ptr_traits.h: Include <bits/move.h> for addressof.
1942 * doc/xml/manual/configure.xml (manual.intro.setup.configure): Add
1943 caveats for --enable-concept-checks. Improve link text.
1944 * doc/xml/manual/diagnostics.xml (std.diagnostics.concept_checking):
1946 * doc/html/*: Regenerate.
1947 * include/bits/stl_deque.h (deque): Only use concept checks in C++03.
1948 * include/bits/stl_stack.h (stack): Likewise.
1949 * include/bits/stl_vector.h (vector): Likewise.
1951 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
1953 * include/experimental/any (any::operator=(const any&)): Move check
1954 for self-assignment.
1955 (any::operator=(any&&)): Add check for self-assignment.
1956 (any::operator=(_ValueType&&)): Constrain template argument.
1957 (any::swap(any&)): Add check for self-swap.
1958 * testsuite/experimental/any/assign/self.cc: Test move and swap.
1959 * testsuite/experimental/any/misc/any_cast_neg.cc: Update dg-error.
1961 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
1963 * include/experimental/array: Add feature-test macro.
1964 * testsuite/experimental/array/neg.cc: Update dg-error.
1966 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1968 * testsuite/experimental/array/neg.s: Remove.
1969 * testsuite/experimental/array/neg.ii.gz: Remove.
1971 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1973 Implement std::experimental::fundamentals_v2::make_array and
1974 std::experimental::fundamentals_v2::to_array.
1975 * include/Makefile.am: Add array.
1976 * include/Makefile.in: Add array.
1977 * include/experimental/array: New.
1978 * testsuite/experimental/array/make_array.cc: Likewise.
1979 * testsuite/experimental/array/neg.cc: Likewise.
1980 * doc/html/manual/status.html: Mark make_array as Y.
1981 * doc/xml/manual/status_cxx2017.xml: Likewise.
1983 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
1985 * include/bits/alloc_traits.h: Add feature-test macro.
1986 * include/bits/allocator.h: Likewise.
1987 * include/bits/range_access.h: Likewise.
1988 * include/bits/stl_map.h: Likewise.
1989 * include/bits/unordered_map.h: Likewise.
1991 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
1993 * testsuite/30_threads/mutex/unlock/2.cc: New.
1994 * testsuite/30_threads/recursive_mutex/unlock/2.cc: New.
1995 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: New.
1996 * testsuite/30_threads/shared_mutex/unlock/1.cc: New.
1997 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: New.
1998 * testsuite/30_threads/timed_mutex/unlock/2.cc: New.
2000 2015-08-13 Eelis van der Weegen <eelis@eelis.net>
2002 * include/std/shared_mutex (shared_mutex::unlock()): Fix typo.
2004 2015-08-12 Caroline Tice <cmtice@google.com>
2006 PR 66521, Contributed by Eric Gallager
2007 * acinclude.m4 (VTV_CXXLINKFLAGS): Make this variable OS-specific, and
2008 fix the rpath flag to work properly for darwin.
2009 * configure: Regenerated.
2011 2015-08-12 Jonathan Wakely <jwakely@redhat.com>
2013 * doc/xml/manual/appendix_contributing.xml: Update patch email policy.
2014 * doc/xml/manual/status_cxx2017.xml: Update status table.
2015 * doc/html/manual/*: Regenerate.
2017 2015-08-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2019 Implement N4279, Improved insertion interface for unique-key maps.
2020 * include/bits/stl_map.h (try_emplace, insert_or_assign): New.
2021 * include/bits/stl_tree.h (_M_get_insert_unique_pos,
2022 _M_get_insert_equal_pos, _M_get_insert_hint_unique_pos,
2023 _M_get_insert_hint_equal_pos): Make public.
2024 * include/bits/unordered_map.h (try_emplace, insert_or_assign): New.
2025 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2027 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2028 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
2030 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
2033 2015-08-08 Ville Voutilainen <ville.voutilainen@gmail.com>
2035 Implement N4089 Safe conversions in unique_ptr<T[]> (LWG 2118)
2036 and N4366 LWG 2228: Missing SFINAE rule in unique_ptr
2037 templated assignment
2038 * include/bits/unique_ptr.h
2039 (__remove_cv, __is_derived_Tp): Remove.
2040 (default_delete::default_delete(const default_delete<_Up[]>)):
2041 Constrain with array convertibility.
2042 (default_delete::operator(_Up*)): Turn into a template,
2043 constrain with array convertibility.
2044 (__safe_conversion_up): New, single object version.
2045 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Constrain with deleter
2047 (unique_ptr::operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
2048 is_assignable as a constraint.
2049 (__safe_conversion_up): Array version, renamed from __safe_conversion,
2050 updated to implement N4089.
2051 (__safe_conversion_raw): New.
2052 (unique_ptr(_Up)): Turn into a template, constrain with array
2055 typename conditional<is_reference<deleter_type>::value,
2056 deleter_type, const deleter_type&>::type)): Likewise.
2057 (unique_ptr(_Up, typename
2058 remove_reference<deleter_type>::type&&)): Likewise.
2059 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Likewise.
2060 (operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
2061 is_assignable as a constraint (array version).
2062 (reset(_Up)): Turn into a template, constrain with array
2064 (reset(nullptr_t)): New.
2065 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
2066 * testsuite/20_util/unique_ptr/assign/48635.cc: Likewise.
2067 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
2068 * testsuite/20_util/unique_ptr/assign/cv_qual.cc: Likewise.
2069 * testsuite/20_util/unique_ptr/cons/cv_qual.cc: Likewise.
2070 * testsuite/20_util/unique_ptr/dr2228.cc: New.
2071 * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Adjust.
2073 2015-08-05 Nikolai Bozhenov <n.bozhenov@samsung.com>
2075 * testsuite/20_util/enable_shared_from_this/cons/constexpr.cc: Remove
2076 redundant -save-temps option.
2077 * testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise.
2078 * testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
2079 * testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.
2080 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
2081 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
2083 2015-08-03 Jonathan Wakely <jwakely@redhat.com>
2086 * include/bits/range_access.h (size, empty, data): Fix _N bad name.
2088 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
2090 * testsuite/experimental/filesystem/operations/current_path.cc: Use
2091 canonical paths for comparisons.
2093 2015-07-30 Tim Shen <timshen@google.com>
2095 * include/bits/regex_automaton.h (_State_base, _State<>):
2096 Remove _TraitsT dependency from _State<>; Make matcher member
2097 into the union to reduce struct size.
2098 * include/bits/regex_automaton.tcc (_State_base<>::_M_print,
2099 _State_base<>::_M_dot, _StateSeq<>::_M_clone):
2100 Adjust to fit the interface. Factor out common parts in
2101 _M_clone as _State<>::_M_has_alt.
2102 * include/bits/regex_executor.h (_Executer<>::_M_lookahead):
2103 Only pass state id instead of the whole state.
2104 * include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
2105 _Executer<>::_M_lookahead): Adjust to fit the interface.
2106 * include/std/regex: Include <ext/aligned_buffer.h>
2108 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
2110 * include/experimental/any (any::operator=(const any&)): Check for
2112 * testsuite/experimental/any/assign/self.cc: New.
2113 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
2115 2015-07-29 Jonathan Wakely <jwakely@redhat.com>
2118 * testsuite/lib/libstdc++.exp (v3-build_support): Compile
2119 testsuite_shared.cc with -std=gnu++98.
2121 2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2123 * include/bits/range_access.h: Change class to typename in every
2125 (size, empty, data): New functions from N4280.
2126 * testsuite/24_iterators/container_access.cc: New.
2129 * include/bits/functional_hash.h (__hash_enum): New.
2130 (hash): Derive from __hash_enum.
2131 * testsuite/20_util/hash/60970.cc: New.
2133 2015-07-29 Tim Shen <timshen@google.com>
2136 * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
2137 _BracketMatcher<>::_M_add_collating_element): Change signature
2138 to make checking the and of bracket expression easier.
2139 * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
2140 Treat '-' as a valid literal if it's at the end of bracket expression.
2141 * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
2144 2015-07-24 Jonathan Wakely <jwakely@redhat.com>
2146 * include/bits/atomic_futex.h [_GLIBCXX_HAVE_LINUX_FUTEX]
2147 (_M_load_and_test_until): Whitespace.
2148 (_M_load_and_test): Value-initialize the unused durations.
2149 (_M_load_when_equal): Add missing return value.
2151 2015-07-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2153 * fragment.am (AM_CPPFLAGS): Add CPPFLAGS.
2154 * Makefile.in: Regenerate.
2155 * doc/Makefile.in: Regenerate.
2156 * include/Makefile.in: Regenerate.
2157 * libsupc++/Makefile.in: Regenerate.
2158 * po/Makefile.in: Regenerate.
2159 * python/Makefile.in: Regenerate.
2160 * src/Makefile.in: Regenerate.
2161 * src/c++11/Makefile.in: Regenerate.
2162 * src/c++98/Makefile.in: Regenerate.
2163 * src/filesystem/Makefile.in: Regenerate.
2164 * testsuite/Makefile.in: Regenerate.
2166 2015-07-23 DJ Delorie <dj@redhat.com>
2168 * include/bits/functional_hash.h: Add specializations for __intN
2171 * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp (__gnu_pbds):
2172 Guard against values that might exceed size_t's precision.
2174 2015-07-20 Jason Merrill <jason@redhat.com>
2176 * include/bits/c++config: Fix abi_tag in special modes.
2178 2015-07-19 Jonathan Wakely <jwakely@redhat.com>
2180 * doc/xml/manual/status_cxx2017.xml: Fix URL for N4279.
2181 * doc/html/manual/status.html: Regenerate.
2183 2015-07-17 Jonathan Wakely <jwakely@redhat.com>
2185 * doc/xml/manual/status_cxx2011.xml: Add caveats for native_handle.
2186 * doc/html/manual/status.html: Regenerate.
2188 2015-07-16 François Dumont <fdumont@gcc.gnu.org>
2190 * include/bits/stl_algobase.h (__miter_base): Move...
2191 * include/bits/cpp_type_traits.h: ...here.
2192 * include/debug/functions.h (__foreign_iterator_aux): Use latter.
2193 * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
2195 2015-07-13 Jonathan Wakely <jwakely@redhat.com>
2198 * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
2199 endianness bit in mode.
2200 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
2202 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
2203 * include/bits/forward_list.h (forward_list::swap): Make noexcept
2205 * include/bits/hashtable.h (_Hashtable::swap): Do not use
2207 * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
2209 * include/bits/stl_deque.h (deque::swap): Likewise.
2210 (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
2211 * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
2212 (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
2213 * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
2214 _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
2215 * include/bits/stl_multimap.h (multimap::swap,
2216 swap(multimap&, multimap&)): Likewise.
2217 * include/bits/stl_multiset.h (multiset::swap,
2218 swap(multiset&, multiset&)): Likewise.
2219 * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
2220 * include/bits/stl_tree.h (_Rb_tree::swap,
2221 swap(_Rb_tree&, _Rb_tree&)): Likewise.
2222 * include/bits/stl_vector.h (vector::swap): Make noexcept
2224 (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
2225 * include/debug/deque (deque::swap, swap): Likewise.
2226 * include/debug/forward_list (swap): Add noexcept.
2227 * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
2228 * include/debug/map.h (map::swap, swap): Likewise.
2229 * include/debug/multimap.h (multimap::swap, swap): Likewise.
2230 * include/debug/multiset.h (multiset::Swap, swap): Likewise.
2231 * include/debug/set.h (set::swap, swap): Likewise.
2232 * include/debug/unordered_map (unordered_map::swap,
2233 unordered_multimap::swap, swap): Likewise.
2234 * include/debug/unordered_set (unordered_set::swap,
2235 unordered_multiset::swap, swap): Likewise.
2236 * include/debug/vector (vector::swap, swap): Likewise.
2237 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
2239 * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
2240 * include/profile/forward_list (swap): Add noexcept.
2241 * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
2242 * include/profile/map.h (map::swap, swap): Likewise.
2243 * include/profile/multimap.h (multimap::swap, swap): Likewise.
2244 * include/profile/multiset.h (multiset::swap, swap): Likewise.
2245 * include/profile/set.h (set::swap, swap): Likewise.
2246 * include/profile/unordered_map (swap): Likewise.
2247 * include/profile/unordered_set (swap): Likewise.
2248 * include/profile/vector (vector::swap, swap): Likewise. Remove
2249 overloads for swapping rvalues.
2250 * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
2251 for noexcept on swap.
2252 * testsuite/23_containers/forward_list/allocator/noexcept.cc:
2254 * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
2255 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
2256 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
2257 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
2258 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
2259 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
2261 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
2263 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
2265 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
2267 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
2268 * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
2269 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
2272 2015-07-13 John Marino <gnugcc@marino.st>
2274 * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
2275 _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
2276 _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
2278 2015-07-05 François Dumont <fdumont@gcc.gnu.org>
2280 * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
2282 * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
2285 2015-07-03 Jonathan Wakely <jwakely@redhat.com>
2287 * doc/xml/manual/status_cxx2017.xml: Update status table.
2288 * doc/html/manual/*: Regenerate.
2290 2015-07-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2292 Implement std::experimental::fundamentals_v2::propagate_const.
2293 * include/Makefile.am: Add propagate_const.
2294 * include/Makefile.in: Regenerate.
2295 * include/experimental/propagate_const: New.
2296 * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
2297 * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
2298 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
2300 * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
2301 * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
2302 * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
2303 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
2304 * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
2305 * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
2306 * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
2307 * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
2308 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
2309 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
2310 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
2311 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
2312 * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
2313 * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
2315 2015-07-02 Jonathan Wakely <jwakely@redhat.com>
2317 * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
2318 --with-default-libstdcxx-abi
2319 * configure: Regenerate.
2320 * doc/xml/manual/configure.xml: Document valid arguments.
2322 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
2324 * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
2325 to avoid unused variable warning.
2326 (__set_and_release): Use __p after __atomic_store to avoid unused
2329 2015-07-01 Jonathan Wakely <jwakely@redhat.com>
2331 * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
2332 (__allocator_traits_base): New base class.
2333 (__alloc_rebind): Reimplement in terms of detection idiom.
2334 (allocator_traits): Derive from __allocator_traits_base. Reimplement
2335 nested types in terms of detection idiom. Simplify SFINAE constraints
2336 on overloaded static member functions.
2337 * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
2338 of __alloctr_rebind.
2339 * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
2340 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
2341 dg-error line number.
2343 * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
2344 __ptrtr_rebind, __ptrtr_not_void): Remove
2345 (__get_first_arg, __replace_first_arg, __make_not_void): Define new
2347 (__detected_or_): New detection trait.
2348 (pointer_traits): Use new traits.
2349 * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
2350 * testsuite/20_util/pointer_traits/requirements/
2351 explicit_instantiation.cc: Use valid arguments to pointer_traits.
2353 * doc/xml/manual/status_cxx2017.xml: Update status table.
2354 * include/experimental/type_traits (void_t, is_detected,
2355 is_detected_v, detected_t, detected_or, detected_or_t,
2356 is_detected_exact, is_detected_exact_v, is_detected_convertible,
2357 is_detected_convertible_v): Define.
2358 * include/std/type_traits (__detector, __detected_or, __detected_or_t,
2359 __detected_or_t_): Define.
2360 * testsuite/experimental/type_traits/detection.cc: New.
2362 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
2364 * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
2365 * doc/Makefile.in: Regenerate.
2367 * include/bits/stl_pair.h: Replace class keyword with typename.
2369 2015-06-30 Ville Voutilainen <ville.voutilainen@gmail.com>
2371 Implement N4387, "Improving pair and tuple", and LWG 2367.
2373 * include/bits/stl_pair.h (_ConstructiblePair,
2374 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
2375 _ImplicitlyMoveConvertiblePair): New.
2376 (pair()): Constrain it.
2377 (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
2378 pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
2379 pair(pair<_U1, _U2>&&)): Make conditionally explicit.
2380 * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
2381 (tuple()): Constrain it.
2382 (tuple(const _UElements&...), tuple(_UElements&&...),
2383 tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
2384 tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
2385 tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
2386 tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
2387 tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
2388 tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
2389 tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
2390 tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
2391 conditionally explicit.
2392 * include/experimental/functional (__boyer_moore_array_base): Name
2393 array type explicitly instead of using an empty braced-init-list.
2394 * testsuite/20_util/pair/cons/explicit_construct.cc: New.
2395 * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
2396 * testsuite/20_util/pair/requirements/dr2367.cc: New.
2397 * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
2398 * testsuite/20_util/tuple/requirements/dr2367.cc: New.
2400 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
2402 * configure: Regenerate.
2404 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
2406 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
2408 * include/debug/functions.h
2409 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
2410 * include/debug/safe_iterator.h
2411 (__gnu_debug::_Sequence_traits): New.
2412 (__gnu_debug::__get_distance_from_begin): New.
2413 (__gnu_debug::__get_distance_to_end): New.
2414 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
2415 distance information. Add optional check_dereferenceable parameter,
2417 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
2418 default definition...
2419 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
2420 (__gnu_debug::__unsafe): Likewise.
2421 * include/debug/helper_functions.h: ...here. New.
2422 (__gnu_debug::__unsafe): New helper function to remove safe iterator
2424 * include/debug/stl_iterator.h: New. Include latter.
2425 * include/bits/stl_iterator.h: Include latter in debug mode.
2426 * include/debug/stl_iterator.tcc: Adapt.
2427 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
2428 overload for _Safe_local_iterator.
2429 (__gnu_debug::__unsafe): Likewise.
2430 * include/debug/safe_local_iterator.tcc: Adapt.
2431 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
2432 (__glibcxx_check_insert_range): Add _Dist parameter.
2433 (__glibcxx_check_insert_range_after): Likewise.
2434 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
2435 _GLIBCXX_DEBUG_PEDASSERT.
2436 * include/debug/deque (deque<>::assign): Remove iterator debug layer
2438 (deque<>::insert): Likewise.
2439 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
2440 (forward_list<>::splice_after): Use latter.
2441 (forward_list<>::assign): Remove iterator debug layer when possible.
2442 (forward_list<>::insert_after): Likewise.
2443 (__gnu_debug::_Sequence_traits<>): Partial specialization.
2444 * include/debug/list (list<>::assign): Remove iterator debug layer when
2446 (list<>::insert): Likewise.
2447 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
2448 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
2450 * include/debug/multimap.h (multimap<>::insert): Likewise.
2451 * include/debug/set.h (set<>::insert): Likewise.
2452 * include/debug/multiset.h (multiset<>::insert): Likewise.
2453 * include/debug/string (basic_string<>::append, basic_string<>::assign,
2454 basic_string<>::insert, basic_string<>::replace): Likewise.
2455 * include/debug/unordered_map
2456 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
2457 * include/debug/unordered_set
2458 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
2459 * include/debug/vector
2460 (vector<>::assign, vector<>::insert): Likewise.
2461 * include/Makefile.am: Add new debug headers.
2462 * include/Makefile.in: Regenerate.
2464 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
2466 * doc/xml/manual/intro.xml: Document LWG 2108 status.
2467 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
2469 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
2470 * include/bits/forward_list.h
2471 (forward_list::operator=(forward_list&&)): Use __bool_constant.
2472 (forward_list::swap(forward_list&)): Add noexcept.
2473 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
2475 (_Hashtable::swap(_Hashtable&)): Likewise.
2476 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
2477 Use _Alloc_traits::is_always_equal.
2478 (deque::operator=(deque&&)): Likewise.
2479 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
2481 (swap(deque&, deque&)): Add noexcept.
2482 * include/bits/stl_list.h (list::operator=(list&&)): Use
2484 (swap(list&, list&)): Add noexcept.
2485 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
2487 (swap(map&, map&)): Add noexcept.
2488 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
2489 _Compare in noexcept.
2490 (swap(multimap&, multimap&)): Add noexcept.
2491 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
2492 _Compare in noexcept.
2493 (swap(multiset&, multiset&)): Add noexcept.
2494 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
2496 (swap(set&, set&)): Add noexcept.
2497 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
2498 _Compare in noexcept.
2499 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
2501 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
2503 (swap(vector&, vector&)): Add noexcept.
2504 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
2505 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
2506 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
2507 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
2508 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
2510 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
2511 __allocator_always_compares_equal.
2512 * include/ext/array_allocator.h (array_allocator::is_always_equal):
2514 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
2515 __propagate_on_move, __propagate_on_swap): Remove.
2516 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
2517 scoped_allocator_adaptor::propagate_on_container_move_assignment,
2518 scoped_allocator_adaptor::propagate_on_container_swap): Define with
2519 __and_ instead of __any_of.
2520 (scoped_allocator_adaptor::is_always_equal): Define.
2521 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
2522 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
2523 derive from true_type or false_type.
2524 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
2525 is_always_equal member and remove the trait specialization.
2526 * testsuite/23_containers/vector/52591.cc: Likewise.
2527 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2528 Adjust dg-error line number.
2529 * testsuite/23_containers/deque/requirements/dr438/
2530 constructor_1_neg.cc: Likewise.
2531 * testsuite/23_containers/deque/requirements/dr438/
2532 constructor_2_neg.cc: Likewise.
2533 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2535 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2537 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2539 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2541 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2543 * testsuite/23_containers/vector/requirements/dr438/
2544 constructor_1_neg.cc: Likewise.
2545 * testsuite/23_containers/vector/requirements/dr438/
2546 constructor_2_neg.cc: Likewise.
2547 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2550 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
2551 * include/bits/stl_map.h (map::map()): Likewise.
2552 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
2553 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
2554 * include/bits/stl_set.h (set::set()): Likewise.
2556 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
2558 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
2560 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
2562 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
2564 (basic_string<>::back()): Likewise.
2565 (basic_string<>::pop_back()): Likewise.
2567 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
2569 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
2570 dg-error line numbers.
2571 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2574 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
2576 * include/debug/array: Include <array>. Add version namespace when
2577 specializing tuple interface to array. Add specialization for
2578 __is_tuple_like_impl.
2579 * include/profile/array: Likewise.
2580 * include/std/array: Include <utility>. Add specialization for
2581 __is_tuple_like_impl.
2583 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
2584 * include/std/utility: ... here. Include <type_traits>.
2585 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
2586 dg-error line number.
2587 * testsuite/23_containers/array/tuple_interface/
2588 tuple_element_debug_neg.cc: Likewise.
2590 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
2592 * testsuite/26_numerics/complex/value_operations/1.cc: Use
2593 non-negative rho argument.
2595 * include/debug/list (__gnu_debug::list): Use allocator-aware
2596 _Safe_container base.
2597 * include/debug/string (__gnu_debug::basic_string): Use
2598 allocator-aware _Safe_container base for cxx11 ABI.
2600 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
2601 (wstring_convert): Move into __cxx11 namespace.
2602 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
2606 * include/bits/stl_uninitialized.h
2607 (__uninitialized_copy::__uninit_copy): Cast expression to void.
2609 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
2612 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
2613 (list::list(const list&)): Use allocator propagation trait. Use
2614 _M_assign_dispatch to copy elements.
2615 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
2616 (_List_node::_M_valptr()): Add accessor for stored value.
2617 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
2618 (_List_base, list): Use allocator traits.
2619 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
2620 (_List_base::_M_move_nodes): New function.
2621 (_List_base(_List_base&&)): Use _M_move_nodes.
2622 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
2623 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
2625 (list(size_type)): Add allocator parameter.
2626 (list(const list&)): Use allocator propagation trait.
2627 (list(const list&, const allocator_type&)): New constructor.
2628 (list(list&&, const allocator_type&)): Likewise.
2629 (list::operator=(list&&), list::swap(list&)): Use allocator
2631 (list::_M_move_assign): New functions.
2632 * include/debug/list: Add allocator-extended constructors.
2633 * include/profile/list: Likewise.
2634 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
2635 function to get value from _List_node.
2636 (StdListPrinter): Use get_value_from_list_node.
2637 * testsuite/23_containers/list/allocator/copy.cc: New.
2638 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
2639 * testsuite/23_containers/list/allocator/minimal.cc: New.
2640 * testsuite/23_containers/list/allocator/move.cc: New.
2641 * testsuite/23_containers/list/allocator/move_assign.cc: New.
2642 * testsuite/23_containers/list/allocator/noexcept.cc: New.
2643 * testsuite/23_containers/list/allocator/swap.cc: New.
2644 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2645 Adjust dg-prune-output line number.
2646 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2648 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2651 * include/bits/forward_list.h
2652 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
2654 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
2655 (forward_list(const _Alloc&)): Split default constructor out to
2657 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
2659 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
2660 swap call with two assignments.
2661 * include/bits/forward_list.tcc
2662 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
2663 move elements when allocators are not equal.
2664 * include/debug/forward_list (forward_list(const allocator_type&)):
2665 Split default constructor out to separate function.
2666 * include/profile/forward_list (forward_list(const _Alloc&)):
2669 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
2670 Remove unnecessary uses of operator& and static_cast.
2671 * include/bits/forward_list.tcc
2672 (forward_list::operator=(const forward_list&)): Use __addressof
2673 instead of operator&.
2674 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
2675 Remove invalid static_casts.
2676 * include/debug/forward_list: Use __addressof instead of operator&.
2677 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
2679 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
2680 __is_nothrow_swappable.
2682 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
2684 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
2686 * include/bits/list.tcc (list::operator=(const list&), list::merge):
2687 Use __addressof instead of operator&.
2688 (list::sort): Use array-to-pointer decay instead of operator&.
2689 * include/bits/stl_list.h (list::splice): Use __addressof instead of
2691 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
2693 * include/debug/functions.h (__check_singular): Likewise.
2694 * include/debug/list (list::splice, list::merge): Likewise.
2695 * testsuite/23_containers/list/modifiers/addressof.cc: New.
2698 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
2701 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
2703 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
2706 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
2709 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2713 * config/cpu/alpha/atomic_word.h: Remove.
2714 * config/cpu/ia64/atomic_word.h: Remove.
2715 * config/cpu/powerpc/atomic_word.h: Remove.
2716 * config/os/aix/atomic_word.h: Remove.
2717 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
2718 Use generic definition.
2720 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2724 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
2725 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
2726 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
2727 * include/ext/atomicity.h: Likewise.
2728 * include/tr1/shared_ptr.h: Likewise.
2729 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
2731 (__set_and_release): Likewise.
2732 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
2734 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
2735 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
2738 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
2740 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
2741 debug and profile modes.
2742 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
2743 for swap in C++11 and later.
2745 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
2748 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
2751 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
2754 * testsuite/22_locale/conversions/string/66441.cc: New.
2755 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
2756 in the output string for BOM and complete result.
2759 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
2760 for single UTF-16 units.
2761 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
2763 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
2765 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
2766 outer scope and rename to ...
2767 (std::__hash_is_transparent<>): ... this.
2768 * include/debug/stl_map.h (map::find<>,
2769 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
2770 member function templates to perform heterogeneous lookup.
2771 * include/debug/stl_multimap.h (multimap::find<>,
2772 multimap::lower_bound<>, multimap::upper_bound<>,
2773 multimap::equal_range<>): Likewise.
2774 * include/debug/stl_multiset.h (multiset::find<>,
2775 multiset::lower_bound<>, multiset::upper_bound<>,
2776 multiset::equal_range<>): Likewise.
2777 * include/debug/stl_set.h (set::find<>,
2778 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2779 * include/profile/stl_map.h (map::find<>, map::count<>,
2780 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
2781 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
2782 multimap::lower_bound<>, multimap::upper_bound<>,
2783 multimap::equal_range<>): Likewise.
2784 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
2785 multiset::lower_bound<>, multiset::upper_bound<>,
2786 multiset::equal_range<>): Likewise.
2787 * include/profile/stl_set.h (set::find<>, set::count<>,
2788 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2789 * testsuite/23_containers/map/operations/1.cc: Check const variants.
2790 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
2791 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
2792 * testsuite/23_containers/set/operations/1.cc: Likewise.
2794 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
2796 * doc/xml/manual/status_cxx2017.xml: Update status tables.
2797 * doc/html/manual/*: Regenerate.
2798 * include/std/type_traits (bool_constant): Define.
2799 * testsuite/20_util/bool_constant/requirements.cc: New.
2800 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
2801 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2803 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2806 * include/std/shared_mutex (__shared_mutex_pthread,
2807 __shared_mutex_cv): New helper types implementing the shared mutex
2809 (shared_mutex): New type for C++17.
2810 (shared_timed_mutex): Derive from one of the new helper types.
2811 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
2812 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
2813 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
2814 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
2816 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
2817 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
2819 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
2821 Add __is_nothrow_swappable and take it into use.
2822 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
2823 * include/bits/move.h (swap): Add constraints in C++11 and later.
2824 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
2825 for the free swap function for pair.
2826 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
2827 for the free swap functions for queue and priority_queue.
2828 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
2829 for the free swap function for stack.
2830 * include/debug/array (swap): Use __is_nothrow_swappable
2831 for the free swap function for array.
2832 * include/profile/array (swap): Likewise.
2833 * include/std/array (swap): Likewise.
2834 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
2835 * include/std/type_traits (__is_swappable_impl::__is_swappable,
2836 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
2837 * testsuite/20_util/is_nothrow_swappable/requirements/
2838 explicit_instantiation.cc: New.
2839 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
2841 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
2843 2015-06-03 François Dumont fdumont@gcc.gnu.org>
2845 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
2847 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
2849 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
2850 * doc/html/manual/*: Regenerate.
2852 * doc/html/ext/lwg-active.html: Update to R93.
2853 * doc/html/ext/lwg-closed.html: Likewise.
2854 * doc/html/ext/lwg-defects.html: Likewise.
2855 * doc/html/manual/*: Regenerate.
2856 * doc/xml/manual/intro.xml: Document status of several DRs.
2858 2015-06-02 Renlin Li <renlin.li@arm.com>
2860 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
2862 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
2864 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
2865 environment variable.
2867 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
2870 * include/bits/stl_algobase.h (__fill_a): Check length before calling
2873 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
2875 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
2876 instead of checking for null pointers.
2877 (__lexicographical_compare<true>::__lc): Only check shorter length.
2879 2015-05-29 François Dumont fdumont@gcc.gnu.org>
2881 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
2882 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
2883 * include/debug/assertions.h: ...here, new.
2884 * include/debug/formatter.h
2885 (_Error_formatter::_Is_iterator_value_type): New.
2886 (_Error_formatter::_Is_instance): New.
2887 (_Error_formatter::_Parameter): Make public and not friend anymore.
2888 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
2889 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
2891 (_Error_formatter::_Parameter::_Type): New.
2892 (_Error_formatter::_Parameter::_Instance): New, inherit from
2894 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
2895 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
2896 overloads take iterator through a const reference.
2897 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
2899 (_Parameter(const _Type&, const char*, _Is_instance)): New.
2900 (_Error_formatter::_M_print_type): Delete.
2901 (_Error_formatter::_M_iterator_value_type): New.
2902 (_Error_formatter::_M_instance): New.
2903 * include/Makefile.am: Add new above debug file.
2904 * include/Makefile.in: Regenerate.
2905 * include/debug/functions.h
2906 (__check_dereferenceable(const _Safe_iterator<>&),
2907 __valid_range(const _Safe_iterator<>&),
2908 __is_safe_random_iterator<_Safe_iterator<>>): Move...
2909 * include/debug/safe_iterator.h: ... here.
2910 Replace debug.h include with assertions.h.
2911 (__check_singular_aux): Move...
2912 * include/debug/safe_base.h: ... here.
2913 * include/debug/functions.h
2914 (__check_dereferenceable(const _Safe_local_iterator<>&),
2915 __valid_range(const _Safe_local_iterator<>&): Move...
2916 * include/debug/safe_local_iterator.h: ...here.
2917 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
2918 Remove _Safe_iterator declaration.
2919 * include/debug/safe_unordered_container.h: Replace debug.h with
2921 * include/debug/array: Replace safe_sequence.h include with
2922 formatter.h and macros.h.
2923 * include/debug/deque: Include functions.tcc.
2924 * include/debug/forward_list: Likewise.
2925 * include/debug/list: Likewise.
2926 * include/debug/string: Likewise.
2927 * include/debug/vector: Likewise.
2928 * include/bits/unique_ptr.h: Replace debug.h include with new
2930 * include/bits/stl_iterator_base_funcs.h: Likewise.
2931 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
2932 Adjust dg-error line number.
2933 * testsuite/23_containers/array/tuple_interface/
2934 tuple_element_debug_neg.cc: Likewise.
2935 * src/c++11/debug.cc: Adapt.
2937 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
2939 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
2940 * doc/html/manual/*: Regenerate.
2942 * include/std/future (__async_result_of): New alias template.
2943 (async): Use __async_result_of to pass decayed types to result_of.
2944 * testsuite/30_threads/async/lwg2021.cc: New.
2945 * doc/xml/manual/intro.xml: Document LWG 2021 status.
2948 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
2949 memcmp with null pointers.
2950 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
2953 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
2956 * include/profile/array (array::data): Use _S_ptr.
2957 * include/debug/array (array::data): Likewise.
2960 * include/std/array (__array_traits::_S_ptr): New function.
2961 (array::data): Use _S_ptr to avoid creating invalid reference.
2962 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
2963 dg-error line numbers.
2964 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2967 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
2969 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
2970 instead of downcasting.
2971 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
2972 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
2973 (_Rb_tree::_S_iter): Remove.
2974 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
2975 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
2976 instead of _S_lower_bound_tr
2977 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
2978 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
2979 instead of calling _S_lower_bound_tr.
2980 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
2981 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
2982 instead of calling _S_upper_bound_tr.
2983 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
2984 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
2985 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
2986 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
2987 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
2988 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
2989 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
2990 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
2993 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
2994 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
2996 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
2997 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
2998 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
2999 alignment of _Tp as a member subobject, not as a complete object.
3000 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
3001 _Link_type manually as it might not be in the debug info.
3003 2015-05-26 Doug Evans <dje@google.com>
3005 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
3007 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
3010 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
3012 * include/bits/locale_conv.h: Fix copyright years.
3013 * include/bits/quoted_string.h: Likewise.
3014 * src/filesystem/Makefile.am: Likewise.
3015 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
3016 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
3018 * testsuite/22_locale/conversions/string/1.cc: Likewise.
3019 * testsuite/22_locale/conversions/string/2.cc: Likewise.
3020 * testsuite/22_locale/conversions/string/3.cc: Likewise.
3021 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
3023 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
3025 * testsuite/util/testsuite_fs.h: Likewise.
3027 2015-05-23 François Dumont fdumont@gcc.gnu.org>
3030 * include/debug/functions.h (__check_sorted_aux): Cast expression to
3033 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
3036 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
3037 Don't use isync. Use lwsync if available.
3038 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
3039 powerpc cpu definition.
3041 2015-05-21 Jason Merrill <jason@redhat.com>
3043 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
3044 * libsupc++/del_op.cc: Likewise.
3046 2015-05-20 François Dumont fdumont@gcc.gnu.org>
3048 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
3050 (_Error_formatter::_M_print_type): New.
3051 * src/c++11/debug.cc
3052 (_Error_formatter::_Parameter::_M_print_field): Use latter.
3053 (_Error_formatter::_M_print_type): Implement latter using
3054 __cxaabiv1::__cxa_demangle to print demangled type name.
3056 * include/bits/cpp_type_traits.h
3057 (std::move_iterator): Delete declaration.
3058 (std::__is_move_iterator<move_iterator>): Move partial specialization...
3059 * include/bits/stl_iterator.h: ... here.
3060 (std::__miter_base): Overloads for std::reverse_iterator and
3062 * include/bits/stl_algobase.h (std::__miter_base): Provide default
3065 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
3067 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
3070 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
3071 overload for pointers.
3072 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
3073 808590.cc: Add -std=gnu++03 switch.
3074 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
3075 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
3076 * testsuite/23_containers/vector/modifiers/push_back/
3077 strong_guarantee.cc: New.
3079 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
3081 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
3082 (operator==(const list&, const list&)): If size() is O(1) compare
3083 sizes before comparing each element.
3084 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
3085 (list::resize): Use _M_resize_pos.
3087 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
3089 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
3091 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
3092 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
3093 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
3095 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3097 * configure.host: Define cpu_defines_dir for ARM.
3098 * config/cpu/arm/cpu_defines.h: New file.
3100 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
3102 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
3103 missing constructors.
3104 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
3106 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
3107 missing constructors.
3108 * include/debug/unordered_set (unordered_set, unordered_multiset):
3110 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
3111 missing constructors.
3112 * include/profile/unordered_set (unordered_set, unordered_multiset):
3115 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
3117 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
3118 use throughout the file.
3119 (make_file_type): New function.
3120 (file_size(const path&, error_code&)): Report an error for anything
3121 that isn't a regular file.
3122 (status(const path&), symlink_status(const path&)): Do not throw for
3123 file_type::not_found.
3124 (temp_directory_path()): Check additional environment variables.
3125 * testsuite/experimental/filesystem/operations/exists.cc: New.
3126 * testsuite/experimental/filesystem/operations/file_size.cc: New.
3127 * testsuite/experimental/filesystem/operations/status.cc: New.
3128 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
3131 2015-05-14 Nathan Myers <ncm@cantrip.org>
3132 Jonathan Wakely <jwakely@redhat.com>
3135 * include/std/unordered_map (unordered_map, unordered_multimap): Add
3136 missing constructors.
3137 * include/std/unordered_set (unordered_set, unordered_multiset):
3139 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
3140 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
3141 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
3142 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
3144 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
3147 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
3149 * config.h.in: Regenerate.
3150 * configure: Regenerate.
3151 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
3152 not return after copying contents. Use fchmod, fchmodat, and sendfile
3154 (current_path, permissions, space): Use errno not return value.
3157 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
3159 * config.h.in: Regenerate.
3160 * configure: Regenerate.
3161 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
3163 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
3165 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
3166 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
3167 * config.h.in: Regenerate.
3168 * configure: Likewise.
3169 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
3170 __USING_SJLJ_EXCEPTIONS__.
3171 * libsupc++/eh_throw.cc: Likewise.
3172 * libsupc++/eh_ptr.cc: Likewise.
3173 * doc/html/manual/appendix_porting.html: Remove
3174 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
3175 * doc/xml/manual/build_hacking.xml: Likewise.
3176 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
3177 * doc/xml/manual/configure.xml: Likewise.
3179 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
3181 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
3182 for nullptr (LWG 2415).
3183 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
3184 construction from empty unique_ptr.
3185 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
3186 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
3188 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
3190 * testsuite/20_util/raw_storage_iterator/base.cc: New.
3192 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
3193 Remove explicit (LWG 2407).
3195 * include/bits/basic_string.h (basic_string::basic_string()): Make
3196 noexcept conditional on allocator (LWG 2455).
3198 * include/std/complex (polar): Check for negative rho (LWG 2459).
3200 * include/experimental/tuple (apply): Handle pointers to member (LWG
3202 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
3203 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
3204 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
3206 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
3208 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
3209 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
3210 * testsuite/23_containers/forward_list/allocator/minimal.cc:
3212 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
3213 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
3214 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
3215 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
3216 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
3218 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
3220 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
3222 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
3224 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
3226 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
3227 * configure: Regenerate.
3229 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
3231 * Makefile.in: Regenerated with automake-1.11.6.
3232 * aclocal.m4: Likewise.
3233 * configure: Likewise.
3234 * doc/Makefile.in: Likewise.
3235 * include/Makefile.in: Likewise.
3236 * libsupc++/Makefile.in: Likewise.
3237 * po/Makefile.in: Likewise.
3238 * python/Makefile.in: Likewise.
3239 * src/Makefile.in: Likewise.
3240 * src/c++11/Makefile.in: Likewise.
3241 * src/c++98/Makefile.in: Likewise.
3242 * src/filesystem/Makefile.in: Likewise.
3243 * testsuite/Makefile.in: Likewise.
3245 2015-05-09 Jason Merrill <jason@redhat.com>
3247 * testsuite/20_util/headers/functional/synopsis.cc: Add
3248 _GLIBCXX14_CONSTEXPR.
3249 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
3251 2015-05-08 Jason Merrill <jason@redhat.com>
3253 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
3254 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
3255 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
3256 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
3257 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
3258 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
3259 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
3260 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
3261 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
3262 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
3263 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
3265 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
3266 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
3267 Adjust expected errors.
3268 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
3270 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
3272 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
3274 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3276 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
3278 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
3280 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
3282 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3284 * testsuite/23_containers/vector/requirements/dr438
3285 /constructor_1_neg.cc: Likewise.
3286 * testsuite/23_containers/vector/requirements/dr438
3287 /constructor_2_neg.cc: Likewise.
3288 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3290 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
3291 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
3292 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
3293 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
3294 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
3295 Add -Wno-deprecated.
3296 * testsuite/ext/array_allocator/check_deallocate_null.cc:
3297 Add -Wno-deprecated.
3298 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
3299 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
3300 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
3301 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
3303 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
3305 * testsuite/tr1/2_general_utilities/shared_ptr/assign
3306 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
3307 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
3308 Add -std=c++98 -fno-show-column.
3309 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
3311 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
3313 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
3314 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
3316 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
3317 * src/c++98/Makefile.in: Regenerate.
3318 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
3319 * src/Makefile.in: Regenerate.
3321 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
3324 * include/std/future (async): Change default policy to launch::async.
3326 * include/experimental/any (any::_Storage): Fix alignment of buffer.
3327 (any::_Internal): Check alignment of type.
3328 * testsuite/experimental/any/cons/aligned.cc: New.
3329 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3331 * include/experimental/iterator (ostream_joiner): Simplify by using
3332 the injected-class-name and the ostream_type typedef.
3334 * include/experimental/iterator: New. Define ostream_joiner.
3335 * include/Makefile.am: Add new header.
3336 * include/Makefile.in: Regenerate.
3337 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
3338 * testsuite/experimental/iterator/ostream_joiner.cc: New.
3339 * testsuite/experimental/iterator/requirements.cc: New.
3340 * doc/xml/manual/status_cxx2017.xml: Update status.
3341 * doc/html/manual/status.html: Regenerate.
3343 * include/experimental/numeric: New. Define gcd and lcm.
3344 * include/Makefile.am: Add new header.
3345 * include/Makefile.in: Regenerate.
3346 * testsuite/experimental/numeric/gcd.cc: New.
3347 * testsuite/experimental/numeric/lcm.cc: New.
3348 * doc/xml/manual/status_cxx2017.xml: Update status.
3349 * doc/html/manual/status.html: Regenerate.
3351 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
3353 Revert addition of feature macros from other headers per latest SD-6.
3354 * include/experimental/deque: Remove feature-test macro.
3355 * include/experimental/forward_list: Ditto.
3356 * include/experimental/list: Ditto.
3357 * include/experimental/map: Ditto.
3358 * include/experimental/set: Ditto.
3359 * include/experimental/string: Ditto.
3360 * include/experimental/unordered_map: Ditto.
3361 * include/experimental/unordered_set: Ditto.
3363 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
3365 * include/experimental/any (any::_Storage): Make non-copyable.
3366 (any::any): Do not copy _Storage object.
3367 (any::operator=): Implement more efficiently than swapping.
3368 (any::swap): Use new _Op_xfer operation.
3369 (any::_Op::_Op_xfer): New enumerator.
3370 (_Manager_internal::_S_alloc): Remove unused function.
3371 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
3372 parameter instead of returning a _Storage object.
3373 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
3374 _Op_xfer operation for moving and swapping.
3375 * testsuite/experimental/any/cons/nontrivial.cc: New.
3376 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3378 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
3380 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
3384 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
3385 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
3386 and fix tests for forward_as_tuple and tie.
3388 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
3389 Set timespec members explicitly instead of with a braced-init-list.
3390 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
3392 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
3394 * include/experimental/deque: Add feature-test macro.
3395 * include/experimental/forward_list: Ditto.
3396 * include/experimental/list: Ditto.
3397 * include/experimental/map: Ditto.
3398 * include/experimental/set: Ditto.
3399 * include/experimental/string: Ditto.
3400 * include/experimental/unordered_map: Ditto.
3401 * include/experimental/unordered_set: Ditto.
3403 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3405 * include/experimental/memory: Correct feature-test macro.
3407 * include/experimental/memory: Add feature-test macro.
3408 * include/experimental/vector: Likewise.
3409 * doc/xml/manual/status_cxx2017.xml: Update status.
3410 * doc/html/manual/status.html: Regenerate.
3412 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
3414 Implement observer_ptr.
3415 * include/Makefile.am: Add new header.
3416 * include/Makefile.in: Regenerate.
3417 * include/experimental/memory: New.
3418 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
3419 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
3420 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
3421 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
3422 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
3423 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
3424 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
3425 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
3427 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3429 * src/filesystem/path.cc (path::compare): Do not copy strings.
3431 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
3433 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
3434 * configure: Regenerate.
3435 * config.h.in: Regenerate.
3436 * configure.ac: Check for utime.h
3437 * include/experimental/fs_path.h (path::string<>)
3438 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
3439 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
3440 closedir, dirent, readdir_r): Replace dummy functions with #error.
3441 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
3442 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
3443 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
3444 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
3445 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
3448 * include/experimental/fs_path.h (path::_List): Use vector instead of
3450 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
3451 * src/filesystem/path.cc: Use std::prev instead of decrementing
3452 rvalues. Fix whitespace.
3453 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
3454 Do not decrement iterators before begin.
3456 * include/experimental/fs_dir.h: Fix use of non-reserved names.
3457 * include/experimental/fs_ops.h: Likewise.
3458 * include/experimental/fs_path.h: Likewise.
3459 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
3460 C++11 when checking for support.
3462 * include/bits/locale_classes.h (locale::facet): Delete copy
3463 operations in C++11 mode.
3465 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
3467 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
3468 * configure: Regenerate.
3470 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3472 Inline one-line erasure dispatch functions.
3473 * include/experimental/forward_list (erase_if(), erase()): Inline.
3474 * include/experimental/list (erase_if(), erase()): Inline.
3475 * include/experimental/map (erase_if(*)): Inline.
3476 * include/experimental/set (erase_if(*)): Inline.
3477 * include/experimental/string (erase_if(), erase()): Inline.
3478 * include/experimental/unordered_map (erase_if(*)): Inline.
3479 * include/experimental/unordered_set (erase_if(*)): Inline.
3481 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3483 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
3484 * doc/xml/manual/status_cxx2011.xml: Update status tables.
3485 * doc/xml/manual/status_cxx2014.xml: Likewise.
3486 * doc/xml/manual/status_cxx2017.xml: New.
3487 * doc/xml/manual/using.xml: Fix typo.
3488 * doc/html/*: Regenerate.
3490 * include/std/memory (pointer_safety, declare_reachable,
3491 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
3492 get_pointer_safety): Define.
3493 * testsuite/20_util/pointer_safety/1.cc: New.
3495 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
3497 Implement N4100 File System TS
3498 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
3499 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
3500 * config.h.in: Regenerate.
3501 * configure: Regenerate.
3502 * configure.ac: Enable filesystem TS and check its dependencies.
3503 * include/Makefile.am: Add new headers.
3504 * include/Makefile.in: Regenerate.
3505 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
3506 __str_codecvt_out): Move code conversion logic from wstring_convert
3507 into new global functions.
3508 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
3510 (wstring_convert::_M_conv): Remove.
3511 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
3512 * include/experimental/filesystem: New.
3513 * include/experimental/fs_dir.h: New.
3514 * include/experimental/fs_fwd.h: New.
3515 * include/experimental/fs_ops.h: New.
3516 * include/experimental/fs_path.h: New.
3517 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
3518 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
3519 * src/Makefile.am (SUBDIRS): Add filesystem.
3520 * src/Makefile.in: Regenerate.
3521 * src/filesystem/Makefile.am: New.
3522 * src/filesystem/Makefile.in: New.
3523 * src/filesystem/dir.cc: New.
3524 * src/filesystem/ops.cc: New.
3525 * src/filesystem/path.cc: New.
3526 * testsuite/experimental/filesystem/operations/absolute.cc: New.
3527 * testsuite/experimental/filesystem/operations/copy.cc: New.
3528 * testsuite/experimental/filesystem/operations/current_path.cc: New.
3529 * testsuite/experimental/filesystem/path/append/path.cc: New.
3530 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
3531 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
3532 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
3533 * testsuite/experimental/filesystem/path/compare/path.cc: New.
3534 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
3535 * testsuite/experimental/filesystem/path/concat/path.cc: New.
3536 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
3537 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
3538 * testsuite/experimental/filesystem/path/construct/default.cc: New.
3539 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
3540 * testsuite/experimental/filesystem/path/construct/range.cc: New.
3541 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
3542 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
3543 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
3545 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
3547 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
3549 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
3551 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
3553 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
3554 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
3556 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
3557 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
3558 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
3560 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
3562 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
3564 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
3566 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
3567 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
3568 * testsuite/experimental/filesystem/path/query/empty.cc: New.
3569 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
3570 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
3571 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
3573 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
3575 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
3577 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
3579 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
3581 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
3582 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
3583 * testsuite/util/testsuite_fs.h: New.
3585 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3587 Add fundamentals TR container erasure.
3588 * include/Makefile.am: Add new headers.
3589 * include/Makefile.in: Add new headers.
3590 * include/experimental/array: New.
3591 * include/experimental/deque: New.
3592 * include/experimental/erase_if.tcc: New.
3593 * include/experimental/forward_list: New.
3594 * include/experimental/list: New.
3595 * include/experimental/map: New.
3596 * include/experimental/set: New.
3597 * include/experimental/string: New.
3598 * include/experimental/unordered_map: New.
3599 * include/experimental/unordered_set: New.
3600 * include/experimental/vector: New.
3601 * testsuite/experimental/deque/erasure.cc: New.
3602 * testsuite/experimental/forward_list/erasure.cc: New.
3603 * testsuite/experimental/list/erasure.cc: New.
3604 * testsuite/experimental/map/erasure.cc: New.
3605 * testsuite/experimental/set/erasure.cc: New.
3606 * testsuite/experimental/string/erasure.cc: New.
3607 * testsuite/experimental/unordered_map/erasure.cc: New.
3608 * testsuite/experimental/unordered_set/erasure.cc: New.
3609 * testsuite/experimental/vector/erasure.cc: New.
3611 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
3613 * include/bits/cpp_type_traits.h
3614 (__gnu_cxx::__is_normal_iterator): Delete.
3615 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
3616 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
3617 (std::__niter_base): Overloads for std::reverse_iterator,
3618 __gnu_cxx::__normal_iterator and std::move_iterator.
3620 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
3622 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
3624 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
3625 Remove usage of latter and compute size of the prime numbers array
3628 2015-04-29 Doug Evans <dje@google.com>
3631 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
3632 Replace all lookups of "bool" with this.
3633 (get_std_size_type): New function. Replace all lookups of std::size_t
3635 (*Worker): New method get_result_type.
3636 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
3637 (ListWorkerBase.__init__): New arg val_type. All callers updated.
3638 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
3639 Delete setting of name, enabled.
3640 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
3641 updated. Delete setting of name.
3642 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
3643 libstdc++ xmethod matchers.
3644 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
3645 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
3646 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
3647 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
3648 * testsuite/libstdc++-xmethods/list.cc: Ditto.
3649 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
3650 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
3652 2015-04-29 Doug Evans <dje@google.com>
3654 Use consistent naming for value type attributes.
3655 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
3657 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
3658 (ArrayFrontWorker, ArrayBackWorker): Ditto.
3659 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
3660 (DequeWorkerBase): Rename elemtype to val_type.
3661 (ForwardListWorkerBase): Rename _elem_type to _val_type.
3662 (ForwardListFrontWorker): Ditto. And rename elem_address to
3664 (ForwardListMethodsMatcher): Rename elem_type to val_type.
3665 (VectorWorkerBase): Rename _elemtype to _val_type.
3667 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
3670 * include/std/functional (__check_func_return_type): Use is_same to
3671 avoid using _is_convertible on incomplete types.
3672 * testsuite/20_util/function/65760.cc: New.
3675 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
3677 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
3678 time_get::_M_extract_num, time_get::_M_extract_name,
3679 time_get::_M_extract_wday_or_month): Likewise.
3680 * include/bits/stl_algo.h (__includes, __replace_copy_if,
3681 __is_sorted_until, __is_permutation, transform): Likewise.
3682 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
3683 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
3684 * include/bits/stl_numeric.h (inner_product): Likewise.
3685 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
3686 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
3687 input_iterator_wrapper): Declare unusable comma operator.
3688 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
3689 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
3692 2015-04-28 Doug Evans <dje@google.com>
3694 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
3697 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3699 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
3702 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3704 * Makefile.am (SUBDIRS): Move python to hosted_source.
3705 * Makefile.in: Regenerate.
3706 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
3707 * configure: Regenerate.
3709 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
3712 * include/std/limits (numeric_limits): Add missing unsigned.
3714 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
3716 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
3718 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3721 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
3722 Handle enumeration types larger than sizeof(long).
3723 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
3725 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
3726 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3728 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
3729 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
3731 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
3734 * include/bits/forward_list.h (forward_list::splice_after): Add
3736 * include/bits/forward_list.tcc (forward_list::splice_after):
3740 * include/bits/random.h (seed_seq) Define copy constructor and copy
3741 assignment as deleted.
3742 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
3744 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
3745 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
3746 Use -std=gnu++1z. Check feature-test macro.
3748 * include/std/type_traits (void_t): Add.
3749 * testsuite/20_util/void_t/1.cc: New.
3751 2015-04-28 Tim Shen <timshen@google.com>
3753 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
3754 * include/bits/regex_automaton.tcc: Throw exception when parsing
3755 back-reference with flag __polynomial.
3756 * include/bits/regex_constants.h: Add extension flag
3757 syntax_option_type __polynomial.
3758 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
3759 Alternative operation will be fixed in the coming refactoring.
3760 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
3761 loose match_search_debug to use DFS only.
3763 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
3766 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
3767 Make the generated test program fail gracefully if the target
3768 doesn't support passing command-line arguments.
3770 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
3771 Jonathan Wakely <jwakely@redhat.com>
3773 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
3774 Return false or zero if the library is built without exceptions.
3775 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
3776 the library is built without exceptions.
3778 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
3780 * config/abi/pre/gnu.ver: Fix comment.
3782 Add support for std::uncaught_exceptions.
3783 * acinclude.m4: Bump libtool_VERSION.
3784 * config/abi/pre/gnu.ver: Export the new symbol.
3785 * configure: Regenerate.
3786 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
3787 * libsupc++/exception (uncaught_exceptions): New.
3788 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
3789 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
3791 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
3792 Michael Hanselmann <public@hansmi.ch>
3795 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
3796 uncaught exceptions.
3797 * testsuite/18_support/exception_ptr/62258.cc: New.
3799 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
3801 * doc/xml/manual/extensions.xml: Add cross-reference.
3802 * doc/html/manual/ext_compile_checks.html: Regenerate.
3804 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3806 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
3807 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
3809 2015-04-22 Renlin Li <renlin.li@arm.com>
3811 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
3812 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
3813 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
3814 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
3815 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
3817 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
3819 * doc/xml/manual/configure.xml: Update descriptions of options
3820 affecting dual ABI and add cross-references.
3821 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
3822 * doc/xml/manual/using.xml: Document ABI transition.
3823 * doc/html/*: Regenerate.
3825 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
3826 * doc/xml/manual/using.xml: Document newer -std options. Use better
3827 examples of nested namespaces.
3829 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
3831 * doc/xml/manual/concurrency_extensions.xml: Update documentation
3833 * doc/xml/manual/using.xml: Likewise. Improve markup.
3834 * doc/html/*: Regenerate.
3836 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3838 * scripts/extract_symvers.pl: Ignore elfdump error output.
3840 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
3843 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
3844 _List_const_iterator): Declare.
3845 (__distance): Declare new overloads for _List_iterator and
3846 _List_const_iterator.
3847 * include/bits/stl_list.h (__distance): New overloads for
3848 _List_iterator and _List_const_iterator.
3849 * testsuite/23_containers/list/61347.cc: New testcase.
3851 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
3853 * doc/xml/manual/evolution.xml: Fix typos.
3854 * doc/html/manual/api.html: Regenerate.
3856 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
3858 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
3859 alignment is larger-equal, not equal, to default alignment.
3861 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
3864 * config/abi/pre/gnu.ver: Export base object constructors for
3866 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3867 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3868 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
3869 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3870 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3871 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3872 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
3873 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3874 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
3875 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3876 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3877 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3878 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3879 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3880 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3881 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3882 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
3883 * testsuite/27_io/basic_fstream/cons/base.cc: New.
3885 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
3887 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
3888 * doc/html/*: Regenerate.
3890 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
3892 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3894 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
3896 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
3898 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3900 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
3902 * doc/xml/manual/test.xml: Improve documentation on running a subset
3904 * doc/html/manual/test.html: Regenerate.
3906 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3908 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
3909 for GCC 5.1 release.
3910 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
3913 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
3915 * include/std/shared_mutex (shared_timed_mutex): Add comments to
3916 explain the logic in the non-pthread_rwlock_t version.
3917 (_Mutex): Remove redundant type.
3918 (_M_n_readers): Rename to _S_max_readers.
3919 (_M_write_entered, _M_readers): New convenience functions.
3920 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
3921 functions. Use predicates with condition variables. Simplify bitwise
3923 (try_lock_for, try_shared_lock_for): Convert duration to time_point
3924 and call try_lock_until or try_shared_lock_until respectively.
3925 (try_lock_until, try_shared_lock_until): Wait on the condition
3926 variables until the specified time passes.
3927 (unlock): Add Debug Mode assertion.
3928 (unlock_shared): Add Debug Mode assertion.
3929 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
3931 * include/std/shared_mutex (shared_timed_mutex): Only use
3932 pthread_rwlock_t when the POSIX Timeouts option is supported.
3933 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
3934 dg-require-gthreads-timed.
3935 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
3936 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
3937 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
3939 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
3941 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
3943 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
3944 Richard Henderson <rth@redhat.com>
3947 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
3949 * include/std/atomic (atomic): For types with a power of two size set
3950 alignment to at least the size.
3951 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
3952 * testsuite/29_atomics/atomic/65147.cc: New.
3953 * testsuite/29_atomics/atomic_integral/65147.cc: New.
3955 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3957 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3958 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3959 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3961 2015-04-07 Jakub Jelinek <jakub@redhat.com>
3963 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3964 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3965 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3966 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3967 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3968 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3969 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3970 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3972 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
3975 * config/abi/pre/gnu.ver: Export operator+ for new strings.
3976 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
3977 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
3979 2015-03-28 Tim Shen <timshen@google.com>
3982 * include/bits/regex_constants.h: Use constexpr variables for flags.
3983 * testsuite/28_regex/constants/constexpr.cc: New testcase.
3985 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
3988 * include/std/chrono: Add using-directive for literals to std::chrono.
3989 * testsuite/20_util/duration/literals/65499.cc: New.
3991 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
3995 * include/std/thread (this_thread::sleep_for): Check for negative
3997 (this_thread::sleep_until): Check for times in the past.
3998 * testsuite/30_threads/this_thread/58038.cc: New.
3999 * testsuite/30_threads/this_thread/60421.cc: New.
4001 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
4005 * include/std/atomic (atomic<T>): Increase alignment for types with
4006 the same size as one of the integral types.
4007 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
4008 * testsuite/29_atomics/atomic/62259.cc: New.
4010 2015-03-26 Richard Henderson <rth@redhat.com>
4013 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
4014 a fake pointer indicating type alignment.
4015 (__atomic_base<T *>::is_lock_free): Likewise.
4016 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
4018 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
4021 * testsuite/21_strings/basic_string/pthread33394.cc: Use
4022 dg-additional-options.
4024 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
4027 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
4029 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
4031 * testsuite/27_io/rvalue_streams-2.cc: New.
4033 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
4036 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
4038 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
4041 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
4042 * configure: Regenerate.
4043 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
4044 system_category): Use macros for versioned namespace.
4045 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
4047 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
4049 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
4050 test for unused for ARM.
4051 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
4052 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
4054 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
4056 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
4057 * include/ext/codecvt_specializations.h (encoding_state,
4058 encoding_char_traits): Remove abi-tag and use inline namespace.
4059 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
4061 2015-03-19 Jason Merrill <jason@redhat.com>
4063 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
4064 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
4066 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4069 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
4070 get_catalogs): Add abi-tag.
4071 * include/ext/codecvt_specializations.h (encoding_state,
4072 encoding_char_traits): Likewise.
4073 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
4074 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
4075 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
4076 money_get_shim, money_put_shim, messages_shim): Likewise.
4077 * src/c++11/future.cc (future_error_category::message): Likewise.
4078 * src/c++11/system_error.cc (generic_error_category::message,
4079 system_error_category::message): Likewise.
4080 (__sso_string): Disable -Wabi-tag warnings.
4082 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4085 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
4086 implementation for old glibc. Fix whitespace.
4088 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4089 Torvald Riegel <triegel@redhat.com>
4091 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
4092 * config.h.in: Regenerate.
4093 * configure: Regenerate.
4094 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
4095 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
4096 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
4097 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
4100 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
4102 * libsupc++/nested_exception.h: Do not try to derive from final
4104 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
4107 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
4108 unused exception variable.
4109 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
4110 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
4112 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
4114 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
4116 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
4117 * configure: Regenerate.
4119 * include/experimental/system_error: Fix include guard.
4121 2015-03-12 Renlin Li <renlin.li@arm.com>
4123 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
4126 2015-03-10 Tim Shen <timshen@google.com>
4129 * include/bits/regex.h (match_results<>::size,
4130 match_results<>::position, match_results<>::str,
4131 match_results<>::operator[], match_results<>::prefix,
4132 match_results<>::suffix, match_results<>::end,
4133 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
4134 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
4135 global __unmatched_sub. Add unmatched submatch as part of
4137 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
4138 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
4139 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
4142 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
4145 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
4146 for newlib targets. Really fix mixed line-endings this time.
4148 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
4150 * include/std/future (future_error(error_code)): Construct base
4151 class with error_code's message.
4152 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
4155 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
4157 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
4159 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
4160 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
4162 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
4165 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
4166 incomplete multibyte sequences correctly.
4167 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
4168 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
4169 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
4171 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
4172 Define convenience functions.
4173 (read_utf8_code_point): Return relevant constant to distinguish
4174 incomplete characters from invalid sequences.
4175 (read_utf16_code_point): Likewise. Check for invalid sequences.
4176 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
4177 (utf16_out): Check for invalid sequences.
4178 (utf16_span): Fix condition.
4179 (ucs2_out): Use is_high_surrogate.
4180 (ucs2_in): Use incomplete_mb_character constant and fix condition.
4181 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
4182 * testsuite/22_locale/conversions/buffer/1.cc: New.
4183 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
4184 char32_t instead of wchar_t.
4185 * testsuite/22_locale/conversions/string/3.cc: New.
4187 2015-03-03 Iain Sandoe <iain@codesourcery.com>
4190 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
4191 visibility for Darwin.
4192 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
4194 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
4196 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
4199 * include/std/scoped_allocator (__inner_type_impl,
4200 scoped_allocator_adaptor): Add defaulted copy assignment and move
4201 assignment operators.
4202 * testsuite/20_util/scoped_allocator/65279.cc: New.
4204 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
4207 * include/std/stdexcept (__sso_string): Don't use non-static member
4210 2015-02-28 Matthias Klose <doko@ubuntu.com>
4213 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
4215 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
4217 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
4218 * doc/html/manual/status.html: Regenerate.
4220 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
4223 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
4226 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
4228 * doc/html/manual/status.html: Regenerate.
4230 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
4233 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
4234 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
4236 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
4239 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
4240 (test01): Add explanatory comment. Keep only the bd1 sub-test and
4241 split out bd2, bd3, bd4, and bd5 sub-tests into...
4242 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
4243 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
4244 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
4245 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
4246 New separate files with the old parts.
4248 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
4250 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
4252 (utf16_in): Pass mode argument to write_utf16_code_point.
4253 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
4255 * testsuite/22_locale/codecvt/char16_t.cc: New.
4256 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
4258 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
4259 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
4261 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
4262 Jonathan Wakely <jwakely@redhat.com>
4264 * testsuite/22_locale/codecvt/char32_t.cc: New.
4266 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
4269 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
4270 empty string gets null-terminated.
4271 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
4273 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
4275 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
4276 mixed line-endings introduced in last change.
4278 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
4280 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
4281 for __NEWLIB__ macro with a dejagnu set macro.
4282 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
4284 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
4287 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
4288 special case for '\n'.
4289 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
4291 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
4293 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
4295 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
4298 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
4300 * include/c_std/cstdio (gets): Likewise.
4301 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
4302 with attributes used in darwin headers.
4304 2015-01-29 Jakub Jelinek <jakub@redhat.com>
4306 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
4307 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
4308 * configure: Regenerated.
4310 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
4312 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
4313 after vtv_cygmin is set.
4314 * configure: Regenerated.
4316 2015-01-29 Matthias Klose <doko@ubuntu.com>
4318 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
4320 * configure: Regenerate.
4322 2015-01-29 Caroline Tice <cmtice@google.com>
4324 Committing VTV Cywin/Ming patch for Patrick Wollgast
4325 * configure: Regenerate.
4326 * libsupc++/Makefile.in: Regenerate.
4327 * src/Makefile.in: Regenerate.
4329 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
4331 * include/bits/atomic_base.h: Use __always_inline__ instead of
4333 * include/bits/atomic_futex.h: Likewise.
4334 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
4335 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
4336 __packed__ instead of packed.
4337 * include/std/shared_mutex: Use __unused__ instead of unused.
4338 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
4339 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
4340 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
4342 2015-01-28 Caroline Tice <cmtice@google.com>
4344 Committing VTV Cywin/Ming patch for Patrick Wollgast
4345 * acinclude.m4: Define VTV_CYGMIN.
4346 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
4347 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
4348 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
4349 for Cygwin and MinGW.
4350 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
4351 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
4352 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
4354 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
4357 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
4358 * libsupc++/Makefile.in: Regenerate.
4359 * src/c++11/Makefile.in: Regenerate.
4361 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4363 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
4364 check for unsupported.
4365 (v3_target_compile_as_c): Likewise.
4367 2015-01-28 Richard Biener <rguenther@suse.de>
4370 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
4372 (pool::allocate): Adjust allocation size and alignment to
4374 (pool::free): Adjust pointer offsetting.
4376 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
4379 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
4380 shared_timed_mutex::try_lock_until): Only define when POSIX thread
4381 timeouts option is supported.
4382 (shared_timed_mutex::try_shared_lock_for,
4383 shared_timed_mutex::try_shared_lock_until): Likewise.
4385 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
4388 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
4389 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
4390 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
4391 and use cache's _M_grouping field.
4392 (__numpunct_fill_cache): Likewise.
4393 (__moneypunct_fill_cache): Improve comments.
4395 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
4397 * testsuite/23_containers/set/operations/2.cc: Add test for
4398 non-transparent comparison function.
4400 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
4403 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
4404 Remove SH4A inline asm and lock based implementations and use the
4405 defaults from ext/atomicity.h.
4407 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
4409 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
4410 new std::string constructors for byname facets.
4412 2015-01-22 Richard Biener <rguenther@suse.de>
4415 * libsupc++/eh_alloc.cc: Include new.
4416 (bitmask_type): Remove.
4417 (one_buffer): Likewise.
4418 (emergency_buffer): Likewise.
4419 (emergency_used): Likewise.
4420 (dependents_buffer): Likewise.
4421 (dependents_used): Likewise.
4422 (class pool): New custom fixed-size arena, variable size object
4424 (emergency_pool): New global.
4425 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
4426 (__cxxabiv1::__cxa_free_exception): Likewise.
4427 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
4428 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
4430 2015-01-22 Tim Shen <timshen@google.com>
4433 * include/bits/regex.h (basic_regex<>::basic_regex,
4434 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
4436 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
4438 2015-01-22 Tim Shen <timshen@google.com>
4441 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
4442 regex_traits<>::lookup_classname): Correctly narrow input chars.
4443 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
4445 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
4447 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
4449 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
4451 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
4453 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4455 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
4456 * doc/xml/manual/status_cxx2014.xml: Update status.
4457 * doc/html/manual/status.html: Regenerate.
4459 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4462 * include/experimental/optional (bad_optional_access): Add default
4464 * testsuite/experimental/optional/requirements.cc: Test for default
4467 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4469 * include/bits/stl_map.h (map::find<>, map::count<>,
4470 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
4471 member function templates to perform heterogeneous lookup.
4472 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
4473 multimap::lower_bound<>, multimap::upper_bound<>,
4474 multimap::equal_range<>): Likewise.
4475 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
4476 multiset::lower_bound<>, multiset::upper_bound<>,
4477 multiset::equal_range<>): Likewise.
4478 * include/bits/stl_set.h (set::find<>, set::count<>,
4479 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
4480 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
4481 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
4482 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
4483 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
4484 * testsuite/23_containers/map/operations/2.cc: New.
4485 * testsuite/23_containers/multimap/operations/2.cc: New.
4486 * testsuite/23_containers/multiset/operations/2.cc: New.
4487 * testsuite/23_containers/set/operations/2.cc: New.
4489 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4491 * config/abi/pre/gnu.ver: Export new constructors.
4492 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
4493 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
4494 specializations and declare explicit instantiations.
4495 * include/bits/locale_classes.h (locale, collate_byname): Add string
4497 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
4499 * include/bits/locale_facets_nonio.h (time_get_byname,
4500 time_put_byname, moneypunct_byname, messages_byname): Likewise.
4501 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
4502 codecvt_byname<char32_t>): Define explicit instantiations.
4503 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
4504 Instantiate string constructors.
4505 (ctype_byname): Define string constructor.
4506 * testsuite/22_locale/codecvt_byname/1.cc: New.
4507 * testsuite/22_locale/collate_byname/1.cc: New.
4508 * testsuite/22_locale/ctype_byname/2.cc: New.
4509 * testsuite/22_locale/messages_byname/1.cc: New.
4510 * testsuite/22_locale/moneypunct_byname/1.cc: New.
4511 * testsuite/22_locale/numpunct_byname/1.cc: New.
4513 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4516 * include/std/atomic (atomic_init): Define.
4517 * testsuite/29_atomics/atomic/64658.cc: New.
4519 2015-01-19 Tim Shen <timshen@google.com>
4522 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
4523 regex_traits<>::lookup_classname): Support forward iterators.
4524 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
4525 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
4527 2015-01-19 Tim Shen <timshen@google.com>
4531 * include/bits/regex.h (basic_regex<>::basic_regex,
4532 basic_regex<>::assign, basic_regex<>::imbue,
4533 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
4534 imbuing basic_regex; Make assign() transactional against exception.
4535 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
4536 __compile_nfa SFINAE.
4537 * include/std/regex: Adjust include order to avoid __compile_nfa
4538 forward declaration.
4539 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
4540 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
4542 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
4543 Jonathan Wakely <jwakely@redhat.com>
4545 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
4546 on overloads for arrays.
4547 (cbegin, cend, rbegin, rend, crbegin, crend): New.
4548 * testsuite/24_iterators/range_access_cpp14.cc: New.
4550 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4553 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
4554 end of the second range.
4555 * testsuite/25_algorithms/is_permutation/64646.cc: New.
4557 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4559 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
4560 * doc/html/manual/status.html: Regenerate.
4562 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4564 * include/bits/atomic_futex.h: Use mutex and condition_variable when
4565 atomic int is not lock-free. Make member variables private.
4566 * src/c++11/futex.cc: Likewise.
4568 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
4570 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4573 * include/bits/atomic_futex.h: Use appropriate config macros for
4574 availability of std::mutex, std::condition and std::chrono.
4576 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
4577 Jonathan Wakely <jwakely@redhat.com>
4579 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
4580 * doc/html/*: Regenerate.
4582 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4586 * include/bits/algorithmfwd.h (rotate): Return an iterator.
4587 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
4588 * testsuite/25_algorithms/rotate/dr488.cc: New.
4589 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
4590 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
4592 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
4595 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4598 * include/bits/atomic_base.h: Remove atomic integral typedefs as
4599 synonyms for __atomic_base<int> etc.
4600 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
4601 likewise for all atomic integral types.
4602 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
4603 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
4605 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4608 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
4609 and define one-element specialization.
4610 * testsuite/20_util/tuple/56785.cc: New.
4612 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4614 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
4615 Remove unused header.
4616 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
4618 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
4621 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4623 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
4624 * include/std/locale: Include new header.
4625 * include/Makefile.am: Add it.
4626 * include/Makefile.in: Regenerate.
4627 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
4628 * testsuite/22_locale/conversions/string/1.cc: New.
4629 * testsuite/22_locale/conversions/string/2.cc: New.
4630 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
4631 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
4634 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4636 * config/abi/pre/gnu.ver: Export new symbols.
4637 * include/Makefile.am: Add codecvt.
4638 * include/Makefile.in: Regenerate.
4639 * include/std/codecvt: New header.
4640 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
4641 __codecvt_utf8_utf16_base): Define specializations.
4642 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
4643 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
4644 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
4647 2015-01-16 Torvald Riegel <triegel@redhat.com>
4649 * src/c++11/futex.cc: New file.
4650 * include/bits/atomic_futex.h: New file.
4651 * include/std/future (__future_base::_State_baseV2): Use
4652 atomic_futex_unsigned instead of mutex+condvar.
4653 * src/c++11/futex.cc: Likewise.
4654 * include/Makefile.am: Add atomic_futex.h.
4655 * include/Makefile.in: Likewise.
4656 * src/c++11/Makefile.am: Add futex.cc.
4657 * src/c++11/Makefile.in: Likewise.
4659 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4661 * acinclude.m4: Fix typo in comment.
4662 * configure: Regenerate.
4663 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
4664 codecvt<char16_t, char, mbstate_t>): Declare specializations.
4665 * include/bits/locale_facets.h: Reserve space for new specializations.
4666 * src/c++11/Makefile.am: Add codecvt.cc.
4667 * src/c++11/Makefile.in: Regenerate.
4668 * src/c++11/codecvt.cc: New.
4669 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
4671 * src/c++98/Makefile.in: Regenerate.
4672 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
4673 * src/c++98/localename.cc: Likewise.
4674 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
4675 * testsuite/22_locale/codecvt/utf8.cc: New.
4676 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
4677 specializations are installed in locale objects.
4679 2015-01-16 Torvald Riegel <triegel@redhat.com>
4681 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
4684 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
4687 * config/abi/pre/gnu.ver: Export fstream functions using new string.
4689 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
4692 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
4696 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
4698 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4700 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
4701 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
4702 Multi Processing Runtime Library".
4704 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
4707 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
4708 is_assignable arguments.
4709 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
4712 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4714 * libsupc++/unwind-cxx.h: Revert previous commit.
4716 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4718 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
4720 2015-01-09 Tim Shen <timshen@google.com>
4723 * include/bits/regex.h (match_results<>::swap): Use std::swap
4725 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
4727 * testsuite/28_regex/match_results/swap.cc: New testcase.
4729 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
4732 * include/std/type_traits (has_trivial_default_constructor,
4733 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
4735 * testsuite/20_util/has_trivial_copy_assign/requirements/
4736 explicit_instantiation.cc: Use -Wno-deprecated.
4737 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
4739 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
4740 * testsuite/20_util/has_trivial_copy_constructor/requirements/
4741 explicit_instantiation.cc: Likewise.
4742 * testsuite/20_util/has_trivial_copy_constructor/requirements/
4743 typedefs.cc: Likewise.
4744 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
4745 * testsuite/20_util/has_trivial_default_constructor/requirements/
4746 explicit_instantiation.c: Likewise.
4747 * testsuite/20_util/has_trivial_default_constructor/requirements/
4748 typedefs.cc: Likewise.
4749 * testsuite/20_util/has_trivial_default_constructor/value.cc:
4751 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
4753 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
4754 * testsuite/util/testsuite_common_types.h: Likewise.
4756 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
4758 * include/bits/hashtable_policy.h: Use __bool_constant.
4760 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
4762 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
4763 * libsupc++/Makefile.in: Regenerate.
4765 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
4767 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
4769 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4771 Update copyright years.
4773 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
4776 * testsuite/18_support/exception_ptr/64241.cc: Use
4777 dg-require-atomic-builtins.
4779 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4781 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
4784 2015-01-02 Tim Shen <timshen@google.com>
4787 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
4788 iterator, since the original one shouldn't be mutated.
4790 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4793 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
4794 (string::insert): Likewise.
4795 (string::replace): Likewise.
4796 (wstring::erase): Likewise.
4797 (wstring::insert): Likewise.
4798 (wstring::replace): Likewise.
4799 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
4801 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4804 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
4806 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4809 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
4810 Revert removal of dg-require-string-conversions.
4811 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
4813 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
4815 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
4817 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
4819 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
4821 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
4823 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
4825 * testsuite/21_strings/basic_string/numeric_conversions/char/
4826 stoull.cc: Likewise.
4827 * testsuite/21_strings/basic_string/numeric_conversions/char/
4828 to_string.cc: Likewise.
4830 Copyright (C) 2015 Free Software Foundation, Inc.
4832 Copying and distribution of this file, with or without modification,
4833 are permitted in any medium without royalty provided the copyright
4834 notice and this notice are preserved.