OSDN Git Service

4a28639dd986de0a76113900d59a2556cb85ef7e
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
2
3         * include/bits/type_traits.h (_Is_normal_iterator): Move...
4         * include/bits/cpp_type_traits.h: ... here, renamed to
5         __is_normal_iterator and consistent with the other traits.
6         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
7         to the struct __copy_normal and three specializations.
8         (__copy_backward_output_normal_iterator,
9         __copy_backward_input_normal_iterator): Likewise, convert to
10         the struct __copy_backward_normal and three specializations.
11         (copy, copy_backward): Use the latter.
12         (__copy_aux, __copy_backward_aux): Very minor tweaks.
13
14 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
15
16         * include/bits/stl_algobase.h (__copy_trivial): Remove.
17         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
18         __is_trivially_copyable, __are_same and __copy::copy.
19         (__copy): Rewrite as a class template and two specializations.
20         (__copy_ni2): Simplify, just call __copy_aux.
21         
22         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
23         check.
24         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
25         for destination value type != source value type.
26
27 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
28             Per Bothner  <per@bothner.com>
29             Mohan Embar  <gnustuff@thisiscool.com>
30
31         PR libstdc++/16248
32         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
33         (__glibcxx_mutex): Encapsulate mutex init function into type for
34         threaded configurations without __GTHREAD_MUTEX_INIT.
35         (lock::lock): Make device member a reference.
36         (lock::~lock): Same.
37         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
38         to mutex_type.
39         * src/allocator.cc: Same.
40         
41 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
42
43         * include/ext/mt_allocator.h: Handle allocations at static
44         initialization that happen before _S_options is (automatically)
45         constructed; set _S_init even if _M_force_new is true.
46         
47 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
48
49         * config/linker-map.gnu: Revert new exports.
50
51 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
52             Stuart Anderson  <anderson@netsweng.com>
53         
54         * config/linker-map.gnu: Add destructor exports for abstract base
55         classes to conform to LSB.
56
57 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
58             Paolo Carlini  <pcarlini@suse.de>
59
60         * include/bits/cpp_type_traits.h: Add __is_pointer and
61         __is_trivially_copyable.
62         * include/bits/stl_algobase.h (fill, fill_n): Slightly
63         tweak to use the latter.
64         (__copy_backward_dispatch): Remove.
65         (__copy_backward_aux): Rewrite to use __is_pointer and
66         __is_trivially_copyable and __copy_backward::copy_b.
67         (__copy_backward): Rewrite as a class template and two
68         specializations.
69
70 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
71
72         * testsuite/25_algorithms/copy.cc: Move to...
73         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
74         * testsuite/25_algorithms/copy/2.cc: New.
75         * testsuite/25_algorithms/copy/3.cc: New.
76         * testsuite/25_algorithms/copy/4.cc: New.
77
78 2004-06-29  Paul Brook  <paul@codesourcery.com>
79
80         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
81         element size in the cookie.
82
83 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
84
85         * include/bits/cpp_type_traits.h: Move the additions to
86         namespace __gnu_internal outside of namespace std; trivial
87         formatting fixes.
88
89 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
90
91         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
92         Revert -Weffc++ changes that defined copy ctory and or assignment
93         operator.
94         * libsupc++/tinfo.cc (__upcast_result): Same.
95         
96 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
97
98         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
99         the algorithm used to name the categories.
100
101 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
102
103         * include/Makefile.am: Give a .gch extension to
104         the PCH files, not only to the directory.
105         * include/Makefile.in: Regenerate.
106
107 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
108
109         * config/locale/gnu/monetary_members.cc
110         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
111         assignments of _M_decimal_point and _M_thousands_sep.
112
113 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
114
115         * docs/html/17_intro/contribute.html: Update some links.
116         * docs/html/17_intro/porting-howto.html: Likewise.
117         * docs/html/17_intro/porting-howto.xml: Likewise.
118         * docs/html/18_support/howto.html: Likewise.
119         * docs/html/21_strings/howto.html: Likewise.
120         * docs/html/27_io/howto.html: Likewise.
121         * docs/html/configopts.html: Likewise.
122         * docs/html/ext/howto.html: Likewise.
123         * docs/html/faq/index.html: Likewise.
124         * docs/html/install.html: Don't mention 2.x compilers.
125
126 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
127
128         * include/ext/rope: Trivial formatting fixes.
129         * include/ext/ropeimpl.h: Likewise.
130
131 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
132
133         PR libstdc++/16210
134         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
135         availability of strto(u)ll, not used anymore in the iostreams.
136         * configure: Regenerate.
137
138 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
139
140         PR libstdc++/16182      
141         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
142         AC_DEFINE_UNQUOTED.
143         * configure: Regenerate.
144
145 2004-06-25  Paul Brook  <paul@codesourcery.com>
146
147         * libsupc++/cxxabi.h: Define __ARM_EABI__
148         (__guard): Use it.
149         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
150
151 2004-06-25  Paul Brook  <paul@codesourcery.com>
152
153         * include/bits/concurrence.h: Still create mutex object when
154         single-threaded.
155
156 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
157
158         * include/bits/stl_algobase.h (fill, fill_n): Revert last
159         change: actually we need to copy construct an object of type
160         _Tp, not of type iterator_traits<>::value_type, therefore the
161         code is ok.
162
163 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
164
165         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
166         dispatch: use iterator_traits<>::value_type, not _Tp.
167
168 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
169
170         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
171         * testsuite/25_algorithms/fill/2.cc: Likewise.
172
173 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
174             Paolo Carlini  <pcarlini@suse.de>
175
176         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
177         for fill and fill_n, respectively: when copying is cheap, use a
178         temporary to avoid a memory read in each iteration.
179
180 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
181
182         * testsuite/25_algorithms/fill/1.cc: New.
183         * testsuite/25_algorithms/fill/2.cc: Likewise.
184
185 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
186
187         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
188         Remove copy constructor and assignment operator.
189
190 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
191
192         * include/bits/concurrence.h (__gnu_cxx::lock): New.
193         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
194         (__pool_base::_M_get_mutex): New.
195         * include/bits/allocator.h: Tweak.
196         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
197         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
198         * include/bits/stl_threads.h: Remove.
199         * include/Makefile.am: Also here.
200         * include/Makefile.in: Regenerate.
201
202         * src/locale_init.cc: Use __gnu_cxx::lock.
203
204         * src/allocator.cc: Move all instantiations...
205         * src/allocator-inst.cc: ...here.
206         
207 2004-06-23  Andrew Pinski  <apinski@apple.com>
208
209         * linkage.m4: Remove check for libmx.   
210         * configure: Regenerate.
211
212 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
213
214         PR libstdc++/16154
215         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
216         Don't require the _DefaultConstructibleConcept.
217         (struct _ForwardIteratorConcept): Require it here.
218
219 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
220
221         * include/bits/istream.tcc (getline): Make sure arguments passed
222         to min/max have the same type.
223         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
224         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
225
226 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
227
228         * docs/html/abi.html: Update links.
229
230 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
231
232         * testsuite/26_numerics/complex_inserters_extractors.cc,
233         complex_value.cc, buggy_complex.cc: Move to...
234         * testsuite/26_numerics/complex/: ... here.
235         * testsuite/26_numerics/c99_classification_macros_c++.cc,
236         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
237         fabs_inline.cc: Move to...
238         * testsuite/26_numerics/cmath/: ... here.
239         * testsuite/26_numerics/binary_closure.cc, slice.cc,
240         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
241         valarray_name_lookup.cc, valarray_operators.cc,
242         valarray_subset_assignment.cc: Move to...
243         * testsuite/26_numerics/valarray/: ... here (new dir).
244         * testsuite/26_numerics/sum_diff.cc: Move to...
245         * testsuite/26_numerics/numeric/: ... here (new dir).
246
247 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
248
249         * include/std/std_istream.h (ignore(streamsize __n = 1,
250         int_type __delim = traits_type::eof())): Split into...
251         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
252         int_type __delim)): The first two can be much more simpler
253         and efficient than the fully general case; also, the last
254         two can take advantage of the same mechanism already used
255         for getline.
256         * include/bits/istream.tcc (ignore(streamsize __n = 1,
257         int_type __delim = traits_type::eof()): Remove.
258         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
259         int_type __delim)): New.
260
261 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
262
263         * config/linker-map.gnu: Use wildcards for
264         __basic_file::sys_open(FILE*, _Ios_Openmode).
265
266 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
267
268         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
269
270 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
271
272         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
273         the alignment requested.
274         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
275         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
276         (__mt_alloc<>::deallocate): Likewise.
277
278 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
279
280         PR libstdc++/16020
281         * include/debug/safe_base.h
282         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
283         _Safe_sequence_base::operator=): Provide definitions.
284         * testsuite/23_containers/bitset/cons/16020.cc: New.
285
286 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
287
288         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
289         (__pool_base): Remove unused template parameter.  Add
290         protected. Move lock data into __pool_base::_Lock. Remove static
291         on member functions.
292         (__pool_base::_M_get_free_list): New.
293         (__pool_alloc): Move _S_force new here.
294         * src/allocator.cc: Move out of line __pool_base definitions here.
295         * config/linker-map.gnu: Export bits from __pool_base.
296         
297 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
298
299         * config/locale/gnu/numeric_members.cc
300         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
301         assignments of _M_decimal_point and _M_thousands_sep.
302         * config/locale/gnu/time_members.cc
303         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
304         and reformat assignments of date and time fields.
305
306 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
307
308         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
309         to use _Data_allocate.
310         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
311         (rope<>::_S_substring): Likewise.
312         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
313         (rope<>::c_str()): Likewise.
314         (rope<>::replace_with_c_str()): Likewise.
315
316         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
317         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
318         not _RopeRep.
319         (_Rope_iterator_base<>::_S_setcache): Likewise.
320         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
321         (rope<>::_S_substring): Likewise.
322         (rope<>::_S_dump): Likewise.
323         (rope<>::_S_fetch_ptr): Likewise.
324         (rope<>::_S_compare): Likewise.
325         (rope<>::replace_with_c_str()): Likewise.               
326
327         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
328         * testsuite/ext/rope/2.cc: New.
329
330 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
331             Matt Austern  <austern@apple.com>
332
333         * testsuite/ext/rope/3.cc: New.
334
335 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
336
337         * acinclude.m4: Remove useless multilib configury.
338         * Makefile.am: Remove useless multilib rules.
339         * aclocal.m4: Regenerate.
340         * Makefile.in: Regenerate.
341         * configure: Regenerate.
342
343 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
344
345         * include/ext/hashtable.h: Trivial formatting fixes.
346         * include/ext/rb_tree: Likewise.
347
348 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
349
350         * include/ext/hash_map: Trivial formatting fixes.
351         * include/ext/hash_set: Likewise.
352         * include/ext/memory: Likewise.
353         * include/ext/numeric: Likewise.
354
355 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
356
357         * Makefile.in: Regenerate with automake 1.8.5.
358         * aclocal.m4: Same.
359         * include/Makefile.in: Same.
360         * libmath/Makefile.in: Same.
361         * libsupc++/Makefile.in: Same.
362         * po/Makefile.in: Same.
363         * src/Makefile.in: Same.
364         * testsuite/Makefile.in: Same.
365
366 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
367
368         * include/ext/slist: Trivial formatting fixes.
369
370 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
371
372         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
373         Don't use the 'magic number' 10 in the computation of __minlen;
374         never access __name past __minlen; in the loop over __i3, don't
375         decrease __nmatches and increase __i3 at once, only either of
376         the two; tidy.
377
378 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
379
380         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
381         time_get<>::do_get_date): Use only once _M_extract_via_format,
382         instead of going through "%X"/"%x" and calling it two times
383         (+ using widen).
384
385 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
386
387         * include/ext/algorithm: Trivial formatting fixes.
388         * include/ext/functional: Likewise.
389         * include/ext/hash_fun.h: Likewise.
390         * include/ext/iterator: Likewise.
391
392 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
393
394         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
395         size_type)): Reimplement using std::search.
396         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
397
398 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
399
400         * testsuite/performance/21_strings/string_find.cc: New.
401
402 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
403
404         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
405
406 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
407
408         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
409         this function return a value.
410
411 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
412
413         PR libstdc++/15775
414         * include/bits/stl_deque.h: Consistently with stl_set.h, define
415         pointer as allocator's pointer, likewise for reference,
416         const_pointer, and const_reference.
417         * include/bits/stl_list.h: Likewise.
418         * include/bits/stl_map.h: Likewise.
419         * include/bits/stl_multimap.h: Likewise.
420         * include/bits/stl_vector.h: Likewise.
421
422 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
423
424         * crossconfig.m4: Remove signbit, signbitf, signbitl.   
425         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
426         builtin math functions instead of AC_DEFINE_UNQUOTED.
427         * configure: Regenerate.
428         
429 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
430
431         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
432         * docs/doxygen/mainpage.html: Remove links.
433
434 2004-06-08  Jason Merrill  <jason@redhat.com>
435
436         * config/linker-map.gnu: Use wildcards for
437         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
438
439 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
440
441         * include/ext/pool_allocator.h: Convert to a global free-list,
442         as per the original SGI/HP design: move the implementation
443         details to struct __pool_base, from which __pool_alloc derives.
444         * src/allocator.cc: Instantiate __pool_base.
445
446 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
447             Paolo Carlini  <pcarlini@suse.de>
448
449         * testsuite/testsuite_performance.h
450         (resource_counter::allocated_memory): Make it return the right
451         number of bytes requested by the allocators/application. This is
452         the sbrk+mmaped memory.
453
454 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
455
456         * include/std/std_complex.h (log): Tidy.
457
458 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
459
460         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
461         * testsuite/testsuite_abi.cc: Same.
462         * configure.ac (libtool_VERSION): Bump to 6:1:0.
463         * configure: Regenerate.
464         * aclocal.m4: Regenerate.
465         
466 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
467
468         * include/std/std_complex.h (complex<_Tp>): Properly indent
469         to follow C++STYLE. 
470         (complex<>::__rep): New.
471         (__complex_abs): New.  Dispatch to built-ins.
472         (abs): Use them.
473         (__complex_arg): New. Dispatch to built-ins.
474         (arg): Use it.
475         (__complex_cos): New. Dispatch to built-ins.
476         (cos): Use it.
477         (__complex_cosh): New. Dispatch to built-ins.
478         (cosh): Use it.
479         (__complex_exp): New. Dispatch to built-ins.
480         (exp): Use it.
481         (__complex_log): New. Dispatch to built-ins.
482         (log): Use it.
483         (__complex_sin): New. Dispatch to built-ins.
484         (sin): Use it.
485         (__complex_sinh): New. Dispatch to built-ins.
486         (sinh): Use it.
487         (__complex_sqrt): New. Dispatch to built-ins.
488         (sqrt): Use it.
489         (__complex_tan): New. Dispatch to built-ins.
490         (tan): Use it.
491         (__complex_tanh): New. Dispatch to built-ins.
492         (tanh): Use it.
493         (__complex_pow): New. Dispatch to built-ins.
494         (pow): Use it.
495
496 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
497             Benjamin Kosnik  <bkoz@redhat.com>
498         
499         PR libstdc++/14600
500         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
501         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
502         * config/io/basic_file_stdio.cc (__basic_file::file): New.
503         * config/io/basic_file_stdio.h: Define.
504
505 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
506
507         PR libstdc++/15675
508         * docs/html/documentation.html: Update doxygen links for 3.4.0.
509
510 2004-05-27  Jan Beulich  <jbeulich@novell.com>
511
512         * scripts/create_testsuite_files: Tweak.
513
514 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
515
516         PR libstdc++/15489
517         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
518         bits to do the same thing.
519
520 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
521
522         * include/bits/istream.tcc (ignore): Correctly deal with
523         n == numeric_limits<streamsize>::max().
524         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
525
526         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
527         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
528         __n == numeric_limits<>::min().
529
530         * include/bits/istream.tcc: Minor tweaks.
531
532         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
533         Tighten.
534         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
535         Likewise.
536         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
537         Likewise.
538         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
539         Likewise.
540         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
541
542 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
543
544         PR libstdc++/12854
545         Fixups for -Weffc++.    
546         * include/bits/basic_string.h (basic_string::operator=): Return
547         pointer to this instead of result of assign. Although redundant,
548         this doesn't impact resultant codegen.
549         
550         * include/bits/locale_facets.h (__numpunct_cache): Declare
551         assignment opxserator and copy constructor private.
552         (__timepunct_cache): Same.
553         (__moneypunct_cache): Same.
554         (collate): Use member initialization list for _M_c_locale_collate.
555         * config/locale/gnu/messages_members.h: Same.
556         * config/locale/gnu/time_members.h (__timepunct): Same. 
557         * src/codecvt.cc: Use member initialization list to initialize
558         _M_c_locale_codecvt.    
559         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
560         * config/os/gnu-linux/ctype_noninline.h: Same.
561         * src/locale.cc (_Impl): Same.
562         * src/locale_init.cc: Same.
563         * src/localename.cc: Same.      
564
565         * include/bits/basic_ios.h (basic_ios): Complete member
566         initialization list.
567         * include/bits/istream.tcc (basic_istream::sentry): Same.
568         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
569         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
570         _M_pback to member initialization list.
571         * include/std/std_streambuf.h: Same.
572         * include/std/std_sstream.h: Same, for _M_mode.
573         * src/ios.cc (ios_base): Same.
574         
575         * include/ext/rope: Make derived classes match exception
576
577          specifications. Add copy constructors and assignment operators.
578
579         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
580         constructor and assignment operator protected.
581         (_Safe_iterator_base): Same.
582         * include/debug/formatter.h (_Error_formatter): Define copy
583         constructor and assignment operator.
584
585         * include/backward/strstream: Declare assignment operator and copy
586         constructor private.
587
588 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
589
590         * testsuite/testsuite_hooks.h (func_callback): Declare copy
591         constructor and assignment operator private.    
592         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
593         exception specifications of base class.
594         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
595         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
596         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
597                 
598 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
599
600         * libsupc++/cxxabi.h: Remove duplicated and useless public and
601         private keywords in class declarations. Format. Use
602         stddef.h. Expose declarations to "C" compilation.
603         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
604         assignment operator.
605         (__dyncast_result): Same.
606         * libsupc++/vec.cc (uncatch_exception): Same, use member
607         initialization list.
608                  
609 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
610
611         * testsuite/abi_check.cc: Add unistd.h.
612
613 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
614
615         PR libstdc++/15565
616         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
617         __int_to_char(unsigned long long)): Showpos is not relevant
618         for unsigned types.
619         * testsuite/22_locale/num_put/put/char/15565.cc: New.
620         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
621
622         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
623         char.
624         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
625         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
626         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
627         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
628         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
629         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
630
631 2004-05-21  Matthias Klose  <doko@debian.org>
632  
633         * docs/doxygen/run_doxygen:  Bump required version.
634
635 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
636
637         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
638         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
639
640 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
641
642         * include/bits/istream.tcc (ignore): Remove redundant line.
643         (readsome): Tidy, closely following 27.6.1.3, p30.
644
645 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
646
647         * include/bits/istream.tcc (operator>>(basic_istream<>&,
648         basic_string<>&)): Use a temporary buffer, thus avoiding
649         reallocation for common case.
650         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
651         New.
652         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
653         Likewise.
654
655         * include/bits/istream.tcc: Const-ification of a few variables.
656
657         * include/bits/ostream.tcc: Trivial formatting fixes and
658         const-ification of some variables.
659
660 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
661
662         PR libstdc++/15123
663         PR libstdc++/13928
664         * docs/doxygen/Intro.3: Remove Allocators.3.
665         Add new extension headers, extension namespace list.
666         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
667         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
668         __gnu_debug::. Remove __policy_ renames.
669         * docs/doxygen/guide.html: Add dot note.
670         * docs/doxygen/stdheader.cc: Edit, add files.
671         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
672         
673 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
674
675         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
676
677 2004-05-18  Jan Beulich  <jbeulich@novell.com>
678  
679         PR libstdc++/15489
680         * scripts/create_testsuite_files: Also find source files through
681           symbolic links.
682
683 2004-05-18  Jan Beulich  <jbeulich@novell.com>
684
685         PR libstdc++/15488
686         * testsuite/lib/libstdc++.exp: Make test files writable.
687
688 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
689
690         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
691         tweaks.
692
693 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
694
695         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
696         allocation loop which removes blocks from the global free list
697         from O(N) to O(1) when the required blocks are <= the number
698         available.
699
700 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
701
702         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
703
704 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
705
706         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
707         * testsuite/23_containers/deque/14340.cc: New.
708         * testsuite/23_containers/list/14340.cc: New.
709         * testsuite/23_containers/map/14340.cc: New.
710         * testsuite/23_containers/multimap/14340.cc: New.
711         * testsuite/23_containers/multiset/14340.cc: New.
712         * testsuite/23_containers/set/14340.cc: New.
713         * testsuite/23_containers/vector/14340.cc: New.
714
715 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
716
717         PR libstdc++/14340 
718         * include/debug/safe_iterator.h (_Safe_iterator converting 
719         constructor): Only allow declaration to instantiate when the 
720         incoming _Safe_iterator has exactly the right iterator type.
721
722 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
723
724         * include/bits/boost_concept_check.h: Fix old attribute syntax.
725         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
726         to pass concept-checks.
727         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
728         * testsuite/23_containers/set/modifiers/swap.cc: Same.
729         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
730
731 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
732
733         * include/std/std_bitset.h: Minor formatting fixes.
734
735 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
736
737         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
738         Consistently update __bin._M_free[0].
739         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
740         __bin._M_free[0] to simplify the while loop (i.e., the number
741         of iterations becomes known at the outset).
742
743 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
744
745         * include/std/std_bitset.h: Trivial formatting fixes.
746
747 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
748             Ivan Godard  <igodard@pacbell.net>
749
750         PR libstdc++/15361
751         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
752         * testsuite/23_containers/bitset/ext/15361.cc: New.
753
754 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
755
756         PR libstdc++/15046
757         * crossconfig.m4: Add C99 math bits for linux crosses.
758         * configure: Regenerate.
759         
760 2004-05-13  Simon Marshall <simon.marshall@misys.com>
761             Benjamin Kosnik  <bkoz@redhat.com>
762
763         PR libstdc++/15090
764         * include/bits/locale_facets.h: Fix for -fno-for-scope.
765         * include/debug/safe_sequence.h: Same.
766         * include/debug/safe_iterator.tcc: Same.
767         * src/debug.cc: Same.
768         * src/locale.cc: Same.
769         * src/locale_init.cc: Same.
770         * src/localename.cc: Same.
771         * config/locale/gnu/ctype_members.cc: Same.
772         * config/locale/gnu/numeric_members.cc: Same.
773         * testsuite/testsuite_abi.cc: Same.
774         * testsuite/testsuite_hooks.cc: Same.
775         
776 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
777         
778         * docs/html/abi.html: Document effect of -fabi-version on value
779         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
780         Fix markup.
781
782 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
783
784         PR libstdc++/15074      
785         * docs/html/faq/index.html: Update docs for libsupc++ usage.
786
787 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
788
789         PR libstdc++/15412
790         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
791         __gnu_internal.
792         (_GLIBCXX_mutex_address): Same.
793         (_GLIBCXX_once): Same.  
794         (_GLIBCXX_mutex_init): Same.
795         (_GLIBCXX_mutex_address_init): Same.
796         
797 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
798         
799         * docs/html/abi.html: New.
800         * docs/html/abi.txt: Remove.
801         * docs/html/documentation.html: Add link.
802         * testsuite/Makefile.am: Add files.
803         * testsuite/Makefile.in: Regenerated.
804         * testsuite/abi_check.cc: Move and modify code into...
805         * testsuite/testsuite_abi.cc: Add.
806         * testsuite/testsuite_abi.h: Add.
807
808         * docs/html/17_intro/TODO: Update.
809         * include/bits/stl_pair.h: Format.
810         
811 2004-05-06  Matthias Klose  <doko@debian.org>
812
813         * include/backward/iterator.h:  Add GPL copyright info,
814         with exception clause.
815         * include/bits/boost_concept_check.h: Likewise.
816         * include
817         * libsupc++/tinfo.h: Likewise.
818         * po/string_literals.cc: Likewise.
819         
820 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
821
822         * acinclude.m4: Replace -W with more speaking -Wextra.
823         * configure: Rebuilt.
824
825 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
826
827         Optimize locale::_M_impl->_M_names for the most common cases:
828         !_M_names[0] means unnamed; !_M_names[1] means all the categories
829         the same name (_M_names[0] && _M_names[1] means that the full set
830         of _M_names must be processed, the general case).
831         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
832         Tweak, saving work when !_M_names[1].
833         (locale::locale(const locale&, _Facet*): Simplify: now just setting
834         _M_names[0] = 0 means unnamed.
835         * src/locale.cc (locale::operator==): Deal first with the common,
836         easy cases, otherwise fall back to locale::name().
837         (locale::name()): Tweak, if !_M_names[0] just return "*".
838         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
839         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
840         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
841         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
842         Simplify when !std::strchr, just updating _M_names[0]; clean up.
843         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
844         for the general case (full set of names), then do the usual work;
845         clean up.
846
847         * src/locale.cc (locale::name()): Reserve space in __ret.
848         * src/locale_init.cc (locale::global(const locale&)): Save
849         the name in a temporary.
850         * src/localename.cc (locale::locale(const char*)): Reserve space
851         in __str.
852
853 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
854
855         * src/locale.cc (locale::operator==): Always avoid constructing
856         locale::name(), directly compare pairs of _M_names.
857
858 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
859
860         * include/bits/istream.tcc: Fix comment.
861
862 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
863
864         * include/bits/stl_vector.h: Trivial formatting fixes.
865         * include/bits/vector.tcc: Likewise.
866
867 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
868
869         PR libstdc++/15002 (continued again)
870         * include/bits/istream.tcc (getline(basic_istream<>&,
871         basic_string<>&, _CharT)): Use a temporary buffer, thus
872         avoiding reallocation for common case.
873
874         * include/bits/basic_string.tcc (_S_construct(_InIterator,
875         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
876         of temporary buffer to a power of two.
877
878         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
879
880 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
881
882         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
883         New.
884         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
885         Likewise.
886         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
887
888 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
889             Petur Runolfsson  <peturr02@ru.is>
890
891         PR libstdc++/15002 (continued)
892         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
893         streamsize, char_type)): Use traits::find/copy in a loop to speed
894         up greatly the function in the common case (I/O buffer size >> 1).
895
896 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
897
898         * testsuite/27_io/basic_istream/getline/char/4.cc: New. 
899
900         * include/bits/istream.tcc (getline(basic_istream<>&,
901         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
902         of sbumpc(), consistently with the other functions, thus also
903         dealing correctly with the case of exceeded string::max_size().
904
905 2004-04-24  Matthias Klose  <doko@debian.org>
906
907         Jonathan Wakely  <cow@compsoc.man.ac.uk>
908         * docs/html/configopts.html: Fix reference to allocator config option.
909
910 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
911
912         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
913         * configure: Regenerate.
914
915 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
916
917         PR libstdc++/15047, libstdc++/11610
918         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
919         (libstdc++_init): Don't pass outdir to v3-copy-files.
920
921 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
922
923         * include/bits/deque.tcc: Trivial formatting fixes.
924         * include/bits/stl_deque.h: Likewise.
925         * include/bits/stl_list.h: Likewise.
926         * include/bits/stl_tree.h: Likewise.
927
928 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
929             Andrew Pinski  <pinskia@physics.uc.edu>
930
931         * include/bits/basic_string.tcc (_M_mutate): Don't compute
932         __src unnecessarily.
933
934 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
935
936         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc: 
937         Clarify assertion, set test variable to false before assert.
938         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
939         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
940         * testsuite/27_io/ios_base/storage/2.cc: Same.
941         
942         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
943         function returns.
944         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
945         * testsuite/27_io/fpos/14320-3.cc: Same.
946         
947         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
948         * testsuite/27_io/fpos/1.cc: Same.
949         * testsuite/27_io/basic_stringstream/2.cc: Same.
950         * testsuite/27_io/basic_stringbuf/4.cc: Same.
951         * testsuite/27_io/basic_stringbuf/1.cc: Same.
952         * testsuite/27_io/basic_stringbuf/2.cc: Same.
953         * testsuite/27_io/basic_streambuf/2.cc: Same.
954         * testsuite/27_io/basic_ostringstream/2.cc: Same.
955         * testsuite/27_io/basic_ostream/2.cc: Same.
956         * testsuite/27_io/basic_ofstream/2.cc: Same.
957         * testsuite/27_io/basic_istringstream/2.cc: Same.
958         * testsuite/27_io/basic_istream/2.cc: Same.
959         * testsuite/27_io/basic_iostream/2.cc: Same.
960         * testsuite/27_io/basic_ios/2.cc: Same.
961         * testsuite/27_io/basic_ifstream/2.cc: Same.
962         * testsuite/27_io/basic_fstream/2.cc: Same.
963         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
964
965         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
966         unsigned against zero.
967         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
968         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
969
970         * testsuite/18_support/new_delete_placement.cc: Initialize
971         variables before first use.
972         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
973         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
974         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
975         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
976         Same.
977         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
978         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
979         Same.
980         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
981         * testsuite/27_io/types/2.cc: Same.
982
983         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
984         file name.      
985         * testsuite/27_io/fpos/14775.cc: Same.
986         
987 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
988
989         PR libstdc++/15002 (partial)
990         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
991         Special case __n2 == 1, not calling traits_type::assign/copy. 
992
993 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
994
995         * include/bits/stl_bvector.h: Use _M_impl._M_start.
996         
997 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
998         
999         * include/bits/c++config (_GLIBCXX_STD): New.
1000         * src/list.cc: Use it.
1001         * include/std/std_bitset.h: Same.
1002         * include/bits/vector.tcc: Same.
1003         * include/bits/stl_set.h: Same.
1004         * include/bits/stl_multiset.h: Same.
1005         * include/bits/stl_multimap.h: Same.
1006         * include/bits/stl_map.h: Same.
1007         * include/bits/stl_list.h: Same.
1008         * include/bits/stl_vector.h: Same.
1009         * include/bits/stl_bvector.h: Same.
1010         * include/bits/stl_deque.h: Same.
1011         * include/bits/deque.tcc: Same.
1012         * include/bits/list.tcc: Same.
1013         * include/debug/vector: Same.
1014         * include/debug/set.h: Same.
1015         * include/debug/multiset.h: Same.
1016         * include/debug/multimap.h: Same.
1017         * include/debug/map.h: Same.
1018         * include/debug/list: Same.
1019         * include/debug/deque: Same.
1020         * include/debug/bitset: Same.   
1021         * include/debug/formatter.h (__gnu_debug): Remove using directive.
1022         Add using declaration for std::type_info.
1023         * include/debug/safe_iterator.h: Add using declaration for
1024         std::iterator_traits and std::pair.
1025         * src/debug_list.cc: New.
1026         * src/Makefile.am: Add debug_list.cc.
1027         * src/Makefile.in: Regenerate.
1028         * config/linker-map.gnu: Add _List_node_base exports for std and
1029         __gnu_norm.
1030
1031         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1032         idiom that other containers use.
1033         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1034                         
1035 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1036
1037         PR libstdc++/14975
1038         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1039         in case of error.
1040         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1041         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1042
1043 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1044
1045         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1046         used anymore.
1047         * config.h.in: Regenerate.
1048
1049 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
1050
1051         * config/locale/generic/monetary_members.cc
1052         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1053         btowc unnecessarily, just cast to wchar_t (the concerned chars
1054         all belong to the basic character set).
1055         * config/locale/generic/numeric_members.cc
1056         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1057         * config/locale/gnu/monetary_members.cc
1058         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1059         * config/locale/gnu/numeric_members.cc
1060         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1061
1062 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
1063
1064         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1065         avoid constructing unnecessarily this->name().
1066
1067 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
1068
1069         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1070         Change definition of CXX to use $(shell) instead of backticks.
1071         * testsuite/Makefile.in: Regenerate.
1072
1073 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
1074
1075         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1076         Minor formatting fixes.
1077         * testsuite/performance/20_util/allocator/map_mt_find.cc:
1078         Likewise.
1079
1080 2004-04-12  Paolo Carlini <pcarlini@suse.de>
1081
1082         * config/locale/gnu/numeric_members.cc
1083         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1084         in __uselocale, since btowc is called for chars belonging to
1085         the basic character set.
1086
1087 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
1088
1089         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1090         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1091         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1092         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1093         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1094         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1095         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1096         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1097         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1098         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1099         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1100         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1101         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1102         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1103         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1104         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1105         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1106
1107 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
1108
1109         * config/locale/generic/time_members.cc
1110         (__timepunct<char>::_M_initialize_timepunct,
1111         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1112         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1113         * config/locale/gnu/time_members.cc
1114         (__timepunct<char>::_M_initialize_timepunct,
1115         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1116         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1117         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1118
1119         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1120         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1121         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1122         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1123         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1124         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1125         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1126         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1127         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1128         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1129         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1130         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1131         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1132         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1133         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1134         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1135         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1136         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1137         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1138         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1139         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1140         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1141         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1142         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1143         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1144         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1145         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1146         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1147         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1148         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1149         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1150         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1151         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1152         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1153         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1154         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1155
1156         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1157
1158 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
1159
1160         * config/locale/gnu/monetary_members.cc
1161         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1162         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1163         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1164         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1165         * config/locale/gnu/numeric_members.cc
1166         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1167         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1168
1169 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
1170
1171         Fixups for EDG front end.
1172         * include/ext/rope: Instead of non-existent function
1173         _Data_allocate, use allocator's allocate. Use this.
1174         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1175         enumerations from _Rope_RopeRep here.
1176         * include/ext/ropeimpl.h: Same.
1177         * src/ext-inst.cc (_S_min_len): Fix up definition.
1178
1179         * config/locale/gnu/ctype_members.cc: Qualify base class members
1180         with this.
1181         * config/locale/generic/ctype_members.cc: Same.
1182         * config/locale/gnu/messages_members.h: Same.
1183         * config/locale/generic/messages_members.h: Same.
1184         * src/ctype.cc: Same.
1185         * include/bits/codecvt.h: Same.
1186
1187         * include/bits/boost_concept_check.h: Declare.
1188         (__error_type_must_be_an_unsigned_integer_type): Remove this.
1189         (__error_type_must_be_an_integer_type): Remove this.
1190         (__error_type_must_be_a_signed_integer_type): Remove this.
1191
1192         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1193
1194         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1195         specification to definition.
1196         (__cxa_allocate_exception): Same.
1197         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1198         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1199         (__cxa_get_globals): Same.
1200
1201         * libsupc++/del_op.cc: Add comment about freestanding.
1202
1203 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
1204
1205         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1206         The critical section is actually very small, only two assignments.
1207
1208 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
1209             Petur Runolfsson  <peturr02@ru.is>
1210
1211         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1212         adapted from libstdc++/11378.
1213
1214 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
1215
1216         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1217         some duplicated code.
1218         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1219         in the single threaded case.
1220         * testsuite/performance/20_util/allocator/list_sort_search.cc:
1221         Reorder and renumber the tests consistently with the other testfiles.
1222         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1223         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1224         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1225
1226 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
1227
1228         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1229         Rearrange arithmetic to avoid computing two divisions at
1230         each deallocation.
1231
1232 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
1233
1234         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1235         Streamline the second half, wrapping it in a single
1236         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1237         conditionals inside loops.
1238
1239 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
1240
1241         PR libstdc++/14775
1242         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1243         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1244         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1245         to _GLIBCXX_RES_LIMITS.
1246         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1247         HAVE_LIMIT_*.
1248         * testsuite/testsuite_hooks.h: Declare set_file_limit.
1249         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1250         and setrlimit(RLIMIT_FSIZE).
1251         * testsuite/27_io/fpos/14775.cc: New.
1252         * config.h.in: Regenerate.
1253         * configure: Likewise.
1254
1255 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
1256
1257         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1258         In v3 uses of sscanf, the special floating-point numbers INF,
1259         INFINITY, etc., cannot occur in input, therefore, if the latter
1260         is too large, ERANGE is always stored in errno, no need of finitel.
1261
1262 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
1263
1264         PR libstdc++/14783
1265         * include/bits/stl_tree.h: Adjust initialization list order.
1266
1267 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
1268
1269         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1270
1271 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
1272
1273         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1274         on allocator behavior, the memory pointed by data2 may well be not
1275         trashed.
1276
1277 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
1278
1279         PR libstdc++/14245
1280         * include/bits/basic_string.tcc
1281         (basic_string::basic_string(const basic_string&)): Pass to
1282         _Rep::_M_grab the actual allocator of the string being constructed
1283         not the default constructed one.
1284
1285 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
1286
1287         libstdc++ PR/13598
1288         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1289         (__enc_traits::_M_destroy): New.
1290         (__enc_traits::~__enc_traits): Use it.
1291         (__enc_traits::operator=): Use _M_destroy, _M_init.
1292         (__enc_traits::__enc_traits): Same.
1293
1294 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
1295
1296         * testsuite/ext/enc_filebuf/char/13598.cc: New.
1297
1298 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
1299
1300         * include/ext/mt_allocator.h: Uglify consistently names of
1301         variables, members and classes; tidy.
1302
1303 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
1304
1305         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1306         Deallocation loop rewrote.
1307
1308 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
1309
1310         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1311         __mt_alloc<>::deallocate): Protect two instances of
1312         block->thread_id with __GTHREADS.
1313
1314 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
1315
1316         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1317         default argument in constructors.
1318         (_Rb_tree::_M_empty_initialize): Remove.
1319
1320 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
1321
1322         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1323         * testsuite/23_containers/set/operators/1_neg.cc: Same.
1324
1325 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1326
1327         * include/bits/cpp_type_traits.h: Changed __is_pod
1328         completely. Now, it does not use any of the previous type_traits
1329         to detect the pod types, and it also detects function pointers as
1330         POD types.
1331
1332         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1333         which encapsulates the internal implementation of an rb_tree. Made
1334         the allocator a base class of this class instead of the rb_tree,
1335         which was not conforming. This _Rb_tree_impl class is also
1336         specialized on whether the _Compare parameter is a POD type or
1337         not. If so, then it maintains the comparison function as a data
1338         member, otherwise it makes the _Compare parameter a base class of
1339         itself. Also, _M_key_compare is now a function instead of a data
1340         member, so that the above trick can work properly. Delegated the
1341         initialization of the other data members to this newly created
1342         class. Also, now other member functions of rb_tree must refer to
1343         _M_key_compare as _M_impl._M_key_compare(). The other data members
1344         (*) can be referenced to as _M_impl.(*), where
1345         (*) includes _M_header, and _M_node_count.
1346
1347 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
1348
1349         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1350         Add _M_min_bin, the size in bytes of the smallest bin.
1351         (__mt_alloc<>::tune()): Tweak accordingly.
1352         (__mt_alloc<>::tune(size_t, ...)): Likewise.
1353         (__mt_alloc<>::block_record): Change to a union: members next
1354         and thread_id are never used at the same time.
1355         (__mt_alloc<>::allocate): Update consistently.
1356         (__mt_alloc<>::deallocate): Likewise.
1357         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1358         _S_bin_size for the configurable _M_min_size.
1359
1360 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1361
1362         * include/bits/stl_list.h: Created a _List_impl class and made it
1363         derive from the allocator, instead of the list deriving from the
1364         allocator class, which was not conformant. Changed all references
1365         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1366         as above (changed all references to the concerned variables).
1367
1368 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1369
1370         * include/bits/stl_deque.h: Created a _Deque_impl class and made
1371         it derive from the allocator, instead of the deque deriving from
1372         the allocator class, which was not conformant. Changed all
1373         references to the _M_start, _M_finish, _M_map, and _M_map_size to
1374         _M_impl.*.
1375         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1376         qualification in 2 places where it was missing.
1377         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1378         above.
1379         * include/bits/deque.tcc: Same as above (changed all references to
1380         the concerned variables).
1381
1382 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1383
1384         * include/bits/stl_vector.h: Created a _Vector_impl class and made
1385         it derive from the allocator, instead of the _Vector_base class,
1386         deriving from the allocator which was not conformant. Changed all
1387         references to the _M_start, _M_finish, and _M_end_of_storage to
1388         _M_impl.*.
1389         * include/bits/vector.tcc: Same as above (changed all references
1390         to the concerned variables).
1391
1392 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
1393
1394         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1395         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1396         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1397
1398 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
1399
1400         * include/ext/malloc_allocator.h: Fixed the construct function to
1401         call global placement new instead of assignment. Added a check
1402         after the return from malloc to check whether returned pointer is
1403         NULL, and if so, throw std::bad_alloc().
1404         * include/ext/debug_allocator.h: Added a check in the deallocate
1405         function to check whether the user has passed a NULL pointer or
1406         not.
1407
1408 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
1409
1410         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1411
1412 2004-03-24  Andreas Schwab  <schwab@suse.de>
1413
1414         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1415         warning from IA64 assembler.
1416
1417 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
1418
1419         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1420         function call __builtin_ctz instead of the while loop.
1421         (allocate) -> If condition has __builtin_expect.
1422         (deallocate) -> Ditto.
1423         Renamed a few left-over variables and typedefs according to the
1424         C++STYLE mentioned in the documentation.
1425         Protected calls to __gthread* by __gthread_active_p(), whose value
1426         is cached in the local variable __threads_active.
1427
1428 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
1429
1430         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1431         Use linear algorithm for producer.
1432
1433 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
1434
1435         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1436         __mt_alloc<>::deallocate): Avoid redundant conditionals.
1437
1438 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
1439
1440         * include/bits/locale_facets.h: Tweaks for 80 column.
1441         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1442         (__moneypunct_cache::_M_cache): Same.
1443         (num_get): Don't inherit from __num_base.
1444         (num_put): Same.
1445         (money_get): Don't inherit from money_base.
1446         (money_put): Same.
1447         (__timepunct::_M_am_pm_format): New.
1448         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1449         (time_get::_M_extract_name): Same.
1450         (time_get::_M_extract_via_format): Same.
1451         * include/bits/locale_facets.tcc: Tweaks for 80 column.
1452         Use _M_getloc instead of getloc.
1453         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1454         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1455         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1456
1457 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
1458
1459         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1460         * configure: Regenerate.
1461         * config/allocator/pool_allocator_base.h: New.
1462         * include/ext/pool_allocator.h: Convert to a standard-conforming
1463         allocator.
1464         * src/allocator.cc: Tweak instantiations.
1465         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1466         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1467         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1468         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1469         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1470         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1471
1472 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
1473
1474         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1475         inline" and attribute-unused.  Qualify parameter __mem with
1476         "volatile".
1477         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
1478
1479 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
1480
1481         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1482         Remove junk.
1483         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1484         Likewise.
1485         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1486         Likewise.
1487         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1488         Likewise.
1489         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1490         Likewise.
1491         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1492         Likewise.
1493         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1494         Likewise.
1495         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1496         Likewise.
1497         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1498         Likewise.
1499         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1500         Likewise.
1501
1502 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
1503
1504         * include/std/std_valarray.h: Document DR389 [Ready].
1505         * docs/html/ext/howto.html: Add an entry for DR389.
1506
1507 2004-03-19  Michael Eager  <eager@mvista.com>
1508
1509         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
1510         SC instructions.
1511
1512 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1513
1514         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1515         static_cast-s.
1516         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1517         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1518         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1519         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1520         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1521         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1522         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1523         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1524         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1525
1526 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1527             Petur Runolfsson  <peturr02@ru.is>
1528
1529         PR libstdc++/12077
1530         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1531         no way to find out the conversion used by the underlying FILE*.
1532         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1533         * testsuite/27_io/objects/char/9.cc: Tweak.
1534
1535 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
1536
1537         PR libstdc++/14648
1538         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1539         memory allocation/deallocation calls.
1540         * testsuite/ext/14648.cc: New.
1541
1542 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1543
1544         PR libstdc++/14647
1545         * include/backward/bvector.h (bit_vector): Allocator is in std
1546         namespace.
1547
1548 2004-03-19  Phil Edwards  <phil@codesourcery.com>
1549
1550         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
1551         not libiconv.  SUBST this variable as well.
1552         * testsuite/Makefile.am (site.exp):  New target, based on that
1553         created by automake.  Also set libiconv.
1554
1555         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1556         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1557         testsuite/Makefile.in:  Regenerate.
1558
1559 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
1560
1561         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1562         new_allocator for all hosts.
1563         * configure: Regenerate.
1564
1565 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
1566
1567         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1568         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1569
1570 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
1571
1572         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1573         Adjust the logic underlying the parsing of symbol to deal
1574         correctly with an optional sign component (i.e., when either
1575         negative_sign or positive_sign is empty)
1576         * testsuite/22_locale/money_get/get/char/19.cc: New.
1577         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1578
1579 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
1580
1581         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1582         Do not accept an incomplete currency symbol.
1583         * testsuite/22_locale/money_get/get/char/18.cc: New.
1584         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1585
1586 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
1587
1588         * config/allocator: New.
1589         * config/allocator/bitmap_allocator_base.h: New.
1590         * config/allocator/malloc_allocator_base.h: New.
1591         * config/allocator/mt_allocator_base.h: New.
1592         * config/allocator/new_allocator_base.h: New.
1593         * include/bits/allocator.h: Include c++allocator.h.
1594         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1595         * aclocal.m4: Regenerate.
1596         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1597         * configure: Regenerate.
1598         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1599         * include/Makefile.in: Regenerate.
1600         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1601
1602 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1603
1604         * include/bits/allocator.h: Revert.
1605
1606 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
1607
1608         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1609         * include/bits/gslice_array.h: Add comment about DR 253.
1610         * include/bits/indirect_array.h: Likewise.
1611         * include/bits/mask_array.h: Likewise.
1612         * include/bits/slice_array.h: Likewise.
1613
1614 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1615
1616         * testsuite/20_util/allocator/14176.cc: New.
1617         * include/ext/mt_allocator.h: Formatting fixes.
1618
1619 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
1620
1621         * include/Makefile.am (ext_headers): Add
1622         ${ext_srcdir}/bitmap_allocator.h .
1623         * include/Makefile.in: Regenerate.
1624         * docs/html/ext/ballocator_doc.txt: New file.
1625         * include/ext/bitmap_allocator.h: New file.
1626         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1627         test.
1628         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1629         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1630         test for the bitmap_allocator<>.
1631         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1632         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1633         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1634
1635 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
1636
1637         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1638         pow(const _Tp&, const complex&), pow(const complex&,
1639         const complex&)): Fully qualify with std:: a few calls.
1640         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1641
1642 2004-03-11  Steven Bosscher  <stevenb@suse.de>
1643
1644         PR libstdc++/11706
1645         * include/c_std/cmath.tcc (__cmath_power): Define inline.
1646
1647 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
1648
1649         * configure.ac: Bump AC_PREREQ to 2.59.
1650
1651 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
1652
1653         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1654
1655 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
1656             Paolo Carlini  <pcarlini@suse.de>
1657
1658         PR libstdc++/13450
1659         * include/std/std_complex.h (pow(const complex&, const _Tp&),
1660         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1661         * testsuite/26_numerics/complex/13450.cc: New.
1662
1663         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1664         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1665
1666 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
1667
1668         PR libstdc++/3247
1669         * include/bits/gslice_array.h (gslice_array()): Make public.
1670         (operator=(gslice_array)): Make public.  Implement.
1671         * include/bits/indirect_array.h (indirect_array()): Make public.
1672         * include/bits/mask_array.h (mask_array()): Make public.
1673         (operator=(mask_array)): Make public.  Implement.
1674         * include/bits/valarray_array.tcc (__valarray_copy):
1675         Comment.  Add versions for gslice_array and mask_array.
1676         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
1677
1678 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
1679
1680         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1681         non-weak systems.
1682         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1683         * testsuite/23_containers/set/modifiers/swap.cc: Same.
1684         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1685         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1686         * testsuite/23_containers/map/modifiers/swap.cc: Same.
1687         * testsuite/23_containers/list/modifiers/swap.cc: Same.
1688
1689         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1690
1691 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1692
1693         PR c++/13658
1694         * testsuite/23_containers/deque/modifiers/swap.cc: New.
1695         * testsuite/23_containers/list/modifiers/swap.cc: New.
1696         * testsuite/23_containers/map/modifiers/swap.cc: New.
1697         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1698         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1699         * testsuite/23_containers/set/modifiers/swap.cc: New.
1700         * testsuite/23_containers/vector/modifiers/swap.cc: New.
1701
1702 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
1703
1704         PR libstdc++/12658
1705         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1706
1707 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1708
1709         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1710         * include/bits/stl_multiset.h: Add comment about DR 103.
1711         * include/bits/stl_set.h: Likewise.
1712
1713 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1714
1715         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1716         The value _space_ indicates that at least one space is required
1717         at that position.
1718         * testsuite/22_locale/money_get/get/char/17.cc: New.
1719         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1720
1721         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1722         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1723
1724         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1725         Remove redundant conditional on __str.size().
1726
1727 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1728
1729         * include/bits/allocator.h: Switch defaults to mt_alloc.
1730
1731 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1732
1733         * include/ext/mt_allocator.h (_S_initialize): If
1734         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1735
1736 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1737
1738         PR libstdc++/12658
1739         * src/locale_init.cc (locale::locale): Lock critical regions with
1740         external mutexes.
1741         (locale::global): Same.
1742         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1743         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1744         (__glibcxx_mutex_lock): Same.
1745
1746         * config/cpu/generic/atomicity.h: Remove
1747         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1748         * src/misc-inst.cc: Move all locking bits out of this file.
1749
1750         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1751         * src/misc-inst.cc: Same.
1752         * config/cpu/hppa/atomicity.h: Same.
1753
1754         * config/linker-map.gnu: Remove types in the signature of atomic
1755         exports, as they may vary.
1756
1757 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1758
1759         * include/bits/locale_facets.tcc: Tweak the comment preceding
1760         has_facet: doesn't throw.
1761
1762 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1763
1764         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1765         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1766         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1767         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1768         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1769         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1770         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1771         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1772
1773 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1774
1775         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1776         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1777         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1778         * testsuite/testsuite_character.h (struct __gnu_test::character):
1779         Provide operator==.
1780         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1781         Likewise.
1782
1783 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
1784
1785         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1786
1787 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1788
1789         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1790
1791         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1792         returns 0.
1793         * testsuite/23_containers/deque/invalidation/4.cc: Same.
1794         * testsuite/23_containers/list/invalidation/1.cc: Same.
1795         * testsuite/23_containers/list/invalidation/2.cc: Same.
1796         * testsuite/23_containers/list/invalidation/3.cc: Same.
1797         * testsuite/23_containers/list/invalidation/4.cc: Same.
1798         * testsuite/23_containers/map/invalidation/2.cc: Same.
1799         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1800         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1801         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1802         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1803         * testsuite/23_containers/set/invalidation/1.cc: Same.
1804         * testsuite/23_containers/set/invalidation/2.cc: Same.
1805         * testsuite/23_containers/vector/invalidation/1.cc: Same.
1806         * testsuite/23_containers/vector/invalidation/2.cc: Same.
1807         * testsuite/23_containers/vector/invalidation/3.cc: Same.
1808         * testsuite/23_containers/vector/invalidation/4.cc: Same.
1809
1810 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
1811
1812         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1813         CXXFLAGS_save.
1814         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1815         DEFAULT_CXXFLAGS.
1816         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1817         from the dg-options.
1818         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1819         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1820         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1821         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1822         * testsuite/23_containers/vector/resize/1.cc: Likewise.
1823         * testsuite/26_numerics/complex_value.cc: Likewise.
1824         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1825         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1826         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1827         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1828         * testsuite/27_io/objects/char/5.cc: Likewise.
1829         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1830         * testsuite/backward/11460.cc: Likewise.
1831         * testsuite/thread/pthread7-rope.cc: Likewise.
1832
1833         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1834         missing test variable.
1835         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1836         missing test variable.
1837
1838 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1839
1840         * testsuite/20_util/allocator/1.cc: Provide explicit
1841         instantiations for non-weak systems.
1842         * testsuite/20_util/binders.cc: Same.
1843         * testsuite/20_util/allocator/8230.cc: Same.
1844         * testsuite/20_util/allocator/10378.cc: Same.
1845         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1846         * testsuite/22_locale/ctype/is/char/2.cc: Same.
1847         * testsuite/thread/pthread7-rope.cc: Same.
1848         * testsuite/thread/pthread6.cc: Same.
1849         * testsuite/thread/pthread5.cc: Same.
1850         * testsuite/thread/pthread4.cc: Same.
1851         * testsuite/thread/pthread1.cc: Same.
1852         * testsuite/ext/rope.cc: Same.
1853         * testsuite/ext/hash_set.cc: Same.
1854         * testsuite/ext/hash_map.cc: Same.
1855         * testsuite/ext/concept_checks.cc: Same.
1856         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1857         * testsuite/25_algorithms/unique/2.cc: Same.
1858         * testsuite/25_algorithms/unique/1.cc: Same.
1859         * testsuite/25_algorithms/rotate.cc: Same.
1860         * testsuite/25_algorithms/min_max.cc: Same.
1861         * testsuite/25_algorithms/equal.cc: Same.
1862         * testsuite/24_iterators/rel_ops.cc: Same.
1863         * testsuite/24_iterators/iterator.cc: Same.
1864         * testsuite/24_iterators/insert_iterator.cc: Same.
1865         * testsuite/24_iterators/front_insert_iterator.cc: Same.
1866         * testsuite/24_iterators/back_insert_iterator.cc: Same.
1867         * testsuite/23_containers/vector/resize/1.cc: Same.
1868         * testsuite/23_containers/vector/modifiers/2.cc: Same.
1869         * testsuite/23_containers/vector/modifiers/1.cc: Same.
1870         * testsuite/23_containers/vector/invalidation/4.cc: Same.
1871         * testsuite/23_containers/vector/invalidation/3.cc: Same.
1872         * testsuite/23_containers/vector/invalidation/2.cc: Same.
1873         * testsuite/23_containers/vector/invalidation/1.cc: Same.
1874         * testsuite/23_containers/vector/element_access/1.cc: Same.
1875         * testsuite/23_containers/vector/cons/6513.cc: Same.
1876         * testsuite/23_containers/vector/cons/3.cc: Same.
1877         * testsuite/23_containers/vector/cons/2.cc: Same.
1878         * testsuite/23_containers/vector/cons/1.cc: Same.
1879         * testsuite/23_containers/vector/capacity/8230.cc: Same.
1880         * testsuite/23_containers/vector/capacity/1.cc: Same.
1881         * testsuite/23_containers/vector/bool/6886.cc: Same.
1882         * testsuite/23_containers/stack/members/7158.cc: Same.
1883         * testsuite/23_containers/set/invalidation/2.cc: Same.
1884         * testsuite/23_containers/set/invalidation/1.cc: Same.
1885         * testsuite/23_containers/queue/members/7157.cc: Same.
1886         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1887         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1888         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1889         * testsuite/23_containers/multiset/insert/1.cc: Same.
1890         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1891         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1892         * testsuite/23_containers/map/operators/1.cc: Same.
1893         * testsuite/23_containers/map/invalidation/2.cc: Same.
1894         * testsuite/23_containers/map/invalidation/1.cc: Same.
1895         * testsuite/23_containers/map/insert/1.cc: Same.
1896         * testsuite/23_containers/list/operators/4.cc: Same.
1897         * testsuite/23_containers/list/operators/3.cc: Same.
1898         * testsuite/23_containers/list/operators/2.cc: Same.
1899         * testsuite/23_containers/list/operators/1.cc: Same.
1900         * testsuite/23_containers/list/modifiers/3.cc: Same.
1901         * testsuite/23_containers/list/modifiers/2.cc: Same.
1902         * testsuite/23_containers/list/modifiers/1.cc: Same.
1903         * testsuite/23_containers/list/invalidation/4.cc: Same.
1904         * testsuite/23_containers/list/invalidation/3.cc: Same.
1905         * testsuite/23_containers/list/invalidation/2.cc: Same.
1906         * testsuite/23_containers/list/invalidation/1.cc: Same.
1907         * testsuite/23_containers/list/cons/9.cc: Same.
1908         * testsuite/23_containers/list/cons/8.cc: Same.
1909         * testsuite/23_containers/list/cons/7.cc: Same.
1910         * testsuite/23_containers/list/cons/6.cc: Same.
1911         * testsuite/23_containers/list/cons/5.cc: Same.
1912         * testsuite/23_containers/list/cons/4.cc: Same.
1913         * testsuite/23_containers/list/cons/3.cc: Same.
1914         * testsuite/23_containers/list/cons/2.cc: Same.
1915         * testsuite/23_containers/list/cons/1.cc: Same.
1916         * testsuite/23_containers/list/capacity/1.cc: Same.
1917         * testsuite/23_containers/deque/operators/1.cc: Same.
1918         * testsuite/23_containers/deque/invalidation/4.cc: Same.
1919         * testsuite/23_containers/deque/invalidation/3.cc: Same.
1920         * testsuite/23_containers/deque/invalidation/2.cc: Same.
1921         * testsuite/23_containers/deque/invalidation/1.cc: Same.
1922         * testsuite/23_containers/deque/cons/2.cc: Same.
1923         * testsuite/23_containers/deque/cons/1.cc: Same.
1924
1925         * src/allocator.cc: Add char, wchar_t instantiations
1926         to match extern template declarations in memory.h.
1927
1928 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
1929
1930         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1931         Fix warning regression.
1932
1933 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
1934
1935         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1936         Deal properly with empty __digits and negative frac_digits,
1937         clean-up a bit.
1938
1939 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
1940
1941         * docs/html/documentation.html: Regenerate.
1942
1943 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
1944
1945         PR libstdc++/14320
1946         * include/bits/postypes.h (class streamoff): Remove, now
1947         streamoff is just typedef a 64 bit signed integer type.
1948         (class fpos): Tweak consistently.
1949         * testsuite/27_io/fpos/14320-1.cc: New.
1950         * testsuite/27_io/fpos/14320-2.cc: New.
1951         * testsuite/27_io/fpos/14320-3.cc: New.
1952         * testsuite/27_io/fpos/14320-4.cc: New.
1953         * testsuite/27_io/fpos/14320-5.cc: New.
1954         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1955
1956 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
1957
1958         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1959         Reorganize a bit the main parsing loop, thus early detecting
1960         an empty value component.
1961         * testsuite/22_locale/money_get/get/char/16.cc: New.
1962         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1963
1964 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
1965
1966         Support automake 1.8.2
1967         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1968         * po/Makefile.am (EXTRA_DIST): New.
1969         * po/Makefile.in: Regenerate.
1970         * Makefile.in: Same.
1971         * include/Makefile.in: Same.
1972         * libmath/Makefile.in: Same.
1973         * libsupc++/Makefile.in: Same.
1974         * src/Makefile.in: Same.
1975         * testsuite/Makefile.in: Same.
1976
1977         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1978         __GXX_WEAK__ instead of SUPPORTS_WEAK.
1979         (${host_builddir}/gthr-default.h): Same.
1980         (${host_builddir}/gthr.h): Same.
1981         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1982         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1983         -fno-weak.
1984         * aclocal.m4: Regenerate.
1985         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1986         * config.h.in: Regenerate.
1987         * configure: Same.
1988
1989 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
1990
1991         Support autoconf 2.59
1992         * acinclude.m4: Quote correctly.
1993         * aclocal.m4: Regenerate.
1994         * linkage.m4: Same.
1995
1996 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
1997
1998         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1999
2000         * docs/html/18_support/howto.html: Add bit about writing to
2001         stderr, mostly by Zack.
2002
2003 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2004
2005         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2006         money_get<>::do_get(string_type&)): ... and two more.
2007
2008 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2009
2010         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2011         Fix thinkos in the switch from string_type& to string& as last
2012         argument.
2013
2014 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2015
2016         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2017         Also when parsing exponent sign, first look for thousands_sep
2018         and decimal_point; tweak a bit.
2019         * testsuite/22_locale/num_get/get/char/15.cc: New.
2020         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2021
2022         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2023         num_get<>::_M_extract_int): Reorder some conditionals.
2024
2025 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
2026
2027         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2028         Consistently with numpunct, enforce the requirements in
2029         22.2.6.3, p3 for the thousands separators; tweak a bit.
2030         * testsuite/22_locale/money_get/get/char/15.cc: New.
2031         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2032
2033 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
2034
2035         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2036         testsuite_files from correct multilib blddir when running
2037         testsuite.
2038
2039 2004-02-29  Phil Edwards  <phil@codesourcery.com>
2040
2041         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
2042         the summary file to the logfile.
2043         * testsuite/Makefile.in:  Regenerate.
2044
2045 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2046
2047         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2048         volatile.
2049         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2050         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2051
2052 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
2053
2054         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2055         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2056         no 'decimal-point' in the middle: in this case too we must fix
2057         up __found_grouping; slightly tweak.
2058         * testsuite/22_locale/num_get/get/char/14.cc: New.
2059         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2060
2061 2004-02-27  Eric Christopher  <echristo@redhat.com>
2062             Phil Edwards  <phil@codesourcery.com>
2063
2064         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2065         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2066         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2067         testsuite/22_locale/collate/hash/wchar_t/2.cc,
2068         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2069         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2070         testsuite/22_locale/collate/transform/wchar_t/2.cc,
2071         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2072         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2073         Use dg-require-iconv.
2074         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
2075
2076 2004-02-27  Phil Edwards  <phil@codesourcery.com>
2077             Eric Christopher  <echristo@redhat.com>
2078
2079         * testsuite/config/default.exp:  Update with comments.
2080         (${tool}_target_compile):  New wrapper routine.
2081         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
2082         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
2083         fixes.
2084         (load_gcc_lib, v3track):  New routines.
2085         (v3-init):  Rename to libstdc++_init.
2086         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
2087         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2088
2089 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
2090
2091         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2092
2093         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2094
2095         * config/os/irix/irix5.2/atomicity.h: Merge..
2096         * config/os/irix/irix6.5/atomicity.h: Merge..
2097         * config/os/irix/atomicity.h: ...into this.
2098         * config/os/irix/atomic_word.h: New.
2099         * configure.host: Set atomic_word_dir for irix.
2100
2101         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2102         * i386/atomicity.h: Same.
2103         * m68k/atomicity.h: Same.
2104         * sparc/atomicity.h: Same.
2105
2106 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
2107
2108         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2109         static, and inline keywords.
2110
2111 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
2112
2113         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2114         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2115         call reserve on the __tmp_gruping string.
2116         (num_get<>::_M_extract_float): Don't append unnecessarily a
2117         char() to the returned string.
2118         * include/bits/locale_facets.tcc: Trivial reformattings.
2119
2120 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
2121
2122         * include/bits/locale_facets.h (money_get<>::_M_extract):
2123         Change signature: now takes a plain string&.
2124         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2125         Update consistently the definition; use the moneypunct cache
2126         to parse the value; use swap to change __units.
2127         (money_get<>::do_get(long double&)): Update call of _M_extract,
2128         avoid ctype::narrow, not correct wrt the standard.
2129         (money_get<>::do_get(string_type&)): Likewise, update call
2130         of _M_extract, use ctype::widen.
2131         * src/locale-inst.cc: Tweak instantiations of _M_extract.
2132
2133 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
2134
2135         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2136         * testsuite/demangle/abi_examples/02.cc: Likewise.
2137         * testsuite/demangle/regression/cw-11.cc: Likewise.
2138         * testsuite/demangle/regression/cw-16.cc: Change two expected
2139         results to match libiberty demangler output.
2140
2141 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
2142
2143         PR libstdc++/10246
2144         * libsupc++/Makefile.am: Use libiberty demangler.
2145         (c_sources): Add cp-demangle.c.
2146         * libsupc++/Makefile.in: Regenerate.
2147         * src/Makefile.am (sources): Remove demangle.cc.
2148         * src/Makefile.in: Regenerate.
2149         * include/Makefile.am (bits_headers): Move demangle.h.
2150         (ext_headers): ...here.
2151         * include/Makefile.in: Regenerate.
2152         * include/bits/demangle.h: Move...
2153         * include/ext/demangle.h: ...here.
2154         * src/demangle.cc: Remove.
2155
2156 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
2157
2158         * include/bits/demangle.h: Add type template parameter to all
2159         templates with just an Allocator template parameter.
2160
2161 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
2162
2163         * include/bits/atomicity.h: New, forward declarations for __atomic_add
2164         and __exchange_and_add.
2165         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2166         * config/cpu/cris/atomic_word.h: Same.
2167         * config/cpu/sparc/atomic_word.h: Same.
2168         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2169         Qualifiy with __gnu_cxx.
2170         (_Callback_list::_M_add_reference): Same.
2171         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2172         (locale::facet::_M_remove_reference): Same.
2173         (locale::_Impl::_M_add_reference): Add.
2174         (locale::_Impl::_M_remove_reference): Same.
2175         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2176         (basic_string::_Rep::_M_dispose): Same.
2177         * src/ios.cc (ios_base::xalloc): Same.
2178         * src/ios_init.cc (ios_base::Init::Init): Same.
2179         (ios_base::Init::~Init): Same.
2180         * src/locale.cc (locale::id::_M_id): Same.
2181         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2182         static, and inline keywords.
2183         * config/cpu/alpha/atomicity.h: Same.
2184         * config/cpu/cris/atomicity.h: Same.
2185         * config/cpu/generic/atomicity.h: Same.
2186         * config/cpu/hppa/atomicity.h: Same.
2187         * config/cpu/i386/atomicity.h: Same.
2188         * config/cpu/ia64/atomicity.h: Same.
2189         * config/cpu/m68k/atomicity.h: Same.
2190         * config/cpu/mips/atomicity.h: Same.
2191         * config/cpu/powerpc/atomicity.h: Same.
2192         * config/cpu/s390/atomicity.h: Same.
2193         * config/cpu/sparc/atomicity.h: Same.
2194
2195         * src/Makefile.am (host_sources): Add atomicity.cc.
2196         (atomicity.cc): New rule.
2197         * src/Makefile.in: Regenerate.
2198         * include/Makefile.am (host_headers): Remove host atomicity.h.
2199         (host_headers): Add atomic_word.h.
2200         (bits_headers): Add bits atomicity.h.
2201         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2202         * include/Makefile.in: Regenerate.
2203         * configure.host (atomic_word_dir): Add.
2204         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2205         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2206         * configure: Regenerate.
2207         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2208
2209         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2210         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2211
2212 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
2213
2214         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2215         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2216         Fix markup, more <link> tags.
2217
2218 2004-02-25  Carlo Wood  <carlo@alinoe.com>
2219
2220         * bits/demangle.h
2221         namespace __gnu_cxx::demangler
2222         (session<Allocator>::qualifier_list_Allocator): Add
2223         (session<Allocator>::M_qualifier_list_alloc): Add
2224         (session<Allocator>::decode_type_with_postfix):
2225         Use M_qualifier_list_alloc instead of calling operator new/delete.
2226
2227 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
2228
2229         PR libstdc++/14252
2230         * include/bits/postypes.h (class streamoff): Add operator++(),
2231         operator++(int), operator--() and operator--(int).
2232         * testsuite/27_io/fpos/14252.cc: New.
2233
2234 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
2235
2236         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2237         error in handling of hex constants.
2238
2239 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
2240
2241         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2242         Prefer basic_string::append to operator+= and a temporary.
2243
2244 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
2245
2246         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2247         Only use fputs, not write.
2248
2249 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
2250
2251         * include/ext/malloc_allocator.h: Add operators ==, !=.
2252         * include/ext/new_allocator.h: Add operators ==, !=.
2253         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2254         (__mt_alloc::_S_get_options): New.
2255         (__mt_alloc::_S_set_options): New.
2256         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2257         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2258         Move functions out of line, simplify, format.
2259         * src/allocator.cc: Simplify explicit instantiations.
2260         * include/bits/allocator.h: Tweak.
2261
2262 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
2263
2264         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2265         Restructure formatting of value component, first dealing with
2266         the non-decimal digits; use reserve.
2267
2268 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
2269
2270         * include/bits/locale_facets.h (class money_get): Inherit
2271         from money_base too; tweak declaration of _M_extract, now
2272         parameterized on _Intl too.
2273         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2274         Update definition to use the cache; call reserve on __res to
2275         avoid multiple reallocations; fix parsing of sign component
2276         according to 22.2.6.1.2, p3.
2277         (money_get<>::do_get(long double&),
2278         money_get<>::do_get(string_type&)): Update calls of _M_extract.
2279         * src/locale-inst.cc:  Add instantiations of
2280         money_get::_M_extract<false> and money_get::_M_extract<true>.
2281         * testsuite/22_locale/money_get/get/char/14.cc: New.
2282         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2283
2284 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
2285
2286         * libsupc++/vterminate.cc
2287         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2288         calls to terminate.
2289         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2290
2291         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2292         not set RLIMIT_AS on HP-UX.
2293
2294 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
2295
2296         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2297         not set RLIMIT_AS on HP-UX.
2298
2299 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
2300
2301         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2302         _S_zero, _S_end } enum, _S_atoms.
2303         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2304         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2305         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2306         (__moneypunct_cache<>::~__moneypunct_cache): Update.
2307         (__moneypunct_cache<>::_M_cache): Fill the cache.
2308         (class moneypunct): Tweak __cache_type typedef.
2309         (class money_put): Inherit from money_base too; tweak declaration
2310         of _M_insert, now parameterized on _Intl.
2311         * include/bits/locale_facets.tcc
2312         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2313         (money_put<>::_M_insert): Update definition to use the cache;
2314         call reserve on __res to avoid multiple reallocations.
2315         (money_put<>::do_put(long double),
2316         money_put<>::do_put(const string_type&): Update calls of _M_insert.
2317         * config/locale/generic/monetary_members.cc
2318         (moneypunct<char, true>::_M_initialize_moneypunct,
2319         moneypunct<char, false>::_M_initialize_moneypunct,
2320         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2321         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2322         * config/locale/gnu/monetary_members.cc: Likewise.
2323         * config/locale/gnu/monetary_members.cc
2324         (moneypunct<wchar_t, true>::~moneypunct(),
2325         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2326         * src/globals_locale.cc: Tweak fake_money_cache_c.
2327         * src/locale-inst.cc: Add instantiations for
2328         money_put::_M_insert<false> and money_put::_M_insert<true> and
2329         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2330         * src/locale_facets.cc: Define money_base::_S_atoms.
2331         * src/locale_init.cc: Update placement new of
2332         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2333         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2334
2335         * config/locale/generic/numeric_members.cc: Clean up.
2336         * config/locale/gnu/numeric_members.cc: Likewise.
2337         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2338         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2339         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2340         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2341         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2342         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2343
2344 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
2345
2346         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2347         FIFO for writing with ios_base::in|ios_base::out.
2348         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2349         * testsuite/27_io/objects/char/7.cc: Likewise.
2350         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2351         with "r+".
2352
2353 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
2354
2355         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2356         from iso-8859-1 to ISO8859-1.
2357         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2358         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2359         * 22_locale/collate/hash/wchar_t/2.cc: Same.
2360         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2361         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2362         * 22_locale/collate/transform/wchar_t/2.cc: Same.
2363         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2364         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2365
2366 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
2367
2368         * include/bits/locale_facets.h (money_get<>::_M_extract):
2369         New, helper for do_get.
2370         (money_put<>::_M_insert): Likewise, for do_put.
2371         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2372         money_put<>::_M_insert): Define.
2373         (money_get<>::do_get(long double&), money_get<>::do_get(
2374         string_type&), money_put::do_put(long double),
2375         money_put::do_put(const string_type&)): Use the helpers.
2376
2377 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
2378
2379         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2380         Rewrite, avoiding recursion.
2381         (__gnu_internal::xwrite): Minor tweaks.
2382
2383 2004-02-17  Stefan Olsson  <stefan@xapa.se>
2384
2385         * include/ext/mt_allocator.h: Removed the last
2386         pointer. Deallocated blocks are now added to the front of
2387         freelists as proposed by Felix Yen.  This gives roughly 10%
2388         performance boost and saves some memory.
2389         * docs/html/ext/mt_allocator.html: Change due to that deallocated
2390         blocks now are added to the front of freelists. The reason to this
2391         approach is also explained.
2392
2393 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
2394
2395         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2396         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2397         grouping fidelity conditional.
2398
2399 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2400
2401         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2402         Qualify exception with std::.
2403         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2404         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2405         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2406         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2407         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2408
2409 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2410
2411         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2412         for now that the catch block is not reached.
2413         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2414
2415 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
2416
2417         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2418         Fix parsing of the remaining sign characters.
2419         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2420         the input is scanned 'til eof.
2421         * 22_locale/money_get/get/char/4.cc: Likewise.
2422         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2423         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2424         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2425         not do_pos_format: the former is the only one that matters during
2426         input.
2427         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2428
2429         * 22_locale/money_get/get/char/6.cc: Minor tweak.
2430         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2431
2432 2004-02-15  David Asher  <david.asher@cavium.com>
2433
2434         PR libstdc++/11352
2435         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2436         access __olds beyond __oldlen.
2437
2438 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
2439
2440         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2441         sure the exception is actually thrown.
2442         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2443         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2444         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2445
2446 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
2447
2448         PR libstdc++/13858
2449         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2450         In case of conversion errors, throw ios_failure; simplify.
2451         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2452         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2453         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2454         previously we didn't throw in case of conversion errors, instead
2455         just returned eof().
2456         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2457         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2458         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2459
2460         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2461         Trivial simplification of a conditional.
2462
2463 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
2464
2465         PR libstdc++/13731 (final part: writev)
2466         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2467         New, a wrapper around writev() handling partial writes.
2468         (__basic_file<char>::xwrite): Move to __gnu_internal and make
2469         static.
2470         (__basic_file<char>::xsputn): Update call.
2471         (__basic_file<char>::xsputn_2): Likewise.
2472         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2473         Don't declare, now static.
2474
2475 2004-02-11  Stefan Olsson  <stefan@xapa.se>
2476
2477         * docs/html/ext/mt_allocator.html: New.
2478
2479 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
2480
2481         * docs/html/20_util/allocator.html: New file, consolidate
2482         allocator information here. Revamp.
2483         * docs/html/documentation.html: Change links.
2484         * docs/html/20_util/howto.html: Same.
2485         * docs/html/ext/howto.html: Same.
2486
2487 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
2488
2489         PR libstdc++/13731 (first part: write)
2490         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2491         New, declare.
2492         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2493         Define it: a wrapper around write() handling partial write.
2494         (__basic_file<char>::xsputn): Use it.
2495         (__basic_file<char>::xsputn_2): Likewise.
2496
2497 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
2498             Petur Runolfsson  <peturr02@ru.is>
2499
2500         PR libstdc++/14078
2501         * include/std/std_istream.h (operator>>(__istream_type& (*)
2502         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2503         operator>>(ios_base& (*)(ios_base&))): Declare inline.
2504         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2505         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2506         operator<<(ios_base& (*) (ios_base&))): Likewise.
2507         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2508
2509 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
2510
2511         PR libstdc++/14098
2512         * config/linker-map.gnu: Add typeinfo and typeinfo name for
2513         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2514
2515         PR libstdc++/14097
2516         * config/linker-map.gnu: Add typeinfo and typeinfo name for
2517         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2518
2519 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
2520
2521         * include/ext/pool_allocator.h: Include c++config.h.
2522
2523 2004-02-09  Stefan Olsson  <stefan@xapa.se>
2524
2525         * include/ext/mt_allocator.h: thread_id is unused in non threaded
2526         applications and now has a ifdef to remove it completely on
2527         compilers without thread support. Include stdlib.h due to a
2528         compiler warning on getenv().
2529
2530 2004-02-09  Paul Brook  <paul@codesourcery.com>
2531
2532         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2533
2534 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
2535
2536         PR libstdc++/14071
2537         * src/locale_init.cc (locale::global(const locale&)): Use
2538         locale::name() in order to decide whether calling setlocale.
2539         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2540
2541         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2542         Avoid computing &= unnecessarily.
2543
2544 2004-02-09  James E Wilson  <wilson@specifixinc.com>
2545
2546         PR libstdc++/5625
2547         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2548         __builtin_extend_pointer.
2549
2550 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
2551
2552         PR libstdc++/14072
2553         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2554         Don't leave dangling pointers.
2555         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2556         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2557         facet is needed in the final test.
2558
2559 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
2560
2561         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2562         * configure: Regenerate.
2563
2564 2004-02-08  Richard Henderson  <rth@redhat.com>
2565
2566         PR libstdc++/14026
2567         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2568         uncaughtExceptions during nested catch rethrow.
2569         * testsuite/18_support/14026.cc: New.
2570
2571 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
2572
2573         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2574         When working in place remember to set the state to sharable
2575         (otherwise, _M_mutate does it).
2576
2577 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
2578
2579         * include/bits/allocator.h, include/bits/basic_ios.h,
2580         include/bits/basic_ios.tcc, include/bits/basic_string.h,
2581         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2582         include/bits/char_traits.h, include/bits/codecvt.h,
2583         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2584         include/bits/demangle.h, include/bits/deque.tcc,
2585         include/bits/fstream.tcc, include/bits/functexcept.h,
2586         include/bits/gslice.h, include/bits/gslice_array.h,
2587         include/bits/indirect_array.h, include/bits/ios_base.h,
2588         include/bits/istream.tcc, include/bits/list.tcc,
2589         include/bits/locale_classes.h, include/bits/locale_facets.h,
2590         include/bits/locale_facets.tcc, include/bits/localefwd.h,
2591         include/bits/mask_array.h, include/bits/ostream.tcc,
2592         include/bits/postypes.h, include/bits/slice_array.h,
2593         include/bits/sstream.tcc, include/bits/stl_algo.h,
2594         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2595         include/bits/stl_construct.h, include/bits/stl_deque.h,
2596         include/bits/stl_function.h, include/bits/stl_heap.h,
2597         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2598         include/bits/stl_list.h, include/bits/stl_map.h,
2599         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2600         include/bits/stl_numeric.h, include/bits/stl_pair.h,
2601         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2602         include/bits/stl_relops.h, include/bits/stl_set.h,
2603         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2604         include/bits/stl_threads.h, include/bits/stl_tree.h,
2605         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2606         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2607         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2608         include/bits/type_traits.h, include/bits/valarray_after.h,
2609         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2610         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2611         trailing whitespace.
2612
2613 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2614
2615         * include/bits/basic_string.h: Fix comment.
2616
2617 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2618
2619         * include/bits/stl_construct.h: Wrap overlong lines, reformat
2620         according to the coding standards.
2621         * include/bits/stl_pair.h: Likewise.
2622         * include/bits/stl_raw_storage_iter.h: Likewise.
2623         * include/bits/stl_stack.h: Likewise.
2624         * include/bits/stl_uninitialized.h: Likewise.
2625         * include/bits/stream_iterator.h: Likewise.
2626         * include/bits/streambuf_iterator.h: Likewise.
2627         * include/bits/type_traits.h: Likewise.
2628
2629 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
2630
2631         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2632         Adjust timings.
2633
2634 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
2635
2636         * scripts/check_performance: Support PCH.
2637
2638         * scripts/check_performance (CXX): Add -DNOTHREAD.
2639         * testsuite/performance/20_util/allocator/insert.cc: Integrate
2640         threaded tests from insert_insert.cc.  Tweak iterations,
2641         remove special cases.
2642         * testsuite/performance/20_util/allocator/insert_insert.cc:
2643         Make all tests single-threaded. Tweak iterations.
2644         * testsuite/performance/20_util/allocator/map_thread.cc:
2645         Tweak iterations.
2646         * testsuite/performance/20_util/allocator/producer_consumer.cc:
2647         Likewise.
2648
2649 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
2650
2651         PR 12179
2652         * .cvsignore: New.
2653         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2654         'gcc-lib'.  Add comment about poorly-named variables.
2655         * aclocal.m4: Regenerate.
2656         * configure: Regenerate.
2657
2658 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2659
2660         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2661         Thousands-sep are always optional; thousands-sep are not allowed
2662         after the decimal_point.
2663         * testsuite/22_locale/money_get/get/char/12.cc: New.
2664         * testsuite/22_locale/money_get/get/char/13.cc: New.
2665         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2666         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2667
2668         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2669         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2670         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2671         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2672         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2673         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2674         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2675         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2676
2677         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2678         the standard.
2679         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2680
2681 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
2682
2683         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2684         Define.
2685         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2686         it to decide whether FIONREAD should take an off_t or int argument.
2687
2688 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2689
2690         * include/bits/stl_function.h: Minor formatting changes.
2691
2692 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
2693
2694         Revert previous change to config/abi/*/baseline_symbols.txt.
2695
2696 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2697             Zack Weinberg  <zack@codesourcery.com>
2698
2699         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2700         New function.
2701         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2702         (__basic_file<char>::_M_open_mode): Delete.
2703         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2704
2705         * testsuite/27_io/basic_filebuf/close/char/9964.cc
2706         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2707         Correct flags to filebuf::open calls.
2708
2709         * config/abi/alpha-freebsd5/baseline_symbols.txt
2710         * config/abi/alpha-linux-gnu/baseline_symbols.txt
2711         * config/abi/hppa-linux-gnu/baseline_symbols.txt
2712         * config/abi/i386-freebsd4/baseline_symbols.txt
2713         * config/abi/i386-freebsd5/baseline_symbols.txt
2714         * config/abi/i486-linux-gnu/baseline_symbols.txt
2715         * config/abi/ia64-linux-gnu/baseline_symbols.txt
2716         * config/abi/mips-linux-gnu/baseline_symbols.txt
2717         * config/abi/sparc-freebsd5/baseline_symbols.txt
2718         * config/abi/sparc-linux-gnu/baseline_symbols.txt
2719         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2720         Remove entry for __basic_file<char>::_M_open_mode.
2721
2722 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
2723
2724         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2725
2726 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
2727
2728         * testsuite/performance/20_util/producer_consumer.cc: New.
2729         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2730
2731 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2732
2733         * testsuite/performance/20_util/allocator.cc: Move to..
2734         * testsuite/performance/20_util/allocator/insert.cc: ...here.
2735         * testsuite/performance/20_util/allocator_thread.cc: Move to...
2736         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2737         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2738         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2739
2740 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
2741
2742         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2743         * docs/html/faq/index.txt: Regenerate.
2744
2745 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
2746
2747         * include/ext/debug_allocator.h: _M_extra now stands for the
2748         number of extra objects instead of the number of extra bytes.
2749         (debug_allocator::allocate): Adjust.
2750         (debug_allocator::deallocate): Adjust.
2751
2752         * include/ext/pool_allocator.h: Fix typo.
2753
2754 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
2755             Benjamin Kosnik  <bkoz@redhat.com>
2756
2757         * testsuite/performance/20_util/allocator.cc: Add map,
2758         deque, set tests.
2759         * testsuite/performance/20_util/allocator_thread.cc: Same.
2760
2761 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2762
2763         * include/bits/basic_string.h (insert(iterator)): Remove,
2764         non-standard and already scheduled for removal.
2765
2766 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2767
2768         * include/bits/stl_iterator_base_funcs.h: Minor formatting
2769         and indentation tweaks.
2770         * include/bits/stl_iterator_base_types.h: Likewise.
2771         * include/bits/stl_list.h: Likewise.
2772         * include/bits/stl_map.h: Likewise.
2773         * include/bits/stl_tempbuf.h: Likewise.
2774
2775 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
2776
2777         * include/bits/gslice.h, include/bits/gslice_array.h,
2778         include/bits/indirect_array.h, include/bits/mask_array.h,
2779         include/bits/slice_array.h, include/bits/stl_numeric.h,
2780         include/std/std_valarray.h:  Update copyright years.
2781
2782 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
2783
2784         * include/bits/gslice.h (gslice):  Document.
2785         * include/bits/gslice_array.h (gslice_array):  Document.
2786         * include/bits/indirect_array (indirect_array):  Document.
2787         * include/bits/mask_array (mask_array):  Document.
2788         * include/bits/slice_array.h (slice,slice_array):  Document.
2789         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2790         adjacent_difference):  Document
2791         * include/std/std_valarray.h (valarray):  Document.
2792
2793 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
2794
2795         * docs/html/19_diagnostics/howto.html: Move verbose terminate
2796         documentation...
2797         * docs/html/18_support/howto.html: Here.
2798         * docs/html/documentation.html: Add reference here.
2799
2800 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2801
2802         * config/locale/gnu/c++locale_internal.h: Remove prototypes
2803         of no longer used GLIBC thread locale functions.
2804
2805 2004-02-02  Eric Christopher  <echristo@redhat.com>
2806             Zack Weinberg  <zack@codesourcery.com>
2807
2808         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2809         -finput-charset.
2810         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2811         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2812         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2813         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2814         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2815         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2816         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2817         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2818         Ditto.
2819
2820 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2821
2822         * include/bits/stl_function.h: Additional minor tweaks.
2823         * include/bits/stl_multiset.h: Likewise.
2824
2825         * include/bits/stl_queue.h: Minor tweaks.
2826
2827 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2828
2829         PR libstdc++/13976 (continued)
2830         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2831         Make the second parameter unnamed, to void unused parameter
2832         warnings.
2833         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2834
2835 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2836
2837         PR libstdc++/13976
2838         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2839         Make the second parameter unnamed, to void unused parameter
2840         warnings.
2841         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2842         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2843
2844 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2845
2846         * include/bits/stl_algo.h: Additional minor tweaks.
2847         * include/bits/stl_map.h: Likewise.
2848         * include/bits/stl_multimap.h: Likewise.
2849         * include/bits/stl_multiset.h: Likewise.
2850         * include/bits/stl_set.h: Likewise.
2851         * include/bits/stl_tree.h: Likewise.
2852
2853 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2854
2855         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2856         Remove, unused.
2857
2858 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2859
2860         * include/bits/stl_function.h: Additional minor tweaks.
2861
2862 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2863
2864         * include/bits/deque.tcc: Wrap overlong lines, constify
2865         a few variables, reformat according to the coding standards.
2866         * include/bits/list.tcc: Likewise.
2867         * include/bits/stl_deque.h: Likewise.
2868         * include/bits/stl_function.h: Likewise.
2869         * include/bits/stl_iterator.h: Likewise.
2870         * include/bits/stl_iterator_base_funcs.h: Likewise.
2871         * include/bits/stl_iterator_base_types.h: Likewise.
2872         * include/bits/stl_list.h: Likewise.
2873         * include/bits/stl_map.h: Likewise.
2874         * include/bits/stl_multimap.h: Likewise.
2875         * include/bits/stl_multiset.h: Likewise.
2876         * include/bits/stl_relops.h: Likewise.
2877         * include/bits/stl_set.h: Likewise.
2878
2879 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2880
2881         * include/bits/stl_bvector.h: Wrap overlong lines, constify
2882         a few variables, reformat according to the coding standards.
2883         * include/bits/stl_tree.h: Likewise.
2884
2885 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2886
2887         * include/bits/stl_algo.h: Minor additional reformat, add
2888         copyright year.
2889         * include/bits/stl_algobase.h: Add copyright year.
2890
2891 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2892
2893         * include/bits/stl_algo.h: Wrap overlong lines, constify
2894         a few variables, reformat according to the coding standards.
2895         * include/bits/stl_algobase.h: Likewise.
2896         * include/bits/stl_heap.h: Likewise.
2897
2898 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2899
2900         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2901
2902         * include/bits/basic_string.h: Fix two comments.
2903
2904 2004-01-31  Per Bothner  <per@bothner.com>
2905
2906         * include/ext/mt_allocator.h
2907         (__mt_alloc::_S_thread_freelist_mutex): Guard with
2908         __GTHREAD_MUTEX_INIT.
2909
2910 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2911
2912         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2913
2914 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2915
2916         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2917         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2918         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2919
2920 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
2921
2922         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2923         Don't use clear, but instead assign. Use insert.
2924
2925 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
2926
2927         * src/demangle.cc: Add instantiations.
2928         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2929         * src/Makefile.in: Regenerate.
2930
2931 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
2932
2933         * src/allocator.cc: Protect _S_get_thread_id() and
2934         _S_thread_key_destr() with #ifdef __GTHREADS.
2935
2936 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2937
2938         Reshuffle performance testsuite.
2939         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2940         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2941         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2942         fstream_seek_write.cc, ifstream_extract_float.cc,
2943         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2944         list_create_fill_sort.cc, map_create_fill.cc,
2945         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2946         ofstream_insert_float.cc, ofstream_insert_int.cc,
2947         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2948         wchar_t_out.cc: Split into...
2949         * testsuite/performance/20_util/allocator.cc: New.
2950         * testsuite/performance/20_util/allocator_map_thread.cc: New.
2951         * testsuite/performance/20_util/allocator_thread.cc: New.
2952         * testsuite/performance/21_strings/string_append: New.
2953         * testsuite/performance/22_locale/is_wchar_t.cc: New.
2954         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2955         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2956         * testsuite/performance/22_locale/wchar_t_in.cc: New.
2957         * testsuite/performance/22_locale/wchar_t_length.cc: New.
2958         * testsuite/performance/22_locale/wchar_t_out.cc: New.
2959         * testsuite/performance/23_containers/container_benchmark.cc: New.
2960         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2961         * testsuite/performance/23_containers/map_create_fill.cc: New.
2962         * testsuite/performance/26_numerics/complex_norm.cc: New.
2963         * testsuite/performance/27_io/cout_insert_int.cc: New.
2964         * testsuite/performance/27_io/filebuf_copy.cc: New.
2965         * testsuite/performance/27_io/filebuf_sputc.cc: New.
2966         * testsuite/performance/27_io/fstream_seek_write.cc: New.
2967         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2968         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2969         * testsuite/performance/27_io/ifstream_getline.cc: New.
2970         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2971         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2972
2973 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2974
2975         * include/bits/basic_string.tcc (_Rep::_S_create):
2976         Never allocate a string bigger than max_size(); always keep
2977         __capacity and __size in sync to avoid memory leaks at
2978         deallocation time.
2979
2980 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2981
2982         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2983         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2984         the double loop, streamline.
2985
2986         * include/bits/basic_string.tcc: Very minor tweaks.
2987
2988 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
2989
2990         * scripts/check_performance: Only compile with $THREAD_FLAG
2991         when test is marked to require it.  Allow multiple
2992         compilations/executions of marked tests.
2993         * testsuite/testsuite_performance.h (report_performance):
2994         Report dynamic thread support status.
2995         (report_header): Likewise.
2996         * testsuite/performance/allocator.cc: Stabilize iteration
2997         count.  Support more allocators.  Mark each allocator test to
2998         run and report independently.
2999         * testsuite/performance/allocator_map_thread.cc: Likewise.
3000         * testsuite/performance/allocator_thread.cc: Likewise.
3001
3002 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
3003
3004         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3005         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3006         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3007         std::get_temporary_buffer() instead of duplicating its code.
3008         Update to C++STYLE conventions.
3009         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3010         new() instead of std::malloc().
3011         (return_temporary_buffer): Use ::operator delete() instead of
3012         std::free().
3013
3014 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
3015
3016         * include/bits/allocator.h: Temporary switch to new_allocator as
3017         the default to unjam bootstraps.
3018
3019 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
3020
3021         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3022         * include/Makefile.in: Regenerate.
3023         * include/bits/allocator_traits.h: Remove.
3024         * include/bits/allocator.h: Remove allocator_traits.h include, and
3025         relevant comments.
3026         (allocator): Empty base class, inherit from the underlying allocator.
3027         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3028         * src/allocator.cc: ...here. New. For the underlying allocators.
3029         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3030         * config/linker-map.gnu: Remove __pool_alloc bits.
3031         * src/Makefile.am (sources): Add allocator.cc.
3032         * src/Makefile.in: Regenerate.
3033         * testsuite/20_util/allocator/1.cc: Split second test into...
3034         * testsuite/20_util/allocator/8230.cc: ...this.
3035         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3036         typedef to use std::allocatore. Format.
3037         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3038         _Alloc_traits.
3039         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3040         __throw_bad_alloc calls. Don't include <memory>.
3041         * include/ext/malloc_allocator.h: Remove <memory> include.
3042         * include/ext/new_allocator.h (new_allocator): Same.
3043         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3044         declaration. Switch __alloc to _Alloc.
3045         * include/ext/hashtable.h: Remove __alloc.
3046         * include/backward/alloc.h: Only inject allocator, not
3047         implementation details.
3048
3049         * include/ext/mt_allocator.h: Replace free with delete.
3050
3051 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
3052
3053         * src/globals_io.cc: Change to __gnu_internal namespace.
3054         * src/globals_locale.cc: Same.
3055         * src/locale_init.cc: Same.
3056         * src/ios_init.cc: Same.
3057
3058 2004-01-28  Stefan Olsson  <stefan@snon.net>
3059
3060         * include/ext/mt_allocator.h: Replaced all malloc() calls with
3061         operator new(). Added support for the env variable
3062         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3063         one in allocate() as well). Fix typos.
3064
3065 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
3066
3067         * include/bits/basic_string.h (_S_create(size_t,
3068         const _Alloc&): Change signature to take two size_type
3069         arguments.
3070         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3071         _InIterator, const _Alloc&, input_iterator_tag)): Update
3072         call, tweak a bit.
3073         (_S_construct(_InIterator, _InIterator, const _Alloc&,
3074         forward_iterator_tag)): Likewise.
3075         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3076         (_M_mutate(size_type, size_type, size_type)): Don't
3077         implement the exponential growth policy, demand it to
3078         _S_create, update call and simplify.
3079         (_M_clone(const _Alloc&, size_type)): Likewise.
3080         (_S_create(size_type, size_type, const _Alloc&)): Implement
3081         the growth policy, simplify otherwise.
3082
3083         * include/bits/basic_string.h (_Rep::operator[]): Tweak
3084         signature to take a size_type, consistently with the other
3085         members.
3086
3087 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
3088
3089         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3090         delete declarations, add include and test variable.
3091
3092 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
3093
3094         * include/bits/codecvt.h, include/bits/locale_facets.h,
3095         include/bits/postypes.h, include/bits/stl_bvector.h,
3096         include/bits/stl_multiset.h, include/bits/stl_set.h,
3097         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3098         include/std/std_complex.h:  Document.
3099
3100 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
3101
3102         PR libstdc++/11584
3103         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
3104         iword/pword selector.
3105         (ios_base::iword, ios_base::pword):  Use it.
3106         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
3107         iword or pword member on alloc failure.
3108         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
3109
3110 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
3111             PJ Darcy  <darcypj@us.ibm.com>
3112
3113         * configure.host: Add support for *-tpf.
3114         * crossconfig.m4: Likewise.
3115         * configure: Regenerate.
3116         * config/os/tpf: New directory.
3117         * config/os/tpf/os_defines.h: New file.
3118         * config/os/tpf/ctype_base.h: Likewise.
3119         * config/os/tpf/ctype_inline.h: Likewise.
3120         * config/os/tpf/ctype_noninline.h: Likewise.
3121
3122 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
3123
3124         PR libstdc++/13884
3125         * include/bits/sstream.tcc: Guard use of extern template.
3126
3127 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
3128
3129         * include/bits/basic_string.tcc
3130         (basic_string(const basic_string&, size_type, size_type),
3131         basic_string(const basic_string&, size_type, size_type,
3132         const _Alloc&)): Avoid unnecessarily constructing iterators.
3133
3134 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3135
3136         * config/locale/generic/c_locale.cc: Fix throw messages
3137         to use the __N marker.
3138         * config/locale/gnu/c_locale.cc: Likewise.
3139         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3140         Likewise.
3141         * docs/html/17_intro/C++STYLE: Likewise.
3142         * include/bits/basic_ios.tcc: Likewise.
3143         * include/bits/fstream.tcc: Likewise.
3144         * include/bits/vector.tcc: Likewise.
3145         * include/ext/ropeimpl.h: Likewise.
3146         * include/std/std_bitset.h: Likewise.
3147         * src/ios.cc: Likewise.
3148         * src/locale.cc: Likewise.
3149         * src/localename.cc: Likewise.
3150
3151 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3152
3153         * include/bits/basic_string.h (_M_replace_aux): Use the
3154         __N marker in throw message.
3155         * include/bits/basic_string.tcc (assign(const _CharT*,
3156         size_type), insert(size_type, const _CharT*, size_type),
3157         replace(size_type, size_type, const _CharT*, size_type),
3158         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3159         Likewise.
3160
3161         * include/bits/basic_string.h, include/bits/basic_string.tcc:
3162         Fold overlong lines, minor formatting changes.
3163
3164 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3165
3166         * include/bits/basic_string.h (replace(iterator, iterator,
3167         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3168         (replace(iterator, iterator, const _CharT*)): Ditto.
3169         (replace(iterator, iterator, const _CharT*, size_type)):
3170         Add missing _GLIBCXX_DEBUG_PEDASSERT.
3171
3172 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
3173
3174         * include/bits/basic_string.tcc (replace(size_type,
3175         size_type, const _CharT*, size_type)): Implement optimized
3176         in-place algorithm for non-overlapping ranges.
3177         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3178         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3179
3180         * include/bits/basic_string.tcc (insert(size_type,
3181         const _CharT*, size_type)): Tweak slightly.
3182
3183 2004-01-26  Andreas Schwab  <schwab@suse.de>
3184
3185         * config/locale/gnu/monetary_members.cc: Restore locale before
3186         rethrowing exception.
3187
3188 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3189
3190         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3191         Define inline here.
3192         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3193         Move inline.
3194
3195         * include/bits/basic_string.tcc: Very minor tweaks.
3196
3197 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3198
3199         * testsuite/performance/string_append.cc: Increase number
3200         of iterations.
3201
3202 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
3203
3204         * include/bits/basic_string.h (erase(size_type, size_type),
3205         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3206         instead, thus avoiding redundant check for length_error.
3207
3208         * include/bits/basic_string.h: Tweak some comments.
3209
3210 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3211
3212         * include/bits/basic_string.tcc (operator+(const _CharT*,
3213         const basic_string&)): No need to go through the append
3214         taking two iterators.
3215
3216 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3217
3218         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3219         Revert last change to use std::min: machine language is worse.
3220         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3221         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3222         (find_last_not_of(_CharT, size_type)): Ditto.
3223
3224         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3225         size_type)): Discard the value returned by _M_check.
3226         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3227         (append(const basic_string&, size_type, size_type)): Ditto.
3228         (copy(_CharT*, size_type, size_type)): Ditto.
3229         (compare(size_type, size_type, const basic_string&)): Ditto.
3230         (compare(size_type, size_type, const basic_string&,
3231         size_type, size_type)): Ditto.
3232         (compare(size_type, size_type, const _CharT*)): Ditto.
3233         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3234
3235 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3236
3237         * include/bits/basic_string.h (insert(size_type,
3238         const basic_string&, size_type, size_type)): Define inline here.
3239         * include/bits/basic_string.tcc (insert(size_type,
3240         const basic_string&, size_type, size_type)): Move inline.
3241
3242 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
3243
3244         * include/bits/basic_string.h (assign(const basic_string&,
3245         size_type, size_type)): Define inline here.
3246         (replace(size_type, size_type, const basic_string&,
3247         size_type, size_type)): Ditto.
3248         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3249         _InputIterator, __false_type)): Only declare.
3250         (_M_replace(iterator, iterator, _InputIterator,
3251         _InputIterator)): Remove.
3252         * include/bits/basic_string.tcc (assign(const basic_string&,
3253         size_type, size_type)): Move inline.
3254         (replace(size_type, size_type, const basic_string&,
3255         size_type, size_type)): Ditto.
3256         (_M_replace_dispatch(iterator, iterator, _InputIterator,
3257         _InputIterator, __false_type)): Define, now does also what
3258         _M_replace did before.
3259         * src/string-inst.cc (_M_replace): Don't instantiate.
3260
3261         * include/bits/basic_string.tcc (find(const _CharT*,
3262         size_type, size_type)): Tidy.
3263         (rfind(_CharT, size_type)): Ditto.
3264         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3265         (find_first_not_of(_CharT, size_type)): Ditto.
3266         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3267         (find_last_not_of(_CharT, size_type)): Ditto.
3268
3269 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3270
3271         PR libstdc++/13838
3272         * include/debug/bitset (operator|=): Fix typo.
3273         * testsuite/23_containers/bitset/operations/13838.cc: New.
3274
3275 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3276
3277         * include/bits/basic_string.tcc (insert(size_type,
3278         const _CharT*, size_type __n)): Fix length_error check.
3279         (replace(size_type, size_type, const _CharT*, size_type):
3280         Ditto; call _M_replace_safe.
3281         (_M_replace_aux(size_type, size_type, size_type, _CharT):
3282         Fix length_error check.
3283         (_M_replace(iterator, iterator, _InputIterator,
3284         _InputIterator)): Ditto, tweak.
3285         (_M_replace_safe(size_type, size_type, const _CharT*,
3286         size_type)): Remove length_error check.
3287
3288         * include/bits/basic_string.tcc (append(const basic_string&),
3289         append(const basic_string&, size_type, size_type)): Tweak
3290         comment.
3291
3292         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3293         size_type)): If __n == 0 don't call traits::copy.
3294
3295 2004-01-23  Stefan Olsson  <stefan@snon.net>
3296
3297         * include/ext/mt_allocator.h: Reduce lock contention.
3298
3299 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3300
3301         PR libstdc++/13831
3302         * include/bits/fstream.tcc (underflow): Remove unused
3303         variable.
3304         * include/bits/streambuf_iterator.h (equal): Ditto.
3305         * include/bits/locale_facets.h (_M_convert_from_char):
3306         Ditto.
3307
3308 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3309
3310         PR c/13814
3311         * config/linker-map.gnu (nan): Delete.
3312         * libmath/mathconf.h (NAN, nan): Delete.
3313         * linkage.m4 (nan): Don't check for it.
3314         * libmath/nan.c: Delete file.
3315
3316         * config.h.in, configure: Regenerate.
3317
3318 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
3319
3320         * include/bits/basic_string.h (push_back(_CharT)):
3321  &n