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