1 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
3 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
4 * docs/doxygen/mainpage.html: Remove links.
6 2004-06-08 Jason Merrill <jason@redhat.com>
8 * config/linker-map.gnu: Use wildcards for
9 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
11 2004-06-08 Paolo Carlini <pcarlini@suse.de>
13 * include/ext/pool_allocator.h: Convert to a global free-list,
14 as per the original SGI/HP design: move the implementation
15 details to struct __pool_base, from which __pool_alloc derives.
16 * src/allocator.cc: Instantiate __pool_base.
18 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
19 Paolo Carlini <pcarlini@suse.de>
21 * testsuite/testsuite_performance.h
22 (resource_counter::allocated_memory): Make it return the right
23 number of bytes requested by the allocators/application. This is
24 the sbrk+mmaped memory.
26 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
28 * include/std/std_complex.h (log): Tidy.
30 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
32 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
33 * testsuite/testsuite_abi.cc: Same.
34 * configure.ac (libtool_VERSION): Bump to 6:1:0.
35 * configure: Regenerate.
36 * aclocal.m4: Regenerate.
38 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
40 * include/std/std_complex.h (complex<_Tp>): Properly indent
42 (complex<>::__rep): New.
43 (__complex_abs): New. Dispatch to built-ins.
45 (__complex_arg): New. Dispatch to built-ins.
47 (__complex_cos): New. Dispatch to built-ins.
49 (__complex_cosh): New. Dispatch to built-ins.
51 (__complex_exp): New. Dispatch to built-ins.
53 (__complex_log): New. Dispatch to built-ins.
55 (__complex_sin): New. Dispatch to built-ins.
57 (__complex_sinh): New. Dispatch to built-ins.
59 (__complex_sqrt): New. Dispatch to built-ins.
61 (__complex_tan): New. Dispatch to built-ins.
63 (__complex_tanh): New. Dispatch to built-ins.
65 (__complex_pow): New. Dispatch to built-ins.
68 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
69 Benjamin Kosnik <bkoz@redhat.com>
72 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
73 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
74 * config/io/basic_file_stdio.cc (__basic_file::file): New.
75 * config/io/basic_file_stdio.h: Define.
77 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
80 * docs/html/documentation.html: Update doxygen links for 3.4.0.
82 2004-05-27 Jan Beulich <jbeulich@novell.com>
84 * scripts/create_testsuite_files: Tweak.
86 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
89 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
90 bits to do the same thing.
92 2004-05-24 Paolo Carlini <pcarlini@suse.de>
94 * include/bits/istream.tcc (ignore): Correctly deal with
95 n == numeric_limits<streamsize>::max().
96 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
98 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
99 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
100 __n == numeric_limits<>::min().
102 * include/bits/istream.tcc: Minor tweaks.
104 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
106 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
108 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
110 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
112 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
114 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
118 * include/bits/basic_string.h (basic_string::operator=): Return
119 pointer to this instead of result of assign. Although redundant,
120 this doesn't impact resultant codegen.
122 * include/bits/locale_facets.h (__numpunct_cache): Declare
123 assignment opxserator and copy constructor private.
124 (__timepunct_cache): Same.
125 (__moneypunct_cache): Same.
126 (collate): Use member initialization list for _M_c_locale_collate.
127 * config/locale/gnu/messages_members.h: Same.
128 * config/locale/gnu/time_members.h (__timepunct): Same.
129 * src/codecvt.cc: Use member initialization list to initialize
131 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
132 * config/os/gnu-linux/ctype_noninline.h: Same.
133 * src/locale.cc (_Impl): Same.
134 * src/locale_init.cc: Same.
135 * src/localename.cc: Same.
137 * include/bits/basic_ios.h (basic_ios): Complete member
139 * include/bits/istream.tcc (basic_istream::sentry): Same.
140 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
141 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
142 _M_pback to member initialization list.
143 * include/std/std_streambuf.h: Same.
144 * include/std/std_sstream.h: Same, for _M_mode.
145 * src/ios.cc (ios_base): Same.
147 * include/ext/rope: Make derived classes match exception
149 specifications. Add copy constructors and assignment operators.
151 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
152 constructor and assignment operator protected.
153 (_Safe_iterator_base): Same.
154 * include/debug/formatter.h (_Error_formatter): Define copy
155 constructor and assignment operator.
157 * include/backward/strstream: Declare assignment operator and copy
160 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
162 * testsuite/testsuite_hooks.h (func_callback): Declare copy
163 constructor and assignment operator private.
164 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
165 exception specifications of base class.
166 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
167 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
168 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
170 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
172 * libsupc++/cxxabi.h: Remove duplicated and useless public and
173 private keywords in class declarations. Format. Use
174 stddef.h. Expose declarations to "C" compilation.
175 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
177 (__dyncast_result): Same.
178 * libsupc++/vec.cc (uncatch_exception): Same, use member
181 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
183 * testsuite/abi_check.cc: Add unistd.h.
185 2004-05-22 Paolo Carlini <pcarlini@suse.de>
188 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
189 __int_to_char(unsigned long long)): Showpos is not relevant
191 * testsuite/22_locale/num_put/put/char/15565.cc: New.
192 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
194 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
196 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
197 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
198 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
199 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
200 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
201 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
203 2004-05-21 Matthias Klose <doko@debian.org>
205 * docs/doxygen/run_doxygen: Bump required version.
207 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
209 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
210 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
212 2004-05-21 Paolo Carlini <pcarlini@suse.de>
214 * include/bits/istream.tcc (ignore): Remove redundant line.
215 (readsome): Tidy, closely following 27.6.1.3, p30.
217 2004-05-20 Paolo Carlini <pcarlini@suse.de>
219 * include/bits/istream.tcc (operator>>(basic_istream<>&,
220 basic_string<>&)): Use a temporary buffer, thus avoiding
221 reallocation for common case.
222 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
224 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
227 * include/bits/istream.tcc: Const-ification of a few variables.
229 * include/bits/ostream.tcc: Trivial formatting fixes and
230 const-ification of some variables.
232 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
236 * docs/doxygen/Intro.3: Remove Allocators.3.
237 Add new extension headers, extension namespace list.
238 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
239 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
240 __gnu_debug::. Remove __policy_ renames.
241 * docs/doxygen/guide.html: Add dot note.
242 * docs/doxygen/stdheader.cc: Edit, add files.
243 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
245 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
247 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
249 2004-05-18 Jan Beulich <jbeulich@novell.com>
252 * scripts/create_testsuite_files: Also find source files through
255 2004-05-18 Jan Beulich <jbeulich@novell.com>
258 * testsuite/lib/libstdc++.exp: Make test files writable.
260 2004-05-18 Paolo Carlini <pcarlini@suse.de>
262 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
265 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
267 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
268 allocation loop which removes blocks from the global free list
269 from O(N) to O(1) when the required blocks are <= the number
272 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
274 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
276 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
278 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
279 * testsuite/23_containers/deque/14340.cc: New.
280 * testsuite/23_containers/list/14340.cc: New.
281 * testsuite/23_containers/map/14340.cc: New.
282 * testsuite/23_containers/multimap/14340.cc: New.
283 * testsuite/23_containers/multiset/14340.cc: New.
284 * testsuite/23_containers/set/14340.cc: New.
285 * testsuite/23_containers/vector/14340.cc: New.
287 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
290 * include/debug/safe_iterator.h (_Safe_iterator converting
291 constructor): Only allow declaration to instantiate when the
292 incoming _Safe_iterator has exactly the right iterator type.
294 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
296 * include/bits/boost_concept_check.h: Fix old attribute syntax.
297 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
298 to pass concept-checks.
299 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
300 * testsuite/23_containers/set/modifiers/swap.cc: Same.
301 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
303 2004-05-16 Paolo Carlini <pcarlini@suse.de>
305 * include/std/std_bitset.h: Minor formatting fixes.
307 2004-05-16 Paolo Carlini <pcarlini@suse.de>
309 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
310 Consistently update __bin._M_free[0].
311 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
312 __bin._M_free[0] to simplify the while loop (i.e., the number
313 of iterations becomes known at the outset).
315 2004-05-15 Paolo Carlini <pcarlini@suse.de>
317 * include/std/std_bitset.h: Trivial formatting fixes.
319 2004-05-14 Paolo Carlini <pcarlini@suse.de>
320 Ivan Godard <igodard@pacbell.net>
323 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
324 * testsuite/23_containers/bitset/ext/15361.cc: New.
326 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
329 * crossconfig.m4: Add C99 math bits for linux crosses.
330 * configure: Regenerate.
332 2004-05-13 Simon Marshall <simon.marshall@misys.com>
333 Benjamin Kosnik <bkoz@redhat.com>
336 * include/bits/locale_facets.h: Fix for -fno-for-scope.
337 * include/debug/safe_sequence.h: Same.
338 * include/debug/safe_iterator.tcc: Same.
339 * src/debug.cc: Same.
340 * src/locale.cc: Same.
341 * src/locale_init.cc: Same.
342 * src/localename.cc: Same.
343 * config/locale/gnu/ctype_members.cc: Same.
344 * config/locale/gnu/numeric_members.cc: Same.
345 * testsuite/testsuite_abi.cc: Same.
346 * testsuite/testsuite_hooks.cc: Same.
348 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
350 * docs/html/abi.html: Document effect of -fabi-version on value
351 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
354 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
357 * docs/html/faq/index.html: Update docs for libsupc++ usage.
359 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
362 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
364 (_GLIBCXX_mutex_address): Same.
365 (_GLIBCXX_once): Same.
366 (_GLIBCXX_mutex_init): Same.
367 (_GLIBCXX_mutex_address_init): Same.
369 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
371 * docs/html/abi.html: New.
372 * docs/html/abi.txt: Remove.
373 * docs/html/documentation.html: Add link.
374 * testsuite/Makefile.am: Add files.
375 * testsuite/Makefile.in: Regenerated.
376 * testsuite/abi_check.cc: Move and modify code into...
377 * testsuite/testsuite_abi.cc: Add.
378 * testsuite/testsuite_abi.h: Add.
380 * docs/html/17_intro/TODO: Update.
381 * include/bits/stl_pair.h: Format.
383 2004-05-06 Matthias Klose <doko@debian.org>
385 * include/backward/iterator.h: Add GPL copyright info,
386 with exception clause.
387 * include/bits/boost_concept_check.h: Likewise.
389 * libsupc++/tinfo.h: Likewise.
390 * po/string_literals.cc: Likewise.
392 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
394 * acinclude.m4: Replace -W with more speaking -Wextra.
395 * configure: Rebuilt.
397 2004-05-03 Paolo Carlini <pcarlini@suse.de>
399 Optimize locale::_M_impl->_M_names for the most common cases:
400 !_M_names[0] means unnamed; !_M_names[1] means all the categories
401 the same name (_M_names[0] && _M_names[1] means that the full set
402 of _M_names must be processed, the general case).
403 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
404 Tweak, saving work when !_M_names[1].
405 (locale::locale(const locale&, _Facet*): Simplify: now just setting
406 _M_names[0] = 0 means unnamed.
407 * src/locale.cc (locale::operator==): Deal first with the common,
408 easy cases, otherwise fall back to locale::name().
409 (locale::name()): Tweak, if !_M_names[0] just return "*".
410 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
411 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
412 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
413 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
414 Simplify when !std::strchr, just updating _M_names[0]; clean up.
415 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
416 for the general case (full set of names), then do the usual work;
419 * src/locale.cc (locale::name()): Reserve space in __ret.
420 * src/locale_init.cc (locale::global(const locale&)): Save
421 the name in a temporary.
422 * src/localename.cc (locale::locale(const char*)): Reserve space
425 2004-04-29 Paolo Carlini <pcarlini@suse.de>
427 * src/locale.cc (locale::operator==): Always avoid constructing
428 locale::name(), directly compare pairs of _M_names.
430 2004-04-26 Paolo Carlini <pcarlini@suse.de>
432 * include/bits/istream.tcc: Fix comment.
434 2004-04-26 Paolo Carlini <pcarlini@suse.de>
436 * include/bits/stl_vector.h: Trivial formatting fixes.
437 * include/bits/vector.tcc: Likewise.
439 2004-04-25 Paolo Carlini <pcarlini@suse.de>
441 PR libstdc++/15002 (continued again)
442 * include/bits/istream.tcc (getline(basic_istream<>&,
443 basic_string<>&, _CharT)): Use a temporary buffer, thus
444 avoiding reallocation for common case.
446 * include/bits/basic_string.tcc (_S_construct(_InIterator,
447 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
448 of temporary buffer to a power of two.
450 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
452 2004-04-25 Paolo Carlini <pcarlini@suse.de>
454 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
456 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
458 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
460 2004-04-24 Paolo Carlini <pcarlini@suse.de>
461 Petur Runolfsson <peturr02@ru.is>
463 PR libstdc++/15002 (continued)
464 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
465 streamsize, char_type)): Use traits::find/copy in a loop to speed
466 up greatly the function in the common case (I/O buffer size >> 1).
468 2004-04-24 Paolo Carlini <pcarlini@suse.de>
470 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
472 * include/bits/istream.tcc (getline(basic_istream<>&,
473 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
474 of sbumpc(), consistently with the other functions, thus also
475 dealing correctly with the case of exceeded string::max_size().
477 2004-04-24 Matthias Klose <doko@debian.org>
479 Jonathan Wakely <cow@compsoc.man.ac.uk>
480 * docs/html/configopts.html: Fix reference to allocator config option.
482 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
484 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
485 * configure: Regenerate.
487 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
489 PR libstdc++/15047, libstdc++/11610
490 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
491 (libstdc++_init): Don't pass outdir to v3-copy-files.
493 2004-04-21 Paolo Carlini <pcarlini@suse.de>
495 * include/bits/deque.tcc: Trivial formatting fixes.
496 * include/bits/stl_deque.h: Likewise.
497 * include/bits/stl_list.h: Likewise.
498 * include/bits/stl_tree.h: Likewise.
500 2004-04-21 Paolo Carlini <pcarlini@suse.de>
501 Andrew Pinski <pinskia@physics.uc.edu>
503 * include/bits/basic_string.tcc (_M_mutate): Don't compute
506 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
508 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
509 Clarify assertion, set test variable to false before assert.
510 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
511 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
512 * testsuite/27_io/ios_base/storage/2.cc: Same.
514 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
516 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
517 * testsuite/27_io/fpos/14320-3.cc: Same.
519 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
520 * testsuite/27_io/fpos/1.cc: Same.
521 * testsuite/27_io/basic_stringstream/2.cc: Same.
522 * testsuite/27_io/basic_stringbuf/4.cc: Same.
523 * testsuite/27_io/basic_stringbuf/1.cc: Same.
524 * testsuite/27_io/basic_stringbuf/2.cc: Same.
525 * testsuite/27_io/basic_streambuf/2.cc: Same.
526 * testsuite/27_io/basic_ostringstream/2.cc: Same.
527 * testsuite/27_io/basic_ostream/2.cc: Same.
528 * testsuite/27_io/basic_ofstream/2.cc: Same.
529 * testsuite/27_io/basic_istringstream/2.cc: Same.
530 * testsuite/27_io/basic_istream/2.cc: Same.
531 * testsuite/27_io/basic_iostream/2.cc: Same.
532 * testsuite/27_io/basic_ios/2.cc: Same.
533 * testsuite/27_io/basic_ifstream/2.cc: Same.
534 * testsuite/27_io/basic_fstream/2.cc: Same.
535 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
537 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
538 unsigned against zero.
539 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
540 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
542 * testsuite/18_support/new_delete_placement.cc: Initialize
543 variables before first use.
544 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
545 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
546 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
547 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
549 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
550 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
552 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
553 * testsuite/27_io/types/2.cc: Same.
555 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
557 * testsuite/27_io/fpos/14775.cc: Same.
559 2004-04-19 Paolo Carlini <pcarlini@suse.de>
561 PR libstdc++/15002 (partial)
562 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
563 Special case __n2 == 1, not calling traits_type::assign/copy.
565 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
567 * include/bits/stl_bvector.h: Use _M_impl._M_start.
569 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
571 * include/bits/c++config (_GLIBCXX_STD): New.
572 * src/list.cc: Use it.
573 * include/std/std_bitset.h: Same.
574 * include/bits/vector.tcc: Same.
575 * include/bits/stl_set.h: Same.
576 * include/bits/stl_multiset.h: Same.
577 * include/bits/stl_multimap.h: Same.
578 * include/bits/stl_map.h: Same.
579 * include/bits/stl_list.h: Same.
580 * include/bits/stl_vector.h: Same.
581 * include/bits/stl_bvector.h: Same.
582 * include/bits/stl_deque.h: Same.
583 * include/bits/deque.tcc: Same.
584 * include/bits/list.tcc: Same.
585 * include/debug/vector: Same.
586 * include/debug/set.h: Same.
587 * include/debug/multiset.h: Same.
588 * include/debug/multimap.h: Same.
589 * include/debug/map.h: Same.
590 * include/debug/list: Same.
591 * include/debug/deque: Same.
592 * include/debug/bitset: Same.
593 * include/debug/formatter.h (__gnu_debug): Remove using directive.
594 Add using declaration for std::type_info.
595 * include/debug/safe_iterator.h: Add using declaration for
596 std::iterator_traits and std::pair.
597 * src/debug_list.cc: New.
598 * src/Makefile.am: Add debug_list.cc.
599 * src/Makefile.in: Regenerate.
600 * config/linker-map.gnu: Add _List_node_base exports for std and
603 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
604 idiom that other containers use.
605 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
607 2004-04-16 Paolo Carlini <pcarlini@suse.de>
610 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
612 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
613 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
615 2004-04-16 Paolo Carlini <pcarlini@suse.de>
617 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
619 * config.h.in: Regenerate.
621 2004-04-16 Paolo Carlini <pcarlini@suse.de>
623 * config/locale/generic/monetary_members.cc
624 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
625 btowc unnecessarily, just cast to wchar_t (the concerned chars
626 all belong to the basic character set).
627 * config/locale/generic/numeric_members.cc
628 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
629 * config/locale/gnu/monetary_members.cc
630 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
631 * config/locale/gnu/numeric_members.cc
632 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
634 2004-04-15 Paolo Carlini <pcarlini@suse.de>
636 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
637 avoid constructing unnecessarily this->name().
639 2004-04-14 Zack Weinberg <zack@codesourcery.com>
641 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
642 Change definition of CXX to use $(shell) instead of backticks.
643 * testsuite/Makefile.in: Regenerate.
645 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
647 * testsuite/performance/20_util/allocator/list_sort_search.cc:
648 Minor formatting fixes.
649 * testsuite/performance/20_util/allocator/map_mt_find.cc:
652 2004-04-12 Paolo Carlini <pcarlini@suse.de>
654 * config/locale/gnu/numeric_members.cc
655 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
656 in __uselocale, since btowc is called for chars belonging to
657 the basic character set.
659 2004-04-09 Paolo Carlini <pcarlini@suse.de>
661 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
662 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
663 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
664 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
665 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
666 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
667 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
668 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
669 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
670 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
671 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
672 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
673 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
674 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
675 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
676 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
677 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
679 2004-04-07 Paolo Carlini <pcarlini@suse.de>
681 * config/locale/generic/time_members.cc
682 (__timepunct<char>::_M_initialize_timepunct,
683 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
684 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
685 * config/locale/gnu/time_members.cc
686 (__timepunct<char>::_M_initialize_timepunct,
687 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
688 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
689 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
691 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
692 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
693 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
694 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
695 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
696 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
697 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
698 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
699 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
700 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
701 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
702 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
703 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
704 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
705 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
706 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
707 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
708 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
709 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
710 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
711 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
712 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
713 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
714 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
715 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
716 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
717 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
718 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
719 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
720 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
721 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
722 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
723 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
724 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
725 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
726 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
728 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
730 2004-04-07 Paolo Carlini <pcarlini@suse.de>
732 * config/locale/gnu/monetary_members.cc
733 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
734 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
735 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
736 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
737 * config/locale/gnu/numeric_members.cc
738 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
739 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
741 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
743 Fixups for EDG front end.
744 * include/ext/rope: Instead of non-existent function
745 _Data_allocate, use allocator's allocate. Use this.
746 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
747 enumerations from _Rope_RopeRep here.
748 * include/ext/ropeimpl.h: Same.
749 * src/ext-inst.cc (_S_min_len): Fix up definition.
751 * config/locale/gnu/ctype_members.cc: Qualify base class members
753 * config/locale/generic/ctype_members.cc: Same.
754 * config/locale/gnu/messages_members.h: Same.
755 * config/locale/generic/messages_members.h: Same.
756 * src/ctype.cc: Same.
757 * include/bits/codecvt.h: Same.
759 * include/bits/boost_concept_check.h: Declare.
760 (__error_type_must_be_an_unsigned_integer_type): Remove this.
761 (__error_type_must_be_an_integer_type): Remove this.
762 (__error_type_must_be_a_signed_integer_type): Remove this.
764 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
766 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
767 specification to definition.
768 (__cxa_allocate_exception): Same.
769 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
770 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
771 (__cxa_get_globals): Same.
773 * libsupc++/del_op.cc: Add comment about freestanding.
775 2004-04-05 Paolo Carlini <pcarlini@suse.de>
777 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
778 The critical section is actually very small, only two assignments.
780 2004-04-04 Paolo Carlini <pcarlini@suse.de>
781 Petur Runolfsson <peturr02@ru.is>
783 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
784 adapted from libstdc++/11378.
786 2004-04-03 Paolo Carlini <pcarlini@suse.de>
788 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
789 some duplicated code.
790 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
791 in the single threaded case.
792 * testsuite/performance/20_util/allocator/list_sort_search.cc:
793 Reorder and renumber the tests consistently with the other testfiles.
794 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
795 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
796 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
798 2004-04-02 Paolo Carlini <pcarlini@suse.de>
800 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
801 Rearrange arithmetic to avoid computing two divisions at
804 2004-04-01 Paolo Carlini <pcarlini@suse.de>
806 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
807 Streamline the second half, wrapping it in a single
808 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
809 conditionals inside loops.
811 2004-04-01 Paolo Carlini <pcarlini@suse.de>
814 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
815 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
816 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
817 to _GLIBCXX_RES_LIMITS.
818 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
820 * testsuite/testsuite_hooks.h: Declare set_file_limit.
821 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
822 and setrlimit(RLIMIT_FSIZE).
823 * testsuite/27_io/fpos/14775.cc: New.
824 * config.h.in: Regenerate.
825 * configure: Likewise.
827 2004-03-31 Paolo Carlini <pcarlini@suse.de>
829 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
830 In v3 uses of sscanf, the special floating-point numbers INF,
831 INFINITY, etc., cannot occur in input, therefore, if the latter
832 is too large, ERANGE is always stored in errno, no need of finitel.
834 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
837 * include/bits/stl_tree.h: Adjust initialization list order.
839 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
841 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
843 2004-03-29 Paolo Carlini <pcarlini@suse.de>
845 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
846 on allocator behavior, the memory pointed by data2 may well be not
849 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
852 * include/bits/basic_string.tcc
853 (basic_string::basic_string(const basic_string&)): Pass to
854 _Rep::_M_grab the actual allocator of the string being constructed
855 not the default constructed one.
857 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
860 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
861 (__enc_traits::_M_destroy): New.
862 (__enc_traits::~__enc_traits): Use it.
863 (__enc_traits::operator=): Use _M_destroy, _M_init.
864 (__enc_traits::__enc_traits): Same.
866 2004-03-27 Petur Runolfsson <peturr02@ru.is>
868 * testsuite/ext/enc_filebuf/char/13598.cc: New.
870 2004-03-27 Paolo Carlini <pcarlini@suse.de>
872 * include/ext/mt_allocator.h: Uglify consistently names of
873 variables, members and classes; tidy.
875 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
877 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
878 Deallocation loop rewrote.
880 2004-03-26 Paolo Carlini <pcarlini@suse.de>
882 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
883 __mt_alloc<>::deallocate): Protect two instances of
884 block->thread_id with __GTHREADS.
886 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
888 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
889 default argument in constructors.
890 (_Rb_tree::_M_empty_initialize): Remove.
892 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
894 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
895 * testsuite/23_containers/set/operators/1_neg.cc: Same.
897 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
899 * include/bits/cpp_type_traits.h: Changed __is_pod
900 completely. Now, it does not use any of the previous type_traits
901 to detect the pod types, and it also detects function pointers as
904 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
905 which encapsulates the internal implementation of an rb_tree. Made
906 the allocator a base class of this class instead of the rb_tree,
907 which was not conforming. This _Rb_tree_impl class is also
908 specialized on whether the _Compare parameter is a POD type or
909 not. If so, then it maintains the comparison function as a data
910 member, otherwise it makes the _Compare parameter a base class of
911 itself. Also, _M_key_compare is now a function instead of a data
912 member, so that the above trick can work properly. Delegated the
913 initialization of the other data members to this newly created
914 class. Also, now other member functions of rb_tree must refer to
915 _M_key_compare as _M_impl._M_key_compare(). The other data members
916 (*) can be referenced to as _M_impl.(*), where
917 (*) includes _M_header, and _M_node_count.
919 2004-03-25 Paolo Carlini <pcarlini@suse.de>
921 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
922 Add _M_min_bin, the size in bytes of the smallest bin.
923 (__mt_alloc<>::tune()): Tweak accordingly.
924 (__mt_alloc<>::tune(size_t, ...)): Likewise.
925 (__mt_alloc<>::block_record): Change to a union: members next
926 and thread_id are never used at the same time.
927 (__mt_alloc<>::allocate): Update consistently.
928 (__mt_alloc<>::deallocate): Likewise.
929 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
930 _S_bin_size for the configurable _M_min_size.
932 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
934 * include/bits/stl_list.h: Created a _List_impl class and made it
935 derive from the allocator, instead of the list deriving from the
936 allocator class, which was not conformant. Changed all references
937 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
938 as above (changed all references to the concerned variables).
940 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
942 * include/bits/stl_deque.h: Created a _Deque_impl class and made
943 it derive from the allocator, instead of the deque deriving from
944 the allocator class, which was not conformant. Changed all
945 references to the _M_start, _M_finish, _M_map, and _M_map_size to
947 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
948 qualification in 2 places where it was missing.
949 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
951 * include/bits/deque.tcc: Same as above (changed all references to
952 the concerned variables).
954 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
956 * include/bits/stl_vector.h: Created a _Vector_impl class and made
957 it derive from the allocator, instead of the _Vector_base class,
958 deriving from the allocator which was not conformant. Changed all
959 references to the _M_start, _M_finish, and _M_end_of_storage to
961 * include/bits/vector.tcc: Same as above (changed all references
962 to the concerned variables).
964 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
966 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
967 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
968 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
970 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
972 * include/ext/malloc_allocator.h: Fixed the construct function to
973 call global placement new instead of assignment. Added a check
974 after the return from malloc to check whether returned pointer is
975 NULL, and if so, throw std::bad_alloc().
976 * include/ext/debug_allocator.h: Added a check in the deallocate
977 function to check whether the user has passed a NULL pointer or
980 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
982 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
984 2004-03-24 Andreas Schwab <schwab@suse.de>
986 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
987 warning from IA64 assembler.
989 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
991 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
992 function call __builtin_ctz instead of the while loop.
993 (allocate) -> If condition has __builtin_expect.
994 (deallocate) -> Ditto.
995 Renamed a few left-over variables and typedefs according to the
996 C++STYLE mentioned in the documentation.
997 Protected calls to __gthread* by __gthread_active_p(), whose value
998 is cached in the local variable __threads_active.
1000 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1002 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1003 Use linear algorithm for producer.
1005 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1007 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1008 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1010 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1012 * include/bits/locale_facets.h: Tweaks for 80 column.
1013 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1014 (__moneypunct_cache::_M_cache): Same.
1015 (num_get): Don't inherit from __num_base.
1017 (money_get): Don't inherit from money_base.
1019 (__timepunct::_M_am_pm_format): New.
1020 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1021 (time_get::_M_extract_name): Same.
1022 (time_get::_M_extract_via_format): Same.
1023 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1024 Use _M_getloc instead of getloc.
1025 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1026 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1027 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1029 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1031 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1032 * configure: Regenerate.
1033 * config/allocator/pool_allocator_base.h: New.
1034 * include/ext/pool_allocator.h: Convert to a standard-conforming
1036 * src/allocator.cc: Tweak instantiations.
1037 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1038 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1039 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1040 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1041 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1042 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1044 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1046 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1047 inline" and attribute-unused. Qualify parameter __mem with
1049 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1051 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1053 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1055 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1057 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1059 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1061 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1063 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1065 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1067 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1069 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1071 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1074 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1076 * include/std/std_valarray.h: Document DR389 [Ready].
1077 * docs/html/ext/howto.html: Add an entry for DR389.
1079 2004-03-19 Michael Eager <eager@mvista.com>
1081 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1084 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1086 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1088 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1089 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1090 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1091 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1092 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1093 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1094 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1095 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1096 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1098 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1099 Petur Runolfsson <peturr02@ru.is>
1102 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1103 no way to find out the conversion used by the underlying FILE*.
1104 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1105 * testsuite/27_io/objects/char/9.cc: Tweak.
1107 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1110 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1111 memory allocation/deallocation calls.
1112 * testsuite/ext/14648.cc: New.
1114 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1117 * include/backward/bvector.h (bit_vector): Allocator is in std
1120 2004-03-19 Phil Edwards <phil@codesourcery.com>
1122 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1123 not libiconv. SUBST this variable as well.
1124 * testsuite/Makefile.am (site.exp): New target, based on that
1125 created by automake. Also set libiconv.
1127 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1128 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1129 testsuite/Makefile.in: Regenerate.
1131 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1133 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1134 new_allocator for all hosts.
1135 * configure: Regenerate.
1137 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1139 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1140 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1142 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1144 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1145 Adjust the logic underlying the parsing of symbol to deal
1146 correctly with an optional sign component (i.e., when either
1147 negative_sign or positive_sign is empty)
1148 * testsuite/22_locale/money_get/get/char/19.cc: New.
1149 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1151 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1153 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1154 Do not accept an incomplete currency symbol.
1155 * testsuite/22_locale/money_get/get/char/18.cc: New.
1156 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1158 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1160 * config/allocator: New.
1161 * config/allocator/bitmap_allocator_base.h: New.
1162 * config/allocator/malloc_allocator_base.h: New.
1163 * config/allocator/mt_allocator_base.h: New.
1164 * config/allocator/new_allocator_base.h: New.
1165 * include/bits/allocator.h: Include c++allocator.h.
1166 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1167 * aclocal.m4: Regenerate.
1168 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1169 * configure: Regenerate.
1170 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1171 * include/Makefile.in: Regenerate.
1172 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1174 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1176 * include/bits/allocator.h: Revert.
1178 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1180 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1181 * include/bits/gslice_array.h: Add comment about DR 253.
1182 * include/bits/indirect_array.h: Likewise.
1183 * include/bits/mask_array.h: Likewise.
1184 * include/bits/slice_array.h: Likewise.
1186 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1188 * testsuite/20_util/allocator/14176.cc: New.
1189 * include/ext/mt_allocator.h: Formatting fixes.
1191 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1193 * include/Makefile.am (ext_headers): Add
1194 ${ext_srcdir}/bitmap_allocator.h .
1195 * include/Makefile.in: Regenerate.
1196 * docs/html/ext/ballocator_doc.txt: New file.
1197 * include/ext/bitmap_allocator.h: New file.
1198 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1200 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1201 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1202 test for the bitmap_allocator<>.
1203 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1204 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1205 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1207 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1209 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1210 pow(const _Tp&, const complex&), pow(const complex&,
1211 const complex&)): Fully qualify with std:: a few calls.
1212 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1214 2004-03-11 Steven Bosscher <stevenb@suse.de>
1217 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1219 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1221 * configure.ac: Bump AC_PREREQ to 2.59.
1223 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1225 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1227 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1228 Paolo Carlini <pcarlini@suse.de>
1231 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1232 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1233 * testsuite/26_numerics/complex/13450.cc: New.
1235 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1236 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1238 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1241 * include/bits/gslice_array.h (gslice_array()): Make public.
1242 (operator=(gslice_array)): Make public. Implement.
1243 * include/bits/indirect_array.h (indirect_array()): Make public.
1244 * include/bits/mask_array.h (mask_array()): Make public.
1245 (operator=(mask_array)): Make public. Implement.
1246 * include/bits/valarray_array.tcc (__valarray_copy):
1247 Comment. Add versions for gslice_array and mask_array.
1248 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1250 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1252 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1254 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1255 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1256 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1257 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1258 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1259 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1261 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1263 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1266 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1267 * testsuite/23_containers/list/modifiers/swap.cc: New.
1268 * testsuite/23_containers/map/modifiers/swap.cc: New.
1269 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1270 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1271 * testsuite/23_containers/set/modifiers/swap.cc: New.
1272 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1274 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1277 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1279 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1281 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1282 * include/bits/stl_multiset.h: Add comment about DR 103.
1283 * include/bits/stl_set.h: Likewise.
1285 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1287 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1288 The value _space_ indicates that at least one space is required
1290 * testsuite/22_locale/money_get/get/char/17.cc: New.
1291 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1293 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1294 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1296 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1297 Remove redundant conditional on __str.size().
1299 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1301 * include/bits/allocator.h: Switch defaults to mt_alloc.
1303 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1305 * include/ext/mt_allocator.h (_S_initialize): If
1306 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1308 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1311 * src/locale_init.cc (locale::locale): Lock critical regions with
1313 (locale::global): Same.
1314 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1315 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1316 (__glibcxx_mutex_lock): Same.
1318 * config/cpu/generic/atomicity.h: Remove
1319 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1320 * src/misc-inst.cc: Move all locking bits out of this file.
1322 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1323 * src/misc-inst.cc: Same.
1324 * config/cpu/hppa/atomicity.h: Same.
1326 * config/linker-map.gnu: Remove types in the signature of atomic
1327 exports, as they may vary.
1329 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1331 * include/bits/locale_facets.tcc: Tweak the comment preceding
1332 has_facet: doesn't throw.
1334 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1336 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1337 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1338 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1339 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1340 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1341 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1342 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1343 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1345 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1347 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1348 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1349 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1350 * testsuite/testsuite_character.h (struct __gnu_test::character):
1352 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1355 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1357 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1359 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1361 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1363 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1365 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1366 * testsuite/23_containers/list/invalidation/1.cc: Same.
1367 * testsuite/23_containers/list/invalidation/2.cc: Same.
1368 * testsuite/23_containers/list/invalidation/3.cc: Same.
1369 * testsuite/23_containers/list/invalidation/4.cc: Same.
1370 * testsuite/23_containers/map/invalidation/2.cc: Same.
1371 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1372 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1373 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1374 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1375 * testsuite/23_containers/set/invalidation/1.cc: Same.
1376 * testsuite/23_containers/set/invalidation/2.cc: Same.
1377 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1378 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1379 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1380 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1382 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1384 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1386 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1388 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1389 from the dg-options.
1390 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1391 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1392 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1393 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1394 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1395 * testsuite/26_numerics/complex_value.cc: Likewise.
1396 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1397 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1398 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1399 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1400 * testsuite/27_io/objects/char/5.cc: Likewise.
1401 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1402 * testsuite/backward/11460.cc: Likewise.
1403 * testsuite/thread/pthread7-rope.cc: Likewise.
1405 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1406 missing test variable.
1407 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1408 missing test variable.
1410 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1412 * testsuite/20_util/allocator/1.cc: Provide explicit
1413 instantiations for non-weak systems.
1414 * testsuite/20_util/binders.cc: Same.
1415 * testsuite/20_util/allocator/8230.cc: Same.
1416 * testsuite/20_util/allocator/10378.cc: Same.
1417 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1418 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1419 * testsuite/thread/pthread7-rope.cc: Same.
1420 * testsuite/thread/pthread6.cc: Same.
1421 * testsuite/thread/pthread5.cc: Same.
1422 * testsuite/thread/pthread4.cc: Same.
1423 * testsuite/thread/pthread1.cc: Same.
1424 * testsuite/ext/rope.cc: Same.
1425 * testsuite/ext/hash_set.cc: Same.
1426 * testsuite/ext/hash_map.cc: Same.
1427 * testsuite/ext/concept_checks.cc: Same.
1428 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1429 * testsuite/25_algorithms/unique/2.cc: Same.
1430 * testsuite/25_algorithms/unique/1.cc: Same.
1431 * testsuite/25_algorithms/rotate.cc: Same.
1432 * testsuite/25_algorithms/min_max.cc: Same.
1433 * testsuite/25_algorithms/equal.cc: Same.
1434 * testsuite/24_iterators/rel_ops.cc: Same.
1435 * testsuite/24_iterators/iterator.cc: Same.
1436 * testsuite/24_iterators/insert_iterator.cc: Same.
1437 * testsuite/24_iterators/front_insert_iterator.cc: Same.
1438 * testsuite/24_iterators/back_insert_iterator.cc: Same.
1439 * testsuite/23_containers/vector/resize/1.cc: Same.
1440 * testsuite/23_containers/vector/modifiers/2.cc: Same.
1441 * testsuite/23_containers/vector/modifiers/1.cc: Same.
1442 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1443 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1444 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1445 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1446 * testsuite/23_containers/vector/element_access/1.cc: Same.
1447 * testsuite/23_containers/vector/cons/6513.cc: Same.
1448 * testsuite/23_containers/vector/cons/3.cc: Same.
1449 * testsuite/23_containers/vector/cons/2.cc: Same.
1450 * testsuite/23_containers/vector/cons/1.cc: Same.
1451 * testsuite/23_containers/vector/capacity/8230.cc: Same.
1452 * testsuite/23_containers/vector/capacity/1.cc: Same.
1453 * testsuite/23_containers/vector/bool/6886.cc: Same.
1454 * testsuite/23_containers/stack/members/7158.cc: Same.
1455 * testsuite/23_containers/set/invalidation/2.cc: Same.
1456 * testsuite/23_containers/set/invalidation/1.cc: Same.
1457 * testsuite/23_containers/queue/members/7157.cc: Same.
1458 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1459 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1460 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1461 * testsuite/23_containers/multiset/insert/1.cc: Same.
1462 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1463 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1464 * testsuite/23_containers/map/operators/1.cc: Same.
1465 * testsuite/23_containers/map/invalidation/2.cc: Same.
1466 * testsuite/23_containers/map/invalidation/1.cc: Same.
1467 * testsuite/23_containers/map/insert/1.cc: Same.
1468 * testsuite/23_containers/list/operators/4.cc: Same.
1469 * testsuite/23_containers/list/operators/3.cc: Same.
1470 * testsuite/23_containers/list/operators/2.cc: Same.
1471 * testsuite/23_containers/list/operators/1.cc: Same.
1472 * testsuite/23_containers/list/modifiers/3.cc: Same.
1473 * testsuite/23_containers/list/modifiers/2.cc: Same.
1474 * testsuite/23_containers/list/modifiers/1.cc: Same.
1475 * testsuite/23_containers/list/invalidation/4.cc: Same.
1476 * testsuite/23_containers/list/invalidation/3.cc: Same.
1477 * testsuite/23_containers/list/invalidation/2.cc: Same.
1478 * testsuite/23_containers/list/invalidation/1.cc: Same.
1479 * testsuite/23_containers/list/cons/9.cc: Same.
1480 * testsuite/23_containers/list/cons/8.cc: Same.
1481 * testsuite/23_containers/list/cons/7.cc: Same.
1482 * testsuite/23_containers/list/cons/6.cc: Same.
1483 * testsuite/23_containers/list/cons/5.cc: Same.
1484 * testsuite/23_containers/list/cons/4.cc: Same.
1485 * testsuite/23_containers/list/cons/3.cc: Same.
1486 * testsuite/23_containers/list/cons/2.cc: Same.
1487 * testsuite/23_containers/list/cons/1.cc: Same.
1488 * testsuite/23_containers/list/capacity/1.cc: Same.
1489 * testsuite/23_containers/deque/operators/1.cc: Same.
1490 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1491 * testsuite/23_containers/deque/invalidation/3.cc: Same.
1492 * testsuite/23_containers/deque/invalidation/2.cc: Same.
1493 * testsuite/23_containers/deque/invalidation/1.cc: Same.
1494 * testsuite/23_containers/deque/cons/2.cc: Same.
1495 * testsuite/23_containers/deque/cons/1.cc: Same.
1497 * src/allocator.cc: Add char, wchar_t instantiations
1498 to match extern template declarations in memory.h.
1500 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1502 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1503 Fix warning regression.
1505 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1507 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1508 Deal properly with empty __digits and negative frac_digits,
1511 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
1513 * docs/html/documentation.html: Regenerate.
1515 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1518 * include/bits/postypes.h (class streamoff): Remove, now
1519 streamoff is just typedef a 64 bit signed integer type.
1520 (class fpos): Tweak consistently.
1521 * testsuite/27_io/fpos/14320-1.cc: New.
1522 * testsuite/27_io/fpos/14320-2.cc: New.
1523 * testsuite/27_io/fpos/14320-3.cc: New.
1524 * testsuite/27_io/fpos/14320-4.cc: New.
1525 * testsuite/27_io/fpos/14320-5.cc: New.
1526 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1528 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1530 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1531 Reorganize a bit the main parsing loop, thus early detecting
1532 an empty value component.
1533 * testsuite/22_locale/money_get/get/char/16.cc: New.
1534 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1536 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
1538 Support automake 1.8.2
1539 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1540 * po/Makefile.am (EXTRA_DIST): New.
1541 * po/Makefile.in: Regenerate.
1542 * Makefile.in: Same.
1543 * include/Makefile.in: Same.
1544 * libmath/Makefile.in: Same.
1545 * libsupc++/Makefile.in: Same.
1546 * src/Makefile.in: Same.
1547 * testsuite/Makefile.in: Same.
1549 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1550 __GXX_WEAK__ instead of SUPPORTS_WEAK.
1551 (${host_builddir}/gthr-default.h): Same.
1552 (${host_builddir}/gthr.h): Same.
1553 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1554 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1556 * aclocal.m4: Regenerate.
1557 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1558 * config.h.in: Regenerate.
1561 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1563 Support autoconf 2.59
1564 * acinclude.m4: Quote correctly.
1565 * aclocal.m4: Regenerate.
1568 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1570 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1572 * docs/html/18_support/howto.html: Add bit about writing to
1573 stderr, mostly by Zack.
1575 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1577 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1578 money_get<>::do_get(string_type&)): ... and two more.
1580 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1582 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1583 Fix thinkos in the switch from string_type& to string& as last
1586 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1588 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1589 Also when parsing exponent sign, first look for thousands_sep
1590 and decimal_point; tweak a bit.
1591 * testsuite/22_locale/num_get/get/char/15.cc: New.
1592 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
1594 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1595 num_get<>::_M_extract_int): Reorder some conditionals.
1597 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1599 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1600 Consistently with numpunct, enforce the requirements in
1601 22.2.6.3, p3 for the thousands separators; tweak a bit.
1602 * testsuite/22_locale/money_get/get/char/15.cc: New.
1603 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
1605 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
1607 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
1608 testsuite_files from correct multilib blddir when running
1611 2004-02-29 Phil Edwards <phil@codesourcery.com>
1613 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
1614 the summary file to the logfile.
1615 * testsuite/Makefile.in: Regenerate.
1617 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1619 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
1621 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
1622 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
1624 2004-02-28 Paolo Carlini <pcarlini@suse.de>
1626 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1627 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
1628 no 'decimal-point' in the middle: in this case too we must fix
1629 up __found_grouping; slightly tweak.
1630 * testsuite/22_locale/num_get/get/char/14.cc: New.
1631 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
1633 2004-02-27 Eric Christopher <echristo@redhat.com>
1634 Phil Edwards <phil@codesourcery.com>
1636 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
1637 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
1638 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
1639 testsuite/22_locale/collate/hash/wchar_t/2.cc,
1640 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
1641 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
1642 testsuite/22_locale/collate/transform/wchar_t/2.cc,
1643 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
1644 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1645 Use dg-require-iconv.
1646 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
1648 2004-02-27 Phil Edwards <phil@codesourcery.com>
1649 Eric Christopher <echristo@redhat.com>
1651 * testsuite/config/default.exp: Update with comments.
1652 (${tool}_target_compile): New wrapper routine.
1653 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
1654 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
1656 (load_gcc_lib, v3track): New routines.
1657 (v3-init): Rename to libstdc++_init.
1658 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
1659 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
1661 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
1663 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
1665 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
1667 * config/os/irix/irix5.2/atomicity.h: Merge..
1668 * config/os/irix/irix6.5/atomicity.h: Merge..
1669 * config/os/irix/atomicity.h: ...into this.
1670 * config/os/irix/atomic_word.h: New.
1671 * configure.host: Set atomic_word_dir for irix.
1673 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
1674 * i386/atomicity.h: Same.
1675 * m68k/atomicity.h: Same.
1676 * sparc/atomicity.h: Same.
1678 2004-02-27 David Edelsohn <edelsohn@gnu.org>
1680 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
1681 static, and inline keywords.
1683 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1685 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1686 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1687 call reserve on the __tmp_gruping string.
1688 (num_get<>::_M_extract_float): Don't append unnecessarily a
1689 char() to the returned string.
1690 * include/bits/locale_facets.tcc: Trivial reformattings.
1692 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1694 * include/bits/locale_facets.h (money_get<>::_M_extract):
1695 Change signature: now takes a plain string&.
1696 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1697 Update consistently the definition; use the moneypunct cache
1698 to parse the value; use swap to change __units.
1699 (money_get<>::do_get(long double&)): Update call of _M_extract,
1700 avoid ctype::narrow, not correct wrt the standard.
1701 (money_get<>::do_get(string_type&)): Likewise, update call
1702 of _M_extract, use ctype::widen.
1703 * src/locale-inst.cc: Tweak instantiations of _M_extract.
1705 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
1707 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1708 * testsuite/demangle/abi_examples/02.cc: Likewise.
1709 * testsuite/demangle/regression/cw-11.cc: Likewise.
1710 * testsuite/demangle/regression/cw-16.cc: Change two expected
1711 results to match libiberty demangler output.
1713 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1716 * libsupc++/Makefile.am: Use libiberty demangler.
1717 (c_sources): Add cp-demangle.c.
1718 * libsupc++/Makefile.in: Regenerate.
1719 * src/Makefile.am (sources): Remove demangle.cc.
1720 * src/Makefile.in: Regenerate.
1721 * include/Makefile.am (bits_headers): Move demangle.h.
1722 (ext_headers): ...here.
1723 * include/Makefile.in: Regenerate.
1724 * include/bits/demangle.h: Move...
1725 * include/ext/demangle.h: ...here.
1726 * src/demangle.cc: Remove.
1728 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1730 * include/bits/demangle.h: Add type template parameter to all
1731 templates with just an Allocator template parameter.
1733 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
1735 * include/bits/atomicity.h: New, forward declarations for __atomic_add
1736 and __exchange_and_add.
1737 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1738 * config/cpu/cris/atomic_word.h: Same.
1739 * config/cpu/sparc/atomic_word.h: Same.
1740 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1741 Qualifiy with __gnu_cxx.
1742 (_Callback_list::_M_add_reference): Same.
1743 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1744 (locale::facet::_M_remove_reference): Same.
1745 (locale::_Impl::_M_add_reference): Add.
1746 (locale::_Impl::_M_remove_reference): Same.
1747 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1748 (basic_string::_Rep::_M_dispose): Same.
1749 * src/ios.cc (ios_base::xalloc): Same.
1750 * src/ios_init.cc (ios_base::Init::Init): Same.
1751 (ios_base::Init::~Init): Same.
1752 * src/locale.cc (locale::id::_M_id): Same.
1753 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1754 static, and inline keywords.
1755 * config/cpu/alpha/atomicity.h: Same.
1756 * config/cpu/cris/atomicity.h: Same.
1757 * config/cpu/generic/atomicity.h: Same.
1758 * config/cpu/hppa/atomicity.h: Same.
1759 * config/cpu/i386/atomicity.h: Same.
1760 * config/cpu/ia64/atomicity.h: Same.
1761 * config/cpu/m68k/atomicity.h: Same.
1762 * config/cpu/mips/atomicity.h: Same.
1763 * config/cpu/powerpc/atomicity.h: Same.
1764 * config/cpu/s390/atomicity.h: Same.
1765 * config/cpu/sparc/atomicity.h: Same.
1767 * src/Makefile.am (host_sources): Add atomicity.cc.
1768 (atomicity.cc): New rule.
1769 * src/Makefile.in: Regenerate.
1770 * include/Makefile.am (host_headers): Remove host atomicity.h.
1771 (host_headers): Add atomic_word.h.
1772 (bits_headers): Add bits atomicity.h.
1773 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1774 * include/Makefile.in: Regenerate.
1775 * configure.host (atomic_word_dir): Add.
1776 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1777 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1778 * configure: Regenerate.
1779 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1781 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1782 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1784 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
1786 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1787 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1788 Fix markup, more <link> tags.
1790 2004-02-25 Carlo Wood <carlo@alinoe.com>
1793 namespace __gnu_cxx::demangler
1794 (session<Allocator>::qualifier_list_Allocator): Add
1795 (session<Allocator>::M_qualifier_list_alloc): Add
1796 (session<Allocator>::decode_type_with_postfix):
1797 Use M_qualifier_list_alloc instead of calling operator new/delete.
1799 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1802 * include/bits/postypes.h (class streamoff): Add operator++(),
1803 operator++(int), operator--() and operator--(int).
1804 * testsuite/27_io/fpos/14252.cc: New.
1806 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
1808 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1809 error in handling of hex constants.
1811 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1813 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1814 Prefer basic_string::append to operator+= and a temporary.
1816 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1818 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1819 Only use fputs, not write.
1821 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1823 * include/ext/malloc_allocator.h: Add operators ==, !=.
1824 * include/ext/new_allocator.h: Add operators ==, !=.
1825 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1826 (__mt_alloc::_S_get_options): New.
1827 (__mt_alloc::_S_set_options): New.
1828 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1829 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1830 Move functions out of line, simplify, format.
1831 * src/allocator.cc: Simplify explicit instantiations.
1832 * include/bits/allocator.h: Tweak.
1834 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1836 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1837 Restructure formatting of value component, first dealing with
1838 the non-decimal digits; use reserve.
1840 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1842 * include/bits/locale_facets.h (class money_get): Inherit
1843 from money_base too; tweak declaration of _M_extract, now
1844 parameterized on _Intl too.
1845 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1846 Update definition to use the cache; call reserve on __res to
1847 avoid multiple reallocations; fix parsing of sign component
1848 according to 22.2.6.1.2, p3.
1849 (money_get<>::do_get(long double&),
1850 money_get<>::do_get(string_type&)): Update calls of _M_extract.
1851 * src/locale-inst.cc: Add instantiations of
1852 money_get::_M_extract<false> and money_get::_M_extract<true>.
1853 * testsuite/22_locale/money_get/get/char/14.cc: New.
1854 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
1856 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1858 * libsupc++/vterminate.cc
1859 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1861 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1863 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1864 not set RLIMIT_AS on HP-UX.
1866 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1868 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1869 not set RLIMIT_AS on HP-UX.
1871 2004-02-21 Paolo Carlini <pcarlini@suse.de>
1873 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1874 _S_zero, _S_end } enum, _S_atoms.
1875 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1876 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1877 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1878 (__moneypunct_cache<>::~__moneypunct_cache): Update.
1879 (__moneypunct_cache<>::_M_cache): Fill the cache.
1880 (class moneypunct): Tweak __cache_type typedef.
1881 (class money_put): Inherit from money_base too; tweak declaration
1882 of _M_insert, now parameterized on _Intl.
1883 * include/bits/locale_facets.tcc
1884 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1885 (money_put<>::_M_insert): Update definition to use the cache;
1886 call reserve on __res to avoid multiple reallocations.
1887 (money_put<>::do_put(long double),
1888 money_put<>::do_put(const string_type&): Update calls of _M_insert.
1889 * config/locale/generic/monetary_members.cc
1890 (moneypunct<char, true>::_M_initialize_moneypunct,
1891 moneypunct<char, false>::_M_initialize_moneypunct,
1892 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1893 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1894 * config/locale/gnu/monetary_members.cc: Likewise.
1895 * config/locale/gnu/monetary_members.cc
1896 (moneypunct<wchar_t, true>::~moneypunct(),
1897 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1898 * src/globals_locale.cc: Tweak fake_money_cache_c.
1899 * src/locale-inst.cc: Add instantiations for
1900 money_put::_M_insert<false> and money_put::_M_insert<true> and
1901 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1902 * src/locale_facets.cc: Define money_base::_S_atoms.
1903 * src/locale_init.cc: Update placement new of
1904 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1905 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1907 * config/locale/generic/numeric_members.cc: Clean up.
1908 * config/locale/gnu/numeric_members.cc: Likewise.
1909 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1910 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1911 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1912 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1913 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1914 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1916 2004-02-20 Mark Mitchell <mark@codesourcery.com>
1918 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1919 FIFO for writing with ios_base::in|ios_base::out.
1920 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1921 * testsuite/27_io/objects/char/7.cc: Likewise.
1922 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1925 2004-02-19 David Edelsohn <edelsohn@gnu.org>
1927 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1928 from iso-8859-1 to ISO8859-1.
1929 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1930 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1931 * 22_locale/collate/hash/wchar_t/2.cc: Same.
1932 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1933 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1934 * 22_locale/collate/transform/wchar_t/2.cc: Same.
1935 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1936 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1938 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1940 * include/bits/locale_facets.h (money_get<>::_M_extract):
1941 New, helper for do_get.
1942 (money_put<>::_M_insert): Likewise, for do_put.
1943 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1944 money_put<>::_M_insert): Define.
1945 (money_get<>::do_get(long double&), money_get<>::do_get(
1946 string_type&), money_put::do_put(long double),
1947 money_put::do_put(const string_type&)): Use the helpers.
1949 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1951 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1952 Rewrite, avoiding recursion.
1953 (__gnu_internal::xwrite): Minor tweaks.
1955 2004-02-17 Stefan Olsson <stefan@xapa.se>
1957 * include/ext/mt_allocator.h: Removed the last
1958 pointer. Deallocated blocks are now added to the front of
1959 freelists as proposed by Felix Yen. This gives roughly 10%
1960 performance boost and saves some memory.
1961 * docs/html/ext/mt_allocator.html: Change due to that deallocated
1962 blocks now are added to the front of freelists. The reason to this
1963 approach is also explained.
1965 2004-02-17 Paolo Carlini <pcarlini@suse.de>
1967 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1968 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1969 grouping fidelity conditional.
1971 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1973 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1974 Qualify exception with std::.
1975 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1976 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1977 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1978 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1979 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1981 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1983 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1984 for now that the catch block is not reached.
1985 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1987 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1989 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1990 Fix parsing of the remaining sign characters.
1991 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1992 the input is scanned 'til eof.
1993 * 22_locale/money_get/get/char/4.cc: Likewise.
1994 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
1995 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
1996 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
1997 not do_pos_format: the former is the only one that matters during
1999 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2001 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2002 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2004 2004-02-15 David Asher <david.asher@cavium.com>
2007 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2008 access __olds beyond __oldlen.
2010 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2012 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2013 sure the exception is actually thrown.
2014 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2015 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2016 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2018 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2021 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2022 In case of conversion errors, throw ios_failure; simplify.
2023 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2024 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2025 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2026 previously we didn't throw in case of conversion errors, instead
2027 just returned eof().
2028 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2029 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2030 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2032 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2033 Trivial simplification of a conditional.
2035 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2037 PR libstdc++/13731 (final part: writev)
2038 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2039 New, a wrapper around writev() handling partial writes.
2040 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2042 (__basic_file<char>::xsputn): Update call.
2043 (__basic_file<char>::xsputn_2): Likewise.
2044 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2045 Don't declare, now static.
2047 2004-02-11 Stefan Olsson <stefan@xapa.se>
2049 * docs/html/ext/mt_allocator.html: New.
2051 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2053 * docs/html/20_util/allocator.html: New file, consolidate
2054 allocator information here. Revamp.
2055 * docs/html/documentation.html: Change links.
2056 * docs/html/20_util/howto.html: Same.
2057 * docs/html/ext/howto.html: Same.
2059 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2061 PR libstdc++/13731 (first part: write)
2062 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2064 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2065 Define it: a wrapper around write() handling partial write.
2066 (__basic_file<char>::xsputn): Use it.
2067 (__basic_file<char>::xsputn_2): Likewise.
2069 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2070 Petur Runolfsson <peturr02@ru.is>
2073 * include/std/std_istream.h (operator>>(__istream_type& (*)
2074 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2075 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2076 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2077 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2078 operator<<(ios_base& (*) (ios_base&))): Likewise.
2079 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2081 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2084 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2085 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2088 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2089 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2091 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2093 * include/ext/pool_allocator.h: Include c++config.h.
2095 2004-02-09 Stefan Olsson <stefan@xapa.se>
2097 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2098 applications and now has a ifdef to remove it completely on
2099 compilers without thread support. Include stdlib.h due to a
2100 compiler warning on getenv().
2102 2004-02-09 Paul Brook <paul@codesourcery.com>
2104 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2106 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2109 * src/locale_init.cc (locale::global(const locale&)): Use
2110 locale::name() in order to decide whether calling setlocale.
2111 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2113 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2114 Avoid computing &= unnecessarily.
2116 2004-02-09 James E Wilson <wilson@specifixinc.com>
2119 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2120 __builtin_extend_pointer.
2122 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2125 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2126 Don't leave dangling pointers.
2127 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2128 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2129 facet is needed in the final test.
2131 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2133 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2134 * configure: Regenerate.
2136 2004-02-08 Richard Henderson <rth@redhat.com>
2139 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2140 uncaughtExceptions during nested catch rethrow.
2141 * testsuite/18_support/14026.cc: New.
2143 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2145 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2146 When working in place remember to set the state to sharable
2147 (otherwise, _M_mutate does it).
2149 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2151 * include/bits/allocator.h, include/bits/basic_ios.h,
2152 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2153 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2154 include/bits/char_traits.h, include/bits/codecvt.h,
2155 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2156 include/bits/demangle.h, include/bits/deque.tcc,
2157 include/bits/fstream.tcc, include/bits/functexcept.h,
2158 include/bits/gslice.h, include/bits/gslice_array.h,
2159 include/bits/indirect_array.h, include/bits/ios_base.h,
2160 include/bits/istream.tcc, include/bits/list.tcc,
2161 include/bits/locale_classes.h, include/bits/locale_facets.h,
2162 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2163 include/bits/mask_array.h, include/bits/ostream.tcc,
2164 include/bits/postypes.h, include/bits/slice_array.h,
2165 include/bits/sstream.tcc, include/bits/stl_algo.h,
2166 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2167 include/bits/stl_construct.h, include/bits/stl_deque.h,
2168 include/bits/stl_function.h, include/bits/stl_heap.h,
2169 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2170 include/bits/stl_list.h, include/bits/stl_map.h,
2171 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2172 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2173 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2174 include/bits/stl_relops.h, include/bits/stl_set.h,
2175 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2176 include/bits/stl_threads.h, include/bits/stl_tree.h,
2177 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2178 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2179 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2180 include/bits/type_traits.h, include/bits/valarray_after.h,
2181 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2182 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2183 trailing whitespace.
2185 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2187 * include/bits/basic_string.h: Fix comment.
2189 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2191 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2192 according to the coding standards.
2193 * include/bits/stl_pair.h: Likewise.
2194 * include/bits/stl_raw_storage_iter.h: Likewise.
2195 * include/bits/stl_stack.h: Likewise.
2196 * include/bits/stl_uninitialized.h: Likewise.
2197 * include/bits/stream_iterator.h: Likewise.
2198 * include/bits/streambuf_iterator.h: Likewise.
2199 * include/bits/type_traits.h: Likewise.
2201 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2203 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2206 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2208 * scripts/check_performance: Support PCH.
2210 * scripts/check_performance (CXX): Add -DNOTHREAD.
2211 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2212 threaded tests from insert_insert.cc. Tweak iterations,
2213 remove special cases.
2214 * testsuite/performance/20_util/allocator/insert_insert.cc:
2215 Make all tests single-threaded. Tweak iterations.
2216 * testsuite/performance/20_util/allocator/map_thread.cc:
2218 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2221 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2225 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2226 'gcc-lib'. Add comment about poorly-named variables.
2227 * aclocal.m4: Regenerate.
2228 * configure: Regenerate.
2230 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2232 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2233 Thousands-sep are always optional; thousands-sep are not allowed
2234 after the decimal_point.
2235 * testsuite/22_locale/money_get/get/char/12.cc: New.
2236 * testsuite/22_locale/money_get/get/char/13.cc: New.
2237 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2238 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2240 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2241 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2242 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2243 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2244 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2245 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2246 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2247 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2249 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2251 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2253 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2255 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2257 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2258 it to decide whether FIONREAD should take an off_t or int argument.
2260 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2262 * include/bits/stl_function.h: Minor formatting changes.
2264 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2266 Revert previous change to config/abi/*/baseline_symbols.txt.
2268 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2269 Zack Weinberg <zack@codesourcery.com>
2271 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2273 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2274 (__basic_file<char>::_M_open_mode): Delete.
2275 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2277 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2278 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2279 Correct flags to filebuf::open calls.
2281 * config/abi/alpha-freebsd5/baseline_symbols.txt
2282 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2283 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2284 * config/abi/i386-freebsd4/baseline_symbols.txt
2285 * config/abi/i386-freebsd5/baseline_symbols.txt
2286 * config/abi/i486-linux-gnu/baseline_symbols.txt
2287 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2288 * config/abi/mips-linux-gnu/baseline_symbols.txt
2289 * config/abi/sparc-freebsd5/baseline_symbols.txt
2290 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2291 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2292 Remove entry for __basic_file<char>::_M_open_mode.
2294 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2296 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2298 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2300 * testsuite/performance/20_util/producer_consumer.cc: New.
2301 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2303 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2305 * testsuite/performance/20_util/allocator.cc: Move to..
2306 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2307 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2308 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2309 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2310 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2312 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2314 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2315 * docs/html/faq/index.txt: Regenerate.
2317 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2319 * include/ext/debug_allocator.h: _M_extra now stands for the
2320 number of extra objects instead of the number of extra bytes.
2321 (debug_allocator::allocate): Adjust.
2322 (debug_allocator::deallocate): Adjust.
2324 * include/ext/pool_allocator.h: Fix typo.
2326 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2327 Benjamin Kosnik <bkoz@redhat.com>
2329 * testsuite/performance/20_util/allocator.cc: Add map,
2331 * testsuite/performance/20_util/allocator_thread.cc: Same.
2333 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2335 * include/bits/basic_string.h (insert(iterator)): Remove,
2336 non-standard and already scheduled for removal.
2338 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2340 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2341 and indentation tweaks.
2342 * include/bits/stl_iterator_base_types.h: Likewise.
2343 * include/bits/stl_list.h: Likewise.
2344 * include/bits/stl_map.h: Likewise.
2345 * include/bits/stl_tempbuf.h: Likewise.
2347 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2349 * include/bits/gslice.h, include/bits/gslice_array.h,
2350 include/bits/indirect_array.h, include/bits/mask_array.h,
2351 include/bits/slice_array.h, include/bits/stl_numeric.h,
2352 include/std/std_valarray.h: Update copyright years.
2354 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2356 * include/bits/gslice.h (gslice): Document.
2357 * include/bits/gslice_array.h (gslice_array): Document.
2358 * include/bits/indirect_array (indirect_array): Document.
2359 * include/bits/mask_array (mask_array): Document.
2360 * include/bits/slice_array.h (slice,slice_array): Document.
2361 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2362 adjacent_difference): Document
2363 * include/std/std_valarray.h (valarray): Document.
2365 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2367 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2369 * docs/html/18_support/howto.html: Here.
2370 * docs/html/documentation.html: Add reference here.
2372 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2374 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2375 of no longer used GLIBC thread locale functions.
2377 2004-02-02 Eric Christopher <echristo@redhat.com>
2378 Zack Weinberg <zack@codesourcery.com>
2380 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2382 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2383 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2384 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2385 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2386 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2387 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2388 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2389 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2392 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2394 * include/bits/stl_function.h: Additional minor tweaks.
2395 * include/bits/stl_multiset.h: Likewise.
2397 * include/bits/stl_queue.h: Minor tweaks.
2399 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2401 PR libstdc++/13976 (continued)
2402 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2403 Make the second parameter unnamed, to void unused parameter
2405 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2407 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2410 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2411 Make the second parameter unnamed, to void unused parameter
2413 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2414 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2416 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2418 * include/bits/stl_algo.h: Additional minor tweaks.
2419 * include/bits/stl_map.h: Likewise.
2420 * include/bits/stl_multimap.h: Likewise.
2421 * include/bits/stl_multiset.h: Likewise.
2422 * include/bits/stl_set.h: Likewise.
2423 * include/bits/stl_tree.h: Likewise.
2425 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2427 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2430 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2432 * include/bits/stl_function.h: Additional minor tweaks.
2434 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2436 * include/bits/deque.tcc: Wrap overlong lines, constify
2437 a few variables, reformat according to the coding standards.
2438 * include/bits/list.tcc: Likewise.
2439 * include/bits/stl_deque.h: Likewise.
2440 * include/bits/stl_function.h: Likewise.
2441 * include/bits/stl_iterator.h: Likewise.
2442 * include/bits/stl_iterator_base_funcs.h: Likewise.
2443 * include/bits/stl_iterator_base_types.h: Likewise.
2444 * include/bits/stl_list.h: Likewise.
2445 * include/bits/stl_map.h: Likewise.
2446 * include/bits/stl_multimap.h: Likewise.
2447 * include/bits/stl_multiset.h: Likewise.
2448 * include/bits/stl_relops.h: Likewise.
2449 * include/bits/stl_set.h: Likewise.
2451 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2453 * include/bits/stl_bvector.h: Wrap overlong lines, constify
2454 a few variables, reformat according to the coding standards.
2455 * include/bits/stl_tree.h: Likewise.
2457 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2459 * include/bits/stl_algo.h: Minor additional reformat, add
2461 * include/bits/stl_algobase.h: Add copyright year.
2463 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2465 * include/bits/stl_algo.h: Wrap overlong lines, constify
2466 a few variables, reformat according to the coding standards.
2467 * include/bits/stl_algobase.h: Likewise.
2468 * include/bits/stl_heap.h: Likewise.
2470 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2472 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2474 * include/bits/basic_string.h: Fix two comments.
2476 2004-01-31 Per Bothner <per@bothner.com>
2478 * include/ext/mt_allocator.h
2479 (__mt_alloc::_S_thread_freelist_mutex): Guard with
2480 __GTHREAD_MUTEX_INIT.
2482 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2484 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2486 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2488 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2489 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2490 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2492 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
2494 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2495 Don't use clear, but instead assign. Use insert.
2497 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
2499 * src/demangle.cc: Add instantiations.
2500 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2501 * src/Makefile.in: Regenerate.
2503 2004-01-30 David Edelsohn <edelsohn@gnu.org>
2505 * src/allocator.cc: Protect _S_get_thread_id() and
2506 _S_thread_key_destr() with #ifdef __GTHREADS.
2508 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2510 Reshuffle performance testsuite.
2511 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2512 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2513 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2514 fstream_seek_write.cc, ifstream_extract_float.cc,
2515 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2516 list_create_fill_sort.cc, map_create_fill.cc,
2517 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2518 ofstream_insert_float.cc, ofstream_insert_int.cc,
2519 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2520 wchar_t_out.cc: Split into...
2521 * testsuite/performance/20_util/allocator.cc: New.
2522 * testsuite/performance/20_util/allocator_map_thread.cc: New.
2523 * testsuite/performance/20_util/allocator_thread.cc: New.
2524 * testsuite/performance/21_strings/string_append: New.
2525 * testsuite/performance/22_locale/is_wchar_t.cc: New.
2526 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2527 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2528 * testsuite/performance/22_locale/wchar_t_in.cc: New.
2529 * testsuite/performance/22_locale/wchar_t_length.cc: New.
2530 * testsuite/performance/22_locale/wchar_t_out.cc: New.
2531 * testsuite/performance/23_containers/container_benchmark.cc: New.
2532 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2533 * testsuite/performance/23_containers/map_create_fill.cc: New.
2534 * testsuite/performance/26_numerics/complex_norm.cc: New.
2535 * testsuite/performance/27_io/cout_insert_int.cc: New.
2536 * testsuite/performance/27_io/filebuf_copy.cc: New.
2537 * testsuite/performance/27_io/filebuf_sputc.cc: New.
2538 * testsuite/performance/27_io/fstream_seek_write.cc: New.
2539 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2540 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2541 * testsuite/performance/27_io/ifstream_getline.cc: New.
2542 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2543 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2545 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2547 * include/bits/basic_string.tcc (_Rep::_S_create):
2548 Never allocate a string bigger than max_size(); always keep
2549 __capacity and __size in sync to avoid memory leaks at
2552 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2554 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2555 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2556 the double loop, streamline.
2558 * include/bits/basic_string.tcc: Very minor tweaks.
2560 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
2562 * scripts/check_performance: Only compile with $THREAD_FLAG
2563 when test is marked to require it. Allow multiple
2564 compilations/executions of marked tests.
2565 * testsuite/testsuite_performance.h (report_performance):
2566 Report dynamic thread support status.
2567 (report_header): Likewise.
2568 * testsuite/performance/allocator.cc: Stabilize iteration
2569 count. Support more allocators. Mark each allocator test to
2570 run and report independently.
2571 * testsuite/performance/allocator_map_thread.cc: Likewise.
2572 * testsuite/performance/allocator_thread.cc: Likewise.
2574 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
2576 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
2577 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
2578 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
2579 std::get_temporary_buffer() instead of duplicating its code.
2580 Update to C++STYLE conventions.
2581 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
2582 new() instead of std::malloc().
2583 (return_temporary_buffer): Use ::operator delete() instead of
2586 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
2588 * include/bits/allocator.h: Temporary switch to new_allocator as
2589 the default to unjam bootstraps.
2591 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2593 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
2594 * include/Makefile.in: Regenerate.
2595 * include/bits/allocator_traits.h: Remove.
2596 * include/bits/allocator.h: Remove allocator_traits.h include, and
2598 (allocator): Empty base class, inherit from the underlying allocator.
2599 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
2600 * src/allocator.cc: ...here. New. For the underlying allocators.
2601 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
2602 * config/linker-map.gnu: Remove __pool_alloc bits.
2603 * src/Makefile.am (sources): Add allocator.cc.
2604 * src/Makefile.in: Regenerate.
2605 * testsuite/20_util/allocator/1.cc: Split second test into...
2606 * testsuite/20_util/allocator/8230.cc: ...this.
2607 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
2608 typedef to use std::allocatore. Format.
2609 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
2611 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
2612 __throw_bad_alloc calls. Don't include <memory>.
2613 * include/ext/malloc_allocator.h: Remove <memory> include.
2614 * include/ext/new_allocator.h (new_allocator): Same.
2615 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
2616 declaration. Switch __alloc to _Alloc.
2617 * include/ext/hashtable.h: Remove __alloc.
2618 * include/backward/alloc.h: Only inject allocator, not
2619 implementation details.
2621 * include/ext/mt_allocator.h: Replace free with delete.
2623 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2625 * src/globals_io.cc: Change to __gnu_internal namespace.
2626 * src/globals_locale.cc: Same.
2627 * src/locale_init.cc: Same.
2628 * src/ios_init.cc: Same.
2630 2004-01-28 Stefan Olsson <stefan@snon.net>
2632 * include/ext/mt_allocator.h: Replaced all malloc() calls with
2633 operator new(). Added support for the env variable
2634 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
2635 one in allocate() as well). Fix typos.
2637 2004-01-28 Paolo Carlini <pcarlini@suse.de>
2639 * include/bits/basic_string.h (_S_create(size_t,
2640 const _Alloc&): Change signature to take two size_type
2642 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2643 _InIterator, const _Alloc&, input_iterator_tag)): Update
2645 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2646 forward_iterator_tag)): Likewise.
2647 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
2648 (_M_mutate(size_type, size_type, size_type)): Don't
2649 implement the exponential growth policy, demand it to
2650 _S_create, update call and simplify.
2651 (_M_clone(const _Alloc&, size_type)): Likewise.
2652 (_S_create(size_type, size_type, const _Alloc&)): Implement
2653 the growth policy, simplify otherwise.
2655 * include/bits/basic_string.h (_Rep::operator[]): Tweak
2656 signature to take a size_type, consistently with the other
2659 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
2661 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
2662 delete declarations, add include and test variable.
2664 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
2666 * include/bits/codecvt.h, include/bits/locale_facets.h,
2667 include/bits/postypes.h, include/bits/stl_bvector.h,
2668 include/bits/stl_multiset.h, include/bits/stl_set.h,
2669 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
2670 include/std/std_complex.h: Document.
2672 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
2675 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
2676 iword/pword selector.
2677 (ios_base::iword, ios_base::pword): Use it.
2678 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
2679 iword or pword member on alloc failure.
2680 * testsuite/27_io/ios_base/storage/11584.cc: New test.
2682 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2683 PJ Darcy <darcypj@us.ibm.com>
2685 * configure.host: Add support for *-tpf.
2686 * crossconfig.m4: Likewise.
2687 * configure: Regenerate.
2688 * config/os/tpf: New directory.
2689 * config/os/tpf/os_defines.h: New file.
2690 * config/os/tpf/ctype_base.h: Likewise.
2691 * config/os/tpf/ctype_inline.h: Likewise.
2692 * config/os/tpf/ctype_noninline.h: Likewise.
2694 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2697 * include/bits/sstream.tcc: Guard use of extern template.
2699 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2701 * include/bits/basic_string.tcc
2702 (basic_string(const basic_string&, size_type, size_type),
2703 basic_string(const basic_string&, size_type, size_type,
2704 const _Alloc&)): Avoid unnecessarily constructing iterators.
2706 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2708 * config/locale/generic/c_locale.cc: Fix throw messages
2709 to use the __N marker.
2710 * config/locale/gnu/c_locale.cc: Likewise.
2711 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2713 * docs/html/17_intro/C++STYLE: Likewise.
2714 * include/bits/basic_ios.tcc: Likewise.
2715 * include/bits/fstream.tcc: Likewise.
2716 * include/bits/vector.tcc: Likewise.
2717 * include/ext/ropeimpl.h: Likewise.
2718 * include/std/std_bitset.h: Likewise.
2719 * src/ios.cc: Likewise.
2720 * src/locale.cc: Likewise.
2721 * src/localename.cc: Likewise.
2723 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2725 * include/bits/basic_string.h (_M_replace_aux): Use the
2726 __N marker in throw message.
2727 * include/bits/basic_string.tcc (assign(const _CharT*,
2728 size_type), insert(size_type, const _CharT*, size_type),
2729 replace(size_type, size_type, const _CharT*, size_type),
2730 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2733 * include/bits/basic_string.h, include/bits/basic_string.tcc:
2734 Fold overlong lines, minor formatting changes.
2736 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2738 * include/bits/basic_string.h (replace(iterator, iterator,
2739 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2740 (replace(iterator, iterator, const _CharT*)): Ditto.
2741 (replace(iterator, iterator, const _CharT*, size_type)):
2742 Add missing _GLIBCXX_DEBUG_PEDASSERT.
2744 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2746 * include/bits/basic_string.tcc (replace(size_type,
2747 size_type, const _CharT*, size_type)): Implement optimized
2748 in-place algorithm for non-overlapping ranges.
2749 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2750 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2752 * include/bits/basic_string.tcc (insert(size_type,
2753 const _CharT*, size_type)): Tweak slightly.
2755 2004-01-26 Andreas Schwab <schwab@suse.de>
2757 * config/locale/gnu/monetary_members.cc: Restore locale before
2758 rethrowing exception.
2760 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2762 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2764 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2767 * include/bits/basic_string.tcc: Very minor tweaks.
2769 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2771 * testsuite/performance/string_append.cc: Increase number
2774 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2776 * include/bits/basic_string.h (erase(size_type, size_type),
2777 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2778 instead, thus avoiding redundant check for length_error.
2780 * include/bits/basic_string.h: Tweak some comments.
2782 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2784 * include/bits/basic_string.tcc (operator+(const _CharT*,
2785 const basic_string&)): No need to go through the append
2786 taking two iterators.
2788 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2790 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2791 Revert last change to use std::min: machine language is worse.
2792 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2793 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2794 (find_last_not_of(_CharT, size_type)): Ditto.
2796 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2797 size_type)): Discard the value returned by _M_check.
2798 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2799 (append(const basic_string&, size_type, size_type)): Ditto.
2800 (copy(_CharT*, size_type, size_type)): Ditto.
2801 (compare(size_type, size_type, const basic_string&)): Ditto.
2802 (compare(size_type, size_type, const basic_string&,
2803 size_type, size_type)): Ditto.
2804 (compare(size_type, size_type, const _CharT*)): Ditto.
2805 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2807 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2809 * include/bits/basic_string.h (insert(size_type,
2810 const basic_string&, size_type, size_type)): Define inline here.
2811 * include/bits/basic_string.tcc (insert(size_type,
2812 const basic_string&, size_type, size_type)): Move inline.
2814 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2816 * include/bits/basic_string.h (assign(const basic_string&,
2817 size_type, size_type)): Define inline here.
2818 (replace(size_type, size_type, const basic_string&,
2819 size_type, size_type)): Ditto.
2820 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2821 _InputIterator, __false_type)): Only declare.
2822 (_M_replace(iterator, iterator, _InputIterator,
2823 _InputIterator)): Remove.
2824 * include/bits/basic_string.tcc (assign(const basic_string&,
2825 size_type, size_type)): Move inline.
2826 (replace(size_type, size_type, const basic_string&,
2827 size_type, size_type)): Ditto.
2828 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2829 _InputIterator, __false_type)): Define, now does also what
2830 _M_replace did before.
2831 * src/string-inst.cc (_M_replace): Don't instantiate.
2833 * include/bits/basic_string.tcc (find(const _CharT*,
2834 size_type, size_type)): Tidy.
2835 (rfind(_CharT, size_type)): Ditto.
2836 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2837 (find_first_not_of(_CharT, size_type)): Ditto.
2838 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2839 (find_last_not_of(_CharT, size_type)): Ditto.
2841 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2844 * include/debug/bitset (operator|=): Fix typo.
2845 * testsuite/23_containers/bitset/operations/13838.cc: New.
2847 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2849 * include/bits/basic_string.tcc (insert(size_type,
2850 const _CharT*, size_type __n)): Fix length_error check.
2851 (replace(size_type, size_type, const _CharT*, size_type):
2852 Ditto; call _M_replace_safe.
2853 (_M_replace_aux(size_type, size_type, size_type, _CharT):
2854 Fix length_error check.
2855 (_M_replace(iterator, iterator, _InputIterator,
2856 _InputIterator)): Ditto, tweak.
2857 (_M_replace_safe(size_type, size_type, const _CharT*,
2858 size_type)): Remove length_error check.
2860 * include/bits/basic_string.tcc (append(const basic_string&),
2861 append(const basic_string&, size_type, size_type)): Tweak
2864 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2865 size_type)): If __n == 0 don't call traits::copy.
2867 2004-01-23 Stefan Olsson <stefan@snon.net>
2869 * include/ext/mt_allocator.h: Reduce lock contention.
2871 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2874 * include/bits/fstream.tcc (underflow): Remove unused
2876 * include/bits/streambuf_iterator.h (equal): Ditto.
2877 * include/bits/locale_facets.h (_M_convert_from_char):
2880 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2883 * config/linker-map.gnu (nan): Delete.
2884 * libmath/mathconf.h (NAN, nan): Delete.
2885 * linkage.m4 (nan): Don't check for it.
2886 * libmath/nan.c: Delete file.
2888 * config.h.in, configure: Regenerate.
2890 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2892 * include/bits/basic_string.h (push_back(_CharT)):
2893 Call _M_replace_aux.
2894 (insert(size_type, const basic_string&)): Trivial tweak.
2895 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2896 (insert(iterator, _CharT)): Ditto.
2897 (erase(size_type, size_type)): Ditto.
2898 (erase(iterator)): Ditto.
2899 (erase(iterator, iterator)): Ditto.
2900 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2902 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
2905 * testsuite/performance/allocator_map_thread.cc: New test.
2907 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2909 * include/bits/locale_facets.tcc
2910 (money_put::do_put(..., long double)): Use the basic_string
2911 constructor for char arrays, not that for C-strings, to pass
2912 __digits to do_put(..., const string_type&): __ws isn't
2915 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2917 * include/bits/basic_string.h (_M_replace_safe): Change
2918 signatures to take size_types and const _CharT*.
2919 (_M_replace_aux): Likewise, takes size_types instead of
2921 (append(size_type, _CharT)): Update call.
2922 (assign(size_type, _CharT)): Ditto.
2923 (replace(iterator, iterator, size_type, _CharT)): Ditto.
2924 (_M_replace_dispatch(iterator, iterator, _Integer,
2925 _Integer, __true_type)): Ditto.
2926 * include/bits/basic_string.tcc (assign(const _CharT*,
2928 (insert(size_type, const _CharT*, size_type)): Ditto.
2929 (replace(size_type, size_type, const _CharT*,
2931 (_M_replace(iterator, iterator, _InputIterator,
2932 _InputIterator)): Ditto.
2933 (append(const basic_string&)): Ditto.
2934 (append(const basic_string&, size_type, size_type): Ditto.
2935 (append(const _CharT*, size_type): Ditto.
2936 (_M_replace_safe, _M_replace_safe): Change definitions
2937 accordingly, simplify.
2938 * string-inst.cc (_M_replace_safe): Don't instantiate.
2940 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2942 * include/bits/basic_string.tcc (append(const basic_string&)):
2943 Revert previous change.
2944 (append(const basic_string&, size_type, size_type)): Revert
2945 previous change, use _M_check and _M_limit.
2947 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2949 * include/bits/basic_string.h (_M_check): Change to return
2950 a checked __pos and take an additional const char* argument.
2951 (_M_fold): Rename to _M_limit, change to return a size_type,
2952 corresponding to the __off limited to the actual length.
2953 (insert(size_type, size_type, _CharT)): Update call, call
2955 (insert(iterator, _CharT)): Call replace(iterator, iterator,
2956 size_type, _CharT) instead.
2957 (erase(size_type, size_type)): Update calls.
2958 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2959 (substr(size_type, size_type)): Use _M_check.
2960 * include/bits/basic_string.tcc (basic_string(const basic_string&,
2961 size_type, size_type)): Update calls.
2962 (basic_string(const basic_string&, size_type, size_type,
2963 const _Alloc&)): Ditto.
2964 (assign(const basic_string&, size_type, size_type)): Use the
2965 new _M_check and _M_limit.
2966 (insert(size_type, const basic_string&, size_type, size_type):
2968 (insert(size_type, const _CharT*, size_type)): Ditto.
2969 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2970 (replace(size_type, size_type, const basic_string&,
2971 size_type, size_type)): Ditto.
2972 (append(const basic_string&)): Ditto.
2973 (append(const basic_string&, size_type, size_type)): Ditto.
2974 (copy(_CharT*, size_type, size_type)): Ditto.
2975 (compare(size_type, size_type, const basic_string&)): Ditto.
2976 (compare(size_type, size_type, const basic_string&,size_type,
2978 (compare(size_type, size_type, const _CharT*)): Ditto.
2979 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2981 2004-01-19 Stefan Olsson <stefan@snon.net>
2983 * include/ext/mt_allocator.h: If a thread, when it dies, still has
2984 memory on it's freelist this memory is not returned to global
2985 list. Simplification of deallocate so that memory is always
2986 returned to the calling thread id's freelist instead of to
2987 global. Fix typos. Add volatile where appropriate.
2989 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
2991 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2992 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
2993 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
2995 2004-01-19 Paolo Carlini <pcarlini@suse.de>
2997 * src/debug.cc: Make sure all the names are prefixed with
2998 double (or single) underscore.
3000 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3002 * src/debug.cc: Trivial formatting change.
3004 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3006 * include/bits/basic_string.tcc (_S_construct(size_type,
3007 _CharT, const _Alloc&)): Remove redundant try/catch.
3008 (_M_mutate(size_type, size_type, size_type)): Ditto.
3009 (_M_clone(const _Alloc&, size_type)): Ditto.
3011 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3013 * include/bits/basic_string.h (c_str()): Simplify, due to
3014 21.3.4 the internal representation is always kept null-terminated.
3015 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3016 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3017 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3020 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3022 * include/bits/basic_string.h (append(size_type, _CharT)):
3023 Moved inline, just call _M_replace_aux, no source iterators at
3024 risk of being clobbered.
3025 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3026 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3027 input_iterator_tag)): Remove fifth unused argument.
3028 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3029 _InputIterator, __false_type)): Update call.
3030 * include/bits/basic_string.tcc (replace(size_type, size_type,
3031 const _CharT*, size_type)): Update call.
3032 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3033 throw string literal.
3034 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3035 _ForwardIterator)): Likewise.
3036 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3037 input_iterator_tag)): Remove fifth unused argument.
3038 (append(size_type __n, _CharT __c)): Move inline.
3039 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3040 const C*, const C*, input_iterator_tag)): Remove fifth unused
3043 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3045 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3046 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3048 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3050 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3053 2004-01-15 Stefan Olsson <stefan@snon.net>
3055 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3056 possible by changing the behaviour of thread_freelist to do
3057 push_front when threads die instead of push_back.
3059 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3061 * include/bits/locale_facets.h (struct __numpunct_cache):
3062 Add member _M_grouping_size, caching the length of _M_grouping.
3063 (__numpunct_cache<>::_M_cache): Assign the latter.
3064 (__verify_grouping): Move declaration...
3065 * include/bits/locale_facets.tcc (__verify_grouping):
3066 ... here, change signature to take a const char* and a size_t
3067 for the grouping; not a template anymore.
3068 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3069 Likewise change signature and tweak consistently.
3070 (num_get::_M_extract_float, num_get::_M_extract_int,
3071 num_put::_M_insert_int, num_put::_M_insert_float,
3072 money_get::do_get(string_type&), money_get::do_put(string_type)):
3074 * config/locale/generic/numeric_members.cc
3075 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3076 * config/locale/gnu/numeric_members.cc
3077 (numpunct<>::_M_initialize_numpunct): Likewise.
3078 * src/locale-inst.cc (__add_grouping): Tweak signature.
3079 (__verify_grouping): Don't instantiate, not a template anymore.
3081 * include/bits/locale_facets.h: Rename _M_truename_len ->
3082 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3083 * include/bits/locale_facets.tcc: Likewise.
3084 * config/locale/generic/numeric_members.cc: Likewise.
3085 * config/locale/gnu/numeric_members.cc: Likewise.
3087 2004-01-14 Stefan Olsson <stefan@snon.net>
3089 * include/ext/mt_allocator.h: Fixups.
3090 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3091 * testsuite/performance/allocator_thread.cc: Same.
3093 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3095 * testsuite/performance/ifstream_extract_float.cc: Add higher
3097 * testsuite/performance/ofstream_insert_float.cc: Same.
3099 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3101 * src/locale-misc-inst.cc (__convert_from_v(long),
3102 __convert_from_v(unsigned long), __convert_from_v(long long),
3103 __convert_from_v(unsigned long long)): Remove, unused.
3105 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3107 * testsuite/performance/ifstream_extract_float.cc: New.
3108 * testsuite/performance/ofstream_insert_float.cc: Float generation
3111 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3112 * 20_util/auto_ptr/1.cc: ...this.
3113 * 20_util/auto_ptr/2.cc: Same.
3114 * 20_util/auto_ptr/3.cc: Same.
3115 * 20_util/auto_ptr/3946.cc: Same.
3116 * 20_util/auto_ptr/4.cc: Same.
3117 * 20_util/auto_ptr/5.cc: Same.
3118 * 20_util/auto_ptr/6.cc: Same.
3119 * 20_util/auto_ptr/7.cc: Same.
3120 * 20_util/auto_ptr/assign_neg.cc
3121 * 20_util/pairs.cc: Break into...
3122 * 20_util/pair/1.cc: ...this.
3123 * 20_util/pair/2.cc: Same.
3124 * 20_util/pair/3.cc: Same.
3125 * 20_util/pair/4.cc: Same.
3127 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3129 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3130 Set correctly just basefield, the only group that matters.
3132 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3134 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3135 (_Rope_rep_base): Inherit directly from the rope allocator;
3136 use rebinding instead of _Alloc_traits; pick up data member
3137 from _Rope_rep_alloc_base.
3138 (_Rope_alloc_base): Eliminate.
3139 (_Rope_base): Inherit directly from the rope allocator; use
3140 rebinding instead of _Alloc_traits; pick up data member from
3142 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3143 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3145 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3148 * include/bits/basic_string.tcc (compare(size_type, size_type,
3149 const _CharT*, size_type)): Implement correctly the resolution
3150 of DR 5: basically, s is a char array, -not- a C string.
3151 * include/bits/basic_string.h: Tweak some comments.
3152 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3153 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3155 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3157 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3160 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3162 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3164 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3167 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3169 * include/bits/locale_facets.h (struct __numpunct_cache):
3170 Add members _M_truename_len and _M_falsename_len, caching
3171 the lengths of _M_truename and _M_falsename.
3172 (__numpunct_cache<>::_M_cache): Assign the latter.
3173 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3174 num_put::do_put(bool)): Use the new members, thus avoiding
3175 computing string lengths again and again.
3176 * config/locale/generic/numeric_members.cc
3177 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3178 * config/locale/gnu/numeric_members.cc
3179 (numpunct<>::_M_initialize_numpunct): Likewise.
3181 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3183 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3184 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3186 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3187 and remove Cygwin XFAIL.
3188 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3189 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3190 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3191 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3193 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3194 * testsuite/27_io/objects/char/7.cc: Likewise.
3195 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3196 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3197 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3199 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3201 * include/std/std_complex.h (std::complex<>::real): Return a
3202 reference. Add non-const overload.
3203 (std::complex<>::real): Likewise.
3204 (std::real): Likewise.
3205 (std::imag): Likewise.
3206 (std::operator+): Tidy.
3207 (std::operator-): Likewise.
3208 (std::operator*): Likewise.
3209 (std::operator/): Likewise.
3210 (std::operator>>): Likewise.
3212 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3215 * include/bits/fstream.tcc (imbue): Exploit the external
3216 buffer to imbue 'on the fly' a new locale and convert its
3217 remainder with the new codecvt facet.
3218 (underflow): Tweak slightly to deal with this special case.
3219 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3220 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3221 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3222 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3223 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3225 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3227 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3230 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3233 * include/bits/locale_classes.h (class locale): Fix category
3235 * testsuite/22_locale/locale/13630.cc: Add.
3237 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3239 * include/bits/locale_facets.h: Make a name really dependent. This
3240 will be needed when Core Issue 224 is implemented.
3242 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3244 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3245 * testsuite/performance/allocator_thread.cc: Likewise.
3247 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3249 * crossconfig.m4: Add LFS, io bits to linux cross config.
3250 * acconfig.h: Remove obsolete bits, reorder.
3251 * config.h.in: Regenerate.
3255 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3257 * include/bits/stl_list.h:
3258 * include/bits/list.tc:
3260 Performance enhancements for destructor, push_front(),
3261 push_back(), pop_front(), pop_back(), sort()
3262 Eliminated static_casts where possible.
3263 Moved code out of header files into new src/list.cc
3264 implementation file for library where possible.
3265 Remove inheritance from iterator class and create separate
3266 classes for non-constant and constant iterators.
3267 * include/bits/stl_tree.h (_Rb_tree class):
3269 Only erase contents in destructor.
3270 Eliminate unnecessary initialization in assignment operator.
3271 Optimize for the nominal case by not checking whether
3272 container is empty in clear().
3273 Re-order test in _M_insert() to improve performance.
3274 Move initialization of new node's left & right pointers to
3275 src/tree.cc to where new node's colour is initialized
3276 and to reduce the amount of inline code.
3277 Use _M_leftmost() and _M_end() to improve readability where
3279 Create separate classes for non-constant and constant
3280 iterators to clarify code, avoid extra template parameters and
3281 casting away constness.
3283 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3285 * src/Makefile.am (sources): Add list.cc, tree.cc.
3286 * src/stl_tree.cc: Move to...
3287 * src/tree.cc: ...here.
3289 * config/linker-map.gnu: Tweaks.
3290 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3291 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3293 * bits/stl_vector.h: Column wrap comments.
3295 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3297 (re-open) PR libstdc++/12658
3298 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3299 (locale::global): Likewise.
3301 2004-01-07 Paolo Carlini <pcarlini@suse.de>
3303 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3304 Remove redundant #include.
3305 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3306 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3307 re-enable normal testing.
3308 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3310 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3311 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3313 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3315 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3317 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3319 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3321 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3323 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3325 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3326 More properly, #include <locale>.
3327 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3328 Remove redundant #include.
3329 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3330 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3331 redundant DejaGnu directive.
3332 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3335 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
3336 Stefan Olsson <stefan@snon.net>
3338 * scripts/check_performance: Use -pthread.
3339 * testsuite/performance/allocator.cc: Tweaks, add list.
3340 * testsuite/performance/allocator_thread.cc: New.
3342 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
3344 * include/bits/locale_facets.h: Document public classes and
3346 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3349 2004-01-06 Paolo Carlini <pcarlini@suse.de>
3351 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3352 Remove redundant #includes.
3353 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3355 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3357 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3358 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3359 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3360 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3361 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3362 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3363 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3364 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3365 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3366 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3367 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3368 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3369 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3370 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3371 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3373 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3375 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3377 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3379 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3381 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3382 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3383 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3385 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3387 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3388 Remove redundant #includes.
3389 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3391 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3393 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3395 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3397 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3399 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3401 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3403 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3405 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3407 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3409 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3411 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3414 2004-01-04 Mark Mitchell <mark@codesourcery.com>
3417 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3419 * testsuite/27_io/basic_fstream/4.cc: Likewise.
3420 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3421 * testsuite/27_io/basic_ios/4.cc: Likewise.
3422 * testsuite/27_io/basic_iostream/4.cc: Likewise.
3423 * testsuite/27_io/basic_istream/4.cc: Likewise.
3424 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3425 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3426 * testsuite/27_io/basic_ostream/4.cc: Likewise.
3427 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3428 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3429 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3431 2004-01-04 Paolo Carlini <pcarlini@suse.de>
3433 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3434 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3435 always use double underscored names.
3436 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3438 * include/bits/locale_facets.h (struct __numpunct_cache):
3439 Dimension _M_atoms_out and _M_atoms_in one position smaller.
3440 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out