1 2015-11-25 Jonathan Wakely <jwakely@redhat.com>
3 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Explicitly
4 check minimum and maximum values, and size of underlying type.
5 * testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
6 * testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
8 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY) <solaris2*>: Use
11 -Wl,-R in VTV_CXXLINKFLAGS.
12 * configure: Regenerate.
14 * testsuite/18_support/bad_exception/23591_thread-1.c: Use
15 -fvtable-verify=none on Solaris 12+.
17 2015-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19 * acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): New test.
20 * configure.ac: Use it.
21 * configure: Regenerate.
22 * config.h.in: Regenerate.
24 * include/c_global/cmath [__cplusplus >= 201103L]
25 (std::fpclassify): Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO.
26 (std::isfinite): Likewise.
27 (std::isinf): Likewise.
28 (std::isnan): Likewise.
29 (std::isnormal): Likewise.
30 (std::signbit): Likewise.
31 (std::isgreater): Likewise.
32 (std::isgreaterequal): Likewise.
33 (std::isless): Likewise.
34 (std::islessequal): Likewise.
35 (std::islessgreater): Likewise.
36 (std::isunordered): Likewise.
37 (std::acosh): Likewise.
38 (std::asinh): Likewise.
39 (std::atanh): Likewise.
40 (std::cbrt): Likewise.
41 (std::copysign): Likewise.
43 (std::erfc): Likewise.
44 (std::exp2): Likewise.
45 (std::expm1): Likewise.
46 (std::fdim): Likewise.
48 (std::fmax): Likewise.
49 (std::fmin): Likewise.
50 (std::hypot): Likewise.
51 (std::ilogb): Likewise.
52 (std::lgamma): Likewise.
53 (std::llrint): Likewise.
54 (std::llround): Likewise.
55 (std::log1p): Likewise.
56 (std::log2): Likewise.
57 (std::logb): Likewise.
58 (std::lrint): Likewise.
59 (std::lround): Likewise.
60 (std::nearbyint): Likewise.
61 (std::nextafter): Likewise.
62 (std::nexttoward): Likewise.
63 (std::remainder): Likewise.
64 (std::remquo): Likewise.
65 (std::rint): Likewise.
66 (std::round): Likewise.
67 (std::scalbln): Likewise.
68 (std::scalbn): Likewise.
69 (std::tgamma): Likewise.
70 (std::trunc): Likewise.
71 * include/tr1/cmath [_GLIBCXX_USE_C99_MATH_TR1] (std::tr1::acosh):
72 Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO.
73 (std::tr1::asinh): Likewise.
74 (std::tr1::atanh): Likewise.
75 (std::tr1::cbrt): Likewise.
76 (std::tr1::copysign): Likewise.
77 (std::tr1::erf): Likewise.
78 (std::tr1::erfc): Likewise.
79 (std::tr1::exp2): Likewise.
80 (std::tr1::expm1): Likewise.
81 (std::tr1::fabs): Likewise.
82 (std::tr1::fdim): Likewise.
83 (std::tr1::fma): Likewise.
84 (std::tr1::fmax): Likewise.
85 (std::tr1::fmin): Likewise.
86 (std::tr1::hypot): Likewise.
87 (std::tr1::ilogb): Likewise.
88 (std::tr1::lgamma): Likewise.
89 (std::tr1::llrint): Likewise.
90 (std::tr1::llround): Likewise.
91 (std::tr1::log1p): Likewise.
92 (std::tr1::log2): Likewise.
93 (std::tr1::logb): Likewise.
94 (std::tr1::lrint): Likewise.
95 (std::tr1::lround): Likewise.
96 (std::tr1::nearbyint): Likewise.
97 (std::tr1::nextafter): Likewise.
98 (std::tr1::nexttoward): Likewise.
99 (std::tr1::remainder): Likewise.
100 (std::tr1::remquo): Likewise.
101 (std::tr1::rint): Likewise.
102 (std::tr1::scalbln): Likewise.
103 (std::tr1::scalbn): Likewise.
104 (std::tr1::tgamma): Likewise.
105 (std::tr1::trunc): Likewise.
106 (std::tr1::pow): Likewise.
108 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
109 Restrict dg-xfail-if, dg-excess-errors to *-*-solaris2.1[01]*.
111 2015-11-21 David Edelsohn <dje.gcc@gmail.com>
113 * testsuite/23_containers/vector/profile/vector.cc: Add maxdata
116 2015-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
119 * python/hook.in: Call register_libstdcxx_printers.
120 * python/libstdcxx/v6/__init__.py: Wrap it to
121 register_libstdcxx_printers.
123 2015-11-17 Jonathan Wakely <jwakely@redhat.com>
126 * include/std/utility (_Build_index_tuple): Optimise.
128 2015-11-16 Doug Evans <dje@google.com>
131 * python/libstdcxx/v6/printers.py (find_type): Handle "const" in
133 * testsuite/libstdc++-prettyprinters/debug.cc: Add test for
135 * testsuite/libstdc++-prettyprinters/simple.cc: Ditto.
136 * testsuite/libstdc++-prettyprinters/simple11.cc: Ditto.
138 2015-11-15 Jonathan Wakely <jwakely@redhat.com>
141 * include/bits/basic_string.h: Test value of _GLIBCXX_USE_C99_WCHAR
142 not whether it is defined.
143 * include/ext/vstring.h: Likewise.
145 2015-11-14 Andreas Tobler <andreast@gcc.gnu.org>
147 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Change locale implementation
148 from darwin to DragonFly.
149 * configure: Regenerate.
150 * config/os/bsd/freebsd/ctype_configure_char.cc: Improve locale
151 support, do it the same as DragonFly.
152 * config/os/bsd/freebsd/os_defines.h: Add fine grained C99 defines.
154 2015-11-14 Jonathan Wakely <jwakely@redhat.com>
156 * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
157 real minimum capacity.
158 * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc:
161 2015-11-13 David Edelsohn <dje.gcc@gmail.com>
163 * testsuite/experimental/random/randint.cc: Add dg-add-options tls.
165 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
167 * include/Makefile.am: Add new header.
168 * include/Makefile.in: Regenerate.
169 * include/experimental/random: New.
170 * testsuite/experimental/random/randint.cc: New.
172 2015-11-13 John Marino <gnugcc@marino.st>
174 * testsuite/22_locale/codecvt/always_noconv/char/wrapped_env.cc:
175 Use portable locale name
176 * testsuite/22_locale/codecvt/always_noconv/char/wrapped_locale.cc:
178 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Likewise.
179 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Likewise.
180 * testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc:
182 * testsuite/22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc:
184 * testsuite/22_locale/codecvt/encoding/char/wrapped_env.cc: Likewise.
185 * testsuite/22_locale/codecvt/encoding/char/wrapped_locale.cc:
187 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Likewise.
188 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Likewise.
189 * testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_env.cc:
191 * testsuite/22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc:
193 * testsuite/22_locale/codecvt/in/char/wrapped_env.cc: Likewise.
194 * testsuite/22_locale/codecvt/in/char/wrapped_locale.cc: Likewise.
195 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Likewise.
196 * testsuite/22_locale/codecvt/in/wchar_t/wrapped_env.cc: Likewise.
197 * testsuite/22_locale/codecvt/in/wchar_t/wrapped_locale.cc: Likewise.
198 * testsuite/22_locale/codecvt/length/char/wrapped_env.cc: Likewise.
199 * testsuite/22_locale/codecvt/length/char/wrapped_locale.cc: Likewise.
200 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Likewise.
201 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Likewise.
202 * testsuite/22_locale/codecvt/length/wchar_t/wrapped_env.cc: Likewise.
203 * testsuite/22_locale/codecvt/length/wchar_t/wrapped_locale.cc:
205 * testsuite/22_locale/codecvt/max_length/char/wrapped_env.cc: Likewise.
206 * testsuite/22_locale/codecvt/max_length/char/wrapped_locale.cc:
208 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Likewise.
209 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Likewise.
210 * testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_env.cc:
212 * testsuite/22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc:
214 * testsuite/22_locale/codecvt/out/char/wrapped_env.cc: Likewise.
215 * testsuite/22_locale/codecvt/out/char/wrapped_locale.cc: Likewise.
216 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Likewise.
217 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Likewise.
218 * testsuite/22_locale/codecvt/out/wchar_t/wrapped_env.cc: Likewise.
219 * testsuite/22_locale/codecvt/out/wchar_t/wrapped_locale.cc: Likewise.
220 * testsuite/22_locale/codecvt/unshift/char/wrapped_env.cc: Likewise.
221 * testsuite/22_locale/codecvt/unshift/char/wrapped_locale.cc: Likewise.
222 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.
223 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.
224 * testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: Likewise.
225 * testsuite/22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc:
227 * testsuite/22_locale/codecvt_byname/50714.cc: Likewise.
228 * testsuite/22_locale/collate/compare/char/1.cc: Likewise.
229 * testsuite/22_locale/collate/compare/char/2.cc: Likewise.
230 * testsuite/22_locale/collate/compare/char/3.cc: Likewise.
231 * testsuite/22_locale/collate/compare/char/wrapped_env.cc: Likewise.
232 * testsuite/22_locale/collate/compare/char/wrapped_locale.cc: Likewise.
233 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Likewise.
234 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Likewise.
235 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Likewise.
236 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Likewise.
237 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc:
239 * testsuite/22_locale/collate/hash/char/2.cc: Likewise.
240 * testsuite/22_locale/collate/hash/char/wrapped_env.cc: Likewise.
241 * testsuite/22_locale/collate/hash/char/wrapped_locale.cc: Likewise.
242 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Likewise.
243 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Likewise.
244 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Likewise.
245 * testsuite/22_locale/collate/transform/char/2.cc: Likewise.
246 * testsuite/22_locale/collate/transform/char/3.cc: Likewise.
247 * testsuite/22_locale/collate/transform/char/wrapped_env.cc: Likewise.
248 * testsuite/22_locale/collate/transform/char/wrapped_locale.cc:
250 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Likewise.
251 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Likewise.
252 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc:
254 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
256 * testsuite/22_locale/collate_byname/named_equivalence.cc: Likewise.
257 * testsuite/22_locale/ctype/cons/char/wrapped_env.cc: Likewise.
258 * testsuite/22_locale/ctype/cons/char/wrapped_locale.cc: Likewise.
259 * testsuite/22_locale/ctype/is/char/2.cc: Likewise.
260 * testsuite/22_locale/ctype/is/char/wrapped_env.cc: Likewise.
261 * testsuite/22_locale/ctype/is/char/wrapped_locale.cc: Likewise.
262 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
263 * testsuite/22_locale/ctype/is/wchar_t/wrapped_env.cc: Likewise.
264 * testsuite/22_locale/ctype/is/wchar_t/wrapped_locale.cc: Likewise.
265 * testsuite/22_locale/ctype/narrow/char/wrapped_env.cc: Likewise.
266 * testsuite/22_locale/ctype/narrow/char/wrapped_locale.cc: Likewise.
267 * testsuite/22_locale/ctype/narrow/wchar_t/wrapped_env.cc: Likewise.
268 * testsuite/22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: Likewise.
269 * testsuite/22_locale/ctype/scan/char/wrapped_env.cc: Likewise.
270 * testsuite/22_locale/ctype/scan/char/wrapped_locale.cc: Likewise.
271 * testsuite/22_locale/ctype/scan/wchar_t/wrapped_env.cc: Likewise.
272 * testsuite/22_locale/ctype/scan/wchar_t/wrapped_locale.cc: Likewise.
273 * testsuite/22_locale/ctype/to/char/wrapped_env.cc: Likewise.
274 * testsuite/22_locale/ctype/to/char/wrapped_locale.cc: Likewise.
275 * testsuite/22_locale/ctype/to/wchar_t/wrapped_env.cc: Likewise.
276 * testsuite/22_locale/ctype/to/wchar_t/wrapped_locale.cc: Likewise.
277 * testsuite/22_locale/ctype/widen/char/wrapped_env.cc: Likewise.
278 * testsuite/22_locale/ctype/widen/char/wrapped_locale.cc: Likewise.
279 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Likewise.
280 * testsuite/22_locale/ctype/widen/wchar_t/wrapped_env.cc: Likewise.
281 * testsuite/22_locale/ctype/widen/wchar_t/wrapped_locale.cc: Likewise.
282 * testsuite/22_locale/facet/2.cc: Likewise.
283 * testsuite/22_locale/locale/cons/12352.cc: Likewise.
284 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
285 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
286 * testsuite/22_locale/locale/cons/2.cc: Likewise.
287 * testsuite/22_locale/locale/cons/38365.cc: Likewise.
288 * testsuite/22_locale/locale/cons/38368.cc: Likewise.
289 * testsuite/22_locale/locale/cons/4.cc: Likewise.
290 * testsuite/22_locale/locale/cons/40184.cc: Likewise.
291 * testsuite/22_locale/locale/cons/7.cc: Likewise.
292 * testsuite/22_locale/locale/global_locale_objects/14071.cc: Likewise.
293 * testsuite/22_locale/locale/global_locale_objects/2.cc: Likewise.
294 * testsuite/22_locale/messages/13631.cc: Likewise.
295 * testsuite/22_locale/messages/members/char/1.cc: Likewise.
296 * testsuite/22_locale/messages/members/char/2.cc: Likewise.
297 * testsuite/22_locale/messages/members/char/3.cc: Likewise.
298 * testsuite/22_locale/messages/members/char/wrapped_env.cc: Likewise.
299 * testsuite/22_locale/messages/members/char/wrapped_locale.cc:
301 * testsuite/22_locale/messages_byname/named_equivalence.cc: Likewise.
302 * testsuite/22_locale/money_get/get/char/1.cc: Likewise.
303 * testsuite/22_locale/money_get/get/char/10.cc: Likewise.
304 * testsuite/22_locale/money_get/get/char/11.cc: Likewise.
305 * testsuite/22_locale/money_get/get/char/11528.cc: Likewise.
306 * testsuite/22_locale/money_get/get/char/12.cc: Likewise.
307 * testsuite/22_locale/money_get/get/char/13.cc: Likewise.
308 * testsuite/22_locale/money_get/get/char/15.cc: Likewise.
309 * testsuite/22_locale/money_get/get/char/16.cc: Likewise.
310 * testsuite/22_locale/money_get/get/char/17.cc: Likewise.
311 * testsuite/22_locale/money_get/get/char/18.cc: Likewise.
312 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
313 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
314 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
315 * testsuite/22_locale/money_get/get/char/wrapped_env.cc: Likewise.
316 * testsuite/22_locale/money_get/get/char/wrapped_locale.cc: Likewise.
317 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
318 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Likewise.
319 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Likewise.
320 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Likewise.
321 * testsuite/22_locale/money_get/get/wchar_t/12.cc: Likewise.
322 * testsuite/22_locale/money_get/get/wchar_t/13.cc: Likewise.
323 * testsuite/22_locale/money_get/get/wchar_t/15.cc: Likewise.
324 * testsuite/22_locale/money_get/get/wchar_t/16.cc: Likewise.
325 * testsuite/22_locale/money_get/get/wchar_t/17.cc: Likewise.
326 * testsuite/22_locale/money_get/get/wchar_t/18.cc: Likewise.
327 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
328 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
329 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
330 * testsuite/22_locale/money_get/get/wchar_t/wrapped_env.cc: Likewise.
331 * testsuite/22_locale/money_get/get/wchar_t/wrapped_locale.cc:
333 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
334 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
335 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
336 * testsuite/22_locale/money_put/put/char/9780-3.cc: Likewise.
337 * testsuite/22_locale/money_put/put/char/wrapped_env.cc: Likewise.
338 * testsuite/22_locale/money_put/put/char/wrapped_locale.cc: Likewise.
339 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
340 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
341 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
342 * testsuite/22_locale/money_put/put/wchar_t/wrapped_env.cc: Likewise.
343 * testsuite/22_locale/money_put/put/wchar_t/wrapped_locale.cc:
345 * testsuite/22_locale/moneypunct/40712.cc: Likewise.
346 * testsuite/22_locale/moneypunct/members/char/2.cc: Likewise.
347 * testsuite/22_locale/moneypunct/members/char/wrapped_env.cc:
349 * testsuite/22_locale/moneypunct/members/char/wrapped_locale.cc:
351 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Likewise.
352 * testsuite/22_locale/moneypunct/members/wchar_t/wrapped_env.cc:
354 * testsuite/22_locale/moneypunct/members/wchar_t/wrapped_locale.cc:
356 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc:
358 * testsuite/22_locale/num_get/get/char/1.cc: Likewise.
359 * testsuite/22_locale/num_get/get/char/3.cc: Likewise.
360 * testsuite/22_locale/num_get/get/char/5.cc: Likewise.
361 * testsuite/22_locale/num_get/get/char/6.cc: Likewise.
362 * testsuite/22_locale/num_get/get/char/9.cc: Likewise.
363 * testsuite/22_locale/num_get/get/char/wrapped_env.cc: Likewise.
364 * testsuite/22_locale/num_get/get/char/wrapped_locale.cc: Likewise.
365 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Likewise.
366 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Likewise.
367 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Likewise.
368 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Likewise.
369 * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
370 * testsuite/22_locale/num_get/get/wchar_t/wrapped_env.cc: Likewise.
371 * testsuite/22_locale/num_get/get/wchar_t/wrapped_locale.cc: Likewise.
372 * testsuite/22_locale/num_put/put/char/1.cc: Likewise.
373 * testsuite/22_locale/num_put/put/char/20909.cc: Likewise.
374 * testsuite/22_locale/num_put/put/char/20914.cc: Likewise.
375 * testsuite/22_locale/num_put/put/char/3.cc: Likewise.
376 * testsuite/22_locale/num_put/put/char/5.cc: Likewise.
377 * testsuite/22_locale/num_put/put/char/9780-2.cc: Likewise.
378 * testsuite/22_locale/num_put/put/char/wrapped_env.cc: Likewise.
379 * testsuite/22_locale/num_put/put/char/wrapped_locale.cc: Likewise.
380 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Likewise.
381 * testsuite/22_locale/num_put/put/wchar_t/20909.cc: Likewise.
382 * testsuite/22_locale/num_put/put/wchar_t/20914.cc: Likewise.
383 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
384 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
385 * testsuite/22_locale/num_put/put/wchar_t/wrapped_env.cc: Likewise.
386 * testsuite/22_locale/num_put/put/wchar_t/wrapped_locale.cc: Likewise.
387 * testsuite/22_locale/numpunct/members/char/2.cc: Likewise.
388 * testsuite/22_locale/numpunct/members/char/3.cc: Likewise.
389 * testsuite/22_locale/numpunct/members/char/wrapped_env.cc: Likewise.
390 * testsuite/22_locale/numpunct/members/char/wrapped_locale.cc:
392 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.
393 * testsuite/22_locale/numpunct/members/wchar_t/wrapped_env.cc:
395 * testsuite/22_locale/numpunct/members/wchar_t/wrapped_locale.cc:
397 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: Likewise.
398 * testsuite/22_locale/time_get/date_order/char/wrapped_env.cc:
400 * testsuite/22_locale/time_get/date_order/char/wrapped_locale.cc:
402 * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_env.cc:
404 * testsuite/22_locale/time_get/date_order/wchar_t/wrapped_locale.cc:
406 * testsuite/22_locale/time_get/get/char/2.cc: Likewise.
407 * testsuite/22_locale/time_get/get/wchar_t/2.cc: Likewise.
408 * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
409 * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
410 * testsuite/22_locale/time_get/get_date/char/26701.cc: Likewise.
411 * testsuite/22_locale/time_get/get_date/char/wrapped_env.cc: Likewise.
412 * testsuite/22_locale/time_get/get_date/char/wrapped_locale.cc:
414 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
415 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
416 * testsuite/22_locale/time_get/get_date/wchar_t/26701.cc: Likewise.
417 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: Likewise.
418 * testsuite/22_locale/time_get/get_date/wchar_t/wrapped_env.cc:
420 * testsuite/22_locale/time_get/get_date/wchar_t/wrapped_locale.cc:
422 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
423 * testsuite/22_locale/time_get/get_monthname/char/wrapped_env.cc:
425 * testsuite/22_locale/time_get/get_monthname/char/wrapped_locale.cc:
427 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
428 * testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc:
430 * testsuite/22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc:
432 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
433 * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
434 * testsuite/22_locale/time_get/get_time/char/wrapped_env.cc:
436 * testsuite/22_locale/time_get/get_time/char/wrapped_locale.cc:
438 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
439 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
440 * testsuite/22_locale/time_get/get_time/wchar_t/wrapped_env.cc:
442 * testsuite/22_locale/time_get/get_time/wchar_t/wrapped_locale.cc:
444 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
445 * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc: Likewise.
446 * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc: Likewise.
447 * testsuite/22_locale/time_get/get_weekday/char/wrapped_env.cc:
449 * testsuite/22_locale/time_get/get_weekday/char/wrapped_locale.cc:
451 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
452 * testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc:
454 * testsuite/22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc:
456 * testsuite/22_locale/time_get/get_year/char/wrapped_env.cc: Likewise.
457 * testsuite/22_locale/time_get/get_year/char/wrapped_locale.cc:
459 * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_env.cc:
461 * testsuite/22_locale/time_get/get_year/wchar_t/wrapped_locale.cc:
463 * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
464 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
465 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
466 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
467 * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
468 * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
469 * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
470 * testsuite/22_locale/time_put/put/char/9780-1.cc: Likewise.
471 * testsuite/22_locale/time_put/put/char/wrapped_env.cc: Likewise.
472 * testsuite/22_locale/time_put/put/char/wrapped_locale.cc: Likewise.
473 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
474 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
475 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
476 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
477 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
478 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
479 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
480 * testsuite/22_locale/time_put/put/wchar_t/wrapped_env.cc: Likewise.
481 * testsuite/22_locale/time_put/put/wchar_t/wrapped_locale.cc: Likewise.
482 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: Likewise.
483 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: Likewise.
484 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
485 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Likewise.
486 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
487 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: Likewise.
488 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Likewise.
489 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Likewise.
490 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: Likewise.
491 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: Likewise.
492 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
493 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Likewise.
494 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
495 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
496 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: Likewise.
497 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: Likewise.
498 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Likewise.
499 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
501 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/2.cc:
503 * testsuite/27_io/basic_streambuf/cons/57394.cc: Likewise.
504 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: Likewise.
505 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Likewise.
506 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: Likewise.
507 * testsuite/27_io/basic_streambuf/imbue/wchar_t/9322.cc: Likewise.
508 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Likewise.
509 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/9322.cc: Likewise.
510 * testsuite/27_io/manipulators/extended/get_money/char/1.cc: Likewise.
511 * testsuite/27_io/manipulators/extended/get_money/wchar_t/1.cc:
513 * testsuite/27_io/manipulators/extended/get_time/char/2.cc: Likewise.
514 * testsuite/27_io/manipulators/extended/get_time/wchar_t/2.cc:
516 * testsuite/27_io/manipulators/extended/put_money/char/1.cc: Likewise.
517 * testsuite/27_io/manipulators/extended/put_money/wchar_t/1.cc:
519 * testsuite/27_io/manipulators/extended/put_time/char/2.cc: Likewise.
520 * testsuite/27_io/manipulators/extended/put_time/wchar_t/2.cc:
522 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Likewise.
523 * testsuite/27_io/objects/wchar_t/9520.cc: Likewise.
524 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale): Check
525 for named locale as appropriate for target.
526 * testsuite/util/testsuite_hooks.h (ISO_8859): Define macro to form
527 target's preferred form of locale name.
529 2015-11-13 Jennifer Yao <jenny.hyphen.fa@gmail.com>
530 Jonathan Wakely <jwakely@redhat.com>
534 * acinclude.m4 (GLIBCXX_ENABLE_C99): Perform tests twice, with
535 -std=c++11 as well as -std=c++98, and define separate macros for each.
536 Cache the results of checking for complex math and wide character
537 functions. Reformat for readability.
538 * config.h.in: Regenerate.
539 * include/bits/c++config: Define _GLIBCXX_USE_C99_XXX macros to
540 either _GLIBCXX98_USE_C99_XXX or _GLIBCXX11_USE_C99_XXX according to
541 language standard in use.
542 * config/locale/dragonfly/c_locale.h (std::__convert_from_v): Replace
543 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
544 * config/locale/generic/c_locale.h (std::__convert_from_v): Likewise.
545 * config/locale/gnu/c_locale.h (std::__convert_from_v): Likewise.
546 * config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99_STDIO,
547 _GLIBCXX_USE_C99_STDLIB, and _GLIBCXX_USE_C99_WCHAR.
548 * configure: Regenerate.
549 * include/bits/basic_string.h: Make numeric conversion functions
550 depend on _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, or
551 _GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
552 * include/ext/vstring.h: Likewise.
553 * include/bits/locale_facets.tcc (std::num_put::_M_insert_float):
554 Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
555 * include/bits/locale_facets_nonio.tcc (std::money_put::do_put):
557 * include/c_compatibility/math.h: Replace _GLIBCXX_USE_C99 with
558 _GLIBCXX_USE_C99_MATH.
559 * include/c_compatibility/wchar.h: Replace _GLIBCXX_USE_C99 with
560 _GLIBCXX_USE_C99_WCHAR.
561 * include/c_global/cstdio: Replace _GLIBCXX_USE_C99 with
562 _GLIBCXX_USE_C99_STDIO.
563 * include/c_global/cstdlib: Replace _GLIBCXX_USE_C99 with
564 _GLIBCXX_USE_C99_STDLIB.
565 * include/c_global/cwchar: Replace _GLIBCXX_USE_C99 with
566 _GLIBCXX_USE_C99_WCHAR.
567 * include/c_std/cstdio: Replace _GLIBCXX_USE_C99 with
568 _GLIBCXX_USE_C99_STDIO.
569 * include/c_std/cstdlib: Replace _GLIBCXX_USE_C99 with
570 _GLIBCXX_USE_C99_STDLIB.
571 * include/c_std/cwchar: Replace _GLIBCXX_USE_C99 with
572 _GLIBCXX_USE_C99_WCHAR.
573 * include/tr1/cstdio: Replace _GLIBCXX_USE_C99 with
574 _GLIBCXX_USE_C99_STDIO.
575 * include/tr1/cstdlib: Replace _GLIBCXX_USE_C99 with
576 _GLIBCXX_USE_C99_STDLIB.
577 * include/tr1/cwchar: Replace _GLIBCXX_USE_C99 with
578 _GLIBCXX_USE_C99_WCHAR.
579 * include/tr1/stdlib.h: Replace _GLIBCXX_USE_C99 with
580 _GLIBCXX_USE_C99_STDLIB.
581 * src/c++98/locale_facets.cc (std::__num_base::_S_format_float):
582 Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
583 * testsuite/18_support/exception_ptr/60612-terminate.cc: Replace
584 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
585 * testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.
586 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc
587 (test01): Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
588 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
590 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
592 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
594 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
596 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
598 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
600 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
602 * testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
603 to_wstring.cc: Likewise.
604 * testsuite/26_numerics/headers/cstdlib/13943.cc: Replace
605 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
606 * testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc: Likewise.
607 * testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
608 Change preprocessor #if conditional so that it uses
609 _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, and
610 _GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
611 * testsuite/tr1/8_c_compatibility/cmath/templates.cc: Replace
612 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_MATH.
613 * testsuite/tr1/8_c_compatibility/cstdio/functions.cc: Replace
614 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
615 * testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Replace
616 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
617 * testsuite/tr1/8_c_compatibility/cstdlib/types_std_tr1.cc: Likewise.
618 * testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Replace
619 _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
620 * testsuite/util/testsuite_fs.h: Replace _GLIBCXX_USE_C99 with
621 _GLIBCXX_USE_C99_STDIO.
623 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
625 * include/experimental/bits/shared_ptr.h: Tweak comments.
627 2015-11-13 Fan You <youfan.noey@gmail.com>
628 Jonathan Wakely <jwakely@redhat.com>
630 * include/Makefile.am: Add new header.
631 * include/Makefile.in: Regenerate.
632 * include/experimental/bits/shared_ptr.h: New.
633 * include/experimental/memory: Include new header.
634 * testsuite/experimental/memory/shared_ptr/assign/assign.cc: New.
635 * testsuite/experimental/memory/shared_ptr/cast/cast.cc: New.
636 * testsuite/experimental/memory/shared_ptr/comparison/comparison.cc:
638 * testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc: New.
639 * testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc: New.
640 * testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc: New.
641 * testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc: New.
642 * testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc: New.
643 * testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc: New.
644 * testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc: New.
645 * testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
647 * testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc: New.
648 * testsuite/experimental/memory/shared_ptr/dest/dest.cc: New.
649 * testsuite/experimental/memory/shared_ptr/modifiers/reset.cc: New.
650 * testsuite/experimental/memory/shared_ptr/modifiers/swap.cc: New.
651 * testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc:
653 * testsuite/experimental/memory/shared_ptr/observers/operators.cc:
655 * testsuite/experimental/memory/shared_ptr/observers/owner_before.cc:
657 * testsuite/experimental/memory/shared_ptr/observers/use_count.cc: New.
659 2015-11-13 Jonathan Wakely <jwakely@redhat.com>
661 * include/Makefile.am: Add new header.
662 * include/Makefile.in: Regenerate.
663 * include/experimental/memory_resource: Add feature-test macro.
664 * include/experimental/regex: New.
665 * include/experimental/deque: Add alias template using PMR.
666 * include/experimental/forward_list: Likewise.
667 * include/experimental/list: Likewise.
668 * include/experimental/map: Likewise.
669 * include/experimental/set: Likewise.
670 * include/experimental/string: Likewise.
671 * include/experimental/unordered_map: Likewise.
672 * include/experimental/unordered_set: Likewise.
673 * include/experimental/vector: Likewise.
675 2015-11-13 Fan You <youfan.noey@gmail.com>
677 * include/Makefile.am: Add new headers.
678 * include/Makefile.in: Regenerate.
679 * include/bits/uses_allocator.h (__erased_type): Define.
680 (__uses_allocator_helper): Check for __erased_type.
681 * include/experimental/memory_resource: New.
682 * include/experimental/utlity: New.
683 * testsuite/experimental/type_erased_allocator/1.cc: New.
684 * testsuite/experimental/type_erased_allocator/1_neg.cc: New.
685 * testsuite/experimental/type_erased_allocator/2.cc: New.
686 * testsuite/experimental/type_erased_allocator/uses_allocator.cc: New.
688 2015-11-12 Jonathan Wakely <jwakely@redhat.com>
691 * include/bits/ios_base.h (_Ios_Fmtflags, _Ios_Openmode, _Ios_Iostate):
692 Define enumerators to ensure all values of type int are valid values
693 of the enumeration type.
694 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Add new cases.
695 * testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
696 * testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
698 * include/std/thread: Include <cerrno> for EINTR.
700 2015-11-12 Ville Voutilainen <ville.voutilainen@gmail.com>
702 Implement D0013R2, logical type traits.
704 * include/experimental/type_traits (conjunction, disjunction,
705 negation, conjunction_v, disjunction_v, negation_v): New.
706 * include/std/type_traits (conjunction, disjunction, negation):
708 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
709 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Likewise.
710 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
712 * testsuite/experimental/type_traits/value.cc: Likewise.
713 * testsuite/20_util/logical_traits/requirements/explicit_instantiation.cc: New.
714 * testsuite/20_util/logical_traits/requirements/typedefs.cc: Likewise.
715 * testsuite/20_util/logical_traits/value.cc: Likewise.
717 2015-11-12 Jonathan Wakely <jwakely@redhat.com>
719 * include/experimental/bits/string_view.tcc: Fix doxygen @file.
721 2015-11-11 Jonathan Wakely <jwakely@redhat.com>
723 * libsupc++/new_handler.cc: Fix for explicit constructor change.
726 * include/std/thread (this_thread::sleep_for): Retry on EINTR.
727 (this_thread::sleep_until): Retry if time not reached.
728 * src/c++11/thread.cc (__sleep_for): Retry on EINTR.
729 * testsuite/30_threads/this_thread/60421.cc: Test interruption and
732 2015-11-11 Ville Voutilainen <ville.voutilainen@gmail.com>
734 LWG 2510, make the default constructors of library tag types
736 * include/bits/mutex.h (defer_lock_t, try_lock_t,
737 adopt_lock_t): Add an explicit default constructor.
738 * include/bits/stl_pair.h (piecewise_construct_t): Likewise.
739 * include/bits/uses_allocator.h (allocator_arg_t): Likewise.
740 * libsupc++/new (nothrow_t): Likewise.
741 * testsuite/17_intro/tag_type_explicit_ctor.cc: New.
743 2015-11-11 Jonathan Wakely <jwakely@redhat.com>
746 * libsupc++/exception_ptr.h (rethrow_exception): Add using-declaration
747 to __exception_ptr namespace.
748 * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test ADL.
749 Remove unnecessary test variables.
751 2015-11-10 Jonathan Wakely <jwakely@redhat.com>
754 * include/bits/stl_multiset.h (multiset::find): Fix return types.
755 * include/bits/stl_set.h (set::find): Likewise.
756 * testsuite/23_containers/map/operations/2.cc: Test find return types.
757 * testsuite/23_containers/multimap/operations/2.cc: Likewise.
758 * testsuite/23_containers/multiset/operations/2.cc: Likewise.
759 * testsuite/23_containers/set/operations/2.cc: Likewise.
761 * doc/xml/manual/status_cxx2017.xml: Update.
762 * doc/html/*: Regenerate.
764 * include/bits/functional_hash.h: Fix grammar in comment.
766 2015-11-09 François Dumont <fdumont@gcc.gnu.org>
768 * include/bits/stl_algo.h
769 (partial_sort_copy): Instantiate std::iterator_traits only if concept
771 (lower_bound): Likewise.
772 (upper_bound): Likewise.
773 (equal_range): Likewise.
774 (binary_search): Likewise.
775 * include/bits/stl_heap.h (pop_heap): Likewise.
777 2015-11-06 Kai Tietz <ktietz70@googlemail.com>
779 * testsuite/26_numerics/complex/requirements/constexpr.cc
780 * testsuite/26_numerics/complex/requirements/constexpr_functions.cc:
781 Use constexpr where needed.
783 2015-11-06 David Malcolm <dmalcolm@redhat.com>
785 * testsuite/lib/libstdc++.exp (v3_target_compile): Add
786 -fno-diagnostics-show-caret -fdiagnostics-color=never to
787 option's additional_flags.
789 2015-11-03 Jason Merrill <jason@redhat.com>
791 * libsupc++/new: Declare sized deletes.
793 2015-11-03 Ville Voutilainen <ville.voutilainen@gmail.com>
795 Make the default constructors of tuple and pair conditionally explicit.
796 * include/std/type_traits (is_unsigned, __is_array_unknown_bounds,
797 __is_default_constructible_atom, __is_default_constructible_safe,
798 __is_direct_constructible_new_safe, __is_direct_constructible_ref_cast,
799 __is_nt_default_constructible_impl, is_nothrow_default_constructible,
800 is_nothrow_constructible, is_nothrow_assignable,
801 is_trivially_constructible, is_trivially_copy_constructible,
802 is_trivially_move_constructible, is_trivially_assignable,
803 is_trivially_copy_assignable, is_trivially_move_assignable,
804 is_trivially_destructible): Simplify.
805 * include/std/type_traits (
806 __do_is_implicitly_default_constructible_impl,
807 __is_implicitly_default_constructible_impl,
808 __is_implicitly_default_constructible_safe,
809 __is_implicitly_default_constructible): New.
810 * include/bits/stl_pair.h (pair::pair()): Use it.
811 * include/std/tuple (tuple<_T1, _T2>::tuple): Use it.
812 * include/std/tuple (_ImplicitlyDefaultConstructibleTuple): New.
813 * include/std/tuple (tuple<_Types...>::tuple()): Use it.
814 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
815 * testsuite/20_util/is_implicitly_default_constructible/
816 requirements/explicit_instantiation.cc: New.
817 * testsuite/20_util/is_implicitly_default_constructible/requirements/
818 typedefs.cc: Likewise.
819 * testsuite/20_util/is_implicitly_default_constructible/value.cc:
821 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust.
822 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
824 * testsuite/20_util/pair/cons/explicit_construct.cc: Likewise.
825 * testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.
827 2015-10-24 Jonathan Wakely <jwakely@redhat.com>
829 * include/std/functional (__invoke_impl): New overloads.
830 (__invoke): Replace with a single function calling __invoke_impl.
831 (invoke): Add C++17 std::invoke.
832 (reference_wrapper::operator()): Qualify call to __invoke.
833 (_Mem_fn_traits_base, _Mem_fn_traits): Remove unused typedefs.
834 (_Mem_fn_base): Remove unused typedefs and implement call operator in
836 * include/std/future (__future_base::_Async_state_commonV2): Do not
837 pass reference_wrapper as object argument to call_once.
838 * include/std/type_traits (result_of): Define nested __invoke_type.
839 Handle reference_wrapper as per LWG 2219.
840 * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error directives.
841 * testsuite/20_util/function_objects/mem_fn/55463.cc: Remove tests
842 using member functions of reference_wrapper.
844 2015-10-24 Jonathan Wakely <jwakely@redhat.com>
846 * include/std/future (async): Use deferred function on exception.
847 * testsuite/30_threads/async/except.cc: New.
849 2015-10-21 Jonathan Wakely <jwakely@redhat.com>
851 * include/std/type_traits (__cpp_lib_bool_constant): Define.
853 2015-10-16 Jonathan Wakely <jwakely@redhat.com>
855 * doc/xml/manual/configure.xml: Document
856 --enable-libstdcxx-filesystem-ts option.
857 * doc/xml/manual/status_cxx2014.xml: Document libstdc++fs.a.
858 * doc/xml/manual/using.xml: Likewise.
859 * doc/html/*: Regenerate.
861 2015-10-16 Aurelio Remonda <aurelio.remonda@tallertechnologies.com>
863 * testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable
864 N from const int N = 200000 to const unsigned int N = 10000.
865 Delete useless fill_ascending function call.
867 2015-10-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
869 * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
870 unsupported compiler output.
872 2015-10-13 Nathan Froyd <froydnj@gcc.gnu.org>
874 * config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead
875 of x86intrin.h, and only do so when __SSE3__
876 * include/ext/random: Include emmintrin.h instead of x86intrin.h
878 2015-10-11 Joseph Myers <joseph@codesourcery.com>
880 * crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* |
881 *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-cygwin*>: Check for
882 __cxa_thread_atexit_impl.
883 * configure: Regenerate.
885 2015-10-09 Jonathan Wakely <jwakely@redhat.com>
887 * include/experimental/erase_if.h: Move to ...
888 * include/experimental/bits/erase_if.h: New.
889 * include/experimental/fs_dir.h: Move to ...
890 * include/experimental/bits/fs_dir.h: New.
891 * include/experimental/fs_fwd.h: Move to ...
892 * include/experimental/bits/fs_fwd.h: New.
893 * include/experimental/fs_ops.h: Move to ...
894 * include/experimental/bits/fs_ops.h: New.
895 * include/experimental/fs_path.h: Move to ...
896 * include/experimental/bits/fs_path.h: New.
897 * include/experimental/string_view.tcc: Move to ...
898 * include/experimental/bits/string_view.tcc: New.
899 * include/Makefile.am: Add include/experimental/bits sub-directory.
900 * include/Makefile.in: Regenerate.
901 * include/experimental/filesystem: Adjust includes.
902 * include/experimental/map: Likewise.
903 * include/experimental/set: Likewise.
904 * include/experimental/string_view: Likewise.
905 * include/experimental/unordered_map: Likewise.
906 * include/experimental/unordered_set: Likewise.
908 2015-10-05 Ville Voutilainen <ville.voutilainen@gmail.com>
911 * include/std/tuple (_TC::_NonNestedTuple): Eagerly reject
912 conversions from tuple types same as the target tuple.
913 * testsuite/20_util/tuple/67844.cc: New.
914 * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: Add
915 a missing copyright header.
917 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
919 * python/libstdcxx/v6/printers.py (StdExpAnyPrinter): Remove support
922 * src/c++98/locale.cc: Fix comment.
923 * src/c++98/locale_init.cc: Likewise.
925 * testsuite/21_strings/basic_string/literals/types.cc: Guard use of
926 wchar_t with _GLIBCXX_USE_WCHAR_T.
927 * testsuite/21_strings/basic_string/literals/values.cc: Likewise.
928 * testsuite/21_strings/basic_string/requirements/citerators.cc:
930 * testsuite/22_locale/messages/13631.cc: Likewise.
931 * testsuite/experimental/string_view/literals/types.cc: Likewise.
932 * testsuite/experimental/string_view/literals/values.cc: Likewise.
934 * src/filesystem/Makefile.am: Add cxx11_abi_sources.
935 * src/filesystem/Makefile.in: Regenerate.
936 * src/filesystem/cow-dir.cc: New.
937 * src/filesystem/cow-ops.cc: New.
938 * src/filesystem/cow-path.cc: New.
939 * src/filesystem/dir.cc: Define macro for new ABI.
940 * src/filesystem/ops.cc: Likewise.
941 * src/filesystem/path.cc: Likewise.
943 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
945 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
946 Minor tweaks to match narrow char version.
948 * testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard
949 explicit instantiation with check for new ABI.
950 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
951 Likewise. Use wchar_t as char_type.
953 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
954 (basic_string::front() const, basic_string::back() const): Use
955 noexcept instead of _GLIBCXX_NOEXCEPT macro.
956 (__versa_string::front, __versa_string::back): Likewise.
958 * acinclude.m4 (GLIBCXX_ENABLE_DEBUG_FLAGS): Fix comment.
960 * include/bits/locale_conv.h [!_GLIBCXX_USE_WCHAR_T]
961 (__do_str_codecvt, __str_codecvt_in, __str_codecvt_out): Enable.
962 * include/experimental/fs_path.h [!_GLIBCXX_USE_WCHAR_T]
963 (path::wstring, path::generic_wstring): Disable.
964 * src/filesystem/path.cc (path::_S_convert_loc)
965 [!_GLIBCXX_USE_WCHAR_T]: Skip conversion.
966 * testsuite/experimental/filesystem/path/assign/assign.cc: Check for
968 * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise.
969 * testsuite/experimental/filesystem/path/construct/range.cc: Likewise.
971 * testsuite/util/testsuite_fs.h (nonexistent_path): Use less generic
972 name for paths. Prefer snprintf to sprintf.
975 * src/filesystem/dir.cc (native_readdir): Remove.
976 (_Dir::advance): Use readdir instead of native_readdir.
977 (recursive_directory_iterator(const path&, directory_options,
978 error_code*)): Use swap instead of reset.
980 2015-10-01 Jonathan Wakely <jwakely@redhat.com>
982 * doc/html/manual/errno.html: Add new file.
984 * doc/xml/manual/diagnostics.xml: Document use of errno.
985 * doc/html/*: Regenerate.
986 * config/locale/generic/c_locale.cc (_Save_errno): New helper.
987 (__convert_to_v): Use _Save_errno.
988 * include/ext/string_conversions.h (__stoa): Only restore errno when
989 it isn't set to non-zero.
991 2015-09-30 François Dumont <fdumont@gcc.gnu.org>
992 Jonathan Wakely <jwakely@redhat.com>
994 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs):
996 * config/locale/gnu/c++locale_internal.h: ...here in std namespace.
997 * config/locale/gnu/c_locale.cc: Move implementation of latter here.
998 * src/c++98/Makefile.am: Compile c++locale.cc with -fimplicit-templates.
999 * src/c++98/Makefile.in: Regenerate.
1000 * config/abi/pre/gnu.ver: Adjust.
1002 2015-09-30 Matthias Klose <doko@ubuntu.com>
1004 * config/cpu/alpha, config/cpu/ia64: Remove empty directories.
1006 2015-09-29 Jonathan Wakely <jwakely@redhat.com>
1008 * include/ext/string_conversions.h (__stoa): Save and restore errno.
1009 * testsuite/21_strings/basic_string/numeric_conversions/char/errno.cc:
1013 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Fix sputn call
1014 with mismatched arguments.
1015 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1018 * config/abi/pre/gnu.ver: Export new symbols.
1019 * include/std/thread (thread::_State, thread::_State_impl): New types.
1020 (thread::_M_start_thread): Add overload taking unique_ptr<_State>.
1021 (thread::_M_make_routine): Remove.
1022 (thread::_S_make_state): Add.
1023 (thread::_Impl_base, thread::_Impl, thread::_M_start_thread)
1024 [_GLIBCXX_THREAD_ABI_COMPAT] Only declare conditionally.
1025 * src/c++11/thread.cc (execute_native_thread_routine): Rename to
1026 execute_native_thread_routine_compat and re-define to use _State.
1027 (thread::_State::~_State()): Define.
1028 (thread::_M_make_thread): Define new overload.
1029 (thread::_M_make_thread) [_GLIBCXX_THREAD_ABI_COMPAT]: Only define old
1030 overloads conditionally.
1032 2015-09-28 Jonathan Wakely <jwakely@redhat.com>
1034 * include/std/condition_variable (condition_variable::wait): Add
1036 * src/c++11/condition_variable.cc (condition_variable::wait): Call
1037 std::terminate on error (DR 2135).
1039 2015-09-25 Ville Voutilainen <ville.voutilainen@gmail.com>
1041 Avoid creating dangling references in case of nested tuples
1042 for tuple constructors that construct from other tuples.
1043 * include/std/tuple (_TC::_NonNestedTuple): New.
1044 * include/std/tuple (tuple::_TNTC): New.
1045 * include/std/tuple (tuple(const tuple<_UElements...>&),
1046 tuple(tuple<_UElements...>&&): Use _TNTC.
1047 * testsuite/20_util/tuple/cons/nested_tuple_construct.cc: New.
1049 2015-09-24 Jonathan Wakely <jwakely@redhat.com>
1052 * include/bits/stl_deque.h (_Deque_base::_M_move_impl): Initialize
1054 * testsuite/23_containers/deque/allocator/move.cc: Check moved-from
1057 2015-09-23 Jonathan Wakely <jwakely@redhat.com>
1059 * src/filesystem/ops.cc (canonical): Simplify error handling and
1060 limit number of symlinks that can be resolved.
1062 2015-09-23 Jonathan Wakely <jwakely@redhat.com>
1064 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Remove _GLIBCXX_
1065 prefix from HAVE_STRUCT_DIRENT_D_TYPE.
1066 * config.h.in: Regenerate.
1067 * configure: Regenerate.
1068 * include/experimental/fs_dir.h (operator==, operator==):
1069 Use owner_before instead of pointer equality.
1070 (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
1071 * src/filesystem/dir.cc (ErrorCode): Remove.
1072 (_Dir::advance): Change ErrorCode parameter to error_code*, add
1073 directory_options parameter and check it on error.
1074 (opendir): Rename to open_dir to avoid clashing with macro. Change
1075 ErrorCode parameter to error_code*.
1076 (make_shared_dir): Remove.
1077 (native_readdir) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Don't set errno.
1078 (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove.
1079 (directory_iterator(const path&, directory_options, error_code*)):
1080 Pass options to _Dir::advance and create non-end iterator on error.
1081 (recursive_directory_iterator(const path&, directory_options,
1082 error_code*)): Clear error_code on ignored error, create non-end
1084 (recursive_directory_iterator::increment): Pass _M_options to
1086 (recursive_directory_iterator::pop): Likewise.
1087 * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
1089 * testsuite/experimental/filesystem/iterators/
1090 recursive_directory_iterator.cc: New.
1092 * src/filesystem/ops.cc (is_dot, is_dotdot): Define new helpers.
1093 (create_directories): Fix error handling.
1094 * testsuite/experimental/filesystem/operations/create_directories.cc:
1097 2015-09-21 Jonathan Wakely <jwakely@redhat.com>
1100 * include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
1101 (basic_string::shrink_to_fit): Fix #endif placement.
1103 2015-09-19 Tim Shen <timshen@google.com>
1106 * include/bits/regex_error.h: Add __throw_regex_error that
1108 * include/bits/regex_automaton.h: Add more specific exception
1110 * include/bits/regex_automaton.tcc: Likewise.
1111 * include/bits/regex_compiler.h: Likewise.
1112 * include/bits/regex_compiler.tcc: Likewise.
1113 * include/bits/regex_scanner.h: Likewise.
1114 * include/bits/regex_scanner.tcc: Likewise.
1116 2015-09-18 Jonathan Wakely <jwakely@redhat.com>
1118 * include/precompiled/extc++.h: Fix bootstrap error due to
1119 unconditional inclusion of <ext/enc_filebuf.h>.
1120 * include/ext/random: Check for definition of UINT32_C.
1122 2015-09-17 Catherine Moore <clm@codesourcery.com>
1124 * src/c++11/debug.cc: Include <cstdio>.
1126 2015-09-17 Gerald Pfeifer <gerald@pfeifer.com>
1128 * src/c++11/random.cc: Include <cerrno>.
1130 2015-09-17 François Dumont <fdumont@gcc.gnu.org>
1132 * include/debug/formatter.h
1133 (_Error_formatter::_Parameter::_M_print_field): Deprecate.
1134 (_Error_formatter::_Parameter::_M_print_description): Likewise.
1135 (_Error_formatter::_M_format_word): Likewise.
1136 (_Error_formatter::_M_print_word): Likewise.
1137 (_Error_formatter::_M_print_string): Likewise.
1138 (_Error_formatter::_M_get_max_length): Likewise.
1139 (_Error_formatter::_M_max_length): Delete.
1140 (_Error_formatter::_M_indent): Likewise.
1141 (_Error_formatter::_M_column): Likewise.
1142 (_Error_formatter::_M_first_line): Likewise.
1143 (_Error_formatter::_M_wordwrap): Likewise.
1144 * src/c++11/debug.cc: Adapt.
1146 2015-09-17 Jonathan Wakely <jwakely@redhat.com>
1149 * include/bits/atomic_base.h (__atomic_base<_TTp>::is_lock_free(),
1150 __atomic_base<_PTp*>::is_lock_free()): Call the built-in with the
1151 immediate pointer value, not a variable.
1152 * include/std/atomic (atomic<T>::is_lock_free()): Likewise.
1153 * testsuite/29_atomics/atomic/65913.cc: New.
1155 * testsuite/experimental/filesystem/operations/canonical.cc: Remove
1156 non-deterministic part of the test.
1159 * src/c++11/random.cc (random_device::_M_getval()): Retry after short
1162 * include/std/system_error (error_code::operator bool(),
1163 error_condition::operator bool()): Remove redundant conditional
1166 * include/bits/allocator.h (__shrink_to_fit_aux<T, true>::_S_do_it):
1167 Do nothing if exceptions are disabled.
1168 * include/bits/basic_string.h (basic_string::shrink_to_fit): Likewise.
1170 2015-09-16 Jonathan Wakely <jwakely@redhat.com>
1173 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check _XOPEN_VERSION
1174 and PATH_MAX for _GLIBCXX_USE_REALPATH.
1175 * config.h.in: Regenerate.
1176 * configure: Regenerate.
1177 * src/filesystem/ops.cc: (canonical) [!_GLIBCXX_USE_REALPATH]: Add
1178 alternative implementation.
1179 * testsuite/experimental/filesystem/operations/canonical.cc: New.
1180 * testsuite/experimental/filesystem/operations/exists.cc: Add more
1182 * testsuite/experimental/filesystem/operations/absolute.cc: Add test
1184 * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
1185 * testsuite/experimental/filesystem/operations/current_path.cc:
1187 * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
1188 * testsuite/experimental/filesystem/operations/status.cc: Likewise.
1189 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
1192 2015-09-11 Jonathan Wakely <jwakely@redhat.com>
1195 * src/filesystem/ops.cc (filesystem::canonical): Allocate buffer for
1196 realpath on Solaris 10.
1199 * src/c++11/random.cc (random_device::_M_getval()): Check read result.
1201 2015-09-11 John Marino <gnugcc@marino.st>
1202 Jonathan Wakely <jwakely@redhat.com>
1205 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Do not test code points
1207 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Likewise.
1208 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Likewise.
1209 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Likewise.
1210 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Likewise.
1211 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
1212 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: Likewise.
1213 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
1214 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: Likewise.
1215 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: Likewise.
1216 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: Likewise.
1217 * testsuite/27_io/objects/wchar_t/10.cc: Likewise.
1218 * testsuite/27_io/objects/wchar_t/11.cc: Likewise.
1219 * testsuite/27_io/objects/wchar_t/12.cc: Likewise.
1220 * testsuite/27_io/objects/wchar_t/13.cc: Likewise.
1222 2015-09-11 Jonathan Wakely <jwakely@redhat.com>
1225 * doc/xml/manual/using.xml: Improve aggregate header documentation.
1226 * doc/html/manual/*: Regenerate.
1227 * include/precompiled/extc++.h: Include <bits/stdc++.h> for C++11
1228 and later and include more extension headers.
1229 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Remove
1231 * testsuite/17_intro/headers/c++200x/: Rename to c++2011.
1232 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Remove
1234 * testsuite/17_intro/headers/c++2014/all_no_exceptions.cc: New.
1235 * testsuite/17_intro/headers/c++2014/all_no_rtti.cc: New.
1236 * testsuite/17_intro/headers/c++2014/all_pedantic_errors.cc: New.
1237 * testsuite/17_intro/headers/c++2014/operator_names.cc: New.
1238 * testsuite/17_intro/headers/c++2014/stdc++.cc: New.
1239 * testsuite/17_intro/headers/c++2014/stdc++_multiple_inclusion.cc:
1243 * doc/xml/manual/intro.xml: Document LWG 2063 and 2064 resolutions.
1244 * doc/html/manual/bugs.html: Regenerate.
1245 * include/bits/basic_string.h (basic_string): Implement N4258. Add
1246 correct exception-specifications and propagate allocators correctly.
1247 * include/bits/basic_string.tcc (basic_string::swap): Propagate
1248 allocators correctly.
1249 * include/debug/string (__gnu_debug::basic_string): Add correct
1250 exceptions-specifications and allcoator-extended constructors.
1251 * testsuite/21_strings/basic_string/allocator/char/copy.cc: New.
1252 * testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
1254 * testsuite/21_strings/basic_string/allocator/char/minimal.cc: New.
1255 * testsuite/21_strings/basic_string/allocator/char/move.cc: New.
1256 * testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
1258 * testsuite/21_strings/basic_string/allocator/char/noexcept.cc: New.
1259 * testsuite/21_strings/basic_string/allocator/char/swap.cc: New.
1260 * testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: New.
1261 * testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
1263 * testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: New.
1264 * testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: New.
1265 * testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
1267 * testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: New.
1268 * testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: New.
1269 * testsuite/util/testsuite_allocator.h (tracker_allocator): Define
1270 defaulted assignment operators.
1273 * include/bits/stl_queue.h (queue, priority_queue): Add
1274 allocator-extended constructors.
1275 * include/bits/stl_stack.h (stack): Likewise.
1276 * testsuite/23_containers/priority_queue/requirements/
1277 uses_allocator.cc: Test allocator-extended constructors.
1278 * testsuite/23_containers/queue/requirements/uses_allocator.cc:
1280 * testsuite/23_containers/stack/requirements/uses_allocator.cc:
1283 2015-09-10 Jonathan Wakely <jwakely@redhat.com>
1285 * testsuite/util/testsuite_allocator.h (PointerBase::operator[]): Add.
1287 * testsuite/21_strings/basic_string/operators/char/1.cc: Verify the
1290 2015-09-09 Jonathan Wakely <jwakely@redhat.com>
1292 * doc/xml/manual/using.xml (_GLIBCXX_ASSERTIONS): Document.
1293 * doc/html/manual/using_macros.html: Regenerate.
1294 * include/bits/c++config: Define _GLIBCXX_ASSERTIONS when
1295 _GLIBCXX_DEBUG is defined. Disable std::string extern templates when
1296 (_GLIBCXX_EXTERN_TEMPLATE, __glibcxx_assert): Depend on
1297 _GLIBCXX_ASSERTIONS instead of _GLIBCXX_DEBUG.
1298 * include/debug/debug.h [!_GLIBCXX_DEBUG]: Define
1299 __glibcxx_requires_non_empty_range and __glibcxx_requires_nonempty.
1300 * include/backward/auto_ptr.h (auto_ptr::operator*,
1301 auto_ptr::operator->): Replace _GLIBCXX_DEBUG_ASSERT with
1303 * include/bits/basic_string.h (basic_string::operator[],
1304 basic_string::front, basic_string::back, basic_string::pop_back):
1306 * include/bits/random.h
1307 (uniform_int_distribution::param_type::param_type,
1308 uniform_real_distribution::param_type::param_type,
1309 normal_distribution::param_type::param_type,
1310 gamma_distribution::param_type::param_type,
1311 bernoulli_distribution::param_type::param_type,
1312 binomial_distribution::param_type::param_type,
1313 geometric_distribution::param_type::param_type,
1314 negative_binomial_distribution::param_type::param_type,
1315 poisson_distribution::param_type::param_type,
1316 exponential_distribution::param_type::param_type): Likewise.
1317 * include/bits/regex.h (match_results::operator[],
1318 match_results::prefix, match_results::suffix): Likewise.
1319 * include/bits/regex.tcc (format, regex_iterator::operator++):
1321 * include/bits/regex_automaton.tcc (_StateSeq::_M_clone): Likewise.
1322 * include/bits/regex_compiler.tcc (_Compiler::_Compiler,
1323 _Compiler::_M_insert_character_class_matcher): Likewise.
1324 * include/bits/regex_executor.tcc (_Executor::_M_dfs): Likewise.
1325 * include/bits/regex_scanner.tcc (_Scanner::_M_advance,
1326 _Scanner::_M_scan_normal): Likewise.
1327 * include/bits/shared_ptr_base.h (__shared_ptr::_M_reset,
1328 __shared_ptr::operator*): Likewise.
1329 * include/bits/stl_iterator_base_funcs.h (__advance): Likewise.
1330 * include/bits/unique_ptr.h (unique_ptr::operator*,
1331 unique_ptr::operator[]): Likewise.
1332 * include/experimental/fs_path.h (path::path(string_type, _Type),
1333 path::iterator::operator++, path::iterator::operator--,
1334 path::iterator::operator*): Likewise.
1335 * include/experimental/string_view (basic_string_view::operator[],
1336 basic_string_view::front, basic_string_view::back,
1337 basic_string_view::remove_prefix): Likewise.
1338 * include/ext/random (beta_distribution::param_type::param_type,
1339 normal_mv_distribution::param_type::param_type,
1340 rice_distribution::param_type::param_type,
1341 pareto_distribution::param_type::param_type,
1342 k_distribution::param_type::param_type,
1343 arcsine_distribution::param_type::param_type,
1344 hoyt_distribution::param_type::param_type,
1345 triangular_distribution::param_type::param_type,
1346 von_mises_distribution::param_type::param_type,
1347 hypergeometric_distribution::param_type::param_type,
1348 logistic_distribution::param_type::param_type): Likewise.
1349 * include/ext/vstring.h (__versa_string::operator[]): Likewise.
1350 * include/std/complex (polar): Likewise.
1351 * include/std/mutex [!_GTHREAD_USE_MUTEX_TIMEDLOCK]
1352 (timed_mutex::~timed_mutex, timed_mutex::unlock,
1353 (recursive_timed_mutex::~timed_mutex, recursive_timed_mutex::unlock):
1355 * include/std/shared_mutex [!PTHREAD_RWLOCK_INITIALIZER]
1356 (__shared_mutex_pthread::__shared_mutex_pthread,
1357 __shared_mutex_pthread::~__shared_mutex_pthread): Likewise.
1358 (__shared_mutex_pthread::lock, __shared_mutex_pthread::try_lock,
1359 __shared_mutex_pthread::unlock, __shared_mutex_pthread::lock_shared,
1360 __shared_mutex_pthread::try_lock_shared): Likewise.
1361 (__shared_mutex_cv::~__shared_mutex_cv, __shared_mutex_cv::unlock,
1362 __shared_mutex_cv::unlock_shared): Likewise.
1363 (shared_timed_mutex::try_lock_until,
1364 shared_timed_mutex::try_lock_shared_until): Likewise.
1365 * include/std/valarray (valarray::valarray(const _Tp*, size_t),
1366 valarray::operator=, valarray::sum, valarray::min, valarray::max,
1367 _DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT, _DEFINE_BINARY_OPERATOR):
1370 2015-09-07 Jonathan Wakely <jwakely@redhat.com>
1372 * include/bits/shared_ptr_base.h (__shared_ptr::operator->): Change
1373 _GLIBCXX_DEBUG_ASSERT to _GLIBCXX_DEBUG_PEDASSERT.
1374 * include/bits/unique_ptr.h (unique_ptr::operator->): Likewise.
1375 * testsuite/20_util/shared_ptr/observers/get.cc: Test operator-> on
1378 * include/bits/regex_compiler.h (_BracketMatcher::_M_is_ready):
1379 Initialize using NSDMI and set using _GLIBCXX_DEBUG_ONLY.
1381 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Rename
1384 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Run on
1386 * testsuite/30_threads/timed_mutex/unlock/2.cc: Run on darwin.
1388 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
1391 * include/std/mutex (recursive_timed_mutex): Fix uses of _Can_lock.
1394 * include/Makefile.am: Add <bits/mutex.h>.
1395 * include/Makefile.in: Regenerate.
1396 * include/bits/mutex.h (__mutex_base, mutex, lock_guard, unique_lock):
1397 New file containing types moved from <mutex>.
1398 * include/std/condition_variable: Include <bits/mutex.h> instead of
1400 * include/std/mutex (__mutex_base, mutex, lock_guard, unique_lock):
1401 Move to <bits/mutex.h>.
1402 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Remove
1403 dg-require-gthreads-timed.
1404 * testsuite/30_threads/recursive_timed_mutex/cons/assign_neg.cc:
1406 * testsuite/30_threads/recursive_timed_mutex/cons/copy_neg.cc:
1408 * testsuite/30_threads/recursive_timed_mutex/dest/
1409 destructor_locked.cc: Likewise.
1410 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1411 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1412 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
1413 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
1414 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1416 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1418 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1420 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1422 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1424 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1425 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1426 * testsuite/30_threads/timed_mutex/cons/assign_neg.cc: Likewise.
1427 * testsuite/30_threads/timed_mutex/cons/copy_neg.cc: Likewise.
1428 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc:
1430 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1431 * testsuite/30_threads/timed_mutex/requirements/standard_layout.cc:
1433 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1434 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1435 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1436 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1437 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1438 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1439 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1440 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
1441 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1442 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1443 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1444 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1445 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1447 2015-09-04 Edward Smith-Rowland <3dw4rd@verizon.net>
1448 Jonathan Wakely <jwakely@redhat.com>
1450 Add C++11 header <cuchar>.
1451 * acinclude.m4 (GLIBCXX_CHECK_UCHAR_H): Define.
1452 * config.h.in: Regenerate.
1453 * configure: Regenerate.
1454 * configure.ac: Check for <uchar.h>.
1455 * include/Makefile.am: Add new headers.
1456 * include/Makefile.in: Regenerate.
1457 * include/c/cuchar: New.
1458 * include/c_compatibility/uchar.h: New.
1459 * include/c_global/cuchar: New.
1460 * include/c_std/cuchar: New.
1461 * include/precompiled/stdc++.h: Include <cuchar>.
1462 * testsuite/17_intro/headers/c++200x/stdc++.cc: Include <uchar.h>.
1463 * testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc:
1466 2015-09-04 Jonathan Wakely <jwakely@redhat.com>
1469 * include/c/cassert: Include <bits/c++config.h>.
1470 * include/c/cerrno: Likewise.
1471 * include/c/cfloat: Likewise.
1472 * include/c/ciso646: Likewise.
1473 * include/c/climits: Likewise.
1474 * include/c_global/cassert: Likewise.
1475 * include/c_global/cerrno: Likewise.
1476 * include/c_global/cfloat: Likewise.
1477 * include/c_global/ciso646: Likewise.
1478 * include/c_global/climits: Likewise.
1479 * include/c_std/cassert: Likewise.
1480 * include/c_std/cerrno: Likewise.
1481 * include/c_std/cfloat: Likewise.
1482 * include/c_std/ciso646: Likewise.
1483 * include/c_std/climits: Likewise.
1485 2015-09-03 Jonathan Wakely <jwakely@redhat.com>
1487 * include/bits/shared_ptr_base.h: Add required header.
1488 * include/std/condition_variable: Likewise.
1489 * include/std/mutex: Remove unused header.
1490 * include/std/shared_mutex: Remove redundant header.
1491 (shared_mutex::shared_mutex()): Replace throw with __throw_bad_alloc.
1494 * src/c++11/debug.cc (_S_debug_messages): Make array const.
1497 * include/experimental/functional (_Not_fn): Add exception
1498 specifications and non-deduced return types.
1499 (not_fn): Add exception specification and wrap pointer-to-member.
1500 * testsuite/experimental/functional/not_fn.cc: Test in SFINAE context
1501 and test pointer-to-member.
1504 * include/bits/stl_iterator_base_funcs.h (next, prev): Add concept
1506 * testsuite/24_iterators/operations/prev_neg.cc: New.
1507 * testsuite/24_iterators/operations/next_neg.cc: New.
1509 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
1511 * testsuite/18_support/pthread_guard.cc: Add *-*-rtems* target
1512 selector to all lines which contain a *-*-cygwin target selector.
1513 * testsuite/20_util/shared_ptr/atomic/3.cc: Likewise.
1514 * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise.
1515 * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
1516 * testsuite/21_strings/basic_string/pthread18185.cc: Likewise.
1517 * testsuite/21_strings/basic_string/pthread33394.cc: Likewise.
1518 * testsuite/21_strings/basic_string/pthread4.cc: Likewise.
1519 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
1520 * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
1521 * testsuite/23_containers/list/pthread1.cc: Likewise.
1522 * testsuite/23_containers/list/pthread5.cc: Likewise.
1523 * testsuite/23_containers/map/pthread6.cc: Likewise.
1524 * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise.
1525 * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise.
1526 * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise.
1527 * testsuite/30_threads/async/42819.cc: Likewise.
1528 * testsuite/30_threads/async/49668.cc: Likewise.
1529 * testsuite/30_threads/async/54297.cc: Likewise.
1530 * testsuite/30_threads/async/any.cc: Likewise.
1531 * testsuite/30_threads/async/async.cc: Likewise.
1532 * testsuite/30_threads/async/launch.cc: Likewise.
1533 * testsuite/30_threads/async/lwg2021.cc: Likewise.
1534 * testsuite/30_threads/async/sync.cc: Likewise.
1535 * testsuite/30_threads/call_once/39909.cc: Likewise.
1536 * testsuite/30_threads/call_once/49668.cc: Likewise.
1537 * testsuite/30_threads/call_once/60497.cc: Likewise.
1538 * testsuite/30_threads/call_once/call_once1.cc: Likewise.
1539 * testsuite/30_threads/condition_variable/54185.cc: Likewise.
1540 * testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
1541 * testsuite/30_threads/condition_variable/members/1.cc: Likewise.
1542 * testsuite/30_threads/condition_variable/members/2.cc: Likewise.
1543 * testsuite/30_threads/condition_variable/members/3.cc: Likewise.
1544 * testsuite/30_threads/condition_variable/members/53841.cc: Likewise.
1545 * testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
1547 * testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
1548 * testsuite/30_threads/condition_variable_any/53830.cc: Likewise.
1549 * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
1550 * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise.
1551 * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
1552 * testsuite/30_threads/future/cons/move.cc: Likewise.
1553 * testsuite/30_threads/future/members/45133.cc: Likewise.
1554 * testsuite/30_threads/future/members/get.cc: Likewise.
1555 * testsuite/30_threads/future/members/get2.cc: Likewise.
1556 * testsuite/30_threads/future/members/share.cc: Likewise.
1557 * testsuite/30_threads/future/members/valid.cc: Likewise.
1558 * testsuite/30_threads/future/members/wait.cc: Likewise.
1559 * testsuite/30_threads/future/members/wait_for.cc: Likewise.
1560 * testsuite/30_threads/future/members/wait_until.cc: Likewise.
1561 * testsuite/30_threads/lock/1.cc: Likewise.
1562 * testsuite/30_threads/lock/2.cc: Likewise.
1563 * testsuite/30_threads/lock/3.cc: Likewise.
1564 * testsuite/30_threads/lock/4.cc: Likewise.
1565 * testsuite/30_threads/mutex/cons/1.cc: Likewise.
1566 * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
1567 * testsuite/30_threads/mutex/lock/1.cc: Likewise.
1568 * testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
1569 * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
1570 * testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
1571 * testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
1572 * testsuite/30_threads/mutex/unlock/1.cc: Likewise.
1573 * testsuite/30_threads/mutex/unlock/2.cc: Likewise.
1574 * testsuite/30_threads/packaged_task/49668.cc: Likewise.
1575 * testsuite/30_threads/packaged_task/60564.cc: Likewise.
1576 * testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
1577 * testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
1578 * testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
1579 * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise.
1580 * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
1581 * testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
1582 * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise.
1583 * testsuite/30_threads/packaged_task/members/at_thread_exit.cc:
1585 * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise.
1586 * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
1587 * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
1588 * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
1589 * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
1590 * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
1591 * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
1592 * testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
1593 * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
1594 * testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
1595 * testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
1596 * testsuite/30_threads/promise/60966.cc: Likewise.
1597 * testsuite/30_threads/promise/cons/1.cc: Likewise.
1598 * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
1599 * testsuite/30_threads/promise/cons/move.cc: Likewise.
1600 * testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
1601 * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise.
1602 * testsuite/30_threads/promise/members/get_future.cc: Likewise.
1603 * testsuite/30_threads/promise/members/get_future2.cc: Likewise.
1604 * testsuite/30_threads/promise/members/set_exception.cc: Likewise.
1605 * testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
1606 * testsuite/30_threads/promise/members/set_value.cc: Likewise.
1607 * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
1608 * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
1609 * testsuite/30_threads/promise/members/swap.cc: Likewise.
1610 * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
1611 * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
1613 * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
1614 * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
1615 * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
1617 * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
1618 * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
1619 * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
1620 * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise.
1621 * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
1622 * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
1624 * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
1625 * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
1626 * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
1628 * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc:
1630 * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
1631 * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
1632 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
1634 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
1636 * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
1638 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
1640 * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
1642 * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
1643 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise.
1644 * testsuite/30_threads/shared_future/cons/move.cc: Likewise.
1645 * testsuite/30_threads/shared_future/members/45133.cc: Likewise.
1646 * testsuite/30_threads/shared_future/members/get.cc: Likewise.
1647 * testsuite/30_threads/shared_future/members/get2.cc: Likewise.
1648 * testsuite/30_threads/shared_future/members/valid.cc: Likewise.
1649 * testsuite/30_threads/shared_future/members/wait.cc: Likewise.
1650 * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
1651 * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
1652 * testsuite/30_threads/shared_lock/cons/1.cc: Likewise.
1653 * testsuite/30_threads/shared_lock/cons/2.cc: Likewise.
1654 * testsuite/30_threads/shared_lock/cons/3.cc: Likewise.
1655 * testsuite/30_threads/shared_lock/cons/4.cc: Likewise.
1656 * testsuite/30_threads/shared_lock/cons/5.cc: Likewise.
1657 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
1658 * testsuite/30_threads/shared_lock/locking/1.cc: Likewise.
1659 * testsuite/30_threads/shared_lock/locking/2.cc: Likewise.
1660 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
1661 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
1662 * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise.
1663 * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise.
1664 * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise.
1665 * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise.
1666 * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise.
1667 * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise.
1668 * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise.
1669 * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise.
1670 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise.
1671 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise.
1672 * testsuite/30_threads/this_thread/1.cc: Likewise.
1673 * testsuite/30_threads/this_thread/2.cc: Likewise.
1674 * testsuite/30_threads/this_thread/3.cc: Likewise.
1675 * testsuite/30_threads/this_thread/4.cc: Likewise.
1676 * testsuite/30_threads/thread/cons/1.cc: Likewise.
1677 * testsuite/30_threads/thread/cons/2.cc: Likewise.
1678 * testsuite/30_threads/thread/cons/3.cc: Likewise.
1679 * testsuite/30_threads/thread/cons/4.cc: Likewise.
1680 * testsuite/30_threads/thread/cons/49668.cc: Likewise.
1681 * testsuite/30_threads/thread/cons/5.cc: Likewise.
1682 * testsuite/30_threads/thread/cons/6.cc: Likewise.
1683 * testsuite/30_threads/thread/cons/7.cc: Likewise.
1684 * testsuite/30_threads/thread/cons/8.cc: Likewise.
1685 * testsuite/30_threads/thread/cons/9.cc: Likewise.
1686 * testsuite/30_threads/thread/cons/moveable.cc: Likewise.
1687 * testsuite/30_threads/thread/members/1.cc: Likewise.
1688 * testsuite/30_threads/thread/members/2.cc: Likewise.
1689 * testsuite/30_threads/thread/members/3.cc: Likewise.
1690 * testsuite/30_threads/thread/members/4.cc: Likewise.
1691 * testsuite/30_threads/thread/members/5.cc: Likewise.
1692 * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise.
1693 * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise.
1694 * testsuite/30_threads/thread/swap/1.cc: Likewise.
1695 * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
1696 * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
1697 * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
1698 * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
1699 * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise.
1700 * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
1701 * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
1702 * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
1703 * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
1704 * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
1705 * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
1706 * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
1707 * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise.
1708 * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
1709 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1710 * testsuite/30_threads/try_lock/1.cc: Likewise.
1711 * testsuite/30_threads/try_lock/2.cc: Likewise.
1712 * testsuite/30_threads/try_lock/3.cc: Likewise.
1713 * testsuite/30_threads/try_lock/4.cc: Likewise.
1714 * testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
1715 * testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
1716 * testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
1717 * testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
1718 * testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
1719 * testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
1720 * testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
1721 * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
1722 * testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
1723 * testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
1724 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
1725 * testsuite/ext/rope/pthread7-rope.cc: Likewise.
1726 * testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc:
1728 * testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc:
1731 2015-09-02 Dmitry Vyukov <dvyukov@google.com>
1733 * include/bits/basic_string.h: Fix data races on _M_refcount.
1735 2015-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
1738 * include/std/mutex (__timed_mutex_impl::_M_try_lock_until): Use
1739 _Derived::_M_timedlock().
1740 (timed_mutex): Add _M_timedlock() and make base class a friend.
1741 (recursive_timed_mutex): Likewise.
1743 2015-08-28 Tim Shen <timshen@google.com>
1746 * include/bits/regex_scanner.tcc (_Scanner<>::_M_scan_normal):
1747 Always returns ordinary char token if the char isn't
1748 considered a special char.
1749 * testsuite/28_regex/regression.cc: New test file for collecting
1750 regression testcases from, typically, bugzilla.
1752 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
1755 * include/bits/range_access.h (valarray, begin, end): Declare.
1756 * testsuite/26_numerics/valarray/range_access.cc: Test const
1758 * testsuite/26_numerics/valarray/range_access2.cc: New.
1760 2015-08-27 John Marino <gnugcc@marino.st>
1762 * acinclude.m4 (*-*-dragonfly*): Change 7 locale support files
1763 from generic to new DragonFly versions.
1764 * configure: Regenerate.
1765 * config/locale/dragonfly/c_locale.cc: Improve locale support.
1766 * config/locale/dragonfly/ctype_members.cc: Likewise.
1767 * config/os/bsd/dragonfly/ctype_configure_char.cc: Likewise.
1768 * config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99.
1769 * config/locale/dragonfly/c_locale.h: New.
1770 * config/locale/dragonfly/codecvt_members.cc: New.
1771 * config/locale/dragonfly/collate_members.cc: New.
1772 * config/locale/dragonfly/monetary_members.cc: New.
1773 * config/locale/dragonfly/numeric_members.cc: New.
1774 * config/locale/dragonfly/time_members.cc: New.
1775 * config/locale/dragonfly/time_members.h: New.
1777 2015-08-27 Jonathan Wakely <jwakely@redhat.com>
1779 * configure: Regenerate.
1781 2015-08-26 Edward Smith-Rowland <3dw4rd@verizon.net>
1782 Jonathan Wakely <jwakely@redhat.com>
1786 * include/bits/random.tcc (generate_canonical): Loop until we get a
1787 result less than one.
1788 * testsuite/26_numerics/random/uniform_real_distribution/operators/
1791 2015-08-26 Jonathan Wakely <jwakely@redhat.com>
1793 * include/bits/shared_ptr.h (__enable_shared_from_this_helper): Use
1795 * include/bits/shared_ptr_base.h (weak_ptr::_M_assign): Don't assign
1796 if ownership is already shared with a shared_ptr object.
1797 (__enable_shared_from_this_helper): Use nullptr.
1798 * testsuite/20_util/enable_shared_from_this/members/const.cc: New.
1799 * testsuite/20_util/enable_shared_from_this/members/reinit.cc: New.
1800 * testsuite/20_util/enable_shared_from_this/requirements/
1801 explicit_instantiation.cc: Instantiate with const and incomplete types.
1803 * include/debug/map.h (map::try_emplace, map::insert_or_assign):
1805 * include/debug/unordered_map (unordered_map::try_emplace,
1806 unordered_map::insert_or_assign): Define.
1809 * src/c++11/debug.cc (_S_debug_messages): Give internal linkage.
1811 2015-08-24 François Dumont <fdumont@gcc.gnu.org>
1814 * include/debug/formatter.h (_Debug_msg_id::__msg_irreflexive_ordering):
1816 * include/debug/functions.h (_Irreflexive_checker): New.
1817 (__is_irreflexive, __is_irreflexive_pred): New.
1818 * include/debug/macros.h
1819 (__glibcxx_check_irreflexive, __glibcxx_check_irreflexive_pred): New
1821 (__glibcxx_check_irreflexive2, __glibcxx_check_irreflexive_pred2): New
1822 macros limited to post-C++11 mode.
1823 * include/debug/debug.h
1824 (__glibcxx_requires_irreflexive, __glibcxx_requires_irreflexive_pred):
1825 New macros, use latter.
1826 (__glibcxx_requires_irreflexive2, __glibcxx_requires_irreflexive_pred2):
1828 * include/bits/stl_algo.h
1829 (partial_sort_copy): Add irreflexive debug check.
1830 (partial_sort_copy): Likewise.
1831 (lower_bound): Likewise.
1832 (upper_bound): Likewise.
1833 (equal_range): Likewise.
1834 (binary_search): Likewise.
1835 (inplace_merge): Likewise.
1836 (includes): Likewise.
1837 (next_permutation): Likewise.
1838 (prev_permutation): Likewise.
1839 (is_sorted_until): Likewise.
1840 (minmax_element): Likewise.
1841 (partial_sort): Likewise.
1842 (nth_element): Likewise.
1845 (stable_sort): Likewise.
1846 (set_union): Likewise.
1847 (set_intersection): Likewise.
1848 (set_difference): Likewise.
1849 (set_symmetric_difference): Likewise.
1850 (min_element): Likewise.
1851 (max_element): Likewise.
1852 * include/bits/stl_algobase.h
1853 (lower_bound): Likewise.
1854 (lexicographical_compare): Likewise.
1855 * include/bits/stl_heap.h
1856 (push_heap): Likewise.
1857 (pop_heap): Likewise.
1858 (make_heap): Likewise.
1859 (sort_heap): Likewise.
1860 (is_heap_until): Likewise.
1861 * testsuite/25_algorithms/lexicographical_compare/debug/
1862 irreflexive_neg.cc: New.
1863 * testsuite/25_algorithms/lower_bound/debug/irreflexive.cc: New.
1864 * testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
1867 2015-08-24 Jonathan Wakely <jwakely@redhat.com>
1870 * include/bits/char_traits.h (char_traits<char>::compare,
1871 char_traits<char>::find, char_traits<char>::move,
1872 char_traits<char>::copy, char_traits<char>::assign): Check for zero
1874 (char_traits<wchar_t>::compare, char_traits<wchar_t>::find,
1875 char_traits<wchar_t>::move, char_traits<wchar_t>::copy,
1876 char_traits<wchar_t>::assign): Likewise.
1877 (char_traits<char16_t>::move, char_traits<char16_t>::copy): Likewise.
1878 (char_traits<char32_t>::move, char_traits<char32_t>::copy): Likewise.
1879 * include/ext/pod_char_traits.h (char_traits<character<>>::move,
1880 char_traits<character<>>::copy): Likewise.
1881 * testsuite/21_strings/char_traits/requirements/char/65049.cc: New.
1882 * testsuite/21_strings/char_traits/requirements/char16_t/65049.cc:
1884 * testsuite/21_strings/char_traits/requirements/char32_t/65049.cc:
1886 * testsuite/21_strings/char_traits/requirements/wchar_t/65049.cc:
1890 * include/bits/random.tcc
1891 (poisson_distribution::param_type::_M_initialize): Use max<double>.
1892 (binomial_distribution::param_type::_M_initialize): Likewise.
1893 * testsuite/17_intro/headers/c++200x/67309.cc: New.
1894 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Remove
1897 2015-08-20 Jonathan Wakely <jwakely@redhat.com>
1900 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Do not run
1902 * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise.
1904 * include/experimental/any (__any_caster): Define at namespace scope
1905 so the name is visible to name lookup.
1906 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
1908 * python/Makefile.am: Ensure gdb.py is installed for libstdc++ not
1910 * python/Makefile.in: Regenerate.
1912 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
1914 * include/c_global/cmath: Fix typo in comment.
1916 2015-08-19 Paolo Carlini <paolo.carlini@oracle.com>
1918 * include/c_global/cmath: Revert fix for libstdc++/58625, no
1919 longer necessary (__builtin_signbit is now type-generic).
1921 2015-08-18 Jonathan Wakely <jwakely@redhat.com>
1924 * testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc:
1925 Fix use of safe-bool idiom that isn't valid in C++11.
1927 * include/bits/ptr_traits.h: Include <bits/move.h> for addressof.
1930 * doc/xml/manual/configure.xml (manual.intro.setup.configure): Add
1931 caveats for --enable-concept-checks. Improve link text.
1932 * doc/xml/manual/diagnostics.xml (std.diagnostics.concept_checking):
1934 * doc/html/*: Regenerate.
1935 * include/bits/stl_deque.h (deque): Only use concept checks in C++03.
1936 * include/bits/stl_stack.h (stack): Likewise.
1937 * include/bits/stl_vector.h (vector): Likewise.
1939 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
1941 * include/experimental/any (any::operator=(const any&)): Move check
1942 for self-assignment.
1943 (any::operator=(any&&)): Add check for self-assignment.
1944 (any::operator=(_ValueType&&)): Constrain template argument.
1945 (any::swap(any&)): Add check for self-swap.
1946 * testsuite/experimental/any/assign/self.cc: Test move and swap.
1947 * testsuite/experimental/any/misc/any_cast_neg.cc: Update dg-error.
1949 2015-08-14 Jonathan Wakely <jwakely@redhat.com>
1951 * include/experimental/array: Add feature-test macro.
1952 * testsuite/experimental/array/neg.cc: Update dg-error.
1954 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1956 * testsuite/experimental/array/neg.s: Remove.
1957 * testsuite/experimental/array/neg.ii.gz: Remove.
1959 2015-08-13 Ville Voutilainen <ville.voutilainen@gmail.com>
1961 Implement std::experimental::fundamentals_v2::make_array and
1962 std::experimental::fundamentals_v2::to_array.
1963 * include/Makefile.am: Add array.
1964 * include/Makefile.in: Add array.
1965 * include/experimental/array: New.
1966 * testsuite/experimental/array/make_array.cc: Likewise.
1967 * testsuite/experimental/array/neg.cc: Likewise.
1968 * doc/html/manual/status.html: Mark make_array as Y.
1969 * doc/xml/manual/status_cxx2017.xml: Likewise.
1971 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
1973 * include/bits/alloc_traits.h: Add feature-test macro.
1974 * include/bits/allocator.h: Likewise.
1975 * include/bits/range_access.h: Likewise.
1976 * include/bits/stl_map.h: Likewise.
1977 * include/bits/unordered_map.h: Likewise.
1979 2015-08-13 Jonathan Wakely <jwakely@redhat.com>
1981 * testsuite/30_threads/mutex/unlock/2.cc: New.
1982 * testsuite/30_threads/recursive_mutex/unlock/2.cc: New.
1983 * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: New.
1984 * testsuite/30_threads/shared_mutex/unlock/1.cc: New.
1985 * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: New.
1986 * testsuite/30_threads/timed_mutex/unlock/2.cc: New.
1988 2015-08-13 Eelis van der Weegen <eelis@eelis.net>
1990 * include/std/shared_mutex (shared_mutex::unlock()): Fix typo.
1992 2015-08-12 Caroline Tice <cmtice@google.com>
1994 PR 66521, Contributed by Eric Gallager
1995 * acinclude.m4 (VTV_CXXLINKFLAGS): Make this variable OS-specific, and
1996 fix the rpath flag to work properly for darwin.
1997 * configure: Regenerated.
1999 2015-08-12 Jonathan Wakely <jwakely@redhat.com>
2001 * doc/xml/manual/appendix_contributing.xml: Update patch email policy.
2002 * doc/xml/manual/status_cxx2017.xml: Update status table.
2003 * doc/html/manual/*: Regenerate.
2005 2015-08-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2007 Implement N4279, Improved insertion interface for unique-key maps.
2008 * include/bits/stl_map.h (try_emplace, insert_or_assign): New.
2009 * include/bits/stl_tree.h (_M_get_insert_unique_pos,
2010 _M_get_insert_equal_pos, _M_get_insert_hint_unique_pos,
2011 _M_get_insert_hint_equal_pos): Make public.
2012 * include/bits/unordered_map.h (try_emplace, insert_or_assign): New.
2013 * testsuite/23_containers/map/modifiers/insert_or_assign/1.cc:
2015 * testsuite/23_containers/map/modifiers/try_emplace/1.cc: Likewise.
2016 * testsuite/23_containers/unordered_map/modifiers/insert_or_assign.cc:
2018 * testsuite/23_containers/unordered_map/modifiers/try_emplace.cc:
2021 2015-08-08 Ville Voutilainen <ville.voutilainen@gmail.com>
2023 Implement N4089 Safe conversions in unique_ptr<T[]> (LWG 2118)
2024 and N4366 LWG 2228: Missing SFINAE rule in unique_ptr
2025 templated assignment
2026 * include/bits/unique_ptr.h
2027 (__remove_cv, __is_derived_Tp): Remove.
2028 (default_delete::default_delete(const default_delete<_Up[]>)):
2029 Constrain with array convertibility.
2030 (default_delete::operator(_Up*)): Turn into a template,
2031 constrain with array convertibility.
2032 (__safe_conversion_up): New, single object version.
2033 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Constrain with deleter
2035 (unique_ptr::operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
2036 is_assignable as a constraint.
2037 (__safe_conversion_up): Array version, renamed from __safe_conversion,
2038 updated to implement N4089.
2039 (__safe_conversion_raw): New.
2040 (unique_ptr(_Up)): Turn into a template, constrain with array
2043 typename conditional<is_reference<deleter_type>::value,
2044 deleter_type, const deleter_type&>::type)): Likewise.
2045 (unique_ptr(_Up, typename
2046 remove_reference<deleter_type>::type&&)): Likewise.
2047 (unique_ptr(unique_ptr<_Up, _Ep>&&)): Likewise.
2048 (operator=(unique_ptr<_Up, _Ep>&&)): Likewise, and add
2049 is_assignable as a constraint (array version).
2050 (reset(_Up)): Turn into a template, constrain with array
2052 (reset(nullptr_t)): New.
2053 * testsuite/20_util/default_delete/48631_neg.cc: Adjust.
2054 * testsuite/20_util/unique_ptr/assign/48635.cc: Likewise.
2055 * testsuite/20_util/unique_ptr/assign/48635_neg.cc: Likewise.
2056 * testsuite/20_util/unique_ptr/assign/cv_qual.cc: Likewise.
2057 * testsuite/20_util/unique_ptr/cons/cv_qual.cc: Likewise.
2058 * testsuite/20_util/unique_ptr/dr2228.cc: New.
2059 * testsuite/20_util/unique_ptr/modifiers/cv_qual.cc: Adjust.
2061 2015-08-05 Nikolai Bozhenov <n.bozhenov@samsung.com>
2063 * testsuite/20_util/enable_shared_from_this/cons/constexpr.cc: Remove
2064 redundant -save-temps option.
2065 * testsuite/20_util/shared_ptr/cons/constexpr.cc: Likewise.
2066 * testsuite/20_util/unique_ptr/cons/constexpr.cc: Likewise.
2067 * testsuite/20_util/weak_ptr/cons/constexpr.cc: Likewise.
2068 * testsuite/30_threads/future/cons/constexpr.cc: Likewise.
2069 * testsuite/30_threads/shared_future/cons/constexpr.cc: Likewise.
2071 2015-08-03 Jonathan Wakely <jwakely@redhat.com>
2074 * include/bits/range_access.h (size, empty, data): Fix _N bad name.
2076 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
2078 * testsuite/experimental/filesystem/operations/current_path.cc: Use
2079 canonical paths for comparisons.
2081 2015-07-30 Tim Shen <timshen@google.com>
2083 * include/bits/regex_automaton.h (_State_base, _State<>):
2084 Remove _TraitsT dependency from _State<>; Make matcher member
2085 into the union to reduce struct size.
2086 * include/bits/regex_automaton.tcc (_State_base<>::_M_print,
2087 _State_base<>::_M_dot, _StateSeq<>::_M_clone):
2088 Adjust to fit the interface. Factor out common parts in
2089 _M_clone as _State<>::_M_has_alt.
2090 * include/bits/regex_executor.h (_Executer<>::_M_lookahead):
2091 Only pass state id instead of the whole state.
2092 * include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
2093 _Executer<>::_M_lookahead): Adjust to fit the interface.
2094 * include/std/regex: Include <ext/aligned_buffer.h>
2096 2015-07-30 Jonathan Wakely <jwakely@redhat.com>
2098 * include/experimental/any (any::operator=(const any&)): Check for
2100 * testsuite/experimental/any/assign/self.cc: New.
2101 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
2103 2015-07-29 Jonathan Wakely <jwakely@redhat.com>
2106 * testsuite/lib/libstdc++.exp (v3-build_support): Compile
2107 testsuite_shared.cc with -std=gnu++98.
2109 2015-07-29 Ville Voutilainen <ville.voutilainen@gmail.com>
2111 * include/bits/range_access.h: Change class to typename in every
2113 (size, empty, data): New functions from N4280.
2114 * testsuite/24_iterators/container_access.cc: New.
2117 * include/bits/functional_hash.h (__hash_enum): New.
2118 (hash): Derive from __hash_enum.
2119 * testsuite/20_util/hash/60970.cc: New.
2121 2015-07-29 Tim Shen <timshen@google.com>
2124 * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
2125 _BracketMatcher<>::_M_add_collating_element): Change signature
2126 to make checking the and of bracket expression easier.
2127 * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
2128 Treat '-' as a valid literal if it's at the end of bracket expression.
2129 * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
2132 2015-07-24 Jonathan Wakely <jwakely@redhat.com>
2134 * include/bits/atomic_futex.h [_GLIBCXX_HAVE_LINUX_FUTEX]
2135 (_M_load_and_test_until): Whitespace.
2136 (_M_load_and_test): Value-initialize the unused durations.
2137 (_M_load_when_equal): Add missing return value.
2139 2015-07-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
2141 * fragment.am (AM_CPPFLAGS): Add CPPFLAGS.
2142 * Makefile.in: Regenerate.
2143 * doc/Makefile.in: Regenerate.
2144 * include/Makefile.in: Regenerate.
2145 * libsupc++/Makefile.in: Regenerate.
2146 * po/Makefile.in: Regenerate.
2147 * python/Makefile.in: Regenerate.
2148 * src/Makefile.in: Regenerate.
2149 * src/c++11/Makefile.in: Regenerate.
2150 * src/c++98/Makefile.in: Regenerate.
2151 * src/filesystem/Makefile.in: Regenerate.
2152 * testsuite/Makefile.in: Regenerate.
2154 2015-07-23 DJ Delorie <dj@redhat.com>
2156 * include/bits/functional_hash.h: Add specializations for __intN
2159 * include/ext/pb_ds/detail/thin_heap_/thin_heap_.hpp (__gnu_pbds):
2160 Guard against values that might exceed size_t's precision.
2162 2015-07-20 Jason Merrill <jason@redhat.com>
2164 * include/bits/c++config: Fix abi_tag in special modes.
2166 2015-07-19 Jonathan Wakely <jwakely@redhat.com>
2168 * doc/xml/manual/status_cxx2017.xml: Fix URL for N4279.
2169 * doc/html/manual/status.html: Regenerate.
2171 2015-07-17 Jonathan Wakely <jwakely@redhat.com>
2173 * doc/xml/manual/status_cxx2011.xml: Add caveats for native_handle.
2174 * doc/html/manual/status.html: Regenerate.
2176 2015-07-16 François Dumont <fdumont@gcc.gnu.org>
2178 * include/bits/stl_algobase.h (__miter_base): Move...
2179 * include/bits/cpp_type_traits.h: ...here.
2180 * include/debug/functions.h (__foreign_iterator_aux): Use latter.
2181 * testsuite/23_containers/vector/debug/insert7_neg.cc: New.
2183 2015-07-13 Jonathan Wakely <jwakely@redhat.com>
2186 * src/c++11/codecvt.cc (__codecvt_utf8_utf16_base::do_in): Override
2187 endianness bit in mode.
2188 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/66855.cc: New.
2190 * include/bits/c++config (_GLIBCXX_NOEXCEPT_IF): Define.
2191 * include/bits/forward_list.h (forward_list::swap): Make noexcept
2193 * include/bits/hashtable.h (_Hashtable::swap): Do not use
2195 * include/bits/stl_bvector.h (vector<bool>::swap): Make noexcept
2197 * include/bits/stl_deque.h (deque::swap): Likewise.
2198 (swap(deque&, deque&)): Use _GLIBCXX_NOEXCEPT_IF.
2199 * include/bits/stl_list.h (list::swap): Make noexcept unconditional.
2200 (swap(list&, list&)): Use _GLIBCXX_NOEXCEPT_IF.
2201 * include/bits/stl_map.h (map::swap, swap(map&, map&)): Use
2202 _GLIBCXX_NOEXCEPT_IF, do not depend on _S_nothrow_swap.
2203 * include/bits/stl_multimap.h (multimap::swap,
2204 swap(multimap&, multimap&)): Likewise.
2205 * include/bits/stl_multiset.h (multiset::swap,
2206 swap(multiset&, multiset&)): Likewise.
2207 * include/bits/stl_set.h (set::swap, swap(set&, set&)): Likewise.
2208 * include/bits/stl_tree.h (_Rb_tree::swap,
2209 swap(_Rb_tree&, _Rb_tree&)): Likewise.
2210 * include/bits/stl_vector.h (vector::swap): Make noexcept
2212 (swap(vector&, vector&)): Use _GLIBCXX_NOEXCEPT_IF.
2213 * include/debug/deque (deque::swap, swap): Likewise.
2214 * include/debug/forward_list (swap): Add noexcept.
2215 * include/debug/list (list::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
2216 * include/debug/map.h (map::swap, swap): Likewise.
2217 * include/debug/multimap.h (multimap::swap, swap): Likewise.
2218 * include/debug/multiset.h (multiset::Swap, swap): Likewise.
2219 * include/debug/set.h (set::swap, swap): Likewise.
2220 * include/debug/unordered_map (unordered_map::swap,
2221 unordered_multimap::swap, swap): Likewise.
2222 * include/debug/unordered_set (unordered_set::swap,
2223 unordered_multiset::swap, swap): Likewise.
2224 * include/debug/vector (vector::swap, swap): Likewise.
2225 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()):
2227 * include/profile/deque (deque::swap, swap): Use _GLIBCXX_NOEXCEPT_IF.
2228 * include/profile/forward_list (swap): Add noexcept.
2229 * include/profile/list (list::swap, swap) : Use _GLIBCXX_NOEXCEPT_IF.
2230 * include/profile/map.h (map::swap, swap): Likewise.
2231 * include/profile/multimap.h (multimap::swap, swap): Likewise.
2232 * include/profile/multiset.h (multiset::swap, swap): Likewise.
2233 * include/profile/set.h (set::swap, swap): Likewise.
2234 * include/profile/unordered_map (swap): Likewise.
2235 * include/profile/unordered_set (swap): Likewise.
2236 * include/profile/vector (vector::swap, swap): Likewise. Remove
2237 overloads for swapping rvalues.
2238 * testsuite/23_containers/deque/allocator/noexcept.cc: Update tests
2239 for noexcept on swap.
2240 * testsuite/23_containers/forward_list/allocator/noexcept.cc:
2242 * testsuite/23_containers/list/allocator/noexcept.cc: Likewise.
2243 * testsuite/23_containers/map/allocator/noexcept.cc: Likewise.
2244 * testsuite/23_containers/multimap/allocator/noexcept.cc: Likewise.
2245 * testsuite/23_containers/multiset/allocator/noexcept.cc: Likewise.
2246 * testsuite/23_containers/set/allocator/noexcept.cc: Likewise.
2247 * testsuite/23_containers/unordered_map/allocator/noexcept.cc:
2249 * testsuite/23_containers/unordered_multimap/allocator/noexcept.cc:
2251 * testsuite/23_containers/unordered_multiset/allocator/noexcept.cc:
2253 * testsuite/23_containers/unordered_set/allocator/noexcept.cc:
2255 * testsuite/23_containers/vector/allocator/noexcept.cc: Likewise.
2256 * testsuite/23_containers/vector/bool/allocator/noexcept.cc: Likewise.
2257 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line
2260 2015-07-13 John Marino <gnugcc@marino.st>
2262 * config/os/bsd/dragonfly/os_defines.h (_GLIBCXX_USE_C99_CHECK,
2263 _GLIBCXX_USE_C99_DYNAMIC, _GLIBCXX_USE_C99_LONG_LONG_CHECK,
2264 _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC): Define.
2266 2015-07-05 François Dumont <fdumont@gcc.gnu.org>
2268 * include/bits/hashtable.h (_Hashtable<>::__rehash_policy): Do not
2270 * testsuite/23_containers/unordered_set/max_load_factor/robustness.cc:
2273 2015-07-03 Jonathan Wakely <jwakely@redhat.com>
2275 * doc/xml/manual/status_cxx2017.xml: Update status table.
2276 * doc/html/manual/*: Regenerate.
2278 2015-07-03 Ville Voutilainen <ville.voutilainen@gmail.com>
2280 Implement std::experimental::fundamentals_v2::propagate_const.
2281 * include/Makefile.am: Add propagate_const.
2282 * include/Makefile.in: Regenerate.
2283 * include/experimental/propagate_const: New.
2284 * testsuite/experimental/propagate_const/assignment/copy.cc: Likewise.
2285 * testsuite/experimental/propagate_const/assignment/move.cc: Likewise.
2286 * testsuite/experimental/propagate_const/assignment/move_neg.cc:
2288 * testsuite/experimental/propagate_const/cons/copy.cc: Likewise.
2289 * testsuite/experimental/propagate_const/cons/default.cc: Likewise.
2290 * testsuite/experimental/propagate_const/cons/move.cc: Likewise.
2291 * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
2292 * testsuite/experimental/propagate_const/hash/1.cc: Likewise.
2293 * testsuite/experimental/propagate_const/observers/1.cc: Likewise.
2294 * testsuite/experimental/propagate_const/relops/1.cc: Likewise.
2295 * testsuite/experimental/propagate_const/requirements1.cc: Likewise.
2296 * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
2297 * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
2298 * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
2299 * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
2300 * testsuite/experimental/propagate_const/swap/1.cc: Likewise.
2301 * testsuite/experimental/propagate_const/typedefs.cc: Likewise.
2303 2015-07-02 Jonathan Wakely <jwakely@redhat.com>
2305 * acinclude.m4 (GLIBCXX_DEFAULT_ABI): Change valid arguments for
2306 --with-default-libstdcxx-abi
2307 * configure: Regenerate.
2308 * doc/xml/manual/configure.xml: Document valid arguments.
2310 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
2312 * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
2313 to avoid unused variable warning.
2314 (__set_and_release): Use __p after __atomic_store to avoid unused
2317 2015-07-01 Jonathan Wakely <jwakely@redhat.com>
2319 * include/bits/alloc_traits.h (__alloctr_rebind): Remove.
2320 (__allocator_traits_base): New base class.
2321 (__alloc_rebind): Reimplement in terms of detection idiom.
2322 (allocator_traits): Derive from __allocator_traits_base. Reimplement
2323 nested types in terms of detection idiom. Simplify SFINAE constraints
2324 on overloaded static member functions.
2325 * include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
2326 of __alloctr_rebind.
2327 * testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
2328 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
2329 dg-error line number.
2331 * include/bits/ptr_traits.h (__ptrtr_elt_type, __ptrtr_diff_type,
2332 __ptrtr_rebind, __ptrtr_not_void): Remove
2333 (__get_first_arg, __replace_first_arg, __make_not_void): Define new
2335 (__detected_or_): New detection trait.
2336 (pointer_traits): Use new traits.
2337 * testsuite/20_util/pointer_traits/pointer_to.cc: Add rebind member.
2338 * testsuite/20_util/pointer_traits/requirements/
2339 explicit_instantiation.cc: Use valid arguments to pointer_traits.
2341 * doc/xml/manual/status_cxx2017.xml: Update status table.
2342 * include/experimental/type_traits (void_t, is_detected,
2343 is_detected_v, detected_t, detected_or, detected_or_t,
2344 is_detected_exact, is_detected_exact_v, is_detected_convertible,
2345 is_detected_convertible_v): Define.
2346 * include/std/type_traits (__detector, __detected_or, __detected_or_t,
2347 __detected_or_t_): Define.
2348 * testsuite/experimental/type_traits/detection.cc: New.
2350 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
2352 * doc/Makefile.am (stamp-pdf-doxygen): Grep for LaTeX errors in log.
2353 * doc/Makefile.in: Regenerate.
2355 * include/bits/stl_pair.h: Replace class keyword with typename.
2357 2015-06-30 Ville Voutilainen <ville.voutilainen@gmail.com>
2359 Implement N4387, "Improving pair and tuple", and LWG 2367.
2361 * include/bits/stl_pair.h (_ConstructiblePair,
2362 _ImplicitlyConvertiblePair, _MoveConstructiblePair,
2363 _ImplicitlyMoveConvertiblePair): New.
2364 (pair()): Constrain it.
2365 (pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
2366 pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
2367 pair(pair<_U1, _U2>&&)): Make conditionally explicit.
2368 * include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
2369 (tuple()): Constrain it.
2370 (tuple(const _UElements&...), tuple(_UElements&&...),
2371 tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
2372 tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
2373 tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
2374 tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
2375 tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
2376 tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
2377 tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
2378 tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
2379 conditionally explicit.
2380 * include/experimental/functional (__boyer_moore_array_base): Name
2381 array type explicitly instead of using an empty braced-init-list.
2382 * testsuite/20_util/pair/cons/explicit_construct.cc: New.
2383 * testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
2384 * testsuite/20_util/pair/requirements/dr2367.cc: New.
2385 * testsuite/20_util/tuple/cons/explicit_construct.cc: New.
2386 * testsuite/20_util/tuple/requirements/dr2367.cc: New.
2388 2015-06-30 Jonathan Wakely <jwakely@redhat.com>
2390 * configure: Regenerate.
2392 2015-06-29 François Dumont <fdumont@gcc.gnu.org>
2394 * include/bits/stl_iterator_base_types.h (_Iter_base): Limit definition
2396 * include/debug/functions.h
2397 (__gnu_debug::__valid_range, __gnu_debug::__base): Move...
2398 * include/debug/safe_iterator.h
2399 (__gnu_debug::_Sequence_traits): New.
2400 (__gnu_debug::__get_distance_from_begin): New.
2401 (__gnu_debug::__get_distance_to_end): New.
2402 (__gnu_debug::_Safe_iterator<>::_M_valid_range): Expose iterator range
2403 distance information. Add optional check_dereferenceable parameter,
2405 (__gnu_debug::_Distance_precision, __gnu_debug::__get_distance): Move
2406 default definition...
2407 (__gnu_debug::__get_distance): New overload for _Safe_iterator.
2408 (__gnu_debug::__unsafe): Likewise.
2409 * include/debug/helper_functions.h: ...here. New.
2410 (__gnu_debug::__unsafe): New helper function to remove safe iterator
2412 * include/debug/stl_iterator.h: New. Include latter.
2413 * include/bits/stl_iterator.h: Include latter in debug mode.
2414 * include/debug/stl_iterator.tcc: Adapt.
2415 * include/debug/safe_local_iterator.h (__gnu_debug::__get_distance): Add
2416 overload for _Safe_local_iterator.
2417 (__gnu_debug::__unsafe): Likewise.
2418 * include/debug/safe_local_iterator.tcc: Adapt.
2419 * include/debug/macros.h (__glibcxx_check_valid_range2): New.
2420 (__glibcxx_check_insert_range): Add _Dist parameter.
2421 (__glibcxx_check_insert_range_after): Likewise.
2422 (__glibcxx_check_string, __glibcxx_check_string_len): Implement using
2423 _GLIBCXX_DEBUG_PEDASSERT.
2424 * include/debug/deque (deque<>::assign): Remove iterator debug layer
2426 (deque<>::insert): Likewise.
2427 * include/debug/forward_list (__glibcxx_check_valid_fl_range): New.
2428 (forward_list<>::splice_after): Use latter.
2429 (forward_list<>::assign): Remove iterator debug layer when possible.
2430 (forward_list<>::insert_after): Likewise.
2431 (__gnu_debug::_Sequence_traits<>): Partial specialization.
2432 * include/debug/list (list<>::assign): Remove iterator debug layer when
2434 (list<>::insert): Likewise.
2435 [__gnu_debug::_Sequence_traits<>]: Partial specialization pre C++11 ABI.
2436 * include/debug/map.h (map<>::insert): Remove iterator debug layer when
2438 * include/debug/multimap.h (multimap<>::insert): Likewise.
2439 * include/debug/set.h (set<>::insert): Likewise.
2440 * include/debug/multiset.h (multiset<>::insert): Likewise.
2441 * include/debug/string (basic_string<>::append, basic_string<>::assign,
2442 basic_string<>::insert, basic_string<>::replace): Likewise.
2443 * include/debug/unordered_map
2444 (unordered_map<>::insert, unordered_multimap<>::insert): Likewise.
2445 * include/debug/unordered_set
2446 (unordered_set<>::insert, unordered_multiset<>insert): Likewise.
2447 * include/debug/vector
2448 (vector<>::assign, vector<>::insert): Likewise.
2449 * include/Makefile.am: Add new debug headers.
2450 * include/Makefile.in: Regenerate.
2452 2015-06-26 Jonathan Wakely <jwakely@redhat.com>
2454 * doc/xml/manual/intro.xml: Document LWG 2108 status.
2455 * include/bits/alloc_traits.h (allocator_traits::is_always_equal):
2457 * include/bits/allocator.h (allocator::is_always_equal): Likewise.
2458 * include/bits/forward_list.h
2459 (forward_list::operator=(forward_list&&)): Use __bool_constant.
2460 (forward_list::swap(forward_list&)): Add noexcept.
2461 * include/bits/hashtable.h (_Hashtable::operator=(_Hashtable&&)):
2463 (_Hashtable::swap(_Hashtable&)): Likewise.
2464 * include/bits/stl_deque.h (_Deque_base::_Deque_base(_Deque_base&&)):
2465 Use _Alloc_traits::is_always_equal.
2466 (deque::operator=(deque&&)): Likewise.
2467 (deque::_M_move_assign1(deque&&, false_type)): Add comment and use
2469 (swap(deque&, deque&)): Add noexcept.
2470 * include/bits/stl_list.h (list::operator=(list&&)): Use
2472 (swap(list&, list&)): Add noexcept.
2473 * include/bits/stl_map.h (map::swap(map&)): Include _Compare in
2475 (swap(map&, map&)): Add noexcept.
2476 * include/bits/stl_multimap.h (multimap::swap(multimap&)): Include
2477 _Compare in noexcept.
2478 (swap(multimap&, multimap&)): Add noexcept.
2479 * include/bits/stl_multiset.h (multiset::swap(multiset&)): Include
2480 _Compare in noexcept.
2481 (swap(multiset&, multiset&)): Add noexcept.
2482 * include/bits/stl_set.h (set::swap(set&)): Include _Compare in
2484 (swap(set&, set&)): Add noexcept.
2485 * include/bits/stl_tree.h (_Rb_tree::operator=(_Rb_tree&&)): Include
2486 _Compare in noexcept.
2487 (_Rb_tree::_Rb_tree(_Rb_tree&&, _Node_alloc_type&&)): Use
2489 * include/bits/stl_vector.h (vector::operator=(vector&&)): Use
2491 (swap(vector&, vector&)): Add noexcept.
2492 * include/bits/unordered_map.h (swap(unordered_map&, unordered_map&),
2493 swap(unordered_multimap& unordered_multimap&)): Add noexcept.
2494 * include/bits/unordered_set.h (swap(unordered_set&, unordered_set&),
2495 swap(unordered_multiset& unordered_multiset&)): Add noexcept.
2496 * include/ext/alloc_traits.h (__allocator_always_compares_equal):
2498 (__alloc_traits::_S_always_equal()): Use is_always_equal instead of
2499 __allocator_always_compares_equal.
2500 * include/ext/array_allocator.h (array_allocator::is_always_equal):
2502 * include/std/scoped_allocator (__any_of, __propagate_on_copy,
2503 __propagate_on_move, __propagate_on_swap): Remove.
2504 (scoped_allocator_adaptor::propagate_on_container_copy_assignment,
2505 scoped_allocator_adaptor::propagate_on_container_move_assignment,
2506 scoped_allocator_adaptor::propagate_on_container_swap): Define with
2507 __and_ instead of __any_of.
2508 (scoped_allocator_adaptor::is_always_equal): Define.
2509 * testsuite/20_util/allocator_traits/members/is_always_equal.cc: New.
2510 * testsuite/20_util/scoped_allocator/propagation.cc: Make traits
2511 derive from true_type or false_type.
2512 * testsuite/23_containers/deque/allocator/move_assign-2.cc: Add
2513 is_always_equal member and remove the trait specialization.
2514 * testsuite/23_containers/vector/52591.cc: Likewise.
2515 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
2516 Adjust dg-error line number.
2517 * testsuite/23_containers/deque/requirements/dr438/
2518 constructor_1_neg.cc: Likewise.
2519 * testsuite/23_containers/deque/requirements/dr438/
2520 constructor_2_neg.cc: Likewise.
2521 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
2523 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2525 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2527 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2529 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
2531 * testsuite/23_containers/vector/requirements/dr438/
2532 constructor_1_neg.cc: Likewise.
2533 * testsuite/23_containers/vector/requirements/dr438/
2534 constructor_2_neg.cc: Likewise.
2535 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
2538 * include/bits/stl_bvector.h (vector<bool>::vector()): Add noexcept.
2539 * include/bits/stl_map.h (map::map()): Likewise.
2540 * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
2541 * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
2542 * include/bits/stl_set.h (set::set()): Likewise.
2544 2015-06-25 Jonathan Wakely <jwakely@redhat.com>
2546 * include/bits/locale_conv.h (__do_str_codecvt): Set __count.
2548 2015-06-24 François Dumont <fdumont@gcc.gnu.org>
2550 * include/bits/basic_string.h (basic_string<>::front()): Add !empty
2552 (basic_string<>::back()): Likewise.
2553 (basic_string<>::pop_back()): Likewise.
2555 2015-06-24 Paolo Carlini <paolo.carlini@oracle.com>
2557 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
2558 dg-error line numbers.
2559 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2562 2015-06-23 François Dumont <fdumont@gcc.gnu.org>
2564 * include/debug/array: Include <array>. Add version namespace when
2565 specializing tuple interface to array. Add specialization for
2566 __is_tuple_like_impl.
2567 * include/profile/array: Likewise.
2568 * include/std/array: Include <utility>. Add specialization for
2569 __is_tuple_like_impl.
2571 (__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
2572 * include/std/utility: ... here. Include <type_traits>.
2573 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
2574 dg-error line number.
2575 * testsuite/23_containers/array/tuple_interface/
2576 tuple_element_debug_neg.cc: Likewise.
2578 2015-06-22 Jonathan Wakely <jwakely@redhat.com>
2580 * testsuite/26_numerics/complex/value_operations/1.cc: Use
2581 non-negative rho argument.
2583 * include/debug/list (__gnu_debug::list): Use allocator-aware
2584 _Safe_container base.
2585 * include/debug/string (__gnu_debug::basic_string): Use
2586 allocator-aware _Safe_container base for cxx11 ABI.
2588 * include/bits/locale_conv.h (__do_str_codecvt): Handle empty range.
2589 (wstring_convert): Move into __cxx11 namespace.
2590 (wbuffer_convert(streambuf*, _Codecvt*, state_type)): Fix exception
2594 * include/bits/stl_uninitialized.h
2595 (__uninitialized_copy::__uninit_copy): Cast expression to void.
2597 2015-06-17 Jonathan Wakely <jwakely@redhat.com>
2600 * include/bits/list.tcc (_List_base::_M_clear()): Use allocator traits.
2601 (list::list(const list&)): Use allocator propagation trait. Use
2602 _M_assign_dispatch to copy elements.
2603 * include/bits/stl_list.h (_List_node): Use __aligned_membuf in C++11.
2604 (_List_node::_M_valptr()): Add accessor for stored value.
2605 (_List_iterator, _List_const_iterator, _List_base): Use _M_valptr().
2606 (_List_base, list): Use allocator traits.
2607 (_List_base::_M_get_Tp_allocator, _List_base::get_allocator): Remove.
2608 (_List_base::_M_move_nodes): New function.
2609 (_List_base(_List_base&&)): Use _M_move_nodes.
2610 (_List_base(_List_base&&, _Node_alloc_type&&)): New constructor.
2611 (list::_M_create_node, list::_M_erase, list::max_size): Use allocator
2613 (list(size_type)): Add allocator parameter.
2614 (list(const list&)): Use allocator propagation trait.
2615 (list(const list&, const allocator_type&)): New constructor.
2616 (list(list&&, const allocator_type&)): Likewise.
2617 (list::operator=(list&&), list::swap(list&)): Use allocator
2619 (list::_M_move_assign): New functions.
2620 * include/debug/list: Add allocator-extended constructors.
2621 * include/profile/list: Likewise.
2622 * python/libstdcxx/v6/printers.py (get_value_from_list_node): New
2623 function to get value from _List_node.
2624 (StdListPrinter): Use get_value_from_list_node.
2625 * testsuite/23_containers/list/allocator/copy.cc: New.
2626 * testsuite/23_containers/list/allocator/copy_assign.cc: New.
2627 * testsuite/23_containers/list/allocator/minimal.cc: New.
2628 * testsuite/23_containers/list/allocator/move.cc: New.
2629 * testsuite/23_containers/list/allocator/move_assign.cc: New.
2630 * testsuite/23_containers/list/allocator/noexcept.cc: New.
2631 * testsuite/23_containers/list/allocator/swap.cc: New.
2632 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
2633 Adjust dg-prune-output line number.
2634 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
2636 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
2639 * include/bits/forward_list.h
2640 (_Fwd_list_base(const _Node_alloc_type&)): Change parameter to
2642 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Likewise.
2643 (forward_list(const _Alloc&)): Split default constructor out to
2645 (forward_list(forward_list&&, const _Alloc&)): Move elements if base
2647 (forward_list::_M_move_assign(forward_list&&, true_type)): Replace
2648 swap call with two assignments.
2649 * include/bits/forward_list.tcc
2650 (_Fwd_list_base(_Fwd_list_base&&, const _Node_alloc_type&)): Don't
2651 move elements when allocators are not equal.
2652 * include/debug/forward_list (forward_list(const allocator_type&)):
2653 Split default constructor out to separate function.
2654 * include/profile/forward_list (forward_list(const _Alloc&)):
2657 * include/bits/forward_list.h (forward_list::_M_get_Node_allocator):
2658 Remove unnecessary uses of operator& and static_cast.
2659 * include/bits/forward_list.tcc
2660 (forward_list::operator=(const forward_list&)): Use __addressof
2661 instead of operator&.
2662 (forward_list::remove(const _Tp&), forward_list::remove(_Pred)):
2663 Remove invalid static_casts.
2664 * include/debug/forward_list: Use __addressof instead of operator&.
2665 * testsuite/23_containers/forward_list/modifiers/addressof.cc: New.
2667 * include/ext/alloc_traits.h (__alloc_traits::_S_nothrow_swap()): Use
2668 __is_nothrow_swappable.
2670 2015-06-16 Jonathan Wakely <jwakely@redhat.com>
2672 * include/bits/allocated_ptr.h (__allocated_ptr): Use __addressof.
2674 * include/bits/list.tcc (list::operator=(const list&), list::merge):
2675 Use __addressof instead of operator&.
2676 (list::sort): Use array-to-pointer decay instead of operator&.
2677 * include/bits/stl_list.h (list::splice): Use __addressof instead of
2679 * include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
2681 * include/debug/functions.h (__check_singular): Likewise.
2682 * include/debug/list (list::splice, list::merge): Likewise.
2683 * testsuite/23_containers/list/modifiers/addressof.cc: New.
2686 * src/c++11/thread.cc (thread::_M_make_thread): Replace shared_ptr
2689 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
2691 * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
2694 * src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
2697 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2701 * config/cpu/alpha/atomic_word.h: Remove.
2702 * config/cpu/ia64/atomic_word.h: Remove.
2703 * config/cpu/powerpc/atomic_word.h: Remove.
2704 * config/os/aix/atomic_word.h: Remove.
2705 * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
2706 Use generic definition.
2708 2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2712 * * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
2713 (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
2714 * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
2715 * include/ext/atomicity.h: Likewise.
2716 * include/tr1/shared_ptr.h: Likewise.
2717 * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
2719 (__set_and_release): Likewise.
2720 * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
2722 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
2723 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
2726 2015-06-12 Jonathan Wakely <jwakely@redhat.com>
2728 * include/std/tuple (__is_tuple_like_impl): Disambiguate array in
2729 debug and profile modes.
2730 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
2731 for swap in C++11 and later.
2733 2015-06-09 Jonathan Wakely <jwakely@redhat.com>
2736 * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
2739 2015-06-08 Jonathan Wakely <jwakely@redhat.com>
2742 * testsuite/22_locale/conversions/string/66441.cc: New.
2743 * include/bits/locale_conv.h (__do_str_codecvt): Reserve enough space
2744 in the output string for BOM and complete result.
2747 * src/c++11/codecvt.cc (write_utf16_code_point): Use adjust_byte_order
2748 for single UTF-16 units.
2749 * testsuite/22_locale/codecvt/codecvt_utf16/66417.cc: New.
2751 2015-06-07 François Dumont <fdumont@gcc.gnu.org>
2753 * include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
2754 outer scope and rename to ...
2755 (std::__hash_is_transparent<>): ... this.
2756 * include/debug/stl_map.h (map::find<>,
2757 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
2758 member function templates to perform heterogeneous lookup.
2759 * include/debug/stl_multimap.h (multimap::find<>,
2760 multimap::lower_bound<>, multimap::upper_bound<>,
2761 multimap::equal_range<>): Likewise.
2762 * include/debug/stl_multiset.h (multiset::find<>,
2763 multiset::lower_bound<>, multiset::upper_bound<>,
2764 multiset::equal_range<>): Likewise.
2765 * include/debug/stl_set.h (set::find<>,
2766 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2767 * include/profile/stl_map.h (map::find<>, map::count<>,
2768 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
2769 * include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
2770 multimap::lower_bound<>, multimap::upper_bound<>,
2771 multimap::equal_range<>): Likewise.
2772 * include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
2773 multiset::lower_bound<>, multiset::upper_bound<>,
2774 multiset::equal_range<>): Likewise.
2775 * include/profile/stl_set.h (set::find<>, set::count<>,
2776 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
2777 * testsuite/23_containers/map/operations/1.cc: Check const variants.
2778 * testsuite/23_containers/multimap/operations/1.cc: Likewise.
2779 * testsuite/23_containers/multiset/operations/1.cc: Likewise.
2780 * testsuite/23_containers/set/operations/1.cc: Likewise.
2782 2015-06-05 Jonathan Wakely <jwakely@redhat.com>
2784 * doc/xml/manual/status_cxx2017.xml: Update status tables.
2785 * doc/html/manual/*: Regenerate.
2786 * include/std/type_traits (bool_constant): Define.
2787 * testsuite/20_util/bool_constant/requirements.cc: New.
2788 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
2789 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
2791 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
2794 * include/std/shared_mutex (__shared_mutex_pthread,
2795 __shared_mutex_cv): New helper types implementing the shared mutex
2797 (shared_mutex): New type for C++17.
2798 (shared_timed_mutex): Derive from one of the new helper types.
2799 * testsuite/30_threads/shared_mutex/cons/1.cc: New.
2800 * testsuite/30_threads/shared_mutex/cons/assign_neg.cc: New.
2801 * testsuite/30_threads/shared_mutex/cons/copy_neg.cc: New.
2802 * testsuite/30_threads/shared_mutex/requirements/standard_layout.cc:
2804 * testsuite/30_threads/shared_mutex/try_lock/1.cc: New.
2805 * testsuite/30_threads/shared_mutex/try_lock/2.cc: New.
2807 2015-06-05 Ville Voutilainen <ville.voutilainen@gmail.com>
2809 Add __is_nothrow_swappable and take it into use.
2810 * include/bits/algorithmfwd.h (swap): Only declare for C++98 mode.
2811 * include/bits/move.h (swap): Add constraints in C++11 and later.
2812 * include/bits/stl_pair.h (swap): Use __is_nothrow_swappable
2813 for the free swap function for pair.
2814 * include/bits/stl_queue.h (swap): Use __is_nothrow_swappable
2815 for the free swap functions for queue and priority_queue.
2816 * include/bits/stl_stack.h (swap): Use __is_nothrow_swappable
2817 for the free swap function for stack.
2818 * include/debug/array (swap): Use __is_nothrow_swappable
2819 for the free swap function for array.
2820 * include/profile/array (swap): Likewise.
2821 * include/std/array (swap): Likewise.
2822 * include/std/tuple (_Tuple_impl::_M_swap): Use __is_nothrow_swappable.
2823 * include/std/type_traits (__is_swappable_impl::__is_swappable,
2824 __is_nothrow_swappable_impl, __is_nothrow_swappable): New.
2825 * testsuite/20_util/is_nothrow_swappable/requirements/
2826 explicit_instantiation.cc: New.
2827 * testsuite/20_util/is_nothrow_swappable/requirements/typedefs.cc:
2829 * testsuite/20_util/is_nothrow_swappable/value.cc: New.
2831 2015-06-03 François Dumont fdumont@gcc.gnu.org>
2833 * testsuite/23_containers/list/61347.cc: Add dg-require-normal-mode.
2835 2015-06-02 Jonathan Wakely <jwakely@redhat.com>
2837 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release.
2838 * doc/html/manual/*: Regenerate.
2840 * doc/html/ext/lwg-active.html: Update to R93.
2841 * doc/html/ext/lwg-closed.html: Likewise.
2842 * doc/html/ext/lwg-defects.html: Likewise.
2843 * doc/html/manual/*: Regenerate.
2844 * doc/xml/manual/intro.xml: Document status of several DRs.
2846 2015-06-02 Renlin Li <renlin.li@arm.com>
2848 * testsuite/27_io/fpos/14775.cc: Add _GLIBCXX_HAVE_LIMIT_FSIZE check.
2850 2015-06-01 Jonathan Wakely <jwakely@redhat.com>
2852 * testsuite/lib/libstdc++.exp (libstdc++_init): Unset LANGUAGE
2853 environment variable.
2855 2015-05-31 Jonathan Wakely <jwakely@redhat.com>
2858 * include/bits/stl_algobase.h (__fill_a): Check length before calling
2861 2015-05-30 Jonathan Wakely <jwakely@redhat.com>
2863 * include/bits/stl_algobase.h (__equal<true>::equal): Check length
2864 instead of checking for null pointers.
2865 (__lexicographical_compare<true>::__lc): Only check shorter length.
2867 2015-05-29 François Dumont fdumont@gcc.gnu.org>
2869 * include/debug/debug.h (_GLIBCXX_DEBUG_ASSERT,
2870 _GLIBCXX_DEBUG_PEDASSERT, _GLIBCXX_DEBUG_ONLY): Move definition...
2871 * include/debug/assertions.h: ...here, new.
2872 * include/debug/formatter.h
2873 (_Error_formatter::_Is_iterator_value_type): New.
2874 (_Error_formatter::_Is_instance): New.
2875 (_Error_formatter::_Parameter): Make public and not friend anymore.
2876 (_Error_formatter::_Parameter::__instance): New _M_kind enum entry.
2877 (_Error_formatter::_Parameter::__iterator_value_type): New _M_kind enum
2879 (_Error_formatter::_Parameter::_Type): New.
2880 (_Error_formatter::_Parameter::_Instance): New, inherit from
2882 (union _Error_formatter::_Parameter::_M_variant): Reorganize.
2883 (_Parameter(_Iterator const&, const char*, _Is_iterator)): Make all
2884 overloads take iterator through a const reference.
2885 (_Parameter(const _Iterator&, const char*, _Is_iterator_value_type)):
2887 (_Parameter(const _Type&, const char*, _Is_instance)): New.
2888 (_Error_formatter::_M_print_type): Delete.
2889 (_Error_formatter::_M_iterator_value_type): New.
2890 (_Error_formatter::_M_instance): New.
2891 * include/Makefile.am: Add new above debug file.
2892 * include/Makefile.in: Regenerate.
2893 * include/debug/functions.h
2894 (__check_dereferenceable(const _Safe_iterator<>&),
2895 __valid_range(const _Safe_iterator<>&),
2896 __is_safe_random_iterator<_Safe_iterator<>>): Move...
2897 * include/debug/safe_iterator.h: ... here.
2898 Replace debug.h include with assertions.h.
2899 (__check_singular_aux): Move...
2900 * include/debug/safe_base.h: ... here.
2901 * include/debug/functions.h
2902 (__check_dereferenceable(const _Safe_local_iterator<>&),
2903 __valid_range(const _Safe_local_iterator<>&): Move...
2904 * include/debug/safe_local_iterator.h: ...here.
2905 * include/debug/safe_sequence.h: Replace debug.h with assertions.h.
2906 Remove _Safe_iterator declaration.
2907 * include/debug/safe_unordered_container.h: Replace debug.h with
2909 * include/debug/array: Replace safe_sequence.h include with
2910 formatter.h and macros.h.
2911 * include/debug/deque: Include functions.tcc.
2912 * include/debug/forward_list: Likewise.
2913 * include/debug/list: Likewise.
2914 * include/debug/string: Likewise.
2915 * include/debug/vector: Likewise.
2916 * include/bits/unique_ptr.h: Replace debug.h include with new
2918 * include/bits/stl_iterator_base_funcs.h: Likewise.
2919 * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc:
2920 Adjust dg-error line number.
2921 * testsuite/23_containers/array/tuple_interface/
2922 tuple_element_debug_neg.cc: Likewise.
2923 * src/c++11/debug.cc: Adapt.
2925 2015-05-29 Jonathan Wakely <jwakely@redhat.com>
2927 * doc/xml/manual/status_cxx2017.xml: Fix duplicate ID attribute.
2928 * doc/html/manual/*: Regenerate.
2930 * include/std/future (__async_result_of): New alias template.
2931 (async): Use __async_result_of to pass decayed types to result_of.
2932 * testsuite/30_threads/async/lwg2021.cc: New.
2933 * doc/xml/manual/intro.xml: Document LWG 2021 status.
2936 * include/bits/stl_algobase.h (__equal<true>::equal): Do not call
2937 memcmp with null pointers.
2938 (__lexicographical_compare<true>::__lc): Do not call memcmp for empty
2941 2015-05-28 Jonathan Wakely <jwakely@redhat.com>
2944 * include/profile/array (array::data): Use _S_ptr.
2945 * include/debug/array (array::data): Likewise.
2948 * include/std/array (__array_traits::_S_ptr): New function.
2949 (array::data): Use _S_ptr to avoid creating invalid reference.
2950 * testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
2951 dg-error line numbers.
2952 * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
2955 2015-05-27 Jonathan Wakely <jwakely@redhat.com>
2957 * include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
2958 instead of downcasting.
2959 (_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
2960 (_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
2961 (_Rb_tree::_S_iter): Remove.
2962 (_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
2963 (_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
2964 instead of _S_lower_bound_tr
2965 (_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
2966 (_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
2967 instead of calling _S_lower_bound_tr.
2968 (_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
2969 (_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
2970 instead of calling _S_upper_bound_tr.
2971 (_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
2972 (_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
2973 (_Rb_tree::equal_range): Use _Base_ptr for end pointer.
2974 (_Rb_tree::_M_get_insert_unique_pos): Likewise.
2975 (_Rb_tree::_M_get_insert_equal_pos): Likewise.
2976 (_Rb_tree::_M_insert_equal_lower_node): Likewise.
2977 (_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
2978 _Rb_tree::_M_emplace_hint_unique): Remove static_cast.
2981 * include/bits/stl_tree.h (_Rb_tree_node): Use __aligned_membuf.
2982 (_Rb_tree_iterator, _Rb_tree_const_iterator): Support construction
2984 (_Rb_tree_const_iterator::_M_const_cast): Remove static_cast.
2985 (_Rb_tree::begin, _Rb_tree::end): Remove static_cast.
2986 * include/ext/aligned_buffer.h (__aligned_membuf): New type using
2987 alignment of _Tp as a member subobject, not as a complete object.
2988 * python/libstdcxx/v6/printers.py (StdRbtreeIteratorPrinter): Lookup
2989 _Link_type manually as it might not be in the debug info.
2991 2015-05-26 Doug Evans <dje@google.com>
2993 * python/libstdcxx/v6/xmethods.py (UniquePtrMethodsMatcher): Add
2995 * testsuite/libstdc++-xmethods/unique_ptr.cc: Add tests for
2998 2015-05-26 Jonathan Wakely <jwakely@redhat.com>
3000 * include/bits/locale_conv.h: Fix copyright years.
3001 * include/bits/quoted_string.h: Likewise.
3002 * src/filesystem/Makefile.am: Likewise.
3003 * testsuite/22_locale/conversions/buffer/1.cc: Likewise.
3004 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc:
3006 * testsuite/22_locale/conversions/string/1.cc: Likewise.
3007 * testsuite/22_locale/conversions/string/2.cc: Likewise.
3008 * testsuite/22_locale/conversions/string/3.cc: Likewise.
3009 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
3011 * testsuite/22_locale/conversions/string/requirements/typedefs.cc:
3013 * testsuite/util/testsuite_fs.h: Likewise.
3015 2015-05-23 François Dumont fdumont@gcc.gnu.org>
3018 * include/debug/functions.h (__check_sorted_aux): Cast expression to
3021 2015-05-21 David Edelsohn <dje.gcc@gmail.com>
3024 * config/cpu/powerpc/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER):
3025 Don't use isync. Use lwsync if available.
3026 * configure.host (atomic_word_dir) [aix[56789]*]: Delete to use
3027 powerpc cpu definition.
3029 2015-05-21 Jason Merrill <jason@redhat.com>
3031 * libsupc++/del_opv.cc: Suppress -Wsized-deallocation.
3032 * libsupc++/del_op.cc: Likewise.
3034 2015-05-20 François Dumont fdumont@gcc.gnu.org>
3036 * include/debug/formatter.h (_GLIBCXX_TYPEID): New macro to simplify
3038 (_Error_formatter::_M_print_type): New.
3039 * src/c++11/debug.cc
3040 (_Error_formatter::_Parameter::_M_print_field): Use latter.
3041 (_Error_formatter::_M_print_type): Implement latter using
3042 __cxaabiv1::__cxa_demangle to print demangled type name.
3044 * include/bits/cpp_type_traits.h
3045 (std::move_iterator): Delete declaration.
3046 (std::__is_move_iterator<move_iterator>): Move partial specialization...
3047 * include/bits/stl_iterator.h: ... here.
3048 (std::__miter_base): Overloads for std::reverse_iterator and
3050 * include/bits/stl_algobase.h (std::__miter_base): Provide default
3053 2015-05-20 Jonathan Wakely <jwakely@redhat.com>
3055 * testsuite/util/testsuite_fs.h (nonexistent_path): Don't use tempnam.
3058 * include/bits/stl_iterator.h (__make_move_if_noexcept_iterator): Add
3059 overload for pointers.
3060 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
3061 808590.cc: Add -std=gnu++03 switch.
3062 * testsuite/20_util/specialized_algorithms/uninitialized_copy/
3063 808590-cxx11.cc: Copy of 808590.cc to test with -std=gnu++11.
3064 * testsuite/23_containers/vector/modifiers/push_back/
3065 strong_guarantee.cc: New.
3067 2015-05-19 Jonathan Wakely <jwakely@redhat.com>
3069 * include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
3070 (operator==(const list&, const list&)): If size() is O(1) compare
3071 sizes before comparing each element.
3072 * include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
3073 (list::resize): Use _M_resize_pos.
3075 2015-05-19 François Dumont <fdumont@gcc.gnu.org>
3077 * testsuite/23_containers/unordered_map/cons/66055.cc: Add constructor
3079 * testsuite/23_containers/unordered_multimap/cons/66055.cc: Likewise.
3080 * testsuite/23_containers/unordered_multiset/cons/66055.cc: Likewise.
3081 * testsuite/23_containers/unordered_set/cons/66055.cc: Likewise.
3083 2015-05-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3085 * configure.host: Define cpu_defines_dir for ARM.
3086 * config/cpu/arm/cpu_defines.h: New file.
3088 2015-05-17 François Dumont <fdumont@gcc.gnu.org>
3090 * include/bits/unordered_map.h (unordered_map, unordered_multimap): Add
3091 missing constructors.
3092 * include/bits/unordered_set.h (unordered_set, unordered_multiset):
3094 * include/debug/unordered_map (unordered_map, unordered_multimap): Add
3095 missing constructors.
3096 * include/debug/unordered_set (unordered_set, unordered_multiset):
3098 * include/profile/unordered_map (unordered_map, unordered_multimap): Add
3099 missing constructors.
3100 * include/profile/unordered_set (unordered_set, unordered_multiset):
3103 2015-05-15 Jonathan Wakely <jwakely@redhat.com>
3105 * src/filesystem/ops.cc (stat_type): Define alias for struct stat and
3106 use throughout the file.
3107 (make_file_type): New function.
3108 (file_size(const path&, error_code&)): Report an error for anything
3109 that isn't a regular file.
3110 (status(const path&), symlink_status(const path&)): Do not throw for
3111 file_type::not_found.
3112 (temp_directory_path()): Check additional environment variables.
3113 * testsuite/experimental/filesystem/operations/exists.cc: New.
3114 * testsuite/experimental/filesystem/operations/file_size.cc: New.
3115 * testsuite/experimental/filesystem/operations/status.cc: New.
3116 * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
3119 2015-05-14 Nathan Myers <ncm@cantrip.org>
3120 Jonathan Wakely <jwakely@redhat.com>
3123 * include/std/unordered_map (unordered_map, unordered_multimap): Add
3124 missing constructors.
3125 * include/std/unordered_set (unordered_set, unordered_multiset):
3127 * testsuite/23_containers/unordered_map/cons/66055.cc: New.
3128 * testsuite/23_containers/unordered_multimap/cons/66055.cc: New.
3129 * testsuite/23_containers/unordered_multiset/cons/66055.cc: New.
3130 * testsuite/23_containers/unordered_set/cons/66055.cc: New.
3132 2015-05-14 Jonathan Wakely <jwakely@redhat.com>
3135 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmod and
3137 * config.h.in: Regenerate.
3138 * configure: Regenerate.
3139 * src/filesystem/ops.cc (do_copy_file): Fix arguments to open(). Do
3140 not return after copying contents. Use fchmod, fchmodat, and sendfile
3142 (current_path, permissions, space): Use errno not return value.
3145 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for struct
3147 * config.h.in: Regenerate.
3148 * configure: Regenerate.
3149 * configure.ac (AC_STRUCT_DIRENT_D_TYPE): Remove.
3151 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
3153 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Delete.
3154 * configure.ac: Remove GLIBCXX_ENABLE_SJLJ_EXCEPTIONS.
3155 * config.h.in: Regenerate.
3156 * configure: Likewise.
3157 * libsupc++/eh_personality.cc: Replace _GLIBCXX_SJLJ_EXCEPTIONS by
3158 __USING_SJLJ_EXCEPTIONS__.
3159 * libsupc++/eh_throw.cc: Likewise.
3160 * libsupc++/eh_ptr.cc: Likewise.
3161 * doc/html/manual/appendix_porting.html: Remove
3162 GLIBCXX_ENABLE_SJLJ_EXCEPTIONS
3163 * doc/xml/manual/build_hacking.xml: Likewise.
3164 * doc/html/manual/configure.html: Remove --enable-sjlj-exceptions.
3165 * doc/xml/manual/configure.xml: Likewise.
3167 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
3169 * include/bits/shared_ptr_base.h (__shared_count(unique_ptr&&)): Check
3170 for nullptr (LWG 2415).
3171 * testsuite/20_util/shared_ptr/cons/unique_ptr_deleter.cc: Test
3172 construction from empty unique_ptr.
3173 * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
3174 * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
3176 * include/bits/stl_raw_storage_iter.h (raw_storage_iterator::base()):
3178 * testsuite/20_util/raw_storage_iterator/base.cc: New.
3180 * include/std/future (packaged_task(allocator_arg_t, const A&, F&&):
3181 Remove explicit (LWG 2407).
3183 * include/bits/basic_string.h (basic_string::basic_string()): Make
3184 noexcept conditional on allocator (LWG 2455).
3186 * include/std/complex (polar): Check for negative rho (LWG 2459).
3188 * include/experimental/tuple (apply): Handle pointers to member (LWG
3190 * include/std/functional (_Mem_fn_base): Make constructors constexpr.
3191 (_Maybe_wrap_member_pointer::__do_wrap): Make constexpr.
3192 * testsuite/experimental/tuple/apply.cc: Test pointer to member.
3194 * include/bits/random.h (seed_seq): More noexcept (LWG 2440).
3196 * include/bits/alloc_traits.h (_S_max_size): Implement LWG 2466.
3197 * testsuite/20_util/allocator_traits/members/max_size.cc: Adjust.
3198 * testsuite/23_containers/forward_list/allocator/minimal.cc:
3200 * testsuite/23_containers/map/allocator/minimal.cc: Likewise.
3201 * testsuite/23_containers/multimap/allocator/minimal.cc: Likewise.
3202 * testsuite/23_containers/multiset/allocator/minimal.cc: Likewise.
3203 * testsuite/23_containers/set/allocator/minimal.cc: Likewise.
3204 * testsuite/23_containers/unordered_map/allocator/minimal.cc:
3206 * testsuite/23_containers/unordered_multimap/allocator/minimal.cc:
3208 * testsuite/23_containers/unordered_multiset/allocator/minimal.cc:
3210 * testsuite/23_containers/unordered_set/allocator/minimal.cc:
3212 * testsuite/util/testsuite_allocator.h: Remove unused parameter.
3214 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Re-enable on solaris.
3215 * configure: Regenerate.
3217 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
3219 * Makefile.in: Regenerated with automake-1.11.6.
3220 * aclocal.m4: Likewise.
3221 * configure: Likewise.
3222 * doc/Makefile.in: Likewise.
3223 * include/Makefile.in: Likewise.
3224 * libsupc++/Makefile.in: Likewise.
3225 * po/Makefile.in: Likewise.
3226 * python/Makefile.in: Likewise.
3227 * src/Makefile.in: Likewise.
3228 * src/c++11/Makefile.in: Likewise.
3229 * src/c++98/Makefile.in: Likewise.
3230 * src/filesystem/Makefile.in: Likewise.
3231 * testsuite/Makefile.in: Likewise.
3233 2015-05-09 Jason Merrill <jason@redhat.com>
3235 * testsuite/20_util/headers/functional/synopsis.cc: Add
3236 _GLIBCXX14_CONSTEXPR.
3237 * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
3239 2015-05-08 Jason Merrill <jason@redhat.com>
3241 * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
3242 * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
3243 * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
3244 * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
3245 * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
3246 * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
3247 * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
3248 * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
3249 * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
3250 * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
3251 * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc:
3253 * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
3254 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
3255 Adjust expected errors.
3256 * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc:
3258 * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc:
3260 * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
3262 * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
3264 * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
3266 * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
3268 * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
3270 * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
3272 * testsuite/23_containers/vector/requirements/dr438
3273 /constructor_1_neg.cc: Likewise.
3274 * testsuite/23_containers/vector/requirements/dr438
3275 /constructor_2_neg.cc: Likewise.
3276 * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
3278 * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
3279 * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
3280 * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
3281 * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
3282 * testsuite/ext/array_allocator/check_allocate_max_size.cc:
3283 Add -Wno-deprecated.
3284 * testsuite/ext/array_allocator/check_deallocate_null.cc:
3285 Add -Wno-deprecated.
3286 * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
3287 * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
3288 * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
3289 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc:
3291 * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc:
3293 * testsuite/tr1/2_general_utilities/shared_ptr/assign
3294 /auto_ptr_rvalue_neg.cc: Add -std=c++98.
3295 * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
3296 Add -std=c++98 -fno-show-column.
3297 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc:
3299 * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc:
3301 * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
3302 * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
3304 * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
3305 * src/c++98/Makefile.in: Regenerate.
3306 * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
3307 * src/Makefile.in: Regenerate.
3309 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
3312 * include/std/future (async): Change default policy to launch::async.
3314 * include/experimental/any (any::_Storage): Fix alignment of buffer.
3315 (any::_Internal): Check alignment of type.
3316 * testsuite/experimental/any/cons/aligned.cc: New.
3317 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3319 * include/experimental/iterator (ostream_joiner): Simplify by using
3320 the injected-class-name and the ostream_type typedef.
3322 * include/experimental/iterator: New. Define ostream_joiner.
3323 * include/Makefile.am: Add new header.
3324 * include/Makefile.in: Regenerate.
3325 * testsuite/experimental/iterator/make_ostream_joiner.cc: New.
3326 * testsuite/experimental/iterator/ostream_joiner.cc: New.
3327 * testsuite/experimental/iterator/requirements.cc: New.
3328 * doc/xml/manual/status_cxx2017.xml: Update status.
3329 * doc/html/manual/status.html: Regenerate.
3331 * include/experimental/numeric: New. Define gcd and lcm.
3332 * include/Makefile.am: Add new header.
3333 * include/Makefile.in: Regenerate.
3334 * testsuite/experimental/numeric/gcd.cc: New.
3335 * testsuite/experimental/numeric/lcm.cc: New.
3336 * doc/xml/manual/status_cxx2017.xml: Update status.
3337 * doc/html/manual/status.html: Regenerate.
3339 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
3341 Revert addition of feature macros from other headers per latest SD-6.
3342 * include/experimental/deque: Remove feature-test macro.
3343 * include/experimental/forward_list: Ditto.
3344 * include/experimental/list: Ditto.
3345 * include/experimental/map: Ditto.
3346 * include/experimental/set: Ditto.
3347 * include/experimental/string: Ditto.
3348 * include/experimental/unordered_map: Ditto.
3349 * include/experimental/unordered_set: Ditto.
3351 2015-05-02 Jonathan Wakely <jwakely@redhat.com>
3353 * include/experimental/any (any::_Storage): Make non-copyable.
3354 (any::any): Do not copy _Storage object.
3355 (any::operator=): Implement more efficiently than swapping.
3356 (any::swap): Use new _Op_xfer operation.
3357 (any::_Op::_Op_xfer): New enumerator.
3358 (_Manager_internal::_S_alloc): Remove unused function.
3359 (_Manager_internal::_S_create, _Manager_external::_S_create): Use out
3360 parameter instead of returning a _Storage object.
3361 (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add
3362 _Op_xfer operation for moving and swapping.
3363 * testsuite/experimental/any/cons/nontrivial.cc: New.
3364 * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
3366 * include/experimental/fs_path.h (filesystem_error::~filesystem_error):
3368 * src/filesystem/path.cc (filesystem_error::~filesystem_error):
3372 * include/std/tuple (forward_as_tuple, tie): Add constexpr.
3373 * testsuite/20_util/tuple/creation_functions/constexpr.cc: Uncomment
3374 and fix tests for forward_as_tuple and tie.
3376 * src/filesystem/ops.cc (last_write_time) [_GLIBCXX_USE_UTIMENSAT]:
3377 Set timespec members explicitly instead of with a braced-init-list.
3378 [_GLIBCXX_HAVE_UTIME_H]: Use lambda to handle st_atime being a macro.
3380 2015-05-02 Edward Smith-Rowland <3dw4rd@verizon.net>
3382 * include/experimental/deque: Add feature-test macro.
3383 * include/experimental/forward_list: Ditto.
3384 * include/experimental/list: Ditto.
3385 * include/experimental/map: Ditto.
3386 * include/experimental/set: Ditto.
3387 * include/experimental/string: Ditto.
3388 * include/experimental/unordered_map: Ditto.
3389 * include/experimental/unordered_set: Ditto.
3391 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3393 * include/experimental/memory: Correct feature-test macro.
3395 * include/experimental/memory: Add feature-test macro.
3396 * include/experimental/vector: Likewise.
3397 * doc/xml/manual/status_cxx2017.xml: Update status.
3398 * doc/html/manual/status.html: Regenerate.
3400 2015-05-01 Ville Voutilainen <ville.voutilainen@gmail.com>
3402 Implement observer_ptr.
3403 * include/Makefile.am: Add new header.
3404 * include/Makefile.in: Regenerate.
3405 * include/experimental/memory: New.
3406 * testsuite/experimental/memory/observer_ptr/assignment/assign.cc: New.
3407 * testsuite/experimental/memory/observer_ptr/cons/cons.cc: New.
3408 * testsuite/experimental/memory/observer_ptr/hash/hash.cc: New.
3409 * testsuite/experimental/memory/observer_ptr/make_observer.cc: New.
3410 * testsuite/experimental/memory/observer_ptr/relops/relops.cc: New.
3411 * testsuite/experimental/memory/observer_ptr/requirements.cc: New.
3412 * testsuite/experimental/memory/observer_ptr/swap/swap.cc: New.
3413 * testsuite/experimental/memory/observer_ptr/typedefs.cc: New.
3415 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3417 * src/filesystem/path.cc (path::compare): Do not copy strings.
3419 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable when <dirent.h>
3421 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for fchmodat.
3422 * configure: Regenerate.
3423 * config.h.in: Regenerate.
3424 * configure.ac: Check for utime.h
3425 * include/experimental/fs_path.h (path::string<>)
3426 [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove stray typename keyword.
3427 * src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H] (DIR, opendir,
3428 closedir, dirent, readdir_r): Replace dummy functions with #error.
3429 (native_readdir, _Dir::advance): Use readdir when readdir_r is missing.
3430 * src/filesystem/ops.cc (do_stat, is_set): Make inline.
3431 (last_write_time) [!_GLIBCXX_USE_UTIMENSAT]: Use utime.
3432 (permissions) [!_GLIBCXX_USE_FCHMODAT]: Use chmod.
3433 (space, temp_directory_path) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Set
3436 * include/experimental/fs_path.h (path::_List): Use vector instead of
3438 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Adapt.
3439 * src/filesystem/path.cc: Use std::prev instead of decrementing
3440 rvalues. Fix whitespace.
3441 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
3442 Do not decrement iterators before begin.
3444 * include/experimental/fs_dir.h: Fix use of non-reserved names.
3445 * include/experimental/fs_ops.h: Likewise.
3446 * include/experimental/fs_path.h: Likewise.
3447 * testsuite/lib/libstdc++.exp (check_v3_target_filesystem_ts): Use
3448 C++11 when checking for support.
3450 * include/bits/locale_classes.h (locale::facet): Delete copy
3451 operations in C++11 mode.
3453 * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
3455 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Disable for solaris.
3456 * configure: Regenerate.
3458 2015-05-01 Edward Smith-Rowland <3dw4rd@verizon.net>
3460 Inline one-line erasure dispatch functions.
3461 * include/experimental/forward_list (erase_if(), erase()): Inline.
3462 * include/experimental/list (erase_if(), erase()): Inline.
3463 * include/experimental/map (erase_if(*)): Inline.
3464 * include/experimental/set (erase_if(*)): Inline.
3465 * include/experimental/string (erase_if(), erase()): Inline.
3466 * include/experimental/unordered_map (erase_if(*)): Inline.
3467 * include/experimental/unordered_set (erase_if(*)): Inline.
3469 2015-05-01 Jonathan Wakely <jwakely@redhat.com>
3471 * doc/xml/manual/intro.xml: Link to new status_cxx2017.xml file.
3472 * doc/xml/manual/status_cxx2011.xml: Update status tables.
3473 * doc/xml/manual/status_cxx2014.xml: Likewise.
3474 * doc/xml/manual/status_cxx2017.xml: New.
3475 * doc/xml/manual/using.xml: Fix typo.
3476 * doc/html/*: Regenerate.
3478 * include/std/memory (pointer_safety, declare_reachable,
3479 undeclare_reachable, declare_no_pointers, undeclare_no_pointers,
3480 get_pointer_safety): Define.
3481 * testsuite/20_util/pointer_safety/1.cc: New.
3483 2015-04-30 Jonathan Wakely <jwakely@redhat.com>
3485 Implement N4100 File System TS
3486 * acinclude.m4 (GLIBCXX_ENABLE_FILESYSTEM_TS): Define.
3487 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Define.
3488 * config.h.in: Regenerate.
3489 * configure: Regenerate.
3490 * configure.ac: Enable filesystem TS and check its dependencies.
3491 * include/Makefile.am: Add new headers.
3492 * include/Makefile.in: Regenerate.
3493 * include/bits/locale_conv.h (__do_str_code_cvt, __str_codecvt_in,
3494 __str_codecvt_out): Move code conversion logic from wstring_convert
3495 into new global functions.
3496 (wstring_convert::to_bytes, wstring_convert::from_bytes): Use new
3498 (wstring_convert::_M_conv): Remove.
3499 * include/bits/quoted_string.h (_Quoted_string): Split out of iomanip.
3500 * include/experimental/filesystem: New.
3501 * include/experimental/fs_dir.h: New.
3502 * include/experimental/fs_fwd.h: New.
3503 * include/experimental/fs_ops.h: New.
3504 * include/experimental/fs_path.h: New.
3505 * include/std/iomanip (_Quoted_string): Move to bits/quoted_string.h.
3506 * python/libstdcxx/v6/printers.py (StdExpPathPrinter): Add.
3507 * src/Makefile.am (SUBDIRS): Add filesystem.
3508 * src/Makefile.in: Regenerate.
3509 * src/filesystem/Makefile.am: New.
3510 * src/filesystem/Makefile.in: New.
3511 * src/filesystem/dir.cc: New.
3512 * src/filesystem/ops.cc: New.
3513 * src/filesystem/path.cc: New.
3514 * testsuite/experimental/filesystem/operations/absolute.cc: New.
3515 * testsuite/experimental/filesystem/operations/copy.cc: New.
3516 * testsuite/experimental/filesystem/operations/current_path.cc: New.
3517 * testsuite/experimental/filesystem/path/append/path.cc: New.
3518 * testsuite/experimental/filesystem/path/assign/assign.cc: New.
3519 * testsuite/experimental/filesystem/path/assign/copy.cc: New.
3520 * testsuite/experimental/filesystem/path/compare/compare.cc: New.
3521 * testsuite/experimental/filesystem/path/compare/path.cc: New.
3522 * testsuite/experimental/filesystem/path/compare/strings.cc: New.
3523 * testsuite/experimental/filesystem/path/concat/path.cc: New.
3524 * testsuite/experimental/filesystem/path/concat/strings.cc: New.
3525 * testsuite/experimental/filesystem/path/construct/copy.cc: New.
3526 * testsuite/experimental/filesystem/path/construct/default.cc: New.
3527 * testsuite/experimental/filesystem/path/construct/locale.cc: New.
3528 * testsuite/experimental/filesystem/path/construct/range.cc: New.
3529 * testsuite/experimental/filesystem/path/decompose/extension.cc: New.
3530 * testsuite/experimental/filesystem/path/decompose/filename.cc: New.
3531 * testsuite/experimental/filesystem/path/decompose/parent_path.cc:
3533 * testsuite/experimental/filesystem/path/decompose/relative_path.cc:
3535 * testsuite/experimental/filesystem/path/decompose/root_directory.cc:
3537 * testsuite/experimental/filesystem/path/decompose/root_name.cc:
3539 * testsuite/experimental/filesystem/path/decompose/root_path.cc:
3541 * testsuite/experimental/filesystem/path/decompose/stem.cc: New.
3542 * testsuite/experimental/filesystem/path/generic/generic_string.cc:
3544 * testsuite/experimental/filesystem/path/itr/traversal.cc: New.
3545 * testsuite/experimental/filesystem/path/modifiers/clear.cc: New.
3546 * testsuite/experimental/filesystem/path/modifiers/make_preferred.cc:
3548 * testsuite/experimental/filesystem/path/modifiers/remove_filename.cc:
3550 * testsuite/experimental/filesystem/path/modifiers/replace_extension.cc:
3552 * testsuite/experimental/filesystem/path/modifiers/replace_filename.cc:
3554 * testsuite/experimental/filesystem/path/modifiers/swap.cc: New.
3555 * testsuite/experimental/filesystem/path/nonmember/hash_value.cc: New.
3556 * testsuite/experimental/filesystem/path/query/empty.cc: New.
3557 * testsuite/experimental/filesystem/path/query/has_extension.cc: New.
3558 * testsuite/experimental/filesystem/path/query/has_filename.cc: New.
3559 * testsuite/experimental/filesystem/path/query/has_parent_path.cc:
3561 * testsuite/experimental/filesystem/path/query/has_relative_path.cc:
3563 * testsuite/experimental/filesystem/path/query/has_root_directory.cc:
3565 * testsuite/experimental/filesystem/path/query/has_root_name.cc:
3567 * testsuite/experimental/filesystem/path/query/has_root_path.cc:
3569 * testsuite/experimental/filesystem/path/query/has_stem.cc: New.
3570 * testsuite/experimental/filesystem/path/query/is_relative.cc: New.
3571 * testsuite/util/testsuite_fs.h: New.
3573 2015-04-30 Edward Smith-Rowland <3dw4rd@verizon.net>
3575 Add fundamentals TR container erasure.
3576 * include/Makefile.am: Add new headers.
3577 * include/Makefile.in: Add new headers.
3578 * include/experimental/array: New.
3579 * include/experimental/deque: New.
3580 * include/experimental/erase_if.tcc: New.
3581 * include/experimental/forward_list: New.
3582 * include/experimental/list: New.
3583 * include/experimental/map: New.
3584 * include/experimental/set: New.
3585 * include/experimental/string: New.
3586 * include/experimental/unordered_map: New.
3587 * include/experimental/unordered_set: New.
3588 * include/experimental/vector: New.
3589 * testsuite/experimental/deque/erasure.cc: New.
3590 * testsuite/experimental/forward_list/erasure.cc: New.
3591 * testsuite/experimental/list/erasure.cc: New.
3592 * testsuite/experimental/map/erasure.cc: New.
3593 * testsuite/experimental/set/erasure.cc: New.
3594 * testsuite/experimental/string/erasure.cc: New.
3595 * testsuite/experimental/unordered_map/erasure.cc: New.
3596 * testsuite/experimental/unordered_set/erasure.cc: New.
3597 * testsuite/experimental/vector/erasure.cc: New.
3599 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
3601 * include/bits/cpp_type_traits.h
3602 (__gnu_cxx::__is_normal_iterator): Delete.
3603 * include/bits/stl_algobase.h (std::__niter_base): Adapt.
3604 * include/bits/stl_iterator.h (__make_reverse_iterator): New in C++11.
3605 (std::__niter_base): Overloads for std::reverse_iterator,
3606 __gnu_cxx::__normal_iterator and std::move_iterator.
3608 2015-04-30 François Dumont <fdumont@gcc.gnu.org>
3610 * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes):
3612 * src/c++11/hashtable_c++0x.cc (_Prime_rehash_policy::_M_next_bkt):
3613 Remove usage of latter and compute size of the prime numbers array
3616 2015-04-29 Doug Evans <dje@google.com>
3619 * python/libstdcxx/v6/xmethods.py (get_bool_type): New function.
3620 Replace all lookups of "bool" with this.
3621 (get_std_size_type): New function. Replace all lookups of std::size_t
3623 (*Worker): New method get_result_type.
3624 (DequeWorkerBase.__init__): New arg val_type. All callers updated.
3625 (ListWorkerBase.__init__): New arg val_type. All callers updated.
3626 (UniquePtrGetWorker.__init__): New arg elem_type. All callers updated.
3627 Delete setting of name, enabled.
3628 (UniquePtrDerefWorker.__init__): New arg elem_type. All callers
3629 updated. Delete setting of name.
3630 (UniquePtrMethodsMatcher): Rewrite for consistency with all other
3631 libstdc++ xmethod matchers.
3632 * testsuite/libstdc++-xmethods/array.cc: Add whatis tests.
3633 * testsuite/libstdc++-xmethods/associative-containers.cc: Ditto.
3634 * testsuite/libstdc++-xmethods/deque.cc: Ditto.
3635 * testsuite/libstdc++-xmethods/forwardlist.cc: Ditto.
3636 * testsuite/libstdc++-xmethods/list.cc: Ditto.
3637 * testsuite/libstdc++-xmethods/unique_ptr.cc: Ditto.
3638 * testsuite/libstdc++-xmethods/vector.cc: Ditto.
3640 2015-04-29 Doug Evans <dje@google.com>
3642 Use consistent naming for value type attributes.
3643 * python/libstdcxx/v6/xmethods.py (ArrayWorkerBase): Rename _valtype
3645 (ArraySizeWorker, ArrayEmptyWorker): Ditto.
3646 (ArrayFrontWorker, ArrayBackWorker): Ditto.
3647 (ArrayAtWorker, ArraySubscriptWorker): Ditto.
3648 (DequeWorkerBase): Rename elemtype to val_type.
3649 (ForwardListWorkerBase): Rename _elem_type to _val_type.
3650 (ForwardListFrontWorker): Ditto. And rename elem_address to
3652 (ForwardListMethodsMatcher): Rename elem_type to val_type.
3653 (VectorWorkerBase): Rename _elemtype to _val_type.
3655 2015-04-29 Jonathan Wakely <jwakely@redhat.com>
3658 * include/std/functional (__check_func_return_type): Use is_same to
3659 avoid using _is_convertible on incomplete types.
3660 * testsuite/20_util/function/65760.cc: New.
3663 * include/bits/basic_string (basic_string::_S_copy_chars): Cast
3665 * include/bits/locale_facets_nonio.tcc (money_get::_M_extract,
3666 time_get::_M_extract_num, time_get::_M_extract_name,
3667 time_get::_M_extract_wday_or_month): Likewise.
3668 * include/bits/stl_algo.h (__includes, __replace_copy_if,
3669 __is_sorted_until, __is_permutation, transform): Likewise.
3670 * include/bits/stl_algobase.h (swap_ranges, __copy_move::__copy_m,
3671 __equal::equal, __lexicographical_compare_impl, equal): Likewise.
3672 * include/bits/stl_numeric.h (inner_product): Likewise.
3673 * include/bits/stl_uninitialized.h (__uninitialized_copy_a): Likewise.
3674 * testsuite/util/testsuite_iterators.h (output_iterator_wrapper,
3675 input_iterator_wrapper): Declare unusable comma operator.
3676 * testsuite/21_strings/basic_string/cons/char/64657.cc: New.
3677 * testsuite/21_strings/basic_string/modifiers/assign/char/64657.cc:
3680 2015-04-28 Doug Evans <dje@google.com>
3682 * testsuite/libstdc++-xmethods/list.cc (_GLIBCXX_USE_CXX11_ABI):
3685 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3687 * include/bits/stl_algo.h (random_shuffle): Only define for hosted
3690 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3692 * Makefile.am (SUBDIRS): Move python to hosted_source.
3693 * Makefile.in: Regenerate.
3694 * acinclude.m4 (glibcxx_SUBDIRS): Reorder.
3695 * configure: Regenerate.
3697 2015-04-28 Marc Glisse <marc.glisse@inria.fr>
3700 * include/std/limits (numeric_limits): Add missing unsigned.
3702 2015-04-28 Stephan Bergmann <sbergman@redhat.com>
3704 * include/debug/vector (_Safe_vector::operator=): Add missing returns.
3706 2015-04-28 Jonathan Wakely <jwakely@redhat.com>
3709 * include/std/type_traits (__make_unsigned_selector<_Tp, false, true>):
3710 Handle enumeration types larger than sizeof(long).
3711 (__make_signed_selector<_Tp, false, true>): Find unsigned type then
3713 * testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error.
3714 * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
3716 * testsuite/20_util/make_signed/requirements/typedefs-3.cc: New.
3717 * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Adjust
3719 * testsuite/20_util/make_unsigned/requirements/typedefs-3.cc: New.
3722 * include/bits/forward_list.h (forward_list::splice_after): Add
3724 * include/bits/forward_list.tcc (forward_list::splice_after):
3728 * include/bits/random.h (seed_seq) Define copy constructor and copy
3729 assignment as deleted.
3730 * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New.
3732 * libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
3733 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
3734 Use -std=gnu++1z. Check feature-test macro.
3736 * include/std/type_traits (void_t): Add.
3737 * testsuite/20_util/void_t/1.cc: New.
3739 2015-04-28 Tim Shen <timshen@google.com>
3741 * include/bits/regex.tcc: Handle regex_constants::__polynomial.
3742 * include/bits/regex_automaton.tcc: Throw exception when parsing
3743 back-reference with flag __polynomial.
3744 * include/bits/regex_constants.h: Add extension flag
3745 syntax_option_type __polynomial.
3746 * bits/regex_executor.tcc: Still let BFS process ECMAScript.
3747 Alternative operation will be fixed in the coming refactoring.
3748 * testsuite/28_regex/algorithms/regex_search/61424.cc: Turn
3749 loose match_search_debug to use DFS only.
3751 2015-04-27 Sandra Loosemore <sandra@codesourcery.com>
3754 * testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
3755 Make the generated test program fail gracefully if the target
3756 doesn't support passing command-line arguments.
3758 2015-04-27 Federico Lenarduzzi <federico.lenarduzzi@tallertechnologies.com>
3759 Jonathan Wakely <jwakely@redhat.com>
3761 * libsupc++/eh_catch.cc (uncaught_exception, uncaught_exceptions):
3762 Return false or zero if the library is built without exceptions.
3763 * libsupc++/eh_term_handler.cc: Disable verbose terminate handler if
3764 the library is built without exceptions.
3766 2015-04-27 Ville Voutilainen <ville.voutilainen@gmail.com>
3768 * config/abi/pre/gnu.ver: Fix comment.
3770 Add support for std::uncaught_exceptions.
3771 * acinclude.m4: Bump libtool_VERSION.
3772 * config/abi/pre/gnu.ver: Export the new symbol.
3773 * configure: Regenerate.
3774 * libsupc++/eh_catch.cc (uncaught_exceptions): New.
3775 * libsupc++/exception (uncaught_exceptions): New.
3776 * testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc: New.
3777 * testsuite/util/testsuite_abi.cc: Add 3.4.22 as the latest version.
3779 2015-04-27 Dmitry Prokoptsev <dprokoptsev@gmail.com>
3780 Michael Hanselmann <public@hansmi.ch>
3783 * libsupc++/eh_ptr.cc (rethrow_exception): Increment count of
3784 uncaught exceptions.
3785 * testsuite/18_support/exception_ptr/62258.cc: New.
3787 2015-04-27 Jonathan Wakely <jwakely@redhat.com>
3789 * doc/xml/manual/extensions.xml: Add cross-reference.
3790 * doc/html/manual/ext_compile_checks.html: Regenerate.
3792 2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
3794 * config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
3795 * configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
3797 2015-04-22 Renlin Li <renlin.li@arm.com>
3799 * testsuite/lib/dg-options.exp (dg-require-thread-fence): New.
3800 * testsuite/lib/libstdc++.exp (check_v3_target_thread_fence): New.
3801 * testsuite/29_atomics/atomic_flag/clear/1.cc: Use it.
3802 * testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Likewise.
3803 * testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Likewise.
3805 2015-04-21 Jonathan Wakely <jwakely@redhat.com>
3807 * doc/xml/manual/configure.xml: Update descriptions of options
3808 affecting dual ABI and add cross-references.
3809 * doc/xml/manual/strings.xml: Clarify that string isn't COW now.
3810 * doc/xml/manual/using.xml: Document ABI transition.
3811 * doc/html/*: Regenerate.
3813 * doc/xml/manual/abi.xml: Use uppercase for C++ Standard Library.
3814 * doc/xml/manual/using.xml: Document newer -std options. Use better
3815 examples of nested namespaces.
3817 2015-04-20 Jonathan Wakely <jwakely@redhat.com>
3819 * doc/xml/manual/concurrency_extensions.xml: Update documentation
3821 * doc/xml/manual/using.xml: Likewise. Improve markup.
3822 * doc/html/*: Regenerate.
3824 2015-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3826 * scripts/extract_symvers.pl: Ignore elfdump error output.
3828 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
3831 * include/bits/stl_iterator_base_funcs.h (_List_iterator,
3832 _List_const_iterator): Declare.
3833 (__distance): Declare new overloads for _List_iterator and
3834 _List_const_iterator.
3835 * include/bits/stl_list.h (__distance): New overloads for
3836 _List_iterator and _List_const_iterator.
3837 * testsuite/23_containers/list/61347.cc: New testcase.
3839 2015-04-14 Jonathan Wakely <jwakely@redhat.com>
3841 * doc/xml/manual/evolution.xml: Fix typos.
3842 * doc/html/manual/api.html: Regenerate.
3844 2015-04-14 Hans-Peter Nilsson <hp@axis.com>
3846 * testsuite/29_atomics/atomic/62259.cc: Assert atomic
3847 alignment is larger-equal, not equal, to default alignment.
3849 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
3852 * config/abi/pre/gnu.ver: Export base object constructors for
3854 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3855 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3856 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
3857 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3858 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3859 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3860 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
3861 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3862 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
3863 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3864 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3865 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3866 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3867 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3868 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3869 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3870 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
3871 * testsuite/27_io/basic_fstream/cons/base.cc: New.
3873 2015-04-13 Jonathan Wakely <jwakely@redhat.com>
3875 * doc/xml/manual/evolution.xml: Document changes since 4.5 release.
3876 * doc/html/*: Regenerate.
3878 2015-04-12 Uros Bizjak <ubizjak@gmail.com>
3880 * config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
3882 2015-04-10 Andreas Schwab <schwab@linux-m68k.org>
3884 * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
3886 * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Update.
3888 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
3890 * doc/xml/manual/test.xml: Improve documentation on running a subset
3892 * doc/html/manual/test.html: Regenerate.
3894 2015-04-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3896 * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
3897 for GCC 5.1 release.
3898 * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
3901 2015-04-10 Jonathan Wakely <jwakely@redhat.com>
3903 * include/std/shared_mutex (shared_timed_mutex): Add comments to
3904 explain the logic in the non-pthread_rwlock_t version.
3905 (_Mutex): Remove redundant type.
3906 (_M_n_readers): Rename to _S_max_readers.
3907 (_M_write_entered, _M_readers): New convenience functions.
3908 (lock, lock_shared, try_lock_shared, unlock_shared): Use convenience
3909 functions. Use predicates with condition variables. Simplify bitwise
3911 (try_lock_for, try_shared_lock_for): Convert duration to time_point
3912 and call try_lock_until or try_shared_lock_until respectively.
3913 (try_lock_until, try_shared_lock_until): Wait on the condition
3914 variables until the specified time passes.
3915 (unlock): Add Debug Mode assertion.
3916 (unlock_shared): Add Debug Mode assertion.
3917 * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: New.
3919 * include/std/shared_mutex (shared_timed_mutex): Only use
3920 pthread_rwlock_t when the POSIX Timeouts option is supported.
3921 * testsuite/30_threads/shared_lock/cons/5.cc: Remove
3922 dg-require-gthreads-timed.
3923 * testsuite/30_threads/shared_lock/cons/6.cc: Likewise.
3924 * testsuite/30_threads/shared_lock/locking/3.cc: Likewise.
3925 * testsuite/30_threads/shared_lock/locking/4.cc: Likewise.
3927 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
3929 * config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Update.
3931 2015-04-09 Jonathan Wakely <jwakely@redhat.com>
3932 Richard Henderson <rth@redhat.com>
3935 * include/bits/atomic_base.h (__atomic_base<_ITp>): Increase
3937 * include/std/atomic (atomic): For types with a power of two size set
3938 alignment to at least the size.
3939 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
3940 * testsuite/29_atomics/atomic/65147.cc: New.
3941 * testsuite/29_atomics/atomic_integral/65147.cc: New.
3943 2015-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3945 * config/abi/post/solaris2.10/baseline_symbols.txt: Regenerate.
3946 * config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
3947 * config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
3949 2015-04-07 Jakub Jelinek <jakub@redhat.com>
3951 * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.
3952 * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
3953 * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
3954 * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
3955 * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
3956 * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.
3957 * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Update.
3958 * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
3960 2015-03-30 Jonathan Wakely <jwakely@redhat.com>
3963 * config/abi/pre/gnu.ver: Export operator+ for new strings.
3964 * testsuite/21_strings/basic_string/operators/char/65630.cc: New.
3965 * testsuite/21_strings/basic_string/operators/wchar_t/65630.cc: New.
3967 2015-03-28 Tim Shen <timshen@google.com>
3970 * include/bits/regex_constants.h: Use constexpr variables for flags.
3971 * testsuite/28_regex/constants/constexpr.cc: New testcase.
3973 2015-03-27 Jonathan Wakely <jwakely@redhat.com>
3976 * include/std/chrono: Add using-directive for literals to std::chrono.
3977 * testsuite/20_util/duration/literals/65499.cc: New.
3979 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
3983 * include/std/thread (this_thread::sleep_for): Check for negative
3985 (this_thread::sleep_until): Check for times in the past.
3986 * testsuite/30_threads/this_thread/58038.cc: New.
3987 * testsuite/30_threads/this_thread/60421.cc: New.
3989 2015-03-26 Jonathan Wakely <jwakely@redhat.com>
3993 * include/std/atomic (atomic<T>): Increase alignment for types with
3994 the same size as one of the integral types.
3995 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
3996 * testsuite/29_atomics/atomic/62259.cc: New.
3998 2015-03-26 Richard Henderson <rth@redhat.com>
4001 * include/bits/atomic_base.h (__atomic_base<T>::is_lock_free): Build
4002 a fake pointer indicating type alignment.
4003 (__atomic_base<T *>::is_lock_free): Likewise.
4004 * include/std/atomic (atomic<T>::is_lock_free): Likewise.
4006 2015-03-25 Alan Lawrence <alan.lawrence@arm.com>
4009 * testsuite/21_strings/basic_string/pthread33394.cc: Use
4010 dg-additional-options.
4012 2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
4015 * include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
4017 * include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
4019 * testsuite/27_io/rvalue_streams-2.cc: New.
4021 2015-03-24 Jonathan Wakely <jwakely@redhat.com>
4024 * testsuite/21_strings/basic_string/pthread33394.cc: Add test.
4026 2015-03-23 Jonathan Wakely <jwakely@redhat.com>
4029 * acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
4030 * configure: Regenerate.
4031 * src/c++11/compatibility-c++0x.cc (error_category), generic_category,
4032 system_category): Use macros for versioned namespace.
4033 * src/c++11/futex.cc: Add missing end macro for versioned namespace.
4035 2015-03-20 James Greenhalgh <james.greenhalgh@arm.com>
4037 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
4038 test for unused for ARM.
4039 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
4040 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
4042 2015-03-20 Jonathan Wakely <jwakely@redhat.com>
4044 * include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
4045 * include/ext/codecvt_specializations.h (encoding_state,
4046 encoding_char_traits): Remove abi-tag and use inline namespace.
4047 * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.
4049 2015-03-19 Jason Merrill <jason@redhat.com>
4051 * config/locale/gnu/messages_members.cc: Revert abi-tag change.
4052 * src/c++11/cxx11-shim_facets.cc: Revert abi-tag change.
4054 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4057 * config/locale/gnu/messages_members.cc (Catalog_info, Catalogs,
4058 get_catalogs): Add abi-tag.
4059 * include/ext/codecvt_specializations.h (encoding_state,
4060 encoding_char_traits): Likewise.
4061 * src/c++11/cxx11-ios_failure.cc (io_error_category): Likewise.
4062 * src/c++11/cxx11-shim_facets.cc (__any_string::operator basic_string,
4063 numpunct_shim, collate_shim, time_get_shim, moneypunct_shim,
4064 money_get_shim, money_put_shim, messages_shim): Likewise.
4065 * src/c++11/future.cc (future_error_category::message): Likewise.
4066 * src/c++11/system_error.cc (generic_error_category::message,
4067 system_error_category::message): Likewise.
4068 (__sso_string): Disable -Wabi-tag warnings.
4070 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4073 * config/locale/gnu/messages_members.cc (get_glibc_msg): Fix fallback
4074 implementation for old glibc. Fix whitespace.
4076 2015-03-18 Jonathan Wakely <jwakely@redhat.com>
4077 Torvald Riegel <triegel@redhat.com>
4079 * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t.
4080 * config.h.in: Regenerate.
4081 * configure: Regenerate.
4082 * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T.
4083 (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER.
4084 (shared_timed_mutex::lock_shared()): Retry on EAGAIN.
4085 (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and
4088 2015-03-17 Jonathan Wakely <jwakely@redhat.com>
4090 * libsupc++/nested_exception.h: Do not try to derive from final
4092 * testsuite/18_support/nested_exception/throw_with_nested.cc: Test
4095 * testsuite/30_threads/shared_lock/modifiers/1.cc: Remove name of
4096 unused exception variable.
4097 * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
4098 * testsuite/30_threads/shared_lock/modifiers/2.cc: Remove duplicate
4100 * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
4102 2015-03-13 Jonathan Wakely <jwakely@redhat.com>
4104 * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
4105 * configure: Regenerate.
4107 * include/experimental/system_error: Fix include guard.
4109 2015-03-12 Renlin Li <renlin.li@arm.com>
4111 * testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
4114 2015-03-10 Tim Shen <timshen@google.com>
4117 * include/bits/regex.h (match_results<>::size,
4118 match_results<>::position, match_results<>::str,
4119 match_results<>::operator[], match_results<>::prefix,
4120 match_results<>::suffix, match_results<>::end,
4121 match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
4122 match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
4123 global __unmatched_sub. Add unmatched submatch as part of
4125 * include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
4126 regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
4127 * testsuite/28_regex/match_results/out_of_range_submatches.cc:
4130 2015-03-09 Jonathan Wakely <jwakely@redhat.com>
4133 * testsuite/28_regex/traits/char/isctype.cc: Don't test newline
4134 for newlib targets. Really fix mixed line-endings this time.
4136 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
4138 * include/std/future (future_error(error_code)): Construct base
4139 class with error_code's message.
4140 * src/c++11/future.cc (future_error::what()): Do not call c_str() on
4143 2015-03-05 Jonathan Wakely <jwakely@redhat.com>
4145 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
4147 * testsuite/22_locale/conversions/string/2.cc: Also test UTF-8.
4148 * testsuite/22_locale/conversions/string/3.cc: Likewise, and UTF-16.
4150 2015-03-04 Jonathan Wakely <jwakely@redhat.com>
4153 * include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
4154 incomplete multibyte sequences correctly.
4155 * include/std/codecvt (codecvt_utf8, codecvt_utf16,
4156 codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
4157 * src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
4159 (is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
4160 Define convenience functions.
4161 (read_utf8_code_point): Return relevant constant to distinguish
4162 incomplete characters from invalid sequences.
4163 (read_utf16_code_point): Likewise. Check for invalid sequences.
4164 (ucs4_in, utf16_in): Use incomplete_mb_character constant.
4165 (utf16_out): Check for invalid sequences.
4166 (utf16_span): Fix condition.
4167 (ucs2_out): Use is_high_surrogate.
4168 (ucs2_in): Use incomplete_mb_character constant and fix condition.
4169 * testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
4170 * testsuite/22_locale/conversions/buffer/1.cc: New.
4171 * testsuite/22_locale/conversions/string/2.cc: Use char16_t and
4172 char32_t instead of wchar_t.
4173 * testsuite/22_locale/conversions/string/3.cc: New.
4175 2015-03-03 Iain Sandoe <iain@codesourcery.com>
4178 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't check
4179 visibility for Darwin.
4180 * testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise, and
4182 * testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
4184 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
4187 * include/std/scoped_allocator (__inner_type_impl,
4188 scoped_allocator_adaptor): Add defaulted copy assignment and move
4189 assignment operators.
4190 * testsuite/20_util/scoped_allocator/65279.cc: New.
4192 2015-03-02 Jonathan Wakely <jwakely@redhat.com>
4195 * include/std/stdexcept (__sso_string): Don't use non-static member
4198 2015-02-28 Matthias Klose <doko@ubuntu.com>
4201 * python/libstdcxx/v6/__init__.py: Use explicit relative imports.
4203 2015-02-22 Jonathan Wakely <jwakely@redhat.com>
4205 * doc/xml/manual/status_cxx2011.xml: Remove duplicated information.
4206 * doc/html/manual/status.html: Regenerate.
4208 2015-02-20 Jonathan Wakely <jwakely@redhat.com>
4211 * python/libstdcxx/v6/printers.py (StdTuplePrinter): Handle new
4214 * doc/xml/manual/status_cxx2011.xml: Document implementation-defined
4216 * doc/html/manual/status.html: Regenerate.
4218 2015-02-19 Jonathan Wakely <jwakely@redhat.com>
4221 * include/bits/algorithmfwd.h (rotate): Move to inline namespace _V2.
4222 * include/bits/stl_algo.h (__rotate, rotate): Likewise.
4224 2015-02-19 Hans-Peter Nilsson <hp@axis.com>
4227 * testsuite/26_numerics/random/binomial_distribution/operators/values.cc
4228 (test01): Add explanatory comment. Keep only the bd1 sub-test and
4229 split out bd2, bd3, bd4, and bd5 sub-tests into...
4230 * testsuite/26_numerics/random/binomial_distribution/operators/values2.cc,
4231 testsuite/26_numerics/random/binomial_distribution/operators/values3.cc,
4232 testsuite/26_numerics/random/binomial_distribution/operators/values4.cc,
4233 testsuite/26_numerics/random/binomial_distribution/operators/values5.cc:
4234 New separate files with the old parts.
4236 2015-02-18 Jonathan Wakely <jwakely@redhat.com>
4238 * src/c++11/codecvt.cc (write_utf16_code_point): Fix code to output
4240 (utf16_in): Pass mode argument to write_utf16_code_point.
4241 (codecvt<char16_t, char, mbstate_t>::do_in): Set mode according to
4243 * testsuite/22_locale/codecvt/char16_t.cc: New.
4244 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Fix typo.
4246 * testsuite/22_locale/codecvt/char16_t.cc: Add dg-require-cstdint.
4247 * testsuite/22_locale/codecvt/char32_t.cc: Likewise.
4249 2015-02-17 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
4250 Jonathan Wakely <jwakely@redhat.com>
4252 * testsuite/22_locale/codecvt/char32_t.cc: New.
4254 2015-02-17 Jonathan Wakely <jwakely@redhat.com>
4257 * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
4258 empty string gets null-terminated.
4259 * testsuite/21_strings/basic_string/cons/char/65085.cc: New.
4261 2015-02-13 Matthew Wahab <matthew.wahab@arm.com>
4263 * testsuite/28_regex/traits/char/isctype.cc (test01): Fix
4264 mixed line-endings introduced in last change.
4266 2015-02-12 Matthew Wahab <matthew.wahab@arm.com>
4268 * testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
4269 for __NEWLIB__ macro with a dejagnu set macro.
4270 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
4272 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
4275 * testsuite/28_regex/traits/char/isctype.cc (test01): Add newlib
4276 special case for '\n'.
4277 * testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.
4279 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
4281 * src/c++11/futex.cc: Do not define for gthr-single.h targets.
4283 2015-02-01 Jonathan Wakely <jwakely@redhat.com>
4286 * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
4288 * include/c_std/cstdio (gets): Likewise.
4289 * testsuite/17_intro/headers/c++1998/all_attributes.cc: Avoid clashing
4290 with attributes used in darwin headers.
4292 2015-01-29 Jakub Jelinek <jakub@redhat.com>
4294 * acinclude.m4 (VTV_CYGMIN): Use x$vtv_cygmin = xyes instead of
4295 $vtv_cygmin = yes. Initialize vtv_cygmin=no unconditionally first.
4296 * configure: Regenerated.
4298 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
4300 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
4301 after vtv_cygmin is set.
4302 * configure: Regenerated.
4304 2015-01-29 Matthias Klose <doko@ubuntu.com>
4306 * acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY): Define VTV_CYGMIN
4308 * configure: Regenerate.
4310 2015-01-29 Caroline Tice <cmtice@google.com>
4312 Committing VTV Cywin/Ming patch for Patrick Wollgast
4313 * configure: Regenerate.
4314 * libsupc++/Makefile.in: Regenerate.
4315 * src/Makefile.in: Regenerate.
4317 2015-01-29 Jonathan Wakely <jwakely@redhat.com>
4319 * include/bits/atomic_base.h: Use __always_inline__ instead of
4321 * include/bits/atomic_futex.h: Likewise.
4322 * include/bits/c++config: Use __abi_tag__ instead of abi_tag.
4323 * include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Use
4324 __packed__ instead of packed.
4325 * include/std/shared_mutex: Use __unused__ instead of unused.
4326 * testsuite/17_intro/headers/c++1998/all_attributes.cc: New.
4327 * testsuite/17_intro/headers/c++200x/all_attributes.cc: New.
4328 * testsuite/17_intro/headers/c++2014/all_attributes.cc: New.
4330 2015-01-28 Caroline Tice <cmtice@google.com>
4332 Committing VTV Cywin/Ming patch for Patrick Wollgast
4333 * acinclude.m4: Define VTV_CYGMIN.
4334 * libsupc++/Makefile.am: Add vtv_sources only to libsupc___la_SOURCES
4335 and libsupc__convenience_la_SOURCES if VTV_CYGMIN is not set.
4336 * libsupc++/vtv_stubs.cc: Add none weak declaration of every function
4337 for Cygwin and MinGW.
4338 * src/Makefile.am: Add libvtv.la to toolexeclib_LTLIBRARIES, if
4339 VTV_CYGMIN is set. Define libvtv_la_SOURCES, libvtv_la_LDFLAGS,
4340 libvtv_la_AM_CXXFLAGS and libvtv_la_LINK if VTV_CYGMIN is set.
4342 2015-01-28 Jonathan Wakely <jwakely@redhat.com>
4345 * libsupc++/Makefile.am: Compile del_opvs.cc as C++14.
4346 * libsupc++/Makefile.in: Regenerate.
4347 * src/c++11/Makefile.in: Regenerate.
4349 2015-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4351 * testsuite/lib/libstdc++.exp (v3_target_compile): Remove
4352 check for unsupported.
4353 (v3_target_compile_as_c): Likewise.
4355 2015-01-28 Richard Biener <rguenther@suse.de>
4358 * libsupc++/eh_alloc.cc (struct allocated_entry): Align
4360 (pool::allocate): Adjust allocation size and alignment to
4362 (pool::free): Adjust pointer offsetting.
4364 2015-01-27 Jonathan Wakely <jwakely@redhat.com>
4367 * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
4368 shared_timed_mutex::try_lock_until): Only define when POSIX thread
4369 timeouts option is supported.
4370 (shared_timed_mutex::try_shared_lock_for,
4371 shared_timed_mutex::try_shared_lock_until): Likewise.
4373 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
4376 * config/locale/gnu/numeric_members.cc (numpunct<char>::~numpunct(),
4377 numpunct<wchar_t>::~numpunct()): Do not set _M_data->_M_grouping.
4378 * src/c++11/cxx11-shim_facets.cc (numpunct_shim): Remove _M_grouping
4379 and use cache's _M_grouping field.
4380 (__numpunct_fill_cache): Likewise.
4381 (__moneypunct_fill_cache): Improve comments.
4383 2015-01-26 Jonathan Wakely <jwakely@redhat.com>
4385 * testsuite/23_containers/set/operations/2.cc: Add test for
4386 non-transparent comparison function.
4388 2015-01-25 Oleg Endo <olegendo@gcc.gnu.org>
4391 * config/cpu/sh/atomicity.h (__exchange_and_add, __atomic_add):
4392 Remove SH4A inline asm and lock based implementations and use the
4393 defaults from ext/atomicity.h.
4395 2015-01-23 Jonathan Wakely <jwakely@redhat.com>
4397 * config/abi/pre/gnu.ver: Tighten GLIBCXX_3.4 patterns to not match
4398 new std::string constructors for byname facets.
4400 2015-01-22 Richard Biener <rguenther@suse.de>
4403 * libsupc++/eh_alloc.cc: Include new.
4404 (bitmask_type): Remove.
4405 (one_buffer): Likewise.
4406 (emergency_buffer): Likewise.
4407 (emergency_used): Likewise.
4408 (dependents_buffer): Likewise.
4409 (dependents_used): Likewise.
4410 (class pool): New custom fixed-size arena, variable size object
4412 (emergency_pool): New global.
4413 (__cxxabiv1::__cxa_allocate_exception): Use new emergency_pool.
4414 (__cxxabiv1::__cxa_free_exception): Likewise.
4415 (__cxxabiv1::__cxa_allocate_dependent_exception): Likewise.
4416 (__cxxabiv1::__cxa_free_dependent_exception): Likewise.
4418 2015-01-22 Tim Shen <timshen@google.com>
4421 * include/bits/regex.h (basic_regex<>::basic_regex,
4422 basic_regex<>::operator=, basic_regex<>::imbue): Conform to the
4424 * testsuite/28_regex/basic_regex/assign/char/cstring.cc: New testcase.
4426 2015-01-22 Tim Shen <timshen@google.com>
4429 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
4430 regex_traits<>::lookup_classname): Correctly narrow input chars.
4431 * testsuite/28_regex/traits/wchar_t/user_defined.cc: New testcase.
4433 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
4435 * config/abi/pre/gnu.ver: Use [jmy] for size_t parameters.
4437 2015-01-21 Jonathan Wakely <jwakely@redhat.com>
4439 * testsuite/29_atomics/atomic/64658.cc: Test stored value.
4441 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4443 * doc/xml/manual/status_cxx2011.xml: Remove stray dbhtml tags.
4444 * doc/xml/manual/status_cxx2014.xml: Update status.
4445 * doc/html/manual/status.html: Regenerate.
4447 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4450 * include/experimental/optional (bad_optional_access): Add default
4452 * testsuite/experimental/optional/requirements.cc: Test for default
4455 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4457 * include/bits/stl_map.h (map::find<>, map::count<>,
4458 map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
4459 member function templates to perform heterogeneous lookup.
4460 * include/bits/stl_multimap.h (multimap::find<>, multimap::count<>,
4461 multimap::lower_bound<>, multimap::upper_bound<>,
4462 multimap::equal_range<>): Likewise.
4463 * include/bits/stl_multiset.h (multiset::find<>, multiset::count<>,
4464 multiset::lower_bound<>, multiset::upper_bound<>,
4465 multiset::equal_range<>): Likewise.
4466 * include/bits/stl_set.h (set::find<>, set::count<>,
4467 set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
4468 * include/bits/stl_tree.h (_Rb_tree::_S_lower_bound_tr,
4469 _Rb_tree::_S_upper_bound_tr, _Rb_tree::_M_find_tr,
4470 _Rb_tree::_M_count_tr, _Rb_tree::_M_lower_bound_tr,
4471 _Rb_tree::_M_upper_bound_tr, _Rb_tree::_M_equal_range_tr): Likewise.
4472 * testsuite/23_containers/map/operations/2.cc: New.
4473 * testsuite/23_containers/multimap/operations/2.cc: New.
4474 * testsuite/23_containers/multiset/operations/2.cc: New.
4475 * testsuite/23_containers/set/operations/2.cc: New.
4477 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4479 * config/abi/pre/gnu.ver: Export new constructors.
4480 * include/bits/codecvt.h (codecvt_byname): Add string constructor.
4481 (codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
4482 specializations and declare explicit instantiations.
4483 * include/bits/locale_classes.h (locale, collate_byname): Add string
4485 * include/bits/locale_facets.h (ctype_byname, numpunct_byname):
4487 * include/bits/locale_facets_nonio.h (time_get_byname,
4488 time_put_byname, moneypunct_byname, messages_byname): Likewise.
4489 * src/c++11/codecvt.cc (codecvt_byname<char16_t>,
4490 codecvt_byname<char32_t>): Define explicit instantiations.
4491 * src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
4492 Instantiate string constructors.
4493 (ctype_byname): Define string constructor.
4494 * testsuite/22_locale/codecvt_byname/1.cc: New.
4495 * testsuite/22_locale/collate_byname/1.cc: New.
4496 * testsuite/22_locale/ctype_byname/2.cc: New.
4497 * testsuite/22_locale/messages_byname/1.cc: New.
4498 * testsuite/22_locale/moneypunct_byname/1.cc: New.
4499 * testsuite/22_locale/numpunct_byname/1.cc: New.
4501 2015-01-20 Jonathan Wakely <jwakely@redhat.com>
4504 * include/std/atomic (atomic_init): Define.
4505 * testsuite/29_atomics/atomic/64658.cc: New.
4507 2015-01-19 Tim Shen <timshen@google.com>
4510 * include/bits/regex.tcc (regex_traits<>::lookup_collatename,
4511 regex_traits<>::lookup_classname): Support forward iterators.
4512 * testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
4513 * testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.
4515 2015-01-19 Tim Shen <timshen@google.com>
4519 * include/bits/regex.h (basic_regex<>::basic_regex,
4520 basic_regex<>::assign, basic_regex<>::imbue,
4521 basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
4522 imbuing basic_regex; Make assign() transactional against exception.
4523 * include/bits/regex_compiler.h (__compile_nfa<>): Add back
4524 __compile_nfa SFINAE.
4525 * include/std/regex: Adjust include order to avoid __compile_nfa
4526 forward declaration.
4527 * testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
4528 * testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.
4530 2015-01-19 Ville Voutilainen <ville.voutilainen@gmail.com>
4531 Jonathan Wakely <jwakely@redhat.com>
4533 * include/bits/range_access.h (begin, end): Use _GLIBCXX14_CONSTEXPR
4534 on overloads for arrays.
4535 (cbegin, cend, rbegin, rend, crbegin, crend): New.
4536 * testsuite/24_iterators/range_access_cpp14.cc: New.
4538 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4541 * include/bits/stl_algo.h (__is_permutation): Also test for reaching
4542 end of the second range.
4543 * testsuite/25_algorithms/is_permutation/64646.cc: New.
4545 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4547 * doc/xml/manual/status_cxx2011.xml: Remove note about offsetof.
4548 * doc/html/manual/status.html: Regenerate.
4550 2015-01-18 Jonathan Wakely <jwakely@redhat.com>
4552 * include/bits/atomic_futex.h: Use mutex and condition_variable when
4553 atomic int is not lock-free. Make member variables private.
4554 * src/c++11/futex.cc: Likewise.
4556 * src/c++11/futex.cc: Fix order of includes and preprocessor condition.
4558 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4561 * include/bits/atomic_futex.h: Use appropriate config macros for
4562 availability of std::mutex, std::condition and std::chrono.
4564 2015-01-17 Ville Voutilainen <ville.voutilainen@gmail.com>
4565 Jonathan Wakely <jwakely@redhat.com>
4567 * doc/xml/manual/status_cxx2011.xml: Update C++11 status.
4568 * doc/html/*: Regenerate.
4570 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4574 * include/bits/algorithmfwd.h (rotate): Return an iterator.
4575 * include/bits/stl_algo.h (rotate, __rotate): Likewise.
4576 * testsuite/25_algorithms/rotate/dr488.cc: New.
4577 * testsuite/25_algorithms/rotate/check_type.cc: Adjust function type.
4578 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
4580 * testsuite/25_algorithms/rotate/requirements/explicit_instantiation/
4583 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4586 * include/bits/atomic_base.h: Remove atomic integral typedefs as
4587 synonyms for __atomic_base<int> etc.
4588 * include/std/atomic: Make atomic_int a synonym for atomic<int> and
4589 likewise for all atomic integral types.
4590 * testsuite/29_atomics/atomic_integral/cons/copy_list.cc: New.
4591 * testsuite/29_atomics/atomic/60695.cc: Adjust dg-error line number.
4593 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4596 * include/std/tuple (_Tuple_impl): Remove zero-element specialization
4597 and define one-element specialization.
4598 * testsuite/20_util/tuple/56785.cc: New.
4600 2015-01-17 Jonathan Wakely <jwakely@redhat.com>
4602 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc:
4603 Remove unused header.
4604 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc:
4606 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
4609 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4611 * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): New.
4612 * include/std/locale: Include new header.
4613 * include/Makefile.am: Add it.
4614 * include/Makefile.in: Regenerate.
4615 * testsuite/22_locale/conversions/buffer/requirements/typedefs.cc: New.
4616 * testsuite/22_locale/conversions/string/1.cc: New.
4617 * testsuite/22_locale/conversions/string/2.cc: New.
4618 * testsuite/22_locale/conversions/string/requirements/typedefs.cc: New.
4619 * testsuite/22_locale/conversions/string/requirements/typedefs-2.cc:
4622 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4624 * config/abi/pre/gnu.ver: Export new symbols.
4625 * include/Makefile.am: Add codecvt.
4626 * include/Makefile.in: Regenerate.
4627 * include/std/codecvt: New header.
4628 * src/c++11/codecvt.cc (__codecvt_utf8_base, __codecvt_utf16_base,
4629 __codecvt_utf8_utf16_base): Define specializations.
4630 * testsuite/22_locale/codecvt/codecvt_utf8/requirements/1.cc: New.
4631 * testsuite/22_locale/codecvt/codecvt_utf16/requirements/1.cc: New.
4632 * testsuite/22_locale/codecvt/codecvt_utf8_utf16/requirements/1.cc:
4635 2015-01-16 Torvald Riegel <triegel@redhat.com>
4637 * src/c++11/futex.cc: New file.
4638 * include/bits/atomic_futex.h: New file.
4639 * include/std/future (__future_base::_State_baseV2): Use
4640 atomic_futex_unsigned instead of mutex+condvar.
4641 * src/c++11/futex.cc: Likewise.
4642 * include/Makefile.am: Add atomic_futex.h.
4643 * include/Makefile.in: Likewise.
4644 * src/c++11/Makefile.am: Add futex.cc.
4645 * src/c++11/Makefile.in: Likewise.
4647 2015-01-16 Jonathan Wakely <jwakely@redhat.com>
4649 * acinclude.m4: Fix typo in comment.
4650 * configure: Regenerate.
4651 * include/bits/codecvt.h (codecvt<char16_t, char, mbstate_t>,
4652 codecvt<char16_t, char, mbstate_t>): Declare specializations.
4653 * include/bits/locale_facets.h: Reserve space for new specializations.
4654 * src/c++11/Makefile.am: Add codecvt.cc.
4655 * src/c++11/Makefile.in: Regenerate.
4656 * src/c++11/codecvt.cc: New.
4657 * src/c++98/Makefile.am: Compile locale_init.cc and localename.cc
4659 * src/c++98/Makefile.in: Regenerate.
4660 * src/c++98/locale_init.cc: Initialize new codecvt specializations.
4661 * src/c++98/localename.cc: Likewise.
4662 * config/abi/pre/gnu.ver: Exports for new codecvt specializations.
4663 * testsuite/22_locale/codecvt/utf8.cc: New.
4664 * testsuite/22_locale/locale/cons/unicode.cc: Check that new
4665 specializations are installed in locale objects.
4667 2015-01-16 Torvald Riegel <triegel@redhat.com>
4669 * include/std/shared_mutex (shared_timed_mutex): Add POSIX-based
4672 2015-01-13 Jonathan Wakely <jwakely@redhat.com>
4675 * config/abi/pre/gnu.ver: Export fstream functions using new string.
4677 2015-01-12 Jonathan Wakely <jwakely@redhat.com>
4680 * src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
4684 * src/c++11/cxx11-shim_facets.cc: Check for wchar_t support.
4686 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4688 * doc/xml/manual/parallel_mode.xml: Update for libgomp being
4689 renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
4690 Multi Processing Runtime Library".
4692 2015-01-09 Jonathan Wakely <jwakely@redhat.com>
4695 * include/bits/stl_uninitialized.h (uninitialized_copy): Fix
4696 is_assignable arguments.
4697 * testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
4700 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4702 * libsupc++/unwind-cxx.h: Revert previous commit.
4704 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4706 * configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
4708 2015-01-09 Tim Shen <timshen@google.com>
4711 * include/bits/regex.h (match_results<>::swap): Use std::swap
4713 * include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
4715 * testsuite/28_regex/match_results/swap.cc: New testcase.
4717 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
4720 * include/std/type_traits (has_trivial_default_constructor,
4721 has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
4723 * testsuite/20_util/has_trivial_copy_assign/requirements/
4724 explicit_instantiation.cc: Use -Wno-deprecated.
4725 * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
4727 * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
4728 * testsuite/20_util/has_trivial_copy_constructor/requirements/
4729 explicit_instantiation.cc: Likewise.
4730 * testsuite/20_util/has_trivial_copy_constructor/requirements/
4731 typedefs.cc: Likewise.
4732 * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
4733 * testsuite/20_util/has_trivial_default_constructor/requirements/
4734 explicit_instantiation.c: Likewise.
4735 * testsuite/20_util/has_trivial_default_constructor/requirements/
4736 typedefs.cc: Likewise.
4737 * testsuite/20_util/has_trivial_default_constructor/value.cc:
4739 * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
4741 * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
4742 * testsuite/util/testsuite_common_types.h: Likewise.
4744 2015-01-08 Jonathan Wakely <jwakely@redhat.com>
4746 * include/bits/hashtable_policy.h: Use __bool_constant.
4748 2015-01-07 Jonathan Wakely <jwakely@redhat.com>
4750 * libsupc++/Makefile.am: Compile del_ops.cc as C++14.
4751 * libsupc++/Makefile.in: Regenerate.
4753 2015-01-06 Jonathan Wakely <jwakely@redhat.com>
4755 * config/abi/pre/gnu.ver: Fix version conflict for std::locale::name().
4757 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4759 Update copyright years.
4761 2015-01-04 Jonathan Wakely <jwakely@redhat.com>
4764 * testsuite/18_support/exception_ptr/64241.cc: Use
4765 dg-require-atomic-builtins.
4767 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4769 * testsuite/21_strings/basic_string/modifiers/64422.cc: Fix copyright
4772 2015-01-02 Tim Shen <timshen@google.com>
4775 * include/bits/regex_executor.tcc (_Executor<>::_M_dfs): Copy the
4776 iterator, since the original one shouldn't be mutated.
4778 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4781 * src/c++98/misc-inst.cc (string::erase): Add missing overloads.
4782 (string::insert): Likewise.
4783 (string::replace): Likewise.
4784 (wstring::erase): Likewise.
4785 (wstring::insert): Likewise.
4786 (wstring::replace): Likewise.
4787 * testsuite/21_strings/basic_string/modifiers/64422.cc: New testcase.
4789 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4792 * doc/doxygen/user.cfg.in: Set correct TAB_SIZE.
4794 2015-01-02 Jonathan Wakely <jwakely@redhat.com>
4797 * testsuite/21_strings/basic_string/numeric_conversions/char/dr1261.cc:
4798 Revert removal of dg-require-string-conversions.
4799 * testsuite/21_strings/basic_string/numeric_conversions/char/stod.cc:
4801 * testsuite/21_strings/basic_string/numeric_conversions/char/stof.cc:
4803 * testsuite/21_strings/basic_string/numeric_conversions/char/stoi.cc:
4805 * testsuite/21_strings/basic_string/numeric_conversions/char/stol.cc:
4807 * testsuite/21_strings/basic_string/numeric_conversions/char/stold.cc:
4809 * testsuite/21_strings/basic_string/numeric_conversions/char/stoll.cc:
4811 * testsuite/21_strings/basic_string/numeric_conversions/char/stoul.cc:
4813 * testsuite/21_strings/basic_string/numeric_conversions/char/
4814 stoull.cc: Likewise.
4815 * testsuite/21_strings/basic_string/numeric_conversions/char/
4816 to_string.cc: Likewise.
4818 Copyright (C) 2015 Free Software Foundation, Inc.
4820 Copying and distribution of this file, with or without modification,
4821 are permitted in any medium without royalty provided the copyright
4822 notice and this notice are preserved.