1 2004-02-27 David Edelsohn <edelsohn@gnu.org>
3 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4 static, and inline keyworks.
6 2004-02-27 Paolo Carlini <pcarlini@suse.de>
8 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
9 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
10 call reserve on the __tmp_gruping string.
11 (num_get<>::_M_extract_float): Don't append unnecessarily a
12 char() to the returned string.
13 * include/bits/locale_facets.tcc: Trivial reformattings.
15 2004-02-27 Paolo Carlini <pcarlini@suse.de>
17 * include/bits/locale_facets.h (money_get<>::_M_extract):
18 Change signature: now takes a plain string&.
19 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
20 Update consistently the definition; use the moneypunct cache
21 to parse the value; use swap to change __units.
22 (money_get<>::do_get(long double&)): Update call of _M_extract,
23 avoid ctype::narrow, not correct wrt the standard.
24 (money_get<>::do_get(string_type&)): Likewise, update call
25 of _M_extract, use ctype::widen.
26 * src/locale-inst.cc: Tweak instantiations of _M_extract.
28 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
30 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
31 * testsuite/demangle/abi_examples/02.cc: Likewise.
32 * testsuite/demangle/regression/cw-11.cc: Likewise.
33 * testsuite/demangle/regression/cw-16.cc: Change two expected
34 results to match libiberty demangler output.
36 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
39 * libsupc++/Makefile.am: Use libiberty demangler.
40 (c_sources): Add cp-demangle.c.
41 * libsupc++/Makefile.in: Regenerate.
42 * src/Makefile.am (sources): Remove demangle.cc.
43 * src/Makefile.in: Regenerate.
44 * include/Makefile.am (bits_headers): Move demangle.h.
45 (ext_headers): ...here.
46 * include/Makefile.in: Regenerate.
47 * include/bits/demangle.h: Move...
48 * include/ext/demangle.h: ...here.
49 * src/demangle.cc: Remove.
51 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
53 * include/bits/demangle.h: Add type template parameter to all
54 templates with just an Allocator template parameter.
56 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
58 * include/bits/atomicity.h: New, forward declarations for __atomic_add
59 and __exchange_and_add.
60 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
61 * config/cpu/cris/atomic_word.h: Same.
62 * config/cpu/sparc/atomic_word.h: Same.
63 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
64 Qualifiy with __gnu_cxx.
65 (_Callback_list::_M_add_reference): Same.
66 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
67 (locale::facet::_M_remove_reference): Same.
68 (locale::_Impl::_M_add_reference): Add.
69 (locale::_Impl::_M_remove_reference): Same.
70 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
71 (basic_string::_Rep::_M_dispose): Same.
72 * src/ios.cc (ios_base::xalloc): Same.
73 * src/ios_init.cc (ios_base::Init::Init): Same.
74 (ios_base::Init::~Init): Same.
75 * src/locale.cc (locale::id::_M_id): Same.
76 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
77 static, and inline keyworks.
78 * config/cpu/alpha/atomicity.h: Same.
79 * config/cpu/cris/atomicity.h: Same.
80 * config/cpu/generic/atomicity.h: Same.
81 * config/cpu/hppa/atomicity.h: Same.
82 * config/cpu/i386/atomicity.h: Same.
83 * config/cpu/ia64/atomicity.h: Same.
84 * config/cpu/m68k/atomicity.h: Same.
85 * config/cpu/mips/atomicity.h: Same.
86 * config/cpu/powerpc/atomicity.h: Same.
87 * config/cpu/s390/atomicity.h: Same.
88 * config/cpu/sparc/atomicity.h: Same.
90 * src/Makefile.am (host_sources): Add atomicity.cc.
91 (atomicity.cc): New rule.
92 * src/Makefile.in: Regenerate.
93 * include/Makefile.am (host_headers): Remove host atomicity.h.
94 (host_headers): Add atomic_word.h.
95 (bits_headers): Add bits atomicity.h.
96 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
97 * include/Makefile.in: Regenerate.
98 * configure.host (atomic_word_dir): Add.
99 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
100 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
101 * configure: Regenerate.
102 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
104 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
105 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
107 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
109 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
110 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
111 Fix markup, more <link> tags.
113 2004-02-25 Carlo Wood <carlo@alinoe.com>
116 namespace __gnu_cxx::demangler
117 (session<Allocator>::qualifier_list_Allocator): Add
118 (session<Allocator>::M_qualifier_list_alloc): Add
119 (session<Allocator>::decode_type_with_postfix):
120 Use M_qualifier_list_alloc instead of calling operator new/delete.
122 2004-02-24 Paolo Carlini <pcarlini@suse.de>
125 * include/bits/postypes.h (class streamoff): Add operator++(),
126 operator++(int), operator--() and operator--(int).
127 * testsuite/27_io/fpos/14252.cc: New.
129 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
131 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
132 error in handling of hex constants.
134 2004-02-24 Paolo Carlini <pcarlini@suse.de>
136 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
137 Prefer basic_string::append to operator+= and a temporary.
139 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
141 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
142 Only use fputs, not write.
144 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
146 * include/ext/malloc_allocator.h: Add operators ==, !=.
147 * include/ext/new_allocator.h: Add operators ==, !=.
148 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
149 (__mt_alloc::_S_get_options): New.
150 (__mt_alloc::_S_set_options): New.
151 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
152 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
153 Move functions out of line, simplify, format.
154 * src/allocator.cc: Simplify explicit instantiations.
155 * include/bits/allocator.h: Tweak.
157 2004-02-22 Paolo Carlini <pcarlini@suse.de>
159 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
160 Restructure formatting of value component, first dealing with
161 the non-decimal digits; use reserve.
163 2004-02-22 Paolo Carlini <pcarlini@suse.de>
165 * include/bits/locale_facets.h (class money_get): Inherit
166 from money_base too; tweak declaration of _M_extract, now
167 parameterized on _Intl too.
168 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
169 Update definition to use the cache; call reserve on __res to
170 avoid multiple reallocations; fix parsing of sign component
171 according to 22.2.6.1.2, p3.
172 (money_get<>::do_get(long double&),
173 money_get<>::do_get(string_type&)): Update calls of _M_extract.
174 * src/locale-inst.cc: Add instantiations of
175 money_get::_M_extract<false> and money_get::_M_extract<true>.
176 * testsuite/22_locale/money_get/get/char/14.cc: New.
177 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
179 2004-02-21 Mark Mitchell <mark@codesourcery.com>
181 * libsupc++/vterminate.cc
182 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
184 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
186 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
187 not set RLIMIT_AS on HP-UX.
189 2004-02-21 Mark Mitchell <mark@codesourcery.com>
191 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
192 not set RLIMIT_AS on HP-UX.
194 2004-02-21 Paolo Carlini <pcarlini@suse.de>
196 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
197 _S_zero, _S_end } enum, _S_atoms.
198 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
199 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
200 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
201 (__moneypunct_cache<>::~__moneypunct_cache): Update.
202 (__moneypunct_cache<>::_M_cache): Fill the cache.
203 (class moneypunct): Tweak __cache_type typedef.
204 (class money_put): Inherit from money_base too; tweak declaration
205 of _M_insert, now parameterized on _Intl.
206 * include/bits/locale_facets.tcc
207 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
208 (money_put<>::_M_insert): Update definition to use the cache;
209 call reserve on __res to avoid multiple reallocations.
210 (money_put<>::do_put(long double),
211 money_put<>::do_put(const string_type&): Update calls of _M_insert.
212 * config/locale/generic/monetary_members.cc
213 (moneypunct<char, true>::_M_initialize_moneypunct,
214 moneypunct<char, false>::_M_initialize_moneypunct,
215 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
216 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
217 * config/locale/gnu/monetary_members.cc: Likewise.
218 * config/locale/gnu/monetary_members.cc
219 (moneypunct<wchar_t, true>::~moneypunct(),
220 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
221 * src/globals_locale.cc: Tweak fake_money_cache_c.
222 * src/locale-inst.cc: Add instantiations for
223 money_put::_M_insert<false> and money_put::_M_insert<true> and
224 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
225 * src/locale_facets.cc: Define money_base::_S_atoms.
226 * src/locale_init.cc: Update placement new of
227 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
228 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
230 * config/locale/generic/numeric_members.cc: Clean up.
231 * config/locale/gnu/numeric_members.cc: Likewise.
232 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
233 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
234 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
235 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
236 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
237 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
239 2004-02-20 Mark Mitchell <mark@codesourcery.com>
241 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
242 FIFO for writing with ios_base::in|ios_base::out.
243 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
244 * testsuite/27_io/objects/char/7.cc: Likewise.
245 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
248 2004-02-19 David Edelsohn <edelsohn@gnu.org>
250 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
251 from iso-8859-1 to ISO8859-1.
252 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
253 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
254 * 22_locale/collate/hash/wchar_t/2.cc: Same.
255 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
256 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
257 * 22_locale/collate/transform/wchar_t/2.cc: Same.
258 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
259 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
261 2004-02-18 Paolo Carlini <pcarlini@suse.de>
263 * include/bits/locale_facets.h (money_get<>::_M_extract):
264 New, helper for do_get.
265 (money_put<>::_M_insert): Likewise, for do_put.
266 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
267 money_put<>::_M_insert): Define.
268 (money_get<>::do_get(long double&), money_get<>::do_get(
269 string_type&), money_put::do_put(long double),
270 money_put::do_put(const string_type&)): Use the helpers.
272 2004-02-18 Paolo Carlini <pcarlini@suse.de>
274 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
275 Rewrite, avoiding recursion.
276 (__gnu_internal::xwrite): Minor tweaks.
278 2004-02-17 Stefan Olsson <stefan@xapa.se>
280 * include/ext/mt_allocator.h: Removed the last
281 pointer. Deallocated blocks are now added to the front of
282 freelists as proposed by Felix Yen. This gives roughly 10%
283 performance boost and saves some memory.
284 * docs/html/ext/mt_allocator.html: Change due to that deallocated
285 blocks now are added to the front of freelists. The reason to this
286 approach is also explained.
288 2004-02-17 Paolo Carlini <pcarlini@suse.de>
290 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
291 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
292 grouping fidelity conditional.
294 2004-02-16 Paolo Carlini <pcarlini@suse.de>
296 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
297 Qualify exception with std::.
298 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
299 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
300 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
301 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
302 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
304 2004-02-16 Paolo Carlini <pcarlini@suse.de>
306 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
307 for now that the catch block is not reached.
308 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
310 2004-02-16 Paolo Carlini <pcarlini@suse.de>
312 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
313 Fix parsing of the remaining sign characters.
314 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
315 the input is scanned 'til eof.
316 * 22_locale/money_get/get/char/4.cc: Likewise.
317 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
318 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
319 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
320 not do_pos_format: the former is the only one that matters during
322 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
324 * 22_locale/money_get/get/char/6.cc: Minor tweak.
325 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
327 2004-02-15 David Asher <david.asher@cavium.com>
330 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
331 access __olds beyond __oldlen.
333 2004-02-14 Paolo Carlini <pcarlini@suse.de>
335 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
336 sure the exception is actually thrown.
337 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
338 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
339 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
341 2004-02-14 Paolo Carlini <pcarlini@suse.de>
344 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
345 In case of conversion errors, throw ios_failure; simplify.
346 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
347 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
348 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
349 previously we didn't throw in case of conversion errors, instead
351 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
352 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
353 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
355 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
356 Trivial simplification of a conditional.
358 2004-02-12 Paolo Carlini <pcarlini@suse.de>
360 PR libstdc++/13731 (final part: writev)
361 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
362 New, a wrapper around writev() handling partial writes.
363 (__basic_file<char>::xwrite): Move to __gnu_internal and make
365 (__basic_file<char>::xsputn): Update call.
366 (__basic_file<char>::xsputn_2): Likewise.
367 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
368 Don't declare, now static.
370 2004-02-11 Stefan Olsson <stefan@xapa.se>
372 * docs/html/ext/mt_allocator.html: New.
374 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
376 * docs/html/20_util/allocator.html: New file, consolidate
377 allocator information here. Revamp.
378 * docs/html/documentation.html: Change links.
379 * docs/html/20_util/howto.html: Same.
380 * docs/html/ext/howto.html: Same.
382 2004-02-11 Paolo Carlini <pcarlini@suse.de>
384 PR libstdc++/13731 (first part: write)
385 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
387 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
388 Define it: a wrapper around write() handling partial write.
389 (__basic_file<char>::xsputn): Use it.
390 (__basic_file<char>::xsputn_2): Likewise.
392 2004-02-11 Paolo Carlini <pcarlini@suse.de>
393 Petur Runolfsson <peturr02@ru.is>
396 * include/std/std_istream.h (operator>>(__istream_type& (*)
397 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
398 operator>>(ios_base& (*)(ios_base&))): Declare inline.
399 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
400 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
401 operator<<(ios_base& (*) (ios_base&))): Likewise.
402 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
404 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
407 * config/linker-map.gnu: Add typeinfo and typeinfo name for
408 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
411 * config/linker-map.gnu: Add typeinfo and typeinfo name for
412 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
414 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
416 * include/ext/pool_allocator.h: Include c++config.h.
418 2004-02-09 Stefan Olsson <stefan@xapa.se>
420 * include/ext/mt_allocator.h: thread_id is unused in non threaded
421 applications and now has a ifdef to remove it completely on
422 compilers without thread support. Include stdlib.h due to a
423 compiler warning on getenv().
425 2004-02-09 Paul Brook <paul@codesourcery.com>
427 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
429 2004-02-09 Paolo Carlini <pcarlini@suse.de>
432 * src/locale_init.cc (locale::global(const locale&)): Use
433 locale::name() in order to decide whether calling setlocale.
434 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
436 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
437 Avoid computing &= unnecessarily.
439 2004-02-09 James E Wilson <wilson@specifixinc.com>
442 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
443 __builtin_extend_pointer.
445 2004-02-09 Paolo Carlini <pcarlini@suse.de>
448 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
449 Don't leave dangling pointers.
450 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
451 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
452 facet is needed in the final test.
454 2004-02-09 Bernardo Innocenti <bernie@develer.com>
456 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
457 * configure: Regenerate.
459 2004-02-08 Richard Henderson <rth@redhat.com>
462 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
463 uncaughtExceptions during nested catch rethrow.
464 * testsuite/18_support/14026.cc: New.
466 2004-02-08 Paolo Carlini <pcarlini@suse.de>
468 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
469 When working in place remember to set the state to sharable
470 (otherwise, _M_mutate does it).
472 2004-02-08 Bernardo Innocenti <bernie@develer.com>
474 * include/bits/allocator.h, include/bits/basic_ios.h,
475 include/bits/basic_ios.tcc, include/bits/basic_string.h,
476 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
477 include/bits/char_traits.h, include/bits/codecvt.h,
478 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
479 include/bits/demangle.h, include/bits/deque.tcc,
480 include/bits/fstream.tcc, include/bits/functexcept.h,
481 include/bits/gslice.h, include/bits/gslice_array.h,
482 include/bits/indirect_array.h, include/bits/ios_base.h,
483 include/bits/istream.tcc, include/bits/list.tcc,
484 include/bits/locale_classes.h, include/bits/locale_facets.h,
485 include/bits/locale_facets.tcc, include/bits/localefwd.h,
486 include/bits/mask_array.h, include/bits/ostream.tcc,
487 include/bits/postypes.h, include/bits/slice_array.h,
488 include/bits/sstream.tcc, include/bits/stl_algo.h,
489 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
490 include/bits/stl_construct.h, include/bits/stl_deque.h,
491 include/bits/stl_function.h, include/bits/stl_heap.h,
492 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
493 include/bits/stl_list.h, include/bits/stl_map.h,
494 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
495 include/bits/stl_numeric.h, include/bits/stl_pair.h,
496 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
497 include/bits/stl_relops.h, include/bits/stl_set.h,
498 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
499 include/bits/stl_threads.h, include/bits/stl_tree.h,
500 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
501 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
502 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
503 include/bits/type_traits.h, include/bits/valarray_after.h,
504 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
505 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
508 2004-02-06 Paolo Carlini <pcarlini@suse.de>
510 * include/bits/basic_string.h: Fix comment.
512 2004-02-06 Paolo Carlini <pcarlini@suse.de>
514 * include/bits/stl_construct.h: Wrap overlong lines, reformat
515 according to the coding standards.
516 * include/bits/stl_pair.h: Likewise.
517 * include/bits/stl_raw_storage_iter.h: Likewise.
518 * include/bits/stl_stack.h: Likewise.
519 * include/bits/stl_uninitialized.h: Likewise.
520 * include/bits/stream_iterator.h: Likewise.
521 * include/bits/streambuf_iterator.h: Likewise.
522 * include/bits/type_traits.h: Likewise.
524 2004-02-06 Paolo Carlini <pcarlini@suse.de>
526 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
529 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
531 * scripts/check_performance: Support PCH.
533 * scripts/check_performance (CXX): Add -DNOTHREAD.
534 * testsuite/performance/20_util/allocator/insert.cc: Integrate
535 threaded tests from insert_insert.cc. Tweak iterations,
536 remove special cases.
537 * testsuite/performance/20_util/allocator/insert_insert.cc:
538 Make all tests single-threaded. Tweak iterations.
539 * testsuite/performance/20_util/allocator/map_thread.cc:
541 * testsuite/performance/20_util/allocator/producer_consumer.cc:
544 2004-02-05 Geoffrey Keating <geoffk@apple.com>
548 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
549 'gcc-lib'. Add comment about poorly-named variables.
550 * aclocal.m4: Regenerate.
551 * configure: Regenerate.
553 2004-02-05 Paolo Carlini <pcarlini@suse.de>
555 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
556 Thousands-sep are always optional; thousands-sep are not allowed
557 after the decimal_point.
558 * testsuite/22_locale/money_get/get/char/12.cc: New.
559 * testsuite/22_locale/money_get/get/char/13.cc: New.
560 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
561 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
563 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
564 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
565 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
566 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
567 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
568 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
569 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
570 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
572 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
574 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
576 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
578 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
580 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
581 it to decide whether FIONREAD should take an off_t or int argument.
583 2004-02-05 Paolo Carlini <pcarlini@suse.de>
585 * include/bits/stl_function.h: Minor formatting changes.
587 2004-02-04 Zack Weinberg <zack@codesourcery.com>
589 Revert previous change to config/abi/*/baseline_symbols.txt.
591 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
592 Zack Weinberg <zack@codesourcery.com>
594 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
596 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
597 (__basic_file<char>::_M_open_mode): Delete.
598 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
600 * testsuite/27_io/basic_filebuf/close/char/9964.cc
601 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
602 Correct flags to filebuf::open calls.
604 * config/abi/alpha-freebsd5/baseline_symbols.txt
605 * config/abi/alpha-linux-gnu/baseline_symbols.txt
606 * config/abi/hppa-linux-gnu/baseline_symbols.txt
607 * config/abi/i386-freebsd4/baseline_symbols.txt
608 * config/abi/i386-freebsd5/baseline_symbols.txt
609 * config/abi/i486-linux-gnu/baseline_symbols.txt
610 * config/abi/ia64-linux-gnu/baseline_symbols.txt
611 * config/abi/mips-linux-gnu/baseline_symbols.txt
612 * config/abi/sparc-freebsd5/baseline_symbols.txt
613 * config/abi/sparc-linux-gnu/baseline_symbols.txt
614 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
615 Remove entry for __basic_file<char>::_M_open_mode.
617 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
619 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
621 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
623 * testsuite/performance/20_util/producer_consumer.cc: New.
624 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
626 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
628 * testsuite/performance/20_util/allocator.cc: Move to..
629 * testsuite/performance/20_util/allocator/insert.cc: ...here.
630 * testsuite/performance/20_util/allocator_thread.cc: Move to...
631 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
632 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
633 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
635 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
637 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
638 * docs/html/faq/index.txt: Regenerate.
640 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
642 * include/ext/debug_allocator.h: _M_extra now stands for the
643 number of extra objects instead of the number of extra bytes.
644 (debug_allocator::allocate): Adjust.
645 (debug_allocator::deallocate): Adjust.
647 * include/ext/pool_allocator.h: Fix typo.
649 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
650 Benjamin Kosnik <bkoz@redhat.com>
652 * testsuite/performance/20_util/allocator.cc: Add map,
654 * testsuite/performance/20_util/allocator_thread.cc: Same.
656 2004-02-03 Paolo Carlini <pcarlini@suse.de>
658 * include/bits/basic_string.h (insert(iterator)): Remove,
659 non-standard and already scheduled for removal.
661 2004-02-03 Paolo Carlini <pcarlini@suse.de>
663 * include/bits/stl_iterator_base_funcs.h: Minor formatting
664 and indentation tweaks.
665 * include/bits/stl_iterator_base_types.h: Likewise.
666 * include/bits/stl_list.h: Likewise.
667 * include/bits/stl_map.h: Likewise.
668 * include/bits/stl_tempbuf.h: Likewise.
670 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
672 * include/bits/gslice.h, include/bits/gslice_array.h,
673 include/bits/indirect_array.h, include/bits/mask_array.h,
674 include/bits/slice_array.h, include/bits/stl_numeric.h,
675 include/std/std_valarray.h: Update copyright years.
677 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
679 * include/bits/gslice.h (gslice): Document.
680 * include/bits/gslice_array.h (gslice_array): Document.
681 * include/bits/indirect_array (indirect_array): Document.
682 * include/bits/mask_array (mask_array): Document.
683 * include/bits/slice_array.h (slice,slice_array): Document.
684 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
685 adjacent_difference): Document
686 * include/std/std_valarray.h (valarray): Document.
688 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
690 * docs/html/19_diagnostics/howto.html: Move verbose terminate
692 * docs/html/18_support/howto.html: Here.
693 * docs/html/documentation.html: Add reference here.
695 2004-02-02 Paolo Carlini <pcarlini@suse.de>
697 * config/locale/gnu/c++locale_internal.h: Remove prototypes
698 of no longer used GLIBC thread locale functions.
700 2004-02-02 Eric Christopher <echristo@redhat.com>
701 Zack Weinberg <zack@codesourcery.com>
703 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
705 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
706 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
707 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
708 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
709 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
710 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
711 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
712 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
715 2004-02-02 Paolo Carlini <pcarlini@suse.de>
717 * include/bits/stl_function.h: Additional minor tweaks.
718 * include/bits/stl_multiset.h: Likewise.
720 * include/bits/stl_queue.h: Minor tweaks.
722 2004-02-02 Paolo Carlini <pcarlini@suse.de>
724 PR libstdc++/13976 (continued)
725 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
726 Make the second parameter unnamed, to void unused parameter
728 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
730 2004-02-02 Paolo Carlini <pcarlini@suse.de>
733 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
734 Make the second parameter unnamed, to void unused parameter
736 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
737 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
739 2004-02-01 Paolo Carlini <pcarlini@suse.de>
741 * include/bits/stl_algo.h: Additional minor tweaks.
742 * include/bits/stl_map.h: Likewise.
743 * include/bits/stl_multimap.h: Likewise.
744 * include/bits/stl_multiset.h: Likewise.
745 * include/bits/stl_set.h: Likewise.
746 * include/bits/stl_tree.h: Likewise.
748 2004-02-01 Paolo Carlini <pcarlini@suse.de>
750 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
753 2004-02-01 Paolo Carlini <pcarlini@suse.de>
755 * include/bits/stl_function.h: Additional minor tweaks.
757 2004-02-01 Paolo Carlini <pcarlini@suse.de>
759 * include/bits/deque.tcc: Wrap overlong lines, constify
760 a few variables, reformat according to the coding standards.
761 * include/bits/list.tcc: Likewise.
762 * include/bits/stl_deque.h: Likewise.
763 * include/bits/stl_function.h: Likewise.
764 * include/bits/stl_iterator.h: Likewise.
765 * include/bits/stl_iterator_base_funcs.h: Likewise.
766 * include/bits/stl_iterator_base_types.h: Likewise.
767 * include/bits/stl_list.h: Likewise.
768 * include/bits/stl_map.h: Likewise.
769 * include/bits/stl_multimap.h: Likewise.
770 * include/bits/stl_multiset.h: Likewise.
771 * include/bits/stl_relops.h: Likewise.
772 * include/bits/stl_set.h: Likewise.
774 2004-02-01 Paolo Carlini <pcarlini@suse.de>
776 * include/bits/stl_bvector.h: Wrap overlong lines, constify
777 a few variables, reformat according to the coding standards.
778 * include/bits/stl_tree.h: Likewise.
780 2004-01-31 Paolo Carlini <pcarlini@suse.de>
782 * include/bits/stl_algo.h: Minor additional reformat, add
784 * include/bits/stl_algobase.h: Add copyright year.
786 2004-01-31 Paolo Carlini <pcarlini@suse.de>
788 * include/bits/stl_algo.h: Wrap overlong lines, constify
789 a few variables, reformat according to the coding standards.
790 * include/bits/stl_algobase.h: Likewise.
791 * include/bits/stl_heap.h: Likewise.
793 2004-01-31 Paolo Carlini <pcarlini@suse.de>
795 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
797 * include/bits/basic_string.h: Fix two comments.
799 2004-01-31 Per Bothner <per@bothner.com>
801 * include/ext/mt_allocator.h
802 (__mt_alloc::_S_thread_freelist_mutex): Guard with
803 __GTHREAD_MUTEX_INIT.
805 2004-01-31 Paolo Carlini <pcarlini@suse.de>
807 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
809 2004-01-30 Paolo Carlini <pcarlini@suse.de>
811 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
812 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
813 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
815 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
817 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
818 Don't use clear, but instead assign. Use insert.
820 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
822 * src/demangle.cc: Add instantiations.
823 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
824 * src/Makefile.in: Regenerate.
826 2004-01-30 David Edelsohn <edelsohn@gnu.org>
828 * src/allocator.cc: Protect _S_get_thread_id() and
829 _S_thread_key_destr() with #ifdef __GTHREADS.
831 2004-01-30 Paolo Carlini <pcarlini@suse.de>
833 Reshuffle performance testsuite.
834 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
835 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
836 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
837 fstream_seek_write.cc, ifstream_extract_float.cc,
838 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
839 list_create_fill_sort.cc, map_create_fill.cc,
840 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
841 ofstream_insert_float.cc, ofstream_insert_int.cc,
842 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
843 wchar_t_out.cc: Split into...
844 * testsuite/performance/20_util/allocator.cc: New.
845 * testsuite/performance/20_util/allocator_map_thread.cc: New.
846 * testsuite/performance/20_util/allocator_thread.cc: New.
847 * testsuite/performance/21_strings/string_append: New.
848 * testsuite/performance/22_locale/is_wchar_t.cc: New.
849 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
850 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
851 * testsuite/performance/22_locale/wchar_t_in.cc: New.
852 * testsuite/performance/22_locale/wchar_t_length.cc: New.
853 * testsuite/performance/22_locale/wchar_t_out.cc: New.
854 * testsuite/performance/23_containers/container_benchmark.cc: New.
855 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
856 * testsuite/performance/23_containers/map_create_fill.cc: New.
857 * testsuite/performance/26_numerics/complex_norm.cc: New.
858 * testsuite/performance/27_io/cout_insert_int.cc: New.
859 * testsuite/performance/27_io/filebuf_copy.cc: New.
860 * testsuite/performance/27_io/filebuf_sputc.cc: New.
861 * testsuite/performance/27_io/fstream_seek_write.cc: New.
862 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
863 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
864 * testsuite/performance/27_io/ifstream_getline.cc: New.
865 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
866 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
868 2004-01-30 Paolo Carlini <pcarlini@suse.de>
870 * include/bits/basic_string.tcc (_Rep::_S_create):
871 Never allocate a string bigger than max_size(); always keep
872 __capacity and __size in sync to avoid memory leaks at
875 2004-01-30 Paolo Carlini <pcarlini@suse.de>
877 * include/bits/basic_string.tcc (_S_construct(_InIterator,
878 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
879 the double loop, streamline.
881 * include/bits/basic_string.tcc: Very minor tweaks.
883 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
885 * scripts/check_performance: Only compile with $THREAD_FLAG
886 when test is marked to require it. Allow multiple
887 compilations/executions of marked tests.
888 * testsuite/testsuite_performance.h (report_performance):
889 Report dynamic thread support status.
890 (report_header): Likewise.
891 * testsuite/performance/allocator.cc: Stabilize iteration
892 count. Support more allocators. Mark each allocator test to
893 run and report independently.
894 * testsuite/performance/allocator_map_thread.cc: Likewise.
895 * testsuite/performance/allocator_thread.cc: Likewise.
897 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
899 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
900 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
901 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
902 std::get_temporary_buffer() instead of duplicating its code.
903 Update to C++STYLE conventions.
904 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
905 new() instead of std::malloc().
906 (return_temporary_buffer): Use ::operator delete() instead of
909 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
911 * include/bits/allocator.h: Temporary switch to new_allocator as
912 the default to unjam bootstraps.
914 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
916 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
917 * include/Makefile.in: Regenerate.
918 * include/bits/allocator_traits.h: Remove.
919 * include/bits/allocator.h: Remove allocator_traits.h include, and
921 (allocator): Empty base class, inherit from the underlying allocator.
922 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
923 * src/allocator.cc: ...here. New. For the underlying allocators.
924 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
925 * config/linker-map.gnu: Remove __pool_alloc bits.
926 * src/Makefile.am (sources): Add allocator.cc.
927 * src/Makefile.in: Regenerate.
928 * testsuite/20_util/allocator/1.cc: Split second test into...
929 * testsuite/20_util/allocator/8230.cc: ...this.
930 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
931 typedef to use std::allocatore. Format.
932 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
934 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
935 __throw_bad_alloc calls. Don't include <memory>.
936 * include/ext/malloc_allocator.h: Remove <memory> include.
937 * include/ext/new_allocator.h (new_allocator): Same.
938 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
939 declaration. Switch __alloc to _Alloc.
940 * include/ext/hashtable.h: Remove __alloc.
941 * include/backward/alloc.h: Only inject allocator, not
942 implementation details.
944 * include/ext/mt_allocator.h: Replace free with delete.
946 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
948 * src/globals_io.cc: Change to __gnu_internal namespace.
949 * src/globals_locale.cc: Same.
950 * src/locale_init.cc: Same.
951 * src/ios_init.cc: Same.
953 2004-01-28 Stefan Olsson <stefan@snon.net>
955 * include/ext/mt_allocator.h: Replaced all malloc() calls with
956 operator new(). Added support for the env variable
957 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
958 one in allocate() as well). Fix typos.
960 2004-01-28 Paolo Carlini <pcarlini@suse.de>
962 * include/bits/basic_string.h (_S_create(size_t,
963 const _Alloc&): Change signature to take two size_type
965 * include/bits/basic_string.tcc (_S_construct(_InIterator,
966 _InIterator, const _Alloc&, input_iterator_tag)): Update
968 (_S_construct(_InIterator, _InIterator, const _Alloc&,
969 forward_iterator_tag)): Likewise.
970 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
971 (_M_mutate(size_type, size_type, size_type)): Don't
972 implement the exponential growth policy, demand it to
973 _S_create, update call and simplify.
974 (_M_clone(const _Alloc&, size_type)): Likewise.
975 (_S_create(size_type, size_type, const _Alloc&)): Implement
976 the growth policy, simplify otherwise.
978 * include/bits/basic_string.h (_Rep::operator[]): Tweak
979 signature to take a size_type, consistently with the other
982 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
984 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
985 delete declarations, add include and test variable.
987 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
989 * include/bits/codecvt.h, include/bits/locale_facets.h,
990 include/bits/postypes.h, include/bits/stl_bvector.h,
991 include/bits/stl_multiset.h, include/bits/stl_set.h,
992 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
993 include/std/std_complex.h: Document.
995 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
998 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
999 iword/pword selector.
1000 (ios_base::iword, ios_base::pword): Use it.
1001 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
1002 iword or pword member on alloc failure.
1003 * testsuite/27_io/ios_base/storage/11584.cc: New test.
1005 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
1006 PJ Darcy <darcypj@us.ibm.com>
1008 * configure.host: Add support for *-tpf.
1009 * crossconfig.m4: Likewise.
1010 * configure: Regenerate.
1011 * config/os/tpf: New directory.
1012 * config/os/tpf/os_defines.h: New file.
1013 * config/os/tpf/ctype_base.h: Likewise.
1014 * config/os/tpf/ctype_inline.h: Likewise.
1015 * config/os/tpf/ctype_noninline.h: Likewise.
1017 2004-01-27 Paolo Carlini <pcarlini@suse.de>
1020 * include/bits/sstream.tcc: Guard use of extern template.
1022 2004-01-27 Paolo Carlini <pcarlini@suse.de>
1024 * include/bits/basic_string.tcc
1025 (basic_string(const basic_string&, size_type, size_type),
1026 basic_string(const basic_string&, size_type, size_type,
1027 const _Alloc&)): Avoid unnecessarily constructing iterators.
1029 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1031 * config/locale/generic/c_locale.cc: Fix throw messages
1032 to use the __N marker.
1033 * config/locale/gnu/c_locale.cc: Likewise.
1034 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1036 * docs/html/17_intro/C++STYLE: Likewise.
1037 * include/bits/basic_ios.tcc: Likewise.
1038 * include/bits/fstream.tcc: Likewise.
1039 * include/bits/vector.tcc: Likewise.
1040 * include/ext/ropeimpl.h: Likewise.
1041 * include/std/std_bitset.h: Likewise.
1042 * src/ios.cc: Likewise.
1043 * src/locale.cc: Likewise.
1044 * src/localename.cc: Likewise.
1046 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1048 * include/bits/basic_string.h (_M_replace_aux): Use the
1049 __N marker in throw message.
1050 * include/bits/basic_string.tcc (assign(const _CharT*,
1051 size_type), insert(size_type, const _CharT*, size_type),
1052 replace(size_type, size_type, const _CharT*, size_type),
1053 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
1056 * include/bits/basic_string.h, include/bits/basic_string.tcc:
1057 Fold overlong lines, minor formatting changes.
1059 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1061 * include/bits/basic_string.h (replace(iterator, iterator,
1062 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
1063 (replace(iterator, iterator, const _CharT*)): Ditto.
1064 (replace(iterator, iterator, const _CharT*, size_type)):
1065 Add missing _GLIBCXX_DEBUG_PEDASSERT.
1067 2004-01-26 Paolo Carlini <pcarlini@suse.de>
1069 * include/bits/basic_string.tcc (replace(size_type,
1070 size_type, const _CharT*, size_type)): Implement optimized
1071 in-place algorithm for non-overlapping ranges.
1072 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
1073 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
1075 * include/bits/basic_string.tcc (insert(size_type,
1076 const _CharT*, size_type)): Tweak slightly.
1078 2004-01-26 Andreas Schwab <schwab@suse.de>
1080 * config/locale/gnu/monetary_members.cc: Restore locale before
1081 rethrowing exception.
1083 2004-01-25 Paolo Carlini <pcarlini@suse.de>
1085 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1087 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
1090 * include/bits/basic_string.tcc: Very minor tweaks.
1092 2004-01-25 Paolo Carlini <pcarlini@suse.de>
1094 * testsuite/performance/string_append.cc: Increase number
1097 2004-01-25 Paolo Carlini <pcarlini@suse.de>
1099 * include/bits/basic_string.h (erase(size_type, size_type),
1100 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
1101 instead, thus avoiding redundant check for length_error.
1103 * include/bits/basic_string.h: Tweak some comments.
1105 2004-01-24 Paolo Carlini <pcarlini@suse.de>
1107 * include/bits/basic_string.tcc (operator+(const _CharT*,
1108 const basic_string&)): No need to go through the append
1109 taking two iterators.
1111 2004-01-24 Paolo Carlini <pcarlini@suse.de>
1113 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
1114 Revert last change to use std::min: machine language is worse.
1115 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
1116 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
1117 (find_last_not_of(_CharT, size_type)): Ditto.
1119 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
1120 size_type)): Discard the value returned by _M_check.
1121 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
1122 (append(const basic_string&, size_type, size_type)): Ditto.
1123 (copy(_CharT*, size_type, size_type)): Ditto.
1124 (compare(size_type, size_type, const basic_string&)): Ditto.
1125 (compare(size_type, size_type, const basic_string&,
1126 size_type, size_type)): Ditto.
1127 (compare(size_type, size_type, const _CharT*)): Ditto.
1128 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
1130 2004-01-24 Paolo Carlini <pcarlini@suse.de>
1132 * include/bits/basic_string.h (insert(size_type,
1133 const basic_string&, size_type, size_type)): Define inline here.
1134 * include/bits/basic_string.tcc (insert(size_type,
1135 const basic_string&, size_type, size_type)): Move inline.
1137 2004-01-24 Paolo Carlini <pcarlini@suse.de>
1139 * include/bits/basic_string.h (assign(const basic_string&,
1140 size_type, size_type)): Define inline here.
1141 (replace(size_type, size_type, const basic_string&,
1142 size_type, size_type)): Ditto.
1143 (_M_replace_dispatch(iterator, iterator, _InputIterator,
1144 _InputIterator, __false_type)): Only declare.
1145 (_M_replace(iterator, iterator, _InputIterator,
1146 _InputIterator)): Remove.
1147 * include/bits/basic_string.tcc (assign(const basic_string&,
1148 size_type, size_type)): Move inline.
1149 (replace(size_type, size_type, const basic_string&,
1150 size_type, size_type)): Ditto.
1151 (_M_replace_dispatch(iterator, iterator, _InputIterator,
1152 _InputIterator, __false_type)): Define, now does also what
1153 _M_replace did before.
1154 * src/string-inst.cc (_M_replace): Don't instantiate.
1156 * include/bits/basic_string.tcc (find(const _CharT*,
1157 size_type, size_type)): Tidy.
1158 (rfind(_CharT, size_type)): Ditto.
1159 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
1160 (find_first_not_of(_CharT, size_type)): Ditto.
1161 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
1162 (find_last_not_of(_CharT, size_type)): Ditto.
1164 2004-01-23 Paolo Carlini <pcarlini@suse.de>
1167 * include/debug/bitset (operator|=): Fix typo.
1168 * testsuite/23_containers/bitset/operations/13838.cc: New.
1170 2004-01-23 Paolo Carlini <pcarlini@suse.de>
1172 * include/bits/basic_string.tcc (insert(size_type,
1173 const _CharT*, size_type __n)): Fix length_error check.
1174 (replace(size_type, size_type, const _CharT*, size_type):
1175 Ditto; call _M_replace_safe.
1176 (_M_replace_aux(size_type, size_type, size_type, _CharT):
1177 Fix length_error check.
1178 (_M_replace(iterator, iterator, _InputIterator,
1179 _InputIterator)): Ditto, tweak.
1180 (_M_replace_safe(size_type, size_type, const _CharT*,
1181 size_type)): Remove length_error check.
1183 * include/bits/basic_string.tcc (append(const basic_string&),
1184 append(const basic_string&, size_type, size_type)): Tweak
1187 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
1188 size_type)): If __n == 0 don't call traits::copy.
1190 2004-01-23 Stefan Olsson <stefan@snon.net>
1192 * include/ext/mt_allocator.h: Reduce lock contention.
1194 2004-01-23 Paolo Carlini <pcarlini@suse.de>
1197 * include/bits/fstream.tcc (underflow): Remove unused
1199 * include/bits/streambuf_iterator.h (equal): Ditto.
1200 * include/bits/locale_facets.h (_M_convert_from_char):
1203 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1206 * config/linker-map.gnu (nan): Delete.
1207 * libmath/mathconf.h (NAN, nan): Delete.
1208 * linkage.m4 (nan): Don't check for it.
1209 * libmath/nan.c: Delete file.
1211 * config.h.in, configure: Regenerate.
1213 2004-01-23 Paolo Carlini <pcarlini@suse.de>
1215 * include/bits/basic_string.h (push_back(_CharT)):
1216 Call _M_replace_aux.
1217 (insert(size_type, const basic_string&)): Trivial tweak.
1218 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
1219 (insert(iterator, _CharT)): Ditto.
1220 (erase(size_type, size_type)): Ditto.
1221 (erase(iterator)): Ditto.
1222 (erase(iterator, iterator)): Ditto.
1223 (replace(size_type, size_type, size_type, _CharT)): Ditto.
1225 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
1228 * testsuite/performance/allocator_map_thread.cc: New test.
1230 2004-01-22 Paolo Carlini <pcarlini@suse.de>
1232 * include/bits/locale_facets.tcc
1233 (money_put::do_put(..., long double)): Use the basic_string
1234 constructor for char arrays, not that for C-strings, to pass
1235 __digits to do_put(..., const string_type&): __ws isn't
1238 2004-01-22 Paolo Carlini <pcarlini@suse.de>
1240 * include/bits/basic_string.h (_M_replace_safe): Change
1241 signatures to take size_types and const _CharT*.
1242 (_M_replace_aux): Likewise, takes size_types instead of
1244 (append(size_type, _CharT)): Update call.
1245 (assign(size_type, _CharT)): Ditto.
1246 (replace(iterator, iterator, size_type, _CharT)): Ditto.
1247 (_M_replace_dispatch(iterator, iterator, _Integer,
1248 _Integer, __true_type)): Ditto.
1249 * include/bits/basic_string.tcc (assign(const _CharT*,
1251 (insert(size_type, const _CharT*, size_type)): Ditto.
1252 (replace(size_type, size_type, const _CharT*,
1254 (_M_replace(iterator, iterator, _InputIterator,
1255 _InputIterator)): Ditto.
1256 (append(const basic_string&)): Ditto.
1257 (append(const basic_string&, size_type, size_type): Ditto.
1258 (append(const _CharT*, size_type): Ditto.
1259 (_M_replace_safe, _M_replace_safe): Change definitions
1260 accordingly, simplify.
1261 * string-inst.cc (_M_replace_safe): Don't instantiate.
1263 2004-01-21 Paolo Carlini <pcarlini@suse.de>
1265 * include/bits/basic_string.tcc (append(const basic_string&)):
1266 Revert previous change.
1267 (append(const basic_string&, size_type, size_type)): Revert
1268 previous change, use _M_check and _M_limit.
1270 2004-01-21 Paolo Carlini <pcarlini@suse.de>
1272 * include/bits/basic_string.h (_M_check): Change to return
1273 a checked __pos and take an additional const char* argument.
1274 (_M_fold): Rename to _M_limit, change to return a size_type,
1275 corresponding to the __off limited to the actual length.
1276 (insert(size_type, size_type, _CharT)): Update call, call
1278 (insert(iterator, _CharT)): Call replace(iterator, iterator,
1279 size_type, _CharT) instead.
1280 (erase(size_type, size_type)): Update calls.
1281 (replace(size_type, size_type, size_type, _CharT)): Ditto.
1282 (substr(size_type, size_type)): Use _M_check.
1283 * include/bits/basic_string.tcc (basic_string(const basic_string&,
1284 size_type, size_type)): Update calls.
1285 (basic_string(const basic_string&, size_type, size_type,
1286 const _Alloc&)): Ditto.
1287 (assign(const basic_string&, size_type, size_type)): Use the
1288 new _M_check and _M_limit.
1289 (insert(size_type, const basic_string&, size_type, size_type):
1291 (insert(size_type, const _CharT*, size_type)): Ditto.
1292 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
1293 (replace(size_type, size_type, const basic_string&,
1294 size_type, size_type)): Ditto.
1295 (append(const basic_string&)): Ditto.
1296 (append(const basic_string&, size_type, size_type)): Ditto.
1297 (copy(_CharT*, size_type, size_type)): Ditto.
1298 (compare(size_type, size_type, const basic_string&)): Ditto.
1299 (compare(size_type, size_type, const basic_string&,size_type,
1301 (compare(size_type, size_type, const _CharT*)): Ditto.
1302 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
1304 2004-01-19 Stefan Olsson <stefan@snon.net>
1306 * include/ext/mt_allocator.h: If a thread, when it dies, still has
1307 memory on it's freelist this memory is not returned to global
1308 list. Simplification of deallocate so that memory is always
1309 returned to the calling thread id's freelist instead of to
1310 global. Fix typos. Add volatile where appropriate.
1312 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
1314 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
1315 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
1316 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
1318 2004-01-19 Paolo Carlini <pcarlini@suse.de>
1320 * src/debug.cc: Make sure all the names are prefixed with
1321 double (or single) underscore.
1323 2004-01-19 Paolo Carlini <pcarlini@suse.de>
1325 * src/debug.cc: Trivial formatting change.
1327 2004-01-19 Paolo Carlini <pcarlini@suse.de>
1329 * include/bits/basic_string.tcc (_S_construct(size_type,
1330 _CharT, const _Alloc&)): Remove redundant try/catch.
1331 (_M_mutate(size_type, size_type, size_type)): Ditto.
1332 (_M_clone(const _Alloc&, size_type)): Ditto.
1334 2004-01-18 Paolo Carlini <pcarlini@suse.de>
1336 * include/bits/basic_string.h (c_str()): Simplify, due to
1337 21.3.4 the internal representation is always kept null-terminated.
1338 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
1339 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
1340 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
1343 2004-01-18 Paolo Carlini <pcarlini@suse.de>
1345 * include/bits/basic_string.h (append(size_type, _CharT)):
1346 Moved inline, just call _M_replace_aux, no source iterators at
1347 risk of being clobbered.
1348 (assign(size_type, _CharT)): Call directly _M_replace_aux.
1349 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
1350 input_iterator_tag)): Remove fifth unused argument.
1351 (_M_replace_dispatch(iterator, iterator, _InputIterator,
1352 _InputIterator, __false_type)): Update call.
1353 * include/bits/basic_string.tcc (replace(size_type, size_type,
1354 const _CharT*, size_type)): Update call.
1355 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
1356 throw string literal.
1357 (_M_replace_safe(iterator, iterator, _ForwardIterator,
1358 _ForwardIterator)): Likewise.
1359 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
1360 input_iterator_tag)): Remove fifth unused argument.
1361 (append(size_type __n, _CharT __c)): Move inline.
1362 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
1363 const C*, const C*, input_iterator_tag)): Remove fifth unused
1366 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
1368 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
1369 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
1371 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1373 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
1376 2004-01-15 Stefan Olsson <stefan@snon.net>
1378 * include/ext/mt_allocator.h: Reuse thread id's as soon as
1379 possible by changing the behaviour of thread_freelist to do
1380 push_front when threads die instead of push_back.
1382 2004-01-14 Paolo Carlini <pcarlini@suse.de>
1384 * include/bits/locale_facets.h (struct __numpunct_cache):
1385 Add member _M_grouping_size, caching the length of _M_grouping.
1386 (__numpunct_cache<>::_M_cache): Assign the latter.
1387 (__verify_grouping): Move declaration...
1388 * include/bits/locale_facets.tcc (__verify_grouping):
1389 ... here, change signature to take a const char* and a size_t
1390 for the grouping; not a template anymore.
1391 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
1392 Likewise change signature and tweak consistently.
1393 (num_get::_M_extract_float, num_get::_M_extract_int,
1394 num_put::_M_insert_int, num_put::_M_insert_float,
1395 money_get::do_get(string_type&), money_get::do_put(string_type)):
1397 * config/locale/generic/numeric_members.cc
1398 (numpunct<>::_M_initialize_numpunct): Assign the new member.
1399 * config/locale/gnu/numeric_members.cc
1400 (numpunct<>::_M_initialize_numpunct): Likewise.
1401 * src/locale-inst.cc (__add_grouping): Tweak signature.
1402 (__verify_grouping): Don't instantiate, not a template anymore.
1404 * include/bits/locale_facets.h: Rename _M_truename_len ->
1405 _M_truename_size, _M_falsename_len -> _M_falsename_size.
1406 * include/bits/locale_facets.tcc: Likewise.
1407 * config/locale/generic/numeric_members.cc: Likewise.
1408 * config/locale/gnu/numeric_members.cc: Likewise.
1410 2004-01-14 Stefan Olsson <stefan@snon.net>
1412 * include/ext/mt_allocator.h: Fixups.
1413 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
1414 * testsuite/performance/allocator_thread.cc: Same.
1416 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
1418 * testsuite/performance/ifstream_extract_float.cc: Add higher
1420 * testsuite/performance/ofstream_insert_float.cc: Same.
1422 2004-01-13 Paolo Carlini <pcarlini@suse.de>
1424 * src/locale-misc-inst.cc (__convert_from_v(long),
1425 __convert_from_v(unsigned long), __convert_from_v(long long),
1426 __convert_from_v(unsigned long long)): Remove, unused.
1428 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
1430 * testsuite/performance/ifstream_extract_float.cc: New.
1431 * testsuite/performance/ofstream_insert_float.cc: Float generation
1434 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
1435 * 20_util/auto_ptr/1.cc: ...this.
1436 * 20_util/auto_ptr/2.cc: Same.
1437 * 20_util/auto_ptr/3.cc: Same.
1438 * 20_util/auto_ptr/3946.cc: Same.
1439 * 20_util/auto_ptr/4.cc: Same.
1440 * 20_util/auto_ptr/5.cc: Same.
1441 * 20_util/auto_ptr/6.cc: Same.
1442 * 20_util/auto_ptr/7.cc: Same.
1443 * 20_util/auto_ptr/assign_neg.cc
1444 * 20_util/pairs.cc: Break into...
1445 * 20_util/pair/1.cc: ...this.
1446 * 20_util/pair/2.cc: Same.
1447 * 20_util/pair/3.cc: Same.
1448 * 20_util/pair/4.cc: Same.
1450 2004-01-13 Paolo Carlini <pcarlini@suse.de>
1452 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
1453 Set correctly just basefield, the only group that matters.
1455 2004-01-13 Paolo Carlini <pcarlini@suse.de>
1457 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
1458 (_Rope_rep_base): Inherit directly from the rope allocator;
1459 use rebinding instead of _Alloc_traits; pick up data member
1460 from _Rope_rep_alloc_base.
1461 (_Rope_alloc_base): Eliminate.
1462 (_Rope_base): Inherit directly from the rope allocator; use
1463 rebinding instead of _Alloc_traits; pick up data member from
1465 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
1466 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
1468 2004-01-13 Paolo Carlini <pcarlini@suse.de>
1471 * include/bits/basic_string.tcc (compare(size_type, size_type,
1472 const _CharT*, size_type)): Implement correctly the resolution
1473 of DR 5: basically, s is a char array, -not- a C string.
1474 * include/bits/basic_string.h: Tweak some comments.
1475 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
1476 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
1478 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
1480 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
1483 2004-01-12 Paolo Carlini <pcarlini@suse.de>
1485 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
1487 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
1490 2004-01-12 Paolo Carlini <pcarlini@suse.de>
1492 * include/bits/locale_facets.h (struct __numpunct_cache):
1493 Add members _M_truename_len and _M_falsename_len, caching
1494 the lengths of _M_truename and _M_falsename.
1495 (__numpunct_cache<>::_M_cache): Assign the latter.
1496 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
1497 num_put::do_put(bool)): Use the new members, thus avoiding
1498 computing string lengths again and again.
1499 * config/locale/generic/numeric_members.cc
1500 (numpunct<>::_M_initialize_numpunct): Assign the new members.
1501 * config/locale/gnu/numeric_members.cc
1502 (numpunct<>::_M_initialize_numpunct): Likewise.
1504 2004-01-12 Mark Mitchell <mark@codesourcery.com>
1506 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
1507 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
1509 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
1510 and remove Cygwin XFAIL.
1511 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
1512 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
1513 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
1514 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
1516 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1517 * testsuite/27_io/objects/char/7.cc: Likewise.
1518 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
1519 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
1520 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
1522 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
1524 * include/std/std_complex.h (std::complex<>::real): Return a
1525 reference. Add non-const overload.
1526 (std::complex<>::real): Likewise.
1527 (std::real): Likewise.
1528 (std::imag): Likewise.
1529 (std::operator+): Tidy.
1530 (std::operator-): Likewise.
1531 (std::operator*): Likewise.
1532 (std::operator/): Likewise.
1533 (std::operator>>): Likewise.
1535 2004-01-11 Paolo Carlini <pcarlini@suse.de>
1538 * include/bits/fstream.tcc (imbue): Exploit the external
1539 buffer to imbue 'on the fly' a new locale and convert its
1540 remainder with the new codecvt facet.
1541 (underflow): Tweak slightly to deal with this special case.
1542 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
1543 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
1544 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
1545 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
1546 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
1548 2004-01-10 Paolo Carlini <pcarlini@suse.de>
1550 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1553 2004-01-10 Paolo Carlini <pcarlini@suse.de>
1556 * include/bits/locale_classes.h (class locale): Fix category
1558 * testsuite/22_locale/locale/13630.cc: Add.
1560 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1562 * include/bits/locale_facets.h: Make a name really dependent. This
1563 will be needed when Core Issue 224 is implemented.
1565 2004-01-09 Paolo Carlini <pcarlini@suse.de>
1567 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
1568 * testsuite/performance/allocator_thread.cc: Likewise.
1570 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
1572 * crossconfig.m4: Add LFS, io bits to linux cross config.
1573 * acconfig.h: Remove obsolete bits, reorder.
1574 * config.h.in: Regenerate.
1578 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
1580 * include/bits/stl_list.h:
1581 * include/bits/list.tc:
1583 Performance enhancements for destructor, push_front(),
1584 push_back(), pop_front(), pop_back(), sort()
1585 Eliminated static_casts where possible.
1586 Moved code out of header files into new src/list.cc
1587 implementation file for library where possible.
1588 Remove inheritance from iterator class and create separate
1589 classes for non-constant and constant iterators.
1590 * include/bits/stl_tree.h (_Rb_tree class):
1592 Only erase contents in destructor.
1593 Eliminate unnecessary initialization in assignment operator.
1594 Optimize for the nominal case by not checking whether
1595 container is empty in clear().
1596 Re-order test in _M_insert() to improve performance.
1597 Move initialization of new node's left & right pointers to
1598 src/tree.cc to where new node's colour is initialized
1599 and to reduce the amount of inline code.
1600 Use _M_leftmost() and _M_end() to improve readability where
1602 Create separate classes for non-constant and constant
1603 iterators to clarify code, avoid extra template parameters and
1604 casting away constness.
1606 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
1608 * src/Makefile.am (sources): Add list.cc, tree.cc.
1609 * src/stl_tree.cc: Move to...
1610 * src/tree.cc: ...here.
1612 * config/linker-map.gnu: Tweaks.
1613 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
1614 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
1616 * bits/stl_vector.h: Column wrap comments.
1618 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
1620 (re-open) PR libstdc++/12658
1621 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
1622 (locale::global): Likewise.
1624 2004-01-07 Paolo Carlini <pcarlini@suse.de>
1626 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
1627 Remove redundant #include.
1628 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
1629 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
1630 re-enable normal testing.
1631 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
1633 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
1634 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
1636 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
1638 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
1640 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
1642 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
1644 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
1646 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
1648 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
1649 More properly, #include <locale>.
1650 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
1651 Remove redundant #include.
1652 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
1653 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
1654 redundant DejaGnu directive.
1655 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
1658 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
1659 Stefan Olsson <stefan@snon.net>
1661 * scripts/check_performance: Use -pthread.
1662 * testsuite/performance/allocator.cc: Tweaks, add list.
1663 * testsuite/performance/allocator_thread.cc: New.
1665 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
1667 * include/bits/locale_facets.h: Document public classes and
1669 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1672 2004-01-06 Paolo Carlini <pcarlini@suse.de>
1674 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
1675 Remove redundant #includes.
1676 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
1678 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
1680 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
1681 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
1682 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
1683 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
1684 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
1685 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
1686 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
1687 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
1688 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
1689 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
1690 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
1691 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
1692 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
1693 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
1694 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
1696 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
1698 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
1700 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
1702 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
1704 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
1705 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
1706 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
1708 2004-01-04 Paolo Carlini <pcarlini@suse.de>
1710 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
1711 Remove redundant #includes.
1712 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
1714 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
1716 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
1718 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
1720 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
1722 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
1724 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1726 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1728 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1730 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
1732 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
1734 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
1737 2004-01-04 Mark Mitchell <mark@codesourcery.com>
1740 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
1742 * testsuite/27_io/basic_fstream/4.cc: Likewise.
1743 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
1744 * testsuite/27_io/basic_ios/4.cc: Likewise.
1745 * testsuite/27_io/basic_iostream/4.cc: Likewise.
1746 * testsuite/27_io/basic_istream/4.cc: Likewise.
1747 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
1748 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
1749 * testsuite/27_io/basic_ostream/4.cc: Likewise.
1750 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
1751 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
1752 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
1754 2004-01-04 Paolo Carlini <pcarlini@suse.de>
1756 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
1757 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
1758 always use double underscored names.
1759 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
1761 * include/bits/locale_facets.h (struct __numpunct_cache):
1762 Dimension _M_atoms_out and _M_atoms_in one position smaller.
1763 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out