1 2004-05-21 Paolo Carlini <pcarlini@suse.de>
3 * include/bits/istream.tcc (ignore): Remove redundant line.
4 (readsome): Tidy, closely following 27.6.1.3, p30.
6 2004-05-20 Paolo Carlini <pcarlini@suse.de>
8 * include/bits/istream.tcc (operator>>(basic_istream<>&,
9 basic_string<>&)): Use a temporary buffer, thus avoiding
10 reallocation for common case.
11 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
13 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
16 * include/bits/istream.tcc: Const-ification of a few variables.
18 * include/bits/ostream.tcc: Trivial formatting fixes and
19 const-ification of some variables.
21 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
25 * docs/doxygen/Intro.3: Remove Allocators.3.
26 Add new extension headers, extension namespace list.
27 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
28 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
29 __gnu_debug::. Remove __policy_ renames.
30 * docs/doxygen/guide.html: Add dot note.
31 * docs/doxygen/stdheader.cc: Edit, add files.
32 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
34 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
36 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
38 2004-05-18 Jan Beulich <jbeulich@novell.com>
41 * scripts/create_testsuite_files: Also find source files through
44 2004-05-18 Jan Beulich <jbeulich@novell.com>
47 * testsuite/lib/libstdc++.exp: Make test files writable.
49 2004-05-18 Paolo Carlini <pcarlini@suse.de>
51 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
54 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
56 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
57 allocation loop which removes blocks from the global free list
58 from O(N) to O(1) when the required blocks are <= the number
61 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
63 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
65 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
67 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
68 * testsuite/23_containers/deque/14340.cc: New.
69 * testsuite/23_containers/list/14340.cc: New.
70 * testsuite/23_containers/map/14340.cc: New.
71 * testsuite/23_containers/multimap/14340.cc: New.
72 * testsuite/23_containers/multiset/14340.cc: New.
73 * testsuite/23_containers/set/14340.cc: New.
74 * testsuite/23_containers/vector/14340.cc: New.
76 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
79 * include/debug/safe_iterator.h (_Safe_iterator converting
80 constructor): Only allow declaration to instantiate when the
81 incoming _Safe_iterator has exactly the right iterator type.
83 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
85 * include/bits/boost_concept_check.h: Fix old attribute syntax.
86 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
87 to pass concept-checks.
88 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
89 * testsuite/23_containers/set/modifiers/swap.cc: Same.
90 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
92 2004-05-16 Paolo Carlini <pcarlini@suse.de>
94 * include/std/std_bitset.h: Minor formatting fixes.
96 2004-05-16 Paolo Carlini <pcarlini@suse.de>
98 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
99 Consistently update __bin._M_free[0].
100 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
101 __bin._M_free[0] to simplify the while loop (i.e., the number
102 of iterations becomes known at the outset).
104 2004-05-15 Paolo Carlini <pcarlini@suse.de>
106 * include/std/std_bitset.h: Trivial formatting fixes.
108 2004-05-14 Paolo Carlini <pcarlini@suse.de>
109 Ivan Godard <igodard@pacbell.net>
112 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
113 * testsuite/23_containers/bitset/ext/15361.cc: New.
115 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
118 * crossconfig.m4: Add C99 math bits for linux crosses.
119 * configure: Regenerate.
121 2004-05-13 Simon Marshall <simon.marshall@misys.com>
122 Benjamin Kosnik <bkoz@redhat.com>
125 * include/bits/locale_facets.h: Fix for -fno-for-scope.
126 * include/debug/safe_sequence.h: Same.
127 * include/debug/safe_iterator.tcc: Same.
128 * src/debug.cc: Same.
129 * src/locale.cc: Same.
130 * src/locale_init.cc: Same.
131 * src/localename.cc: Same.
132 * config/locale/gnu/ctype_members.cc: Same.
133 * config/locale/gnu/numeric_members.cc: Same.
134 * testsuite/testsuite_abi.cc: Same.
135 * testsuite/testsuite_hooks.cc: Same.
137 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
139 * docs/html/abi.html: Document effect of -fabi-version on value
140 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
143 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
146 * docs/html/faq/index.html: Update docs for libsupc++ usage.
148 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
151 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
153 (_GLIBCXX_mutex_address): Same.
154 (_GLIBCXX_once): Same.
155 (_GLIBCXX_mutex_init): Same.
156 (_GLIBCXX_mutex_address_init): Same.
158 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
160 * docs/html/abi.html: New.
161 * docs/html/abi.txt: Remove.
162 * docs/html/documentation.html: Add link.
163 * testsuite/Makefile.am: Add files.
164 * testsuite/Makefile.in: Regenerated.
165 * testsuite/abi_check.cc: Move and modify code into...
166 * testsuite/testsuite_abi.cc: Add.
167 * testsuite/testsuite_abi.h: Add.
169 * docs/html/17_intro/TODO: Update.
170 * include/bits/stl_pair.h: Format.
172 2004-05-06 Matthias Klose <doko@debian.org>
174 * include/backward/iterator.h: Add GPL copyright info,
175 with exception clause.
176 * include/bits/boost_concept_check.h: Likewise.
178 * libsupc++/tinfo.h: Likewise.
179 * po/string_literals.cc: Likewise.
181 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
183 * acinclude.m4: Replace -W with more speaking -Wextra.
184 * configure: Rebuilt.
186 2004-05-03 Paolo Carlini <pcarlini@suse.de>
188 Optimize locale::_M_impl->_M_names for the most common cases:
189 !_M_names[0] means unnamed; !_M_names[1] means all the categories
190 the same name (_M_names[0] && _M_names[1] means that the full set
191 of _M_names must be processed, the general case).
192 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
193 Tweak, saving work when !_M_names[1].
194 (locale::locale(const locale&, _Facet*): Simplify: now just setting
195 _M_names[0] = 0 means unnamed.
196 * src/locale.cc (locale::operator==): Deal first with the common,
197 easy cases, otherwise fall back to locale::name().
198 (locale::name()): Tweak, if !_M_names[0] just return "*".
199 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
200 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
201 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
202 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
203 Simplify when !std::strchr, just updating _M_names[0]; clean up.
204 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
205 for the general case (full set of names), then do the usual work;
208 * src/locale.cc (locale::name()): Reserve space in __ret.
209 * src/locale_init.cc (locale::global(const locale&)): Save
210 the name in a temporary.
211 * src/localename.cc (locale::locale(const char*)): Reserve space
214 2004-04-29 Paolo Carlini <pcarlini@suse.de>
216 * src/locale.cc (locale::operator==): Always avoid constructing
217 locale::name(), directly compare pairs of _M_names.
219 2004-04-26 Paolo Carlini <pcarlini@suse.de>
221 * include/bits/istream.tcc: Fix comment.
223 2004-04-26 Paolo Carlini <pcarlini@suse.de>
225 * include/bits/stl_vector.h: Trivial formatting fixes.
226 * include/bits/vector.tcc: Likewise.
228 2004-04-25 Paolo Carlini <pcarlini@suse.de>
230 PR libstdc++/15002 (continued again)
231 * include/bits/istream.tcc (getline(basic_istream<>&,
232 basic_string<>&, _CharT)): Use a temporary buffer, thus
233 avoiding reallocation for common case.
235 * include/bits/basic_string.tcc (_S_construct(_InIterator,
236 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
237 of temporary buffer to a power of two.
239 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
241 2004-04-25 Paolo Carlini <pcarlini@suse.de>
243 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
245 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
247 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
249 2004-04-24 Paolo Carlini <pcarlini@suse.de>
250 Petur Runolfsson <peturr02@ru.is>
252 PR libstdc++/15002 (continued)
253 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
254 streamsize, char_type)): Use traits::find/copy in a loop to speed
255 up greatly the function in the common case (I/O buffer size >> 1).
257 2004-04-24 Paolo Carlini <pcarlini@suse.de>
259 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
261 * include/bits/istream.tcc (getline(basic_istream<>&,
262 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
263 of sbumpc(), consistently with the other functions, thus also
264 dealing correctly with the case of exceeded string::max_size().
266 2004-04-24 Matthias Klose <doko@debian.org>
268 Jonathan Wakely <cow@compsoc.man.ac.uk>
269 * docs/html/configopts.html: Fix reference to allocator config option.
271 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
273 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
274 * configure: Regenerate.
276 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
278 PR libstdc++/15047, libstdc++/11610
279 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
280 (libstdc++_init): Don't pass outdir to v3-copy-files.
282 2004-04-21 Paolo Carlini <pcarlini@suse.de>
284 * include/bits/deque.tcc: Trivial formatting fixes.
285 * include/bits/stl_deque.h: Likewise.
286 * include/bits/stl_list.h: Likewise.
287 * include/bits/stl_tree.h: Likewise.
289 2004-04-21 Paolo Carlini <pcarlini@suse.de>
290 Andrew Pinski <pinskia@physics.uc.edu>
292 * include/bits/basic_string.tcc (_M_mutate): Don't compute
295 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
297 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
298 Clarify assertion, set test variable to false before assert.
299 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
300 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
301 * testsuite/27_io/ios_base/storage/2.cc: Same.
303 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
305 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
306 * testsuite/27_io/fpos/14320-3.cc: Same.
308 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
309 * testsuite/27_io/fpos/1.cc: Same.
310 * testsuite/27_io/basic_stringstream/2.cc: Same.
311 * testsuite/27_io/basic_stringbuf/4.cc: Same.
312 * testsuite/27_io/basic_stringbuf/1.cc: Same.
313 * testsuite/27_io/basic_stringbuf/2.cc: Same.
314 * testsuite/27_io/basic_streambuf/2.cc: Same.
315 * testsuite/27_io/basic_ostringstream/2.cc: Same.
316 * testsuite/27_io/basic_ostream/2.cc: Same.
317 * testsuite/27_io/basic_ofstream/2.cc: Same.
318 * testsuite/27_io/basic_istringstream/2.cc: Same.
319 * testsuite/27_io/basic_istream/2.cc: Same.
320 * testsuite/27_io/basic_iostream/2.cc: Same.
321 * testsuite/27_io/basic_ios/2.cc: Same.
322 * testsuite/27_io/basic_ifstream/2.cc: Same.
323 * testsuite/27_io/basic_fstream/2.cc: Same.
324 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
326 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
327 unsigned against zero.
328 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
329 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
331 * testsuite/18_support/new_delete_placement.cc: Initialize
332 variables before first use.
333 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
334 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
335 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
336 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
338 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
339 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
341 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
342 * testsuite/27_io/types/2.cc: Same.
344 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
346 * testsuite/27_io/fpos/14775.cc: Same.
348 2004-04-19 Paolo Carlini <pcarlini@suse.de>
350 PR libstdc++/15002 (partial)
351 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
352 Special case __n2 == 1, not calling traits_type::assign/copy.
354 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
356 * include/bits/stl_bvector.h: Use _M_impl._M_start.
358 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
360 * include/bits/c++config (_GLIBCXX_STD): New.
361 * src/list.cc: Use it.
362 * include/std/std_bitset.h: Same.
363 * include/bits/vector.tcc: Same.
364 * include/bits/stl_set.h: Same.
365 * include/bits/stl_multiset.h: Same.
366 * include/bits/stl_multimap.h: Same.
367 * include/bits/stl_map.h: Same.
368 * include/bits/stl_list.h: Same.
369 * include/bits/stl_vector.h: Same.
370 * include/bits/stl_bvector.h: Same.
371 * include/bits/stl_deque.h: Same.
372 * include/bits/deque.tcc: Same.
373 * include/bits/list.tcc: Same.
374 * include/debug/vector: Same.
375 * include/debug/set.h: Same.
376 * include/debug/multiset.h: Same.
377 * include/debug/multimap.h: Same.
378 * include/debug/map.h: Same.
379 * include/debug/list: Same.
380 * include/debug/deque: Same.
381 * include/debug/bitset: Same.
382 * include/debug/formatter.h (__gnu_debug): Remove using directive.
383 Add using declaration for std::type_info.
384 * include/debug/safe_iterator.h: Add using declaration for
385 std::iterator_traits and std::pair.
386 * src/debug_list.cc: New.
387 * src/Makefile.am: Add debug_list.cc.
388 * src/Makefile.in: Regenerate.
389 * config/linker-map.gnu: Add _List_node_base exports for std and
392 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
393 idiom that other containers use.
394 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
396 2004-04-16 Paolo Carlini <pcarlini@suse.de>
399 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
401 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
402 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
404 2004-04-16 Paolo Carlini <pcarlini@suse.de>
406 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
408 * config.h.in: Regenerate.
410 2004-04-16 Paolo Carlini <pcarlini@suse.de>
412 * config/locale/generic/monetary_members.cc
413 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
414 btowc unnecessarily, just cast to wchar_t (the concerned chars
415 all belong to the basic character set).
416 * config/locale/generic/numeric_members.cc
417 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
418 * config/locale/gnu/monetary_members.cc
419 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
420 * config/locale/gnu/numeric_members.cc
421 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
423 2004-04-15 Paolo Carlini <pcarlini@suse.de>
425 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
426 avoid constructing unnecessarily this->name().
428 2004-04-14 Zack Weinberg <zack@codesourcery.com>
430 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
431 Change definition of CXX to use $(shell) instead of backticks.
432 * testsuite/Makefile.in: Regenerate.
434 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
436 * testsuite/performance/20_util/allocator/list_sort_search.cc:
437 Minor formatting fixes.
438 * testsuite/performance/20_util/allocator/map_mt_find.cc:
441 2004-04-12 Paolo Carlini <pcarlini@suse.de>
443 * config/locale/gnu/numeric_members.cc
444 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
445 in __uselocale, since btowc is called for chars belonging to
446 the basic character set.
448 2004-04-09 Paolo Carlini <pcarlini@suse.de>
450 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
451 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
452 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
453 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
454 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
455 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
456 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
457 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
458 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
459 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
460 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
461 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
462 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
463 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
464 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
465 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
466 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
468 2004-04-07 Paolo Carlini <pcarlini@suse.de>
470 * config/locale/generic/time_members.cc
471 (__timepunct<char>::_M_initialize_timepunct,
472 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
473 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
474 * config/locale/gnu/time_members.cc
475 (__timepunct<char>::_M_initialize_timepunct,
476 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
477 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
478 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
480 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
481 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
482 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
483 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
484 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
485 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
486 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
487 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
488 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
489 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
490 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
491 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
492 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
493 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
494 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
495 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
496 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
497 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
498 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
499 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
500 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
501 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
502 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
503 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
504 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
505 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
506 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
507 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
508 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
509 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
510 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
511 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
512 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
513 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
514 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
515 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
517 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
519 2004-04-07 Paolo Carlini <pcarlini@suse.de>
521 * config/locale/gnu/monetary_members.cc
522 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
523 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
524 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
525 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
526 * config/locale/gnu/numeric_members.cc
527 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
528 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
530 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
532 Fixups for EDG front end.
533 * include/ext/rope: Instead of non-existent function
534 _Data_allocate, use allocator's allocate. Use this.
535 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
536 enumerations from _Rope_RopeRep here.
537 * include/ext/ropeimpl.h: Same.
538 * src/ext-inst.cc (_S_min_len): Fix up definition.
540 * config/locale/gnu/ctype_members.cc: Qualify base class members
542 * config/locale/generic/ctype_members.cc: Same.
543 * config/locale/gnu/messages_members.h: Same.
544 * config/locale/generic/messages_members.h: Same.
545 * src/ctype.cc: Same.
546 * include/bits/codecvt.h: Same.
548 * include/bits/boost_concept_check.h: Declare.
549 (__error_type_must_be_an_unsigned_integer_type): Remove this.
550 (__error_type_must_be_an_integer_type): Remove this.
551 (__error_type_must_be_a_signed_integer_type): Remove this.
553 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
555 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
556 specification to definition.
557 (__cxa_allocate_exception): Same.
558 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
559 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
560 (__cxa_get_globals): Same.
562 * libsupc++/del_op.cc: Add comment about freestanding.
564 2004-04-05 Paolo Carlini <pcarlini@suse.de>
566 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
567 The critical section is actually very small, only two assignments.
569 2004-04-04 Paolo Carlini <pcarlini@suse.de>
570 Petur Runolfsson <peturr02@ru.is>
572 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
573 adapted from libstdc++/11378.
575 2004-04-03 Paolo Carlini <pcarlini@suse.de>
577 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
578 some duplicated code.
579 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
580 in the single threaded case.
581 * testsuite/performance/20_util/allocator/list_sort_search.cc:
582 Reorder and renumber the tests consistently with the other testfiles.
583 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
584 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
585 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
587 2004-04-02 Paolo Carlini <pcarlini@suse.de>
589 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
590 Rearrange arithmetic to avoid computing two divisions at
593 2004-04-01 Paolo Carlini <pcarlini@suse.de>
595 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
596 Streamline the second half, wrapping it in a single
597 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
598 conditionals inside loops.
600 2004-04-01 Paolo Carlini <pcarlini@suse.de>
603 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
604 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
605 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
606 to _GLIBCXX_RES_LIMITS.
607 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
609 * testsuite/testsuite_hooks.h: Declare set_file_limit.
610 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
611 and setrlimit(RLIMIT_FSIZE).
612 * testsuite/27_io/fpos/14775.cc: New.
613 * config.h.in: Regenerate.
614 * configure: Likewise.
616 2004-03-31 Paolo Carlini <pcarlini@suse.de>
618 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
619 In v3 uses of sscanf, the special floating-point numbers INF,
620 INFINITY, etc., cannot occur in input, therefore, if the latter
621 is too large, ERANGE is always stored in errno, no need of finitel.
623 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
626 * include/bits/stl_tree.h: Adjust initialization list order.
628 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
630 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
632 2004-03-29 Paolo Carlini <pcarlini@suse.de>
634 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
635 on allocator behavior, the memory pointed by data2 may well be not
638 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
641 * include/bits/basic_string.tcc
642 (basic_string::basic_string(const basic_string&)): Pass to
643 _Rep::_M_grab the actual allocator of the string being constructed
644 not the default constructed one.
646 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
649 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
650 (__enc_traits::_M_destroy): New.
651 (__enc_traits::~__enc_traits): Use it.
652 (__enc_traits::operator=): Use _M_destroy, _M_init.
653 (__enc_traits::__enc_traits): Same.
655 2004-03-27 Petur Runolfsson <peturr02@ru.is>
657 * testsuite/ext/enc_filebuf/char/13598.cc: New.
659 2004-03-27 Paolo Carlini <pcarlini@suse.de>
661 * include/ext/mt_allocator.h: Uglify consistently names of
662 variables, members and classes; tidy.
664 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
666 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
667 Deallocation loop rewrote.
669 2004-03-26 Paolo Carlini <pcarlini@suse.de>
671 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
672 __mt_alloc<>::deallocate): Protect two instances of
673 block->thread_id with __GTHREADS.
675 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
677 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
678 default argument in constructors.
679 (_Rb_tree::_M_empty_initialize): Remove.
681 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
683 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
684 * testsuite/23_containers/set/operators/1_neg.cc: Same.
686 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
688 * include/bits/cpp_type_traits.h: Changed __is_pod
689 completely. Now, it does not use any of the previous type_traits
690 to detect the pod types, and it also detects function pointers as
693 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
694 which encapsulates the internal implementation of an rb_tree. Made
695 the allocator a base class of this class instead of the rb_tree,
696 which was not conforming. This _Rb_tree_impl class is also
697 specialized on whether the _Compare parameter is a POD type or
698 not. If so, then it maintains the comparison function as a data
699 member, otherwise it makes the _Compare parameter a base class of
700 itself. Also, _M_key_compare is now a function instead of a data
701 member, so that the above trick can work properly. Delegated the
702 initialization of the other data members to this newly created
703 class. Also, now other member functions of rb_tree must refer to
704 _M_key_compare as _M_impl._M_key_compare(). The other data members
705 (*) can be referenced to as _M_impl.(*), where
706 (*) includes _M_header, and _M_node_count.
708 2004-03-25 Paolo Carlini <pcarlini@suse.de>
710 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
711 Add _M_min_bin, the size in bytes of the smallest bin.
712 (__mt_alloc<>::tune()): Tweak accordingly.
713 (__mt_alloc<>::tune(size_t, ...)): Likewise.
714 (__mt_alloc<>::block_record): Change to a union: members next
715 and thread_id are never used at the same time.
716 (__mt_alloc<>::allocate): Update consistently.
717 (__mt_alloc<>::deallocate): Likewise.
718 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
719 _S_bin_size for the configurable _M_min_size.
721 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
723 * include/bits/stl_list.h: Created a _List_impl class and made it
724 derive from the allocator, instead of the list deriving from the
725 allocator class, which was not conformant. Changed all references
726 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
727 as above (changed all references to the concerned variables).
729 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
731 * include/bits/stl_deque.h: Created a _Deque_impl class and made
732 it derive from the allocator, instead of the deque deriving from
733 the allocator class, which was not conformant. Changed all
734 references to the _M_start, _M_finish, _M_map, and _M_map_size to
736 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
737 qualification in 2 places where it was missing.
738 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
740 * include/bits/deque.tcc: Same as above (changed all references to
741 the concerned variables).
743 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
745 * include/bits/stl_vector.h: Created a _Vector_impl class and made
746 it derive from the allocator, instead of the _Vector_base class,
747 deriving from the allocator which was not conformant. Changed all
748 references to the _M_start, _M_finish, and _M_end_of_storage to
750 * include/bits/vector.tcc: Same as above (changed all references
751 to the concerned variables).
753 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
755 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
756 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
757 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
759 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
761 * include/ext/malloc_allocator.h: Fixed the construct function to
762 call global placement new instead of assignment. Added a check
763 after the return from malloc to check whether returned pointer is
764 NULL, and if so, throw std::bad_alloc().
765 * include/ext/debug_allocator.h: Added a check in the deallocate
766 function to check whether the user has passed a NULL pointer or
769 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
771 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
773 2004-03-24 Andreas Schwab <schwab@suse.de>
775 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
776 warning from IA64 assembler.
778 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
780 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
781 function call __builtin_ctz instead of the while loop.
782 (allocate) -> If condition has __builtin_expect.
783 (deallocate) -> Ditto.
784 Renamed a few left-over variables and typedefs according to the
785 C++STYLE mentioned in the documentation.
786 Protected calls to __gthread* by __gthread_active_p(), whose value
787 is cached in the local variable __threads_active.
789 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
791 * testsuite/performance/20_util/allocator/producer_consumer.cc:
792 Use linear algorithm for producer.
794 2004-03-24 Paolo Carlini <pcarlini@suse.de>
796 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
797 __mt_alloc<>::deallocate): Avoid redundant conditionals.
799 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
801 * include/bits/locale_facets.h: Tweaks for 80 column.
802 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
803 (__moneypunct_cache::_M_cache): Same.
804 (num_get): Don't inherit from __num_base.
806 (money_get): Don't inherit from money_base.
808 (__timepunct::_M_am_pm_format): New.
809 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
810 (time_get::_M_extract_name): Same.
811 (time_get::_M_extract_via_format): Same.
812 * include/bits/locale_facets.tcc: Tweaks for 80 column.
813 Use _M_getloc instead of getloc.
814 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
815 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
816 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
818 2004-03-22 Paolo Carlini <pcarlini@suse.de>
820 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
821 * configure: Regenerate.
822 * config/allocator/pool_allocator_base.h: New.
823 * include/ext/pool_allocator.h: Convert to a standard-conforming
825 * src/allocator.cc: Tweak instantiations.
826 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
827 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
828 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
829 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
830 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
831 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
833 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
835 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
836 inline" and attribute-unused. Qualify parameter __mem with
838 (__exchange_and_add): Ditto. Add back memory clobber to asm.
840 2004-03-20 Paolo Carlini <pcarlini@suse.de>
842 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
844 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
846 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
848 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
850 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
852 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
854 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
856 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
858 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
860 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
863 2004-03-20 Paolo Carlini <pcarlini@suse.de>
865 * include/std/std_valarray.h: Document DR389 [Ready].
866 * docs/html/ext/howto.html: Add an entry for DR389.
868 2004-03-19 Michael Eager <eager@mvista.com>
870 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
873 2004-03-19 Paolo Carlini <pcarlini@suse.de>
875 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
877 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
878 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
879 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
880 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
881 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
882 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
883 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
884 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
885 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
887 2004-03-19 Paolo Carlini <pcarlini@suse.de>
888 Petur Runolfsson <peturr02@ru.is>
891 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
892 no way to find out the conversion used by the underlying FILE*.
893 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
894 * testsuite/27_io/objects/char/9.cc: Tweak.
896 2004-03-19 Paolo Carlini <pcarlini@suse.de>
899 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
900 memory allocation/deallocation calls.
901 * testsuite/ext/14648.cc: New.
903 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
906 * include/backward/bvector.h (bit_vector): Allocator is in std
909 2004-03-19 Phil Edwards <phil@codesourcery.com>
911 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
912 not libiconv. SUBST this variable as well.
913 * testsuite/Makefile.am (site.exp): New target, based on that
914 created by automake. Also set libiconv.
916 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
917 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
918 testsuite/Makefile.in: Regenerate.
920 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
922 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
923 new_allocator for all hosts.
924 * configure: Regenerate.
926 2004-03-16 Paolo Carlini <pcarlini@suse.de>
928 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
929 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
931 2004-03-15 Paolo Carlini <pcarlini@suse.de>
933 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
934 Adjust the logic underlying the parsing of symbol to deal
935 correctly with an optional sign component (i.e., when either
936 negative_sign or positive_sign is empty)
937 * testsuite/22_locale/money_get/get/char/19.cc: New.
938 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
940 2004-03-15 Paolo Carlini <pcarlini@suse.de>
942 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
943 Do not accept an incomplete currency symbol.
944 * testsuite/22_locale/money_get/get/char/18.cc: New.
945 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
947 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
949 * config/allocator: New.
950 * config/allocator/bitmap_allocator_base.h: New.
951 * config/allocator/malloc_allocator_base.h: New.
952 * config/allocator/mt_allocator_base.h: New.
953 * config/allocator/new_allocator_base.h: New.
954 * include/bits/allocator.h: Include c++allocator.h.
955 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
956 * aclocal.m4: Regenerate.
957 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
958 * configure: Regenerate.
959 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
960 * include/Makefile.in: Regenerate.
961 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
963 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
965 * include/bits/allocator.h: Revert.
967 2004-03-12 Paolo Carlini <pcarlini@suse.de>
969 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
970 * include/bits/gslice_array.h: Add comment about DR 253.
971 * include/bits/indirect_array.h: Likewise.
972 * include/bits/mask_array.h: Likewise.
973 * include/bits/slice_array.h: Likewise.
975 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
977 * testsuite/20_util/allocator/14176.cc: New.
978 * include/ext/mt_allocator.h: Formatting fixes.
980 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
982 * include/Makefile.am (ext_headers): Add
983 ${ext_srcdir}/bitmap_allocator.h .
984 * include/Makefile.in: Regenerate.
985 * docs/html/ext/ballocator_doc.txt: New file.
986 * include/ext/bitmap_allocator.h: New file.
987 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
989 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
990 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
991 test for the bitmap_allocator<>.
992 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
993 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
994 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
996 2004-03-11 Paolo Carlini <pcarlini@suse.de>
998 * include/std/std_complex.h (pow(const complex&, const _Tp&),
999 pow(const _Tp&, const complex&), pow(const complex&,
1000 const complex&)): Fully qualify with std:: a few calls.
1001 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1003 2004-03-11 Steven Bosscher <stevenb@suse.de>
1006 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1008 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1010 * configure.ac: Bump AC_PREREQ to 2.59.
1012 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1014 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1016 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1017 Paolo Carlini <pcarlini@suse.de>
1020 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1021 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1022 * testsuite/26_numerics/complex/13450.cc: New.
1024 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1025 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1027 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1030 * include/bits/gslice_array.h (gslice_array()): Make public.
1031 (operator=(gslice_array)): Make public. Implement.
1032 * include/bits/indirect_array.h (indirect_array()): Make public.
1033 * include/bits/mask_array.h (mask_array()): Make public.
1034 (operator=(mask_array)): Make public. Implement.
1035 * include/bits/valarray_array.tcc (__valarray_copy):
1036 Comment. Add versions for gslice_array and mask_array.
1037 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1039 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1041 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1043 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1044 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1045 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1046 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1047 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1048 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1050 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1052 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1055 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1056 * testsuite/23_containers/list/modifiers/swap.cc: New.
1057 * testsuite/23_containers/map/modifiers/swap.cc: New.
1058 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1059 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1060 * testsuite/23_containers/set/modifiers/swap.cc: New.
1061 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1063 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1066 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1068 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1070 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1071 * include/bits/stl_multiset.h: Add comment about DR 103.
1072 * include/bits/stl_set.h: Likewise.
1074 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1076 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1077 The value _space_ indicates that at least one space is required
1079 * testsuite/22_locale/money_get/get/char/17.cc: New.
1080 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1082 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1083 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1085 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1086 Remove redundant conditional on __str.size().
1088 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1090 * include/bits/allocator.h: Switch defaults to mt_alloc.
1092 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1094 * include/ext/mt_allocator.h (_S_initialize): If
1095 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1097 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1100 * src/locale_init.cc (locale::locale): Lock critical regions with
1102 (locale::global): Same.
1103 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1104 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1105 (__glibcxx_mutex_lock): Same.
1107 * config/cpu/generic/atomicity.h: Remove
1108 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1109 * src/misc-inst.cc: Move all locking bits out of this file.
1111 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1112 * src/misc-inst.cc: Same.
1113 * config/cpu/hppa/atomicity.h: Same.
1115 * config/linker-map.gnu: Remove types in the signature of atomic
1116 exports, as they may vary.
1118 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1120 * include/bits/locale_facets.tcc: Tweak the comment preceding
1121 has_facet: doesn't throw.
1123 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1125 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1126 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1127 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1128 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1129 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1130 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1131 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1132 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1134 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1136 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1137 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1138 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1139 * testsuite/testsuite_character.h (struct __gnu_test::character):
1141 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1144 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1146 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1148 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1150 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1152 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1154 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1155 * testsuite/23_containers/list/invalidation/1.cc: Same.
1156 * testsuite/23_containers/list/invalidation/2.cc: Same.
1157 * testsuite/23_containers/list/invalidation/3.cc: Same.
1158 * testsuite/23_containers/list/invalidation/4.cc: Same.
1159 * testsuite/23_containers/map/invalidation/2.cc: Same.
1160 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1161 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1162 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1163 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1164 * testsuite/23_containers/set/invalidation/1.cc: Same.
1165 * testsuite/23_containers/set/invalidation/2.cc: Same.
1166 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1167 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1168 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1169 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1171 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1173 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1175 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1177 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1178 from the dg-options.
1179 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1180 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1181 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1182 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1183 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1184 * testsuite/26_numerics/complex_value.cc: Likewise.
1185 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1186 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1187 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1188 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1189 * testsuite/27_io/objects/char/5.cc: Likewise.
1190 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1191 * testsuite/backward/11460.cc: Likewise.
1192 * testsuite/thread/pthread7-rope.cc: Likewise.
1194 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1195 missing test variable.
1196 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1197 missing test variable.
1199 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1201 * testsuite/20_util/allocator/1.cc: Provide explicit
1202 instantiations for non-weak systems.
1203 * testsuite/20_util/binders.cc: Same.
1204 * testsuite/20_util/allocator/8230.cc: Same.
1205 * testsuite/20_util/allocator/10378.cc: Same.
1206 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1207 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1208 * testsuite/thread/pthread7-rope.cc: Same.
1209 * testsuite/thread/pthread6.cc: Same.
1210 * testsuite/thread/pthread5.cc: Same.
1211 * testsuite/thread/pthread4.cc: Same.
1212 * testsuite/thread/pthread1.cc: Same.
1213 * testsuite/ext/rope.cc: Same.
1214 * testsuite/ext/hash_set.cc: Same.
1215 * testsuite/ext/hash_map.cc: Same.
1216 * testsuite/ext/concept_checks.cc: Same.
1217 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1218 * testsuite/25_algorithms/unique/2.cc: Same.
1219 * testsuite/25_algorithms/unique/1.cc: Same.
1220 * testsuite/25_algorithms/rotate.cc: Same.
1221 * testsuite/25_algorithms/min_max.cc: Same.
1222 * testsuite/25_algorithms/equal.cc: Same.
1223 * testsuite/24_iterators/rel_ops.cc: Same.
1224 * testsuite/24_iterators/iterator.cc: Same.
1225 * testsuite/24_iterators/insert_iterator.cc: Same.
1226 * testsuite/24_iterators/front_insert_iterator.cc: Same.
1227 * testsuite/24_iterators/back_insert_iterator.cc: Same.
1228 * testsuite/23_containers/vector/resize/1.cc: Same.
1229 * testsuite/23_containers/vector/modifiers/2.cc: Same.
1230 * testsuite/23_containers/vector/modifiers/1.cc: Same.
1231 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1232 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1233 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1234 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1235 * testsuite/23_containers/vector/element_access/1.cc: Same.
1236 * testsuite/23_containers/vector/cons/6513.cc: Same.
1237 * testsuite/23_containers/vector/cons/3.cc: Same.
1238 * testsuite/23_containers/vector/cons/2.cc: Same.
1239 * testsuite/23_containers/vector/cons/1.cc: Same.
1240 * testsuite/23_containers/vector/capacity/8230.cc: Same.
1241 * testsuite/23_containers/vector/capacity/1.cc: Same.
1242 * testsuite/23_containers/vector/bool/6886.cc: Same.
1243 * testsuite/23_containers/stack/members/7158.cc: Same.
1244 * testsuite/23_containers/set/invalidation/2.cc: Same.
1245 * testsuite/23_containers/set/invalidation/1.cc: Same.
1246 * testsuite/23_containers/queue/members/7157.cc: Same.
1247 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1248 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1249 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1250 * testsuite/23_containers/multiset/insert/1.cc: Same.
1251 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1252 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1253 * testsuite/23_containers/map/operators/1.cc: Same.
1254 * testsuite/23_containers/map/invalidation/2.cc: Same.
1255 * testsuite/23_containers/map/invalidation/1.cc: Same.
1256 * testsuite/23_containers/map/insert/1.cc: Same.
1257 * testsuite/23_containers/list/operators/4.cc: Same.
1258 * testsuite/23_containers/list/operators/3.cc: Same.
1259 * testsuite/23_containers/list/operators/2.cc: Same.
1260 * testsuite/23_containers/list/operators/1.cc: Same.
1261 * testsuite/23_containers/list/modifiers/3.cc: Same.
1262 * testsuite/23_containers/list/modifiers/2.cc: Same.
1263 * testsuite/23_containers/list/modifiers/1.cc: Same.
1264 * testsuite/23_containers/list/invalidation/4.cc: Same.
1265 * testsuite/23_containers/list/invalidation/3.cc: Same.
1266 * testsuite/23_containers/list/invalidation/2.cc: Same.
1267 * testsuite/23_containers/list/invalidation/1.cc: Same.
1268 * testsuite/23_containers/list/cons/9.cc: Same.
1269 * testsuite/23_containers/list/cons/8.cc: Same.
1270 * testsuite/23_containers/list/cons/7.cc: Same.
1271 * testsuite/23_containers/list/cons/6.cc: Same.
1272 * testsuite/23_containers/list/cons/5.cc: Same.
1273 * testsuite/23_containers/list/cons/4.cc: Same.
1274 * testsuite/23_containers/list/cons/3.cc: Same.
1275 * testsuite/23_containers/list/cons/2.cc: Same.
1276 * testsuite/23_containers/list/cons/1.cc: Same.
1277 * testsuite/23_containers/list/capacity/1.cc: Same.
1278 * testsuite/23_containers/deque/operators/1.cc: Same.
1279 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1280 * testsuite/23_containers/deque/invalidation/3.cc: Same.
1281 * testsuite/23_containers/deque/invalidation/2.cc: Same.
1282 * testsuite/23_containers/deque/invalidation/1.cc: Same.
1283 * testsuite/23_containers/deque/cons/2.cc: Same.
1284 * testsuite/23_containers/deque/cons/1.cc: Same.
1286 * src/allocator.cc: Add char, wchar_t instantiations
1287 to match extern template declarations in memory.h.
1289 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1291 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1292 Fix warning regression.
1294 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1296 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1297 Deal properly with empty __digits and negative frac_digits,
1300 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
1302 * docs/html/documentation.html: Regenerate.
1304 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1307 * include/bits/postypes.h (class streamoff): Remove, now
1308 streamoff is just typedef a 64 bit signed integer type.
1309 (class fpos): Tweak consistently.
1310 * testsuite/27_io/fpos/14320-1.cc: New.
1311 * testsuite/27_io/fpos/14320-2.cc: New.
1312 * testsuite/27_io/fpos/14320-3.cc: New.
1313 * testsuite/27_io/fpos/14320-4.cc: New.
1314 * testsuite/27_io/fpos/14320-5.cc: New.
1315 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1317 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1319 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1320 Reorganize a bit the main parsing loop, thus early detecting
1321 an empty value component.
1322 * testsuite/22_locale/money_get/get/char/16.cc: New.
1323 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1325 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
1327 Support automake 1.8.2
1328 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1329 * po/Makefile.am (EXTRA_DIST): New.
1330 * po/Makefile.in: Regenerate.
1331 * Makefile.in: Same.
1332 * include/Makefile.in: Same.
1333 * libmath/Makefile.in: Same.
1334 * libsupc++/Makefile.in: Same.
1335 * src/Makefile.in: Same.
1336 * testsuite/Makefile.in: Same.
1338 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1339 __GXX_WEAK__ instead of SUPPORTS_WEAK.
1340 (${host_builddir}/gthr-default.h): Same.
1341 (${host_builddir}/gthr.h): Same.
1342 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1343 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1345 * aclocal.m4: Regenerate.
1346 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1347 * config.h.in: Regenerate.
1350 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1352 Support autoconf 2.59
1353 * acinclude.m4: Quote correctly.
1354 * aclocal.m4: Regenerate.
1357 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1359 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1361 * docs/html/18_support/howto.html: Add bit about writing to
1362 stderr, mostly by Zack.
1364 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1366 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1367 money_get<>::do_get(string_type&)): ... and two more.
1369 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1371 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1372 Fix thinkos in the switch from string_type& to string& as last
1375 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1377 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1378 Also when parsing exponent sign, first look for thousands_sep
1379 and decimal_point; tweak a bit.
1380 * testsuite/22_locale/num_get/get/char/15.cc: New.
1381 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
1383 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1384 num_get<>::_M_extract_int): Reorder some conditionals.
1386 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1388 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1389 Consistently with numpunct, enforce the requirements in
1390 22.2.6.3, p3 for the thousands separators; tweak a bit.
1391 * testsuite/22_locale/money_get/get/char/15.cc: New.
1392 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
1394 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
1396 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
1397 testsuite_files from correct multilib blddir when running
1400 2004-02-29 Phil Edwards <phil@codesourcery.com>
1402 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
1403 the summary file to the logfile.
1404 * testsuite/Makefile.in: Regenerate.
1406 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1408 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
1410 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
1411 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
1413 2004-02-28 Paolo Carlini <pcarlini@suse.de>
1415 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1416 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
1417 no 'decimal-point' in the middle: in this case too we must fix
1418 up __found_grouping; slightly tweak.
1419 * testsuite/22_locale/num_get/get/char/14.cc: New.
1420 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
1422 2004-02-27 Eric Christopher <echristo@redhat.com>
1423 Phil Edwards <phil@codesourcery.com>
1425 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
1426 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
1427 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
1428 testsuite/22_locale/collate/hash/wchar_t/2.cc,
1429 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
1430 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
1431 testsuite/22_locale/collate/transform/wchar_t/2.cc,
1432 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
1433 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1434 Use dg-require-iconv.
1435 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
1437 2004-02-27 Phil Edwards <phil@codesourcery.com>
1438 Eric Christopher <echristo@redhat.com>
1440 * testsuite/config/default.exp: Update with comments.
1441 (${tool}_target_compile): New wrapper routine.
1442 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
1443 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
1445 (load_gcc_lib, v3track): New routines.
1446 (v3-init): Rename to libstdc++_init.
1447 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
1448 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
1450 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
1452 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
1454 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
1456 * config/os/irix/irix5.2/atomicity.h: Merge..
1457 * config/os/irix/irix6.5/atomicity.h: Merge..
1458 * config/os/irix/atomicity.h: ...into this.
1459 * config/os/irix/atomic_word.h: New.
1460 * configure.host: Set atomic_word_dir for irix.
1462 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
1463 * i386/atomicity.h: Same.
1464 * m68k/atomicity.h: Same.
1465 * sparc/atomicity.h: Same.
1467 2004-02-27 David Edelsohn <edelsohn@gnu.org>
1469 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
1470 static, and inline keywords.
1472 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1474 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1475 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1476 call reserve on the __tmp_gruping string.
1477 (num_get<>::_M_extract_float): Don't append unnecessarily a
1478 char() to the returned string.
1479 * include/bits/locale_facets.tcc: Trivial reformattings.
1481 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1483 * include/bits/locale_facets.h (money_get<>::_M_extract):
1484 Change signature: now takes a plain string&.
1485 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1486 Update consistently the definition; use the moneypunct cache
1487 to parse the value; use swap to change __units.
1488 (money_get<>::do_get(long double&)): Update call of _M_extract,
1489 avoid ctype::narrow, not correct wrt the standard.
1490 (money_get<>::do_get(string_type&)): Likewise, update call
1491 of _M_extract, use ctype::widen.
1492 * src/locale-inst.cc: Tweak instantiations of _M_extract.
1494 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
1496 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1497 * testsuite/demangle/abi_examples/02.cc: Likewise.
1498 * testsuite/demangle/regression/cw-11.cc: Likewise.
1499 * testsuite/demangle/regression/cw-16.cc: Change two expected
1500 results to match libiberty demangler output.
1502 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1505 * libsupc++/Makefile.am: Use libiberty demangler.
1506 (c_sources): Add cp-demangle.c.
1507 * libsupc++/Makefile.in: Regenerate.
1508 * src/Makefile.am (sources): Remove demangle.cc.
1509 * src/Makefile.in: Regenerate.
1510 * include/Makefile.am (bits_headers): Move demangle.h.
1511 (ext_headers): ...here.
1512 * include/Makefile.in: Regenerate.
1513 * include/bits/demangle.h: Move...
1514 * include/ext/demangle.h: ...here.
1515 * src/demangle.cc: Remove.
1517 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1519 * include/bits/demangle.h: Add type template parameter to all
1520 templates with just an Allocator template parameter.
1522 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
1524 * include/bits/atomicity.h: New, forward declarations for __atomic_add
1525 and __exchange_and_add.
1526 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1527 * config/cpu/cris/atomic_word.h: Same.
1528 * config/cpu/sparc/atomic_word.h: Same.
1529 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1530 Qualifiy with __gnu_cxx.
1531 (_Callback_list::_M_add_reference): Same.
1532 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1533 (locale::facet::_M_remove_reference): Same.
1534 (locale::_Impl::_M_add_reference): Add.
1535 (locale::_Impl::_M_remove_reference): Same.
1536 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1537 (basic_string::_Rep::_M_dispose): Same.
1538 * src/ios.cc (ios_base::xalloc): Same.
1539 * src/ios_init.cc (ios_base::Init::Init): Same.
1540 (ios_base::Init::~Init): Same.
1541 * src/locale.cc (locale::id::_M_id): Same.
1542 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1543 static, and inline keywords.
1544 * config/cpu/alpha/atomicity.h: Same.
1545 * config/cpu/cris/atomicity.h: Same.
1546 * config/cpu/generic/atomicity.h: Same.
1547 * config/cpu/hppa/atomicity.h: Same.
1548 * config/cpu/i386/atomicity.h: Same.
1549 * config/cpu/ia64/atomicity.h: Same.
1550 * config/cpu/m68k/atomicity.h: Same.
1551 * config/cpu/mips/atomicity.h: Same.
1552 * config/cpu/powerpc/atomicity.h: Same.
1553 * config/cpu/s390/atomicity.h: Same.
1554 * config/cpu/sparc/atomicity.h: Same.
1556 * src/Makefile.am (host_sources): Add atomicity.cc.
1557 (atomicity.cc): New rule.
1558 * src/Makefile.in: Regenerate.
1559 * include/Makefile.am (host_headers): Remove host atomicity.h.
1560 (host_headers): Add atomic_word.h.
1561 (bits_headers): Add bits atomicity.h.
1562 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1563 * include/Makefile.in: Regenerate.
1564 * configure.host (atomic_word_dir): Add.
1565 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1566 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1567 * configure: Regenerate.
1568 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1570 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1571 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1573 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
1575 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1576 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1577 Fix markup, more <link> tags.
1579 2004-02-25 Carlo Wood <carlo@alinoe.com>
1582 namespace __gnu_cxx::demangler
1583 (session<Allocator>::qualifier_list_Allocator): Add
1584 (session<Allocator>::M_qualifier_list_alloc): Add
1585 (session<Allocator>::decode_type_with_postfix):
1586 Use M_qualifier_list_alloc instead of calling operator new/delete.
1588 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1591 * include/bits/postypes.h (class streamoff): Add operator++(),
1592 operator++(int), operator--() and operator--(int).
1593 * testsuite/27_io/fpos/14252.cc: New.
1595 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
1597 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1598 error in handling of hex constants.
1600 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1602 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1603 Prefer basic_string::append to operator+= and a temporary.
1605 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1607 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1608 Only use fputs, not write.
1610 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1612 * include/ext/malloc_allocator.h: Add operators ==, !=.
1613 * include/ext/new_allocator.h: Add operators ==, !=.
1614 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1615 (__mt_alloc::_S_get_options): New.
1616 (__mt_alloc::_S_set_options): New.
1617 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1618 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1619 Move functions out of line, simplify, format.
1620 * src/allocator.cc: Simplify explicit instantiations.
1621 * include/bits/allocator.h: Tweak.
1623 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1625 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1626 Restructure formatting of value component, first dealing with
1627 the non-decimal digits; use reserve.
1629 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1631 * include/bits/locale_facets.h (class money_get): Inherit
1632 from money_base too; tweak declaration of _M_extract, now
1633 parameterized on _Intl too.
1634 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1635 Update definition to use the cache; call reserve on __res to
1636 avoid multiple reallocations; fix parsing of sign component
1637 according to 22.2.6.1.2, p3.
1638 (money_get<>::do_get(long double&),
1639 money_get<>::do_get(string_type&)): Update calls of _M_extract.
1640 * src/locale-inst.cc: Add instantiations of
1641 money_get::_M_extract<false> and money_get::_M_extract<true>.
1642 * testsuite/22_locale/money_get/get/char/14.cc: New.
1643 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
1645 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1647 * libsupc++/vterminate.cc
1648 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1650 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1652 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1653 not set RLIMIT_AS on HP-UX.
1655 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1657 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1658 not set RLIMIT_AS on HP-UX.
1660 2004-02-21 Paolo Carlini <pcarlini@suse.de>
1662 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1663 _S_zero, _S_end } enum, _S_atoms.
1664 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1665 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1666 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1667 (__moneypunct_cache<>::~__moneypunct_cache): Update.
1668 (__moneypunct_cache<>::_M_cache): Fill the cache.
1669 (class moneypunct): Tweak __cache_type typedef.
1670 (class money_put): Inherit from money_base too; tweak declaration
1671 of _M_insert, now parameterized on _Intl.
1672 * include/bits/locale_facets.tcc
1673 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1674 (money_put<>::_M_insert): Update definition to use the cache;
1675 call reserve on __res to avoid multiple reallocations.
1676 (money_put<>::do_put(long double),
1677 money_put<>::do_put(const string_type&): Update calls of _M_insert.
1678 * config/locale/generic/monetary_members.cc
1679 (moneypunct<char, true>::_M_initialize_moneypunct,
1680 moneypunct<char, false>::_M_initialize_moneypunct,
1681 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1682 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1683 * config/locale/gnu/monetary_members.cc: Likewise.
1684 * config/locale/gnu/monetary_members.cc
1685 (moneypunct<wchar_t, true>::~moneypunct(),
1686 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1687 * src/globals_locale.cc: Tweak fake_money_cache_c.
1688 * src/locale-inst.cc: Add instantiations for
1689 money_put::_M_insert<false> and money_put::_M_insert<true> and
1690 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1691 * src/locale_facets.cc: Define money_base::_S_atoms.
1692 * src/locale_init.cc: Update placement new of
1693 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1694 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1696 * config/locale/generic/numeric_members.cc: Clean up.
1697 * config/locale/gnu/numeric_members.cc: Likewise.
1698 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1699 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1700 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1701 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1702 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1703 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1705 2004-02-20 Mark Mitchell <mark@codesourcery.com>
1707 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1708 FIFO for writing with ios_base::in|ios_base::out.
1709 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1710 * testsuite/27_io/objects/char/7.cc: Likewise.
1711 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1714 2004-02-19 David Edelsohn <edelsohn@gnu.org>
1716 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1717 from iso-8859-1 to ISO8859-1.
1718 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1719 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1720 * 22_locale/collate/hash/wchar_t/2.cc: Same.
1721 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1722 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1723 * 22_locale/collate/transform/wchar_t/2.cc: Same.
1724 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1725 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1727 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1729 * include/bits/locale_facets.h (money_get<>::_M_extract):
1730 New, helper for do_get.
1731 (money_put<>::_M_insert): Likewise, for do_put.
1732 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1733 money_put<>::_M_insert): Define.
1734 (money_get<>::do_get(long double&), money_get<>::do_get(
1735 string_type&), money_put::do_put(long double),
1736 money_put::do_put(const string_type&)): Use the helpers.
1738 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1740 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1741 Rewrite, avoiding recursion.
1742 (__gnu_internal::xwrite): Minor tweaks.
1744 2004-02-17 Stefan Olsson <stefan@xapa.se>
1746 * include/ext/mt_allocator.h: Removed the last
1747 pointer. Deallocated blocks are now added to the front of
1748 freelists as proposed by Felix Yen. This gives roughly 10%
1749 performance boost and saves some memory.
1750 * docs/html/ext/mt_allocator.html: Change due to that deallocated
1751 blocks now are added to the front of freelists. The reason to this
1752 approach is also explained.
1754 2004-02-17 Paolo Carlini <pcarlini@suse.de>
1756 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1757 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1758 grouping fidelity conditional.
1760 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1762 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1763 Qualify exception with std::.
1764 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1765 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1766 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1767 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1768 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1770 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1772 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1773 for now that the catch block is not reached.
1774 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1776 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1778 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1779 Fix parsing of the remaining sign characters.
1780 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1781 the input is scanned 'til eof.
1782 * 22_locale/money_get/get/char/4.cc: Likewise.
1783 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
1784 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
1785 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
1786 not do_pos_format: the former is the only one that matters during
1788 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
1790 * 22_locale/money_get/get/char/6.cc: Minor tweak.
1791 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
1793 2004-02-15 David Asher <david.asher@cavium.com>
1796 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
1797 access __olds beyond __oldlen.
1799 2004-02-14 Paolo Carlini <pcarlini@suse.de>
1801 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
1802 sure the exception is actually thrown.
1803 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1804 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1805 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1807 2004-02-14 Paolo Carlini <pcarlini@suse.de>
1810 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
1811 In case of conversion errors, throw ios_failure; simplify.
1812 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
1813 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1814 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
1815 previously we didn't throw in case of conversion errors, instead
1816 just returned eof().
1817 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1818 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1819 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1821 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
1822 Trivial simplification of a conditional.
1824 2004-02-12 Paolo Carlini <pcarlini@suse.de>
1826 PR libstdc++/13731 (final part: writev)
1827 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1828 New, a wrapper around writev() handling partial writes.
1829 (__basic_file<char>::xwrite): Move to __gnu_internal and make
1831 (__basic_file<char>::xsputn): Update call.
1832 (__basic_file<char>::xsputn_2): Likewise.
1833 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1834 Don't declare, now static.
1836 2004-02-11 Stefan Olsson <stefan@xapa.se>
1838 * docs/html/ext/mt_allocator.html: New.
1840 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
1842 * docs/html/20_util/allocator.html: New file, consolidate
1843 allocator information here. Revamp.
1844 * docs/html/documentation.html: Change links.
1845 * docs/html/20_util/howto.html: Same.
1846 * docs/html/ext/howto.html: Same.
1848 2004-02-11 Paolo Carlini <pcarlini@suse.de>
1850 PR libstdc++/13731 (first part: write)
1851 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1853 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
1854 Define it: a wrapper around write() handling partial write.
1855 (__basic_file<char>::xsputn): Use it.
1856 (__basic_file<char>::xsputn_2): Likewise.
1858 2004-02-11 Paolo Carlini <pcarlini@suse.de>
1859 Petur Runolfsson <peturr02@ru.is>
1862 * include/std/std_istream.h (operator>>(__istream_type& (*)
1863 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
1864 operator>>(ios_base& (*)(ios_base&))): Declare inline.
1865 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
1866 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
1867 operator<<(ios_base& (*) (ios_base&))): Likewise.
1868 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
1870 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
1873 * config/linker-map.gnu: Add typeinfo and typeinfo name for
1874 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
1877 * config/linker-map.gnu: Add typeinfo and typeinfo name for
1878 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
1880 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
1882 * include/ext/pool_allocator.h: Include c++config.h.
1884 2004-02-09 Stefan Olsson <stefan@xapa.se>
1886 * include/ext/mt_allocator.h: thread_id is unused in non threaded
1887 applications and now has a ifdef to remove it completely on
1888 compilers without thread support. Include stdlib.h due to a
1889 compiler warning on getenv().
1891 2004-02-09 Paul Brook <paul@codesourcery.com>
1893 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
1895 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1898 * src/locale_init.cc (locale::global(const locale&)): Use
1899 locale::name() in order to decide whether calling setlocale.
1900 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
1902 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
1903 Avoid computing &= unnecessarily.
1905 2004-02-09 James E Wilson <wilson@specifixinc.com>
1908 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
1909 __builtin_extend_pointer.
1911 2004-02-09 Paolo Carlini <pcarlini@suse.de>
1914 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
1915 Don't leave dangling pointers.
1916 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
1917 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
1918 facet is needed in the final test.
1920 2004-02-09 Bernardo Innocenti <bernie@develer.com>
1922 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
1923 * configure: Regenerate.
1925 2004-02-08 Richard Henderson <rth@redhat.com>
1928 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
1929 uncaughtExceptions during nested catch rethrow.
1930 * testsuite/18_support/14026.cc: New.
1932 2004-02-08 Paolo Carlini <pcarlini@suse.de>
1934 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1935 When working in place remember to set the state to sharable
1936 (otherwise, _M_mutate does it).
1938 2004-02-08 Bernardo Innocenti <bernie@develer.com>
1940 * include/bits/allocator.h, include/bits/basic_ios.h,
1941 include/bits/basic_ios.tcc, include/bits/basic_string.h,
1942 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
1943 include/bits/char_traits.h, include/bits/codecvt.h,
1944 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
1945 include/bits/demangle.h, include/bits/deque.tcc,
1946 include/bits/fstream.tcc, include/bits/functexcept.h,
1947 include/bits/gslice.h, include/bits/gslice_array.h,
1948 include/bits/indirect_array.h, include/bits/ios_base.h,
1949 include/bits/istream.tcc, include/bits/list.tcc,
1950 include/bits/locale_classes.h, include/bits/locale_facets.h,
1951 include/bits/locale_facets.tcc, include/bits/localefwd.h,
1952 include/bits/mask_array.h, include/bits/ostream.tcc,
1953 include/bits/postypes.h, include/bits/slice_array.h,
1954 include/bits/sstream.tcc, include/bits/stl_algo.h,
1955 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1956 include/bits/stl_construct.h, include/bits/stl_deque.h,
1957 include/bits/stl_function.h, include/bits/stl_heap.h,
1958 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1959 include/bits/stl_list.h, include/bits/stl_map.h,
1960 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
1961 include/bits/stl_numeric.h, include/bits/stl_pair.h,
1962 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1963 include/bits/stl_relops.h, include/bits/stl_set.h,
1964 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1965 include/bits/stl_threads.h, include/bits/stl_tree.h,
1966 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1967 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
1968 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
1969 include/bits/type_traits.h, include/bits/valarray_after.h,
1970 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
1971 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
1972 trailing whitespace.
1974 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1976 * include/bits/basic_string.h: Fix comment.
1978 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1980 * include/bits/stl_construct.h: Wrap overlong lines, reformat
1981 according to the coding standards.
1982 * include/bits/stl_pair.h: Likewise.
1983 * include/bits/stl_raw_storage_iter.h: Likewise.
1984 * include/bits/stl_stack.h: Likewise.
1985 * include/bits/stl_uninitialized.h: Likewise.
1986 * include/bits/stream_iterator.h: Likewise.
1987 * include/bits/streambuf_iterator.h: Likewise.
1988 * include/bits/type_traits.h: Likewise.
1990 2004-02-06 Paolo Carlini <pcarlini@suse.de>
1992 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1995 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
1997 * scripts/check_performance: Support PCH.
1999 * scripts/check_performance (CXX): Add -DNOTHREAD.
2000 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2001 threaded tests from insert_insert.cc. Tweak iterations,
2002 remove special cases.
2003 * testsuite/performance/20_util/allocator/insert_insert.cc:
2004 Make all tests single-threaded. Tweak iterations.
2005 * testsuite/performance/20_util/allocator/map_thread.cc:
2007 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2010 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2014 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2015 'gcc-lib'. Add comment about poorly-named variables.
2016 * aclocal.m4: Regenerate.
2017 * configure: Regenerate.
2019 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2021 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2022 Thousands-sep are always optional; thousands-sep are not allowed
2023 after the decimal_point.
2024 * testsuite/22_locale/money_get/get/char/12.cc: New.
2025 * testsuite/22_locale/money_get/get/char/13.cc: New.
2026 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2027 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2029 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2030 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2031 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2032 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2033 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2034 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2035 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2036 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2038 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2040 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2042 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2044 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2046 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2047 it to decide whether FIONREAD should take an off_t or int argument.
2049 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2051 * include/bits/stl_function.h: Minor formatting changes.
2053 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2055 Revert previous change to config/abi/*/baseline_symbols.txt.
2057 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2058 Zack Weinberg <zack@codesourcery.com>
2060 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2062 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2063 (__basic_file<char>::_M_open_mode): Delete.
2064 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2066 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2067 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2068 Correct flags to filebuf::open calls.
2070 * config/abi/alpha-freebsd5/baseline_symbols.txt
2071 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2072 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2073 * config/abi/i386-freebsd4/baseline_symbols.txt
2074 * config/abi/i386-freebsd5/baseline_symbols.txt
2075 * config/abi/i486-linux-gnu/baseline_symbols.txt
2076 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2077 * config/abi/mips-linux-gnu/baseline_symbols.txt
2078 * config/abi/sparc-freebsd5/baseline_symbols.txt
2079 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2080 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2081 Remove entry for __basic_file<char>::_M_open_mode.
2083 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2085 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2087 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2089 * testsuite/performance/20_util/producer_consumer.cc: New.
2090 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2092 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2094 * testsuite/performance/20_util/allocator.cc: Move to..
2095 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2096 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2097 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2098 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2099 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2101 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2103 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2104 * docs/html/faq/index.txt: Regenerate.
2106 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2108 * include/ext/debug_allocator.h: _M_extra now stands for the
2109 number of extra objects instead of the number of extra bytes.
2110 (debug_allocator::allocate): Adjust.
2111 (debug_allocator::deallocate): Adjust.
2113 * include/ext/pool_allocator.h: Fix typo.
2115 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2116 Benjamin Kosnik <bkoz@redhat.com>
2118 * testsuite/performance/20_util/allocator.cc: Add map,
2120 * testsuite/performance/20_util/allocator_thread.cc: Same.
2122 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2124 * include/bits/basic_string.h (insert(iterator)): Remove,
2125 non-standard and already scheduled for removal.
2127 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2129 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2130 and indentation tweaks.
2131 * include/bits/stl_iterator_base_types.h: Likewise.
2132 * include/bits/stl_list.h: Likewise.
2133 * include/bits/stl_map.h: Likewise.
2134 * include/bits/stl_tempbuf.h: Likewise.
2136 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2138 * include/bits/gslice.h, include/bits/gslice_array.h,
2139 include/bits/indirect_array.h, include/bits/mask_array.h,
2140 include/bits/slice_array.h, include/bits/stl_numeric.h,
2141 include/std/std_valarray.h: Update copyright years.
2143 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2145 * include/bits/gslice.h (gslice): Document.
2146 * include/bits/gslice_array.h (gslice_array): Document.
2147 * include/bits/indirect_array (indirect_array): Document.
2148 * include/bits/mask_array (mask_array): Document.
2149 * include/bits/slice_array.h (slice,slice_array): Document.
2150 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2151 adjacent_difference): Document
2152 * include/std/std_valarray.h (valarray): Document.
2154 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2156 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2158 * docs/html/18_support/howto.html: Here.
2159 * docs/html/documentation.html: Add reference here.
2161 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2163 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2164 of no longer used GLIBC thread locale functions.
2166 2004-02-02 Eric Christopher <echristo@redhat.com>
2167 Zack Weinberg <zack@codesourcery.com>
2169 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2171 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2172 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2173 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2174 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2175 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2176 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2177 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2178 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2181 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2183 * include/bits/stl_function.h: Additional minor tweaks.
2184 * include/bits/stl_multiset.h: Likewise.
2186 * include/bits/stl_queue.h: Minor tweaks.
2188 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2190 PR libstdc++/13976 (continued)
2191 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2192 Make the second parameter unnamed, to void unused parameter
2194 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2196 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2199 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2200 Make the second parameter unnamed, to void unused parameter
2202 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2203 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2205 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2207 * include/bits/stl_algo.h: Additional minor tweaks.
2208 * include/bits/stl_map.h: Likewise.
2209 * include/bits/stl_multimap.h: Likewise.
2210 * include/bits/stl_multiset.h: Likewise.
2211 * include/bits/stl_set.h: Likewise.
2212 * include/bits/stl_tree.h: Likewise.
2214 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2216 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2219 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2221 * include/bits/stl_function.h: Additional minor tweaks.
2223 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2225 * include/bits/deque.tcc: Wrap overlong lines, constify
2226 a few variables, reformat according to the coding standards.
2227 * include/bits/list.tcc: Likewise.
2228 * include/bits/stl_deque.h: Likewise.
2229 * include/bits/stl_function.h: Likewise.
2230 * include/bits/stl_iterator.h: Likewise.
2231 * include/bits/stl_iterator_base_funcs.h: Likewise.
2232 * include/bits/stl_iterator_base_types.h: Likewise.
2233 * include/bits/stl_list.h: Likewise.
2234 * include/bits/stl_map.h: Likewise.
2235 * include/bits/stl_multimap.h: Likewise.
2236 * include/bits/stl_multiset.h: Likewise.
2237 * include/bits/stl_relops.h: Likewise.
2238 * include/bits/stl_set.h: Likewise.
2240 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2242 * include/bits/stl_bvector.h: Wrap overlong lines, constify
2243 a few variables, reformat according to the coding standards.
2244 * include/bits/stl_tree.h: Likewise.
2246 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2248 * include/bits/stl_algo.h: Minor additional reformat, add
2250 * include/bits/stl_algobase.h: Add copyright year.
2252 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2254 * include/bits/stl_algo.h: Wrap overlong lines, constify
2255 a few variables, reformat according to the coding standards.
2256 * include/bits/stl_algobase.h: Likewise.
2257 * include/bits/stl_heap.h: Likewise.
2259 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2261 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2263 * include/bits/basic_string.h: Fix two comments.
2265 2004-01-31 Per Bothner <per@bothner.com>
2267 * include/ext/mt_allocator.h
2268 (__mt_alloc::_S_thread_freelist_mutex): Guard with
2269 __GTHREAD_MUTEX_INIT.
2271 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2273 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2275 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2277 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2278 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2279 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2281 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
2283 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2284 Don't use clear, but instead assign. Use insert.
2286 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
2288 * src/demangle.cc: Add instantiations.
2289 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2290 * src/Makefile.in: Regenerate.
2292 2004-01-30 David Edelsohn <edelsohn@gnu.org>
2294 * src/allocator.cc: Protect _S_get_thread_id() and
2295 _S_thread_key_destr() with #ifdef __GTHREADS.
2297 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2299 Reshuffle performance testsuite.
2300 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2301 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2302 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2303 fstream_seek_write.cc, ifstream_extract_float.cc,
2304 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2305 list_create_fill_sort.cc, map_create_fill.cc,
2306 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2307 ofstream_insert_float.cc, ofstream_insert_int.cc,
2308 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2309 wchar_t_out.cc: Split into...
2310 * testsuite/performance/20_util/allocator.cc: New.
2311 * testsuite/performance/20_util/allocator_map_thread.cc: New.
2312 * testsuite/performance/20_util/allocator_thread.cc: New.
2313 * testsuite/performance/21_strings/string_append: New.
2314 * testsuite/performance/22_locale/is_wchar_t.cc: New.
2315 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2316 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2317 * testsuite/performance/22_locale/wchar_t_in.cc: New.
2318 * testsuite/performance/22_locale/wchar_t_length.cc: New.
2319 * testsuite/performance/22_locale/wchar_t_out.cc: New.
2320 * testsuite/performance/23_containers/container_benchmark.cc: New.
2321 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2322 * testsuite/performance/23_containers/map_create_fill.cc: New.
2323 * testsuite/performance/26_numerics/complex_norm.cc: New.
2324 * testsuite/performance/27_io/cout_insert_int.cc: New.
2325 * testsuite/performance/27_io/filebuf_copy.cc: New.
2326 * testsuite/performance/27_io/filebuf_sputc.cc: New.
2327 * testsuite/performance/27_io/fstream_seek_write.cc: New.
2328 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2329 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2330 * testsuite/performance/27_io/ifstream_getline.cc: New.
2331 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2332 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2334 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2336 * include/bits/basic_string.tcc (_Rep::_S_create):
2337 Never allocate a string bigger than max_size(); always keep
2338 __capacity and __size in sync to avoid memory leaks at
2341 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2343 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2344 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2345 the double loop, streamline.
2347 * include/bits/basic_string.tcc: Very minor tweaks.
2349 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
2351 * scripts/check_performance: Only compile with $THREAD_FLAG
2352 when test is marked to require it. Allow multiple
2353 compilations/executions of marked tests.
2354 * testsuite/testsuite_performance.h (report_performance):
2355 Report dynamic thread support status.
2356 (report_header): Likewise.
2357 * testsuite/performance/allocator.cc: Stabilize iteration
2358 count. Support more allocators. Mark each allocator test to
2359 run and report independently.
2360 * testsuite/performance/allocator_map_thread.cc: Likewise.
2361 * testsuite/performance/allocator_thread.cc: Likewise.
2363 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
2365 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
2366 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
2367 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
2368 std::get_temporary_buffer() instead of duplicating its code.
2369 Update to C++STYLE conventions.
2370 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
2371 new() instead of std::malloc().
2372 (return_temporary_buffer): Use ::operator delete() instead of
2375 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
2377 * include/bits/allocator.h: Temporary switch to new_allocator as
2378 the default to unjam bootstraps.
2380 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2382 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
2383 * include/Makefile.in: Regenerate.
2384 * include/bits/allocator_traits.h: Remove.
2385 * include/bits/allocator.h: Remove allocator_traits.h include, and
2387 (allocator): Empty base class, inherit from the underlying allocator.
2388 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
2389 * src/allocator.cc: ...here. New. For the underlying allocators.
2390 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
2391 * config/linker-map.gnu: Remove __pool_alloc bits.
2392 * src/Makefile.am (sources): Add allocator.cc.
2393 * src/Makefile.in: Regenerate.
2394 * testsuite/20_util/allocator/1.cc: Split second test into...
2395 * testsuite/20_util/allocator/8230.cc: ...this.
2396 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
2397 typedef to use std::allocatore. Format.
2398 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
2400 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
2401 __throw_bad_alloc calls. Don't include <memory>.
2402 * include/ext/malloc_allocator.h: Remove <memory> include.
2403 * include/ext/new_allocator.h (new_allocator): Same.
2404 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
2405 declaration. Switch __alloc to _Alloc.
2406 * include/ext/hashtable.h: Remove __alloc.
2407 * include/backward/alloc.h: Only inject allocator, not
2408 implementation details.
2410 * include/ext/mt_allocator.h: Replace free with delete.
2412 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2414 * src/globals_io.cc: Change to __gnu_internal namespace.
2415 * src/globals_locale.cc: Same.
2416 * src/locale_init.cc: Same.
2417 * src/ios_init.cc: Same.
2419 2004-01-28 Stefan Olsson <stefan@snon.net>
2421 * include/ext/mt_allocator.h: Replaced all malloc() calls with
2422 operator new(). Added support for the env variable
2423 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
2424 one in allocate() as well). Fix typos.
2426 2004-01-28 Paolo Carlini <pcarlini@suse.de>
2428 * include/bits/basic_string.h (_S_create(size_t,
2429 const _Alloc&): Change signature to take two size_type
2431 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2432 _InIterator, const _Alloc&, input_iterator_tag)): Update
2434 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2435 forward_iterator_tag)): Likewise.
2436 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
2437 (_M_mutate(size_type, size_type, size_type)): Don't
2438 implement the exponential growth policy, demand it to
2439 _S_create, update call and simplify.
2440 (_M_clone(const _Alloc&, size_type)): Likewise.
2441 (_S_create(size_type, size_type, const _Alloc&)): Implement
2442 the growth policy, simplify otherwise.
2444 * include/bits/basic_string.h (_Rep::operator[]): Tweak
2445 signature to take a size_type, consistently with the other
2448 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
2450 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
2451 delete declarations, add include and test variable.
2453 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
2455 * include/bits/codecvt.h, include/bits/locale_facets.h,
2456 include/bits/postypes.h, include/bits/stl_bvector.h,
2457 include/bits/stl_multiset.h, include/bits/stl_set.h,
2458 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
2459 include/std/std_complex.h: Document.
2461 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
2464 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
2465 iword/pword selector.
2466 (ios_base::iword, ios_base::pword): Use it.
2467 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
2468 iword or pword member on alloc failure.
2469 * testsuite/27_io/ios_base/storage/11584.cc: New test.
2471 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2472 PJ Darcy <darcypj@us.ibm.com>
2474 * configure.host: Add support for *-tpf.
2475 * crossconfig.m4: Likewise.
2476 * configure: Regenerate.
2477 * config/os/tpf: New directory.
2478 * config/os/tpf/os_defines.h: New file.
2479 * config/os/tpf/ctype_base.h: Likewise.
2480 * config/os/tpf/ctype_inline.h: Likewise.
2481 * config/os/tpf/ctype_noninline.h: Likewise.
2483 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2486 * include/bits/sstream.tcc: Guard use of extern template.
2488 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2490 * include/bits/basic_string.tcc
2491 (basic_string(const basic_string&, size_type, size_type),
2492 basic_string(const basic_string&, size_type, size_type,
2493 const _Alloc&)): Avoid unnecessarily constructing iterators.
2495 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2497 * config/locale/generic/c_locale.cc: Fix throw messages
2498 to use the __N marker.
2499 * config/locale/gnu/c_locale.cc: Likewise.
2500 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2502 * docs/html/17_intro/C++STYLE: Likewise.
2503 * include/bits/basic_ios.tcc: Likewise.
2504 * include/bits/fstream.tcc: Likewise.
2505 * include/bits/vector.tcc: Likewise.
2506 * include/ext/ropeimpl.h: Likewise.
2507 * include/std/std_bitset.h: Likewise.
2508 * src/ios.cc: Likewise.
2509 * src/locale.cc: Likewise.
2510 * src/localename.cc: Likewise.
2512 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2514 * include/bits/basic_string.h (_M_replace_aux): Use the
2515 __N marker in throw message.
2516 * include/bits/basic_string.tcc (assign(const _CharT*,
2517 size_type), insert(size_type, const _CharT*, size_type),
2518 replace(size_type, size_type, const _CharT*, size_type),
2519 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2522 * include/bits/basic_string.h, include/bits/basic_string.tcc:
2523 Fold overlong lines, minor formatting changes.
2525 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2527 * include/bits/basic_string.h (replace(iterator, iterator,
2528 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2529 (replace(iterator, iterator, const _CharT*)): Ditto.
2530 (replace(iterator, iterator, const _CharT*, size_type)):
2531 Add missing _GLIBCXX_DEBUG_PEDASSERT.
2533 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2535 * include/bits/basic_string.tcc (replace(size_type,
2536 size_type, const _CharT*, size_type)): Implement optimized
2537 in-place algorithm for non-overlapping ranges.
2538 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2539 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2541 * include/bits/basic_string.tcc (insert(size_type,
2542 const _CharT*, size_type)): Tweak slightly.
2544 2004-01-26 Andreas Schwab <schwab@suse.de>
2546 * config/locale/gnu/monetary_members.cc: Restore locale before
2547 rethrowing exception.
2549 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2551 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2553 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2556 * include/bits/basic_string.tcc: Very minor tweaks.
2558 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2560 * testsuite/performance/string_append.cc: Increase number
2563 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2565 * include/bits/basic_string.h (erase(size_type, size_type),
2566 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2567 instead, thus avoiding redundant check for length_error.
2569 * include/bits/basic_string.h: Tweak some comments.
2571 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2573 * include/bits/basic_string.tcc (operator+(const _CharT*,
2574 const basic_string&)): No need to go through the append
2575 taking two iterators.
2577 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2579 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2580 Revert last change to use std::min: machine language is worse.
2581 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2582 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2583 (find_last_not_of(_CharT, size_type)): Ditto.
2585 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2586 size_type)): Discard the value returned by _M_check.
2587 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2588 (append(const basic_string&, size_type, size_type)): Ditto.
2589 (copy(_CharT*, size_type, size_type)): Ditto.
2590 (compare(size_type, size_type, const basic_string&)): Ditto.
2591 (compare(size_type, size_type, const basic_string&,
2592 size_type, size_type)): Ditto.
2593 (compare(size_type, size_type, const _CharT*)): Ditto.
2594 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2596 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2598 * include/bits/basic_string.h (insert(size_type,
2599 const basic_string&, size_type, size_type)): Define inline here.
2600 * include/bits/basic_string.tcc (insert(size_type,
2601 const basic_string&, size_type, size_type)): Move inline.
2603 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2605 * include/bits/basic_string.h (assign(const basic_string&,
2606 size_type, size_type)): Define inline here.
2607 (replace(size_type, size_type, const basic_string&,
2608 size_type, size_type)): Ditto.
2609 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2610 _InputIterator, __false_type)): Only declare.
2611 (_M_replace(iterator, iterator, _InputIterator,
2612 _InputIterator)): Remove.
2613 * include/bits/basic_string.tcc (assign(const basic_string&,
2614 size_type, size_type)): Move inline.
2615 (replace(size_type, size_type, const basic_string&,
2616 size_type, size_type)): Ditto.
2617 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2618 _InputIterator, __false_type)): Define, now does also what
2619 _M_replace did before.
2620 * src/string-inst.cc (_M_replace): Don't instantiate.
2622 * include/bits/basic_string.tcc (find(const _CharT*,
2623 size_type, size_type)): Tidy.
2624 (rfind(_CharT, size_type)): Ditto.
2625 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2626 (find_first_not_of(_CharT, size_type)): Ditto.
2627 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2628 (find_last_not_of(_CharT, size_type)): Ditto.
2630 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2633 * include/debug/bitset (operator|=): Fix typo.
2634 * testsuite/23_containers/bitset/operations/13838.cc: New.
2636 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2638 * include/bits/basic_string.tcc (insert(size_type,
2639 const _CharT*, size_type __n)): Fix length_error check.
2640 (replace(size_type, size_type, const _CharT*, size_type):
2641 Ditto; call _M_replace_safe.
2642 (_M_replace_aux(size_type, size_type, size_type, _CharT):
2643 Fix length_error check.
2644 (_M_replace(iterator, iterator, _InputIterator,
2645 _InputIterator)): Ditto, tweak.
2646 (_M_replace_safe(size_type, size_type, const _CharT*,
2647 size_type)): Remove length_error check.
2649 * include/bits/basic_string.tcc (append(const basic_string&),
2650 append(const basic_string&, size_type, size_type)): Tweak
2653 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2654 size_type)): If __n == 0 don't call traits::copy.
2656 2004-01-23 Stefan Olsson <stefan@snon.net>
2658 * include/ext/mt_allocator.h: Reduce lock contention.
2660 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2663 * include/bits/fstream.tcc (underflow): Remove unused
2665 * include/bits/streambuf_iterator.h (equal): Ditto.
2666 * include/bits/locale_facets.h (_M_convert_from_char):
2669 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2672 * config/linker-map.gnu (nan): Delete.
2673 * libmath/mathconf.h (NAN, nan): Delete.
2674 * linkage.m4 (nan): Don't check for it.
2675 * libmath/nan.c: Delete file.
2677 * config.h.in, configure: Regenerate.
2679 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2681 * include/bits/basic_string.h (push_back(_CharT)):
2682 Call _M_replace_aux.
2683 (insert(size_type, const basic_string&)): Trivial tweak.
2684 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2685 (insert(iterator, _CharT)): Ditto.
2686 (erase(size_type, size_type)): Ditto.
2687 (erase(iterator)): Ditto.
2688 (erase(iterator, iterator)): Ditto.
2689 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2691 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
2694 * testsuite/performance/allocator_map_thread.cc: New test.
2696 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2698 * include/bits/locale_facets.tcc
2699 (money_put::do_put(..., long double)): Use the basic_string
2700 constructor for char arrays, not that for C-strings, to pass
2701 __digits to do_put(..., const string_type&): __ws isn't
2704 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2706 * include/bits/basic_string.h (_M_replace_safe): Change
2707 signatures to take size_types and const _CharT*.
2708 (_M_replace_aux): Likewise, takes size_types instead of
2710 (append(size_type, _CharT)): Update call.
2711 (assign(size_type, _CharT)): Ditto.
2712 (replace(iterator, iterator, size_type, _CharT)): Ditto.
2713 (_M_replace_dispatch(iterator, iterator, _Integer,
2714 _Integer, __true_type)): Ditto.
2715 * include/bits/basic_string.tcc (assign(const _CharT*,
2717 (insert(size_type, const _CharT*, size_type)): Ditto.
2718 (replace(size_type, size_type, const _CharT*,
2720 (_M_replace(iterator, iterator, _InputIterator,
2721 _InputIterator)): Ditto.
2722 (append(const basic_string&)): Ditto.
2723 (append(const basic_string&, size_type, size_type): Ditto.
2724 (append(const _CharT*, size_type): Ditto.
2725 (_M_replace_safe, _M_replace_safe): Change definitions
2726 accordingly, simplify.
2727 * string-inst.cc (_M_replace_safe): Don't instantiate.
2729 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2731 * include/bits/basic_string.tcc (append(const basic_string&)):
2732 Revert previous change.
2733 (append(const basic_string&, size_type, size_type)): Revert
2734 previous change, use _M_check and _M_limit.
2736 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2738 * include/bits/basic_string.h (_M_check): Change to return
2739 a checked __pos and take an additional const char* argument.
2740 (_M_fold): Rename to _M_limit, change to return a size_type,
2741 corresponding to the __off limited to the actual length.
2742 (insert(size_type, size_type, _CharT)): Update call, call
2744 (insert(iterator, _CharT)): Call replace(iterator, iterator,
2745 size_type, _CharT) instead.
2746 (erase(size_type, size_type)): Update calls.
2747 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2748 (substr(size_type, size_type)): Use _M_check.
2749 * include/bits/basic_string.tcc (basic_string(const basic_string&,
2750 size_type, size_type)): Update calls.
2751 (basic_string(const basic_string&, size_type, size_type,
2752 const _Alloc&)): Ditto.
2753 (assign(const basic_string&, size_type, size_type)): Use the
2754 new _M_check and _M_limit.
2755 (insert(size_type, const basic_string&, size_type, size_type):
2757 (insert(size_type, const _CharT*, size_type)): Ditto.
2758 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2759 (replace(size_type, size_type, const basic_string&,
2760 size_type, size_type)): Ditto.
2761 (append(const basic_string&)): Ditto.
2762 (append(const basic_string&, size_type, size_type)): Ditto.
2763 (copy(_CharT*, size_type, size_type)): Ditto.
2764 (compare(size_type, size_type, const basic_string&)): Ditto.
2765 (compare(size_type, size_type, const basic_string&,size_type,
2767 (compare(size_type, size_type, const _CharT*)): Ditto.
2768 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2770 2004-01-19 Stefan Olsson <stefan@snon.net>
2772 * include/ext/mt_allocator.h: If a thread, when it dies, still has
2773 memory on it's freelist this memory is not returned to global
2774 list. Simplification of deallocate so that memory is always
2775 returned to the calling thread id's freelist instead of to
2776 global. Fix typos. Add volatile where appropriate.
2778 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
2780 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2781 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
2782 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
2784 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2786 * src/debug.cc: Make sure all the names are prefixed with
2787 double (or single) underscore.
2789 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2791 * src/debug.cc: Trivial formatting change.
2793 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2795 * include/bits/basic_string.tcc (_S_construct(size_type,
2796 _CharT, const _Alloc&)): Remove redundant try/catch.
2797 (_M_mutate(size_type, size_type, size_type)): Ditto.
2798 (_M_clone(const _Alloc&, size_type)): Ditto.
2800 2004-01-18 Paolo Carlini <pcarlini@suse.de>
2802 * include/bits/basic_string.h (c_str()): Simplify, due to
2803 21.3.4 the internal representation is always kept null-terminated.
2804 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
2805 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
2806 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
2809 2004-01-18 Paolo Carlini <pcarlini@suse.de>
2811 * include/bits/basic_string.h (append(size_type, _CharT)):
2812 Moved inline, just call _M_replace_aux, no source iterators at
2813 risk of being clobbered.
2814 (assign(size_type, _CharT)): Call directly _M_replace_aux.
2815 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2816 input_iterator_tag)): Remove fifth unused argument.
2817 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2818 _InputIterator, __false_type)): Update call.
2819 * include/bits/basic_string.tcc (replace(size_type, size_type,
2820 const _CharT*, size_type)): Update call.
2821 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
2822 throw string literal.
2823 (_M_replace_safe(iterator, iterator, _ForwardIterator,
2824 _ForwardIterator)): Likewise.
2825 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2826 input_iterator_tag)): Remove fifth unused argument.
2827 (append(size_type __n, _CharT __c)): Move inline.
2828 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
2829 const C*, const C*, input_iterator_tag)): Remove fifth unused
2832 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
2834 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
2835 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
2837 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
2839 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
2842 2004-01-15 Stefan Olsson <stefan@snon.net>
2844 * include/ext/mt_allocator.h: Reuse thread id's as soon as
2845 possible by changing the behaviour of thread_freelist to do
2846 push_front when threads die instead of push_back.
2848 2004-01-14 Paolo Carlini <pcarlini@suse.de>
2850 * include/bits/locale_facets.h (struct __numpunct_cache):
2851 Add member _M_grouping_size, caching the length of _M_grouping.
2852 (__numpunct_cache<>::_M_cache): Assign the latter.
2853 (__verify_grouping): Move declaration...
2854 * include/bits/locale_facets.tcc (__verify_grouping):
2855 ... here, change signature to take a const char* and a size_t
2856 for the grouping; not a template anymore.
2857 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
2858 Likewise change signature and tweak consistently.
2859 (num_get::_M_extract_float, num_get::_M_extract_int,
2860 num_put::_M_insert_int, num_put::_M_insert_float,
2861 money_get::do_get(string_type&), money_get::do_put(string_type)):
2863 * config/locale/generic/numeric_members.cc
2864 (numpunct<>::_M_initialize_numpunct): Assign the new member.
2865 * config/locale/gnu/numeric_members.cc
2866 (numpunct<>::_M_initialize_numpunct): Likewise.
2867 * src/locale-inst.cc (__add_grouping): Tweak signature.
2868 (__verify_grouping): Don't instantiate, not a template anymore.
2870 * include/bits/locale_facets.h: Rename _M_truename_len ->
2871 _M_truename_size, _M_falsename_len -> _M_falsename_size.
2872 * include/bits/locale_facets.tcc: Likewise.
2873 * config/locale/generic/numeric_members.cc: Likewise.
2874 * config/locale/gnu/numeric_members.cc: Likewise.
2876 2004-01-14 Stefan Olsson <stefan@snon.net>
2878 * include/ext/mt_allocator.h: Fixups.
2879 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
2880 * testsuite/performance/allocator_thread.cc: Same.
2882 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2884 * testsuite/performance/ifstream_extract_float.cc: Add higher
2886 * testsuite/performance/ofstream_insert_float.cc: Same.
2888 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2890 * src/locale-misc-inst.cc (__convert_from_v(long),
2891 __convert_from_v(unsigned long), __convert_from_v(long long),
2892 __convert_from_v(unsigned long long)): Remove, unused.
2894 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
2896 * testsuite/performance/ifstream_extract_float.cc: New.
2897 * testsuite/performance/ofstream_insert_float.cc: Float generation
2900 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
2901 * 20_util/auto_ptr/1.cc: ...this.
2902 * 20_util/auto_ptr/2.cc: Same.
2903 * 20_util/auto_ptr/3.cc: Same.
2904 * 20_util/auto_ptr/3946.cc: Same.
2905 * 20_util/auto_ptr/4.cc: Same.
2906 * 20_util/auto_ptr/5.cc: Same.
2907 * 20_util/auto_ptr/6.cc: Same.
2908 * 20_util/auto_ptr/7.cc: Same.
2909 * 20_util/auto_ptr/assign_neg.cc
2910 * 20_util/pairs.cc: Break into...
2911 * 20_util/pair/1.cc: ...this.
2912 * 20_util/pair/2.cc: Same.
2913 * 20_util/pair/3.cc: Same.
2914 * 20_util/pair/4.cc: Same.
2916 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2918 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
2919 Set correctly just basefield, the only group that matters.
2921 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2923 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
2924 (_Rope_rep_base): Inherit directly from the rope allocator;
2925 use rebinding instead of _Alloc_traits; pick up data member
2926 from _Rope_rep_alloc_base.
2927 (_Rope_alloc_base): Eliminate.
2928 (_Rope_base): Inherit directly from the rope allocator; use
2929 rebinding instead of _Alloc_traits; pick up data member from
2931 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
2932 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
2934 2004-01-13 Paolo Carlini <pcarlini@suse.de>
2937 * include/bits/basic_string.tcc (compare(size_type, size_type,
2938 const _CharT*, size_type)): Implement correctly the resolution
2939 of DR 5: basically, s is a char array, -not- a C string.
2940 * include/bits/basic_string.h: Tweak some comments.
2941 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
2942 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
2944 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
2946 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
2949 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2951 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
2953 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
2956 2004-01-12 Paolo Carlini <pcarlini@suse.de>
2958 * include/bits/locale_facets.h (struct __numpunct_cache):
2959 Add members _M_truename_len and _M_falsename_len, caching
2960 the lengths of _M_truename and _M_falsename.
2961 (__numpunct_cache<>::_M_cache): Assign the latter.
2962 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
2963 num_put::do_put(bool)): Use the new members, thus avoiding
2964 computing string lengths again and again.
2965 * config/locale/generic/numeric_members.cc
2966 (numpunct<>::_M_initialize_numpunct): Assign the new members.
2967 * config/locale/gnu/numeric_members.cc
2968 (numpunct<>::_M_initialize_numpunct): Likewise.
2970 2004-01-12 Mark Mitchell <mark@codesourcery.com>
2972 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
2973 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
2975 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
2976 and remove Cygwin XFAIL.
2977 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
2978 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
2979 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
2980 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
2982 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2983 * testsuite/27_io/objects/char/7.cc: Likewise.
2984 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
2985 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
2986 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
2988 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2990 * include/std/std_complex.h (std::complex<>::real): Return a
2991 reference. Add non-const overload.
2992 (std::complex<>::real): Likewise.
2993 (std::real): Likewise.
2994 (std::imag): Likewise.
2995 (std::operator+): Tidy.
2996 (std::operator-): Likewise.
2997 (std::operator*): Likewise.
2998 (std::operator/): Likewise.
2999 (std::operator>>): Likewise.
3001 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3004 * include/bits/fstream.tcc (imbue): Exploit the external
3005 buffer to imbue 'on the fly' a new locale and convert its
3006 remainder with the new codecvt facet.
3007 (underflow): Tweak slightly to deal with this special case.
3008 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3009 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3010 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3011 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3012 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3014 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3016 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3019 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3022 * include/bits/locale_classes.h (class locale): Fix category
3024 * testsuite/22_locale/locale/13630.cc: Add.
3026 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3028 * include/bits/locale_facets.h: Make a name really dependent. This
3029 will be needed when Core Issue 224 is implemented.
3031 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3033 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3034 * testsuite/performance/allocator_thread.cc: Likewise.
3036 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3038 * crossconfig.m4: Add LFS, io bits to linux cross config.
3039 * acconfig.h: Remove obsolete bits, reorder.
3040 * config.h.in: Regenerate.
3044 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3046 * include/bits/stl_list.h:
3047 * include/bits/list.tc:
3049 Performance enhancements for destructor, push_front(),
3050 push_back(), pop_front(), pop_back(), sort()
3051 Eliminated static_casts where possible.
3052 Moved code out of header files into new src/list.cc
3053 implementation file for library where possible.
3054 Remove inheritance from iterator class and create separate
3055 classes for non-constant and constant iterators.
3056 * include/bits/stl_tree.h (_Rb_tree class):
3058 Only erase contents in destructor.
3059 Eliminate unnecessary initialization in assignment operator.
3060 Optimize for the nominal case by not checking whether
3061 container is empty in clear().
3062 Re-order test in _M_insert() to improve performance.
3063 Move initialization of new node's left & right pointers to
3064 src/tree.cc to where new node's colour is initialized
3065 and to reduce the amount of inline code.
3066 Use _M_leftmost() and _M_end() to improve readability where
3068 Create separate classes for non-constant and constant
3069 iterators to clarify code, avoid extra template parameters and
3070 casting away constness.
3072 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3074 * src/Makefile.am (sources): Add list.cc, tree.cc.
3075 * src/stl_tree.cc: Move to...
3076 * src/tree.cc: ...here.
3078 * config/linker-map.gnu: Tweaks.
3079 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3080 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3082 * bits/stl_vector.h: Column wrap comments.
3084 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3086 (re-open) PR libstdc++/12658
3087 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3088 (locale::global): Likewise.
3090 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3092 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3093 Remove redundant #include.
3094 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3095 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3096 re-enable normal testing.
3097 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3099 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3100 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3102 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3104 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3106 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3108 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3110 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3112 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3114 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3115 More properly, #include <locale>.
3116 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3117 Remove redundant #include.
3118 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3119 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3120 redundant DejaGnu directive.
3121 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3124 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3125 Stefan Olsson <stefan@snon.net>
3127 * scripts/check_performance: Use -pthread.
3128 * testsuite/performance/allocator.cc: Tweaks, add list.
3129 * testsuite/performance/allocator_thread.cc: New.
3131 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3133 * include/bits/locale_facets.h: Document public classes and
3135 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3138 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3140 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3141 Remove redundant #includes.
3142 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3144 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3146 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3147 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3148 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3149 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3150 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3151 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3152 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3153 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3154 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3155 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3156 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3157 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3158 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3159 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3160 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3162 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3164 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3166 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3168 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3170 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3171 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3172 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3174 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3176 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3177 Remove redundant #includes.
3178 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3180 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3182 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3184 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3186 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3188 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3190 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3192 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3194 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3196 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3198 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3200 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3203 2004-01-04 Mark Mitchell <mark@codesourcery.com>
3206 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3208 * testsuite/27_io/basic_fstream/4.cc: Likewise.
3209 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3210 * testsuite/27_io/basic_ios/4.cc: Likewise.
3211 * testsuite/27_io/basic_iostream/4.cc: Likewise.
3212 * testsuite/27_io/basic_istream/4.cc: Likewise.
3213 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3214 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3215 * testsuite/27_io/basic_ostream/4.cc: Likewise.
3216 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3217 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3218 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3220 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3222 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3223 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3224 always use double underscored names.
3225 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3227 * include/bits/locale_facets.h (struct __numpunct_cache):
3228 Dimension _M_atoms_out and _M_atoms_in one position smaller.
3229 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out