OSDN Git Service

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