OSDN Git Service

2004-11-23 Chris Jefferson <chris@bubblescope.net>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2004-11-23  Chris Jefferson  <chris@bubblescope.net>
2
3         * testsuite/testsuite_iterators.h: New.
4         * testsuite/25_algorithms/search_n/iterator.cc: New.
5         * testsuite/performance/25_algorithms/search_n.cc: New.
6
7 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8
9         * testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
10
11 2004-11-23  Benjamin Kosnik  <bkoz@redhat.com>
12
13         * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
14         * docs/doxygen/run_doxygen: Renames for std::tr1.
15         * docs/doxygen/user.cfg.in: Add cxxabi.h.
16         * include/bits/*.tcc: Add file markup.
17         * include/bits/allocator.h: Add link to allocator.html.
18         * include/bits/atomicity.h: Add file markup.
19         * include/bits/concurrence.h: Same.
20         * include/bits/functexcept.h: Same.
21         * include/ext*: Adjust file markup, remove GCC3 bits.
22         * include/std/*: Adjust file markup, remove bits about renamed files.
23         * libsupc++/cxxabi.h: Add file markup.
24         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
25
26 2004-11-22  Benjamin Kosnik  <bkoz@redhat.com>
27
28         * include/bits/locale_facets.h (isspace, isprint, isupper,
29         islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
30         toupper, tolower): Add doxygen markup.
31         (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
32         time_get_byname, time_put_byname, moneypunct_byname,
33         messages_byname): Same.
34         * include/std/std_fstream.h: Remove superfluous markup.
35         * include/std/std_sstream.h: Same.
36         * include/std/std_streambuf.h: Same.
37         * include/ext/enc_filebuf.h: Adjust markup.
38         * include/ext/stdio_filebuf.h: Same.
39         * include/ext/stdio_sync_filebuf.h: Same.
40         * include/bits/codecvt.h: Same.
41         * config/os/gnu-linux/ctype_base.h: Same.
42         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
43         * include/tr1/array: Add markup.
44         * include/tr1/tuple: Same.
45         
46         * docs/doxygen/run_doxygen: Print arguments.
47
48         * docs/doxygen/user.cfg.in: Tweaks.
49         
50 2004-11-19  Jonathan Wakely  <redi@gcc.gnu.org>
51
52         * include/bits/basic_string.h, include/bits/locale_classes.h,
53         include/bits/valarray_after.h, include/bits/valarray_before.h,
54         include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
55         include/std/std_functional.h, include/std/std_memory.h,
56         include/std/std_numeric.h: Doxygen fixes.
57
58 2004-11-19  Paolo Carlini  <pcarlini@suse.de>
59
60         * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
61         use, more correctly (and consistently with other testcases) the
62         return value of the facet (the iterator arguments are by value).
63         * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
64         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
65         * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
66         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
67         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
68         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
69         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
70         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
71         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
72         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
73         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
74
75 2004-11-19  Jonathan Wakely  <redi@gcc.gnu.org>
76
77         * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
78         from host_alias variable.
79         * Makefile.in: Regenerate.
80
81 2004-11-19  Chris Jefferson  <chris@bubblescope.net>
82
83         * include/bits/stl_list.h (list::back, list::back const):
84         Don't decrement temporary.
85
86 2004-11-19  Paolo Carlini  <pcarlini@suse.de>
87
88         * include/bits/stl_deque.h (deque::front, deque::front const,
89         deque::back, deque::back const): Slightly tweak for stylistic
90         consistency.
91
92 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
93
94         * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
95         * testsuite/ext/array_allocator/1.cc: Likewise.
96         * testsuite/ext/array_allocator/2.cc: Likewise.
97         * testsuite/ext/array_allocator/3.cc: Likewise.
98         * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
99
100 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
101
102         * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
103         If the failbit is set, don't set it again.
104         (money_get<>::_M_extract): Minor stylistic tweak: consistently
105         with the other functions, take care of eofbit at the end.
106
107 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
108
109         DR 434. bitset::to_string() hard to use [Ready]
110 2004-11-23  Benjamin Kosnik  <bkoz@redhat.com>
111
112         * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
113         * docs/doxygen/run_doxygen: Renames for std::tr1.
114         * docs/doxygen/user.cfg.in: Add cxxabi.h.
115         * include/bits/*.tcc: Add file markup.
116         * include/bits/allocator.h: Add link to allocator.html.
117         * include/bits/atomicity.h: Add file markup.
118         * include/bits/concurrence.h: Same.
119         * include/bits/functexcept.h: Same.
120         * include/ext*: Adjust file markup, remove GCC3 bits.
121         * include/std/*: Adjust file markup, remove bits about renamed files.
122         * libsupc++/cxxabi.h: Add file markup.
123         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
124
125 2004-11-22  Benjamin Kosnik  <bkoz@redhat.com>
126
127         * include/bits/locale_facets.h (isspace, isprint, isupper,
128         islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
129         toupper, tolower): Add doxygen markup.
130         (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
131         time_get_byname, time_put_byname, moneypunct_byname,
132         messages_byname): Same.
133         * include/std/std_fstream.h: Remove superfluous markup.
134         * include/std/std_sstream.h: Same.
135         * include/std/std_streambuf.h: Same.
136         * include/ext/enc_filebuf.h: Adjust markup.
137         * include/ext/stdio_filebuf.h: Same.
138         * include/ext/stdio_sync_filebuf.h: Same.
139         * include/bits/codecvt.h: Same.
140         * config/os/gnu-linux/ctype_base.h: Same.
141         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
142         * include/tr1/array: Add markup.
143         * include/tr1/tuple: Same.
144         
145         * docs/doxygen/run_doxygen: Print arguments.
146
147         * docs/doxygen/user.cfg.in: Tweaks.
148         
149 2004-11-19  Jonathan Wakely  <redi@gcc.gnu.org>
150
151         * include/bits/basic_string.h, include/bits/locale_classes.h,
152         include/bits/valarray_after.h, include/bits/valarray_before.h,
153         include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
154         include/std/std_functional.h, include/std/std_memory.h,
155         include/std/std_numeric.h: Doxygen fixes.
156
157 2004-11-19  Paolo Carlini  <pcarlini@suse.de>
158
159         * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
160         use, more correctly (and consistently with other testcases) the
161         return value of the facet (the iterator arguments are by value).
162         * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
163         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
164         * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
165         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
166         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
167         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
168         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
169         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
170         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
171         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
172         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
173
174 2004-11-19  Jonathan Wakely  <redi@gcc.gnu.org>
175
176         * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
177         from host_alias variable.
178         * Makefile.in: Regenerate.
179
180 2004-11-19  Chris Jefferson  <chris@bubblescope.net>
181
182         * include/bits/stl_list.h (list::back, list::back const):
183         Don't decrement temporary.
184
185 2004-11-19  Paolo Carlini  <pcarlini@suse.de>
186
187         * include/bits/stl_deque.h (deque::front, deque::front const,
188         deque::back, deque::back const): Slightly tweak for stylistic
189         consistency.
190
191 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
192
193         * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
194         * testsuite/ext/array_allocator/1.cc: Likewise.
195         * testsuite/ext/array_allocator/2.cc: Likewise.
196         * testsuite/ext/array_allocator/3.cc: Likewise.
197         * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
198
199 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
200
201         * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
202         If the failbit is set, don't set it again.
203         (money_get<>::_M_extract): Minor stylistic tweak: consistently
204         with the other functions, take care of eofbit at the end.
205
206 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
207
208         DR 434. bitset::to_string() hard to use [Ready]
209         * include/std/std_bitset.h (to_string): Add three overloads, taking
210         fewer template arguments.
211         * docs/html/ext/howto.html: Add an entry for DR 434.
212         * testsuite/23_containers/bitset/to_string/1.cc: New.
213
214 2004-11-17  Paolo Carlini  <pcarlini@suse.de>
215
216         * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
217         _CharT)): Remove temporary kludge for libstdc++/15002.
218         * include/std/std_streambuf.h (class basic_streambuf): Declare
219         getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
220         * include/bits/basic_string.h (getline(basic_istream<>&,
221         basic_string<>&, _CharT)): Declare optimized specializations for
222         char and wchar_t, using protected members of basic_streambuf.
223         * src/istream.cc: Define the latter.
224
225 2004-11-16  Jonathan Wakely  <redi@gcc.gnu.org>
226
227         * docs/html/19_diagnostics/howto.html: Document change from
228         _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
229
230 2004-11-16  Matthias Klose  <doko@debian.org>
231
232         * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
233
234 2004-11-16  Matthias Klose  <doko@debian.org>
235
236         * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
237         instead of build_alias.
238         * docs/doxygen/run_doxygen: Likewise.
239         * docs/doxygen/user.cfg.in: Likewise.
240         * Makefile.in: Regenerate.
241
242 2004-11-15  Paolo Carlini  <pcarlini@suse.de>
243
244         * include/bits/streambuf.tcc (__copy_streambufs): Provide
245         a generic version of the function, not using the protected
246         members of basic_streambuf.
247         * include/std/std_streambuf.h (__copy_streambufs): Declare
248         optimized specializations for char and wchar_t.
249         * src/streambuf.cc: New file, define the latter.
250         * src/Makefile.am: Add.
251         * src/Makefile.in: Regenerate.
252
253 2004-11-15  Matthias Klose  <doko@debian.org>
254
255         * docs/doxygen/run_doxygen: Add --build_alias option,
256         substitute it in docs/doxygen/user.cfg.in.
257         * docs/doxygen/user.cfg.in: Use build_alias.
258         * Makefile.am: Pass --build_alias to run_doxygen
259         * Makefile.in: Regenerate.
260
261 2004-11-15  Benjamin Kosnik  <bkoz@redhat.com>
262
263         * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
264
265 2004-11-15  Paolo Carlini  <pcarlini@suse.de>
266
267         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
268
269 2004-11-14  Paolo Carlini  <pcarlini@suse.de>
270
271         * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
272         Slightly tweak for clarity (also leads to measurably better code).
273
274 2004-11-12  Andrew Pinski  <pinskia@physics.uc.edu>
275
276         PR other/14264
277         * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
278
279 2004-11-09  Paolo Carlini  <pcarlini@suse.de>
280
281         * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
282         time_get<>::do_get_monthname): Absolutely avoid dereferencing
283         end iterators.
284
285         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
286         Minor tweak.    
287
288 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
289             Doug Gregor  <dgregor@cs.indiana.edu>
290
291         PR libstdc++/17664
292         * src/debug.cc : Just use one mutex.
293
294 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
295
296         * configure.ac (libtool_VERSION): To 6:4:0.
297         * configure: Regenerate.
298
299         * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
300
301         * docs/doxygen/user.cfg.in: Add more extension files.
302
303 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
304
305         * include/bits/streambuf_iterator.h (class istreambuf_iterator):
306         Consistently use _M_c to cache the current char, i.e., not only
307         when operator++(int) is involved; change _M_c to mutable.
308         (_M_get()): Always save the return value of _M_sbuf->sgetc() into
309         _M_c.
310         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
311         (long standing) typo.
312         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
313         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
314         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
315
316 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
317
318         * include/bits/istream.tcc (getline(char_type*, streamsize,
319         char_type), ignore(streamsize), ignore(streamsize, int_type)):
320         Restore a generic version of the functions, not using the
321         protected members of basic_streambuf.
322         * include/std/std_istream.h (getline(char_type*, streamsize,
323         char_type), ignore(streamsize), ignore(streamsize, int_type)):
324         Declare optimized specializations for char and wchar_t.
325         * src/istream.cc: New file, define the latter.
326         * src/Makefile.am: Add.
327         * src/Makefile.in: Regenerate.
328
329 2004-11-07  Paolo Carlini  <pcarlini@suse.de>
330
331         * testsuite/performance/27_io/ifstream_getline-2.cc: New.
332
333 2004-11-05  Benjamin Kosnik  <bkoz@redhat.com>
334
335         PR libstdc++/17218
336         PR libstdc++/17223
337         * docs/doxygen/filter: Remove.
338         * docs/doxygen/filter.sed: Remove.
339         * docs/doxygen/mainpage.html: Add link to functions.
340         * docs/doxygen/run_doxygen: Changes due to new source filtering.
341         * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
342         * include/bits/allocator.h: Tweaks for doxygen.
343         * include/bits/char_traits.h: Same.
344         * include/bits/codecvt.h: Same.
345         * include/bits/concurrence.h: Same.
346         * include/bits/locale_facets.h: Same.
347         * include/ext/array_allocator.h: Same.
348         * include/ext/debug_allocator.h: Same.
349         * include/ext/malloc_allocator.h: Same.
350         * include/ext/mt_allocator.h: Same.
351         * include/ext/new_allocator.h: Same.
352         * include/ext/pool_allocator.h: Same.
353         * include/ext/stdio_sync_filebuf.h: Same.
354         * include/std/std_memory.h: Same.
355         * include/tr1/array: Same.
356         * include/tr1/tuple: Same.
357         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
358         * config/os/gnu-linux/ctype_base.h: Same.
359
360 2004-11-04  Paolo Carlini  <pcarlini@suse.de>
361
362         * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
363         Evaluate __beg == __end the exact strict minimum number of times.
364
365 2004-11-03  Jonathan Wakely  <redi@gcc.gnu.org>
366
367         * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
368         Avoid dereferencing two times __first in the prologue.
369  
370 2004-11-03  Paolo Carlini  <pcarlini@suse.de>
371
372         * include/bits/stl_numeric.h: Trivial formatting fixes.
373
374 2004-11-03  Benjamin Kosnik  <bkoz@redhat.com>
375
376         * include/bits/c++config: Spacing.
377         * libsupc++/del_op.cc: Include c++config.h.
378         * libsupc++/del_opnt.cc: Same.
379         * libsupc++/del_opv.cc: Same.
380         * libsupc++/del_opvnt.cc: Same.
381         * libsupc++/new_op.cc: Same.
382         * libsupc++/new_opnt.cc: Same.
383         * libsupc++/new_opv.cc: Same.
384         * libsupc++/new_opvnt.cc: Same.
385
386 2004-11-03  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
387
388         * config/os/bsd/darwin/os_defines.h
389         (_GLIBCXX_WEAK_DEFINITION): Define.
390         * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
391         * libsupc++/del_op.cc (operator delete(void *)): Use
392         _GLIBCXX_WEAK_DEFINITION.
393         * libsupc++/del_opnt.cc
394         (operator delete(void *, const std::nothrow_t&)): Same.
395         * libsupc++/del_opv.cc (operator delete[](void *)): Same.
396         * libsupc++/del_opvnt.cc
397         (operator delete[](void *, const std::nothrow_t&)): Same.
398         * libsupc++/new_op.cc (operator new(std::size_t)): Same.
399         * libsupc++/new_opnt.cc
400         (operator new(std::size_t, const std::nothrow_t&)): Same
401         * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
402         * libsupc++/new_opvnt.cc
403         (operator new[](std::size_t, const std::nothrow_t&)): Same.
404
405 2004-11-02  Paolo Carlini  <pcarlini@suse.de>
406
407         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
408         Evaluate *__beg the exact strict minimum number of times; likewise
409         for __beg != __end; slightly simplify main parsing loop.
410
411 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
412             Lothar Werzinger  <lothar@xcerla.com>
413         
414         PR libstdc++/17664
415         * src/debug.cc: Include concurrence, use mutexes.
416         (_Safe_iterator_base::_M_attach): Here. 
417         (_Safe_iterator_base::_M_detach): Here. 
418         
419 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
420
421         PR libstdc++/17922
422         * include/bits/ios_base.h : Add enum values.
423         * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
424         * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
425         * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
426         * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
427         * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
428         * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
429         * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
430         * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
431
432         * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
433         * src/ios.cc: Same.
434
435         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
436         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
437
438 2004-11-01  Momchil Velikov  <velco@fadata.bg>
439
440         PR libstdc++/18185
441         * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
442         exceptions.
443         * testsuite/thread/18185.cc: New.
444         
445 2004-11-01  Chris Jefferson  <chris@bubblescope.net>
446
447         PR libstdc++/18159
448         * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
449         (get(const pair)): Likewise.
450
451 2004-11-01  Paolo Carlini  <pcarlini@suse.de>
452
453         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
454         Evaluate *__beg the exact strict minimum number of times; likewise
455         for __beg != __end; in the main parsing loop, call ++__beg in two
456         places only. The former is also a correctness issue, because,
457         according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
458         dereferenced only one time for each increment.
459
460 2004-10-31  Benjamin Kosnik  <bkoz@redhat.com>
461
462         PR c++/16728
463         * testsuite/23_containers/set/modifiers/16728.cc: New.
464
465 2004-10-30  Paolo Carlini  <pcarlini@suse.de>
466
467         * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
468
469         * testsuite/ext/bitmap_allocator/check_delete.cc: New.
470         * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
471
472 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
473
474         * configure.host (darwin*): Set os_include_dir to a separate directory
475         for Darwin.
476         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
477         'darwin'.
478         * config/locale/darwin/ctype_members.cc: New.
479         * config/os/bsd/darwin/ctype_base.h: New.
480         * config/os/bsd/darwin/ctype_inline.h: New.
481         * config/os/bsd/darwin/ctype_noninline.h: New.
482         * config/os/bsd/darwin/os_defines.h: New.
483
484         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
485         on Linux.
486
487 2004-10-29  Chris Jefferson  <chris@bubblescope.net>
488
489         * include/bit/stl_algo.h (find_first_of(,,,,pred)):
490         Remove invalid EqualOpConcept.
491         * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
492
493 2004-10-29  Benjamin Kosnik  <bkoz@redhat.com>
494
495         * testsuite/testsuite_allocator.h (check_delete): New.
496         (check_new): Simplify.
497         * testsuite/ext/array_allocator/check_delete.cc: New.
498         * testsuite/ext/array_allocator/check_new.cc: Simplify.
499         * testsuite/ext/debug_allocator/check_delete.cc: New.
500         * testsuite/ext/debug_allocator/check_new.cc: Simplify.
501         * testsuite/ext/malloc_allocator/check_delete.cc: New.
502         * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
503         * testsuite/ext/mt_allocator/check_delete.cc: New.
504         * testsuite/ext/mt_allocator/check_new.cc: Simplify.
505         * testsuite/ext/new_allocator/check_delete.cc: New.
506         * testsuite/ext/new_allocator/check_new.cc: Simplify.
507         * testsuite/ext/pool_allocator/check_delete.cc: New.
508         * testsuite/ext/pool_allocator/check_new.cc: Simplify.
509
510 2004-10-28  Chris Jefferson  <chris@bubblescope.net>
511
512         PR libstdc++/18159
513         * include/tr1/tuple: Fix, change formatting.
514
515 2004-10-28  Benjamin Kosnik  <bkoz@redhat.com>
516
517         * include/ext/mt_allocator.h (__common_pool_policy): Add template
518         template parameter for pool class type.
519         (__per_type_pool_policy): Same.
520         (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
521         * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
522         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
523         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
524         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
525         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
526         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
527         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
528         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
529         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
530         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
531         * testsuite/ext/mt_allocator/instantiate.cc: Same.
532         * testsuite/ext/mt_allocator/tune-1.cc: Same.
533         * testsuite/ext/mt_allocator/tune-2.cc: Same.
534         * testsuite/ext/mt_allocator/tune-3.cc: Same.
535         * testsuite/ext/mt_allocator/tune-4.cc: Same.
536
537 2004-10-28  Paolo Carlini  <pcarlini@suse.de>
538
539         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
540         Cache *__beg in __c when parsing exponent sign too.
541         (num_get<>::do_get(..., bool&)): Cache *__beg.
542         (money_get<>::_M_extract)): Likewise, in money_base::value.
543
544 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
545
546         * include/bits/basic_string.h (assign(const basic_string&)):
547         Move out of line...
548         * include/bits/basic_string.tcc: ... here.
549
550 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
551
552         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
553         Move out of line...
554         * include/bits/basic_string.tcc: ... here.
555
556 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
557
558         * include/bits/basic_string.h (append(const basic_string&),
559         append(size_type, _CharT)): Move out of line...
560         * include/bits/basic_string.tcc: ... here.
561
562 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
563
564         * include/bits/basic_string.h (erase(size_type, size_type),
565         erase(iterator), erase(iterator, iterator)): Call _M_mutate
566         instead of _M_replace_safe, equivalent when the fourth argument
567         is zero and simpler.
568
569 2004-10-26  Benjamin Kosnik  <bkoz@redhat.com>
570
571         * include/ext/array_allocator.h (array::allocate): Check for valid
572         array object, use its size member function directly.
573         * testsuite/ext/array_allocator/3.cc: New.
574         * docs/html/20_util/allocator.html: Add docs.
575         
576 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
577
578         * configure.host (darwin*): Build libstdc++ single module
579         and flat namespace.
580         * libsupc++/new_op.cc (new): Make weak.
581         * libsupc++/new_opnt.cc (new): Make weak.
582         * libsupc++/new_opv.cc (new): Make weak.
583         * libsupc++/new_opvnt.cc (new): Make weak.
584         * libsupc++/delete_op.cc (delete): Make weak.
585         * libsupc++/delete_opnt.cc (delete): Make weak.
586         * libsupc++/delete_opv.cc (delete): Make weak.
587         * libsupc++/delete_opvnt.cc (delete): Make weak.
588
589 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
590
591         * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
592         (AUTOMAKE_OPTIONS): Add nostdinc.
593         * testsuite/Makefile.in: Regenerate.
594         * scripts/testsuite_flags.in (build-includes): Remove redundant
595         search for libsupc++.
596         * fragment.am: Clean.
597         
598 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
599
600         * include/Makefile.am (tr1_headers): Add tuple.
601         * include/Makefile.in: Regenerate.
602
603 2004-10-25  Chris Jefferson  <chris@bubblescope.net>
604
605         * include/tr1/tuple: Implementation of tuple from library TR.
606         * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
607         * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
608         * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
609         New.
610         * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
611         * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
612         * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
613         * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: 
614         New.
615         * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
616         * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
617
618 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
619         
620         * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
621         basic_string as _M_disjunct, adjust to take only __s.
622         * include/bits/basic_string.tcc: Adjust consistently callers. 
623
624 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
625
626         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
627         Adjust bit missing from the previous commit.
628
629 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
630
631         PR other/18138
632         * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
633
634 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
635
636         * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
637         _M_move, _M_copy, _M_assign): New, use througout.
638         (operator+=(_CharT)): Define in terms of push_back.
639         (append(const basic_string&)): Define here, inline, and simplify,
640         don't use the full _M_replace_safe.
641         (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
642         (push_back): Likewise.
643         (assign(const basic_string&)): Define here, inline.
644         * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
645         Fix: when s points inside the _Rep, upon reallocation (reserve) we
646         were copying from deallocated memory.
647         (append(const basic_string&, size_type, size_type)): Simplify,
648         don't use _M_replace_safe.
649         (replace(size_type, size_type, const _CharT*, size_type)): Slightly
650         tweak.
651         (reserve): Likewise.
652         * testsuite/21_strings/basic_string/append/char/2.cc: New.
653         * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
654         * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
655         * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
656
657         * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
658         * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
659
660 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
661
662         * testsuite/ext/mt_allocator/deallocate_global-2.c:
663         s/value_t/value_type/. s/traits_t/traits_type/.
664         s/policy_t/policy_type/. s/allocator_t/allocator_type/.
665         s/string_t/string_type/. s/list_t/list_type/.
666         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
667         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
668         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
669         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
670         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
671         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
672         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
673
674 2004-10-21  Benjamin Kosnik  <bkoz@redhat.com>
675
676         * include/tr1/array (array): Make safe for zero-sized arrays.
677         (array::end): Return one past the end.
678         (array::at): Use __throw_out_of_range, include functexcept.h.
679         (operator==): Implement.
680         (operator!=): Same.
681         (operator<): Same.
682         (operator>): Same.
683         (operator>=): Same.
684         (operator<=): Same.
685         * testsuite/tr1/6_containers/array/capacity/(empty.cc,
686         max_size.cc, size.cc): New.
687         * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
688         greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
689         not_equal): New.
690         * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc: 
691         New.
692         * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc: 
693         New.
694         * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
695         * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
696         instantiate, typedefs, zero_size_arrays): New.
697
698 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
699             Benjamin Kosnik  <bkoz@redhat.com>
700
701         * include/bits/basic_string.h (_M_set_length_and_sharable): New.
702         * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
703         size_type), _M_mutate, _M_clone): Use it.
704         (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
705
706 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
707             Dhruv Matani  <dhruvbird@gmx.net>
708             Nathan Myers  <ncm@cantrip.org>
709
710         * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
711         _M_range_insert): Check at the outset that we are not trying
712         to exceed max_size, then deal properly with __len overflows.
713         * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
714         
715         * testsuite/testsuite_allocator.h: Remove redundant include.
716
717 2004-10-20  Paolo Carlini  <pcarlini@suse.de>
718
719         * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
720         when n > max_size().
721         * include/ext/malloc_allocator.h (allocate): Likewise.
722         * include/ext/mt_allocator.h (allocate): Likewise.
723         * include/ext/new_allocator.h (allocate): Likewise.
724         * include/ext/array_allocator.h: Use __throw_bad_alloc().
725         * include/ext/pool_allocator.h: Use __builtin_expect.
726         * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
727         * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
728         * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
729         * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
730         * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
731         * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
732         * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
733
734 2004-10-19  Paolo Carlini  <pcarlini@suse.de>
735
736         * testsuite/performance/20_util/allocator/list_sort_search.cc:
737         Include <ext/new_allocator.h>.
738         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
739
740 2004-10-18  Paolo Carlini  <pcarlini@suse.de>
741
742         * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
743         unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
744         == capacity() (== 0): is ok to just leave everything unchanged.
745
746         * include/bits/basic_string.h: Minor formatting fixes.
747         * include/bits/basic_string.tcc: Likewise.
748
749 2004-10-17  Benjamin Kosnik  <bkoz@redhat.com>
750
751         * include/ext/mt_allocator.h (__pool::_M_get_align): New.
752         (__mt_alloc::allocate): Use it.
753         * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
754         (__pool::_M_reserve_block): Simplify block allocation.
755         
756 2004-10-17  Dhruv Matani  <dhruvbird@gmx.net>
757             Paolo Carlini  <pcarlini@suse.de>
758                 
759         * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
760         makes the code 64-bit correct and also fixes (together with using at
761         the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
762         8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
763         Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
764         * src/bitmap_allocator.cc: Change to size_t.
765         * config/linker-map.gnu: Adjust.
766
767 2004-10-16  Benjamin Kosnik  <bkoz@redhat.com>
768
769         * include/tr1/array: Don't use layout_type.
770
771 2004-10-16  Sashan Govender  <sashang@gmail.com>
772
773         * include/tr1/array (array::end const): Fix casting from iterator
774         to const_iterator.
775         
776 2004-10-15  Paolo Carlini  <pcarlini@suse.de>
777
778         * include/ext/bitmap_allocator.h: Qualify ::operator delete.
779         * src/bitmap_allocator.cc: Likewise.
780         * src/mt_allocator.cc: Use ::operator delete, not delete,
781         consistently with ::operator new.
782
783         * include/ext/bitmap_allocator.h (deallocate): Check for null
784         pointer.
785         * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
786         * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
787
788 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
789
790         * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
791         null pointer.
792         * include/ext/pool_allocator.h (debug_allocator::deallocate):
793         Check pointer value.
794         * include/ext/debug_allocator.h (debug_allocator::deallocate):
795         Throw exceptions, don't abort.
796         * include/ext/array_allocator.h
797         (array_allocator_base::deallocate): Remove unused parameters.
798         * testsuite/testsuite_allocator.h (check_deallocate_null): New.
799         * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
800         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
801         * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
802         * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
803         * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
804         * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
805         * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
806
807         * testsuite/testsuite_allocator.h (check_new): Add instance argument.
808         * testsuite/ext/array_allocator/check_new.cc: New.
809         
810 2004-10-14  Paolo Carlini  <pcarlini@suse.de>
811
812         * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
813         Rename __unused to __M_unused.
814
815 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
816
817         * testsuite/ext/headers.cc: Add includes, compile only.
818         * testsuite/ext/hash_map.cc: Move to...
819         * testsuite/ext/hash_map/1.cc: ...here.
820         * testsuite/ext/14648.cc: Move to...
821         * testsuite/ext/hash_map/14648.cc: ...here.
822         * testsuite/ext/hash_map/instantiate.cc: Add.
823         * testsuite/ext/hash_set.cc: Move to...
824         * testsuite/ext/hash_set/1.cc: ...here.
825         * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
826         * testsuite/ext/hash_set/instantiate.cc: ...here.
827         * testsuite/ext/hash_check_construct_destroy.cc: Move to...
828         * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
829         * testsuite/ext/slist_check_construct_destroy.cc: Move to...
830         * testsuite/ext/slist/check_construct_destroy.cc: ...here.
831         * testsuite/ext/slist_explicit_instantiation.cc: Move to...
832         * testsuite/ext/slist/instantiate.cc: ...here.
833         
834 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
835
836         * include/ext/mt_allocator.h: Tweaks.
837         * src/mt_allocator.cc: Same.
838
839 2004-10-14  Dhruv Matani  <dhruvbird@gmx.net>
840
841         * ext/bitmap_allocator.h: Clean-up add/remove functions.
842         * src/bitmap_allocator.cc: New file. Contains the out-of-line
843         function definitions, static initialization of variables, and
844         explicit instantiations needed for the allocator.
845         * src/Makefile.am: Add.
846         * src/Makefile.in: Regenerate.
847         * config/linker.map.gnu: Add the necessary symbols.
848
849 2004-10-13  Paolo Carlini  <pcarlini@suse.de>
850
851         * include/bits/basic_string.tcc (_S_create): Use consistently
852         the exponential policy, simplify.
853         * testsuite/performance/21_strings/string_append_2.cc: New.
854
855         * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
856         * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
857         that case sizeof(_Rep) == 24).
858
859 2004-10-12  Paolo Carlini  <pcarlini@suse.de>
860
861         PR libstdc++/17948
862         * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
863         wrong commit of 2004-10-07.
864         
865 2004-10-12  Scott Snyder  <snyder@fnal.gov>
866
867         PR libstdc++/17948
868         * testsuite/23_containers/set/modifiers/17948.cc: New.
869
870 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
871
872         * include/bits/stl_deque.h: Correct for over-long lines.
873
874 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
875
876         PR libstdc++/17937
877         * include/ext/mt_allocator.h (__pool::_M_destroy): New.
878         * src/mt_allocator.cc (__pool::~__pool): Change definitions to
879         _M_destroy.
880         * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
881         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
882         * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
883         * configure: Regenerate.
884         * config/linker-map.gnu: Tweak exports.
885         * docs/html/ext/mt_allocator.html: Update docs.
886         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
887         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.       
888         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
889         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
890         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
891         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
892         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
893         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
894
895 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
896
897         PR libstdc++/16614 continued.
898         * include/ext/mt_allocator.h
899         (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
900         specific type characteristics.
901         (__pool_base): Add constructor that takes a _Tune argument.
902         (__pool): Same.
903         * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
904         * testsuite/ext/mt_allocator/tune-4.cc: Same.
905         * testsuite/ext/mt_allocator/tune-3.cc: Same.
906
907 2004-10-11  Joachim Kuebart  <kuebart@mathematik.uni-ulm.de>
908             Paolo Carlini  <pcarlini@suse.de>
909
910         * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
911         Deal properly with exceptions thrown by ::operator new(size_t).
912         * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
913
914         * include/ext/pool_allocator.h: Include <cstdlib>.
915
916 2004-10-10  Benjamin Kosnik  <bkoz@redhat.com>
917
918         * include/bits/functexcept.h: Add guards.
919
920         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
921         * configure: Regenerate.
922         
923 2004-10-10  Paolo Carlini  <pcarlini@suse.de>
924
925         * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
926         Give __ret a default value, thus avoiding spurious warnings.
927
928         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
929         words or linux.words, otherwise exit.
930         * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
931
932 2004-10-09  Paolo Carlini  <pcarlini@suse.de>
933
934         * include/std/std_memory.h (__get_temporary_buffer): Don't use
935         INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
936         platforms too.
937         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
938         line numbers.
939
940 2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>
941
942         * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
943         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
944         * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
945         * configure: Regenerate.
946         * src/mt_allocator.cc (__pool::~__pool): Make conditional on
947         _GLIBCXX_USE___CXA_ATEXIT macro.
948         * docs/html/ext/mt_allocator.html: Add note about deallocation.
949         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
950         with _GLIBCXX_USE___CXA_ATEXIT.
951         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
952         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
953         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
954         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
955         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
956         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
957         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
958         
959 2004-10-07  Phil Edwards  <phil@codesourcery.com>
960
961         * testsuite/lib/libstdc++.exp:  Update list of undefined functions.
962
963 2004-10-07  Paolo Carlini  <pcarlini@suse.de>
964
965         * include/bits/list.tcc (operator=): Avoid iterator postincrement.
966         * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
967
968 2004-10-07  Benjamin Kosnik  <bkoz@redhat.com>
969
970         * include/tr1: New.
971         * include/tr1/array: New.
972         * include/Makefile.am (tr1_headers): New.
973         (stamp-tr1): New.
974         (install-headers): New.
975         (allstamped): Add stamp-tr1.
976
977         * include/ext/array_allocator.h: New.
978         * include/Makefile.am: Add.
979         * include/Makefile.in: Regenerate.
980         * testsuite/ext/array_allocator/1.cc: New.
981         * testsuite/ext/array_allocator/2.cc: New.
982
983 2004-10-07  Richard Earnshaw  <rearnsha@arm.com>
984
985         * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
986
987 2004-10-07  Roger Sayle  <roger@eyesopen.com>
988
989         PR libstdc++/17850
990         * configure.ac: Newlib does not provide strtold.
991         * configure: Regenerate.
992
993 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
994
995         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
996         (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
997         * configure: Regenerated.
998         * testsuite/Makefile.am (CLEANFILES): Add TEST for
999         check-performance executables.
1000         (stamp_thread): New.
1001         (all-local): Use it.
1002         * testsuite/Makefile.in: Regenerate.
1003         * scripts/create_testsuite_files: Filter thread tests.
1004
1005         * testsuite/thread/pthread1.cc: Remove macro conditionals: this
1006         file will only be run by thread enabled configurations.
1007         * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
1008         * testsuite/thread/pthread6.cc: Same.
1009         * testsuite/thread/pthread5.cc: Same.
1010         * testsuite/thread/pthread4.cc: Same.
1011         * testsuite/thread/pthread3.cc: Same.
1012         * testsuite/thread/pthread2.cc: Same.
1013
1014         * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
1015         * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
1016         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
1017         * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
1018         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here. 
1019         * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
1020         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
1021         * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
1022         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
1023
1024 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
1025             Paolo Carlini  <pcarlini@suse.de>
1026
1027         PR libstdc++/17780
1028         * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
1029         to old locking order.
1030
1031 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
1032
1033         * include/std/std_sstream.h (_M_sync): When the caller is
1034         setbuf, don't trust _M_string.capacity() to be the size of
1035         the buffer area, use _M_string.size() in this case.
1036         * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
1037         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
1038
1039         * include/bits/sstream.tcc (overflow): Avoid calling string::assign
1040         unnecessarily when the current _M_string is empty.
1041
1042 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
1043
1044         * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
1045         Avoid iterator postincrement.
1046         (__rotate): Likewise.
1047
1048         * include/bits/stl_algo.h: Minor formatting tweaks.
1049
1050 2004-10-06  Christopher Jefferson <caj@cs.york.ac.uk>
1051
1052         * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
1053         Avoid iterator postincrement; fix swapping middle element with
1054         itself on odd-length inputs.
1055
1056 2004-10-05  Benjamin Kosnik  <bkoz@redhat.com>
1057
1058         PR libstdc++/17780
1059         * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
1060         options as compile-time constant enums.
1061         (__pool_base::_Tune::is_default): New.
1062         (__pool_base::_Block_address): New.
1063         (__pool_base): Rearrange data members.
1064         (__pool::_M_reserve_memory): To _M_reserve_block.
1065         (__pool::_M_reclaim_memory): To _M_reclaim_block.       
1066         (__pool::_Bin_record): Add _Block_address data member.
1067         (__pool<false>): Add _M_thread_freelist_initial.
1068         (__pool::~__pool): Declare.     
1069         (__common_pool_policy): Move static data member to...
1070         (__common_pool_policy::_S_get_pool): ...here, make static local.
1071         (__per_type_pool_policy): Move static data member to...
1072         (__per_type_pool_policy::_S_get_pool): ...here, make static local.
1073         (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
1074         Remove static member definitions. Use define for __default_policy.
1075         * src/mt_allocator.cc: Same.
1076         * config/linker-map.gnu: Don't export _S_get_pool. Renames.
1077         * testsuite/ext/new_allocator: New.
1078         * testsuite/ext/new_allocator/instantiate.cc: New.
1079         * testsuite/ext/new_allocator/check_new.cc: New.
1080         * testsuite/ext/new_allocator/deallocate_global.cc: New.
1081         * testsuite/ext/new_allocator/deallocate_local.cc: New.
1082         * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
1083         template arguments.
1084         * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
1085         * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
1086         * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
1087         * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
1088         * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
1089         * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
1090         * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
1091         * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
1092         * testsuite/ext/mt_allocator/deallocate.cc: New.
1093         * testsuite/ext/malloc_allocator/deallocate.cc: New.    
1094         * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
1095         * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
1096         
1097 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
1098
1099         * configure.host (abi_baseline_pair): Define for s390-*-linux* and
1100         s390x-*-linux*.
1101         * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
1102         * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
1103
1104 2004-10-05  Christopher Jefferson  <caj@cs.york.ac.uk>
1105
1106         * include/bits/stl_algobase.h (iter_swap): delegate to swap via
1107         __iter_swap when iterator's value_types are equal.
1108         (struct __iter_swap): New.
1109
1110 2004-10-04  Benjamin Kosnik  <bkoz@redhat.com>
1111
1112         * configure.ac (libtool_VERSION): To 6:3:0.
1113         * configure: Regnerate.
1114         * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
1115
1116 2004-10-04  Roger Sayle  <roger@eyesopen.com>
1117             Eric Botcazou  <ebotcazou@libertysurf.fr>
1118
1119         PR libstdc++/17505
1120         * config/linker-map.gnu: Synchronize the current list of stub
1121         functions from libmath.
1122
1123 2004-10-03  Roger Sayle  <roger@eyesopen.com>
1124
1125         * config/locale/generic/c_locale.cc (__convert_to_v): Use
1126         _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
1127         Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
1128         to check for presence of strtold.
1129
1130 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
1131
1132         * include/bits/stl_list.h: Trivial formatting fixes.
1133         * include/bits/stl_tree.h: Likewise.
1134
1135 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
1136
1137         * include/bits/sstream.tcc (seekpos): In case of success, just
1138         return __sp.
1139
1140 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
1141
1142         * include/bits/sstream.tcc (pbackfail): Implement correctly
1143         27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
1144         write in the buffer.
1145         * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
1146         * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
1147         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
1148         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
1149         * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
1150
1151 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
1152
1153         * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
1154         conditionals consistently with seekoff.
1155         * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1156         (_M_sync): Simplify a bit, clean-up comment.
1157
1158 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
1159
1160         PR libstdc++/10975 (DR 453)
1161         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1162         and __off == 0.
1163         * docs/html/ext/howto.html: Add an entry for DR 453.
1164         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1165         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1166         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1167         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1168         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1169         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1170         move to...
1171         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1172         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1173         move to...
1174         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1175
1176 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
1177
1178         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1179         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1180         (str()): Slightly tweak, protect from pptr() == 0.
1181         (_M_update_egptr()): Likewise.
1182         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1183         for an empty buffer use __beg instead of _M_string.capacity().
1184         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1185         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1186
1187         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1188         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1189         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1190         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1191
1192 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
1193             Benjamin Kosnik  <bkoz@redhat.com>
1194         
1195         * testsuite/testsuite_io.h (class constraint_buf): New, extended
1196         and templatized version of constraint_filebuf; add typedefs for
1197         streambuf/stringbuf/filebuf and wchar_t counterparts.
1198
1199 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
1200
1201         PR libstdc++/16612
1202         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1203         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1204         don't deal with _S_empty_rep.
1205         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1206         _M_leak_hard, _M_mutate): Likewise.
1207         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1208         * acconfig.h: Add corresponding undef.  
1209         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1210         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1211         * configure: Regenerate.
1212         * config.h.in: Likewise.
1213
1214 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
1215             Paolo Carlini  <pcarlini@suse.de>
1216
1217         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1218         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1219         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1220         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
1221         New.
1222
1223 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
1224
1225         * README: Remove obsolete entry about include/c_shadow.
1226
1227 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1228
1229         PR libstdc++/17469
1230         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1231
1232 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
1233
1234         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1235         rename a variable, move an assignment.
1236         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1237
1238 2004-09-24  Paul Brook  <paul@codesourcery.com>
1239
1240         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1241         simulator targets.
1242         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1243         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1244         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1245         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1246         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1247         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1248
1249 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
1250
1251         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1252         * testsuite/23_containers/map/operators/1_neg.cc
1253         * testsuite/23_containers/set/operators/1_neg.cc:
1254         Update locations and/or regexps of dg-error markers.
1255
1256 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
1257
1258         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1259         Add rule to build ${host_builddir}/gthr-tpf.h.
1260         * include/Makefile.in: Regenerate.
1261
1262 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
1263             Magnus Fromreide  <magfr@lysator.liu.se>
1264
1265         * include/bits/boost_concept_check.h (struct _SequenceConcept):
1266         Remove wrong requirement, i.e., not present in Table 67.
1267
1268 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
1269
1270         PR libstdc++/12882 (cont)
1271         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1272         * configure: Regenerate.
1273         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1274         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1275         trivial showmanyc for large files too.
1276
1277 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
1278
1279         * include/bits/stl_algo.h (remove): Remove too restrictive
1280         concept-check.
1281
1282 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1283
1284         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1285         as per Nathan's original suggestion.
1286
1287 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1288
1289         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1290         up a bit.
1291         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1292         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1293         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1294
1295 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1296             Andrea Arcangeli  <andrea@suse.de>
1297
1298         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1299         call unnecessarily sync, that is fflush: the library, since 3.4.0
1300         does not use buffered fread/fwrite.
1301         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1302
1303 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
1304
1305         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1306         Define.
1307         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1308         Define.
1309         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1310         (__cxa_vec_new): Use it.
1311         (__cxa_vec_new2): Likewise.
1312         (__cxa_vec_new3): Likewise.
1313         (__cxa_vec_cdtor): Likewise.
1314         (__cxa_vec_cctor): Likeiwse.
1315         (__cxa_vec_dtor): Likewise.
1316         (__cxa_vec_cleanup): Likewise.
1317         (__cxa_vec_delete2): Likewise.
1318         (__cxa_vec_delete3): Likewise.
1319         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1320         (__cxa_vec_new2): Likewise.
1321         (__cxa_vec_new3): Likewise.
1322         (__cxa_vec_cdtor): Likewise.
1323         (__cxa_vec_cctor): Likeiwse.
1324         (__cxa_vec_dtor): Likewise.
1325         (__cxa_vec_cleanup): Likewise.
1326         (__cxa_vec_delete2): Likewise.
1327         (__cxa_vec_delete3): Likewise.
1328         (__aeabi_vec_ctor_nocookie_nodtor): New function.
1329         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1330         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1331         (__aeabi_vec_new_cookie_noctor): Likewise.
1332         (__aeabi_vec_new_nocookie): Likewise.
1333         (__aeabi_vec_new_cookie_nodtor): Likewise.
1334         (__aeabi_vec_new_cookie): Likewise.
1335         (__aeabi_vec_dtor): Likewise.
1336         (__aeabi_vec_dtor_cookie): Likewise.
1337         (__aeabi_vec_delete): Likewise.
1338         (__aeabi_vec_delete3): Likewise.
1339         (__aeabi_vec_delete3_nodtor): Likewise.
1340         (__aeabi_atexit): Likewise.
1341
1342 2004-09-14  Nathan Myers  <ncm@cantrip.org>
1343
1344         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1345         for 11722: copy can replace move; the common case is __avail == 0.
1346
1347 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
1348
1349         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1350         to __is_scalar, more clear and consistent with "tr1" naming.
1351         * include/bits/stl_algobase.h: Update consistently throughout.
1352
1353 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
1354
1355         PR libstdc++/11722
1356         * include/std/std_fstream.h (xsgetn): Declare only.
1357         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1358         always_noconv() case: when __n > __buflen, copy the available
1359         buffer and issue a direct read.
1360         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1361
1362         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1363         conditional.
1364
1365 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
1366
1367         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1368         libstdc++_maybe_build_wrapper instead of using local code.
1369
1370 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
1371
1372         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1373
1374 2004-09-03  Jan Beulich  <jbeulich@novell.com>
1375
1376         * crossconfig.m4: Add NetWare as a target.
1377         * configure: Regenerate.
1378
1379 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1380
1381         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1382         defined.
1383
1384 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1385             Simon Richter  <Simon.Richter@hogyros.de>
1386
1387         PR libstdc++/16715
1388         * include/bits/istream.tcc: Add extern template for iostream
1389         char and wchar_t instantiations.
1390
1391 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1392             Leland Wang  <llwang@infor.org>
1393
1394         PR libstdc++/17259
1395         * include/ext/ropeimpl.h (rope::_S_compare): Use
1396         _Rope_constants::_S_leaf.
1397
1398 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1399
1400         PR libstdc++/16848
1401         * include/Makefile.am (ext_headers): Remove demangle.h.
1402         * include/Makefile.in: Regenerate.
1403         * include/ext/demangle.h: Remove.
1404
1405 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
1406
1407         PR libstdc++/16614
1408         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1409         split into..
1410         (__pool): New, specialize.
1411         (__common_pool): New, static bits here.
1412         (__per_type_pool): New, and here.
1413         (__mt_alloc_base): New.
1414         (__mt_alloc): Add template parameter, inherit from it.
1415         * src/allocator.cc: Split this...
1416         * src/allocator-inst.cc: And this...
1417         * src/pool_allocator.cc: ...into this.
1418         * src/mt_allocator.cc: ... and this. Add definitions for
1419         __mt_base.
1420         * src/Makefile.am (sources): Split allocator.cc to
1421         pool_allocator.cc and mt_allocator.cc.
1422         * src/Makefile.in: Regenerate.
1423         * config/linker-map.gnu: Add symbols.
1424         * docs/html/ext/mt_allocator.html: Document new design.
1425         * testsuite/ext/mt_allocator/tune-1.cc: New.
1426         * testsuite/ext/mt_allocator/tune-2.cc: New.
1427         * testsuite/ext/mt_allocator/tune-3.cc: New.
1428         * testsuite/ext/mt_allocator/tune-4.cc: New.
1429
1430         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1431         * testsuite/ext/allocators.cc: Use check_new, split into...
1432         * testsuite/ext/mt_allocator/check_new.cc: this.
1433         * testsuite/ext/pool_allocator/check_new.cc: this.
1434         * testsuite/ext/malloc_allocator/check_new.cc: this.
1435         * testsuite/ext/debug_allocator/check_new.cc: this.
1436         * testsuite/ext/mt_allocator/instantiate.cc: this.
1437         * testsuite/ext/pool_allocator/instantiate.cc: this.
1438         * testsuite/ext/malloc_allocator/instantiate.cc: this.
1439         * testsuite/ext/debug_allocator/instantiate.cc: this.
1440
1441 2004-08-30  Phil Edwards  <phil@codesourcery.com>
1442
1443         * docs/html/install.html:  Update locales list (from Paolo).
1444         Remove other redundant information and point to the GCC install
1445         documentation.
1446
1447 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
1448
1449         * include/ext/pool_allocator.h: Rename __pool_base to
1450         __pool_alloc_base.
1451         * src/allocator.cc: Same.
1452         * config/linker-map.gnu: Same.
1453
1454 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
1455             Kenneth C. Schalk  <ken@xorian.net>
1456
1457         PR libstdc++/17215
1458         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1459         Check the return value of fclose/sync, loop on EINTR.
1460         (__basic_file<char>::sys_open): Likewise, for sync.
1461
1462 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
1463
1464         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1465         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1466         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1467         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1468         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1469
1470 2004-08-27  Jason Merrill  <jason@redhat.com>
1471
1472         PR c++/13684
1473         * libsupc++/guard.cc (static_mutex): Internal class implementing a
1474         recursive mutex which controls initialization of local statics.
1475         (__gnu_cxx::recursive_init): New exception class.
1476         (__cxa_guard_acquire): Deal with locking and recursion detection.
1477         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1478
1479 2004-08-27  Matthias Klose  <doko@debian.org>
1480
1481         * configure.host: For mips*-*-linux* update cpu_include_dir
1482         after atomicity_dir is set.
1483
1484 2004-08-27  Matthias Klose  <doko@debian.org>
1485
1486         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1487         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1488         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1489         mips*-*-linux*.
1490
1491 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
1492
1493         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1494         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1495         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1496         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1497         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1498
1499         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1500         formatting fixes.
1501         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1502         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1503         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1504         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1505
1506 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
1507
1508         PR libstdc++/17038 (partial)
1509         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1510         __maxlen to 128.
1511         * include/bits/locale_facets.h (class __timepunct): Add FIXME
1512         comment about _M_put.
1513         * config/locale/generic/time_members.cc (_M_put): Always null
1514         terminate __s.
1515         * config/locale/gnu/time_members.cc (_M_put): Likewise.
1516         * testsuite/22_locale/time_put/put/char/17038.cc: New.
1517         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1518
1519 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
1520
1521         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1522         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1523         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1524         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1525         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1526         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1527
1528         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1529         newlines.
1530         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1531
1532 2004-08-22  Matthias Klose  <doko@debian.org>
1533
1534         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1535         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1536
1537 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
1538
1539         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1540         * aclocal.m4: Regenerate with automake-1.9.1.
1541         * configure: Regenerate.
1542         * Makefile.in: Likewise.
1543         * include/Makefile.in: Likewise.
1544         * libmath/Makefile.in: Likewise.
1545         * libsupc++/Makefile.in: Likewise.
1546         * po/Makefile.in: Likewise.
1547         * src/Makefile.in: Likewise.
1548         * testsuite/Makefile.in: Likewise.
1549
1550 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
1551
1552         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1553         to a signed type, long according to the resolution of DR 359.
1554         * testsuite/22_locale/num_put/put/char/9.cc: New.
1555         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1556
1557         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1558         Simplify a bit: no need to clear showpos.
1559
1560 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1561
1562         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1563         unused.
1564
1565 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1566
1567         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1568         wchar_t type for the fill argument; minor formatting tweaks.
1569         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1570         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1571         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1572         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1573         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1574         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1575
1576 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1577
1578         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1579         with _M_word != _M_local_word two times, redundantly.
1580
1581 2004-08-20  Jason Merrill  <jason@redhat.com>
1582
1583         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1584         _GLIBCXX_ to #pragma lines.
1585         * include/Makefile.in: Update.
1586
1587 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1588
1589         PR libstdc++/7219 (continued)
1590         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1591         typedefs by default.
1592         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1593         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1594         line number.
1595         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1596
1597 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1598
1599         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1600         barrier to locking asm.
1601
1602 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1603
1604         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1605         actually the warning is a front-end bug (c++/17120).
1606
1607 2004-08-20  Matthias Klose  <doko@debian.org>
1608
1609         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1610
1611 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1612
1613         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1614         used as truth value warning.
1615
1616 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1617
1618         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1619         baseline.
1620
1621 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1622
1623         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1624
1625 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
1626
1627         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1628         timezone.
1629         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1630
1631 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1632
1633         * testsuite/performance/20_util/allocator/insert.cc: For std::map
1634         instantiate the allocator for a correct pair type.
1635         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1636         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1637         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1638         Likewise.
1639
1640         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1641         minor formatting fixes.
1642         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1643
1644 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1645
1646         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1647         results.
1648         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1649         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1650         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1651         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1652         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1653         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1654         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1655
1656 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1657
1658         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1659
1660 2004-08-18  Matthias Klose  <doko@debian.org>
1661
1662         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1663         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1664         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1665
1666 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
1667
1668         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1669
1670 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
1671
1672         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1673
1674 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
1675
1676         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1677
1678 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
1679
1680         * include/bits/indirect_array.h: Trivial formatting fixes.
1681         * include/bits/valarray_after.h: Likewise.
1682         * include/bits/valarray_array.h: Likewise.
1683         * src/valarray-inst.cc: Likewise.
1684
1685 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1686
1687         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1688         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1689         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1690
1691         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1692         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1693         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1694         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1695         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1696
1697 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1698
1699         * include/bits/deque.tcc: Trivial formatting fixes.
1700
1701 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1702
1703         * include/bits/deque.tcc: Trivial formatting fixes.
1704
1705         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1706         Remove unneded typedef.
1707
1708         * include/bits/locale_facets.tcc: Very minor tweaks.
1709
1710         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1711         type for the fill argument.
1712         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1713         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1714         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1715         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1716         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1717         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1718         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1719         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1720
1721 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
1722
1723         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1724         memmove is not needed, memcpy suffices.
1725
1726 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
1727
1728         * include/std/std_fstream.h (class basic_ifstream,
1729         class basic_ofstream, class basic_fstream): Add const overloads
1730         of is_open, as per DR 365 [WP].
1731         * docs/html/ext/howto.html: Add an entry for DR 365.
1732
1733 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
1734
1735         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1736
1737 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
1738
1739         PR libstdc++/16956
1740         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1741         to the returned value, reorganize a bit.
1742         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1743         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1744
1745         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1746         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1747         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1748         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1749
1750 2004-08-12  Paul Brook  <paul@codesourcery.com>
1751
1752         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1753         _GLIBCXX_CXA_VEC_CTOR_RETURN.
1754         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1755         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1756         __cxa_vec_ctor_return.
1757         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1758         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1759
1760 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
1761
1762         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1763         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1764         src/Makefile.in, testsuite/Makefile.in: Regenerate
1765
1766 2004-08-12  Jan Beulich  <jbeulich@novell.com>
1767
1768         * config/locale/generic/ctype_members.cc
1769         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1770         initializer for return value, as that is invalid for enumerated types.
1771         * config/locale/gnu/ctype_members.cc
1772         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1773
1774 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1775
1776         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1777
1778 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1779
1780         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1781         variable.
1782         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1783         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1784         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1785         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1786         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1787         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1788         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1789         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1790         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1791         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1792         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1793         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1794         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1795         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1796         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1797         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1798         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1799         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1800         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1801         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1802         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1803
1804 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1805             Petur Runolfsson  <peturr02@ru.is>
1806
1807         PR libstdc++/16959
1808         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1809         standard streams are constructed.
1810         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1811
1812 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
1813
1814         * include/bits/stl_bvector.h: Trivial formatting fixes.
1815
1816 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
1817
1818         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1819
1820 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
1821             Paolo Carlini  <pcarlini@suse.de>
1822
1823         * src/debug.cc (_Error_formatter::_M_print_string): In order
1824         to print individual words from __string, _M_format_word can't
1825         be called since may be just sprintf, thus ignoring completely
1826         __n: instead, use memmove and append '\0' by hand.
1827
1828 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
1829
1830         * config/locale/generic/c_locale.h (__convert_from_v): Don't
1831         use a default for __prec, assume __prec >= 0 and simplify.
1832         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1833         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1834         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1835
1836 2004-08-04  Phil Edwards  <phil@codesourcery.com>
1837
1838         * docs/html/configopts.html:  Emphasize that options change.
1839         * docs/html/17_intro/configury.html:  Update links.
1840
1841 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
1842
1843         * include/bits/list.tcc: Trivial formatting fixes.
1844
1845 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
1846
1847         * libsupc++/new_op.cc: Update comments.
1848         * libsupc++/del_op.cc: Likewise.
1849
1850 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
1851
1852         * libsupc++/cxxabi.h: Make all declarations have default
1853         visibility.
1854         * libsupc++/exception: Likewise.
1855         * libsupc++/new: Likewise.
1856         * libsupc++/typeinfo: Likewise.
1857         * libsupc++/unwind-cxx.h: Likewise.
1858         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1859         the __cxxabiv1 namespace.
1860         (__cxa_free_exception): Likewise.
1861         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1862         (__cxa_bad_typeid): Likewise.
1863         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1864         (__cxa_end_catch): Likewise.
1865         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1866         (__cxa_get_globals): Likewise.
1867         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1868         (__cxa_rethrow): Likewise.
1869         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1870         * libsupc++/eh_type.cc: Include <cxxabi.h>.
1871
1872         * Makefile.am (hosted_source): Add libmath and testsuite.
1873         (SUBDIRS): Remove them.
1874         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1875         on arm*-*-symbianelf*.
1876         * crossconfig.m4: Add arm*-*-symbianelf* support.
1877         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1878         when freestanding.  Do not bring names into std:: namespace with
1879         "using" when freestanding.  Declare required functions and macros
1880         when freestanding.
1881         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1882         when freestanding.
1883         * libsupc++/del_op.cc: Declare "free" only when freestanding.
1884         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1885         (malloc): Declare when freestanding.
1886         (free): Likewise.
1887         (memset): Likewise.
1888         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
1889         for memset.
1890         (__cxa_free_exception): Likewise for free.
1891         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1892         * libsupc++/pure.cc (writestr): Define to nothing when
1893         freestanding.
1894         * libsupc++/vterminate.cc: Do not define anything when
1895         freestanding.
1896         * Makefile.in: Regenerated.
1897         * aclocal.m4: Likewise.
1898         * configure: Likewise.
1899         * include/Makefile.in: Likewise.
1900         * libmath/Makefile.in: Likewise.
1901         * libsupc++/Makefile.in: Likewise.
1902         * po/Makefile.in: Likewise.
1903         * src/Makefile.in: Likewise.
1904         * testsuite/Makefile.in: Likewise.
1905
1906 2004-08-01  Matt Austern  <austern@apple.com>
1907
1908         PR libstdc++/16844
1909         * include/bits/stl_list.h (_M_create_node): Remove unused
1910         zero-argument version.
1911         * include/ext/slist (_M_create_node): Pass two arguments to
1912         allocator's construct() member function.
1913         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1914         * testsuite/23_containers/list/explicit_instantiation.cc: New.
1915         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1916         * testsuite/23_containers/map/explicit_instantiation.cc: New.
1917         * testsuite/23_containers/set/explicit_instantiation.cc: New.
1918         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1919         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1920         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1921         * testsuite/ext/slist_explicit_instantiation.cc: New.
1922
1923 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
1924
1925         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1926         num_get<>::_M_extract_int): In the main parsing loop delay the
1927         life of __q to the actual use point.
1928
1929 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1930
1931         PR libstdc++/14220
1932         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1933         Don't clip the precision passed down to __convert_from_v:
1934         22.2.2.2.2 nowhere says so.
1935         * testsuite/22_locale/num_put/put/char/14220.cc: New.
1936         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1937
1938 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1939
1940         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1941
1942 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1943             Petur Runolfsson  <peturr02@ru.is>
1944
1945         PR libstdc++/12658 (continued)
1946         * src/locale_init.cc (locale::locale, locale::global): Use
1947         a single locale_mutex instead of two separate mutexes.
1948
1949 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
1950
1951         PR libstdc++/16813
1952         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
1953         Fix typo.
1954         * testsuite/23_containers/map/insert/16813.cc: New.
1955
1956 2004-07-29  Phil Edwards  <phil@codesourcery.com>
1957
1958         * docs/html/faq/index.html:  Update version references.  Make
1959         clear that code from SGI has diverged greatly.  Remove references
1960         to library snapshots and what's-new sections.
1961         * docs/html/faq/index.txt:  Regenerate.
1962
1963 2004-07-28  Matt Austern  <austern@apple.com>
1964
1965         * include/bits/stl_construct.h (_Destroy): New three-argument
1966         overload that takes an allocator argument.  Another inline
1967         three-argument overload that takes std::allocator and dispatches
1968         to the two-argument version.
1969         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
1970         Change return type to void to match uninitialized_fill_n.
1971         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
1972         except that it takes an allocator and uses it for construct and
1973         destroy.  If the allocator is std::allocator, dispatches to
1974         uninitialized_copy.
1975         (__uninitialized_fill_a): Likewise.
1976         (__uninitialized_fill_n_a): Likewise.
1977         (__uninitialized_copy_copy): Give it an allocator argument.
1978         (__uninitialized_fill_copy): Likewise.
1979         (__uninitialized_copy_fill): Likewise.
1980         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
1981         and stl_uninitialized.h.  Replace use of single-argument _Construct
1982         and _Destroy with use of allocator's construct and destroy methods.
1983         * include/bits/list.tcc: Likewise.
1984         * include/bits/stl_deque.h: Likewise.
1985         * include/bits/stl_list.h: Likewise.
1986         * include/bits/stl_tree.h: Likewise.
1987         * include/bits/stl_vector.h: Likewise.
1988         * include/bits/vector.tcc: Likewise.
1989         * include/ext/hashtable.h: Use rebind so that allocator_type
1990         has correct type for a container's allocator.  Replace use of
1991         single-argument _Construct and _Destroy with use of allocator's
1992         construct and destroy methods.
1993         * include/ext/memory (__uninitialized_copy_n_a): New function.
1994         Like uninitialized_copy_n except that it takes an extra parameter,
1995         an allocator, and uses it for construct and destroy operations.
1996         * include/ext/rope: Use new forms defined in stl_construct.h,
1997         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
1998         _Construct and _Destroy with allocator construct and destroy methods.
1999         * include/ext/ropeimpl.h: Likewise.
2000         * include/ext/slist.h: Likewise.
2001         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
2002         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
2003         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
2004         * testsuite/23_containers/list/check_construct_destroy.cc: New.
2005         * testsuite/23_containers/set/check_construct_destroy.cc: New.
2006         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
2007         * testsuite/ext/hash_check_construct_destroy.cc: New.
2008         * testsuite/ext/slist_check_construct_destroy.cc: New.
2009
2010 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
2011
2012         2003-10-01  Eric Christopher  <echristo@redhat.com>
2013         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
2014         constraint.
2015         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
2016         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
2017
2018 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
2019
2020         PR libstdc++/16678
2021         * include/bits/locale_facets.tcc: Fix for -Werror.
2022
2023 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
2024
2025         * docs/html/debug.html: Say debug mode only available since 3.4.0.
2026
2027 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
2028
2029         * docs/doxygen/mainpage.html: Clarify links.
2030         * docs/doxygen/stdheader.cc: Add files.
2031         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
2032         * docs/doxygen/user.cfg.in: New options, wrap.
2033
2034 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
2035
2036         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
2037
2038 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
2039
2040         PR libstdc++/15488
2041         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
2042
2043 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
2044
2045         PR bootstrap/16469
2046         * scripts/create_testsuite_files: Pass -print to find.
2047
2048 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
2049
2050         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
2051         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
2052
2053 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
2054
2055         PR libstdc++/14697
2056         * acinclude.m4 (glibcxx_shared_libgcc): Correct
2057         glibcxx_shared_libgcc test for multilibs.
2058         * configure: Rebuilt.
2059
2060 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
2061
2062         PR libstdc++/16505
2063         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
2064         the signature to return void, as per 20.4.4.3.
2065         * include/bits/stl_vector.h (vector::vector(size_type,
2066         const value_type&, const allocator_type&), vector::vector(size_type),
2067         vector::_M_initialize_dispatch): Adjust callers.
2068         * include/bits/vector.tcc (vector<>::_M_fill_assign,
2069         vector<>::_M_fill_insert): Likewise.
2070         * testsuite/20_util/memory/16505.cc: New.
2071
2072 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
2073
2074         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
2075         12658_thread-2.cc: Use __gnu_test::try_named_locale.
2076
2077 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
2078
2079         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
2080         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
2081         (__mt_alloc::_S_set_options): Same.
2082         Add to comments.
2083
2084 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
2085
2086         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
2087         for linux.
2088         * configure: Regenerated.
2089
2090 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
2091
2092         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
2093         to 12658_thread-1.cc and xfail.
2094         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
2095         simpler version of 12658_thread-1.cc, still failing on 3_3 and
2096         not failing on 3_4/mainline - both on single processor and
2097         multiprocessor machines.
2098
2099 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
2100
2101         * docs/html/abi.html: Remove non-public qualification.
2102
2103         * include/bits/concurrence.h: Tweak comments.
2104
2105 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
2106
2107         Add wchar_t counterparts of the basic_streambbuf<char> tests.
2108         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
2109         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
2110         Likewise.
2111         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
2112         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
2113         3599.cc: Likewise.
2114         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
2115         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
2116         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
2117         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
2118         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
2119         Likewise.
2120         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
2121
2122         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
2123         tweaks.
2124         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
2125         Likewise.
2126         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
2127         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
2128
2129 2004-07-11  Phil Edwards  <phil@codesourcery.com>
2130
2131         * acinclude.m4:  Cosmetic shell syntax fixes.
2132         * configure.ac:  Bring comment inline with reality.
2133         * configure.host:  Both of the above.  Move 'arm' case to right
2134         place in host_cpu switch.
2135         * aclocal.m4, configure:  Regenerate.
2136
2137 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
2138
2139         Add wchar_t counterparts of the basic_stringbuf<char> tests.
2140         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
2141         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
2142         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
2143         3599.cc, 9988.cc: Likewise.
2144         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
2145         Likewise.
2146         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
2147         Likewise.
2148         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
2149         Likewise.
2150         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
2151         Likewise.
2152         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
2153         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
2154         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
2155         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2156         Likewise.
2157         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2158         9404-1.cc: Likewise.
2159         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2160         9404-2.cc: Likewise.
2161         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2162         3955.cc: Likewise.
2163         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2164         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2165
2166 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
2167
2168         * include/bits/gslice.h: Trivial formatting fixes.
2169         * include/bits/gslice_array.h: Likewise.
2170         * include/bits/indirect_array.h: Likewise.
2171         * include/bits/mask_array.h: Likewise.
2172         * include/bits/slice_array.h: Likewise.
2173         * include/bits/valarray_after.h: Likewise.
2174         * include/bits/valarray_array.h: Likewise.
2175         * include/bits/valarray_before.h: Likewise.
2176         * include/std/std_valarray.h: Likewise.
2177
2178 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2179
2180         PR c++/16169
2181         * include/bits/basic_string.h (basic_string::operator=): Revert.
2182
2183 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
2184
2185         * configure.ac (libtool_VERSION): To 6:2:0.
2186         * configure: Regenerated.
2187
2188         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2189
2190 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
2191
2192         PR libstdc++/16411
2193         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2194
2195 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
2196
2197         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2198         -Weffc++ issues.
2199
2200 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
2201
2202         PR libstdc++/16401
2203         * include/bits/sstream.tcc (overflow): When reallocating _M_string
2204         use an exponential grow policy.
2205         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2206         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2207
2208 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
2209
2210         PR libstdc++/15928
2211         * crossconfig.m4: Add in bits for djgpp.
2212         * configure: Regenerate.
2213
2214 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
2215
2216         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2217         instantiation of set and multiset (functor param given as int).
2218
2219 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
2220
2221         * include/bits/basic_string.h: Trivial formatting fixes and/or
2222         const-ification of some variables.
2223         * include/bits/deque.tcc: Likewise.
2224         * include/bits/stl_algobase.h: Likewise.
2225         * include/bits/stl_bvector.h: Likewise.
2226         * include/bits/stl_construct.h: Likewise.
2227         * include/bits/stl_deque.h: Likewise.
2228         * include/bits/stl_pair.h: Likewise.
2229         * include/bits/stl_vector.h: Likewise.
2230         * include/bits/vector.tcc: Likewise.
2231
2232 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
2233
2234         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2235         systems with no COMDAT or weak support.
2236         * testsuite/25_algorithms/copy/2.cc: Likewise.
2237         * testsuite/25_algorithms/copy/3.cc: Likewise.
2238         * testsuite/25_algorithms/copy/4.cc: Likewise.
2239
2240 2004-07-03  Paul Brook  <paul@codesourcery.com>
2241
2242         * configure.ac: Set ABI_TWEAKS_SRCDIR.
2243         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
2244         setting atomicity_dir.  Override type_cpu for arm based targets.
2245         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2246         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2247         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2248         * libsupc++/vec.cc: Ditto.
2249         * config/cpu/arm/cxxabi_tweaks.h: New file.
2250         * config/cpu/generic/cxxabi_tweaks.h: New file.
2251         * */Makefile.in: Regenerate.
2252         * configure: Regenerate.
2253
2254 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
2255
2256         * include/bits/type_traits.h (_Is_normal_iterator): Move...
2257         * include/bits/cpp_type_traits.h: ... here, renamed to
2258         __is_normal_iterator and consistent with the other traits.
2259         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2260         to the struct __copy_normal and three specializations.
2261         (__copy_backward_output_normal_iterator,
2262         __copy_backward_input_normal_iterator): Likewise, convert to
2263         the struct __copy_backward_normal and three specializations.
2264         (copy, copy_backward): Use the latter.
2265         (__copy_aux, __copy_backward_aux): Very minor tweaks.
2266
2267 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
2268
2269         * include/bits/stl_algobase.h (__copy_trivial): Remove.
2270         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2271         __is_trivially_copyable, __are_same and __copy::copy.
2272         (__copy): Rewrite as a class template and two specializations.
2273         (__copy_ni2): Simplify, just call __copy_aux.
2274
2275         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2276         check.
2277         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2278         for destination value type != source value type.
2279
2280 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
2281             Per Bothner  <per@bothner.com>
2282             Mohan Embar  <gnustuff@thisiscool.com>
2283
2284         PR libstdc++/16248
2285         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2286         (__glibcxx_mutex): Encapsulate mutex init function into type for
2287         threaded configurations without __GTHREAD_MUTEX_INIT.
2288         (lock::lock): Make device member a reference.
2289         (lock::~lock): Same.
2290         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2291         to mutex_type.
2292         * src/allocator.cc: Same.
2293
2294 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
2295
2296         * include/ext/mt_allocator.h: Handle allocations at static
2297         initialization that happen before _S_options is (automatically)
2298         constructed; set _S_init even if _M_force_new is true.
2299
2300 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2301
2302         * config/linker-map.gnu: Revert new exports.
2303
2304 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2305             Stuart Anderson  <anderson@netsweng.com>
2306
2307         * config/linker-map.gnu: Add destructor exports for abstract base
2308         classes to conform to LSB.
2309
2310 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2311             Paolo Carlini  <pcarlini@suse.de>
2312
2313         * include/bits/cpp_type_traits.h: Add __is_pointer and
2314         __is_trivially_copyable.
2315         * include/bits/stl_algobase.h (fill, fill_n): Slightly
2316         tweak to use the latter.
2317         (__copy_backward_dispatch): Remove.
2318         (__copy_backward_aux): Rewrite to use __is_pointer and
2319         __is_trivially_copyable and __copy_backward::copy_b.
2320         (__copy_backward): Rewrite as a class template and two
2321         specializations.
2322
2323 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
2324
2325         * testsuite/25_algorithms/copy.cc: Move to...
2326         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2327         * testsuite/25_algorithms/copy/2.cc: New.
2328         * testsuite/25_algorithms/copy/3.cc: New.
2329         * testsuite/25_algorithms/copy/4.cc: New.
2330
2331 2004-06-29  Paul Brook  <paul@codesourcery.com>
2332
2333         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2334         element size in the cookie.
2335
2336 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2337
2338         * include/bits/cpp_type_traits.h: Move the additions to
2339         namespace __gnu_internal outside of namespace std; trivial
2340         formatting fixes.
2341
2342 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
2343
2344         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2345         Revert -Weffc++ changes that defined copy ctory and or assignment
2346         operator.
2347         * libsupc++/tinfo.cc (__upcast_result): Same.
2348
2349 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2350
2351         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2352         the algorithm used to name the categories.
2353
2354 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
2355
2356         * include/Makefile.am: Give a .gch extension to
2357         the PCH files, not only to the directory.
2358         * include/Makefile.in: Regenerate.
2359
2360 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2361
2362         * config/locale/gnu/monetary_members.cc
2363         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2364         assignments of _M_decimal_point and _M_thousands_sep.
2365
2366 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2367
2368         * docs/html/17_intro/contribute.html: Update some links.
2369         * docs/html/17_intro/porting-howto.html: Likewise.
2370         * docs/html/17_intro/porting-howto.xml: Likewise.
2371         * docs/html/18_support/howto.html: Likewise.
2372         * docs/html/21_strings/howto.html: Likewise.
2373         * docs/html/27_io/howto.html: Likewise.
2374         * docs/html/configopts.html: Likewise.
2375         * docs/html/ext/howto.html: Likewise.
2376         * docs/html/faq/index.html: Likewise.
2377         * docs/html/install.html: Don't mention 2.x compilers.
2378
2379 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2380
2381         * include/ext/rope: Trivial formatting fixes.
2382         * include/ext/ropeimpl.h: Likewise.
2383
2384 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
2385
2386         PR libstdc++/16210
2387         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2388         availability of strto(u)ll, not used anymore in the iostreams.
2389         * configure: Regenerate.
2390
2391 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2392
2393         PR libstdc++/16182
2394         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2395         AC_DEFINE_UNQUOTED.
2396         * configure: Regenerate.
2397
2398 2004-06-25  Paul Brook  <paul@codesourcery.com>
2399
2400         * libsupc++/cxxabi.h: Define __ARM_EABI__
2401         (__guard): Use it.
2402         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2403
2404 2004-06-25  Paul Brook  <paul@codesourcery.com>
2405
2406         * include/bits/concurrence.h: Still create mutex object when
2407         single-threaded.
2408
2409 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2410
2411         * include/bits/stl_algobase.h (fill, fill_n): Revert last
2412         change: actually we need to copy construct an object of type
2413         _Tp, not of type iterator_traits<>::value_type, therefore the
2414         code is ok.
2415
2416 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2417
2418         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2419         dispatch: use iterator_traits<>::value_type, not _Tp.
2420
2421 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2422
2423         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2424         * testsuite/25_algorithms/fill/2.cc: Likewise.
2425
2426 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
2427             Paolo Carlini  <pcarlini@suse.de>
2428
2429         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2430         for fill and fill_n, respectively: when copying is cheap, use a
2431         temporary to avoid a memory read in each iteration.
2432
2433 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2434
2435         * testsuite/25_algorithms/fill/1.cc: New.
2436         * testsuite/25_algorithms/fill/2.cc: Likewise.
2437
2438 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2439
2440         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2441         Remove copy constructor and assignment operator.
2442
2443 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2444
2445         * include/bits/concurrence.h (__gnu_cxx::lock): New.
2446         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2447         (__pool_base::_M_get_mutex): New.
2448         * include/bits/allocator.h: Tweak.
2449         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2450         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2451         * include/bits/stl_threads.h: Remove.
2452         * include/Makefile.am: Also here.
2453         * include/Makefile.in: Regenerate.
2454
2455         * src/locale_init.cc: Use __gnu_cxx::lock.
2456
2457         * src/allocator.cc: Move all instantiations...
2458         * src/allocator-inst.cc: ...here.
2459
2460 2004-06-23  Andrew Pinski  <apinski@apple.com>
2461
2462         * linkage.m4: Remove check for libmx.
2463         * configure: Regenerate.
2464
2465 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
2466
2467         PR libstdc++/16154
2468         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2469         Don't require the _DefaultConstructibleConcept.
2470         (struct _ForwardIteratorConcept): Require it here.
2471
2472 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2473
2474         * include/bits/istream.tcc (getline): Make sure arguments passed
2475         to min/max have the same type.
2476         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2477         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2478
2479 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
2480
2481         * docs/html/abi.html: Update links.
2482
2483 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2484
2485         * testsuite/26_numerics/complex_inserters_extractors.cc,
2486         complex_value.cc, buggy_complex.cc: Move to...
2487         * testsuite/26_numerics/complex/: ... here.
2488         * testsuite/26_numerics/c99_classification_macros_c++.cc,
2489         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2490         fabs_inline.cc: Move to...
2491         * testsuite/26_numerics/cmath/: ... here.
2492         * testsuite/26_numerics/binary_closure.cc, slice.cc,
2493         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2494         valarray_name_lookup.cc, valarray_operators.cc,
2495         valarray_subset_assignment.cc: Move to...
2496         * testsuite/26_numerics/valarray/: ... here (new dir).
2497         * testsuite/26_numerics/sum_diff.cc: Move to...
2498         * testsuite/26_numerics/numeric/: ... here (new dir).
2499
2500 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2501
2502         * include/std/std_istream.h (ignore(streamsize __n = 1,
2503         int_type __delim = traits_type::eof())): Split into...
2504         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2505         int_type __delim)): The first two can be much more simpler
2506         and efficient than the fully general case; also, the last
2507         two can take advantage of the same mechanism already used
2508         for getline.
2509         * include/bits/istream.tcc (ignore(streamsize __n = 1,
2510         int_type __delim = traits_type::eof()): Remove.
2511         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2512         int_type __delim)): New.
2513
2514 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
2515
2516         * config/linker-map.gnu: Use wildcards for
2517         __basic_file::sys_open(FILE*, _Ios_Openmode).
2518
2519 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
2520
2521         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2522
2523 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2524
2525         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2526         the alignment requested.
2527         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2528         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2529         (__mt_alloc<>::deallocate): Likewise.
2530
2531 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2532
2533         PR libstdc++/16020
2534         * include/debug/safe_base.h
2535         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2536         _Safe_sequence_base::operator=): Provide definitions.
2537         * testsuite/23_containers/bitset/cons/16020.cc: New.
2538
2539 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
2540
2541         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2542         (__pool_base): Remove unused template parameter.  Add
2543         protected. Move lock data into __pool_base::_Lock. Remove static
2544         on member functions.
2545         (__pool_base::_M_get_free_list): New.
2546         (__pool_alloc): Move _S_force new here.
2547         * src/allocator.cc: Move out of line __pool_base definitions here.
2548         * config/linker-map.gnu: Export bits from __pool_base.
2549
2550 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2551
2552         * config/locale/gnu/numeric_members.cc
2553         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2554         assignments of _M_decimal_point and _M_thousands_sep.
2555         * config/locale/gnu/time_members.cc
2556         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2557         and reformat assignments of date and time fields.
2558
2559 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2560
2561         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2562         to use _Data_allocate.
2563         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2564         (rope<>::_S_substring): Likewise.
2565         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2566         (rope<>::c_str()): Likewise.
2567         (rope<>::replace_with_c_str()): Likewise.
2568
2569         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2570         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2571         not _RopeRep.
2572         (_Rope_iterator_base<>::_S_setcache): Likewise.
2573         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2574         (rope<>::_S_substring): Likewise.
2575         (rope<>::_S_dump): Likewise.
2576         (rope<>::_S_fetch_ptr): Likewise.
2577         (rope<>::_S_compare): Likewise.
2578         (rope<>::replace_with_c_str()): Likewise.
2579
2580         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2581         * testsuite/ext/rope/2.cc: New.
2582
2583 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2584             Matt Austern  <austern@apple.com>
2585
2586         * testsuite/ext/rope/3.cc: New.
2587
2588 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2589
2590         * acinclude.m4: Remove useless multilib configury.
2591         * Makefile.am: Remove useless multilib rules.
2592         * aclocal.m4: Regenerate.
2593         * Makefile.in: Regenerate.
2594         * configure: Regenerate.
2595
2596 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
2597
2598         * include/ext/hashtable.h: Trivial formatting fixes.
2599         * include/ext/rb_tree: Likewise.
2600
2601 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2602
2603         * include/ext/hash_map: Trivial formatting fixes.
2604         * include/ext/hash_set: Likewise.
2605         * include/ext/memory: Likewise.
2606         * include/ext/numeric: Likewise.
2607
2608 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
2609
2610         * Makefile.in: Regenerate with automake 1.8.5.
2611         * aclocal.m4: Same.
2612         * include/Makefile.in: Same.
2613         * libmath/Makefile.in: Same.
2614         * libsupc++/Makefile.in: Same.
2615         * po/Makefile.in: Same.
2616         * src/Makefile.in: Same.
2617         * testsuite/Makefile.in: Same.
2618
2619 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2620
2621         * include/ext/slist: Trivial formatting fixes.
2622
2623 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2624
2625         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2626         Don't use the 'magic number' 10 in the computation of __minlen;
2627         never access __name past __minlen; in the loop over __i3, don't
2628         decrease __nmatches and increase __i3 at once, only either of
2629         the two; tidy.
2630
2631 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
2632
2633         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2634         time_get<>::do_get_date): Use only once _M_extract_via_format,
2635         instead of going through "%X"/"%x" and calling it two times
2636         (+ using widen).
2637
2638 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
2639
2640         * include/ext/algorithm: Trivial formatting fixes.
2641         * include/ext/functional: Likewise.
2642         * include/ext/hash_fun.h: Likewise.
2643         * include/ext/iterator: Likewise.
2644
2645 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
2646
2647         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2648         size_type)): Reimplement using std::search.
2649         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2650
2651 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
2652
2653         * testsuite/performance/21_strings/string_find.cc: New.
2654
2655 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
2656
2657         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2658
2659 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
2660
2661         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2662         this function return a value.
2663
2664 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
2665
2666         PR libstdc++/15775
2667         * include/bits/stl_deque.h: Consistently with stl_set.h, define
2668         pointer as allocator's pointer, likewise for reference,
2669         const_pointer, and const_reference.
2670         * include/bits/stl_list.h: Likewise.
2671         * include/bits/stl_map.h: Likewise.
2672         * include/bits/stl_multimap.h: Likewise.
2673         * include/bits/stl_vector.h: Likewise.
2674
2675 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
2676
2677         * crossconfig.m4: Remove signbit, signbitf, signbitl.
2678         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
2679         builtin math functions instead of AC_DEFINE_UNQUOTED.
2680         * configure: Regenerate.
2681
2682 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
2683
2684         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2685         * docs/doxygen/mainpage.html: Remove links.
2686
2687 2004-06-08  Jason Merrill  <jason@redhat.com>
2688
2689         * config/linker-map.gnu: Use wildcards for
2690         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2691
2692 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
2693
2694         * include/ext/pool_allocator.h: Convert to a global free-list,
2695         as per the original SGI/HP design: move the implementation
2696         details to struct __pool_base, from which __pool_alloc derives.
2697         * src/allocator.cc: Instantiate __pool_base.
2698
2699 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
2700             Paolo Carlini  <pcarlini@suse.de>
2701
2702         * testsuite/testsuite_performance.h
2703         (resource_counter::allocated_memory): Make it return the right
2704         number of bytes requested by the allocators/application. This is
2705         the sbrk+mmaped memory.
2706
2707 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2708
2709         * include/std/std_complex.h (log): Tidy.
2710
2711 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
2712
2713         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2714         * testsuite/testsuite_abi.cc: Same.
2715         * configure.ac (libtool_VERSION): Bump to 6:1:0.
2716         * configure: Regenerate.
2717         * aclocal.m4: Regenerate.
2718
2719 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2720
2721         * include/std/std_complex.h (complex<_Tp>): Properly indent
2722         to follow C++STYLE.
2723         (complex<>::__rep): New.
2724         (__complex_abs): New.  Dispatch to built-ins.
2725         (abs): Use them.
2726         (__complex_arg): New. Dispatch to built-ins.
2727         (arg): Use it.
2728         (__complex_cos): New. Dispatch to built-ins.
2729         (cos): Use it.
2730         (__complex_cosh): New. Dispatch to built-ins.
2731         (cosh): Use it.
2732         (__complex_exp): New. Dispatch to built-ins.
2733         (exp): Use it.
2734         (__complex_log): New. Dispatch to built-ins.
2735         (log): Use it.
2736         (__complex_sin): New. Dispatch to built-ins.
2737         (sin): Use it.
2738         (__complex_sinh): New. Dispatch to built-ins.
2739         (sinh): Use it.
2740         (__complex_sqrt): New. Dispatch to built-ins.
2741         (sqrt): Use it.
2742         (__complex_tan): New. Dispatch to built-ins.
2743         (tan): Use it.
2744         (__complex_tanh): New. Dispatch to built-ins.
2745         (tanh): Use it.
2746         (__complex_pow): New. Dispatch to built-ins.
2747         (pow): Use it.
2748
2749 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
2750             Benjamin Kosnik  <bkoz@redhat.com>
2751
2752         PR libstdc++/14600
2753         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2754         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2755         * config/io/basic_file_stdio.cc (__basic_file::file): New.
2756         * config/io/basic_file_stdio.h: Define.
2757
2758 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
2759
2760         PR libstdc++/15675
2761         * docs/html/documentation.html: Update doxygen links for 3.4.0.
2762
2763 2004-05-27  Jan Beulich  <jbeulich@novell.com>
2764
2765         * scripts/create_testsuite_files: Tweak.
2766
2767 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
2768
2769         PR libstdc++/15489
2770         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2771         bits to do the same thing.
2772
2773 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
2774
2775         * include/bits/istream.tcc (ignore): Correctly deal with
2776         n == numeric_limits<streamsize>::max().
2777         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2778
2779         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2780         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2781         __n == numeric_limits<>::min().
2782
2783         * include/bits/istream.tcc: Minor tweaks.
2784
2785         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2786         Tighten.
2787         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2788         Likewise.
2789         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2790         Likewise.
2791         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2792         Likewise.
2793         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2794
2795 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2796
2797         PR libstdc++/12854
2798         Fixups for -Weffc++.
2799         * include/bits/basic_string.h (basic_string::operator=): Return
2800         pointer to this instead of result of assign. Although redundant,
2801         this doesn't impact resultant codegen.
2802
2803         * include/bits/locale_facets.h (__numpunct_cache): Declare
2804         assignment opxserator and copy constructor private.
2805         (__timepunct_cache): Same.
2806         (__moneypunct_cache): Same.
2807         (collate): Use member initialization list for _M_c_locale_collate.
2808         * config/locale/gnu/messages_members.h: Same.
2809         * config/locale/gnu/time_members.h (__timepunct): Same.
2810         * src/codecvt.cc: Use member initialization list to initialize
2811         _M_c_locale_codecvt.
2812         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2813         * config/os/gnu-linux/ctype_noninline.h: Same.
2814         * src/locale.cc (_Impl): Same.
2815         * src/locale_init.cc: Same.
2816         * src/localename.cc: Same.
2817
2818         * include/bits/basic_ios.h (basic_ios): Complete member
2819         initialization list.
2820         * include/bits/istream.tcc (basic_istream::sentry): Same.
2821         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2822         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2823         _M_pback to member initialization list.
2824         * include/std/std_streambuf.h: Same.
2825         * include/std/std_sstream.h: Same, for _M_mode.
2826         * src/ios.cc (ios_base): Same.
2827
2828         * include/ext/rope: Make derived classes match exception
2829
2830          specifications. Add copy constructors and assignment operators.
2831
2832         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2833         constructor and assignment operator protected.
2834         (_Safe_iterator_base): Same.
2835         * include/debug/formatter.h (_Error_formatter): Define copy
2836         constructor and assignment operator.
2837
2838         * include/backward/strstream: Declare assignment operator and copy
2839         constructor private.
2840
2841 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2842
2843         * testsuite/testsuite_hooks.h (func_callback): Declare copy
2844         constructor and assignment operator private.
2845         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2846         exception specifications of base class.
2847         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2848         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2849         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2850
2851 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2852
2853         * libsupc++/cxxabi.h: Remove duplicated and useless public and
2854         private keywords in class declarations. Format. Use
2855         stddef.h. Expose declarations to "C" compilation.
2856         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2857         assignment operator.
2858         (__dyncast_result): Same.
2859         * libsupc++/vec.cc (uncatch_exception): Same, use member
2860         initialization list.
2861
2862 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2863
2864         * testsuite/abi_check.cc: Add unistd.h.
2865
2866 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
2867
2868         PR libstdc++/15565
2869         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2870         __int_to_char(unsigned long long)): Showpos is not relevant
2871         for unsigned types.
2872         * testsuite/22_locale/num_put/put/char/15565.cc: New.
2873         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2874
2875         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2876         char.
2877         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2878         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2879         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2880         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2881         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2882         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2883
2884 2004-05-21  Matthias Klose  <doko@debian.org>
2885
2886         * docs/doxygen/run_doxygen:  Bump required version.
2887
2888 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
2889
2890         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2891         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2892
2893 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
2894
2895         * include/bits/istream.tcc (ignore): Remove redundant line.
2896         (readsome): Tidy, closely following 27.6.1.3, p30.
2897
2898 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
2899
2900         * include/bits/istream.tcc (operator>>(basic_istream<>&,
2901         basic_string<>&)): Use a temporary buffer, thus avoiding
2902         reallocation for common case.
2903         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2904         New.
2905         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2906         Likewise.
2907
2908         * include/bits/istream.tcc: Const-ification of a few variables.
2909
2910         * include/bits/ostream.tcc: Trivial formatting fixes and
2911         const-ification of some variables.
2912
2913 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
2914
2915         PR libstdc++/15123
2916         PR libstdc++/13928
2917         * docs/doxygen/Intro.3: Remove Allocators.3.
2918         Add new extension headers, extension namespace list.
2919         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2920         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2921         __gnu_debug::. Remove __policy_ renames.
2922         * docs/doxygen/guide.html: Add dot note.
2923         * docs/doxygen/stdheader.cc: Edit, add files.
2924         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2925
2926 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2927
2928         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2929
2930 2004-05-18  Jan Beulich  <jbeulich@novell.com>
2931
2932         PR libstdc++/15489
2933         * scripts/create_testsuite_files: Also find source files through
2934         symbolic links.
2935
2936 2004-05-18  Jan Beulich  <jbeulich@novell.com>
2937
2938         PR libstdc++/15488
2939         * testsuite/lib/libstdc++.exp: Make test files writable.
2940
2941 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
2942
2943         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2944         tweaks.
2945
2946 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
2947
2948         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2949         allocation loop which removes blocks from the global free list
2950         from O(N) to O(1) when the required blocks are <= the number
2951         available.
2952
2953 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
2954
2955         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
2956
2957 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
2958
2959         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
2960         * testsuite/23_containers/deque/14340.cc: New.
2961         * testsuite/23_containers/list/14340.cc: New.
2962         * testsuite/23_containers/map/14340.cc: New.
2963         * testsuite/23_containers/multimap/14340.cc: New.
2964         * testsuite/23_containers/multiset/14340.cc: New.
2965         * testsuite/23_containers/set/14340.cc: New.
2966         * testsuite/23_containers/vector/14340.cc: New.
2967
2968 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
2969
2970         PR libstdc++/14340
2971         * include/debug/safe_iterator.h (_Safe_iterator converting
2972         constructor): Only allow declaration to instantiate when the
2973         incoming _Safe_iterator has exactly the right iterator type.
2974
2975 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
2976
2977         * include/bits/boost_concept_check.h: Fix old attribute syntax.
2978         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
2979         to pass concept-checks.
2980         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2981         * testsuite/23_containers/set/modifiers/swap.cc: Same.
2982         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2983
2984 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2985
2986         * include/std/std_bitset.h: Minor formatting fixes.
2987
2988 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
2989
2990         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2991         Consistently update __bin._M_free[0].
2992         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
2993         __bin._M_free[0] to simplify the while loop (i.e., the number
2994         of iterations becomes known at the outset).
2995
2996 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
2997
2998         * include/std/std_bitset.h: Trivial formatting fixes.
2999
3000 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
3001             Ivan Godard  <igodard@pacbell.net>
3002
3003         PR libstdc++/15361
3004         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
3005         * testsuite/23_containers/bitset/ext/15361.cc: New.
3006
3007 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3008
3009         PR libstdc++/15046
3010         * crossconfig.m4: Add C99 math bits for linux crosses.
3011         * configure: Regenerate.
3012
3013 2004-05-13  Simon Marshall <simon.marshall@misys.com>
3014             Benjamin Kosnik  <bkoz@redhat.com>
3015
3016         PR libstdc++/15090
3017         * include/bits/locale_facets.h: Fix for -fno-for-scope.
3018         * include/debug/safe_sequence.h: Same.
3019         * include/debug/safe_iterator.tcc: Same.
3020         * src/debug.cc: Same.
3021         * src/locale.cc: Same.
3022         * src/locale_init.cc: Same.
3023         * src/localename.cc: Same.
3024         * config/locale/gnu/ctype_members.cc: Same.
3025         * config/locale/gnu/numeric_members.cc: Same.
3026         * testsuite/testsuite_abi.cc: Same.
3027         * testsuite/testsuite_hooks.cc: Same.
3028
3029 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
3030
3031         * docs/html/abi.html: Document effect of -fabi-version on value
3032         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
3033         Fix markup.
3034
3035 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3036
3037         PR libstdc++/15074
3038         * docs/html/faq/index.html: Update docs for libsupc++ usage.
3039
3040 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3041
3042         PR libstdc++/15412
3043         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
3044         __gnu_internal.
3045         (_GLIBCXX_mutex_address): Same.
3046         (_GLIBCXX_once): Same.
3047         (_GLIBCXX_mutex_init): Same.
3048         (_GLIBCXX_mutex_address_init): Same.
3049
3050 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3051
3052         * docs/html/abi.html: New.
3053         * docs/html/abi.txt: Remove.
3054         * docs/html/documentation.html: Add link.
3055         * testsuite/Makefile.am: Add files.
3056         * testsuite/Makefile.in: Regenerated.
3057         * testsuite/abi_check.cc: Move and modify code into...
3058         * testsuite/testsuite_abi.cc: Add.
3059         * testsuite/testsuite_abi.h: Add.
3060
3061         * docs/html/17_intro/TODO: Update.
3062         * include/bits/stl_pair.h: Format.
3063
3064 2004-05-06  Matthias Klose  <doko@debian.org>
3065
3066         * include/backward/iterator.h:  Add GPL copyright info,
3067         with exception clause.
3068         * include/bits/boost_concept_check.h: Likewise.
3069         * include
3070         * libsupc++/tinfo.h: Likewise.
3071         * po/string_literals.cc: Likewise.
3072
3073 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
3074
3075         * acinclude.m4: Replace -W with more speaking -Wextra.
3076         * configure: Rebuilt.
3077
3078 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
3079
3080         Optimize locale::_M_impl->_M_names for the most common cases:
3081         !_M_names[0] means unnamed; !_M_names[1] means all the categories
3082         the same name (_M_names[0] && _M_names[1] means that the full set
3083         of _M_names must be processed, the general case).
3084         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
3085         Tweak, saving work when !_M_names[1].
3086         (locale::locale(const locale&, _Facet*): Simplify: now just setting
3087         _M_names[0] = 0 means unnamed.
3088         * src/locale.cc (locale::operator==): Deal first with the common,
3089         easy cases, otherwise fall back to locale::name().
3090         (locale::name()): Tweak, if !_M_names[0] just return "*".
3091         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
3092         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
3093         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
3094         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
3095         Simplify when !std::strchr, just updating _M_names[0]; clean up.
3096         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
3097         for the general case (full set of names), then do the usual work;
3098         clean up.
3099
3100         * src/locale.cc (locale::name()): Reserve space in __ret.
3101         * src/locale_init.cc (locale::global(const locale&)): Save
3102         the name in a temporary.
3103         * src/localename.cc (locale::locale(const char*)): Reserve space
3104         in __str.
3105
3106 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
3107
3108         * src/locale.cc (locale::operator==): Always avoid constructing
3109         locale::name(), directly compare pairs of _M_names.
3110
3111 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
3112
3113         * include/bits/istream.tcc: Fix comment.
3114
3115 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
3116
3117         * include/bits/stl_vector.h: Trivial formatting fixes.
3118         * include/bits/vector.tcc: Likewise.
3119
3120 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
3121
3122         PR libstdc++/15002 (continued again)
3123         * include/bits/istream.tcc (getline(basic_istream<>&,
3124         basic_string<>&, _CharT)): Use a temporary buffer, thus
3125         avoiding reallocation for common case.
3126
3127         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3128         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
3129         of temporary buffer to a power of two.
3130
3131         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
3132
3133 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
3134
3135         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3136         New.
3137         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3138         Likewise.
3139         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3140
3141 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
3142             Petur Runolfsson  <peturr02@ru.is>
3143
3144         PR libstdc++/15002 (continued)
3145         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
3146         streamsize, char_type)): Use traits::find/copy in a loop to speed
3147         up greatly the function in the common case (I/O buffer size >> 1).
3148
3149 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
3150
3151         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
3152
3153         * include/bits/istream.tcc (getline(basic_istream<>&,
3154         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
3155         of sbumpc(), consistently with the other functions, thus also
3156         dealing correctly with the case of exceeded string::max_size().
3157
3158 2004-04-24  Matthias Klose  <doko@debian.org>
3159
3160         Jonathan Wakely  <cow@compsoc.man.ac.uk>
3161         * docs/html/configopts.html: Fix reference to allocator config option.
3162
3163 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
3164
3165         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3166         * configure: Regenerate.
3167
3168 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
3169
3170         PR libstdc++/15047, libstdc++/11610
3171         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3172         (libstdc++_init): Don't pass outdir to v3-copy-files.
3173
3174 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
3175
3176         * include/bits/deque.tcc: Trivial formatting fixes.
3177         * include/bits/stl_deque.h: Likewise.
3178         * include/bits/stl_list.h: Likewise.
3179         * include/bits/stl_tree.h: Likewise.
3180
3181 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
3182             Andrew Pinski  <pinskia@physics.uc.edu>
3183
3184         * include/bits/basic_string.tcc (_M_mutate): Don't compute
3185         __src unnecessarily.
3186
3187 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
3188
3189         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3190         Clarify assertion, set test variable to false before assert.
3191         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3192         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3193         * testsuite/27_io/ios_base/storage/2.cc: Same.
3194
3195         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3196         function returns.
3197         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3198         * testsuite/27_io/fpos/14320-3.cc: Same.
3199
3200         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3201         * testsuite/27_io/fpos/1.cc: Same.
3202         * testsuite/27_io/basic_stringstream/2.cc: Same.
3203         * testsuite/27_io/basic_stringbuf/4.cc: Same.
3204         * testsuite/27_io/basic_stringbuf/1.cc: Same.
3205         * testsuite/27_io/basic_stringbuf/2.cc: Same.
3206         * testsuite/27_io/basic_streambuf/2.cc: Same.
3207         * testsuite/27_io/basic_ostringstream/2.cc: Same.
3208         * testsuite/27_io/basic_ostream/2.cc: Same.
3209         * testsuite/27_io/basic_ofstream/2.cc: Same.
3210         * testsuite/27_io/basic_istringstream/2.cc: Same.
3211         * testsuite/27_io/basic_istream/2.cc: Same.
3212         * testsuite/27_io/basic_iostream/2.cc: Same.
3213         * testsuite/27_io/basic_ios/2.cc: Same.
3214         * testsuite/27_io/basic_ifstream/2.cc: Same.
3215         * testsuite/27_io/basic_fstream/2.cc: Same.
3216         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3217
3218         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3219         unsigned against zero.
3220         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3221         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3222
3223         * testsuite/18_support/new_delete_placement.cc: Initialize
3224         variables before first use.
3225         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3226         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3227         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3228         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3229         Same.
3230         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3231         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3232         Same.
3233         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3234         * testsuite/27_io/types/2.cc: Same.
3235
3236         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3237         file name.
3238         * testsuite/27_io/fpos/14775.cc: Same.
3239
3240 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
3241
3242         PR libstdc++/15002 (partial)
3243         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3244         Special case __n2 == 1, not calling traits_type::assign/copy.
3245
3246 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
3247
3248         * include/bits/stl_bvector.h: Use _M_impl._M_start.
3249
3250 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
3251
3252         * include/bits/c++config (_GLIBCXX_STD): New.
3253         * src/list.cc: Use it.
3254         * include/std/std_bitset.h: Same.
3255         * include/bits/vector.tcc: Same.
3256         * include/bits/stl_set.h: Same.
3257         * include/bits/stl_multiset.h: Same.
3258         * include/bits/stl_multimap.h: Same.
3259         * include/bits/stl_map.h: Same.
3260         * include/bits/stl_list.h: Same.
3261         * include/bits/stl_vector.h: Same.
3262         * include/bits/stl_bvector.h: Same.
3263         * include/bits/stl_deque.h: Same.
3264         * include/bits/deque.tcc: Same.
3265         * include/bits/list.tcc: Same.
3266         * include/debug/vector: Same.
3267         * include/debug/set.h: Same.
3268         * include/debug/multiset.h: Same.
3269         * include/debug/multimap.h: Same.
3270         * include/debug/map.h: Same.
3271         * include/debug/list: Same.
3272         * include/debug/deque: Same.
3273         * include/debug/bitset: Same.
3274         * include/debug/formatter.h (__gnu_debug): Remove using directive.
3275         Add using declaration for std::type_info.
3276         * include/debug/safe_iterator.h: Add using declaration for
3277         std::iterator_traits and std::pair.
3278         * src/debug_list.cc: New.
3279         * src/Makefile.am: Add debug_list.cc.
3280         * src/Makefile.in: Regenerate.
3281         * config/linker-map.gnu: Add _List_node_base exports for std and
3282         __gnu_norm.
3283
3284         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3285         idiom that other containers use.
3286         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3287
3288 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3289
3290         PR libstdc++/14975
3291         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3292         in case of error.
3293         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3294         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3295
3296 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3297
3298         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3299         used anymore.
3300         * config.h.in: Regenerate.
3301
3302 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3303
3304         * config/locale/generic/monetary_members.cc
3305         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3306         btowc unnecessarily, just cast to wchar_t (the concerned chars
3307         all belong to the basic character set).
3308         * config/locale/generic/numeric_members.cc
3309         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3310         * config/locale/gnu/monetary_members.cc
3311         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3312         * config/locale/gnu/numeric_members.cc
3313         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3314
3315 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
3316
3317         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3318         avoid constructing unnecessarily this->name().
3319
3320 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
3321
3322         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3323         Change definition of CXX to use $(shell) instead of backticks.
3324         * testsuite/Makefile.in: Regenerate.
3325
3326 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
3327
3328         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3329         Minor formatting fixes.
3330         * testsuite/performance/20_util/allocator/map_mt_find.cc:
3331         Likewise.
3332
3333 2004-04-12  Paolo Carlini <pcarlini@suse.de>
3334
3335         * config/locale/gnu/numeric_members.cc
3336         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3337         in __uselocale, since btowc is called for chars belonging to
3338         the basic character set.
3339
3340 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
3341
3342         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3343         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3344         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3345         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3346         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3347         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3348         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3349         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3350         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3351         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3352         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3353         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3354         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3355         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3356         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3357         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3358         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3359
3360 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3361
3362         * config/locale/generic/time_members.cc
3363         (__timepunct<char>::_M_initialize_timepunct,
3364         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3365         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3366         * config/locale/gnu/time_members.cc
3367         (__timepunct<char>::_M_initialize_timepunct,
3368         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3369         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3370         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3371
3372         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3373         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3374         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3375         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3376         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3377         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3378         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3379         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3380         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3381         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3382         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3383         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3384         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3385         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3386         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3387         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3388         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3389         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3390         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3391         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3392         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3393         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3394         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3395         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3396         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3397         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3398         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3399         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3400         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3401         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3402         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3403         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3404         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3405         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3406         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3407         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3408
3409         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3410
3411 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3412
3413         * config/locale/gnu/monetary_members.cc
3414         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3415         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3416         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3417         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3418         * config/locale/gnu/numeric_members.cc
3419         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3420         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3421
3422 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
3423
3424         Fixups for EDG front end.
3425         * include/ext/rope: Instead of non-existent function
3426         _Data_allocate, use allocator's allocate. Use this.
3427         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3428         enumerations from _Rope_RopeRep here.
3429         * include/ext/ropeimpl.h: Same.
3430         * src/ext-inst.cc (_S_min_len): Fix up definition.
3431
3432         * config/locale/gnu/ctype_members.cc: Qualify base class members
3433         with this.
3434         * config/locale/generic/ctype_members.cc: Same.
3435         * config/locale/gnu/messages_members.h: Same.
3436         * config/locale/generic/messages_members.h: Same.
3437         * src/ctype.cc: Same.
3438         * include/bits/codecvt.h: Same.
3439
3440         * include/bits/boost_concept_check.h: Declare.
3441         (__error_type_must_be_an_unsigned_integer_type): Remove this.
3442         (__error_type_must_be_an_integer_type): Remove this.
3443         (__error_type_must_be_a_signed_integer_type): Remove this.
3444
3445         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3446
3447         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3448         specification to definition.
3449         (__cxa_allocate_exception): Same.
3450         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3451         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3452         (__cxa_get_globals): Same.
3453
3454         * libsupc++/del_op.cc: Add comment about freestanding.
3455
3456 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
3457
3458         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3459         The critical section is actually very small, only two assignments.
3460
3461 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
3462             Petur Runolfsson  <peturr02@ru.is>
3463
3464         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3465         adapted from libstdc++/11378.
3466
3467 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
3468
3469         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3470         some duplicated code.
3471         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3472         in the single threaded case.
3473         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3474         Reorder and renumber the tests consistently with the other testfiles.
3475         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3476         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3477         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3478
3479 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
3480
3481         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3482         Rearrange arithmetic to avoid computing two divisions at
3483         each deallocation.
3484
3485 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3486
3487         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3488         Streamline the second half, wrapping it in a single
3489         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3490         conditionals inside loops.
3491
3492 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3493
3494         PR libstdc++/14775
3495         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3496         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3497         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3498         to _GLIBCXX_RES_LIMITS.
3499         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3500         HAVE_LIMIT_*.
3501         * testsuite/testsuite_hooks.h: Declare set_file_limit.
3502         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3503         and setrlimit(RLIMIT_FSIZE).
3504         * testsuite/27_io/fpos/14775.cc: New.
3505         * config.h.in: Regenerate.
3506         * configure: Likewise.
3507
3508 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
3509
3510         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3511         In v3 uses of sscanf, the special floating-point numbers INF,
3512         INFINITY, etc., cannot occur in input, therefore, if the latter
3513         is too large, ERANGE is always stored in errno, no need of finitel.
3514
3515 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
3516
3517         PR libstdc++/14783
3518         * include/bits/stl_tree.h: Adjust initialization list order.
3519
3520 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
3521
3522         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3523
3524 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
3525
3526         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3527         on allocator behavior, the memory pointed by data2 may well be not
3528         trashed.
3529
3530 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
3531
3532         PR libstdc++/14245
3533         * include/bits/basic_string.tcc
3534         (basic_string::basic_string(const basic_string&)): Pass to
3535         _Rep::_M_grab the actual allocator of the string being constructed
3536         not the default constructed one.
3537
3538 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
3539
3540         libstdc++ PR/13598
3541         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3542         (__enc_traits::_M_destroy): New.
3543         (__enc_traits::~__enc_traits): Use it.
3544         (__enc_traits::operator=): Use _M_destroy, _M_init.
3545         (__enc_traits::__enc_traits): Same.
3546
3547 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
3548
3549         * testsuite/ext/enc_filebuf/char/13598.cc: New.
3550
3551 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
3552
3553         * include/ext/mt_allocator.h: Uglify consistently names of
3554         variables, members and classes; tidy.
3555
3556 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
3557
3558         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3559         Deallocation loop rewrote.
3560
3561 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
3562
3563         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3564         __mt_alloc<>::deallocate): Protect two instances of
3565         block->thread_id with __GTHREADS.
3566
3567 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
3568
3569         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3570         default argument in constructors.
3571         (_Rb_tree::_M_empty_initialize): Remove.
3572
3573 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
3574
3575         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3576         * testsuite/23_containers/set/operators/1_neg.cc: Same.
3577
3578 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3579
3580         * include/bits/cpp_type_traits.h: Changed __is_pod
3581         completely. Now, it does not use any of the previous type_traits
3582         to detect the pod types, and it also detects function pointers as
3583         POD types.
3584
3585         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3586         which encapsulates the internal implementation of an rb_tree. Made
3587         the allocator a base class of this class instead of the rb_tree,
3588         which was not conforming. This _Rb_tree_impl class is also
3589         specialized on whether the _Compare parameter is a POD type or
3590         not. If so, then it maintains the comparison function as a data
3591         member, otherwise it makes the _Compare parameter a base class of
3592         itself. Also, _M_key_compare is now a function instead of a data
3593         member, so that the above trick can work properly. Delegated the
3594         initialization of the other data members to this newly created
3595         class. Also, now other member functions of rb_tree must refer to
3596         _M_key_compare as _M_impl._M_key_compare(). The other data members
3597         (*) can be referenced to as _M_impl.(*), where
3598         (*) includes _M_header, and _M_node_count.
3599
3600 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
3601
3602         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3603         Add _M_min_bin, the size in bytes of the smallest bin.
3604         (__mt_alloc<>::tune()): Tweak accordingly.
3605         (__mt_alloc<>::tune(size_t, ...)): Likewise.
3606         (__mt_alloc<>::block_record): Change to a union: members next
3607         and thread_id are never used at the same time.
3608         (__mt_alloc<>::allocate): Update consistently.
3609         (__mt_alloc<>::deallocate): Likewise.
3610         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3611         _S_bin_size for the configurable _M_min_size.
3612
3613 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3614
3615         * include/bits/stl_list.h: Created a _List_impl class and made it
3616         derive from the allocator, instead of the list deriving from the
3617         allocator class, which was not conformant. Changed all references
3618         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3619         as above (changed all references to the concerned variables).
3620
3621 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3622
3623         * include/bits/stl_deque.h: Created a _Deque_impl class and made
3624         it derive from the allocator, instead of the deque deriving from
3625         the allocator class, which was not conformant. Changed all
3626         references to the _M_start, _M_finish, _M_map, and _M_map_size to
3627         _M_impl.*.
3628         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3629         qualification in 2 places where it was missing.
3630         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3631         above.
3632         * include/bits/deque.tcc: Same as above (changed all references to
3633         the concerned variables).
3634
3635 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3636
3637         * include/bits/stl_vector.h: Created a _Vector_impl class and made
3638         it derive from the allocator, instead of the _Vector_base class,
3639         deriving from the allocator which was not conformant. Changed all
3640         references to the _M_start, _M_finish, and _M_end_of_storage to
3641         _M_impl.*.
3642         * include/bits/vector.tcc: Same as above (changed all references
3643         to the concerned variables).
3644
3645 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3646
3647         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3648         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3649         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3650
3651 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
3652
3653         * include/ext/malloc_allocator.h: Fixed the construct function to
3654         call global placement new instead of assignment. Added a check
3655         after the return from malloc to check whether returned pointer is
3656         NULL, and if so, throw std::bad_alloc().
3657         * include/ext/debug_allocator.h: Added a check in the deallocate
3658         function to check whether the user has passed a NULL pointer or
3659         not.
3660
3661 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
3662
3663         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3664
3665 2004-03-24  Andreas Schwab  <schwab@suse.de>
3666
3667         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3668         warning from IA64 assembler.
3669
3670 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
3671
3672         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3673         function call __builtin_ctz instead of the while loop.
3674         (allocate) -> If condition has __builtin_expect.
3675         (deallocate) -> Ditto.
3676         Renamed a few left-over variables and typedefs according to the
3677         C++STYLE mentioned in the documentation.
3678         Protected calls to __gthread* by __gthread_active_p(), whose value
3679         is cached in the local variable __threads_active.
3680
3681 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
3682
3683         * testsuite/performance/20_util/allocator/producer_consumer.cc:
3684         Use linear algorithm for producer.
3685
3686 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
3687
3688         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3689         __mt_alloc<>::deallocate): Avoid redundant conditionals.
3690
3691 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
3692
3693         * include/bits/locale_facets.h: Tweaks for 80 column.
3694         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3695         (__moneypunct_cache::_M_cache): Same.
3696         (num_get): Don't inherit from __num_base.
3697         (num_put): Same.
3698         (money_get): Don't inherit from money_base.
3699         (money_put): Same.
3700         (__timepunct::_M_am_pm_format): New.
3701         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3702         (time_get::_M_extract_name): Same.
3703         (time_get::_M_extract_via_format): Same.
3704         * include/bits/locale_facets.tcc: Tweaks for 80 column.
3705         Use _M_getloc instead of getloc.
3706         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3707         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3708         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3709
3710 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
3711
3712         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3713         * configure: Regenerate.
3714         * config/allocator/pool_allocator_base.h: New.
3715         * include/ext/pool_allocator.h: Convert to a standard-conforming
3716         allocator.
3717         * src/allocator.cc: Tweak instantiations.
3718         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3719         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3720         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3721         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3722         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3723         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3724
3725 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
3726
3727         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3728         inline" and attribute-unused.  Qualify parameter __mem with
3729         "volatile".
3730         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
3731
3732 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
3733
3734         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3735         Remove junk.
3736         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3737         Likewise.
3738         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3739         Likewise.
3740         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3741         Likewise.
3742         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3743         Likewise.
3744         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3745         Likewise.
3746         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3747         Likewise.
3748         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3749         Likewise.
3750         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3751         Likewise.
3752         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3753         Likewise.
3754
3755 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
3756
3757         * include/std/std_valarray.h: Document DR389 [Ready].
3758         * docs/html/ext/howto.html: Add an entry for DR389.
3759
3760 2004-03-19  Michael Eager  <eager@mvista.com>
3761
3762         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
3763         SC instructions.
3764
3765 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3766
3767         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3768         static_cast-s.
3769         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3770         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3771         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3772         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3773         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3774         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3775         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3776         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3777         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3778
3779 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3780             Petur Runolfsson  <peturr02@ru.is>
3781
3782         PR libstdc++/12077
3783         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3784         no way to find out the conversion used by the underlying FILE*.
3785         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3786         * testsuite/27_io/objects/char/9.cc: Tweak.
3787
3788 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
3789
3790         PR libstdc++/14648
3791         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3792         memory allocation/deallocation calls.
3793         * testsuite/ext/14648.cc: New.
3794
3795 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
3796
3797         PR libstdc++/14647
3798         * include/backward/bvector.h (bit_vector): Allocator is in std
3799         namespace.
3800
3801 2004-03-19  Phil Edwards  <phil@codesourcery.com>
3802
3803         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
3804         not libiconv.  SUBST this variable as well.
3805         * testsuite/Makefile.am (site.exp):  New target, based on that
3806         created by automake.  Also set libiconv.
3807
3808         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3809         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3810         testsuite/Makefile.in:  Regenerate.
3811
3812 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
3813
3814         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3815         new_allocator for all hosts.
3816         * configure: Regenerate.
3817
3818 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
3819
3820         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3821         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3822
3823 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
3824
3825         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3826         Adjust the logic underlying the parsing of symbol to deal
3827         correctly with an optional sign component (i.e., when either
3828         negative_sign or positive_sign is empty)
3829         * testsuite/22_locale/money_get/get/char/19.cc: New.
3830         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3831
3832 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
3833
3834         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3835         Do not accept an incomplete currency symbol.
3836         * testsuite/22_locale/money_get/get/char/18.cc: New.
3837         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3838
3839 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
3840
3841         * config/allocator: New.
3842         * config/allocator/bitmap_allocator_base.h: New.
3843         * config/allocator/malloc_allocator_base.h: New.
3844         * config/allocator/mt_allocator_base.h: New.
3845         * config/allocator/new_allocator_base.h: New.
3846         * include/bits/allocator.h: Include c++allocator.h.
3847         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3848         * aclocal.m4: Regenerate.
3849         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3850         * configure: Regenerate.
3851         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3852         * include/Makefile.in: Regenerate.
3853         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3854
3855 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
3856
3857         * include/bits/allocator.h: Revert.
3858
3859 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
3860
3861         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3862         * include/bits/gslice_array.h: Add comment about DR 253.
3863         * include/bits/indirect_array.h: Likewise.
3864         * include/bits/mask_array.h: Likewise.
3865         * include/bits/slice_array.h: Likewise.
3866
3867 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
3868
3869         * testsuite/20_util/allocator/14176.cc: New.
3870         * include/ext/mt_allocator.h: Formatting fixes.
3871
3872 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
3873
3874         * include/Makefile.am (ext_headers): Add
3875         ${ext_srcdir}/bitmap_allocator.h .
3876         * include/Makefile.in: Regenerate.
3877         * docs/html/ext/ballocator_doc.txt: New file.
3878         * include/ext/bitmap_allocator.h: New file.
3879         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3880         test.
3881         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3882         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3883         test for the bitmap_allocator<>.
3884         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3885         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3886         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3887
3888 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
3889
3890         * include/std/std_complex.h (pow(const complex&, const _Tp&),
3891         pow(const _Tp&, const complex&), pow(const complex&,
3892         const complex&)): Fully qualify with std:: a few calls.
3893         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3894
3895 2004-03-11  Steven Bosscher  <stevenb@suse.de>
3896
3897         PR libstdc++/11706
3898         * include/c_std/cmath.tcc (__cmath_power): Define inline.
3899
3900 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
3901
3902         * configure.ac: Bump AC_PREREQ to 2.59.
3903
3904 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
3905
3906         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3907
3908 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
3909             Paolo Carlini  <pcarlini@suse.de>
3910
3911         PR libstdc++/13450
3912         * include/std/std_complex.h (pow(const complex&, const _Tp&),
3913         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3914         * testsuite/26_numerics/complex/13450.cc: New.
3915
3916         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3917         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3918
3919 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
3920
3921         PR libstdc++/3247
3922         * include/bits/gslice_array.h (gslice_array()): Make public.
3923         (operator=(gslice_array)): Make public.  Implement.
3924         * include/bits/indirect_array.h (indirect_array()): Make public.
3925         * include/bits/mask_array.h (mask_array()): Make public.
3926         (operator=(mask_array)): Make public.  Implement.
3927         * include/bits/valarray_array.tcc (__valarray_copy):
3928         Comment.  Add versions for gslice_array and mask_array.
3929         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
3930
3931 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
3932
3933         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3934         non-weak systems.
3935         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3936         * testsuite/23_containers/set/modifiers/swap.cc: Same.
3937         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3938         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3939         * testsuite/23_containers/map/modifiers/swap.cc: Same.
3940         * testsuite/23_containers/list/modifiers/swap.cc: Same.
3941
3942         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3943
3944 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3945
3946         PR c++/13658
3947         * testsuite/23_containers/deque/modifiers/swap.cc: New.
3948         * testsuite/23_containers/list/modifiers/swap.cc: New.
3949         * testsuite/23_containers/map/modifiers/swap.cc: New.
3950         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3951         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3952         * testsuite/23_containers/set/modifiers/swap.cc: New.
3953         * testsuite/23_containers/vector/modifiers/swap.cc: New.
3954
3955 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
3956
3957         PR libstdc++/12658
3958         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
3959
3960 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3961
3962         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
3963         * include/bits/stl_multiset.h: Add comment about DR 103.
3964         * include/bits/stl_set.h: Likewise.
3965
3966 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
3967
3968         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3969         The value _space_ indicates that at least one space is required
3970         at that position.
3971         * testsuite/22_locale/money_get/get/char/17.cc: New.
3972         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
3973
3974         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
3975         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
3976
3977         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
3978         Remove redundant conditional on __str.size().
3979
3980 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
3981
3982         * include/bits/allocator.h: Switch defaults to mt_alloc.
3983
3984 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3985
3986         * include/ext/mt_allocator.h (_S_initialize): If
3987         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
3988
3989 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
3990
3991         PR libstdc++/12658
3992         * src/locale_init.cc (locale::locale): Lock critical regions with
3993         external mutexes.
3994         (locale::global): Same.
3995         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
3996         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
3997         (__glibcxx_mutex_lock): Same.
3998
3999         * config/cpu/generic/atomicity.h: Remove
4000         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
4001         * src/misc-inst.cc: Move all locking bits out of this file.
4002
4003         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
4004         * src/misc-inst.cc: Same.
4005         * config/cpu/hppa/atomicity.h: Same.
4006
4007         * config/linker-map.gnu: Remove types in the signature of atomic
4008         exports, as they may vary.
4009
4010 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
4011
4012         * include/bits/locale_facets.tcc: Tweak the comment preceding
4013         has_facet: doesn't throw.
4014
4015 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
4016
4017         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
4018         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4019         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4020         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4021         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4022         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4023         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4024         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4025
4026 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
4027
4028         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4029         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
4030         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
4031         * testsuite/testsuite_character.h (struct __gnu_test::character):
4032         Provide operator==.
4033         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
4034         Likewise.
4035
4036 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
4037
4038         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
4039
4040 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4041
4042         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
4043
4044         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
4045         returns 0.
4046         * testsuite/23_containers/deque/invalidation/4.cc: Same.
4047         * testsuite/23_containers/list/invalidation/1.cc: Same.
4048         * testsuite/23_containers/list/invalidation/2.cc: Same.
4049         * testsuite/23_containers/list/invalidation/3.cc: Same.
4050         * testsuite/23_containers/list/invalidation/4.cc: Same.
4051         * testsuite/23_containers/map/invalidation/2.cc: Same.
4052         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
4053         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4054         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
4055         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4056         * testsuite/23_containers/set/invalidation/1.cc: Same.
4057         * testsuite/23_containers/set/invalidation/2.cc: Same.
4058         * testsuite/23_containers/vector/invalidation/1.cc: Same.
4059         * testsuite/23_containers/vector/invalidation/2.cc: Same.
4060         * testsuite/23_containers/vector/invalidation/3.cc: Same.
4061         * testsuite/23_containers/vector/invalidation/4.cc: Same.
4062
4063 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
4064
4065         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
4066         CXXFLAGS_save.
4067         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
4068         DEFAULT_CXXFLAGS.
4069         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
4070         from the dg-options.
4071         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
4072         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
4073         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
4074         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
4075         * testsuite/23_containers/vector/resize/1.cc: Likewise.
4076         * testsuite/26_numerics/complex_value.cc: Likewise.
4077         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
4078         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
4079         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
4080         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
4081         * testsuite/27_io/objects/char/5.cc: Likewise.
4082         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
4083         * testsuite/backward/11460.cc: Likewise.
4084         * testsuite/thread/pthread7-rope.cc: Likewise.
4085
4086         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
4087         missing test variable.
4088         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
4089         missing test variable.
4090
4091 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
4092
4093         * testsuite/20_util/allocator/1.cc: Provide explicit
4094         instantiations for non-weak systems.
4095         * testsuite/20_util/binders.cc: Same.
4096         * testsuite/20_util/allocator/8230.cc: Same.
4097         * testsuite/20_util/allocator/10378.cc: Same.
4098         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4099         * testsuite/22_locale/ctype/is/char/2.cc: Same.
4100         * testsuite/thread/pthread7-rope.cc: Same.
4101         * testsuite/thread/pthread6.cc: Same.
4102         * testsuite/thread/pthread5.cc: Same.
4103         * testsuite/thread/pthread4.cc: Same.
4104         * testsuite/thread/pthread1.cc: Same.
4105         * testsuite/ext/rope.cc: Same.
4106         * testsuite/ext/hash_set.cc: Same.
4107         * testsuite/ext/hash_map.cc: Same.
4108         * testsuite/ext/concept_checks.cc: Same.
4109         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
4110         * testsuite/25_algorithms/unique/2.cc: Same.
4111         * testsuite/25_algorithms/unique/1.cc: Same.
4112         * testsuite/25_algorithms/rotate.cc: Same.
4113         * testsuite/25_algorithms/min_max.cc: Same.
4114         * testsuite/25_algorithms/equal.cc: Same.
4115         * testsuite/24_iterators/rel_ops.cc: Same.
4116         * testsuite/24_iterators/iterator.cc: Same.
4117         * testsuite/24_iterators/insert_iterator.cc: Same.
4118         * testsuite/24_iterators/front_insert_iterator.cc: Same.
4119         * testsuite/24_iterators/back_insert_iterator.cc: Same.
4120         * testsuite/23_containers/vector/resize/1.cc: Same.
4121         * testsuite/23_containers/vector/modifiers/2.cc: Same.
4122         * testsuite/23_containers/vector/modifiers/1.cc: Same.
4123         * testsuite/23_containers/vector/invalidation/4.cc: Same.
4124         * testsuite/23_containers/vector/invalidation/3.cc: Same.
4125         * testsuite/23_containers/vector/invalidation/2.cc: Same.
4126         * testsuite/23_containers/vector/invalidation/1.cc: Same.
4127         * testsuite/23_containers/vector/element_access/1.cc: Same.
4128         * testsuite/23_containers/vector/cons/6513.cc: Same.
4129         * testsuite/23_containers/vector/cons/3.cc: Same.
4130         * testsuite/23_containers/vector/cons/2.cc: Same.
4131         * testsuite/23_containers/vector/cons/1.cc: Same.
4132         * testsuite/23_containers/vector/capacity/8230.cc: Same.
4133         * testsuite/23_containers/vector/capacity/1.cc: Same.
4134         * testsuite/23_containers/vector/bool/6886.cc: Same.
4135         * testsuite/23_containers/stack/members/7158.cc: Same.
4136         * testsuite/23_containers/set/invalidation/2.cc: Same.
4137         * testsuite/23_containers/set/invalidation/1.cc: Same.
4138         * testsuite/23_containers/queue/members/7157.cc: Same.
4139         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
4140         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4141         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4142         * testsuite/23_containers/multiset/insert/1.cc: Same.
4143         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4144         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4145         * testsuite/23_containers/map/operators/1.cc: Same.
4146         * testsuite/23_containers/map/invalidation/2.cc: Same.
4147         * testsuite/23_containers/map/invalidation/1.cc: Same.
4148         * testsuite/23_containers/map/insert/1.cc: Same.
4149         * testsuite/23_containers/list/operators/4.cc: Same.
4150         * testsuite/23_containers/list/operators/3.cc: Same.
4151         * testsuite/23_containers/list/operators/2.cc: Same.
4152         * testsuite/23_containers/list/operators/1.cc: Same.
4153         * testsuite/23_containers/list/modifiers/3.cc: Same.
4154         * testsuite/23_containers/list/modifiers/2.cc: Same.
4155         * testsuite/23_containers/list/modifiers/1.cc: Same.
4156         * testsuite/23_containers/list/invalidation/4.cc: Same.
4157         * testsuite/23_containers/list/invalidation/3.cc: Same.
4158         * testsuite/23_containers/list/invalidation/2.cc: Same.
4159         * testsuite/23_containers/list/invalidation/1.cc: Same.
4160         * testsuite/23_containers/list/cons/9.cc: Same.
4161         * testsuite/23_containers/list/cons/8.cc: Same.
4162         * testsuite/23_containers/list/cons/7.cc: Same.
4163         * testsuite/23_containers/list/cons/6.cc: Same.
4164         * testsuite/23_containers/list/cons/5.cc: Same.
4165         * testsuite/23_containers/list/cons/4.cc: Same.
4166         * testsuite/23_containers/list/cons/3.cc: Same.
4167         * testsuite/23_containers/list/cons/2.cc: Same.
4168         * testsuite/23_containers/list/cons/1.cc: Same.
4169         * testsuite/23_containers/list/capacity/1.cc: Same.
4170         * testsuite/23_containers/deque/operators/1.cc: Same.
4171         * testsuite/23_containers/deque/invalidation/4.cc: Same.
4172         * testsuite/23_containers/deque/invalidation/3.cc: Same.
4173         * testsuite/23_containers/deque/invalidation/2.cc: Same.
4174         * testsuite/23_containers/deque/invalidation/1.cc: Same.
4175         * testsuite/23_containers/deque/cons/2.cc: Same.
4176         * testsuite/23_containers/deque/cons/1.cc: Same.
4177
4178         * src/allocator.cc: Add char, wchar_t instantiations
4179         to match extern template declarations in memory.h.
4180
4181 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
4182
4183         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4184         Fix warning regression.
4185
4186 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
4187
4188         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4189         Deal properly with empty __digits and negative frac_digits,
4190         clean-up a bit.
4191
4192 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
4193
4194         * docs/html/documentation.html: Regenerate.
4195
4196 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
4197
4198         PR libstdc++/14320
4199         * include/bits/postypes.h (class streamoff): Remove, now
4200         streamoff is just typedef a 64 bit signed integer type.
4201         (class fpos): Tweak consistently.
4202         * testsuite/27_io/fpos/14320-1.cc: New.
4203         * testsuite/27_io/fpos/14320-2.cc: New.
4204         * testsuite/27_io/fpos/14320-3.cc: New.
4205         * testsuite/27_io/fpos/14320-4.cc: New.
4206         * testsuite/27_io/fpos/14320-5.cc: New.
4207         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
4208
4209 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
4210
4211         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4212         Reorganize a bit the main parsing loop, thus early detecting
4213         an empty value component.
4214         * testsuite/22_locale/money_get/get/char/16.cc: New.
4215         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
4216
4217 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
4218
4219         Support automake 1.8.2
4220         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
4221         * po/Makefile.am (EXTRA_DIST): New.
4222         * po/Makefile.in: Regenerate.
4223         * Makefile.in: Same.
4224         * include/Makefile.in: Same.
4225         * libmath/Makefile.in: Same.
4226         * libsupc++/Makefile.in: Same.
4227         * src/Makefile.in: Same.
4228         * testsuite/Makefile.in: Same.
4229
4230         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4231         __GXX_WEAK__ instead of SUPPORTS_WEAK.
4232         (${host_builddir}/gthr-default.h): Same.
4233         (${host_builddir}/gthr.h): Same.
4234         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4235         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4236         -fno-weak.
4237         * aclocal.m4: Regenerate.
4238         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4239         * config.h.in: Regenerate.
4240         * configure: Same.
4241
4242 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
4243
4244         Support autoconf 2.59
4245         * acinclude.m4: Quote correctly.
4246         * aclocal.m4: Regenerate.
4247         * linkage.m4: Same.
4248
4249 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
4250
4251         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4252
4253         * docs/html/18_support/howto.html: Add bit about writing to
4254         stderr, mostly by Zack.
4255
4256 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4257
4258         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4259         money_get<>::do_get(string_type&)): ... and two more.
4260
4261 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4262
4263         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4264         Fix thinkos in the switch from string_type& to string& as last
4265         argument.
4266
4267 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4268
4269         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4270         Also when parsing exponent sign, first look for thousands_sep
4271         and decimal_point; tweak a bit.
4272         * testsuite/22_locale/num_get/get/char/15.cc: New.
4273         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4274
4275         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4276         num_get<>::_M_extract_int): Reorder some conditionals.
4277
4278 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
4279
4280         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4281         Consistently with numpunct, enforce the requirements in
4282         22.2.6.3, p3 for the thousands separators; tweak a bit.
4283         * testsuite/22_locale/money_get/get/char/15.cc: New.
4284         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4285
4286 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
4287
4288         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4289         testsuite_files from correct multilib blddir when running
4290         testsuite.
4291
4292 2004-02-29  Phil Edwards  <phil@codesourcery.com>
4293
4294         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
4295         the summary file to the logfile.
4296         * testsuite/Makefile.in:  Regenerate.
4297
4298 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4299
4300         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4301         volatile.
4302         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4303         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4304
4305 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
4306
4307         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4308         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4309         no 'decimal-point' in the middle: in this case too we must fix
4310         up __found_grouping; slightly tweak.
4311         * testsuite/22_locale/num_get/get/char/14.cc: New.
4312         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4313
4314 2004-02-27  Eric Christopher  <echristo@redhat.com>
4315             Phil Edwards  <phil@codesourcery.com>
4316
4317         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4318         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4319         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4320         testsuite/22_locale/collate/hash/wchar_t/2.cc,
4321         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4322         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4323         testsuite/22_locale/collate/transform/wchar_t/2.cc,
4324         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4325         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4326         Use dg-require-iconv.
4327         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
4328
4329 2004-02-27  Phil Edwards  <phil@codesourcery.com>
4330             Eric Christopher  <echristo@redhat.com>
4331
4332         * testsuite/config/default.exp:  Update with comments.
4333         (${tool}_target_compile):  New wrapper routine.
4334         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
4335         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
4336         fixes.
4337         (load_gcc_lib, v3track):  New routines.
4338         (v3-init):  Rename to libstdc++_init.
4339         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
4340         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4341
4342 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
4343
4344         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4345
4346         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4347
4348         * config/os/irix/irix5.2/atomicity.h: Merge..
4349         * config/os/irix/irix6.5/atomicity.h: Merge..
4350         * config/os/irix/atomicity.h: ...into this.
4351         * config/os/irix/atomic_word.h: New.
4352         * configure.host: Set atomic_word_dir for irix.
4353
4354         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4355         * i386/atomicity.h: Same.
4356         * m68k/atomicity.h: Same.
4357         * sparc/atomicity.h: Same.
4358
4359 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
4360
4361         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4362         static, and inline keywords.
4363
4364 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
4365
4366         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4367         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4368         call reserve on the __tmp_gruping string.
4369         (num_get<>::_M_extract_float): Don't append unnecessarily a
4370         char() to the returned string.
4371         * include/bits/locale_facets.tcc: Trivial reformattings.
4372
4373 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
4374
4375         * include/bits/locale_facets.h (money_get<>::_M_extract):
4376         Change signature: now takes a plain string&.
4377         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4378         Update consistently the definition; use the moneypunct cache
4379         to parse the value; use swap to change __units.
4380         (money_get<>::do_get(long double&)): Update call of _M_extract,
4381         avoid ctype::narrow, not correct wrt the standard.
4382         (money_get<>::do_get(string_type&)): Likewise, update call
4383         of _M_extract, use ctype::widen.
4384         * src/locale-inst.cc: Tweak instantiations of _M_extract.
4385
4386 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
4387
4388         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4389         * testsuite/demangle/abi_examples/02.cc: Likewise.
4390         * testsuite/demangle/regression/cw-11.cc: Likewise.
4391         * testsuite/demangle/regression/cw-16.cc: Change two expected
4392         results to match libiberty demangler output.
4393
4394 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
4395
4396         PR libstdc++/10246
4397         * libsupc++/Makefile.am: Use libiberty demangler.
4398         (c_sources): Add cp-demangle.c.
4399         * libsupc++/Makefile.in: Regenerate.
4400         * src/Makefile.am (sources): Remove demangle.cc.
4401         * src/Makefile.in: Regenerate.
4402         * include/Makefile.am (bits_headers): Move demangle.h.
4403         (ext_headers): ...here.
4404         * include/Makefile.in: Regenerate.
4405         * include/bits/demangle.h: Move...
4406         * include/ext/demangle.h: ...here.
4407         * src/demangle.cc: Remove.
4408
4409 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
4410
4411         * include/bits/demangle.h: Add type template parameter to all
4412         templates with just an Allocator template parameter.
4413
4414 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
4415
4416         * include/bits/atomicity.h: New, forward declarations for __atomic_add
4417         and __exchange_and_add.
4418         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4419         * config/cpu/cris/atomic_word.h: Same.
4420         * config/cpu/sparc/atomic_word.h: Same.
4421         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4422         Qualifiy with __gnu_cxx.
4423         (_Callback_list::_M_add_reference): Same.
4424         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4425         (locale::facet::_M_remove_reference): Same.
4426         (locale::_Impl::_M_add_reference): Add.
4427         (locale::_Impl::_M_remove_reference): Same.
4428         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4429         (basic_string::_Rep::_M_dispose): Same.
4430         * src/ios.cc (ios_base::xalloc): Same.
4431         * src/ios_init.cc (ios_base::Init::Init): Same.
4432         (ios_base::Init::~Init): Same.
4433         * src/locale.cc (locale::id::_M_id): Same.
4434         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4435         static, and inline keywords.
4436         * config/cpu/alpha/atomicity.h: Same.
4437         * config/cpu/cris/atomicity.h: Same.
4438         * config/cpu/generic/atomicity.h: Same.
4439         * config/cpu/hppa/atomicity.h: Same.
4440         * config/cpu/i386/atomicity.h: Same.
4441         * config/cpu/ia64/atomicity.h: Same.
4442         * config/cpu/m68k/atomicity.h: Same.
4443         * config/cpu/mips/atomicity.h: Same.
4444         * config/cpu/powerpc/atomicity.h: Same.
4445         * config/cpu/s390/atomicity.h: Same.
4446         * config/cpu/sparc/atomicity.h: Same.
4447
4448         * src/Makefile.am (host_sources): Add atomicity.cc.
4449         (atomicity.cc): New rule.
4450         * src/Makefile.in: Regenerate.
4451         * include/Makefile.am (host_headers): Remove host atomicity.h.
4452         (host_headers): Add atomic_word.h.
4453         (bits_headers): Add bits atomicity.h.
4454         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4455         * include/Makefile.in: Regenerate.
4456         * configure.host (atomic_word_dir): Add.
4457         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4458         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4459         * configure: Regenerate.
4460         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4461
4462         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4463         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4464
4465 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
4466
4467         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4468         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4469         Fix markup, more <link> tags.
4470
4471 2004-02-25  Carlo Wood  <carlo@alinoe.com>
4472
4473         * bits/demangle.h
4474         namespace __gnu_cxx::demangler
4475         (session<Allocator>::qualifier_list_Allocator): Add
4476         (session<Allocator>::M_qualifier_list_alloc): Add
4477         (session<Allocator>::decode_type_with_postfix):
4478         Use M_qualifier_list_alloc instead of calling operator new/delete.
4479
4480 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
4481
4482         PR libstdc++/14252
4483         * include/bits/postypes.h (class streamoff): Add operator++(),
4484         operator++(int), operator--() and operator--(int).
4485         * testsuite/27_io/fpos/14252.cc: New.
4486
4487 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
4488
4489         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4490         error in handling of hex constants.
4491
4492 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
4493
4494         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4495         Prefer basic_string::append to operator+= and a temporary.
4496
4497 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
4498
4499         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4500         Only use fputs, not write.
4501
4502 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
4503
4504         * include/ext/malloc_allocator.h: Add operators ==, !=.
4505         * include/ext/new_allocator.h: Add operators ==, !=.
4506         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4507         (__mt_alloc::_S_get_options): New.
4508         (__mt_alloc::_S_set_options): New.
4509         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4510         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4511         Move functions out of line, simplify, format.
4512         * src/allocator.cc: Simplify explicit instantiations.
4513         * include/bits/allocator.h: Tweak.
4514
4515 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
4516
4517         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4518         Restructure formatting of value component, first dealing with
4519         the non-decimal digits; use reserve.
4520
4521 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
4522
4523         * include/bits/locale_facets.h (class money_get): Inherit
4524         from money_base too; tweak declaration of _M_extract, now
4525         parameterized on _Intl too.
4526         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4527         Update definition to use the cache; call reserve on __res to
4528         avoid multiple reallocations; fix parsing of sign component
4529         according to 22.2.6.1.2, p3.
4530         (money_get<>::do_get(long double&),
4531         money_get<>::do_get(string_type&)): Update calls of _M_extract.
4532         * src/locale-inst.cc:  Add instantiations of
4533         money_get::_M_extract<false> and money_get::_M_extract<true>.
4534         * testsuite/22_locale/money_get/get/char/14.cc: New.
4535         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4536
4537 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
4538
4539         * libsupc++/vterminate.cc
4540         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4541         calls to terminate.
4542         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4543
4544         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4545         not set RLIMIT_AS on HP-UX.
4546
4547 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
4548
4549         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4550         not set RLIMIT_AS on HP-UX.
4551
4552 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
4553
4554         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4555         _S_zero, _S_end } enum, _S_atoms.
4556         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4557         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4558         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4559         (__moneypunct_cache<>::~__moneypunct_cache): Update.
4560         (__moneypunct_cache<>::_M_cache): Fill the cache.
4561         (class moneypunct): Tweak __cache_type typedef.
4562         (class money_put): Inherit from money_base too; tweak declaration
4563         of _M_insert, now parameterized on _Intl.
4564         * include/bits/locale_facets.tcc
4565         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4566         (money_put<>::_M_insert): Update definition to use the cache;
4567         call reserve on __res to avoid multiple reallocations.
4568         (money_put<>::do_put(long double),
4569         money_put<>::do_put(const string_type&): Update calls of _M_insert.
4570         * config/locale/generic/monetary_members.cc
4571         (moneypunct<char, true>::_M_initialize_moneypunct,
4572         moneypunct<char, false>::_M_initialize_moneypunct,
4573         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4574         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4575         * config/locale/gnu/monetary_members.cc: Likewise.
4576         * config/locale/gnu/monetary_members.cc
4577         (moneypunct<wchar_t, true>::~moneypunct(),
4578         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4579         * src/globals_locale.cc: Tweak fake_money_cache_c.
4580         * src/locale-inst.cc: Add instantiations for
4581         money_put::_M_insert<false> and money_put::_M_insert<true> and
4582         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4583         * src/locale_facets.cc: Define money_base::_S_atoms.
4584         * src/locale_init.cc: Update placement new of
4585         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4586         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4587
4588         * config/locale/generic/numeric_members.cc: Clean up.
4589         * config/locale/gnu/numeric_members.cc: Likewise.
4590         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4591         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4592         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4593         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4594         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4595         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4596
4597 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
4598
4599         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4600         FIFO for writing with ios_base::in|ios_base::out.
4601         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4602         * testsuite/27_io/objects/char/7.cc: Likewise.
4603         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4604         with "r+".
4605
4606 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
4607
4608         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4609         from iso-8859-1 to ISO8859-1.
4610         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4611         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4612         * 22_locale/collate/hash/wchar_t/2.cc: Same.
4613         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4614         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4615         * 22_locale/collate/transform/wchar_t/2.cc: Same.
4616         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4617         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4618
4619 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
4620
4621         * include/bits/locale_facets.h (money_get<>::_M_extract):
4622         New, helper for do_get.
4623         (money_put<>::_M_insert): Likewise, for do_put.
4624         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4625         money_put<>::_M_insert): Define.
4626         (money_get<>::do_get(long double&), money_get<>::do_get(
4627         string_type&), money_put::do_put(long double),
4628         money_put::do_put(const string_type&)): Use the helpers.
4629
4630 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
4631
4632         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4633         Rewrite, avoiding recursion.
4634         (__gnu_internal::xwrite): Minor tweaks.
4635
4636 2004-02-17  Stefan Olsson  <stefan@xapa.se>
4637
4638         * include/ext/mt_allocator.h: Removed the last
4639         pointer. Deallocated blocks are now added to the front of
4640         freelists as proposed by Felix Yen.  This gives roughly 10%
4641         performance boost and saves some memory.
4642         * docs/html/ext/mt_allocator.html: Change due to that deallocated
4643         blocks now are added to the front of freelists. The reason to this
4644         approach is also explained.
4645
4646 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
4647
4648         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4649         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4650         grouping fidelity conditional.
4651
4652 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4653
4654         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4655         Qualify exception with std::.
4656         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4657         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4658         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4659         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4660         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4661
4662 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4663
4664         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4665         for now that the catch block is not reached.
4666         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4667
4668 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
4669
4670         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4671         Fix parsing of the remaining sign characters.
4672         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4673         the input is scanned 'til eof.
4674         * 22_locale/money_get/get/char/4.cc: Likewise.
4675         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4676         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4677         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4678         not do_pos_format: the former is the only one that matters during
4679         input.
4680         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4681
4682         * 22_locale/money_get/get/char/6.cc: Minor tweak.
4683         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4684
4685 2004-02-15  David Asher  <david.asher@cavium.com>
4686
4687         PR libstdc++/11352
4688         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4689         access __olds beyond __oldlen.
4690
4691 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
4692
4693         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4694         sure the exception is actually thrown.
4695         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4696         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4697         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4698
4699 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
4700
4701         PR libstdc++/13858
4702         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4703         In case of conversion errors, throw ios_failure; simplify.
4704         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4705         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4706         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4707         previously we didn't throw in case of conversion errors, instead
4708         just returned eof().
4709         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4710         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4711         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4712
4713         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4714         Trivial simplification of a conditional.
4715
4716 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
4717
4718         PR libstdc++/13731 (final part: writev)
4719         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4720         New, a wrapper around writev() handling partial writes.
4721         (__basic_file<char>::xwrite): Move to __gnu_internal and make
4722         static.
4723         (__basic_file<char>::xsputn): Update call.
4724         (__basic_file<char>::xsputn_2): Likewise.
4725         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4726         Don't declare, now static.
4727
4728 2004-02-11  Stefan Olsson  <stefan@xapa.se>
4729
4730         * docs/html/ext/mt_allocator.html: New.
4731
4732 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
4733
4734         * docs/html/20_util/allocator.html: New file, consolidate
4735         allocator information here. Revamp.
4736         * docs/html/documentation.html: Change links.
4737         * docs/html/20_util/howto.html: Same.
4738         * docs/html/ext/howto.html: Same.
4739
4740 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
4741
4742         PR libstdc++/13731 (first part: write)
4743         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4744         New, declare.
4745         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4746         Define it: a wrapper around write() handling partial write.
4747         (__basic_file<char>::xsputn): Use it.
4748         (__basic_file<char>::xsputn_2): Likewise.
4749
4750 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
4751             Petur Runolfsson  <peturr02@ru.is>
4752
4753         PR libstdc++/14078
4754         * include/std/std_istream.h (operator>>(__istream_type& (*)
4755         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4756         operator>>(ios_base& (*)(ios_base&))): Declare inline.
4757         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4758         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4759         operator<<(ios_base& (*) (ios_base&))): Likewise.
4760         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4761
4762 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
4763
4764         PR libstdc++/14098
4765         * config/linker-map.gnu: Add typeinfo and typeinfo name for
4766         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4767
4768         PR libstdc++/14097
4769         * config/linker-map.gnu: Add typeinfo and typeinfo name for
4770         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4771
4772 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
4773
4774         * include/ext/pool_allocator.h: Include c++config.h.
4775
4776 2004-02-09  Stefan Olsson  <stefan@xapa.se>
4777
4778         * include/ext/mt_allocator.h: thread_id is unused in non threaded
4779         applications and now has a ifdef to remove it completely on
4780         compilers without thread support. Include stdlib.h due to a
4781         compiler warning on getenv().
4782
4783 2004-02-09  Paul Brook  <paul@codesourcery.com>
4784
4785         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4786
4787 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
4788
4789         PR libstdc++/14071
4790         * src/locale_init.cc (locale::global(const locale&)): Use
4791         locale::name() in order to decide whether calling setlocale.
4792         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4793
4794         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4795         Avoid computing &= unnecessarily.
4796
4797 2004-02-09  James E Wilson  <wilson@specifixinc.com>
4798
4799         PR libstdc++/5625
4800         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4801         __builtin_extend_pointer.
4802
4803 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
4804
4805         PR libstdc++/14072
4806         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4807         Don't leave dangling pointers.
4808         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4809         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4810         facet is needed in the final test.
4811
4812 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
4813
4814         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4815         * configure: Regenerate.
4816
4817 2004-02-08  Richard Henderson  <rth@redhat.com>
4818
4819         PR libstdc++/14026
4820         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4821         uncaughtExceptions during nested catch rethrow.
4822         * testsuite/18_support/14026.cc: New.
4823
4824 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
4825
4826         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4827         When working in place remember to set the state to sharable
4828         (otherwise, _M_mutate does it).
4829
4830 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
4831
4832         * include/bits/allocator.h, include/bits/basic_ios.h,
4833         include/bits/basic_ios.tcc, include/bits/basic_string.h,
4834         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4835         include/bits/char_traits.h, include/bits/codecvt.h,
4836         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4837         include/bits/demangle.h, include/bits/deque.tcc,
4838         include/bits/fstream.tcc, include/bits/functexcept.h,
4839         include/bits/gslice.h, include/bits/gslice_array.h,
4840         include/bits/indirect_array.h, include/bits/ios_base.h,
4841         include/bits/istream.tcc, include/bits/list.tcc,
4842         include/bits/locale_classes.h, include/bits/locale_facets.h,
4843         include/bits/locale_facets.tcc, include/bits/localefwd.h,
4844         include/bits/mask_array.h, include/bits/ostream.tcc,
4845         include/bits/postypes.h, include/bits/slice_array.h,
4846         include/bits/sstream.tcc, include/bits/stl_algo.h,
4847         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4848         include/bits/stl_construct.h, include/bits/stl_deque.h,
4849         include/bits/stl_function.h, include/bits/stl_heap.h,
4850         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4851         include/bits/stl_list.h, include/bits/stl_map.h,
4852         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4853         include/bits/stl_numeric.h, include/bits/stl_pair.h,
4854         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4855         include/bits/stl_relops.h, include/bits/stl_set.h,
4856         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4857         include/bits/stl_threads.h, include/bits/stl_tree.h,
4858         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4859         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4860         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4861         include/bits/type_traits.h, include/bits/valarray_after.h,
4862         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4863         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4864         trailing whitespace.
4865
4866 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4867
4868         * include/bits/basic_string.h: Fix comment.
4869
4870 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4871
4872         * include/bits/stl_construct.h: Wrap overlong lines, reformat
4873         according to the coding standards.
4874         * include/bits/stl_pair.h: Likewise.
4875         * include/bits/stl_raw_storage_iter.h: Likewise.
4876         * include/bits/stl_stack.h: Likewise.
4877         * include/bits/stl_uninitialized.h: Likewise.
4878         * include/bits/stream_iterator.h: Likewise.
4879         * include/bits/streambuf_iterator.h: Likewise.
4880         * include/bits/type_traits.h: Likewise.
4881
4882 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
4883
4884         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4885         Adjust timings.
4886
4887 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
4888
4889         * scripts/check_performance: Support PCH.
4890
4891         * scripts/check_performance (CXX): Add -DNOTHREAD.
4892         * testsuite/performance/20_util/allocator/insert.cc: Integrate
4893         threaded tests from insert_insert.cc.  Tweak iterations,
4894         remove special cases.
4895         * testsuite/performance/20_util/allocator/insert_insert.cc:
4896         Make all tests single-threaded. Tweak iterations.
4897         * testsuite/performance/20_util/allocator/map_thread.cc:
4898         Tweak iterations.
4899         * testsuite/performance/20_util/allocator/producer_consumer.cc:
4900         Likewise.
4901
4902 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
4903
4904         PR 12179
4905         * .cvsignore: New.
4906         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4907         'gcc-lib'.  Add comment about poorly-named variables.
4908         * aclocal.m4: Regenerate.
4909         * configure: Regenerate.
4910
4911 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4912
4913         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4914         Thousands-sep are always optional; thousands-sep are not allowed
4915         after the decimal_point.
4916         * testsuite/22_locale/money_get/get/char/12.cc: New.
4917         * testsuite/22_locale/money_get/get/char/13.cc: New.
4918         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4919         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4920
4921         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4922         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4923         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4924         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4925         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4926         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4927         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4928         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4929
4930         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4931         the standard.
4932         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4933
4934 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
4935
4936         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4937         Define.
4938         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4939         it to decide whether FIONREAD should take an off_t or int argument.
4940
4941 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
4942
4943         * include/bits/stl_function.h: Minor formatting changes.
4944
4945 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
4946
4947         Revert previous change to config/abi/*/baseline_symbols.txt.
4948
4949 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4950             Zack Weinberg  <zack@codesourcery.com>
4951
4952         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
4953         New function.
4954         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
4955         (__basic_file<char>::_M_open_mode): Delete.
4956         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
4957
4958         * testsuite/27_io/basic_filebuf/close/char/9964.cc
4959         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4960         Correct flags to filebuf::open calls.
4961
4962         * config/abi/alpha-freebsd5/baseline_symbols.txt
4963         * config/abi/alpha-linux-gnu/baseline_symbols.txt
4964         * config/abi/hppa-linux-gnu/baseline_symbols.txt
4965         * config/abi/i386-freebsd4/baseline_symbols.txt
4966         * config/abi/i386-freebsd5/baseline_symbols.txt
4967         * config/abi/i486-linux-gnu/baseline_symbols.txt
4968         * config/abi/ia64-linux-gnu/baseline_symbols.txt
4969         * config/abi/mips-linux-gnu/baseline_symbols.txt
4970         * config/abi/sparc-freebsd5/baseline_symbols.txt
4971         * config/abi/sparc-linux-gnu/baseline_symbols.txt
4972         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
4973         Remove entry for __basic_file<char>::_M_open_mode.
4974
4975 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
4976
4977         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
4978
4979 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
4980
4981         * testsuite/performance/20_util/producer_consumer.cc: New.
4982         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
4983
4984 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
4985
4986         * testsuite/performance/20_util/allocator.cc: Move to..
4987         * testsuite/performance/20_util/allocator/insert.cc: ...here.
4988         * testsuite/performance/20_util/allocator_thread.cc: Move to...
4989         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
4990         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
4991         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
4992
4993 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
4994
4995         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
4996         * docs/html/faq/index.txt: Regenerate.
4997
4998 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
4999
5000         * include/ext/debug_allocator.h: _M_extra now stands for the
5001         number of extra objects instead of the number of extra bytes.
5002         (debug_allocator::allocate): Adjust.
5003         (debug_allocator::deallocate): Adjust.
5004
5005         * include/ext/pool_allocator.h: Fix typo.
5006
5007 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
5008             Benjamin Kosnik  <bkoz@redhat.com>
5009
5010         * testsuite/performance/20_util/allocator.cc: Add map,
5011         deque, set tests.
5012         * testsuite/performance/20_util/allocator_thread.cc: Same.
5013
5014 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
5015
5016         * include/bits/basic_string.h (insert(iterator)): Remove,
5017         non-standard and already scheduled for removal.
5018
5019 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
5020
5021         * include/bits/stl_iterator_base_funcs.h: Minor formatting
5022         and indentation tweaks.
5023         * include/bits/stl_iterator_base_types.h: Likewise.
5024         * include/bits/stl_list.h: Likewise.
5025         * include/bits/stl_map.h: Likewise.
5026         * include/bits/stl_tempbuf.h: Likewise.
5027
5028 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
5029
5030         * include/bits/gslice.h, include/bits/gslice_array.h,
5031         include/bits/indirect_array.h, include/bits/mask_array.h,
5032         include/bits/slice_array.h, include/bits/stl_numeric.h,
5033         include/std/std_valarray.h:  Update copyright years.
5034
5035 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
5036
5037         * include/bits/gslice.h (gslice):  Document.
5038         * include/bits/gslice_array.h (gslice_array):  Document.
5039         * include/bits/indirect_array (indirect_array):  Document.
5040         * include/bits/mask_array (mask_array):  Document.
5041         * include/bits/slice_array.h (slice,slice_array):  Document.
5042         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
5043         adjacent_difference):  Document
5044         * include/std/std_valarray.h (valarray):  Document.
5045
5046 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
5047
5048         * docs/html/19_diagnostics/howto.html: Move verbose terminate
5049         documentation...
5050         * docs/html/18_support/howto.html: Here.
5051         * docs/html/documentation.html: Add reference here.
5052
5053 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
5054
5055         * config/locale/gnu/c++locale_internal.h: Remove prototypes
5056         of no longer used GLIBC thread locale functions.
5057
5058 2004-02-02  Eric Christopher  <echristo@redhat.com>
5059             Zack Weinberg  <zack@codesourcery.com>
5060
5061         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
5062         -finput-charset.
5063         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
5064         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
5065         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
5066         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
5067         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
5068         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
5069         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
5070         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
5071         Ditto.
5072
5073 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
5074
5075         * include/bits/stl_function.h: Additional minor tweaks.
5076         * include/bits/stl_multiset.h: Likewise.
5077
5078         * include/bits/stl_queue.h: Minor tweaks.
5079
5080 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
5081
5082         PR libstdc++/13976 (continued)
5083         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
5084         Make the second parameter unnamed, to void unused parameter
5085         warnings.
5086         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
5087
5088 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
5089
5090         PR libstdc++/13976
5091         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
5092         Make the second parameter unnamed, to void unused parameter
5093         warnings.
5094         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
5095         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
5096
5097 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5098
5099         * include/bits/stl_algo.h: Additional minor tweaks.
5100         * include/bits/stl_map.h: Likewise.
5101         * include/bits/stl_multimap.h: Likewise.
5102         * include/bits/stl_multiset.h: Likewise.
5103         * include/bits/stl_set.h: Likewise.
5104         * include/bits/stl_tree.h: Likewise.
5105
5106 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5107
5108         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
5109         Remove, unused.
5110
5111 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5112
5113         * include/bits/stl_function.h: Additional minor tweaks.
5114
5115 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5116
5117         * include/bits/deque.tcc: Wrap overlong lines, constify
5118         a few variables, reformat according to the coding standards.
5119         * include/bits/list.tcc: Likewise.
5120         * include/bits/stl_deque.h: Likewise.
5121         * include/bits/stl_function.h: Likewise.
5122         * include/bits/stl_iterator.h: Likewise.
5123         * include/bits/stl_iterator_base_funcs.h: Likewise.
5124         * include/bits/stl_iterator_base_types.h: Likewise.
5125         * include/bits/stl_list.h: Likewise.
5126         * include/bits/stl_map.h: Likewise.
5127         * include/bits/stl_multimap.h: Likewise.
5128         * include/bits/stl_multiset.h: Likewise.
5129         * include/bits/stl_relops.h: Likewise.
5130         * include/bits/stl_set.h: Likewise.
5131
5132 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
5133
5134         * include/bits/stl_bvector.h: Wrap overlong lines, constify
5135         a few variables, reformat according to the coding standards.
5136         * include/bits/stl_tree.h: Likewise.
5137
5138 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
5139
5140         * include/bits/stl_algo.h: Minor additional reformat, add
5141         copyright year.
5142         * include/bits/stl_algobase.h: Add copyright year.
5143
5144 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
5145
5146         * include/bits/stl_algo.h: Wrap overlong lines, constify
5147         a few variables, reformat according to the coding standards.
5148         * include/bits/stl_algobase.h: Likewise.
5149         * include/bits/stl_heap.h: Likewise.
5150
5151 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
5152
5153         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
5154
5155         * include/bits/basic_string.h: Fix two comments.
5156
5157 2004-01-31  Per Bothner  <per@bothner.com>
5158
5159         * include/ext/mt_allocator.h
5160         (__mt_alloc::_S_thread_freelist_mutex): Guard with
5161         __GTHREAD_MUTEX_INIT.
5162
5163 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
5164
5165         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
5166
5167 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
5168
5169         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
5170         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
5171         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
5172
5173 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
5174
5175         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
5176         Don't use clear, but instead assign. Use insert.
5177
5178 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
5179
5180         * src/demangle.cc: Add instantiations.
5181         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
5182         * src/Makefile.in: Regenerate.
5183
5184 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
5185
5186         * src/allocator.cc: Protect _S_get_thread_id() and
5187         _S_thread_key_destr() with #ifdef __GTHREADS.
5188
5189 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
5190
5191         Reshuffle performance testsuite.
5192         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
5193         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
5194         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
5195         fstream_seek_write.cc, ifstream_extract_float.cc,
5196         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
5197         list_create_fill_sort.cc, map_create_fill.cc,
5198         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
5199         ofstream_insert_float.cc, ofstream_insert_int.cc,
5200         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
5201         wchar_t_out.cc: Split into...
5202         * testsuite/performance/20_util/allocator.cc: New.
5203         * testsuite/performance/20_util/allocator_map_thread.cc: New.
5204         * testsuite/performance/20_util/allocator_thread.cc: New.
5205         * testsuite/performance/21_strings/string_append: New.
5206         * testsuite/performance/22_locale/is_wchar_t.cc: New.
5207         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
5208         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
5209         * testsuite/performance/22_locale/wchar_t_in.cc: New.
5210         * testsuite/performance/22_locale/wchar_t_length.cc: New.
5211         * testsuite/performance/22_locale/wchar_t_out.cc: New.
5212         * testsuite/performance/23_containers/container_benchmark.cc: New.
5213         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
5214         * testsuite/performance/23_containers/map_create_fill.cc: New.
5215         * testsuite/performance/26_numerics/complex_norm.cc: New.
5216         * testsuite/performance/27_io/cout_insert_int.cc: New.
5217         * testsuite/performance/27_io/filebuf_copy.cc: New.
5218         * testsuite/performance/27_io/filebuf_sputc.cc: New.
5219         * testsuite/performance/27_io/fstream_seek_write.cc: New.
5220         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
5221         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
5222         * testsuite/performance/27_io/ifstream_getline.cc: New.
5223         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5224         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5225
5226 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
5227
5228         * include/bits/basic_string.tcc (_Rep::_S_create):
5229         Never allocate a string bigger than max_size(); always keep
5230         __capacity and __size in sync to avoid memory leaks at
5231         deallocation time.
5232
5233 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
5234
5235         * include/bits/basic_string.tcc (_S_construct(_InIterator,
5236         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5237         the double loop, streamline.
5238
5239         * include/bits/basic_string.tcc: Very minor tweaks.
5240
5241 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
5242
5243         * scripts/check_performance: Only compile with $THREAD_FLAG
5244         when test is marked to require it.  Allow multiple
5245         compilations/executions of marked tests.
5246         * testsuite/testsuite_performance.h (report_performance):
5247         Report dynamic thread support status.
5248         (report_header): Likewise.
5249         * testsuite/performance/allocator.cc: Stabilize iteration
5250         count.  Support more allocators.  Mark each allocator test to
5251         run and report independently.
5252         * testsuite/performance/allocator_map_thread.cc: Likewise.
5253         * testsuite/performance/allocator_thread.cc: Likewise.
5254
5255 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
5256
5257         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5258         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5259         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5260         std::get_temporary_buffer() instead of duplicating its code.
5261         Update to C++STYLE conventions.
5262         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5263         new() instead of std::malloc().
5264         (return_temporary_buffer): Use ::operator delete() instead of
5265         std::free().
5266
5267 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
5268
5269         * include/bits/allocator.h: Temporary switch to new_allocator as
5270         the default to unjam bootstraps.
5271
5272 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
5273
5274         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5275         * include/Makefile.in: Regenerate.
5276         * include/bits/allocator_traits.h: Remove.
5277         * include/bits/allocator.h: Remove allocator_traits.h include, and
5278         relevant comments.
5279         (allocator): Empty base class, inherit from the underlying allocator.
5280         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5281         * src/allocator.cc: ...here. New. For the underlying allocators.
5282         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5283         * config/linker-map.gnu: Remove __pool_alloc bits.
5284         * src/Makefile.am (sources): Add allocator.cc.
5285         * src/Makefile.in: Regenerate.
5286         * testsuite/20_util/allocator/1.cc: Split second test into...
5287         * testsuite/20_util/allocator/8230.cc: ...this.
5288         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5289         typedef to use std::allocatore. Format.
5290         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5291         _Alloc_traits.
5292         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5293         __throw_bad_alloc calls. Don't include <memory>.
5294         * include/ext/malloc_allocator.h: Remove <memory> include.
5295         * include/ext/new_allocator.h (new_allocator): Same.
5296         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5297         declaration. Switch __alloc to _Alloc.
5298         * include/ext/hashtable.h: Remove __alloc.
5299         * include/backward/alloc.h: Only inject allocator, not
5300         implementation details.
5301
5302         * include/ext/mt_allocator.h: Replace free with delete.
5303
5304 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
5305
5306         * src/globals_io.cc: Change to __gnu_internal namespace.
5307         * src/globals_locale.cc: Same.
5308         * src/locale_init.cc: Same.
5309         * src/ios_init.cc: Same.
5310
5311 2004-01-28  Stefan Olsson  <stefan@snon.net>
5312
5313         * include/ext/mt_allocator.h: Replaced all malloc() calls with
5314         operator new(). Added support for the env variable
5315         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5316         one in allocate() as well). Fix typos.
5317
5318 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
5319
5320         * include/bits/basic_string.h (_S_create(size_t,
5321         const _Alloc&): Change signature to take two size_type
5322         arguments.
5323         * include/bits/basic_string.tcc (_S_construct(_InIterator,
5324         _InIterator, const _Alloc&, input_iterator_tag)): Update
5325         call, tweak a bit.
5326         (_S_construct(_InIterator, _InIterator, const _Alloc&,
5327         forward_iterator_tag)): Likewise.
5328         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5329         (_M_mutate(size_type, size_type, size_type)): Don't
5330         implement the exponential growth policy, demand it to
5331         _S_create, update call and simplify.
5332         (_M_clone(const _Alloc&, size_type)): Likewise.
5333         (_S_create(size_type, size_type, const _Alloc&)): Implement
5334         the growth policy, simplify otherwise.
5335
5336         * include/bits/basic_string.h (_Rep::operator[]): Tweak
5337         signature to take a size_type, consistently with the other
5338         members.
5339
5340 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
5341
5342         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5343         delete declarations, add include and test variable.
5344
5345 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
5346
5347         * include/bits/codecvt.h, include/bits/locale_facets.h,
5348         include/bits/postypes.h, include/bits/stl_bvector.h,
5349         include/bits/stl_multiset.h, include/bits/stl_set.h,
5350         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5351         include/std/std_complex.h:  Document.
5352
5353 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
5354
5355         PR libstdc++/11584
5356         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
5357         iword/pword selector.
5358         (ios_base::iword, ios_base::pword):  Use it.
5359         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
5360         iword or pword member on alloc failure.
5361         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
5362
5363 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
5364             PJ Darcy  <darcypj@us.ibm.com>
5365
5366         * configure.host: Add support for *-tpf.
5367         * crossconfig.m4: Likewise.
5368         * configure: Regenerate.
5369         * config/os/tpf: New directory.
5370         * config/os/tpf/os_defines.h: New file.
5371         * config/os/tpf/ctype_base.h: Likewise.
5372         * config/os/tpf/ctype_inline.h: Likewise.
5373         * config/os/tpf/ctype_noninline.h: Likewise.
5374
5375 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
5376
5377         PR libstdc++/13884
5378         * include/bits/sstream.tcc: Guard use of extern template.
5379
5380 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
5381
5382         * include/bits/basic_string.tcc
5383         (basic_string(const basic_string&, size_type, size_type),
5384         basic_string(const basic_string&, size_type, size_type,
5385         const _Alloc&)): Avoid unnecessarily constructing iterators.
5386
5387 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5388
5389         * config/locale/generic/c_locale.cc: Fix throw messages
5390         to use the __N marker.
5391         * config/locale/gnu/c_locale.cc: Likewise.
5392         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5393         Likewise.
5394         * docs/html/17_intro/C++STYLE: Likewise.
5395         * include/bits/basic_ios.tcc: Likewise.
5396         * include/bits/fstream.tcc: Likewise.
5397         * include/bits/vector.tcc: Likewise.
5398         * include/ext/ropeimpl.h: Likewise.
5399         * include/std/std_bitset.h: Likewise.
5400         * src/ios.cc: Likewise.
5401         * src/locale.cc: Likewise.
5402         * src/localename.cc: Likewise.
5403
5404 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5405
5406         * include/bits/basic_string.h (_M_replace_aux): Use the
5407         __N marker in throw message.
5408         * include/bits/basic_string.tcc (assign(const _CharT*,
5409         size_type), insert(size_type, const _CharT*, size_type),
5410         replace(size_type, size_type, const _CharT*, size_type),
5411         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5412         Likewise.
5413
5414         * include/bits/basic_string.h, include/bits/basic_string.tcc:
5415         Fold overlong lines, minor formatting changes.
5416
5417 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5418
5419         * include/bits/basic_string.h (replace(iterator, iterator,
5420         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5421         (replace(iterator, iterator, const _CharT*)): Ditto.
5422         (replace(iterator, iterator, const _CharT*, size_type)):
5423         Add missing _GLIBCXX_DEBUG_PEDASSERT.
5424
5425 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
5426
5427         * include/bits/basic_string.tcc (replace(size_type,
5428         size_type, const _CharT*, size_type)): Implement optimized
5429         in-place algorithm for non-overlapping ranges.
5430         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5431         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5432
5433         * include/bits/basic_string.tcc (insert(size_type,
5434         const _CharT*, size_type)): Tweak slightly.
5435
5436 2004-01-26  Andreas Schwab  <schwab@suse.de>
5437
5438         * config/locale/gnu/monetary_members.cc: Restore locale before
5439         rethrowing exception.
5440
5441 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5442
5443         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5444         Define inline here.
5445         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5446         Move inline.
5447
5448         * include/bits/basic_string.tcc: Very minor tweaks.
5449
5450 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5451
5452         * testsuite/performance/string_append.cc: Increase number
5453         of iterations.
5454
5455 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
5456
5457         * include/bits/basic_string.h (erase(size_type, size_type),
5458         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5459         instead, thus avoiding redundant check for length_error.
5460
5461         * include/bits/basic_string.h: Tweak some comments.
5462
5463 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5464
5465         * include/bits/basic_string.tcc (operator+(const _CharT*,
5466         const basic_string&)): No need to go through the append
5467         taking two iterators.
5468
5469 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5470
5471         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5472         Revert last change to use std::min: machine language is worse.
5473         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5474         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5475         (find_last_not_of(_CharT, size_type)): Ditto.
5476
5477         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5478         size_type)): Discard the value returned by _M_check.
5479         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5480         (append(const basic_string&, size_type, size_type)): Ditto.
5481         (copy(_CharT*, size_type, size_type)): Ditto.
5482         (compare(size_type, size_type, const basic_string&)): Ditto.
5483         (compare(size_type, size_type, const basic_string&,
5484         size_type, size_type)): Ditto.
5485         (compare(size_type, size_type, const _CharT*)): Ditto.
5486         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5487
5488 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5489
5490         * include/bits/basic_string.h (insert(size_type,
5491         const basic_string&, size_type, size_type)): Define inline here.
5492         * include/bits/basic_string.tcc (insert(size_type,
5493         const basic_string&, size_type, size_type)): Move inline.
5494
5495 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
5496
5497         * include/bits/basic_string.h (assign(const basic_string&,
5498         size_type, size_type)): Define inline here.
5499         (replace(size_type, size_type, const basic_string&,
5500         size_type, size_type)): Ditto.
5501         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5502         _InputIterator, __false_type)): Only declare.
5503         (_M_replace(iterator, iterator, _InputIterator,
5504         _InputIterator)): Remove.
5505         * include/bits/basic_string.tcc (assign(const basic_string&,
5506         size_type, size_type)): Move inline.
5507         (replace(size_type, size_type, const basic_string&,
5508         size_type, size_type)): Ditto.
5509         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5510         _InputIterator, __false_type)): Define, now does also what
5511         _M_replace did before.
5512         * src/string-inst.cc (_M_replace): Don't instantiate.
5513
5514         * include/bits/basic_string.tcc (find(const _CharT*,
5515         size_type, size_type)): Tidy.
5516         (rfind(_CharT, size_type)): Ditto.
5517         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5518         (find_first_not_of(_CharT, size_type)): Ditto.
5519         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5520         (find_last_not_of(_CharT, size_type)): Ditto.
5521
5522 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5523
5524         PR libstdc++/13838
5525         * include/debug/bitset (operator|=): Fix typo.
5526         * testsuite/23_containers/bitset/operations/13838.cc: New.
5527
5528 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5529
5530         * include/bits/basic_string.tcc (insert(size_type,
5531         const _CharT*, size_type __n)): Fix length_error check.
5532         (replace(size_type, size_type, const _CharT*, size_type):
5533         Ditto; call _M_replace_safe.
5534         (_M_replace_aux(size_type, size_type, size_type, _CharT):
5535         Fix length_error check.
5536         (_M_replace(iterator, iterator, _InputIterator,
5537         _InputIterator)): Ditto, tweak.
5538         (_M_replace_safe(size_type, size_type, const _CharT*,
5539         size_type)): Remove length_error check.
5540
5541         * include/bits/basic_string.tcc (append(const basic_string&),
5542         append(const basic_string&, size_type, size_type)): Tweak
5543         comment.
5544
5545         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5546         size_type)): If __n == 0 don't call traits::copy.
5547
5548 2004-01-23  Stefan Olsson  <stefan@snon.net>
5549
5550         * include/ext/mt_allocator.h: Reduce lock contention.
5551
5552 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5553
5554         PR libstdc++/13831
5555         * include/bits/fstream.tcc (underflow): Remove unused
5556         variable.
5557         * include/bits/streambuf_iterator.h (equal): Ditto.
5558         * include/bits/locale_facets.h (_M_convert_from_char):
5559         Ditto.
5560
5561 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5562
5563         PR c/13814
5564         * config/linker-map.gnu (nan): Delete.
5565         * libmath/mathconf.h (NAN, nan): Delete.
5566         * linkage.m4 (nan): Don't check for it.
5567         * libmath/nan.c: Delete file.
5568
5569         * config.h.in, configure: Regenerate.
5570
5571 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
5572
5573         * include/bits/basic_string.h (push_back(_CharT)):
5574         Call _M_replace_aux.
5575         (insert(size_type, const basic_string&)): Trivial tweak.
5576         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5577         (insert(iterator, _CharT)): Ditto.
5578         (erase(size_type, size_type)): Ditto.
5579         (erase(iterator)): Ditto.
5580         (erase(iterator, iterator)): Ditto.
5581         (replace(size_type, size_type, size_type, _CharT)): Ditto.
5582
5583 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
5584
5585         libstdc++/13823
5586         * testsuite/performance/allocator_map_thread.cc: New test.
5587
5588 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
5589
5590         * include/bits/locale_facets.tcc
5591         (money_put::do_put(..., long double)): Use the basic_string
5592         constructor for char arrays, not that for C-strings, to pass
5593         __digits to do_put(..., const string_type&): __ws isn't
5594         null-terminated.
5595
5596 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
5597
5598         * include/bits/basic_string.h (_M_replace_safe): Change
5599         signatures to take size_types and const _CharT*.
5600         (_M_replace_aux): Likewise, takes size_types instead of
5601         iterators.
5602         (append(size_type, _CharT)): Update call.
5603         (assign(size_type, _CharT)): Ditto.
5604         (replace(iterator, iterator, size_type, _CharT)): Ditto.
5605         (_M_replace_dispatch(iterator, iterator, _Integer,
5606         _Integer, __true_type)): Ditto.
5607         * include/bits/basic_string.tcc (assign(const _CharT*,
5608         size_type)): Ditto.
5609         (insert(size_type, const _CharT*, size_type)): Ditto.
5610         (replace(size_type, size_type, const _CharT*,
5611         size_type)): Ditto.
5612         (_M_replace(iterator, iterator, _InputIterator,
5613         _InputIterator)): Ditto.
5614         (append(const basic_string&)): Ditto.
5615         (append(const basic_string&, size_type, size_type): Ditto.
5616         (append(const _CharT*, size_type): Ditto.
5617         (_M_replace_safe, _M_replace_safe): Change definitions
5618         accordingly, simplify.
5619         * string-inst.cc (_M_replace_safe): Don't instantiate.
5620
5621 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
5622
5623         * include/bits/basic_string.tcc (append(const basic_string&)):
5624         Revert previous change.
5625         (append(const basic_string&, size_type, size_type)): Revert
5626         previous change, use _M_check and _M_limit.
5627
5628 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
5629
5630         * include/bits/basic_string.h (_M_check): Change to return
5631         a checked __pos and take an additional const char* argument.
5632         (_M_fold): Rename to _M_limit, change to return a size_type,
5633         corresponding to the __off limited to the actual length.
5634         (insert(size_type, size_type, _CharT)): Update call, call
5635         replace.
5636         (insert(iterator, _CharT)): Call replace(iterator, iterator,
5637         size_type, _CharT) instead.
5638         (erase(size_type, size_type)): Update calls.
5639         (replace(size_type, size_type, size_type, _CharT)): Ditto.
5640         (substr(size_type, size_type)): Use _M_check.
5641         * include/bits/basic_string.tcc (basic_string(const basic_string&,
5642         size_type, size_type)): Update calls.
5643         (basic_string(const basic_string&, size_type, size_type,
5644         const _Alloc&)): Ditto.
5645         (assign(const basic_string&, size_type, size_type)): Use the
5646         new _M_check and _M_limit.
5647         (insert(size_type, const basic_string&, size_type, size_type):
5648         Ditto.
5649         (insert(size_type, const _CharT*, size_type)): Ditto.
5650         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5651         (replace(size_type, size_type, const basic_string&,
5652         size_type, size_type)): Ditto.
5653         (append(const basic_string&)): Ditto.
5654         (append(const basic_string&, size_type, size_type)): Ditto.
5655         (copy(_CharT*, size_type, size_type)): Ditto.
5656         (compare(size_type, size_type, const basic_string&)): Ditto.
5657         (compare(size_type, size_type, const basic_string&,size_type,
5658         size_type)): Ditto.
5659         (compare(size_type, size_type, const _CharT*)): Ditto.
5660         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5661
5662 2004-01-19  Stefan Olsson  <stefan@snon.net>
5663
5664         * include/ext/mt_allocator.h: If a thread, when it dies, still has
5665         memory on it's freelist this memory is not returned to global
5666         list. Simplification of deallocate so that memory is always
5667         returned to the calling thread id's freelist instead of to
5668         global. Fix typos. Add volatile where appropriate.
5669
5670 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
5671
5672         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5673         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
5674         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5675
5676 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5677
5678         * src/debug.cc: Make sure all the names are prefixed with
5679         double (or single) underscore.
5680
5681 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5682
5683         * src/debug.cc: Trivial formatting change.
5684
5685 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
5686
5687         * include/bits/basic_string.tcc (_S_construct(size_type,
5688         _CharT, const _Alloc&)): Remove redundant try/catch.
5689         (_M_mutate(size_type, size_type, size_type)): Ditto.
5690         (_M_clone(const _Alloc&, size_type)): Ditto.
5691
5692 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
5693
5694         * include/bits/basic_string.h (c_str()): Simplify, due to
5695         21.3.4 the internal representation is always kept null-terminated.
5696         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5697         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5698         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5699         Ditto.
5700
5701 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
5702
5703         * include/bits/basic_string.h (append(size_type, _CharT)):
5704         Moved inline, just call _M_replace_aux, no source iterators at
5705         risk of being clobbered.
5706         (assign(size_type, _CharT)): Call directly _M_replace_aux.
5707         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5708         input_iterator_tag)): Remove fifth unused argument.
5709         (_M_replace_dispatch(iterator, iterator, _InputIterator,
5710         _InputIterator, __false_type)): Update call.
5711         * include/bits/basic_string.tcc (replace(size_type, size_type,
5712         const _CharT*, size_type)): Update call.
5713         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5714         throw string literal.
5715         (_M_replace_safe(iterator, iterator, _ForwardIterator,
5716         _ForwardIterator)): Likewise.
5717         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5718         input_iterator_tag)): Remove fifth unused argument.
5719         (append(size_type __n, _CharT __c)): Move inline.
5720         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5721         const C*, const C*, input_iterator_tag)): Remove fifth unused
5722         argument.
5723
5724 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
5725
5726         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5727         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5728
5729 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
5730
5731         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5732         mkfifo for mingw32.
5733
5734 2004-01-15  Stefan Olsson  <stefan@snon.net>
5735
5736         * include/ext/mt_allocator.h: Reuse thread id's as soon as
5737         possible by changing the behaviour of thread_freelist to do
5738         push_front when threads die instead of push_back.
5739
5740 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
5741
5742         * include/bits/locale_facets.h (struct __numpunct_cache):
5743         Add member _M_grouping_size, caching the length of _M_grouping.
5744         (__numpunct_cache<>::_M_cache): Assign the latter.
5745         (__verify_grouping): Move declaration...
5746         * include/bits/locale_facets.tcc (__verify_grouping):
5747         ... here, change signature to take a const char* and a size_t
5748         for the grouping; not a template anymore.
5749         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5750         Likewise change signature and tweak consistently.
5751         (num_get::_M_extract_float, num_get::_M_extract_int,
5752         num_put::_M_insert_int, num_put::_M_insert_float,
5753         money_get::do_get(string_type&), money_get::do_put(string_type)):
5754         Update callers.
5755         * config/locale/generic/numeric_members.cc
5756         (numpunct<>::_M_initialize_numpunct): Assign the new member.
5757         * config/locale/gnu/numeric_members.cc
5758         (numpunct<>::_M_initialize_numpunct): Likewise.
5759         * src/locale-inst.cc (__add_grouping): Tweak signature.
5760         (__verify_grouping): Don't instantiate, not a template anymore.
5761
5762         * include/bits/locale_facets.h: Rename _M_truename_len ->
5763         _M_truename_size, _M_falsename_len -> _M_falsename_size.
5764         * include/bits/locale_facets.tcc: Likewise.
5765         * config/locale/generic/numeric_members.cc: Likewise.
5766         * config/locale/gnu/numeric_members.cc: Likewise.
5767
5768 2004-01-14  Stefan Olsson  <stefan@snon.net>
5769
5770         * include/ext/mt_allocator.h: Fixups.
5771         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5772         * testsuite/performance/allocator_thread.cc: Same.
5773
5774 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
5775
5776         * testsuite/performance/ifstream_extract_float.cc: Add higher
5777         precision tests.
5778         * testsuite/performance/ofstream_insert_float.cc: Same.
5779
5780 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5781
5782         * src/locale-misc-inst.cc (__convert_from_v(long),
5783         __convert_from_v(unsigned long), __convert_from_v(long long),
5784         __convert_from_v(unsigned long long)): Remove, unused.
5785
5786 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
5787
5788         * testsuite/performance/ifstream_extract_float.cc: New.
5789         * testsuite/performance/ofstream_insert_float.cc: Float generation
5790         matches above.
5791
5792         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5793         * 20_util/auto_ptr/1.cc: ...this.
5794         * 20_util/auto_ptr/2.cc: Same.
5795         * 20_util/auto_ptr/3.cc: Same.
5796         * 20_util/auto_ptr/3946.cc: Same.
5797         * 20_util/auto_ptr/4.cc: Same.
5798         * 20_util/auto_ptr/5.cc: Same.
5799         * 20_util/auto_ptr/6.cc: Same.
5800         * 20_util/auto_ptr/7.cc: Same.
5801         * 20_util/auto_ptr/assign_neg.cc
5802         * 20_util/pairs.cc: Break into...
5803         * 20_util/pair/1.cc: ...this.
5804         * 20_util/pair/2.cc: Same.
5805         * 20_util/pair/3.cc: Same.
5806         * 20_util/pair/4.cc: Same.
5807
5808 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5809
5810         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5811         Set correctly just basefield, the only group that matters.
5812
5813 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5814
5815         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5816         (_Rope_rep_base): Inherit directly from the rope allocator;
5817         use rebinding instead of _Alloc_traits; pick up data member
5818         from _Rope_rep_alloc_base.
5819         (_Rope_alloc_base): Eliminate.
5820         (_Rope_base): Inherit directly from the rope allocator; use
5821         rebinding instead of _Alloc_traits; pick up data member from
5822         _Rope_alloc_base.
5823         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5824         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5825
5826 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
5827
5828         PR libstdc++/13650
5829         * include/bits/basic_string.tcc (compare(size_type, size_type,
5830         const _CharT*, size_type)): Implement correctly the resolution
5831         of DR 5: basically, s is a char array, -not- a C string.
5832         * include/bits/basic_string.h: Tweak some comments.
5833         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5834         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5835
5836 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
5837
5838         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5839         Solaris.
5840
5841 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
5842
5843         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5844         Use try_mkfifo.
5845         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5846         Likewise.
5847
5848 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
5849
5850         * include/bits/locale_facets.h (struct __numpunct_cache):
5851         Add members _M_truename_len and _M_falsename_len, caching
5852         the lengths of _M_truename and _M_falsename.
5853         (__numpunct_cache<>::_M_cache): Assign the latter.
5854         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5855         num_put::do_put(bool)): Use the new members, thus avoiding
5856         computing string lengths again and again.
5857         * config/locale/generic/numeric_members.cc
5858         (numpunct<>::_M_initialize_numpunct): Assign the new members.
5859         * config/locale/gnu/numeric_members.cc
5860         (numpunct<>::_M_initialize_numpunct): Likewise.
5861
5862 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
5863
5864         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5865         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5866         it.
5867         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5868         and remove Cygwin XFAIL.
5869         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5870         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5871         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5872         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5873         Likewise.
5874         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5875         * testsuite/27_io/objects/char/7.cc: Likewise.
5876         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5877         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5878         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5879
5880 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5881
5882         * include/std/std_complex.h (std::complex<>::real): Return a
5883         reference. Add non-const overload.
5884         (std::complex<>::real): Likewise.
5885         (std::real): Likewise.
5886         (std::imag): Likewise.
5887         (std::operator+): Tidy.
5888         (std::operator-): Likewise.
5889         (std::operator*): Likewise.
5890         (std::operator/): Likewise.
5891         (std::operator>>): Likewise.
5892
5893 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
5894
5895         PR libstdc++/13582
5896         * include/bits/fstream.tcc (imbue): Exploit the external
5897         buffer to imbue 'on the fly' a new locale and convert its
5898         remainder with the new codecvt facet.
5899         (underflow): Tweak slightly to deal with this special case.
5900         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5901         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5902         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5903         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5904         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5905
5906 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
5907
5908         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5909         Import Revision 28.
5910
5911 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
5912
5913         PR libstdc++/13630
5914         * include/bits/locale_classes.h (class locale): Fix category
5915         typedef.
5916         * testsuite/22_locale/locale/13630.cc: Add.
5917
5918 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5919
5920         * include/bits/locale_facets.h: Make a name really dependent. This
5921         will be needed when Core Issue 224 is implemented.
5922
5923 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
5924
5925         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5926         * testsuite/performance/allocator_thread.cc: Likewise.
5927
5928 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5929
5930         * crossconfig.m4: Add LFS, io bits to linux cross config.
5931         * acconfig.h: Remove obsolete bits, reorder.
5932         * config.h.in: Regenerate.
5933         * aclocal.m4: Same.
5934         * configure: Same.
5935
5936 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
5937
5938         * include/bits/stl_list.h:
5939         * include/bits/list.tc:
5940         * src/list.cc:
5941         Performance enhancements for destructor, push_front(),
5942         push_back(), pop_front(), pop_back(), sort()
5943         Eliminated static_casts where possible.
5944         Moved code out of header files into new src/list.cc
5945         implementation file for library where possible.
5946         Remove inheritance from iterator class and create separate
5947         classes for non-constant and constant iterators.
5948         * include/bits/stl_tree.h (_Rb_tree class):
5949         * src/tree.cc:
5950         Only erase contents in destructor.
5951         Eliminate unnecessary initialization in assignment operator.
5952         Optimize for the nominal case by not checking whether
5953         container is empty in clear().
5954         Re-order test in _M_insert() to improve performance.
5955         Move initialization of new node's left & right pointers to
5956         src/tree.cc to where new node's colour is initialized
5957         and to reduce the amount of inline code.
5958         Use  _M_leftmost() and _M_end() to improve readability where
5959         appropriate.
5960         Create separate classes for non-constant and constant
5961         iterators to clarify code, avoid extra template parameters and
5962         casting away constness.
5963
5964 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
5965
5966         * src/Makefile.am (sources): Add list.cc, tree.cc.
5967         * src/stl_tree.cc: Move to...
5968         * src/tree.cc: ...here.
5969         * src/list.cc: Add.
5970         * config/linker-map.gnu: Tweaks.
5971         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
5972         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
5973
5974         * bits/stl_vector.h: Column wrap comments.
5975
5976 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
5977
5978         (re-open) PR libstdc++/12658
5979         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
5980         (locale::global): Likewise.
5981
5982 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
5983
5984         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
5985         Remove redundant #include.
5986         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
5987         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
5988         re-enable normal testing.
5989         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
5990         #include.
5991         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
5992         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
5993         Likewise.
5994         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
5995         Likewise.
5996         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
5997         Likewise.
5998         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
5999         Likewise.
6000         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
6001         Likewise.
6002         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
6003         Likewise.
6004         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
6005         Likewise.
6006         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
6007         More properly, #include <locale>.
6008         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
6009         Remove redundant #include.
6010         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
6011         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
6012         redundant DejaGnu directive.
6013         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
6014         redundant #include.
6015
6016 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
6017             Stefan Olsson  <stefan@snon.net>
6018
6019         * scripts/check_performance: Use -pthread.
6020         * testsuite/performance/allocator.cc: Tweaks, add list.
6021         * testsuite/performance/allocator_thread.cc: New.
6022
6023 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
6024
6025         * include/bits/locale_facets.h: Document public classes and
6026         functions.
6027         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
6028         Add comment.
6029
6030 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
6031
6032         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
6033         Remove redundant #includes.
6034         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
6035         Likewise.
6036         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
6037         Likewise.
6038         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
6039         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
6040         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
6041         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
6042         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
6043         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
6044         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
6045         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
6046         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
6047         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
6048         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
6049         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
6050         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
6051         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
6052         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
6053         Likewise.
6054         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
6055         Likewise.
6056         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
6057         Likewise.
6058         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
6059         Likewise.
6060         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
6061         Likewise.
6062         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
6063         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
6064         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
6065
6066 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
6067
6068         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
6069         Remove redundant #includes.
6070         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
6071         Likewise.
6072         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
6073         Likewise.
6074         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
6075         Likewise.
6076         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
6077         Likewise.
6078         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
6079         Likewise.
6080         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
6081         Likewise.
6082         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
6083         Likewise.
6084         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
6085         Likewise.
6086         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
6087         Likewise.
6088         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
6089         Likewise.
6090         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
6091         Likewise.
6092         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
6093         Likewise.
6094
6095 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
6096
6097         PR c++/12226
6098         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
6099         constructor.
6100         * testsuite/27_io/basic_fstream/4.cc: Likewise.
6101         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
6102         * testsuite/27_io/basic_ios/4.cc: Likewise.
6103         * testsuite/27_io/basic_iostream/4.cc: Likewise.
6104         * testsuite/27_io/basic_istream/4.cc: Likewise.
6105         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
6106         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
6107         * testsuite/27_io/basic_ostream/4.cc: Likewise.
6108         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
6109         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
6110         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
6111
6112 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
6113
6114         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
6115         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
6116         always use double underscored names.
6117         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
6118         Likewise.
6119         * include/bits/locale_facets.h (struct __numpunct_cache):
6120         Dimension _M_atoms_out and _M_atoms_in one position smaller.
6121         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
6122         and _M_atoms_in.