OSDN Git Service

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