OSDN Git Service

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