OSDN Git Service

PR libstdc++/52128
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2
3         PR libstdc++/52128
4         * src/c++11/future.cc: Add explicit instantiation.
5
6 2012-02-06  François Dumont  <fdumont@gcc.gnu.org>
7
8         * include/debug/safe_iterator.h
9         (_Safe_iterator::_M_before_dereferenceable): Avoid the expensive
10         creation of a _Safe_iterator instance to do the check.
11
12 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
13
14         PR libstdc++/52104
15         * include/std/future (__future_base::_Async_state_common): Define
16         destructor inline for targets without TLS.
17         * src/c++11/future.cc (__future_base::_Async_state_common): Only
18         define destructor for TLS targets.
19
20 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
21
22         PR libstdc++/51956
23         * python/libstdcxx/v6/printers.py (StdPointerPrinter): Rename to...
24         (SharedPointerPrinter): This. Also show weak count.
25         * testsuite/libstdc++-prettyprinters/shared_ptr.cc: New.
26
27 2012-02-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
28
29         * testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to
30         PASS instead of XFAIL.
31
32 2012-02-05  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
33             Paolo Carlini  <paolo.carlini@oracle.com>
34
35         PR libstdc++/52119
36         * include/std/limits (__glibcxx_min): Fix to avoid undefined behavior.
37
38 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
39
40         PR libstdc++/49445
41         * testsuite/29_atomics/atomic/cons/49445.cc: Add.
42
43 2012-02-03  Benjamin Kosnik  <bkoz@redhat.com>
44
45         PR libstdc++/51811
46         * include/bits/atomic_base.h (atomic<_Tp*>): Fix offsets.
47         * testsuite/29_atomics/atomic/operators/51811.cc: New.
48         * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: New.
49
50 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
51
52         * config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
53         * config/abi/post/i486-linux-gnu/baseline_symbols.txt: Likewise.
54         * config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt:
55         Likewise.
56         * config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Likewise.
57         * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Likewise.
58         * config/abi/post/s390-linux-gnu/baseline_symbols.txt: Likewise.
59         * config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Likewise.
60         * config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Likewise.
61         * config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Likewise.
62
63 2012-02-02  Benjamin Kosnik  <bkoz@redhat.com>
64
65         PR libstdc++/52068
66         * src/c++11/Makefile.am (toolexeclib_LTLIBRARIES,
67         libc__11_la_SOURCES): Remove.
68         * src/c++11/Makefile.in: Regenerate.
69         * src/c++98/Makefile.am (toolexeclib_LTLIBRARIES,
70         libc__98_la_SOURCES): Remove.
71         * src/c++98/Makefile.in: Regenerate.
72
73 2012-02-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
74
75         PR libstdc++/49204
76         * include/std/future (__future_base::_State_base::wait()): Use lambda
77         expression for predicate and remove redundant test.
78         (__future_base::_State_base::wait_for()): Return future_status and
79         use lambda expression for predicate.
80         (__future_base::_State_base::wait_until()): Likewise.
81         (__basic_future::wait_for(), __basic_future::wait_until()): Likewise.
82         (__future_base::_Async_state): Replace with _Async_state_common
83         class for non-dependent functionality and _Async_state_impl class
84         template for dependent functionality.
85         (__future_base::_Async_state_common::_M_join): Serialize attempts to
86         join thread.
87         (__future_base::_Async_state_common::_M_run_deferred): Join.
88         (__future_base::_Async_state::_M_do_run): Replace with lambda.
89         * src/c++11/future.cc (__future_base::_Async_state_common): Define
90         destructor, so key function is in the library.
91         * config/abi/pre/gnu.ver: Add exports for ~_Async_state_common.
92         * testsuite/30_threads/packaged_task/members/get_future.cc: Expect
93         future_status return instead of bool.
94         * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
95         * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
96         * testsuite/30_threads/future/members/wait_until.cc: Likewise.
97         * testsuite/30_threads/future/members/wait_for.cc: Likewise.
98         * testsuite/30_threads/promise/members/set_value2.cc: Likewise.
99         * testsuite/30_threads/promise/members/set_value3.cc: Likewise.
100         * testsuite/30_threads/promise/members/swap.cc: Likewise.
101
102 2012-01-30  Tom Tromey  <tromey@redhat.com>
103
104         PR libstdc++/51649:
105         * testsuite/libstdc++-prettyprinters/debug.cc: New file.
106         * testsuite/lib/gdb-test.exp (regexp-test): New proc.
107         (note-test): Update.
108         (gdb-test): Handle regexp tests.  Add some logging.
109         * testsuite/libstdc++-prettyprinters/simple.cc: Compile with -O0.
110         (placeholder, use): Remove.
111         (main): Add tests for deque, list, map, and set iterators.  Add
112         tests for slist and slist iterator.
113         * testsuite/libstdc++-prettyprinters/48362.cc (main): Handle __7
114         namespace.
115         * python/libstdcxx/v6/printers.py (StdListPrinter.children): Use
116         the type's _Node typedef.
117         (StdListIteratorPrinter.to_string): Change how node type is
118         computed.
119         (StdSlistPrinter.children): Use the type's _Node typedef.
120         (StdSlistIteratorPrinter.to_string): Likewise.
121         (StdRbtreeIteratorPrinter.to_string): Use the type's _Link_type
122         typedef.
123         (StdMapPrinter.children): Change how the node's type is computed.
124         (StdSetPrinter.children): Likewise.
125         (StdForwardListPrinter.children): Use the type's _Node typedef.
126         (Printer.add_version): New method.
127         (Printer.add_container): New method.
128         (build_libstdcxx_dictionary): Handle __7 and __cxx1998
129         namespaces.
130         (find_type): New function.
131
132 2012-01-27  Paolo Carlini  <paolo.carlini@oracle.com>
133
134         PR libstdc++/51795
135         * include/bits/random.h (linear_congruential_generator): Add
136         static_assert preventing instantiation for values of 'a' and 'm'
137         currently handled incorrectly by _Mod::__calc.
138         * include/bits/random.tcc (seed_seq::generate): Avoid unsafe
139         uses of _Mod::__calc.
140
141 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
142
143         PR libstdc++/51798
144         * config/cpu/generic/atomicity_builtins/atomicity.h
145         (__exchange_and_add, __atomic_add): Use __atomic_fetch_add
146         with __ATOMIC_ACQ_REL semantics instead of __sync_fetch_and_add.
147         * include/ext/atomicity.h (__exchange_and_add, __atomic_add):
148         Likewise.
149
150 2011-01-27  Rafael Avila de Espindola  <rafael.espindola@gmail.com>
151
152         * libsupc++/typeinfo: Correctly match #pragma GCC visibility
153         pop with #pragma GCC visibility push.
154
155 2012-01-27  Benjamin Kosnik  <bkoz@redhat.com>
156             Matthias Klose  <doko@ubuntu.com>
157
158         * configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Use -gdwarf-4 -g3 -O0.
159         * configure.in: Regenerated.
160         * src/Makefile.am (all-once, install-data-once): New rules.
161         (all-local, install-data-local): Use them.
162         (build-debug, install-debug): Tweak.
163         * src/Makefile.in: Regenerate.
164
165 2012-01-27  Richard Henderson  <rth@redhat.com>
166
167         * include/bits/atomic_base.h (__atomic_flag_base): Define _M_i
168         based on the value of __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
169         (ATOMIC_FLAG_INIT): Initialize with 0, not false.
170         (atomic_flag::atomic_flag): Use __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
171
172 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
173
174         PR bootstrap/51985
175         * src/c++98/Makefile.am (libc__98_la_SOURCES,
176         libc__98convenience_la_SOURCES): Remove $(inst_sources).
177         * src/c++98/Makefile.in: Regenerated.
178
179 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
180
181         * testsuite/20_util/system_clock/1.cc: Add dg-require-time.
182         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: Likewise.
183         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: Likewise.
184         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: Likewise.
185         * testsuite/27_io/basic_istream/readsome/wchar_t/6746-2.cc: Add
186         dg-require-fileio.
187         * testsuite/27_io/basic_istream/seekg/wchar_t/fstream.cc: Likewise.
188         * testsuite/27_io/basic_istream/tellg/wchar_t/1.cc: Likewise.
189         * testsuite/27_io/basic_istream/tellg/wchar_t/fstream.cc: Likewise.
190         * testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc:
191         Likewise.
192         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
193
194 2012-01-25  Matthias Klose  <doko@ubuntu.com>
195
196         * testsuite/30_threads/condition_variable_any/requirements: Remove
197         empty directory.
198
199 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
200
201         * src/Makefile.am (libstdc++convenience.la): Correct stamp rule, copy.
202         * src/Makefile.in: Regenerate.
203
204 2012-01-23  Benjamin Kosnik  <bkoz@redhat.com>
205
206         PR libstdc++/49829
207         Add libc++98convenience.la, libc++11convenience.la.
208         * src/c++98: New directory.
209         * src/c++11: New directory.
210         * acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11.
211         * configure: Regenerated.
212         * Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS.
213         * Makefile.in: Regenerate.
214         * libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for
215         -fno-implicit-templates.
216         * libsupc++/Makefile.in: Regenerate.
217         * src/Makefile.am (inst_sources): Move... C++11 files into
218         separate directory for libstdc++11convenience.la. Files are:
219         fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc).
220         (sources): Move C++11 files. Files are: compatibility-c++0x.cc,
221         compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc,
222         functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc,
223         system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc,
224         mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc.
225         (libstdc++convenience.la): Add new target.
226         (SUBDIRS): Add c++11, c++98.
227         * src/Makefile.in: Regenerate.
228         * src/c++11/Makefile.am: New.
229         * src/c++11/Makefile.in: Generate.
230         * src/c++98/Makefile.am: New, C++98 files.
231         * src/c++98/Makefile.in: Generate.
232
233 2012-01-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
234
235         libstdc++-v3:
236         * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on
237         32-bit Solaris 10/x86.
238         * testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.
239
240 2012-01-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
241
242         PR libstdc++/50982
243         * testsuite/30_threads/*: Add powerpc-ibm-aix* to target selectors.
244
245 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
246
247         PR libstdc++/51845
248         * include/bits/hashtable.h
249         (_Hashtable<>::erase(const_iterator, const_iterator)): Also update
250         _M_buckets[__n_bkt] if __is_bucket_begin.
251         * testsuite/23_containers/unordered_multimap/erase/51845-multimap.cc:
252         New test.
253
254 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
255
256         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): Fix quoting.
257
258 2012-01-18  Benjamin Kosnik  <bkoz@redhat.com>
259
260         * configure.ac: Move epub checks...
261         * acinclude (GLIBCXX_CONFIGURE_DOCBOOK): ...here, use
262         test -f instead of AC_CHECK_FILES.
263
264 2012-01-18  François Dumont  <fdumont@gcc.gnu.org>
265             Roman Kononov  <roman@binarylife.net>
266
267         PR libstdc++/51866
268         * include/bits/hashtable.h (_Hashtable<>::_M_insert(_Arg, false_type)):
269         Do not keep a reference to a potentially moved instance.
270         * testsuite/23_containers/unordered_multiset/insert/51866.cc: New.
271         * testsuite/23_containers/unordered_multimap/insert/51866.cc: New.
272
273 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
274
275         * doc/html/*: Regenerate.
276
277 2012-01-17  Benjamin Kosnik  <bkoz@redhat.com>
278
279         * configure.ac (BUILD_EPUB): Adjust for epub3.
280         * configure: Regenerate.
281         * Makefile.in: Same.
282         * doc/Makefile.am (stamp-epub-docbook): Update for epub3.
283         * doc/Makefile.in: Regenerate.
284         * include/Makefile.in: Same.
285         * libsupc++/Makefile.in: Same.
286         * po/Makefile.in: Same.
287         * python/Makefile.in: Same.
288         * src/Makefile.in: Same.
289         * testsuite/Makefile.in: Same.
290
291         * doc/xml/manual/documentation_hacking.xml: Update.
292
293 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
294
295         PR target/47852
296         * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS.
297
298 2012-01-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
299
300         * include/bits/stl_iterator.h (reverse_iterator): Doxygen comments.
301
302 2012-01-13  François Dumont  <fdumont@gcc.gnu.org>
303
304         * include/bits/hashtable_policy.h (_Hash_node_base): New, use it as
305         base class of ...
306         (_Hash_node<Value, true>, _Hash_node<Value, false>): ... those.
307         * include/bits/hashtable.h (_Hashtable): Replace _M_begin_bucket_index
308         by _M_before_begin. Review implementation so that we do not need to
309         look for previous non-empty bucket when inserting nodes.
310
311 2012-01-09  Kai Tietz  <ktietz@redhat.com>
312
313         PR libstc++/51673 part 2
314         * config/abi/pre/gnu-versioned-namespace.ver: Adjusted new/delete
315         operators signature for LLP64 size_t, and adjusted signatures for
316         mt-allocator using size_t.
317
318 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
319
320         PR libstc++/51673 part 1
321         * config/abi/pre/gnu-versioned-namespace.ver: Sync cxxabi symbols
322         with gnu.ver.
323
324 2012-01-09  Benjamin Kosnik  <bkoz@redhat.com>
325
326         * fragment.am (WARN_CXXFLAGS): Add -Wabi.
327         * Makefile.in: Regenerate.
328         * doc/Makefile.in: Same.
329         * include/Makefile.in: Same.
330         * libsupc++/Makefile.in: Same.
331         * src/Makefile.in: Same.
332         * testsuite/Makefile.in: Same.
333         * po/Makefile.in: Same.
334         * python/Makefile.in: Same.
335
336 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
337
338         * python/libstdcxx/v6/printers.py (StdForwardListPrinter): Add.
339         * testsuite/libstdc++-prettyprinters/cxx11.cc: New.
340
341 2012-01-06  Jason Merrill  <jason@redhat.com>
342
343         * testsuite/abi/demangle/regression/cw-16.cc (main): Adjust
344         expected demangling.
345
346 2012-01-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
347
348         PR libstdc++/51504
349         * doc/xml/manual/debug.xml: Suggest using symbol interposition
350         to override symbols using annotation macros.
351
352 2012-01-05  François Dumont  <fdumont@gcc.gnu.org>
353
354         * include/bits/hashtable_policy.h (_Hashtable_base<>::_M_eq()):
355         protected rather than private, use it...
356         * include/bits/hashtable.h (_Hashtable<>::key_eq()): ... here.
357         * testsuite/23_containers/unordered_set/observers.cc: New.
358         * testsuite/23_containers/unordered_multiset/observers.cc: New.
359         * testsuite/23_containers/unordered_map/observers.cc: New.
360         * testsuite/23_containers/unordered_multimap/observers.cc: New.
361
362 2012-01-03  François Dumont  <fdumont@gcc.gnu.org>
363
364         * include/bits/hashtable_policy.h (_Ebo_helper<>): Rename to the more
365         specific _Hashtable_ebo_helper. Hide this implementation detail thanks
366         to private inheritance.
367
368 2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>
369
370         PR c++/51738
371         * testsuite/23_containers/map/element_access/39901.cc: New.