OSDN Git Service

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