OSDN Git Service

7461bd1e318943205de2163771f19bbe490b50f6
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2005-04-05  Jonathan Wakely  <redi@gcc.gnu.org>
2
3         * include/tr1/memory, include/tr1/boost_shared_ptr.h: Use mutex
4         to make _Sp_counted_base::add_ref_lock() thread-safe. Check whether
5         to destroy resources by testing for equality, not inequality. Add
6         empty critical sections to solve memory visibility issues.
7         * testsuite/tr1/2_general_utilities/memory/
8         shared_ptr/cons/auto_ptr_neg.cc: Use dg-excess-errors instead of
9         explicitly listing line numbers which need to be kept in sync.
10         * testsuite/tr1/2_general_utilities/memory/
11         shared_ptr/assign/auto_ptr_neg.cc: Same.
12         * testsuite/tr1/2_general_utilities/memory/
13         shared_ptr/assign/auto_ptr_rvalue_neg.cc: Same.
14         * testsuite/tr1/2_general_utilities/memory/
15         shared_ptr/cons/weak_ptr_expired.cc: Make XFAIL for consistency when
16         -fno-exceptions.
17         * testsuite/tr1/2_general_utilities/memory/
18         enable_shared_from_this/not_shared.cc: Add explanatory comments.
19         * testsuite/tr1/2_general_utilities/memory/
20         enable_shared_from_this/not_shared2.cc: Same.
21         * testsuite/tr1/2_general_utilities/memory/
22         enable_shared_from_this/not_shared3.cc: Same.
23
24 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
25
26         * acconfig.h: Delete macros already ACDEFINED.
27         * config.h.in: Regenerate.
28
29 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
30
31         * acconfig.h (HAVE_MODF): Remove.
32         * linkage.m4: Check for modf.
33         * config.h.in, configure: Regenerate.
34
35 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
36
37         * acconfig.h (ENABLE_NLS, HAVE_CATGETS): Remove.
38         (HAVE_GETTEXT, HAVE_STPCPY): Likewise.
39         * config.h.in: Regenerate.
40         
41 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
42
43         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Use m4 translit macro 
44         to convert to uppercase instead of shelling out to tr.
45         * acconfig.h: Remove now redundant HAVE__BUILTINS_*.
46         * configure, config.h.in: Regenerate.
47
48 2005-04-05  Kelley Cook  <kcook@gcc.gnu.org>
49
50         * acconfig.h (HAVE_TANL): Correct cut-and-paste typo.
51         * config.h.in: Regenerate.
52
53 2005-04-04  Mark Mitchell  <mark@codesourcery.com>
54
55         * testsuite/Makefile.am (check-local): Remove.
56         (curent_symbols.txt): Likewise.
57         (check-abi): Do not depend on current_symbols.txt.
58         * testsuite/Makefile.in: Regenerated.
59         * testsuite/libstdc++-abi/abi.exp: Build current_symbols.txt.
60
61 2005-04-02  Douglas Gregor  <doug.gregor@gmail.com>
62         
63         * include/tr1/tuple_iterate.h (tuple_element): Use new macro
64         _GLIBCXX_T_NUM_ARGS_PLUS_1 because _T is a macro on Darwin.
65         * include/tr1/repeat.h (_GLIBCXX_T_NUM_ARGS_PLUS_1): Define for
66         each iteration.
67         * scripts/gen_includers.h: Define _GLIBCXX_T_NUM_ARGS_PLUS_1 for
68         each iteration.
69         
70 2005-04-01  Douglas Gregor  <doug.gregor@gmail.com>
71
72         * include/tr1/functional (_Maybe_wrap_member_pointer): Wrap up
73         member pointers in _Mem_fn but let other function objects pass
74         through unchanged.
75         * include/tr1/functional_iterator (bind): Reduce number of bind()
76         overloads to two to eliminate ambiguities. Use
77         _Maybe_wrap_member_pointer to handle member pointers gracefully.
78         
79 2005-04-01  Mark Mitchell  <mark@codesourcery.com>
80
81         * testsuite/Makefile.am (noinst_PROGRAMS): Remove.
82         (site.exp): Write out the path to the baseline file.
83         (check-abi): Use DejaGNU.
84         (check-abi-verbose): Remove.
85         * testsuite/Makefile.in: Regenerated.
86         * testsuite/abi_check.cc (main): Check the return value from
87         compare_symbols.
88         * testsuite/testsuite_abi.cc (compare_symbols): Return a value.
89         * testsuite/testsuite_abi.h (compare_symbols): Adjust prototype.
90         * testsuite/libstdc++-abi/abi.exp: New file.
91
92 2005-03-31  Chris Jefferson  <chris@bubblescope.net>
93
94         * include/tr1/tuple: Support iteration via tuple_iterate.h.
95         * include/tr1/tuple_iterate.h: Iteration file for tuple.
96
97 2005-03-31  Douglas Gregor  <doug.gregor@gmail.com>
98
99         * include/Makefile.am (tr1_headers): Add bind and mu repetition
100         headers and reference_wrapper<> forwarding header.
101         * include/Makefile.in: Regenerate.
102         * include/tr1/bind_iterate.h: Implementation of function call
103         operators for the function object returned from tr1::bind().
104         * include/tr1/bind_repeat.h: Bind-specific repetition header,
105         akin to include/tr1/repeat.h.
106         * include/tr1/functional (_Mem_fn): Bug fix: declare result member
107         template for use with result_of.
108         (is_bind_expression): New.
109         (is_placeholder): New.
110         (_Placeholder): New. Placeholder type for bind.
111         (_Mu): New. Implementation detail of bind.
112         (_Bind, _Bind_result): New. Function objects returned by bind.
113         (_GLIBCXX_JOIN): New. Required to create bind placeholders.
114         * include/tr1/functional_iterate.h (_Bind, _Bind_result, bind):
115         New. Implementation of tr1::bind.
116         * include/tr1/mu_iterate.h (_Mu): result template and operator()
117         for the _Mu helper to bind.
118         * include/tr1/ref_fwd.h (reference_wrapper): Forward declaration
119         used by tuple header.
120         (ref): Ditto.
121         (cref): Ditto.
122         * include/tr1/repeat.h: Add bind-specific repetition macros.
123         * include/tr1/tuple: Use reference_wrapper forwarding header for
124         initial definitions, then include <tr1/functional> at the end, to
125         make the circular dependencies work.
126         (tie): Support zero-argument tie() function.
127         * testsuite/tr1/3_function_objects/bind/all_bound.cc: New test of
128         bind() functionality with parameters bound.
129         * testsuite/tr1/3_function_objects/bind/nested.cc: New test of
130         nested bind() expressions.
131         * testsuite/tr1/3_function_objects/bind/placeholders.cc: New test
132         of bind() placeholders.
133         * testsuite/tr1/3_function_objects/bind/ref.cc: New test of bind()
134         with arguments bound via reference_wrapper<>.
135         * scripts/gen_includers.pl: Generate the repetitive part of
136         include/tr1/repeat.h.
137         * scripts/gen_bind_includers.pl: Generate the repetitive part of
138         include/tr1/bind_repeat.h. 
139         
140 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
141
142         * testsuite/Makefile.am (CXX): Use ${SHELL}.
143         (GLIBCXX_INCLUDES): Same.
144         (AM_CXXFLAGS): Same.
145         * testsuite/Makefile.in: Regenerate.
146
147 2005-03-25  Mark Mitchell  <mark@codesourcery.com>
148
149         * testsuite/lib/libstdc++.exp (libstdc++_init): Define LOCALEDIR
150         when testing an installed compiler.
151         
152         * testsuite/lib/libstdc++.exp (v3-build_support): Pass -w when
153         compiling support objects.
154
155 2005-03-24  Benjamin Kosnik  <bkoz@redhat.com>
156
157         * include/tr1/memory: Forward to...
158         * include/tr1/boost_shared_ptr.h: ...here. Add Boost Software License.
159         * include/Makefile.am (tr1_headers): Add boost_shared_ptr.h.
160         * include/Makefile.in: Regenerate.
161         * testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
162         auto_ptr_neg.cc: Adjust line numbers.
163
164 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
165
166         * testsuite/Makefile.am (all-local): Do not build testsuite_files.
167         * testsuite/Makefile.in: Regenerated. 
168
169 2005-03-23  Benjamin Kosnik  <bkoz@redhat.com>
170
171         * acinclude.m4: Adjust so that _GLIBCXX_USE_C99 implies
172         using _GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_USE_C99_MATH, and
173         _GLIBCXX_USE_C99_WCHAR.
174         Remove GLIBCXX_ENABLE_C_MBCHAR, consolidate in GLIBCXX_ENABLE_C99
175         and GLIBCXX_ENABLE_WCHAR_T.
176         Take C99 bits from GLIBCXX_CHECK_WCHAR_T_SUPPORT and put in 
177         GLIBCXX_ENABLE_C99.
178         Change remaining parts of GLIBCXX_CHECK_WCHAR_T_SUPPORT to
179         GLIBCXX_CHECK_ICONV_SUPPORT.
180         * configure.ac: Remove GLIBCXX_ENABLE_C_MBCHAR, use
181         GLIBCXX_CHECK_ICONV_SUPPORT and GLIBCXX_ENABLE_WCHAR_T.
182         * crossconfig.m4: Same.
183         * acconfig.h: Same, adjust comments.
184         * config.h.in: Regenerate.
185         * configure: Regenerate.
186         * docs/html/configopts.html: Change --enable-c-mbchar to
187         --enable-wchar_t.
188
189         * config/locale/gnu/c++locale_internal.h: Guard wide functions
190         with _GLIBCXX_USE_WCHAR_T.
191         * include/c_std/std_cwctype.h: Alphabetize, remove duplicates.
192         * include/c_std/std_cstdio.h: Spacing.
193
194         * config/locale/gnu/c_locale.h: Tweaks for unused warnings.
195         * src/debug.cc: Same.
196
197 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
198
199         * testsuite/libstdc++-dg/normal.exp: Read testsuite_files, if it
200         exists.
201
202         * testsuite/lib/libstdc++.exp (libstdc++_wchar_t): Rename to ...
203         (v3-wchar_t): ... this.
204         (libstdc++_threads): Rename to ...
205         (v3-threads): ... this.
206         (libstdc++_test_objs): Rename to ...
207         (v3-test_objs): ... this.
208         (libstdc++_build_support): Rename to ...
209         (v3-build_support): ... this.
210         * testsuite/libstdc++-dg/normal.exp: Adjust to use new names.
211
212         * testsuite/lib/libstdc++.exp (libstdc++_init): Improve handling
213         of compilers not in the build directory.
214         (libstdc++_wchar_t): New variable.
215         (libstdc++_threads): Likewise.
216         (libstdc++_test_objs): Likewise.
217         (v3_target_compile): Use libstdc++_test_objs.
218         (v3-list-tests): Remove.
219         (listdc++_build_support): New function.
220         * testsuite/libstdc++-dg/normal.exp: Rework to dynamically
221         generate list of tests.
222
223 2005-03-21  Chris Jefferson  <chris@bubblescope.net>
224
225         PR libstdc++/20577
226         * include/bits/stl_algobase.h (iter_swap): Only delegate iter_swap
227         to swap when the iterator's reference_type is a reference to its
228         value_type.
229         * testsuite/25_algorithms/iter_swap/20577.cc: New.
230
231 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
232
233         * acinclude.m4 (GLIBCXX_CONFIGURE): Delete gcc_version logic.
234         (GLIBCXX_EXPORT_INSTALL_INFO): Adjust quotation so ${gcc_version}
235         is expanded by the Makefiles, not by configure.
236         * fragment.am: Set gcc_version.
237         * libmath/Makefile.am: Likewise.
238         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in
239         * libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in
240         * testsuite/Makefile.in: Regenerate.
241
242 2005-03-16  Paolo Carlini  <pcarlini@suse.de>
243
244         * testsuite/20_util/functional/binders.cc: Remove explicit
245         instantiations for non-weak systems.
246         * testsuite/20_util/memory/allocator/1.cc: Likewise.
247         * testsuite/20_util/memory/allocator/10378.cc: Likewise.
248         * testsuite/20_util/memory/allocator/10416.cc: Likewise.
249         * testsuite/20_util/memory/allocator/8230.cc: Likewise.
250         * testsuite/20_util/utility/rel_ops.cc: Likewise.
251         * testsuite/22_locale/ctype/is/char/2.cc: Likewise.
252         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise.
253         * testsuite/23_containers/deque/cons/1.cc: Likewise.
254         * testsuite/23_containers/deque/cons/2.cc: Likewise.
255         * testsuite/23_containers/deque/invalidation/1.cc: Likewise.
256         * testsuite/23_containers/deque/invalidation/2.cc: Likewise.
257         * testsuite/23_containers/deque/invalidation/3.cc: Likewise.
258         * testsuite/23_containers/deque/invalidation/4.cc: Likewise.
259         * testsuite/23_containers/deque/modifiers/swap.cc: Likewise.
260         * testsuite/23_containers/deque/operators/1.cc: Likewise.
261         * testsuite/23_containers/list/capacity/1.cc: Likewise.
262         * testsuite/23_containers/list/cons/1.cc: Likewise.
263         * testsuite/23_containers/list/cons/2.cc: Likewise.
264         * testsuite/23_containers/list/cons/3.cc: Likewise.
265         * testsuite/23_containers/list/cons/4.cc: Likewise.
266         * testsuite/23_containers/list/cons/5.cc: Likewise.
267         * testsuite/23_containers/list/cons/6.cc: Likewise.
268         * testsuite/23_containers/list/cons/7.cc: Likewise.
269         * testsuite/23_containers/list/cons/8.cc: Likewise.
270         * testsuite/23_containers/list/cons/9.cc: Likewise.
271         * testsuite/23_containers/list/invalidation/1.cc: Likewise.
272         * testsuite/23_containers/list/invalidation/2.cc: Likewise.
273         * testsuite/23_containers/list/invalidation/3.cc: Likewise.
274         * testsuite/23_containers/list/invalidation/4.cc: Likewise.
275         * testsuite/23_containers/list/modifiers/1.cc: Likewise.
276         * testsuite/23_containers/list/modifiers/2.cc: Likewise.
277         * testsuite/23_containers/list/modifiers/3.cc: Likewise.
278         * testsuite/23_containers/list/operators/1.cc: Likewise.
279         * testsuite/23_containers/list/operators/2.cc: Likewise.
280         * testsuite/23_containers/list/operators/3.cc: Likewise.
281         * testsuite/23_containers/list/operators/4.cc: Likewise.
282         * testsuite/23_containers/map/insert/1.cc: Likewise.
283         * testsuite/23_containers/map/invalidation/1.cc: Likewise.
284         * testsuite/23_containers/map/invalidation/2.cc: Likewise.
285         * testsuite/23_containers/map/modifiers/swap.cc: Likewise.
286         * testsuite/23_containers/map/operators/1.cc: Likewise.
287         * testsuite/23_containers/multimap/invalidation/1.cc: Likewise.
288         * testsuite/23_containers/multimap/invalidation/2.cc: Likewise.
289         * testsuite/23_containers/multimap/modifiers/swap.cc: Likewise.
290         * testsuite/23_containers/multiset/insert/1.cc: Likewise.
291         * testsuite/23_containers/multiset/insert/2.cc: Likewise.
292         * testsuite/23_containers/multiset/invalidation/1.cc: Likewise.
293         * testsuite/23_containers/multiset/invalidation/2.cc: Likewise.
294         * testsuite/23_containers/multiset/modifiers/swap.cc: Likewise.
295         * testsuite/23_containers/priority_queue/members/7161.cc: Likewise.
296         * testsuite/23_containers/queue/members/7157.cc: Likewise.
297         * testsuite/23_containers/set/insert/1.cc: Likewise.
298         * testsuite/23_containers/set/invalidation/1.cc: Likewise.
299         * testsuite/23_containers/set/invalidation/2.cc: Likewise.
300         * testsuite/23_containers/set/modifiers/swap.cc: Likewise.
301         * testsuite/23_containers/stack/members/7158.cc: Likewise.
302         * testsuite/23_containers/vector/bool/6886.cc: Likewise.
303         * testsuite/23_containers/vector/capacity/1.cc: Likewise.
304         * testsuite/23_containers/vector/capacity/8230.cc: Likewise.
305         * testsuite/23_containers/vector/cons/1.cc: Likewise.
306         * testsuite/23_containers/vector/cons/2.cc: Likewise.
307         * testsuite/23_containers/vector/cons/3.cc: Likewise.
308         * testsuite/23_containers/vector/cons/6513.cc: Likewise.
309         * testsuite/23_containers/vector/element_access/1.cc: Likewise.
310         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
311         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
312         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
313         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
314         * testsuite/23_containers/vector/modifiers/1.cc: Likewise.
315         * testsuite/23_containers/vector/modifiers/2.cc: Likewise.
316         * testsuite/23_containers/vector/modifiers/swap.cc: Likewise.
317         * testsuite/23_containers/vector/resize/1.cc: Likewise.
318         * testsuite/24_iterators/back_insert_iterator.cc: Likewise.
319         * testsuite/24_iterators/front_insert_iterator.cc: Likewise.
320         * testsuite/24_iterators/insert_iterator.cc: Likewise.
321         * testsuite/24_iterators/iterator.cc: Likewise.
322         * testsuite/25_algorithms/copy/1.cc: Likewise.
323         * testsuite/25_algorithms/copy/2.cc: Likewise.
324         * testsuite/25_algorithms/copy/3.cc: Likewise.
325         * testsuite/25_algorithms/copy/4.cc: Likewise.
326         * testsuite/25_algorithms/equal.cc: Likewise.
327         * testsuite/25_algorithms/fill/1.cc: Likewise.
328         * testsuite/25_algorithms/fill/2.cc: Likewise.
329         * testsuite/25_algorithms/min_max.cc: Likewise.
330         * testsuite/25_algorithms/rotate.cc: Likewise.
331         * testsuite/25_algorithms/unique/1.cc: Likewise.
332         * testsuite/25_algorithms/unique/2.cc: Likewise.
333         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Likewise.
334         * testsuite/ext/concept_checks.cc: Likewise.
335         * testsuite/ext/hash_map/1.cc: Likewise.
336         * testsuite/ext/hash_set/1.cc: Likewise.
337         * testsuite/ext/rope/1.cc: Likewise.
338         * testsuite/ext/rope/2.cc: Likewise.
339         * testsuite/ext/rope/3.cc: Likewise.
340         * testsuite/thread/pthread1.cc: Likewise.
341         * testsuite/thread/pthread4.cc: Likewise.
342         * testsuite/thread/pthread5.cc: Likewise.
343         * testsuite/thread/pthread6.cc: Likewise.
344         * testsuite/thread/pthread7-rope.cc: Likewise.
345
346 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
347
348         * include/Makefile.am (c++config.h): Depend on DATESTAMP from gcc
349         subdirectory.  Generate #define of __GLIBCXX__ from contents of
350         that file.
351         * include/Makefile.in: Regenerate.
352         * include/bits/c++config: Do not define __GLIBCXX__.
353
354 2005-03-15  Paolo Carlini  <pcarlini@suse.de>
355
356         PR libstdc++/20352
357         * include/std/std_complex.h (pow(const complex<_Tp>&,
358         const _Tp&)): On non-c99 platforms, don't try to compute
359         log of complex zero.
360
361 2005-03-10  Ben Elliston  <bje@au.ibm.com>
362
363         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Don't XFAIL
364         on GNU/Linux.
365
366 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
367
368         * include/tr1/type_traits (is_polymorphic): Don't forget
369         the virtual destructor, thus avoiding warnings.
370         * testsuite/testsuite_tr1.h (class AbstractClass,
371         class PolymorphicClass): Likewise.
372
373 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
374
375         * include/std/std_complex.h (pow(const complex<_Tp>&,
376         const complex<_Tp>&)): Dispatch to either __complex_pow(__x.__rep(),
377         __y.__rep()) or __complex_pow(__x, __y) depending on the macro
378         _GLIBCXX_USE_C99_COMPLEX.
379
380 2005-03-07  Paolo Carlini  <pcarlini@suse.de>
381
382         * include/std/std_fstream.h (basic_fstream<>::open,
383         basic_ifstream<>::open, basic_ofstream<>::open): Implement the
384         resolution of DR 409 [Ready], call clear() on success.
385         * docs/html/ext/howto.html: Add an entry for DR 409.
386         * docs/html/faq/index.html (4_4): Clarify the new behavior.
387         * testsuite/27_io/basic_ifstream/open/char/1.cc: Adjust.
388         * testsuite/27_io/basic_ofstream/open/char/1.cc: Likewise.
389
390 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
391
392         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
393         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
394         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
395         testsuite/22_locale/collate/hash/wchar_t/2.cc,
396         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
397         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
398         testsuite/22_locale/collate/transform/wchar_t/2.cc,
399         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
400         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
401         XFAIL on *-*-hpux11.23.
402
403 2005-03-04  Paolo Carlini  <pcarlini@suse.de>
404
405         * include/tr1/type_traits: Add is_base_of.
406         * testsuite/tr1/4_metaprogramming/relationships_between_types/
407         is_base_of/is_base_of.cc: New.
408         * testsuite/tr1/4_metaprogramming/relationships_between_types/
409         is_base_of/typedefs.cc: Likewise.
410
411 2005-03-03  Benjamin Kosnik  <bkoz@redhat.com>
412
413         * include/tr1/functional: Convert relative path.
414
415         * docs/doxygen/user.cfg.in: Add tr1 includes.
416
417 2005-03-03  Paolo Carlini  <pcarlini@suse.de>
418
419         * include/tr1/type_traits: Implemenet is_polymorphic.
420         (is_empty): Minor tweaks.
421         * testsuite/testsuite_tr1.h: Add test types.
422         * testsuite/tr1/4_metaprogramming/type_properties/
423         is_polymorphic/is_polymorphic.cc: New.
424         * testsuite/tr1/4_metaprogramming/type_properties/
425         is_polymorphic/typedefs.cc: Likewise.
426         * testsuite/tr1/4_metaprogramming/composite_type_traits/
427         is_union_or_class/is_union_or_class.cc: Add tests.
428
429 2005-03-02  Douglas Gregor  <doug.gregor@gmail.com>
430
431         * include/tr1/functional (_Has_result_type): Cleanup.
432         (_Result_of_impl): Handle member data pointers correctly.
433         (reference_wrapper): Support invocation.
434         Move repetition code into new file include/tr1/repeat.h.
435         * include/tr1/functional_iterate.h (reference_wrapper): Support
436         invocation.  Cleanup long lines.
437         * include/tr1/ref_wrap_iterate.h (reference_wrapper): Declare
438         invocation operators.
439         * include/tr1/repeat.h: Code repetition header.
440         * include/Makefile.am: Add ref_wrap_iterate.h, repeat.h.
441         * include/Makefile.in: Add ref_wrap_iterate.h, repeat.h.
442         * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
443         New test of reference_wrapper invocation.
444         * testsuite/tr1/3_function_objects/reference_wrapper/typedefs.cc:
445         New test of reference_wrapper typedefs and base classes.
446         * testsuite/tr1/3_function_objects/result_of.cc: Trivial cleanup
447         (e-mail address).
448
449 2005-03-02  Douglas Gregor  <doug.gregor@gmail.com>
450
451         * include/tr1/function (result_of): New class template.
452         * include/tr1/functional/iterator.h: Implementation of TR1
453         result_of.
454         * testsuite/tr1/3_function_objects/result_of.cc: New test
455
456 2005-03-01  Vladimir Merzliakov  <wanderer@rsu.ru>
457
458         * testsuite/26_numerics/cmath/c99_classification_macros_c.cc: Tweak.
459
460 2005-02-28  Benjamin Kosnik  <bkoz@redhat.com>
461
462         * testsuite/tr1/2_general_utilities/memory/shared_ptr/
463         cons/auto_ptr_neg.cc: Correct line numbers.
464
465         * testsuite/testsuite_abi.cc: Add CXXABI_1.3.1.
466
467 2005-02-28  Jonathan Wakely  <redi@gcc.gnu.org>
468
469         * include/tr1/memory: Replace checked_deleter with (unchecked)
470         _Sp_deleter as GCC warns about delete on incomplete types anyway.
471
472 2005-02-28  Jonathan Wakely  <redi@gcc.gnu.org>
473
474         * include/tr1/memory: Add missing "inline" to __throw_bad_weak_ptr.
475
476 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
477
478         PR target/19065
479         * config/cpu/cris/atomicity.h (__exchange_and_add): In asm, use
480         'Q' constraint, not 'm'.
481
482 2005-02-26  Earl Chew  <earl_chew@agilent.com>
483             Christopher Jefferson  <chris@bubblescope.net>
484
485         * include/bits/stl_tree.h (_Rb_tree<>::_M_insert): Don't leak
486         memory if _M_key_compare throws.
487
488 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
489
490         * include/tr1/type_traits: Add the trivial is_union and is_class;
491         add the __is_union_or_class extension.
492         (is_enum, is_empty): Use the latter.
493         * include/tr1/type_traits_fwd.h: Add __is_union_or_class.
494         * testsuite/testsuite_tr1.h: Add UnionType; trivial formatting
495         fixes.
496         * testsuite/tr1/4_metaprogramming/composite_type_traits/
497         is_union_or_class/is_union_or_class.cc: New.
498         * testsuite/tr1/4_metaprogramming/composite_type_traits/
499         is_union_or_class/typedefs.cc: Likewise.
500
501 2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>
502
503         * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: Guard
504         wchar_t use with _GLIBCXX_USE_WCHAR_T.
505
506 2005-02-24  Benjamin Kosnik  <bkoz@redhat.com>
507
508         * include/std/std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to
509         _GLIBCXX_USE_C99_COMPLEX.
510         * acinclude.m4: Same.
511         * acconfig.h: Same.
512         * configure: Regenerate.
513         * config.h.in: Same.
514
515 2005-02-24  Paolo Carlini  <pcarlini@suse.de>
516
517         * include/tr1/functional (mem_fn): Avoid _T, badname on
518         Darwin.
519
520 2005-02-23  Douglas Gregor  <doug.gregor@gmail.com>
521
522         * include/tr1/functional (function): New class template.
523         (mem_fn): New function template.
524         Implementations of TR1 function and mem_fn facilities.
525         * include/tr1/functional_iterate.h: Implementations of TR1
526         function and mem_fn facilities.
527         * testsuite/tr1/3_function_objects/function/1.cc: New
528         test of std::tr1::function.
529         * testsuite/tr1/3_function_objects/function/2.cc: New
530         test of std::tr1::function.
531         * testsuite/tr1/3_function_objects/function/3.cc: New
532         test of std::tr1::function.
533         * testsuite/tr1/3_function_objects/function/4.cc: New
534         test of std::tr1::function.
535         * testsuite/tr1/3_function_objects/function/5.cc: New
536         test of std::tr1::function.
537         * testsuite/tr1/3_function_objects/function/6.cc: New
538         test of std::tr1::function.
539         * testsuite/tr1/3_function_objects/function/7.cc: New
540         test of std::tr1::function.
541         * testsuite/tr1/3_function_objects/function/8.cc: New
542         test of std::tr1::function.
543         * testsuite/tr1/3_function_objects/function/9.cc: New
544         test of std::tr1::function.
545         * testsuite/tr1/3_function_objects/mem_fn.cc: New test of
546         std::tr1::mem_fn.
547
548 2005-02-23  Paolo Carlini  <pcarlini@suse.de>
549
550         * include/tr1/type_traits: Implement is_convertible.
551         * testsuite/tr1/4_metaprogramming/relationships_between_types/
552         is_convertible/is_convertible.cc: New.
553         * testsuite/tr1/4_metaprogramming/relationships_between_types/
554         is_convertible/typedefs.cc: Likewise.
555         * testsuite/testsuite_tr1.h: Add class DerivedType.
556
557         * include/tr1/type_traits (is_function): Don't mistake references
558         to function types for function types.
559         * testsuite/tr1/4_metaprogramming/primary_type_categories/
560         is_function/is_function.cc: Add testcase.
561
562 2005-02-22  Benjamin Kosnik  <bkoz@redhat.com>
563
564         * scripts/check_performance: Tweaks.
565
566         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: Name
567         output file with extension that clean rules can find.
568
569 2005-02-22  Richard Henderson  <rth@redhat.com>
570
571         PR libstdc++/20091
572         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case
573         decrement of uncaughtExceptions for rethrow.
574
575 2005-02-22  Paolo Carlini  <pcarlini@suse.de>
576
577         * include/tr1/functional: Fix License to GPL with exception.
578         * include/tr1/hashtable: Likewise.
579         * include/tr1/tuple: Likewise.
580         * include/tr1/type_traits: Likewise.
581         * include/tr1/type_traits_fwd.h: Likewise.
582         * include/tr1/unordered_map: Likewise.
583         * include/tr1/unordered_set: Likewise.
584         * include/tr1/utility: Likewise.
585
586 2005-02-22  Paolo Carlini  <pcarlini@suse.de>
587
588         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
589         auto_ptr_neg.cc: Add missing dg-do compile directive.
590         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
591         auto_ptr_rvalue_neg.cc: Likewise.
592         * testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
593         shared_ptr_neg.cc: Likewise.
594         * testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
595         auto_ptr_neg.cc: Likewise.
596         * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
597         reset_neg.cc: Likewise.
598         * testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
599         swap_neg.cc: Likewise.
600
601 2005-02-22  Jonathan Wakely  <redi@gcc.gnu.org>
602
603         * include/Makefile.am, include/Makefile.in: Fix accidental extra
604         change from previous commit.
605
606 2005-02-21  Jonathan Wakely  <redi@gcc.gnu.org>
607
608         * include/tr1/memory: New file.
609         * include/Makefile.am, include/Makefile.in: Add new TR1 header.
610         * testsuite/tr1/2_general_utilities/memory/
611         enable_shared_from_this/not_shared.cc: New test.
612         * testsuite/tr1/2_general_utilities/memory/
613         enable_shared_from_this/not_shared2.cc: New test.
614         * testsuite/tr1/2_general_utilities/memory/
615         enable_shared_from_this/not_shared3.cc: New test.
616         * testsuite/tr1/2_general_utilities/memory/
617         enable_shared_from_this/shared.cc: New test.
618         * testsuite/tr1/2_general_utilities/memory/
619         enable_shared_from_this/still_shared.cc: New test.
620         * testsuite/tr1/2_general_utilities/memory/
621         shared_ptr/assign/assign.cc: New test.
622         * testsuite/tr1/2_general_utilities/memory/
623         shared_ptr/assign/auto_ptr.cc: New test.
624         * testsuite/tr1/2_general_utilities/memory/
625         shared_ptr/assign/auto_ptr_neg.cc: New test.
626         * testsuite/tr1/2_general_utilities/memory/
627         shared_ptr/assign/auto_ptr_rvalue_neg.cc: New test.
628         * testsuite/tr1/2_general_utilities/memory/
629         shared_ptr/assign/shared_ptr.cc: New test.
630         * testsuite/tr1/2_general_utilities/memory/
631         shared_ptr/assign/shared_ptr_neg.cc: New test.
632         * testsuite/tr1/2_general_utilities/memory/
633         shared_ptr/comparison/cmp.cc: New test.
634         * testsuite/tr1/2_general_utilities/memory/
635         shared_ptr/cons/auto_ptr.cc: New test.
636         * testsuite/tr1/2_general_utilities/memory/
637         shared_ptr/cons/auto_ptr_neg.cc: New test.
638         * testsuite/tr1/2_general_utilities/memory/
639         shared_ptr/cons/copy.cc: New test.
640         * testsuite/tr1/2_general_utilities/memory/
641         shared_ptr/cons/default.cc: New test.
642         * testsuite/tr1/2_general_utilities/memory/
643         shared_ptr/cons/pointer.cc: New test.
644         * testsuite/tr1/2_general_utilities/memory/
645         shared_ptr/cons/weak_ptr.cc: New test.
646         * testsuite/tr1/2_general_utilities/memory/
647         shared_ptr/cons/weak_ptr_expired.cc: New test.
648         * testsuite/tr1/2_general_utilities/memory/
649         shared_ptr/dest/dest.cc: New test.
650         * testsuite/tr1/2_general_utilities/memory/
651         shared_ptr/misc/io.cc: New test.
652         * testsuite/tr1/2_general_utilities/memory/
653         shared_ptr/misc/swap.cc: New test.
654         * testsuite/tr1/2_general_utilities/memory/
655         shared_ptr/modifiers/reset.cc: New test.
656         * testsuite/tr1/2_general_utilities/memory/
657         shared_ptr/modifiers/reset_neg.cc: New test.
658         * testsuite/tr1/2_general_utilities/memory/
659         shared_ptr/modifiers/swap.cc: New test.
660         * testsuite/tr1/2_general_utilities/memory/
661         shared_ptr/modifiers/swap_neg.cc: New test.
662         * testsuite/tr1/2_general_utilities/memory/
663         shared_ptr/observers/bool_conv.cc: New test.
664         * testsuite/tr1/2_general_utilities/memory/
665         shared_ptr/observers/get.cc: New test.
666         * testsuite/tr1/2_general_utilities/memory/
667         shared_ptr/observers/unique.cc: New test.
668         * testsuite/tr1/2_general_utilities/memory/
669         shared_ptr/observers/use_count.cc: New test.
670
671 2005-02-21  Paolo Carlini  <pcarlini@suse.de>
672
673         * include/tr1/type_traits (is_member_function_pointer):
674         Remove ugly workaround for c++/19076.
675
676 2005-02-21  Paolo Carlini  <pcarlini@suse.de>
677
678         * include/bits/basic_string.tcc (_Rep::_M_destroy): Don't
679         check for this == &_S_empty_rep, it's always false, here.
680
681 2005-02-19  Matt Austern  <austern@gmail.com>
682
683         * include/tr1/functional (tr1_hashtable_define_trivial_hash): Make
684         hash<T>::operator() a const member function for T a fundamental type
685         * include/tr1/hashtable (extract1st::operator()): Declare const.
686         (hash_code_base): Declare all member functions const
687         (hashtable::find): fix call to this->bucket_count()
688         (hashtable::count): Likewise.
689         (hashtable::equal_range): m_incr_bucket applies to iterator, not node.
690         * testsuite/tr1/6_containers/unordered/find/set1.cc: New test.
691         * testsuite/tr1/6_containers/unordered/find/map1.cc: New test.
692         * testsuite/tr1/6_containers/unordered/find/multimap1.cc: New test.
693         * testsuite/tr1/6_containers/unordered/find/multiset1.cc: New test.
694
695 2005-02-19  Hans-Peter Nilsson  <hp@axis.com>
696
697         PR libstdc++/20071
698         * include/tr1/functional (hash<std::wstring>): Wrap in #ifdef
699         _GLIBCXX_USE_WCHAR_T.
700
701 2005-02-18  Richard Henderson  <rth@redhat.com>
702
703         PR libstdc++/10606
704         * config/linker-map.gnu (CXXABI_1.3.1): Add __cxa_get_exception_ptr.
705         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Increment
706         uncaughtExceptions here instead of ...
707         * libsupc++/eh_throw.cc (__cxa_throw) ... here.
708         (__cxa_rethrow): Increment uncaughtExceptions here instead of ...
709         * libsupc++/eh_catch.cc (__cxa_end_catch): ... here.
710         (__cxa_get_exception_ptr): New.
711         * libsupc++/unwind-cxx.h (__cxa_get_exception_ptr): Declare.
712
713 2005-02-18  Matt Austern  <austern@apple.com>
714
715         * testsuite/tr1/6_containers/unordered/insert/array_syntax.cc: Fix
716         test case to use assignment instead of ==
717         * testsuite/tr1/6_containers/unordered/insert/map_range.cc: New test.
718         * testsuite/tr1/6_containers/unordered/insert/multimap_range.cc: New test.
719         * testsuite/tr1/6_containers/unordered/insert/multiset_range.cc: New test.
720         * testsuite/tr1/6_containers/unordered/insert/set_range.cc: New test.
721
722 2005-02-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
723
724         * testsuite/thread/pthread1.cc: Do not invoke pthread_setconcurrency
725         on Solaris 2.6 and below.
726         * testsuite/thread/pthread2.cc: Likewise.
727         * testsuite/thread/pthread3.cc: Likewise.
728         * testsuite/thread/pthread4.cc: Likewise.
729         * testsuite/thread/pthread5.cc: Likewise.
730         * testsuite/thread/pthread6.cc: Likewise.
731         * testsuite/thread/pthread7-rope.cc: Likewise.
732
733 2005-02-17  Matt Austern  <austern@apple.com>
734
735         * include/tr1/functional (hash): New function object.
736         * include/tr1/hashtable: New file.
737         * include/tr1/unordered_set: New file.
738         * include/tr1/unordered_map: New file.
739         * include/Makefile.am: Add three new TR1 headers.
740         * include/Makefile.in: Likewise.
741         * testsuite/tr1/6_containers/unordered/insert/array_syntax.cc: New test.
742         * testsuite/tr1/6_containers/unordered/insert/map_single.cc: New test.
743         * testsuite/tr1/6_containers/unordered/insert/multimap_single.cc: New test.
744         * testsuite/tr1/6_containers/unordered/insert/multiset_single.cc: New test.
745         * testsuite/tr1/6_containers/unordered/insert/set_single.cc: New test.
746         * testsuite/tr1/6_containers/unordered/instantiate/hash.cc: New test.
747         * testsuite/tr1/6_containers/unordered/instantiate/map.cc: New test.
748         * testsuite/tr1/6_containers/unordered/instantiate/multimap.cc: New test.
749         * testsuite/tr1/6_containers/unordered/instantiate/multiset.cc: New test.
750         * testsuite/tr1/6_containers/unordered/instantiate/set.cc: New test.
751
752 2005-02-16  Paolo Carlini  <pcarlini@suse.de>
753
754         * testsuite/23_containers/set/modifiers/16728.cc:
755         Remove redundant include <testsuite_performance.h>.
756
757 2005-02-16  Paolo Carlini  <pcarlini@suse.de>
758
759         PR libstdc++/19829
760         * testsuite/21_strings/basic_string/find/char/3.cc: Fix the test
761         at line #66 to not access str_lit01 beyond its end.
762         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise.
763
764 2005-02-15  Paolo Carlini  <pcarlini@suse.de>
765             Jon Grimm  <jgrimm2@us.ibm.com>
766
767         PR libstdc++/19955
768         * include/bits/locale_facets.h (ctype<char>::_M_narrow_init()):
769         Fix the logic setting _M_narrow_ok: first check whether the
770         transformation is trivial with a dflt == 0, then deal with the
771         special case of zero.
772         * testsuite/22_locale/ctype/narrow/char/19955.cc: New.
773
774         * include/bits/locale_facets.h (ctype<char>::_M_widen_init()):
775         Tweak consistently to use memcmp; minor formatting fixes.
776
777 2005-02-15  Jakub Jelinek  <jakub@redhat.com>
778
779         PR libstdc++/19946
780         * testsuite/demangle/abi_examples/01.cc (main): Adjust for 2005-02-13
781         demangler change.
782         * testsuite/demangle/abi_examples/02.cc (main): Likewise.
783
784 2005-02-13  Richard Guenther  <rguenth@gcc.gnu.org>
785             Paolo Carlini  <pcarlini@suse.de>
786
787         PR libstdc++/11706
788         * include/c_std/std_cmath.h (pow): Use __builtin_powi[lf]
789         for integer overloads.
790
791         * testsuite/26_numerics/cmath/powi.cc: New.
792
793 2005-02-11  Janis Johnson  <janis187@us.ibm.com>
794
795         * testsuite/26_numerics/complex/13450.cc: Fix XFAIL selector.
796         * testsuite/26_numerics/complex/complex_value.cc: Ditto.
797         * testsuite/26_numerics/complex/pow.cc: Ditto.
798
799         * testsuite/lib/libstdc++.exp: Load target-supports-dg.exp.
800         * testsuite/26_numerics/complex/13450.cc: XFAIL for broken_cplxf_arg.
801         * testsuite/26_numerics/complex/complex_value.cc: Ditto.
802         * testsuite/26_numerics/complex/pow.cc: Ditto.
803
804 2005-02-09  Mike Stump  <mrs@apple.com>
805
806         * libsupc++/del_op.cc: Don't include cstdlib when !_GLIBCXX_HOSTED.
807
808 2005-02-09  Janis Johnson  <janis187@us.ibm.com>
809
810         * testsuite/ext/array_allocator/2.cc: XFAIL for powerpc*-*-linux*.
811
812 2005-02-08  Mark Mitchell  <mark@codesourcery.com>
813
814         * config/linker-map.gnu (GLIBCXX_3.4): Add _ZNSdC* and _ZNSdD*.
815
816 2005-02-07  Loren J. Rittle  <ljrittle@acm.org>
817
818         * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Make buf static.
819         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Make ref and
820         src static.
821
822 2005-02-02  Brad Spencer  <spencer@infointeractive.com>
823
824         * debug.html: Fix broken tags.
825         * documentation.html: Same.
826
827 2005-02-02  Andreas Jaeger  <aj@suse.de>
828
829         * testsuite/lib/libstdc++.exp: Revert Geoffrey Keating's patch
830         from 2005-01-28.
831         * testsuite/Makefile.am: Likewise.
832         * testsuite/Makefile.in: Likewise.
833
834 2005-02-01  Paolo Carlini  <pcarlini@suse.de>
835
836         * include/bits/cpp_type_traits.h: Rename _M_type fields to
837         __value, except for __enable_if, _M_type -> __type, consistently
838         with the other traits.
839         * include/bits/stl_algobase.h: Tweak consistently.
840         * include/bits/stl_tree.h: Likewise.
841         * include/bits/valarray_array.h: Likewise.
842         * include/c_std/std_cmath.h: Likewise.
843         * include/debug/safe_iterator.h: Likewise.
844         * include/std/std_complex.h: Likewise.
845
846 2005-01-31  Brad Spencer  <spencer@infointeractive.com>
847
848         * crossconfig.m4: Repair Solaris cross bits for strtold and strtof.
849         * configure: Regenerated.
850
851 2005-01-31  Mark Mitchell  <mark@codesourcery.com>
852
853         * include/std/std_limits.h (numeric_limits<float>::has_denorm):
854         Add required cast.
855         (numeric_limits<double>::has_denorm): Likewise.
856         (numeric_limits<long double>::has_denorm): Likewise.
857
858 2005-01-31  Paolo Carlini  <pcarlini@suse.de>
859             Gabriel Dos Reis  <gdr@integrable-solutions.net>
860
861         * include/bits/cpp_type_traits.h: Add types to the structs thus
862         making type_traits.h redundant; exploit new __truth_type and
863         __traitor helpers.
864         * include/bits/type_traits.h: Remove.
865         * include/Makefile.am: Update.
866         * include/Makefile.in: Regenerate.
867         * include/backward/tempbuf.h: Include cpp_type_traits.h instead.
868         * include/bits/basic_string.h (replace(iterator, iterator,
869         _InputIterator, _InputIterator), _S_construct(_InIterator,
870         _InIterator, const _Alloc&)): Use __is_integer instead.
871         * include/bits/stl_bvector.h (vector(_InputIterator,
872         _InputIterator, const allocator_type&), assign(_InputIterator,
873         _InputIterator), insert(iterator, _InputIterator, _InputIterator)):
874         Likewise.
875         * include/bits/stl_construct.h (_Destroy(_ForwardIterator,
876         _ForwardIterator)): Use __is_scalar.
877         * include/bits/stl_deque.h (deque(_InputIterator, _InputIterator,
878         const allocator_type&), assign(_InputIterator, _InputIterator),
879         insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
880         * include/bits/stl_list.h (assign(_InputIterator, _InputIterator),
881         insert(iterator, _InputIterator, _InputIterator)): Likewise.
882         * include/bits/stl_tempbuf.h (_Temporary_buffer(_ForwardIterator,
883         _ForwardIterator)): Use __is_scalar.
884         * include/bits/stl_uninitialized.h (uninitialized_copy(_InputIterator,
885         _InputIterator, _ForwardIterator), uninitialized_fill(_ForwardIterator,
886         _ForwardIterator, const _Tp&), uninitialized_fill_n(_ForwardIterator,
887         _Size, const _Tp&)): Likewise.
888         * include/bits/stl_vector.h (vector(_InputIterator, _InputIterator,
889         const allocator_type&), assign(_InputIterator, _InputIterator),
890         insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
891         * include/debug/debug.h (__valid_range(const _InputIterator&,
892         const _InputIterator&)): Use __is_integer.
893         * include/ext/slist (assign(_InputIterator, _InputIterator)): Likewise.
894         * include/std/std_string.h: Include cpp_type_traits.h instead.
895
896 2005-01-30  Paolo Carlini  <pcarlini@suse.de>
897
898         PR libstdc++/19642
899         * config/locale/generic/c_locale.h (__convert_from_v): Switch only
900         LC_NUMERIC, and only when actually != "C".
901
902 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
903
904         * include/tr1/type_traits (is_function): Minor consistency tweaks.
905
906 2005-01-28  Geoffrey Keating  <geoffk@apple.com>
907
908         * testsuite/lib/libstdc++.exp (libstdc++_init): Search the path
909         for the compiler.  Don't set cxxflags.
910         (v3_target_compile): Search for libv3test.a relative to $objdir.
911         (lsearch_all_inline): New.
912         (lsearch_all_inline_not): New.
913         (v3-list-tests): Rewrite to not need generated files.
914         * testsuite/Makefile.am (IGNORE_WCHAR_T): New.
915         (IGNORE_THREAD): New.
916         (TESTS_TO_IGNORE): New.
917         (site.exp): Set tests_to_ignore, cxxflags.
918         * aclocal.m4: Regenerate.
919         * Makefile.in: Regenerate.
920         * libmath/Makefile.in: Likewise.
921         * libsupc++/Makefile.in: Likewise.
922         * po/Makefile.in: Likewise.
923         * src/Makefile.in: Likewise.
924         * testsuite/Makefile.in: Likewise.
925
926 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
927
928         * include/tr1/type_traits: Implement is_empty.
929         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
930         is_empty.cc: New.
931         * testsuite/tr1/4_metaprogramming/type_properties/is_empty/
932         typedefs.cc: Likewise.
933
934         * include/tr1/type_traits (__is_abstract_helper): Simplify a bit.
935
936 2005-01-28  Paolo Carlini  <pcarlini@suse.de>
937
938         * include/tr1/type_traits: Implement is_abstract, by exploiting the
939         resolution of DR core/337.
940         * testsuite/testsuite_tr1.h: Add AbstractClass.
941         * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
942         is_abstract.cc: New.
943         * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
944         typedefs.cc: Likewise.
945
946         * include/tr1/type_traits (is_function): Rewrite, use the conversion
947         F& -> F* instead, thus avoiding problems with abstract classes.
948         * testsuite/tr1/4_metaprogramming/primary_type_categories/
949         is_function/is_function.cc: Add a test for tricky AbstractClass.
950
951 2005-01-26  Paolo Carlini  <pcarlini@suse.de>
952
953         * include/ext/mt_allocator.h
954         (struct __per_type_pool_policy<,, false>::_S_get_pool,
955         struct __per_type_pool_policy<,, true>::_S_get_pool): Scale
956         _M_chunk_size too with sizeof(_Tp), otherwise the allocator
957         breaks down as soon as sizeof(_Tp) >~ _S_chunk_size / 128;
958         reduce to 64 the multiplier for _M_max_bytes (safer wrt
959         _Binmap_type being a short); trivial reformattings.
960         * testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: New.
961
962 2005-01-26  Paolo Carlini  <pcarlini@suse.de>
963
964         * acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex
965         to the final test for enable_c99, thus robustifying it; remove
966         duplicate final test on ac_99_math.
967         * configure: Regenerate.
968
969         * include/std/std_complex.h: Remove usages of the dead
970         _GLIBCXX_BUGGY_COMPLEX macro.
971
972         * testsuite/26_numerics/cmath/19322.cc: Protect with
973         _GLIBCXX_USE_C99_MATH instead of the stronger _GLIBCXX_USE_C99,
974         since only C99 math facilities are involved.
975         * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
976         Likewise.
977
978 2005-01-25  Loren J. Rittle  <ljrittle@acm.org>
979
980         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin
981         instead of generic.  Change autoconf report to "darwin or freebsd".
982         * configure: Regenerate.
983         * config/os/bsd/freebsd/ctype_inline.h (ctype<wchar_t>::do_is): Add.
984         (ctype<wchar_t>::do_scan_is): Likewise.
985         (ctype<wchar_t>::do_scan_not): Likewise.
986
987 2005-01-25  Benjamin Kosnik  <bkoz@redhat.com>
988
989         * acinclude.m4 (GLIBCXX_ENABLE_C99): Test for complex math
990         functions, and enable _GLIBCXX_USE_C99_COMPLEX_MATH if they exist.
991         * acconfig.h: Add _GLIBCXX_USE_C99_COMPLEX_MATH.
992         * config.h.in: Regenerate.
993         * configure: Regenerate.
994         * include/std/std_complex.h: Protect complex builtins with
995         _GLIBCXX_USE_C99_COMPLEX_MATH.
996
997 2005-01-24  Paolo Carlini  <pcarlini@suse.de>
998
999         * include/tr1/type_traits: Implement is_signed and is_unsigned.
1000         * testsuite/tr1/4_metaprogramming/type_properties/
1001         is_signed/is_signed.cc: New.
1002         * testsuite/tr1/4_metaprogramming/type_properties/
1003         is_signed/typedefs.cc: Likewise.
1004         * testsuite/tr1/4_metaprogramming/type_properties/
1005         is_unsigned/is_unsigned.cc: Likewise.
1006         * testsuite/tr1/4_metaprogramming/type_properties/
1007         is_unsigned/typedefs.cc: Likewise.
1008
1009 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
1010
1011         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 34.
1012
1013 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
1014
1015         * testsuite/27_io/basic_ostream/cons/wchar_t/9827.cc: New.
1016         * testsuite/27_io/basic_ostream/endl/wchar_t/1.cc: Likewise.
1017         * testsuite/27_io/basic_ostream/ends/wchar_t/1.cc: Likewise.
1018         * testsuite/27_io/basic_ostream/ends/wchar_t/2.cc: Likewise.
1019         * testsuite/27_io/basic_ostream/exceptions/wchar_t/9561.cc: Likewise.
1020         * testsuite/27_io/basic_ostream/flush/wchar_t/1.cc: Likewise.
1021         * testsuite/27_io/basic_ostream/flush/wchar_t/2.cc: Likewise.
1022         * testsuite/27_io/basic_ostream/flush/wchar_t/
1023         exceptions_badbit_throw.cc: Likewise.
1024         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1025         wchar_t/2.cc: Likewise.
1026         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1027         wchar_t/3.cc: Likewise.
1028         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1029         wchar_t/4.cc: Likewise.
1030         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1031         wchar_t/4402.cc: Likewise.
1032         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1033         wchar_t/5.cc: Likewise.
1034         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1035         wchar_t/6.cc: Likewise.
1036         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1037         wchar_t/9555-oa.cc: Likewise.
1038         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1039         wchar_t/exceptions_badbit_throw.cc: Likewise.
1040         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1041         wchar_t/exceptions_failbit_throw.cc: Likewise.
1042         * testsuite/27_io/basic_ostream/inserters_character/
1043         wchar_t/1.cc: Likewise.
1044         * testsuite/27_io/basic_ostream/inserters_character/
1045         wchar_t/2.cc: Likewise.
1046         * testsuite/27_io/basic_ostream/inserters_character/
1047         wchar_t/3.cc: Likewise.
1048         * testsuite/27_io/basic_ostream/inserters_character/
1049         wchar_t/4.cc: Likewise.
1050         * testsuite/27_io/basic_ostream/inserters_character/
1051         wchar_t/5.cc: Likewise.
1052         * testsuite/27_io/basic_ostream/inserters_character/
1053         wchar_t/6.cc: Likewise.
1054         * testsuite/27_io/basic_ostream/inserters_character/
1055         wchar_t/9555-oc.cc: Likewise.
1056         * testsuite/27_io/basic_ostream/inserters_other/
1057         wchar_t/1.cc: Likewise.
1058         * testsuite/27_io/basic_ostream/inserters_other/
1059         wchar_t/2.cc: Likewise.
1060         * testsuite/27_io/basic_ostream/inserters_other/
1061         wchar_t/3.cc: Likewise.
1062         * testsuite/27_io/basic_ostream/inserters_other/
1063         wchar_t/4.cc: Likewise.
1064         * testsuite/27_io/basic_ostream/inserters_other/
1065         wchar_t/5.cc: Likewise.
1066         * testsuite/27_io/basic_ostream/inserters_other/
1067         wchar_t/9318-out.cc: Likewise.
1068         * testsuite/27_io/basic_ostream/inserters_other/
1069         wchar_t/9424-out.cc: Likewise.
1070         * testsuite/27_io/basic_ostream/inserters_other/
1071         wchar_t/9555-oo.cc: Likewise.
1072         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1073         error_failbit.cc: Likewise.
1074         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1075         exceptions_badbit_throw.cc: Likewise.
1076         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1077         exceptions_failbit_throw.cc: Likewise.
1078         * testsuite/27_io/basic_ostream/inserters_other/wchar_t/
1079         exceptions_null.cc: Likewise.
1080         * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
1081         * testsuite/27_io/basic_ostream/put/wchar_t/1.cc: Likewise.
1082         * testsuite/27_io/basic_ostream/seekp/char/
1083         exceptions_badbit_throw.cc: Likewise.
1084         * testsuite/27_io/basic_ostream/seekp/wchar_t/
1085         2346-fstream.cc: Likewise.
1086         * testsuite/27_io/basic_ostream/seekp/wchar_t/
1087         2346-sstream.cc: Likewise.
1088         * testsuite/27_io/basic_ostream/seekp/wchar_t/
1089         exceptions_badbit_throw.cc: Likewise.
1090         * testsuite/27_io/basic_ostream/sentry/wchar_t/1.cc: Likewise.
1091         * testsuite/27_io/basic_ostream/sentry/wchar_t/2.cc: Likewise.
1092         * testsuite/27_io/basic_ostream/tellp/wchar_t/1.cc: Likewise.
1093         * testsuite/27_io/basic_ostream/tellp/wchar_t/2.cc: Likewise.
1094         * testsuite/27_io/basic_ostream/tellp/wchar_t/
1095         exceptions_badbit_throw.cc: Likewise.
1096         * testsuite/27_io/basic_ostream/write/wchar_t/1.cc: Likewise.
1097
1098         * testsuite/data/wostream_inserter_char-1.tst: Likewise.
1099         * testsuite/data/wostream_inserter_char-1.txt: Likewise.
1100         * testsuite/data/wostream_inserter_other-1.tst: Likewise.
1101         * testsuite/data/wostream_inserter_other-2.tst: Likewise.
1102         * testsuite/data/wostream_seeks-1.tst: Likewise.
1103
1104         * testsuite/27_io/basic_ostream/endl/char/1.cc: Minor tweaks.
1105         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise.
1106         * testsuite/27_io/basic_ostream/exceptions/char/9561.cc: Likewise.
1107         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
1108         * testsuite/27_io/basic_ostream/flush/char/2.cc: Likewise.
1109         * testsuite/27_io/basic_ostream/flush/char/
1110         exceptions_badbit_throw.cc: Likewise.
1111         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1112         char/2.cc: Likewise.
1113         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1114         char/3.cc: Likewise.
1115         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1116         char/4.cc: Likewise.
1117         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1118         char/4402.cc: Likewise.
1119         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1120         char/5.cc: Likewise.
1121         * testsuite/27_io/basic_ostream/inserters_arithmetic/
1122         char/6.cc: Likewise.
1123         * testsuite/27_io/basic_ostream/inserters_character/
1124         char/4.cc: Likewise.
1125         * testsuite/27_io/basic_ostream/inserters_other/char/
1126         2.cc: Likewise.
1127         * testsuite/27_io/basic_ostream/inserters_other/char/
1128         5.cc: Likewise.
1129         * testsuite/27_io/basic_ostream/inserters_other/char/
1130         error_failbit.cc: Likewise.
1131         * testsuite/27_io/basic_ostream/inserters_other/char/
1132         exceptions_badbit_throw.cc: Likewise.
1133         * testsuite/27_io/basic_ostream/inserters_other/char/
1134         exceptions_failbit_throw.cc: Likewise.
1135         * testsuite/27_io/basic_ostream/inserters_other/char/
1136         exceptions_null.cc: Likewise.
1137         * testsuite/27_io/basic_ostream/put/char/1.cc: Likewise.
1138         * testsuite/27_io/basic_ostream/seekp/char/
1139         exceptions_badbit_throw.cc: Likewise.
1140         * testsuite/27_io/basic_ostream/sentry/char/2.cc: Likewise.
1141         * testsuite/27_io/basic_ostream/write/char/1.cc: Likewise.
1142
1143 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
1144
1145         * include/tr1/type_traits (aligned_storage): Use __aligned__ instead
1146         of aligned.
1147
1148 2005-01-23  Paolo Carlini  <pcarlini@suse.de>
1149             Andreas Jaeger  <aj@suse.de>
1150
1151         PR libstdc++/19343
1152         * include/bits/functexcept.h: Mark the helpers as 'noreturn'.
1153
1154 2005-01-21  Loren J. Rittle  <ljrittle@acm.org>
1155
1156         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Allow
1157         lseek on fifo to succeed.  Thus, check for consistent report.
1158
1159 2005-01-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1160
1161         PR libstdc++/19510
1162         * include/bits/stl_list.h (_List_iterator): Initialize _M_node
1163         in constructor.
1164         (_List_const_iterator): Likewise.
1165         * include/bits/stl_tree.h (_Rb_tree_iterator): Likewise.
1166         (_Rb_tree_const_iterator): Likewise.
1167
1168         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1169         * testsuite/23_containers/set/operators/1_neg.cc: Likewise.
1170
1171 2005-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1172
1173         * testsuite/Makefile.am (check-compile): New.
1174         * testsuite/Makefile.in: Regenerate.
1175         * scripts/check_compile_time: New.
1176         * scripts/check_performance: Tweaks.
1177
1178 2005-01-19  Paolo Carlini  <pcarlini@suse.de>
1179
1180         PR libstdc++/19535
1181         * include/tr1/utility (struct __pair_get<1>::__get, __const_get):
1182         Fix typo in the return type.
1183         * testsuite/tr1/6_containers/utility/19535.cc: New.
1184
1185 2005-01-19  Loren J. Rittle  <ljrittle@acm.org>
1186
1187         * include/ext/array_allocator.h (array_allocator<>::allocate):
1188         Avoid __used.  Use __array_used instead.
1189         * docs/html/17_intro/BADNAMES: Add list for FreeBSD.
1190
1191 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
1192
1193         * config/os/aix/os_defines.h (_XOPEN_SOURCE): Delete.
1194         (_XOPEN_SOURCE_EXTENDED): Delete.
1195
1196 2005-01-18  Benjamin Kosnik  <bkoz@redhat.com>
1197
1198         * testsuite/testsuite_performance.h (time_counter::start):
1199         Clear. Tweaks.
1200         (clear_counters): Inline.
1201         (start_counters): Inline.
1202         (stop_counters): Inline.
1203         * testsuite/performance/20_util/allocator/map_thread.cc: Return.
1204         * testsuite/performance/20_util/allocator/insert.cc: Remove bogus
1205         return, add return.
1206         * testsuite/performance/20_util/allocator/map_thread.cc: Same.
1207
1208 2005-01-17  Paolo Carlini  <pcarlini@suse.de>
1209
1210         PR libstdc++/19433
1211         * include/bits/stl_tree.h (_Rb_tree<>::insert_unique(iterator,
1212         const _Val&), _Rb_tree<>::insert_equal(iterator, const _Val&)):
1213         Obtain amortized constant complexity if t is inserted right after
1214         p - not before p - as per Table 69.
1215         * testsuite/performance/23_containers/set_insert_from_sorted.cc: New.
1216
1217         * testsuite/23_containers/multiset/insert/2.cc: New.
1218         * testsuite/23_containers/set/insert/1.cc: Likewise.
1219
1220         * testsuite/performance/23_containers/set_create_from_sorted.cc:
1221         Simplify.
1222
1223         * include/bits/stl_tree.h: Add a few missing std:: qualifications.
1224
1225 2005-01-16  Jonathan Wakely  <redi@gcc.gnu.org>
1226
1227         * include/ext/rope: Qualify calls to std::copy() by sequence_buffer.
1228         * testsuite/ext/rope/4.cc: Add.
1229
1230 2005-01-16  Lorenz Minder  <lminder@gmx.net>
1231             Paolo Carlini  <pcarlini@suse.de>
1232
1233         PR libstdc++/19322
1234         * include/c_std/std_cmath.h: Define the C99 classification facilities
1235         directly inside namespace std:.
1236         * testsuite/26_numerics/cmath/19322.cc: New.
1237
1238 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
1239
1240         * config/os/aix/os_defines.h (_G_USING_THUNKS): Delete.
1241
1242 2005-01-14  Paolo Carlini  <pcarlini@suse.de>
1243
1244         PR libstdc++/19422
1245         * include/bits/stl_tree.h (_Rb_tree<>::insert_equal(_II, _II),
1246         _Rb_tree<>::insert_unique(_II, _II)): Use insert_equal (insert_unique,
1247         respectively) with hint (end()).
1248         * testsuite/performance/23_containers/set_create_from_sorted.cc: New.
1249
1250 2005-01-13  Geoffrey Keating  <geoffk@apple.com>
1251
1252         * configure.host (darwin): On darwin8 or later, no need to build
1253         libstdc++ with -flat_namespace.
1254
1255 2005-01-13  Jonathan Wakely  <redi@gcc.gnu.org>
1256
1257         * docs/doxygen/user.cfg.in: Set HAVE_DOT back to YES.
1258
1259 2005-01-13  Paolo Carlini  <pcarlini@suse.de>
1260
1261         * testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
1262         Re-enable commented-out test for double type.
1263
1264 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
1265             Benjamin Kosnik  <bkoz@redhat.com>
1266
1267         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1268         basic_istream<char>::ignore(streamsize, int_type),
1269         basic_istream<wchar_t>::ignore(streamsize),
1270         basic_istream<wchar_t>::ignore(streamsize, int_type)): In case
1271         more than numeric_limits<streamsize>::max() chars are skipped,
1272         set _M_gcount = max().
1273         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1274         int_type)): Likewise; keep simple, don't forward.
1275
1276 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
1277
1278         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1279         basic_istream<char>::ignore(streamsize, int_type),
1280         basic_istream<wchar_t>::ignore(streamsize),
1281         basic_istream<wchar_t>::ignore(streamsize, int_type)): Revert
1282         2005-01-05 change: actually, the previous behavior is conforming
1283         and consistent with that of get(char_type*, streamsize, char_type),
1284         albeit slightly different from that of 3.3/3.4 in a corner case
1285         due to the use of snextc.
1286         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1287         int_type)): Likewise.
1288         * testsuite/27_io/basic_istream/ignore/char/4.cc: Remove.
1289         * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
1290
1291 2005-01-11  Paolo Carlini  <pcarlini@suse.de>
1292
1293         * include/tr1/type_traits: Implement alignment_of and aligned_storage.
1294         * testsuite/tr1/4_metaprogramming/other_transformations/
1295         aligned_storage/aligned_storage.cc: New.
1296         * testsuite/tr1/4_metaprogramming/other_transformations/
1297         aligned_storage/typedefs.cc: Likewise.
1298         * testsuite/tr1/4_metaprogramming/type_properties/
1299         alignment_of/alignment_of.cc: Likewise.
1300         * testsuite/tr1/4_metaprogramming/type_properties/
1301         alignment_of/typedefs.cc: Likewise.
1302
1303 2005-01-10  Paolo Carlini  <pcarlini@suse.de>
1304
1305         * Makefile.in: Regenerate.
1306         * libmath/Makefile.in: Likewise.
1307         * libsupc++/Makefile.in: Likewise.
1308         * po/Makefile.in: Likewise.
1309         * src/Makefile.in: Likewise.
1310         * testsuite/Makefile.in: Likewise.
1311
1312 2005-01-10  Paolo Carlini  <pcarlini@suse.de>
1313
1314         * include/bits/stl_algobase.h (lexicographical_compare):
1315         Fix concept check.
1316
1317 2005-01-07  Benjamin Kosnik  <bkoz@redhat.com>
1318
1319         * acinclude.m4: Remove CCODECVT_H.
1320         * configure: Regenerate.
1321         * include/Makefile.am (host_headers_extra): Move to...
1322         (ext_headers): ...here.
1323         * include/Makefile.in: Regenerate.
1324         * include/ext/enc_filebuf: Remove enc_filebuf, consolidate
1325         enc_traits to...
1326         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Move...
1327         * include/ext/codecvt_specializations.h: ...here. Remove
1328         _GLIBCXX_USE___ENC_TRAITS.
1329         (__enc_traits): To __encoding_state, put in __gnu_cxx namespace.
1330         (enc_char_traits): To __encoding_char_traits, put in __gnu_cxx
1331         namespace.
1332         * config/locale/generic/codecvt_specializations.h: Remove.
1333         * include/bits/codecvt.h: Remove codecvt_specializations.h include.
1334         * src/codecvt.cc: Remove __enc_traits::_S_max_size.
1335
1336 2005-01-06  Benjamin Kosnik  <bkoz@redhat.com>
1337
1338         * include/bits/fstream.tcc: Remove unnecessary qualifications for
1339         uglified data members of basic_filebuf, including _M_buf,
1340         _M_buf_size, _M_mode, _M_pback_init.
1341         * include/std/std_fstream.h: Same.
1342
1343 2005-01-05  Benjamin Kosnik  <bkoz@redhat.com>
1344
1345         * testsuite/testsuite_hooks.h:
1346         (copy_constructor::mark_call):  Use __throw_runtime_error.
1347         (assignment_operator::mark_call): Same.
1348         * testsuite/testsuite_hooks.cc (verify_demangle): Same.
1349         (locale_data): Remove, just use runtime_error directly.
1350         (environment_variable): Same.
1351         (not_found): Same.
1352         (run_tests_wrapped_locale): Use __throw_runtime_error.
1353         (run_tests_wrapped_env): Same.
1354         (semaphore::semaphore): Same.
1355         (semaphore::signal): Same.
1356         (semaphore::wait): Same.
1357         * testsuite/testsuite_abi.h (symbol_error): Remove, use logic_error.
1358         * testsuite/testsuite_abi.cc (get_symbol): Use __throw_logic_error.
1359         (create_symbols): Use __throw_runtime_error.
1360         * src/bitmap_allocator.cc: Use __throw_bad_alloc.
1361
1362 2005-01-05  Mark Mitchell  <mark@codesourcery.com>
1363
1364         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Remove child
1365         process.
1366
1367 2005-01-05  Paolo Carlini  <pcarlini@suse.de>
1368
1369         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1370         basic_istream<char>::ignore(streamsize, int_type),
1371         basic_istream<wchar_t>::ignore(streamsize),
1372         basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end,
1373         first check _M_gcount vs __n.
1374         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1375         int_type)): Likewise.
1376         * testsuite/27_io/basic_istream/ignore/char/4.cc: New.
1377         * testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
1378
1379 2005-01-03  Mark Mitchell  <mark@codesourcery.com>
1380
1381         * testsuite/testsuite_hooks.cc: Use __throw_exception_again
1382         instead of just throw.
1383
1384         * testsuite/testsuite_hooks.cc: Update coypright and follow style
1385         guidelines.
1386         * testsuite/testsuite_hooks.h: Likewise.
1387         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
1388         semaphores, not sleep.
1389         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
1390         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
1391         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
1392         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
1393         Likewise.
1394         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
1395         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1396         * testsuite/27_io/objects/char/7.cc: Likewise.
1397         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
1398         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
1399         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
1400
1401         * configure.ac: Check for sys/ipc.h and sys/sem.h.
1402         * config.h.in: Regenerated.
1403         * configure: Likewise.
1404         * testsuite/testsuite_hooks.cc (_GLIBCXX_SYSV_SEM): Conditionally
1405         define.
1406         (sys/types.h): Include.
1407         (sys/ipc.h): Likewise.
1408         (sys/sem.h): Likewise.
1409         (__gnu_test::semun): New type.
1410         (__gnu_test::semaphore::sempaphore): New function.
1411         (__gnu_test::semaphore::~semaphore): Likewise.
1412         (__gnu_test::semaphore::wait): Likewise.
1413         (__gnu_test::semaphore::signal): Likewise.
1414         * testsuite/testsuite_hooks.h (__gnu_test::semaphore): New class.
1415         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
1416         semaphores, not sleep.
1417         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
1418         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
1419         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
1420         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
1421         Likewise.
1422         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
1423         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1424         * testsuite/27_io/objects/char/7.cc: Likewise.
1425         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
1426         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
1427         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
1428
1429 2005-01-03  Paolo Carlini  <pcarlini@suse.de>
1430
1431         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1432         int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
1433         * src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
1434         basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
1435         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1436         basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.
1437
1438 2005-01-02  Paolo Carlini  <pcarlini@suse.de>
1439
1440         * src/istream.cc (basic_istream<char>::ignore(streamsize),
1441         basic_istream<char>::ignore(streamsize, int_type),
1442         basic_istream<wchar_t>::ignore(streamsize),
1443         basic_istream<wchar_t>::ignore(streamsize, int_type)): Avoid
1444         _M_gcount overflows.
1445         * include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
1446         int_type)): Likewise; use snextc in the main loop, consistently
1447         with the specializations above.
1448
1449 2005-01-02  Chris Jefferson  <chris@bubblescope.net>
1450
1451         * include/bits/stl_algobase.h (mismatch): Correct concept check.
1452
1453 2005-01-01  Paolo Carlini  <pcarlini@suse.de>
1454
1455         * testsuite/ext/enc_filebuf/char/13189.cc: Fix, first include
1456         testsuite_hooks.h, to know whether including ext/enc_filebuf.h.
1457         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1458
1459 2005-01-01  Paolo Carlini  <pcarlini@suse.de>
1460
1461         * testsuite/27_io/basic_istream/extractors_character/char/1.cc: Fix,
1462         null-terminate array1 at the outset.
1463         * testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc:
1464         Likewise.