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