2004-02-11 Eric Christopher <echristo@redhat.com>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blobb74af678a174441f21c611f6bc643ae134339496
1 2004-02-11  Stefan Olsson  <stefan@xapa.se>
3         * docs/html/ext/mt_allocator.html: New.
5 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
7         * docs/html/20_util/allocator.html: New file, consolidate
8         allocator information here. Revamp.
9         * docs/html/documentation.html: Change links.
10         * docs/html/20_util/howto.html: Same.
11         * docs/html/ext/howto.html: Same.
13 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
15         PR libstdc++/13731 (first part: write)
16         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
17         New, declare.
18         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
19         Define it: a wrapper around write() handling partial write.
20         (__basic_file<char>::xsputn): Use it.
21         (__basic_file<char>::xsputn_2): Likewise.
23 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
24             Petur Runolfsson  <peturr02@ru.is>
26         PR libstdc++/14078
27         * include/std/std_istream.h (operator>>(__istream_type& (*)
28         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
29         operator>>(ios_base& (*)(ios_base&))): Declare inline.
30         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
31         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
32         operator<<(ios_base& (*) (ios_base&))): Likewise.
33         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
35 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
37         PR libstdc++/14098
38         * config/linker-map.gnu: Add typeinfo and typeinfo name for
39         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
41         PR libstdc++/14097
42         * config/linker-map.gnu: Add typeinfo and typeinfo name for
43         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
45 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
47         * include/ext/pool_allocator.h: Include c++config.h.
49 2004-02-09  Stefan Olsson  <stefan@xapa.se>
51         * include/ext/mt_allocator.h: thread_id is unused in non threaded
52         applications and now has a ifdef to remove it completely on
53         compilers without thread support. Include stdlib.h due to a
54         compiler warning on getenv().
56 2004-02-09  Paul Brook  <paul@codesourcery.com>
58         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
60 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
62         PR libstdc++/14071
63         * src/locale_init.cc (locale::global(const locale&)): Use
64         locale::name() in order to decide whether calling setlocale.
65         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
67         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
68         Avoid computing &= unnecessarily.
70 2004-02-09  James E Wilson  <wilson@specifixinc.com>
72         PR libstdc++/5625
73         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
74         __builtin_extend_pointer.
76 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
78         PR libstdc++/14072
79         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
80         Don't leave dangling pointers.
81         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
82         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
83         facet is needed in the final test.
85 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
87         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
88         * configure: Regenerate.
90 2004-02-08  Richard Henderson  <rth@redhat.com>
92         PR libstdc++/14026
93         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust 
94         uncaughtExceptions during nested catch rethrow.
95         * testsuite/18_support/14026.cc: New.
97 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
99         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
100         When working in place remember to set the state to sharable
101         (otherwise, _M_mutate does it).
103 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
105         * include/bits/allocator.h, include/bits/basic_ios.h,
106         include/bits/basic_ios.tcc, include/bits/basic_string.h,
107         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
108         include/bits/char_traits.h, include/bits/codecvt.h,
109         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
110         include/bits/demangle.h, include/bits/deque.tcc,
111         include/bits/fstream.tcc, include/bits/functexcept.h,
112         include/bits/gslice.h, include/bits/gslice_array.h,
113         include/bits/indirect_array.h, include/bits/ios_base.h,
114         include/bits/istream.tcc, include/bits/list.tcc,
115         include/bits/locale_classes.h, include/bits/locale_facets.h,
116         include/bits/locale_facets.tcc, include/bits/localefwd.h,
117         include/bits/mask_array.h, include/bits/ostream.tcc,
118         include/bits/postypes.h, include/bits/slice_array.h,
119         include/bits/sstream.tcc, include/bits/stl_algo.h,
120         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
121         include/bits/stl_construct.h, include/bits/stl_deque.h,
122         include/bits/stl_function.h, include/bits/stl_heap.h,
123         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
124         include/bits/stl_list.h, include/bits/stl_map.h,
125         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
126         include/bits/stl_numeric.h, include/bits/stl_pair.h,
127         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
128         include/bits/stl_relops.h, include/bits/stl_set.h,
129         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
130         include/bits/stl_threads.h, include/bits/stl_tree.h,
131         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
132         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
133         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
134         include/bits/type_traits.h, include/bits/valarray_after.h,
135         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
136         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
137         trailing whitespace.
139 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
141         * include/bits/basic_string.h: Fix comment.
143 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
145         * include/bits/stl_construct.h: Wrap overlong lines, reformat
146         according to the coding standards.
147         * include/bits/stl_pair.h: Likewise.
148         * include/bits/stl_raw_storage_iter.h: Likewise.
149         * include/bits/stl_stack.h: Likewise.
150         * include/bits/stl_uninitialized.h: Likewise.
151         * include/bits/stream_iterator.h: Likewise.
152         * include/bits/streambuf_iterator.h: Likewise.
153         * include/bits/type_traits.h: Likewise.
155 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
157         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
158         Adjust timings.
160 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
162         * scripts/check_performance: Support PCH.
164         * scripts/check_performance (CXX): Add -DNOTHREAD.
165         * testsuite/performance/20_util/allocator/insert.cc: Integrate
166         threaded tests from insert_insert.cc.  Tweak iterations,
167         remove special cases.
168         * testsuite/performance/20_util/allocator/insert_insert.cc:
169         Make all tests single-threaded. Tweak iterations.
170         * testsuite/performance/20_util/allocator/map_thread.cc:
171         Tweak iterations.
172         * testsuite/performance/20_util/allocator/producer_consumer.cc:
173         Likewise.
175 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
177         PR 12179
178         * .cvsignore: New.
179         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
180         'gcc-lib'.  Add comment about poorly-named variables.
181         * aclocal.m4: Regenerate.
182         * configure: Regenerate.
184 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
186         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
187         Thousands-sep are always optional; thousands-sep are not allowed
188         after the decimal_point.
189         * testsuite/22_locale/money_get/get/char/12.cc: New.
190         * testsuite/22_locale/money_get/get/char/13.cc: New.
191         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
192         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
194         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
195         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
196         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
197         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
198         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
199         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
200         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
201         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
203         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
204         the standard.
205         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
207 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
209         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
210         Define.
211         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
212         it to decide whether FIONREAD should take an off_t or int argument.
214 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
216         * include/bits/stl_function.h: Minor formatting changes.
218 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
220         Revert previous change to config/abi/*/baseline_symbols.txt.
222 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
223             Zack Weinberg  <zack@codesourcery.com>
225         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
226         New function.
227         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
228         (__basic_file<char>::_M_open_mode): Delete.
229         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
231         * testsuite/27_io/basic_filebuf/close/char/9964.cc
232         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
233         Correct flags to filebuf::open calls.
235         * config/abi/alpha-freebsd5/baseline_symbols.txt
236         * config/abi/alpha-linux-gnu/baseline_symbols.txt
237         * config/abi/hppa-linux-gnu/baseline_symbols.txt
238         * config/abi/i386-freebsd4/baseline_symbols.txt
239         * config/abi/i386-freebsd5/baseline_symbols.txt
240         * config/abi/i486-linux-gnu/baseline_symbols.txt
241         * config/abi/ia64-linux-gnu/baseline_symbols.txt
242         * config/abi/mips-linux-gnu/baseline_symbols.txt
243         * config/abi/sparc-freebsd5/baseline_symbols.txt
244         * config/abi/sparc-linux-gnu/baseline_symbols.txt
245         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
246         Remove entry for __basic_file<char>::_M_open_mode.
248 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
250         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
252 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
254         * testsuite/performance/20_util/producer_consumer.cc: New.
255         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
257 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
259         * testsuite/performance/20_util/allocator.cc: Move to..
260         * testsuite/performance/20_util/allocator/insert.cc: ...here.
261         * testsuite/performance/20_util/allocator_thread.cc: Move to...
262         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
263         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
264         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
266 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
268         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
269         * docs/html/faq/index.txt: Regenerate.
271 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
273         * include/ext/debug_allocator.h: _M_extra now stands for the
274         number of extra objects instead of the number of extra bytes.
275         (debug_allocator::allocate): Adjust.
276         (debug_allocator::deallocate): Adjust.
278         * include/ext/pool_allocator.h: Fix typo.
280 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
281             Benjamin Kosnik  <bkoz@redhat.com>
283         * testsuite/performance/20_util/allocator.cc: Add map,
284         deque, set tests.
285         * testsuite/performance/20_util/allocator_thread.cc: Same.
287 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
289         * include/bits/basic_string.h (insert(iterator)): Remove,
290         non-standard and already scheduled for removal.
292 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
294         * include/bits/stl_iterator_base_funcs.h: Minor formatting
295         and indentation tweaks.
296         * include/bits/stl_iterator_base_types.h: Likewise.
297         * include/bits/stl_list.h: Likewise.
298         * include/bits/stl_map.h: Likewise.
299         * include/bits/stl_tempbuf.h: Likewise.
301 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
303         * include/bits/gslice.h, include/bits/gslice_array.h,
304         include/bits/indirect_array.h, include/bits/mask_array.h,
305         include/bits/slice_array.h, include/bits/stl_numeric.h,
306         include/std/std_valarray.h:  Update copyright years.
308 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
310         * include/bits/gslice.h (gslice):  Document.
311         * include/bits/gslice_array.h (gslice_array):  Document.
312         * include/bits/indirect_array (indirect_array):  Document.
313         * include/bits/mask_array (mask_array):  Document.
314         * include/bits/slice_array.h (slice,slice_array):  Document.
315         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
316         adjacent_difference):  Document
317         * include/std/std_valarray.h (valarray):  Document.
319 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
321         * docs/html/19_diagnostics/howto.html: Move verbose terminate
322         documentation...
323         * docs/html/18_support/howto.html: Here.
324         * docs/html/documentation.html: Add reference here.
326 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
328         * config/locale/gnu/c++locale_internal.h: Remove prototypes
329         of no longer used GLIBC thread locale functions.
331 2004-02-02  Eric Christopher  <echristo@redhat.com>
332             Zack Weinberg  <zack@codesourcery.com>
334         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
335         -finput-charset.
336         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
337         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
338         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
339         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
340         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
341         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
342         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
343         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
344         Ditto.
346 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
348         * include/bits/stl_function.h: Additional minor tweaks.
349         * include/bits/stl_multiset.h: Likewise.
351         * include/bits/stl_queue.h: Minor tweaks.
353 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
355         PR libstdc++/13976 (continued)
356         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
357         Make the second parameter unnamed, to void unused parameter
358         warnings.
359         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
361 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
363         PR libstdc++/13976
364         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
365         Make the second parameter unnamed, to void unused parameter
366         warnings.
367         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
368         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
370 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
372         * include/bits/stl_algo.h: Additional minor tweaks.
373         * include/bits/stl_map.h: Likewise.
374         * include/bits/stl_multimap.h: Likewise.
375         * include/bits/stl_multiset.h: Likewise.
376         * include/bits/stl_set.h: Likewise.
377         * include/bits/stl_tree.h: Likewise.
379 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
381         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
382         Remove, unused.
384 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
386         * include/bits/stl_function.h: Additional minor tweaks.
388 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
390         * include/bits/deque.tcc: Wrap overlong lines, constify
391         a few variables, reformat according to the coding standards.
392         * include/bits/list.tcc: Likewise.
393         * include/bits/stl_deque.h: Likewise.
394         * include/bits/stl_function.h: Likewise.
395         * include/bits/stl_iterator.h: Likewise.
396         * include/bits/stl_iterator_base_funcs.h: Likewise.
397         * include/bits/stl_iterator_base_types.h: Likewise.
398         * include/bits/stl_list.h: Likewise.
399         * include/bits/stl_map.h: Likewise.
400         * include/bits/stl_multimap.h: Likewise.
401         * include/bits/stl_multiset.h: Likewise.
402         * include/bits/stl_relops.h: Likewise.
403         * include/bits/stl_set.h: Likewise.
405 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
407         * include/bits/stl_bvector.h: Wrap overlong lines, constify
408         a few variables, reformat according to the coding standards.
409         * include/bits/stl_tree.h: Likewise.
411 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
413         * include/bits/stl_algo.h: Minor additional reformat, add
414         copyright year.
415         * include/bits/stl_algobase.h: Add copyright year.
417 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
419         * include/bits/stl_algo.h: Wrap overlong lines, constify
420         a few variables, reformat according to the coding standards.
421         * include/bits/stl_algobase.h: Likewise.
422         * include/bits/stl_heap.h: Likewise.
424 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
426         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
428         * include/bits/basic_string.h: Fix two comments.
430 2004-01-31  Per Bothner  <per@bothner.com>
432         * include/ext/mt_allocator.h
433         (__mt_alloc::_S_thread_freelist_mutex): Guard with
434         __GTHREAD_MUTEX_INIT.
436 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
438         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
440 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
442         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
443         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
444         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
446 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
448         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
449         Don't use clear, but instead assign. Use insert.
451 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
453         * src/demangle.cc: Add instantiations.
454         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
455         * src/Makefile.in: Regenerate.
457 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
459         * src/allocator.cc: Protect _S_get_thread_id() and
460         _S_thread_key_destr() with #ifdef __GTHREADS.
462 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
464         Reshuffle performance testsuite.
465         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
466         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
467         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
468         fstream_seek_write.cc, ifstream_extract_float.cc,
469         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
470         list_create_fill_sort.cc, map_create_fill.cc,
471         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
472         ofstream_insert_float.cc, ofstream_insert_int.cc,
473         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
474         wchar_t_out.cc: Split into...
475         * testsuite/performance/20_util/allocator.cc: New.
476         * testsuite/performance/20_util/allocator_map_thread.cc: New.
477         * testsuite/performance/20_util/allocator_thread.cc: New.
478         * testsuite/performance/21_strings/string_append: New.
479         * testsuite/performance/22_locale/is_wchar_t.cc: New.
480         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
481         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
482         * testsuite/performance/22_locale/wchar_t_in.cc: New.
483         * testsuite/performance/22_locale/wchar_t_length.cc: New.
484         * testsuite/performance/22_locale/wchar_t_out.cc: New.
485         * testsuite/performance/23_containers/container_benchmark.cc: New.
486         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
487         * testsuite/performance/23_containers/map_create_fill.cc: New.
488         * testsuite/performance/26_numerics/complex_norm.cc: New.
489         * testsuite/performance/27_io/cout_insert_int.cc: New.
490         * testsuite/performance/27_io/filebuf_copy.cc: New.
491         * testsuite/performance/27_io/filebuf_sputc.cc: New.
492         * testsuite/performance/27_io/fstream_seek_write.cc: New.
493         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
494         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
495         * testsuite/performance/27_io/ifstream_getline.cc: New.
496         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
497         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
499 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
501         * include/bits/basic_string.tcc (_Rep::_S_create):
502         Never allocate a string bigger than max_size(); always keep
503         __capacity and __size in sync to avoid memory leaks at
504         deallocation time.
506 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
508         * include/bits/basic_string.tcc (_S_construct(_InIterator,
509         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
510         the double loop, streamline.
512         * include/bits/basic_string.tcc: Very minor tweaks.
514 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
516         * scripts/check_performance: Only compile with $THREAD_FLAG
517         when test is marked to require it.  Allow multiple
518         compilations/executions of marked tests.
519         * testsuite/testsuite_performance.h (report_performance):
520         Report dynamic thread support status.
521         (report_header): Likewise.
522         * testsuite/performance/allocator.cc: Stabilize iteration
523         count.  Support more allocators.  Mark each allocator test to
524         run and report independently.
525         * testsuite/performance/allocator_map_thread.cc: Likewise.
526         * testsuite/performance/allocator_thread.cc: Likewise.
528 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
530         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
531         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
532         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
533         std::get_temporary_buffer() instead of duplicating its code.
534         Update to C++STYLE conventions.
535         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
536         new() instead of std::malloc().
537         (return_temporary_buffer): Use ::operator delete() instead of
538         std::free().
540 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
542         * include/bits/allocator.h: Temporary switch to new_allocator as
543         the default to unjam bootstraps.
545 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
547         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
548         * include/Makefile.in: Regenerate.
549         * include/bits/allocator_traits.h: Remove.
550         * include/bits/allocator.h: Remove allocator_traits.h include, and
551         relevant comments.
552         (allocator): Empty base class, inherit from the underlying allocator.
553         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
554         * src/allocator.cc: ...here. New. For the underlying allocators.
555         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
556         * config/linker-map.gnu: Remove __pool_alloc bits.
557         * src/Makefile.am (sources): Add allocator.cc.
558         * src/Makefile.in: Regenerate.
559         * testsuite/20_util/allocator/1.cc: Split second test into...
560         * testsuite/20_util/allocator/8230.cc: ...this.
561         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
562         typedef to use std::allocatore. Format.
563         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
564         _Alloc_traits.
565         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
566         __throw_bad_alloc calls. Don't include <memory>.
567         * include/ext/malloc_allocator.h: Remove <memory> include.
568         * include/ext/new_allocator.h (new_allocator): Same.
569         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
570         declaration. Switch __alloc to _Alloc.
571         * include/ext/hashtable.h: Remove __alloc.
572         * include/backward/alloc.h: Only inject allocator, not
573         implementation details.
575         * include/ext/mt_allocator.h: Replace free with delete.
577 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
579         * src/globals_io.cc: Change to __gnu_internal namespace.
580         * src/globals_locale.cc: Same.
581         * src/locale_init.cc: Same.
582         * src/ios_init.cc: Same.
584 2004-01-28  Stefan Olsson  <stefan@snon.net>
586         * include/ext/mt_allocator.h: Replaced all malloc() calls with
587         operator new(). Added support for the env variable
588         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
589         one in allocate() as well). Fix typos.
591 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
593         * include/bits/basic_string.h (_S_create(size_t,
594         const _Alloc&): Change signature to take two size_type
595         arguments.
596         * include/bits/basic_string.tcc (_S_construct(_InIterator,
597         _InIterator, const _Alloc&, input_iterator_tag)): Update
598         call, tweak a bit.
599         (_S_construct(_InIterator, _InIterator, const _Alloc&,
600         forward_iterator_tag)): Likewise.
601         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
602         (_M_mutate(size_type, size_type, size_type)): Don't
603         implement the exponential growth policy, demand it to
604         _S_create, update call and simplify.
605         (_M_clone(const _Alloc&, size_type)): Likewise.
606         (_S_create(size_type, size_type, const _Alloc&)): Implement
607         the growth policy, simplify otherwise.
609         * include/bits/basic_string.h (_Rep::operator[]): Tweak
610         signature to take a size_type, consistently with the other
611         members.
613 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
615         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
616         delete declarations, add include and test variable.
618 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
620         * include/bits/codecvt.h, include/bits/locale_facets.h,
621         include/bits/postypes.h, include/bits/stl_bvector.h,
622         include/bits/stl_multiset.h, include/bits/stl_set.h,
623         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
624         include/std/std_complex.h:  Document.
626 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
628         PR libstdc++/11584
629         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
630         iword/pword selector.
631         (ios_base::iword, ios_base::pword):  Use it.
632         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
633         iword or pword member on alloc failure.
634         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
636 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
637             PJ Darcy  <darcypj@us.ibm.com>
639         * configure.host: Add support for *-tpf.
640         * crossconfig.m4: Likewise.
641         * configure: Regenerate.
642         * config/os/tpf: New directory.
643         * config/os/tpf/os_defines.h: New file.
644         * config/os/tpf/ctype_base.h: Likewise.
645         * config/os/tpf/ctype_inline.h: Likewise.
646         * config/os/tpf/ctype_noninline.h: Likewise.
648 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
650         PR libstdc++/13884
651         * include/bits/sstream.tcc: Guard use of extern template.
653 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
655         * include/bits/basic_string.tcc
656         (basic_string(const basic_string&, size_type, size_type),
657         basic_string(const basic_string&, size_type, size_type,
658         const _Alloc&)): Avoid unnecessarily constructing iterators.
660 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
662         * config/locale/generic/c_locale.cc: Fix throw messages
663         to use the __N marker.
664         * config/locale/gnu/c_locale.cc: Likewise.
665         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
666         Likewise.
667         * docs/html/17_intro/C++STYLE: Likewise.
668         * include/bits/basic_ios.tcc: Likewise.
669         * include/bits/fstream.tcc: Likewise.
670         * include/bits/vector.tcc: Likewise.
671         * include/ext/ropeimpl.h: Likewise.
672         * include/std/std_bitset.h: Likewise.
673         * src/ios.cc: Likewise.
674         * src/locale.cc: Likewise.
675         * src/localename.cc: Likewise.
677 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
679         * include/bits/basic_string.h (_M_replace_aux): Use the
680         __N marker in throw message.
681         * include/bits/basic_string.tcc (assign(const _CharT*,
682         size_type), insert(size_type, const _CharT*, size_type),
683         replace(size_type, size_type, const _CharT*, size_type),
684         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
685         Likewise.
687         * include/bits/basic_string.h, include/bits/basic_string.tcc:
688         Fold overlong lines, minor formatting changes.
690 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
692         * include/bits/basic_string.h (replace(iterator, iterator,
693         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
694         (replace(iterator, iterator, const _CharT*)): Ditto.
695         (replace(iterator, iterator, const _CharT*, size_type)):
696         Add missing _GLIBCXX_DEBUG_PEDASSERT.
698 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
700         * include/bits/basic_string.tcc (replace(size_type,
701         size_type, const _CharT*, size_type)): Implement optimized
702         in-place algorithm for non-overlapping ranges.
703         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
704         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
706         * include/bits/basic_string.tcc (insert(size_type,
707         const _CharT*, size_type)): Tweak slightly.
709 2004-01-26  Andreas Schwab  <schwab@suse.de>
711         * config/locale/gnu/monetary_members.cc: Restore locale before
712         rethrowing exception.
714 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
716         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
717         Define inline here.
718         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
719         Move inline.
721         * include/bits/basic_string.tcc: Very minor tweaks.
723 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
725         * testsuite/performance/string_append.cc: Increase number
726         of iterations.
728 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
730         * include/bits/basic_string.h (erase(size_type, size_type),
731         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
732         instead, thus avoiding redundant check for length_error.
734         * include/bits/basic_string.h: Tweak some comments.
736 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
738         * include/bits/basic_string.tcc (operator+(const _CharT*,
739         const basic_string&)): No need to go through the append
740         taking two iterators.
742 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
744         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
745         Revert last change to use std::min: machine language is worse.
746         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
747         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
748         (find_last_not_of(_CharT, size_type)): Ditto.
750         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
751         size_type)): Discard the value returned by _M_check.
752         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
753         (append(const basic_string&, size_type, size_type)): Ditto.
754         (copy(_CharT*, size_type, size_type)): Ditto.
755         (compare(size_type, size_type, const basic_string&)): Ditto.
756         (compare(size_type, size_type, const basic_string&,
757         size_type, size_type)): Ditto.
758         (compare(size_type, size_type, const _CharT*)): Ditto.
759         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
761 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
763         * include/bits/basic_string.h (insert(size_type,
764         const basic_string&, size_type, size_type)): Define inline here.
765         * include/bits/basic_string.tcc (insert(size_type,
766         const basic_string&, size_type, size_type)): Move inline.
768 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
770         * include/bits/basic_string.h (assign(const basic_string&,
771         size_type, size_type)): Define inline here.
772         (replace(size_type, size_type, const basic_string&,
773         size_type, size_type)): Ditto.
774         (_M_replace_dispatch(iterator, iterator, _InputIterator,
775         _InputIterator, __false_type)): Only declare.
776         (_M_replace(iterator, iterator, _InputIterator,
777         _InputIterator)): Remove.
778         * include/bits/basic_string.tcc (assign(const basic_string&,
779         size_type, size_type)): Move inline.
780         (replace(size_type, size_type, const basic_string&,
781         size_type, size_type)): Ditto.
782         (_M_replace_dispatch(iterator, iterator, _InputIterator,
783         _InputIterator, __false_type)): Define, now does also what
784         _M_replace did before.
785         * src/string-inst.cc (_M_replace): Don't instantiate.
787         * include/bits/basic_string.tcc (find(const _CharT*,
788         size_type, size_type)): Tidy.
789         (rfind(_CharT, size_type)): Ditto.
790         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
791         (find_first_not_of(_CharT, size_type)): Ditto.
792         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
793         (find_last_not_of(_CharT, size_type)): Ditto.
795 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
797         PR libstdc++/13838
798         * include/debug/bitset (operator|=): Fix typo.
799         * testsuite/23_containers/bitset/operations/13838.cc: New.
801 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
803         * include/bits/basic_string.tcc (insert(size_type,
804         const _CharT*, size_type __n)): Fix length_error check.
805         (replace(size_type, size_type, const _CharT*, size_type):
806         Ditto; call _M_replace_safe.
807         (_M_replace_aux(size_type, size_type, size_type, _CharT):
808         Fix length_error check.
809         (_M_replace(iterator, iterator, _InputIterator,
810         _InputIterator)): Ditto, tweak.
811         (_M_replace_safe(size_type, size_type, const _CharT*,
812         size_type)): Remove length_error check.
814         * include/bits/basic_string.tcc (append(const basic_string&),
815         append(const basic_string&, size_type, size_type)): Tweak
816         comment.
818         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
819         size_type)): If __n == 0 don't call traits::copy.
821 2004-01-23  Stefan Olsson  <stefan@snon.net>
823         * include/ext/mt_allocator.h: Reduce lock contention.
825 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
827         PR libstdc++/13831
828         * include/bits/fstream.tcc (underflow): Remove unused
829         variable.
830         * include/bits/streambuf_iterator.h (equal): Ditto.
831         * include/bits/locale_facets.h (_M_convert_from_char):
832         Ditto.
834 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
836         PR c/13814
837         * config/linker-map.gnu (nan): Delete.
838         * libmath/mathconf.h (NAN, nan): Delete.
839         * linkage.m4 (nan): Don't check for it.
840         * libmath/nan.c: Delete file.
842         * config.h.in, configure: Regenerate.
844 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
846         * include/bits/basic_string.h (push_back(_CharT)):
847         Call _M_replace_aux.
848         (insert(size_type, const basic_string&)): Trivial tweak.
849         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
850         (insert(iterator, _CharT)): Ditto.
851         (erase(size_type, size_type)): Ditto.
852         (erase(iterator)): Ditto.
853         (erase(iterator, iterator)): Ditto.
854         (replace(size_type, size_type, size_type, _CharT)): Ditto.
856 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
858         libstdc++/13823
859         * testsuite/performance/allocator_map_thread.cc: New test.
861 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
863         * include/bits/locale_facets.tcc
864         (money_put::do_put(..., long double)): Use the basic_string
865         constructor for char arrays, not that for C-strings, to pass
866         __digits to do_put(..., const string_type&): __ws isn't
867         null-terminated.
869 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
871         * include/bits/basic_string.h (_M_replace_safe): Change
872         signatures to take size_types and const _CharT*.
873         (_M_replace_aux): Likewise, takes size_types instead of
874         iterators.
875         (append(size_type, _CharT)): Update call.
876         (assign(size_type, _CharT)): Ditto.
877         (replace(iterator, iterator, size_type, _CharT)): Ditto.
878         (_M_replace_dispatch(iterator, iterator, _Integer,
879         _Integer, __true_type)): Ditto.
880         * include/bits/basic_string.tcc (assign(const _CharT*,
881         size_type)): Ditto.
882         (insert(size_type, const _CharT*, size_type)): Ditto.
883         (replace(size_type, size_type, const _CharT*,
884         size_type)): Ditto.
885         (_M_replace(iterator, iterator, _InputIterator,
886         _InputIterator)): Ditto.
887         (append(const basic_string&)): Ditto.
888         (append(const basic_string&, size_type, size_type): Ditto.
889         (append(const _CharT*, size_type): Ditto.
890         (_M_replace_safe, _M_replace_safe): Change definitions
891         accordingly, simplify.
892         * string-inst.cc (_M_replace_safe): Don't instantiate.
894 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
896         * include/bits/basic_string.tcc (append(const basic_string&)):
897         Revert previous change.
898         (append(const basic_string&, size_type, size_type)): Revert
899         previous change, use _M_check and _M_limit.
901 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
903         * include/bits/basic_string.h (_M_check): Change to return
904         a checked __pos and take an additional const char* argument.
905         (_M_fold): Rename to _M_limit, change to return a size_type,
906         corresponding to the __off limited to the actual length.
907         (insert(size_type, size_type, _CharT)): Update call, call
908         replace.
909         (insert(iterator, _CharT)): Call replace(iterator, iterator,
910         size_type, _CharT) instead.
911         (erase(size_type, size_type)): Update calls.
912         (replace(size_type, size_type, size_type, _CharT)): Ditto.
913         (substr(size_type, size_type)): Use _M_check.
914         * include/bits/basic_string.tcc (basic_string(const basic_string&,
915         size_type, size_type)): Update calls.
916         (basic_string(const basic_string&, size_type, size_type,
917         const _Alloc&)): Ditto.
918         (assign(const basic_string&, size_type, size_type)): Use the
919         new _M_check and _M_limit.
920         (insert(size_type, const basic_string&, size_type, size_type):
921         Ditto.
922         (insert(size_type, const _CharT*, size_type)): Ditto.
923         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
924         (replace(size_type, size_type, const basic_string&,
925         size_type, size_type)): Ditto.
926         (append(const basic_string&)): Ditto.
927         (append(const basic_string&, size_type, size_type)): Ditto.
928         (copy(_CharT*, size_type, size_type)): Ditto.
929         (compare(size_type, size_type, const basic_string&)): Ditto.
930         (compare(size_type, size_type, const basic_string&,size_type,
931         size_type)): Ditto.
932         (compare(size_type, size_type, const _CharT*)): Ditto.
933         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
935 2004-01-19  Stefan Olsson  <stefan@snon.net>
937         * include/ext/mt_allocator.h: If a thread, when it dies, still has
938         memory on it's freelist this memory is not returned to global
939         list. Simplification of deallocate so that memory is always
940         returned to the calling thread id's freelist instead of to
941         global. Fix typos. Add volatile where appropriate.
943 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
945         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
946         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
947         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
949 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
951         * src/debug.cc: Make sure all the names are prefixed with
952         double (or single) underscore.
954 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
956         * src/debug.cc: Trivial formatting change.
958 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
960         * include/bits/basic_string.tcc (_S_construct(size_type,
961         _CharT, const _Alloc&)): Remove redundant try/catch.
962         (_M_mutate(size_type, size_type, size_type)): Ditto.
963         (_M_clone(const _Alloc&, size_type)): Ditto.
965 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
967         * include/bits/basic_string.h (c_str()): Simplify, due to
968         21.3.4 the internal representation is always kept null-terminated.
969         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
970         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
971         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
972         Ditto.
974 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
976         * include/bits/basic_string.h (append(size_type, _CharT)):
977         Moved inline, just call _M_replace_aux, no source iterators at
978         risk of being clobbered.
979         (assign(size_type, _CharT)): Call directly _M_replace_aux.
980         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
981         input_iterator_tag)): Remove fifth unused argument.
982         (_M_replace_dispatch(iterator, iterator, _InputIterator,
983         _InputIterator, __false_type)): Update call.
984         * include/bits/basic_string.tcc (replace(size_type, size_type,
985         const _CharT*, size_type)): Update call.
986         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
987         throw string literal.
988         (_M_replace_safe(iterator, iterator, _ForwardIterator,
989         _ForwardIterator)): Likewise.
990         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
991         input_iterator_tag)): Remove fifth unused argument.
992         (append(size_type __n, _CharT __c)): Move inline.
993         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
994         const C*, const C*, input_iterator_tag)): Remove fifth unused
995         argument.
997 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
999         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
1000         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
1002 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
1004         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
1005         mkfifo for mingw32.
1007 2004-01-15  Stefan Olsson  <stefan@snon.net>
1009         * include/ext/mt_allocator.h: Reuse thread id's as soon as
1010         possible by changing the behaviour of thread_freelist to do
1011         push_front when threads die instead of push_back.
1013 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
1015         * include/bits/locale_facets.h (struct __numpunct_cache):
1016         Add member _M_grouping_size, caching the length of _M_grouping.
1017         (__numpunct_cache<>::_M_cache): Assign the latter.
1018         (__verify_grouping): Move declaration...
1019         * include/bits/locale_facets.tcc (__verify_grouping):
1020         ... here, change signature to take a const char* and a size_t
1021         for the grouping; not a template anymore.
1022         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
1023         Likewise change signature and tweak consistently.
1024         (num_get::_M_extract_float, num_get::_M_extract_int,
1025         num_put::_M_insert_int, num_put::_M_insert_float,
1026         money_get::do_get(string_type&), money_get::do_put(string_type)):
1027         Update callers.
1028         * config/locale/generic/numeric_members.cc
1029         (numpunct<>::_M_initialize_numpunct): Assign the new member.
1030         * config/locale/gnu/numeric_members.cc
1031         (numpunct<>::_M_initialize_numpunct): Likewise.
1032         * src/locale-inst.cc (__add_grouping): Tweak signature.
1033         (__verify_grouping): Don't instantiate, not a template anymore.
1035         * include/bits/locale_facets.h: Rename _M_truename_len ->
1036         _M_truename_size, _M_falsename_len -> _M_falsename_size.
1037         * include/bits/locale_facets.tcc: Likewise.
1038         * config/locale/generic/numeric_members.cc: Likewise.
1039         * config/locale/gnu/numeric_members.cc: Likewise.
1041 2004-01-14  Stefan Olsson  <stefan@snon.net>
1043         * include/ext/mt_allocator.h: Fixups.
1044         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
1045         * testsuite/performance/allocator_thread.cc: Same.
1047 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
1049         * testsuite/performance/ifstream_extract_float.cc: Add higher
1050         precision tests.
1051         * testsuite/performance/ofstream_insert_float.cc: Same.
1053 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
1055         * src/locale-misc-inst.cc (__convert_from_v(long),
1056         __convert_from_v(unsigned long), __convert_from_v(long long),
1057         __convert_from_v(unsigned long long)): Remove, unused.
1059 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
1061         * testsuite/performance/ifstream_extract_float.cc: New.
1062         * testsuite/performance/ofstream_insert_float.cc: Float generation
1063         matches above.
1065         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
1066         * 20_util/auto_ptr/1.cc: ...this.
1067         * 20_util/auto_ptr/2.cc: Same.
1068         * 20_util/auto_ptr/3.cc: Same.
1069         * 20_util/auto_ptr/3946.cc: Same.
1070         * 20_util/auto_ptr/4.cc: Same.
1071         * 20_util/auto_ptr/5.cc: Same.
1072         * 20_util/auto_ptr/6.cc: Same.
1073         * 20_util/auto_ptr/7.cc: Same.
1074         * 20_util/auto_ptr/assign_neg.cc
1075         * 20_util/pairs.cc: Break into...
1076         * 20_util/pair/1.cc: ...this.
1077         * 20_util/pair/2.cc: Same.
1078         * 20_util/pair/3.cc: Same.
1079         * 20_util/pair/4.cc: Same.
1081 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
1083         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
1084         Set correctly just basefield, the only group that matters.
1086 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
1088         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
1089         (_Rope_rep_base): Inherit directly from the rope allocator;
1090         use rebinding instead of _Alloc_traits; pick up data member
1091         from _Rope_rep_alloc_base.
1092         (_Rope_alloc_base): Eliminate.
1093         (_Rope_base): Inherit directly from the rope allocator; use
1094         rebinding instead of _Alloc_traits; pick up data member from
1095         _Rope_alloc_base.
1096         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
1097         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
1099 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
1101         PR libstdc++/13650
1102         * include/bits/basic_string.tcc (compare(size_type, size_type,
1103         const _CharT*, size_type)): Implement correctly the resolution
1104         of DR 5: basically, s is a char array, -not- a C string.
1105         * include/bits/basic_string.h: Tweak some comments.
1106         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
1107         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
1109 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
1111         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
1112         Solaris.
1114 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
1116         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
1117         Use try_mkfifo.
1118         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
1119         Likewise.
1121 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
1123         * include/bits/locale_facets.h (struct __numpunct_cache):
1124         Add members _M_truename_len and _M_falsename_len, caching
1125         the lengths of _M_truename and _M_falsename.
1126         (__numpunct_cache<>::_M_cache): Assign the latter.
1127         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
1128         num_put::do_put(bool)): Use the new members, thus avoiding
1129         computing string lengths again and again.
1130         * config/locale/generic/numeric_members.cc
1131         (numpunct<>::_M_initialize_numpunct): Assign the new members.
1132         * config/locale/gnu/numeric_members.cc
1133         (numpunct<>::_M_initialize_numpunct): Likewise.
1135 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
1137         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
1138         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
1139         it.
1140         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
1141         and remove Cygwin XFAIL.
1142         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
1143         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
1144         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
1145         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
1146         Likewise.
1147         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1148         * testsuite/27_io/objects/char/7.cc: Likewise.
1149         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
1150         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
1151         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
1153 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1155         * include/std/std_complex.h (std::complex<>::real): Return a
1156         reference. Add non-const overload.
1157         (std::complex<>::real): Likewise.
1158         (std::real): Likewise.
1159         (std::imag): Likewise.
1160         (std::operator+): Tidy.
1161         (std::operator-): Likewise.
1162         (std::operator*): Likewise.
1163         (std::operator/): Likewise.
1164         (std::operator>>): Likewise.
1166 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
1168         PR libstdc++/13582
1169         * include/bits/fstream.tcc (imbue): Exploit the external
1170         buffer to imbue 'on the fly' a new locale and convert its
1171         remainder with the new codecvt facet.
1172         (underflow): Tweak slightly to deal with this special case.
1173         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
1174         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
1175         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
1176         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
1177         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
1179 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
1181         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1182         Import Revision 28.
1184 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
1186         PR libstdc++/13630
1187         * include/bits/locale_classes.h (class locale): Fix category
1188         typedef.
1189         * testsuite/22_locale/locale/13630.cc: Add.
1191 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
1193         * include/bits/locale_facets.h: Make a name really dependent. This
1194         will be needed when Core Issue 224 is implemented.
1196 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
1198         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
1199         * testsuite/performance/allocator_thread.cc: Likewise.
1201 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
1203         * crossconfig.m4: Add LFS, io bits to linux cross config.
1204         * acconfig.h: Remove obsolete bits, reorder.
1205         * config.h.in: Regenerate.
1206         * aclocal.m4: Same.
1207         * configure: Same.
1209 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
1211         * include/bits/stl_list.h:
1212         * include/bits/list.tc:
1213         * src/list.cc:
1214         Performance enhancements for destructor, push_front(),
1215         push_back(), pop_front(), pop_back(), sort()
1216         Eliminated static_casts where possible.
1217         Moved code out of header files into new src/list.cc
1218         implementation file for library where possible.
1219         Remove inheritance from iterator class and create separate
1220         classes for non-constant and constant iterators.
1221         * include/bits/stl_tree.h (_Rb_tree class):
1222         * src/tree.cc:
1223         Only erase contents in destructor.
1224         Eliminate unnecessary initialization in assignment operator.
1225         Optimize for the nominal case by not checking whether
1226         container is empty in clear().
1227         Re-order test in _M_insert() to improve performance.
1228         Move initialization of new node's left & right pointers to
1229         src/tree.cc to where new node's colour is initialized
1230         and to reduce the amount of inline code.
1231         Use  _M_leftmost() and _M_end() to improve readability where
1232         appropriate.
1233         Create separate classes for non-constant and constant
1234         iterators to clarify code, avoid extra template parameters and
1235         casting away constness.
1237 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
1239         * src/Makefile.am (sources): Add list.cc, tree.cc.
1240         * src/stl_tree.cc: Move to...
1241         * src/tree.cc: ...here.
1242         * src/list.cc: Add.
1243         * config/linker-map.gnu: Tweaks.
1244         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
1245         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
1247         * bits/stl_vector.h: Column wrap comments.
1249 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
1251         (re-open) PR libstdc++/12658
1252         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
1253         (locale::global): Likewise.
1255 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
1257         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
1258         Remove redundant #include.
1259         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
1260         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
1261         re-enable normal testing.
1262         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
1263         #include.
1264         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
1265         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
1266         Likewise.
1267         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
1268         Likewise.
1269         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
1270         Likewise.
1271         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
1272         Likewise.
1273         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
1274         Likewise.
1275         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
1276         Likewise.
1277         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
1278         Likewise.
1279         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
1280         More properly, #include <locale>.
1281         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
1282         Remove redundant #include.
1283         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
1284         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
1285         redundant DejaGnu directive.
1286         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
1287         redundant #include.
1289 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
1290             Stefan Olsson  <stefan@snon.net>
1292         * scripts/check_performance: Use -pthread.
1293         * testsuite/performance/allocator.cc: Tweaks, add list.
1294         * testsuite/performance/allocator_thread.cc: New.
1296 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
1298         * include/bits/locale_facets.h: Document public classes and
1299         functions.
1300         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1301         Add comment.
1303 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
1305         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
1306         Remove redundant #includes.
1307         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
1308         Likewise.
1309         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
1310         Likewise.
1311         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
1312         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
1313         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
1314         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
1315         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
1316         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
1317         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
1318         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
1319         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
1320         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
1321         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
1322         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
1323         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
1324         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
1325         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
1326         Likewise.
1327         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
1328         Likewise.
1329         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
1330         Likewise.
1331         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
1332         Likewise.
1333         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
1334         Likewise.
1335         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
1336         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
1337         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
1339 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
1341         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
1342         Remove redundant #includes.
1343         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
1344         Likewise.
1345         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
1346         Likewise.
1347         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
1348         Likewise.
1349         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
1350         Likewise.
1351         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
1352         Likewise.
1353         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
1354         Likewise.
1355         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1356         Likewise.
1357         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1358         Likewise.
1359         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1360         Likewise.
1361         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
1362         Likewise.
1363         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
1364         Likewise.
1365         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
1366         Likewise.
1368 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
1370         PR c++/12226
1371         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
1372         constructor.
1373         * testsuite/27_io/basic_fstream/4.cc: Likewise.
1374         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
1375         * testsuite/27_io/basic_ios/4.cc: Likewise.
1376         * testsuite/27_io/basic_iostream/4.cc: Likewise.
1377         * testsuite/27_io/basic_istream/4.cc: Likewise.
1378         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
1379         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
1380         * testsuite/27_io/basic_ostream/4.cc: Likewise.
1381         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
1382         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
1383         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
1385 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
1387         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
1388         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
1389         always use double underscored names.
1390         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
1391         Likewise.
1392         * include/bits/locale_facets.h (struct __numpunct_cache):
1393         Dimension _M_atoms_out and _M_atoms_in one position smaller.
1394         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
1395         and _M_atoms_in.