OSDN Git Service

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