OSDN Git Service

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