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