1 2013-02-20 Jonathan Wakely <jwakely.gcc@gmail.com>
3 * testsuite/23_containers/unordered_set/55043.cc: Add missing
4 namespace qualification.
5 * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
7 2013-02-19 Benjamin Kosnik <bkoz@redhat.com>
9 * doc/doxygen/user.cfg.in: Set __cplusplus to 201103L. Change to
10 _GLIBCXX_INCLUDE_AS_CXX11. DIRECTORY_GRAPH, MARKDOWN_SUPPORT,
11 AUTOLINK_SUPPORT to NO. Update to doxygen 1.8.3.1.
12 * include/bits/stl_pair.h: Add to utilities group.
13 * include/std/tuple: Same.
14 * include/std/typeindex: Same.
16 * include/bits/stringfwd.h: Fix markup.
17 * include/std/limits: Same.
18 * include/std/type_traits: Same.
19 * include/tr1/memory: Same.
20 * include/tr1/regex: Same.
21 * scripts/run_doxygen: Comment.
22 * testsuite/20_util/uses_allocator/cons_neg.cc: Fixup line numbers.
24 2013-02-14 Jason Merrill <jason@redhat.com>
26 * testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
29 2013-02-13 Marc Glisse <marc.glisse@inria.fr>
32 * include/std/complex (complex): Undefine.
33 * include/c_compatibility/complex.h (complex): Only undefine if
34 <complex> has been included.
35 * testsuite/26_numerics/complex/56111.cc: New testcase.
37 2013-02-13 François Dumont <fdumont@gcc.gnu.org>
39 * include/bits/hashtable_policy.h (_Hash_code_base): Restore
40 default constructor protected.
41 * include/bits/hashtable.h: static assert that _Hash_code_base has
42 a default constructor available through inheritance.
44 2013-02-12 Paolo Carlini <paolo.carlini@oracle.com>
46 * include/c_std/cstdlib (at_quick_exit, quick_exit): Provide in
49 2013-02-12 Julian Brown <julian@codesourcery.com>
51 * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc (test01):
52 Don't expect dots after abbreviated weekday names for ru_RU for
53 glibc versions >= 2.17.
54 * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc (test01):
57 2013-02-12 Paolo Carlini <paolo.carlini@oracle.com>
59 * include/bits/random.tcc (__transform): Remove.
61 (discrete_distribution<>::param_type::_M_initialize): Adjust.
62 (piecewise_constant_distribution<>::param_type::_M_initialize):
64 (piecewise_linear_distribution<>::param_type::_M_initialize):
67 2013-02-11 Benjamin Kosnik <bkoz@redhat.com>
69 * src/c++11/Makefile.am (hashtable_c++0x.lo, hashtable_c++0x.o):
70 Use -fimplicit-templates.
71 * src/c++11/Makefile.in: Regenerate.
72 * src/c++11/hashtable_c++0x.cc: Remove instantiation for
73 std::lower_bound template.
75 2013-02-11 Paolo Carlini <paolo.carlini@oracle.com>
77 * include/c_std/cstdlib (at_quick_exit, quick_exit): Do not declare.
78 * include/c_global/cstdlib (at_quick_exit, quick_exit): Declare only
79 in C++11 mode and if available in the underlying C library.
80 * testsuite/18_support/quick_exit/quick_exit.cc: Compile with
81 -std=gnu++11; check _GLIBCXX_HAVE_AT_QUICK_EXIT and
82 _GLIBCXX_HAVE_QUICK_EXIT.
84 2013-02-11 Benjamin Kosnik <bkoz@redhat.com>
86 * doc/html/*: Regenerate.
88 2013-02-11 Jason Merrill <jason@redhat.com>
90 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE): New.
91 (GLIBCXX_CHECK_STDLIB_SUPPORT): Check for atexit and at_quick_exit.
92 * config.h.in, configure: Regenerate.
93 * include/c_std/cstdlib: Add atexit and at_quick_exit.
94 * include/c_global/cstdlib: Add atexit and at_quick_exit.
95 * testsuite/18_support/quick_exit/quick_exit.cc: New.
97 2013-02-11 Paolo Carlini <paolo.carlini@oracle.com>
101 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
104 * include/bits/basic_ios.h: Replace operator void*() const
105 with explicit operator bool() const in C++11 and greater.
106 * testsuite/27_io/basic_ios/pr56193.cc: New file.
108 2013-02-10 François Dumont <fdumont@gcc.gnu.org>
109 Jonathan Wakely <jwakely.gcc@gmail.com>
111 * doc/xml/manual/containers.xml: Add section on unordered containers.
112 * doc/xml/manual/using.xml: Fix incomplete sentence.
114 2013-02-10 Jonathan Wakely <jwakely.gcc@gmail.com>
117 * include/bits/hashtable.h (__cache_default): Check if hash function
119 * testsuite/23_containers/unordered_set/56267.cc: New.
120 * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
121 dg-error line number.
122 * testsuite/23_containers/unordered_set/
123 not_default_constructible_hash_neg.cc: Likewise.
126 * include/bits/hashtable_policy.h (_Hash_code_base): Make default
128 * testsuite/23_containers/unordered_set/56278.cc: New.
130 2013-02-09 François Dumont <fdumont@gcc.gnu.org>
132 * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series): Code
135 2013-02-08 Edward Smith-Rowland <3dw4rd@verizon.net>
138 * include/tr1/special_function_util.h: Remove spurious const
139 from numeric arguments.
140 * include/tr1/riemann_zeta.tcc: Likewise.
141 * include/tr1/exp_integral.tcc: Likewise.
142 * include/tr1/bessel_function.tcc: Likewise.
143 * include/tr1/hypergeometric.tcc: Likewise.
144 * include/tr1/modified_bessel_func.tcc: Likewise.
145 * include/tr1/poly_laguerre.tcc: Likewise.
146 * include/tr1/gamma.tcc: Likewise.
147 * include/tr1/legendre_function.tcc: Likewise.
148 * include/tr1/poly_hermite.tcc: Likewise.
149 * include/tr1/ell_integral.tcc: Likewise.
150 * include/tr1/bessel_function.tcc (__cyl_bessel_ij_series):
151 If argument is zero return function value.
152 * testsuite/tr1/5_numerical_facilities/special_functions/
153 08_cyl_bessel_i/pr56216.cc: New.
155 2013-02-07 Paolo Carlini <paolo.carlini@oracle.com>
157 * testsuite/27_io/basic_ios/pr56193.cc: Tweak.
159 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
162 * include/bits/basic_ios.h: Replace operator void*() const
163 with explicit operator bool() const in C++11 and greater.
164 * testsuite/27_io/basic_ios/pr56193.cc: New file.
166 2013-02-04 Dodji Seketeli <dodji@redhat.com>
168 Add missing explicit instantiation for std::lower_bound template
169 * libstdc++-v3/src/c++11/hashtable_c++0x.cc (namespace std): Add
170 missing instantiation for std::lower_bound template.
172 2013-02-04 François Dumont <fdumont@gcc.gnu.org>
174 * include/bits/functional_hash.h (std::__is_fast_hash<>): New.
175 * include/bits/basic_string.h: Specialize previous to mark
176 std::hash for string types as slow.
177 * include/bits/hashtable.h (__cache_default): Replace is_integral
179 * src/c++11/hash_c++0x.cc: Add type_traits include.
180 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
181 Adapt dg-error line number.
182 * testsuite/23_containers/unordered_set/
183 not_default_constructible_hash_neg.cc: Likewise.
185 2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
186 Paolo Carlini <paolo.carlini@oracle.com>
188 PR libstdc++/56202 (again)
189 * include/bits/random.tcc (binomial_distribution<>::
190 _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Fix thinko
193 * include/bits/random.h: Fix comment typo.
195 2013-02-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
196 Paolo Carlini <paolo.carlini@oracle.com>
199 * include/bits/random.tcc (binomial_distribution<>::
200 _M_waiting(_UniformRandomNumberGenerator&, _IntType)): Avoid
203 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
205 Update copyright years.
206 * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc,
207 testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc,
208 testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc,
209 testsuite/23_containers/deque/requirements/dr438/insert_neg.cc,
210 testsuite/23_containers/list/requirements/dr438/assign_neg.cc,
211 testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc,
212 testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc,
213 testsuite/23_containers/list/requirements/dr438/insert_neg.cc,
214 testsuite/23_containers/vector/requirements/dr438/assign_neg.cc,
215 testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc,
216 testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc,
217 testsuite/23_containers/vector/requirements/dr438/insert_neg.cc,
218 testsuite/29_atomics/atomic/cons/assign_neg.cc,
219 testsuite/29_atomics/atomic/cons/copy_neg.cc,
220 testsuite/29_atomics/atomic_integral/cons/assign_neg.cc,
221 testsuite/29_atomics/atomic_integral/cons/copy_neg.cc,
222 testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc,
223 testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc,
224 testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
225 Update lines in dg error matches.
227 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
229 * config/os/mingw32/ctype_inline.h: Fix copyright typo.
231 2013-02-01 François Dumont <fdumont@gcc.gnu.org>
233 * include/bits/hashtable_policy.h
234 (_Prime_rehash_policy::_M_next_bkt)
235 (_Prime_rehash_policy::_M_need_rehash): Move definition...
236 * src/c++11/hashtable_c++0x.cc: ... here.
237 * src/shared/hashtable-aux.cc: Remove c++config.h include.
238 * config/abi/gnu.ver (GLIBCXX_3.4.18): Export _Prime_rehash_policy
241 2013-01-29 Jason Merrill <jason@redhat.com>
244 * config/abi/pre/gnu.ver: Don't export construction vtables.
245 * config/abi/pre/gnu-versioned-namespace.ver: Likewise.
247 2013-01-28 Jonathan Wakely <jwakely.gcc@gmail.com>
250 * include/bits/hashtable_policy.h (insert(_Pair&&)): Use _M_emplace
251 to construct value_type explicitly before trying to extract the key.
252 * testsuite/23_containers/unordered_map/cons/56112.cc: New.
254 2013-01-28 François Dumont <fdumont@gcc.gnu.org>
256 * include/bits/hashtable_policy.h (_Local_iterator_base): Use
257 _Hashtable_ebo_helper to embed functors into the local_iterator
258 when necessary. Pass information about functors involved in hash
260 * include/bits/hashtable.h (__cache_default): Do not cache for
261 builtin integral types unless the hash functor is not noexcept
262 qualified or is not default constructible. Adapt static assertions
263 and local iterator instantiations.
264 * include/debug/unordered_set
265 (std::__debug::unordered_set<>::erase): Detect local iterators to
266 invalidate using contained node rather than generating a dummy
267 local_iterator instance.
268 (std::__debug::unordered_multiset<>::erase): Likewise.
269 * include/debug/unordered_map
270 (std::__debug::unordered_map<>::erase): Likewise.
271 (std::__debug::unordered_multimap<>::erase): Likewise.
272 * testsuite/performance/23_containers/insert_erase/41975.cc: Test
273 std::tr1 and std versions of unordered_set regardless of any
274 macro. Add test on default cache behavior.
275 * testsuite/performance/23_containers/insert/54075.cc: Likewise.
276 * testsuite/23_containers/unordered_set/instantiation_neg.cc:
278 * testsuite/23_containers/unordered_set/
279 not_default_constructible_hash_neg.cc: New.
280 * testsuite/23_containers/unordered_set/buckets/swap.cc: New.
282 2013-01-24 Paolo Carlini <paolo.carlini@oracle.com>
285 * include/std/complex (pow(const complex<>&, int)): Avoid __n
288 2013-01-22 Jakub Jelinek <jakub@redhat.com>
290 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
291 Tightten scan-assembler-times regexps, add dg-additional-options for
292 ia32, add -g0 -fno-exceptions -fno-asynchronous-unwind-tables to
295 2013-01-12 Andi Kleen <ak@linux.intel.com>
296 Jonathan Wakely <jwakely.gcc@gmail.com>
299 * include/bits/atomic_base.h (__memory_order_modifier): Add
300 __memory_order_mask, __memory_order_modifier_mask,
301 __memory_order_hle_acquire, __memory_order_hle_release.
302 (operator|,operator&): Add.
303 (__cmpexch_failure_order): Rename to __cmpexch_failure_order2.
304 (__cmpexch_failure_order): Add.
305 (clear, store, load, compare_exchange_weak, compare_exchange_strong):
307 * testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
310 2013-01-19 Jonathan Wakely <jwakely.gcc@gmail.com>
313 * include/std/future (_State_base::_S_check(const shared_ptr<T>&)):
315 (__basic_future::_M_get_result()): Const qualify.
316 (shared_future::get()): Likewise.
317 * testsuite/30_threads/shared_future/members/get.cc: Use const
320 2013-01-16 Jonathan Wakely <jwakely.gcc@gmail.com>
322 PR libstdc++/55043 (again)
323 * include/bits/alloc_traits.h (allocator_traits::construct): Disable
324 unless construction would be well-formed.
325 (__allow_copy_cons, __check_copy_constructible): Define.
326 * include/bits/unordered_map.h (__check_copy_constructible): Use as
327 base class so copy constructor will be deleted if appropriate.
328 (is_copy_constructible): Remove specialization.
329 * include/bits/unordered_set.h: Likewise.
330 * include/debug/unordered_map.h: Undo previous commit. Default copy
331 and move constructors.
332 * include/debug/unordered_set.h: Likewise.
333 * include/profile/unordered_map.h: Undo previous commit.
334 * include/profile/unordered_set.h: Likewise.
335 * testsuite/23_containers/unordered_map/55043.cc: Fix test.
336 * testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
337 * testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
338 * testsuite/23_containers/unordered_set/55043.cc: Likewise.
339 * testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL,
340 cannot support incomplete types.
341 * testsuite/23_containers/unordered_multimap/requirements/53339.cc:
344 2013-01-16 Jonathan Wakely <jwakely.gcc@gmail.com>
347 * include/std/unordered_map: Include alloc_traits.h
348 * include/std/unordered_set: Likewise.
349 * include/bits/alloc_traits.h: Define __is_copy_insertable.
350 * include/bits/unordered_map.h: Use it.
351 * include/bits/unordered_set.h: Likewise.
352 * include/debug/unordered_map.h: Likewise.
353 * include/debug/unordered_set.h: Likewise.
354 * include/profile/unordered_map.h: Likewise.
355 * include/profile/unordered_set.h: Likewise.
356 * include/bits/hashtable.h: Fix comment typos.
357 * testsuite/23_containers/unordered_map/55043.cc: New.
358 * testsuite/23_containers/unordered_multimap/55043.cc: New.
359 * testsuite/23_containers/unordered_multiset/55043.cc: New.
360 * testsuite/23_containers/unordered_set/55043.cc: New.
362 2013-01-03 Janis Johnson <janisjo@codesourcery.com>
364 * testsuite/lib/gdb-test.exp (gdb_batch_check): Catch error running
367 2013-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
369 * doc/xml/manual/status_cxx2011.xml: Document that N3189 is missing.
371 2013-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
374 * include/std/functional (_Mem_fn::operator()): Fix constraints to
376 * testsuite/20_util/function_objects/mem_fn/55908.cc: New.
377 * testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers.
379 2013-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
382 * acinclude.m4 (GLIBCXX_CHECK_ASSEMBLER_HWCAP): Restrict test to
384 * configure: Regenerate.
386 2013-01-07 Jonathan Wakely <jwakely.gcc@gmail.com>
389 * src/c++11/shared_ptr.cc (bad_weak_ptr::what()): Correct string.
390 * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Verify
394 * include/std/functional (bad_function_call::what()): Declare.
395 * src/c++11/functional.cc (bad_function_call::what()): Define.
396 * config/abi/pre/gnu.ver (bad_function_call::what()): Export.
397 * testsuite/20_util/bad_function_call/what.cc: New.
399 2013-01-06 Jonathan Wakely <jwakely.gcc@gmail.com>
401 * include/bits/unordered_map.h: Fix typo in comments.
402 * doc/xml/manual/status_cxx2011.xml: Add implementation-defined bucket
403 counts for unordered associative containers.
405 2013-01-06 Jonathan Wakely <jwakely.gcc@gmail.com>
407 * doc/xml/manual/abi.xml: Update library and symbol versions.
409 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
411 * include/ext/pb_ds/detail/splay_tree_/insert_fn_imps.hpp: Fix typo
413 * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
416 Copyright (C) 2013 Free Software Foundation, Inc.
418 Copying and distribution of this file, with or without modification,
419 are permitted in any medium without royalty provided the copyright
420 notice and this notice are preserved.