OSDN Git Service

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