OSDN Git Service

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