OSDN Git Service

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