OSDN Git Service

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