1 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
3 * crossconfig.m4: Remove signbit, signbitf, signbitl.
4 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
5 builtin math functions instead of AC_DEFINE_UNQUOTED.
6 * configure: Regenerate.
8 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
10 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
11 * docs/doxygen/mainpage.html: Remove links.
13 2004-06-08 Jason Merrill <jason@redhat.com>
15 * config/linker-map.gnu: Use wildcards for
16 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
18 2004-06-08 Paolo Carlini <pcarlini@suse.de>
20 * include/ext/pool_allocator.h: Convert to a global free-list,
21 as per the original SGI/HP design: move the implementation
22 details to struct __pool_base, from which __pool_alloc derives.
23 * src/allocator.cc: Instantiate __pool_base.
25 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
26 Paolo Carlini <pcarlini@suse.de>
28 * testsuite/testsuite_performance.h
29 (resource_counter::allocated_memory): Make it return the right
30 number of bytes requested by the allocators/application. This is
31 the sbrk+mmaped memory.
33 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
35 * include/std/std_complex.h (log): Tidy.
37 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
39 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
40 * testsuite/testsuite_abi.cc: Same.
41 * configure.ac (libtool_VERSION): Bump to 6:1:0.
42 * configure: Regenerate.
43 * aclocal.m4: Regenerate.
45 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
47 * include/std/std_complex.h (complex<_Tp>): Properly indent
49 (complex<>::__rep): New.
50 (__complex_abs): New. Dispatch to built-ins.
52 (__complex_arg): New. Dispatch to built-ins.
54 (__complex_cos): New. Dispatch to built-ins.
56 (__complex_cosh): New. Dispatch to built-ins.
58 (__complex_exp): New. Dispatch to built-ins.
60 (__complex_log): New. Dispatch to built-ins.
62 (__complex_sin): New. Dispatch to built-ins.
64 (__complex_sinh): New. Dispatch to built-ins.
66 (__complex_sqrt): New. Dispatch to built-ins.
68 (__complex_tan): New. Dispatch to built-ins.
70 (__complex_tanh): New. Dispatch to built-ins.
72 (__complex_pow): New. Dispatch to built-ins.
75 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
76 Benjamin Kosnik <bkoz@redhat.com>
79 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
80 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
81 * config/io/basic_file_stdio.cc (__basic_file::file): New.
82 * config/io/basic_file_stdio.h: Define.
84 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
87 * docs/html/documentation.html: Update doxygen links for 3.4.0.
89 2004-05-27 Jan Beulich <jbeulich@novell.com>
91 * scripts/create_testsuite_files: Tweak.
93 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
96 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
97 bits to do the same thing.
99 2004-05-24 Paolo Carlini <pcarlini@suse.de>
101 * include/bits/istream.tcc (ignore): Correctly deal with
102 n == numeric_limits<streamsize>::max().
103 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
105 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
106 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
107 __n == numeric_limits<>::min().
109 * include/bits/istream.tcc: Minor tweaks.
111 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
113 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
115 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
117 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
119 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
121 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
125 * include/bits/basic_string.h (basic_string::operator=): Return
126 pointer to this instead of result of assign. Although redundant,
127 this doesn't impact resultant codegen.
129 * include/bits/locale_facets.h (__numpunct_cache): Declare
130 assignment opxserator and copy constructor private.
131 (__timepunct_cache): Same.
132 (__moneypunct_cache): Same.
133 (collate): Use member initialization list for _M_c_locale_collate.
134 * config/locale/gnu/messages_members.h: Same.
135 * config/locale/gnu/time_members.h (__timepunct): Same.
136 * src/codecvt.cc: Use member initialization list to initialize
138 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
139 * config/os/gnu-linux/ctype_noninline.h: Same.
140 * src/locale.cc (_Impl): Same.
141 * src/locale_init.cc: Same.
142 * src/localename.cc: Same.
144 * include/bits/basic_ios.h (basic_ios): Complete member
146 * include/bits/istream.tcc (basic_istream::sentry): Same.
147 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
148 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
149 _M_pback to member initialization list.
150 * include/std/std_streambuf.h: Same.
151 * include/std/std_sstream.h: Same, for _M_mode.
152 * src/ios.cc (ios_base): Same.
154 * include/ext/rope: Make derived classes match exception
156 specifications. Add copy constructors and assignment operators.
158 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
159 constructor and assignment operator protected.
160 (_Safe_iterator_base): Same.
161 * include/debug/formatter.h (_Error_formatter): Define copy
162 constructor and assignment operator.
164 * include/backward/strstream: Declare assignment operator and copy
167 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
169 * testsuite/testsuite_hooks.h (func_callback): Declare copy
170 constructor and assignment operator private.
171 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
172 exception specifications of base class.
173 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
174 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
175 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
177 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
179 * libsupc++/cxxabi.h: Remove duplicated and useless public and
180 private keywords in class declarations. Format. Use
181 stddef.h. Expose declarations to "C" compilation.
182 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
184 (__dyncast_result): Same.
185 * libsupc++/vec.cc (uncatch_exception): Same, use member
188 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
190 * testsuite/abi_check.cc: Add unistd.h.
192 2004-05-22 Paolo Carlini <pcarlini@suse.de>
195 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
196 __int_to_char(unsigned long long)): Showpos is not relevant
198 * testsuite/22_locale/num_put/put/char/15565.cc: New.
199 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
201 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
203 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
204 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
205 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
206 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
207 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
208 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
210 2004-05-21 Matthias Klose <doko@debian.org>
212 * docs/doxygen/run_doxygen: Bump required version.
214 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
216 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
217 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
219 2004-05-21 Paolo Carlini <pcarlini@suse.de>
221 * include/bits/istream.tcc (ignore): Remove redundant line.
222 (readsome): Tidy, closely following 27.6.1.3, p30.
224 2004-05-20 Paolo Carlini <pcarlini@suse.de>
226 * include/bits/istream.tcc (operator>>(basic_istream<>&,
227 basic_string<>&)): Use a temporary buffer, thus avoiding
228 reallocation for common case.
229 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
231 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
234 * include/bits/istream.tcc: Const-ification of a few variables.
236 * include/bits/ostream.tcc: Trivial formatting fixes and
237 const-ification of some variables.
239 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
243 * docs/doxygen/Intro.3: Remove Allocators.3.
244 Add new extension headers, extension namespace list.
245 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
246 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
247 __gnu_debug::. Remove __policy_ renames.
248 * docs/doxygen/guide.html: Add dot note.
249 * docs/doxygen/stdheader.cc: Edit, add files.
250 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
252 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
254 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
256 2004-05-18 Jan Beulich <jbeulich@novell.com>
259 * scripts/create_testsuite_files: Also find source files through
262 2004-05-18 Jan Beulich <jbeulich@novell.com>
265 * testsuite/lib/libstdc++.exp: Make test files writable.
267 2004-05-18 Paolo Carlini <pcarlini@suse.de>
269 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
272 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
274 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
275 allocation loop which removes blocks from the global free list
276 from O(N) to O(1) when the required blocks are <= the number
279 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
281 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
283 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
285 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
286 * testsuite/23_containers/deque/14340.cc: New.
287 * testsuite/23_containers/list/14340.cc: New.
288 * testsuite/23_containers/map/14340.cc: New.
289 * testsuite/23_containers/multimap/14340.cc: New.
290 * testsuite/23_containers/multiset/14340.cc: New.
291 * testsuite/23_containers/set/14340.cc: New.
292 * testsuite/23_containers/vector/14340.cc: New.
294 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
297 * include/debug/safe_iterator.h (_Safe_iterator converting
298 constructor): Only allow declaration to instantiate when the
299 incoming _Safe_iterator has exactly the right iterator type.
301 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
303 * include/bits/boost_concept_check.h: Fix old attribute syntax.
304 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
305 to pass concept-checks.
306 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
307 * testsuite/23_containers/set/modifiers/swap.cc: Same.
308 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
310 2004-05-16 Paolo Carlini <pcarlini@suse.de>
312 * include/std/std_bitset.h: Minor formatting fixes.
314 2004-05-16 Paolo Carlini <pcarlini@suse.de>
316 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
317 Consistently update __bin._M_free[0].
318 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
319 __bin._M_free[0] to simplify the while loop (i.e., the number
320 of iterations becomes known at the outset).
322 2004-05-15 Paolo Carlini <pcarlini@suse.de>
324 * include/std/std_bitset.h: Trivial formatting fixes.
326 2004-05-14 Paolo Carlini <pcarlini@suse.de>
327 Ivan Godard <igodard@pacbell.net>
330 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
331 * testsuite/23_containers/bitset/ext/15361.cc: New.
333 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
336 * crossconfig.m4: Add C99 math bits for linux crosses.
337 * configure: Regenerate.
339 2004-05-13 Simon Marshall <simon.marshall@misys.com>
340 Benjamin Kosnik <bkoz@redhat.com>
343 * include/bits/locale_facets.h: Fix for -fno-for-scope.
344 * include/debug/safe_sequence.h: Same.
345 * include/debug/safe_iterator.tcc: Same.
346 * src/debug.cc: Same.
347 * src/locale.cc: Same.
348 * src/locale_init.cc: Same.
349 * src/localename.cc: Same.
350 * config/locale/gnu/ctype_members.cc: Same.
351 * config/locale/gnu/numeric_members.cc: Same.
352 * testsuite/testsuite_abi.cc: Same.
353 * testsuite/testsuite_hooks.cc: Same.
355 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
357 * docs/html/abi.html: Document effect of -fabi-version on value
358 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
361 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
364 * docs/html/faq/index.html: Update docs for libsupc++ usage.
366 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
369 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
371 (_GLIBCXX_mutex_address): Same.
372 (_GLIBCXX_once): Same.
373 (_GLIBCXX_mutex_init): Same.
374 (_GLIBCXX_mutex_address_init): Same.
376 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
378 * docs/html/abi.html: New.
379 * docs/html/abi.txt: Remove.
380 * docs/html/documentation.html: Add link.
381 * testsuite/Makefile.am: Add files.
382 * testsuite/Makefile.in: Regenerated.
383 * testsuite/abi_check.cc: Move and modify code into...
384 * testsuite/testsuite_abi.cc: Add.
385 * testsuite/testsuite_abi.h: Add.
387 * docs/html/17_intro/TODO: Update.
388 * include/bits/stl_pair.h: Format.
390 2004-05-06 Matthias Klose <doko@debian.org>
392 * include/backward/iterator.h: Add GPL copyright info,
393 with exception clause.
394 * include/bits/boost_concept_check.h: Likewise.
396 * libsupc++/tinfo.h: Likewise.
397 * po/string_literals.cc: Likewise.
399 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
401 * acinclude.m4: Replace -W with more speaking -Wextra.
402 * configure: Rebuilt.
404 2004-05-03 Paolo Carlini <pcarlini@suse.de>
406 Optimize locale::_M_impl->_M_names for the most common cases:
407 !_M_names[0] means unnamed; !_M_names[1] means all the categories
408 the same name (_M_names[0] && _M_names[1] means that the full set
409 of _M_names must be processed, the general case).
410 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
411 Tweak, saving work when !_M_names[1].
412 (locale::locale(const locale&, _Facet*): Simplify: now just setting
413 _M_names[0] = 0 means unnamed.
414 * src/locale.cc (locale::operator==): Deal first with the common,
415 easy cases, otherwise fall back to locale::name().
416 (locale::name()): Tweak, if !_M_names[0] just return "*".
417 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
418 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
419 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
420 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
421 Simplify when !std::strchr, just updating _M_names[0]; clean up.
422 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
423 for the general case (full set of names), then do the usual work;
426 * src/locale.cc (locale::name()): Reserve space in __ret.
427 * src/locale_init.cc (locale::global(const locale&)): Save
428 the name in a temporary.
429 * src/localename.cc (locale::locale(const char*)): Reserve space
432 2004-04-29 Paolo Carlini <pcarlini@suse.de>
434 * src/locale.cc (locale::operator==): Always avoid constructing
435 locale::name(), directly compare pairs of _M_names.
437 2004-04-26 Paolo Carlini <pcarlini@suse.de>
439 * include/bits/istream.tcc: Fix comment.
441 2004-04-26 Paolo Carlini <pcarlini@suse.de>
443 * include/bits/stl_vector.h: Trivial formatting fixes.
444 * include/bits/vector.tcc: Likewise.
446 2004-04-25 Paolo Carlini <pcarlini@suse.de>
448 PR libstdc++/15002 (continued again)
449 * include/bits/istream.tcc (getline(basic_istream<>&,
450 basic_string<>&, _CharT)): Use a temporary buffer, thus
451 avoiding reallocation for common case.
453 * include/bits/basic_string.tcc (_S_construct(_InIterator,
454 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
455 of temporary buffer to a power of two.
457 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
459 2004-04-25 Paolo Carlini <pcarlini@suse.de>
461 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
463 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
465 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
467 2004-04-24 Paolo Carlini <pcarlini@suse.de>
468 Petur Runolfsson <peturr02@ru.is>
470 PR libstdc++/15002 (continued)
471 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
472 streamsize, char_type)): Use traits::find/copy in a loop to speed
473 up greatly the function in the common case (I/O buffer size >> 1).
475 2004-04-24 Paolo Carlini <pcarlini@suse.de>
477 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
479 * include/bits/istream.tcc (getline(basic_istream<>&,
480 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
481 of sbumpc(), consistently with the other functions, thus also
482 dealing correctly with the case of exceeded string::max_size().
484 2004-04-24 Matthias Klose <doko@debian.org>
486 Jonathan Wakely <cow@compsoc.man.ac.uk>
487 * docs/html/configopts.html: Fix reference to allocator config option.
489 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
491 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
492 * configure: Regenerate.
494 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
496 PR libstdc++/15047, libstdc++/11610
497 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
498 (libstdc++_init): Don't pass outdir to v3-copy-files.
500 2004-04-21 Paolo Carlini <pcarlini@suse.de>
502 * include/bits/deque.tcc: Trivial formatting fixes.
503 * include/bits/stl_deque.h: Likewise.
504 * include/bits/stl_list.h: Likewise.
505 * include/bits/stl_tree.h: Likewise.
507 2004-04-21 Paolo Carlini <pcarlini@suse.de>
508 Andrew Pinski <pinskia@physics.uc.edu>
510 * include/bits/basic_string.tcc (_M_mutate): Don't compute
513 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
515 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
516 Clarify assertion, set test variable to false before assert.
517 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
518 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
519 * testsuite/27_io/ios_base/storage/2.cc: Same.
521 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
523 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
524 * testsuite/27_io/fpos/14320-3.cc: Same.
526 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
527 * testsuite/27_io/fpos/1.cc: Same.
528 * testsuite/27_io/basic_stringstream/2.cc: Same.
529 * testsuite/27_io/basic_stringbuf/4.cc: Same.
530 * testsuite/27_io/basic_stringbuf/1.cc: Same.
531 * testsuite/27_io/basic_stringbuf/2.cc: Same.
532 * testsuite/27_io/basic_streambuf/2.cc: Same.
533 * testsuite/27_io/basic_ostringstream/2.cc: Same.
534 * testsuite/27_io/basic_ostream/2.cc: Same.
535 * testsuite/27_io/basic_ofstream/2.cc: Same.
536 * testsuite/27_io/basic_istringstream/2.cc: Same.
537 * testsuite/27_io/basic_istream/2.cc: Same.
538 * testsuite/27_io/basic_iostream/2.cc: Same.
539 * testsuite/27_io/basic_ios/2.cc: Same.
540 * testsuite/27_io/basic_ifstream/2.cc: Same.
541 * testsuite/27_io/basic_fstream/2.cc: Same.
542 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
544 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
545 unsigned against zero.
546 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
547 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
549 * testsuite/18_support/new_delete_placement.cc: Initialize
550 variables before first use.
551 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
552 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
553 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
554 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
556 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
557 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
559 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
560 * testsuite/27_io/types/2.cc: Same.
562 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
564 * testsuite/27_io/fpos/14775.cc: Same.
566 2004-04-19 Paolo Carlini <pcarlini@suse.de>
568 PR libstdc++/15002 (partial)
569 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
570 Special case __n2 == 1, not calling traits_type::assign/copy.
572 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
574 * include/bits/stl_bvector.h: Use _M_impl._M_start.
576 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
578 * include/bits/c++config (_GLIBCXX_STD): New.
579 * src/list.cc: Use it.
580 * include/std/std_bitset.h: Same.
581 * include/bits/vector.tcc: Same.
582 * include/bits/stl_set.h: Same.
583 * include/bits/stl_multiset.h: Same.
584 * include/bits/stl_multimap.h: Same.
585 * include/bits/stl_map.h: Same.
586 * include/bits/stl_list.h: Same.
587 * include/bits/stl_vector.h: Same.
588 * include/bits/stl_bvector.h: Same.
589 * include/bits/stl_deque.h: Same.
590 * include/bits/deque.tcc: Same.
591 * include/bits/list.tcc: Same.
592 * include/debug/vector: Same.
593 * include/debug/set.h: Same.
594 * include/debug/multiset.h: Same.
595 * include/debug/multimap.h: Same.
596 * include/debug/map.h: Same.
597 * include/debug/list: Same.
598 * include/debug/deque: Same.
599 * include/debug/bitset: Same.
600 * include/debug/formatter.h (__gnu_debug): Remove using directive.
601 Add using declaration for std::type_info.
602 * include/debug/safe_iterator.h: Add using declaration for
603 std::iterator_traits and std::pair.
604 * src/debug_list.cc: New.
605 * src/Makefile.am: Add debug_list.cc.
606 * src/Makefile.in: Regenerate.
607 * config/linker-map.gnu: Add _List_node_base exports for std and
610 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
611 idiom that other containers use.
612 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
614 2004-04-16 Paolo Carlini <pcarlini@suse.de>
617 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
619 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
620 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
622 2004-04-16 Paolo Carlini <pcarlini@suse.de>
624 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
626 * config.h.in: Regenerate.
628 2004-04-16 Paolo Carlini <pcarlini@suse.de>
630 * config/locale/generic/monetary_members.cc
631 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
632 btowc unnecessarily, just cast to wchar_t (the concerned chars
633 all belong to the basic character set).
634 * config/locale/generic/numeric_members.cc
635 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
636 * config/locale/gnu/monetary_members.cc
637 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
638 * config/locale/gnu/numeric_members.cc
639 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
641 2004-04-15 Paolo Carlini <pcarlini@suse.de>
643 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
644 avoid constructing unnecessarily this->name().
646 2004-04-14 Zack Weinberg <zack@codesourcery.com>
648 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
649 Change definition of CXX to use $(shell) instead of backticks.
650 * testsuite/Makefile.in: Regenerate.
652 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
654 * testsuite/performance/20_util/allocator/list_sort_search.cc:
655 Minor formatting fixes.
656 * testsuite/performance/20_util/allocator/map_mt_find.cc:
659 2004-04-12 Paolo Carlini <pcarlini@suse.de>
661 * config/locale/gnu/numeric_members.cc
662 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
663 in __uselocale, since btowc is called for chars belonging to
664 the basic character set.
666 2004-04-09 Paolo Carlini <pcarlini@suse.de>
668 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
669 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
670 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
671 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
672 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
673 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
674 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
675 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
676 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
677 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
678 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
679 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
680 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
681 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
682 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
683 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
684 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
686 2004-04-07 Paolo Carlini <pcarlini@suse.de>
688 * config/locale/generic/time_members.cc
689 (__timepunct<char>::_M_initialize_timepunct,
690 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
691 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
692 * config/locale/gnu/time_members.cc
693 (__timepunct<char>::_M_initialize_timepunct,
694 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
695 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
696 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
698 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
699 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
700 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
701 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
702 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
703 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
704 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
705 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
706 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
707 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
708 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
709 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
710 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
711 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
712 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
713 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
714 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
715 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
716 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
717 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
718 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
719 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
720 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
721 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
722 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
723 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
724 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
725 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
726 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
727 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
728 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
729 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
730 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
731 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
732 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
733 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
735 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
737 2004-04-07 Paolo Carlini <pcarlini@suse.de>
739 * config/locale/gnu/monetary_members.cc
740 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
741 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
742 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
743 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
744 * config/locale/gnu/numeric_members.cc
745 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
746 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
748 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
750 Fixups for EDG front end.
751 * include/ext/rope: Instead of non-existent function
752 _Data_allocate, use allocator's allocate. Use this.
753 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
754 enumerations from _Rope_RopeRep here.
755 * include/ext/ropeimpl.h: Same.
756 * src/ext-inst.cc (_S_min_len): Fix up definition.
758 * config/locale/gnu/ctype_members.cc: Qualify base class members
760 * config/locale/generic/ctype_members.cc: Same.
761 * config/locale/gnu/messages_members.h: Same.
762 * config/locale/generic/messages_members.h: Same.
763 * src/ctype.cc: Same.
764 * include/bits/codecvt.h: Same.
766 * include/bits/boost_concept_check.h: Declare.
767 (__error_type_must_be_an_unsigned_integer_type): Remove this.
768 (__error_type_must_be_an_integer_type): Remove this.
769 (__error_type_must_be_a_signed_integer_type): Remove this.
771 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
773 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
774 specification to definition.
775 (__cxa_allocate_exception): Same.
776 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
777 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
778 (__cxa_get_globals): Same.
780 * libsupc++/del_op.cc: Add comment about freestanding.
782 2004-04-05 Paolo Carlini <pcarlini@suse.de>
784 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
785 The critical section is actually very small, only two assignments.
787 2004-04-04 Paolo Carlini <pcarlini@suse.de>
788 Petur Runolfsson <peturr02@ru.is>
790 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
791 adapted from libstdc++/11378.
793 2004-04-03 Paolo Carlini <pcarlini@suse.de>
795 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
796 some duplicated code.
797 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
798 in the single threaded case.
799 * testsuite/performance/20_util/allocator/list_sort_search.cc:
800 Reorder and renumber the tests consistently with the other testfiles.
801 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
802 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
803 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
805 2004-04-02 Paolo Carlini <pcarlini@suse.de>
807 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
808 Rearrange arithmetic to avoid computing two divisions at
811 2004-04-01 Paolo Carlini <pcarlini@suse.de>
813 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
814 Streamline the second half, wrapping it in a single
815 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
816 conditionals inside loops.
818 2004-04-01 Paolo Carlini <pcarlini@suse.de>
821 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
822 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
823 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
824 to _GLIBCXX_RES_LIMITS.
825 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
827 * testsuite/testsuite_hooks.h: Declare set_file_limit.
828 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
829 and setrlimit(RLIMIT_FSIZE).
830 * testsuite/27_io/fpos/14775.cc: New.
831 * config.h.in: Regenerate.
832 * configure: Likewise.
834 2004-03-31 Paolo Carlini <pcarlini@suse.de>
836 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
837 In v3 uses of sscanf, the special floating-point numbers INF,
838 INFINITY, etc., cannot occur in input, therefore, if the latter
839 is too large, ERANGE is always stored in errno, no need of finitel.
841 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
844 * include/bits/stl_tree.h: Adjust initialization list order.
846 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
848 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
850 2004-03-29 Paolo Carlini <pcarlini@suse.de>
852 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
853 on allocator behavior, the memory pointed by data2 may well be not
856 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
859 * include/bits/basic_string.tcc
860 (basic_string::basic_string(const basic_string&)): Pass to
861 _Rep::_M_grab the actual allocator of the string being constructed
862 not the default constructed one.
864 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
867 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
868 (__enc_traits::_M_destroy): New.
869 (__enc_traits::~__enc_traits): Use it.
870 (__enc_traits::operator=): Use _M_destroy, _M_init.
871 (__enc_traits::__enc_traits): Same.
873 2004-03-27 Petur Runolfsson <peturr02@ru.is>
875 * testsuite/ext/enc_filebuf/char/13598.cc: New.
877 2004-03-27 Paolo Carlini <pcarlini@suse.de>
879 * include/ext/mt_allocator.h: Uglify consistently names of
880 variables, members and classes; tidy.
882 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
884 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
885 Deallocation loop rewrote.
887 2004-03-26 Paolo Carlini <pcarlini@suse.de>
889 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
890 __mt_alloc<>::deallocate): Protect two instances of
891 block->thread_id with __GTHREADS.
893 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
895 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
896 default argument in constructors.
897 (_Rb_tree::_M_empty_initialize): Remove.
899 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
901 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
902 * testsuite/23_containers/set/operators/1_neg.cc: Same.
904 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
906 * include/bits/cpp_type_traits.h: Changed __is_pod
907 completely. Now, it does not use any of the previous type_traits
908 to detect the pod types, and it also detects function pointers as
911 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
912 which encapsulates the internal implementation of an rb_tree. Made
913 the allocator a base class of this class instead of the rb_tree,
914 which was not conforming. This _Rb_tree_impl class is also
915 specialized on whether the _Compare parameter is a POD type or
916 not. If so, then it maintains the comparison function as a data
917 member, otherwise it makes the _Compare parameter a base class of
918 itself. Also, _M_key_compare is now a function instead of a data
919 member, so that the above trick can work properly. Delegated the
920 initialization of the other data members to this newly created
921 class. Also, now other member functions of rb_tree must refer to
922 _M_key_compare as _M_impl._M_key_compare(). The other data members
923 (*) can be referenced to as _M_impl.(*), where
924 (*) includes _M_header, and _M_node_count.
926 2004-03-25 Paolo Carlini <pcarlini@suse.de>
928 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
929 Add _M_min_bin, the size in bytes of the smallest bin.
930 (__mt_alloc<>::tune()): Tweak accordingly.
931 (__mt_alloc<>::tune(size_t, ...)): Likewise.
932 (__mt_alloc<>::block_record): Change to a union: members next
933 and thread_id are never used at the same time.
934 (__mt_alloc<>::allocate): Update consistently.
935 (__mt_alloc<>::deallocate): Likewise.
936 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
937 _S_bin_size for the configurable _M_min_size.
939 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
941 * include/bits/stl_list.h: Created a _List_impl class and made it
942 derive from the allocator, instead of the list deriving from the
943 allocator class, which was not conformant. Changed all references
944 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
945 as above (changed all references to the concerned variables).
947 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
949 * include/bits/stl_deque.h: Created a _Deque_impl class and made
950 it derive from the allocator, instead of the deque deriving from
951 the allocator class, which was not conformant. Changed all
952 references to the _M_start, _M_finish, _M_map, and _M_map_size to
954 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
955 qualification in 2 places where it was missing.
956 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
958 * include/bits/deque.tcc: Same as above (changed all references to
959 the concerned variables).
961 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
963 * include/bits/stl_vector.h: Created a _Vector_impl class and made
964 it derive from the allocator, instead of the _Vector_base class,
965 deriving from the allocator which was not conformant. Changed all
966 references to the _M_start, _M_finish, and _M_end_of_storage to
968 * include/bits/vector.tcc: Same as above (changed all references
969 to the concerned variables).
971 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
973 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
974 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
975 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
977 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
979 * include/ext/malloc_allocator.h: Fixed the construct function to
980 call global placement new instead of assignment. Added a check
981 after the return from malloc to check whether returned pointer is
982 NULL, and if so, throw std::bad_alloc().
983 * include/ext/debug_allocator.h: Added a check in the deallocate
984 function to check whether the user has passed a NULL pointer or
987 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
989 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
991 2004-03-24 Andreas Schwab <schwab@suse.de>
993 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
994 warning from IA64 assembler.
996 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
998 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
999 function call __builtin_ctz instead of the while loop.
1000 (allocate) -> If condition has __builtin_expect.
1001 (deallocate) -> Ditto.
1002 Renamed a few left-over variables and typedefs according to the
1003 C++STYLE mentioned in the documentation.
1004 Protected calls to __gthread* by __gthread_active_p(), whose value
1005 is cached in the local variable __threads_active.
1007 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1009 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1010 Use linear algorithm for producer.
1012 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1014 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1015 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1017 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1019 * include/bits/locale_facets.h: Tweaks for 80 column.
1020 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1021 (__moneypunct_cache::_M_cache): Same.
1022 (num_get): Don't inherit from __num_base.
1024 (money_get): Don't inherit from money_base.
1026 (__timepunct::_M_am_pm_format): New.
1027 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1028 (time_get::_M_extract_name): Same.
1029 (time_get::_M_extract_via_format): Same.
1030 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1031 Use _M_getloc instead of getloc.
1032 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1033 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1034 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1036 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1038 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1039 * configure: Regenerate.
1040 * config/allocator/pool_allocator_base.h: New.
1041 * include/ext/pool_allocator.h: Convert to a standard-conforming
1043 * src/allocator.cc: Tweak instantiations.
1044 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1045 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1046 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1047 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1048 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1049 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1051 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
1053 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1054 inline" and attribute-unused. Qualify parameter __mem with
1056 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1058 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1060 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1062 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1064 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1066 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1068 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1070 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1072 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1074 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1076 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1078 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
1081 2004-03-20 Paolo Carlini <pcarlini@suse.de>
1083 * include/std/std_valarray.h: Document DR389 [Ready].
1084 * docs/html/ext/howto.html: Add an entry for DR389.
1086 2004-03-19 Michael Eager <eager@mvista.com>
1088 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1091 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1093 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1095 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1096 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1097 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1098 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1099 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1100 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1101 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1102 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1103 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1105 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1106 Petur Runolfsson <peturr02@ru.is>
1109 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1110 no way to find out the conversion used by the underlying FILE*.
1111 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1112 * testsuite/27_io/objects/char/9.cc: Tweak.
1114 2004-03-19 Paolo Carlini <pcarlini@suse.de>
1117 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1118 memory allocation/deallocation calls.
1119 * testsuite/ext/14648.cc: New.
1121 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1124 * include/backward/bvector.h (bit_vector): Allocator is in std
1127 2004-03-19 Phil Edwards <phil@codesourcery.com>
1129 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1130 not libiconv. SUBST this variable as well.
1131 * testsuite/Makefile.am (site.exp): New target, based on that
1132 created by automake. Also set libiconv.
1134 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1135 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1136 testsuite/Makefile.in: Regenerate.
1138 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1140 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1141 new_allocator for all hosts.
1142 * configure: Regenerate.
1144 2004-03-16 Paolo Carlini <pcarlini@suse.de>
1146 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1147 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1149 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1151 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1152 Adjust the logic underlying the parsing of symbol to deal
1153 correctly with an optional sign component (i.e., when either
1154 negative_sign or positive_sign is empty)
1155 * testsuite/22_locale/money_get/get/char/19.cc: New.
1156 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1158 2004-03-15 Paolo Carlini <pcarlini@suse.de>
1160 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1161 Do not accept an incomplete currency symbol.
1162 * testsuite/22_locale/money_get/get/char/18.cc: New.
1163 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1165 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1167 * config/allocator: New.
1168 * config/allocator/bitmap_allocator_base.h: New.
1169 * config/allocator/malloc_allocator_base.h: New.
1170 * config/allocator/mt_allocator_base.h: New.
1171 * config/allocator/new_allocator_base.h: New.
1172 * include/bits/allocator.h: Include c++allocator.h.
1173 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1174 * aclocal.m4: Regenerate.
1175 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
1176 * configure: Regenerate.
1177 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1178 * include/Makefile.in: Regenerate.
1179 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1181 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1183 * include/bits/allocator.h: Revert.
1185 2004-03-12 Paolo Carlini <pcarlini@suse.de>
1187 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1188 * include/bits/gslice_array.h: Add comment about DR 253.
1189 * include/bits/indirect_array.h: Likewise.
1190 * include/bits/mask_array.h: Likewise.
1191 * include/bits/slice_array.h: Likewise.
1193 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1195 * testsuite/20_util/allocator/14176.cc: New.
1196 * include/ext/mt_allocator.h: Formatting fixes.
1198 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1200 * include/Makefile.am (ext_headers): Add
1201 ${ext_srcdir}/bitmap_allocator.h .
1202 * include/Makefile.in: Regenerate.
1203 * docs/html/ext/ballocator_doc.txt: New file.
1204 * include/ext/bitmap_allocator.h: New file.
1205 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
1207 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1208 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1209 test for the bitmap_allocator<>.
1210 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1211 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1212 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1214 2004-03-11 Paolo Carlini <pcarlini@suse.de>
1216 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1217 pow(const _Tp&, const complex&), pow(const complex&,
1218 const complex&)): Fully qualify with std:: a few calls.
1219 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1221 2004-03-11 Steven Bosscher <stevenb@suse.de>
1224 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1226 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1228 * configure.ac: Bump AC_PREREQ to 2.59.
1230 2004-03-10 Paolo Carlini <pcarlini@suse.de>
1232 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1234 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
1235 Paolo Carlini <pcarlini@suse.de>
1238 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1239 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1240 * testsuite/26_numerics/complex/13450.cc: New.
1242 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1243 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1245 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
1248 * include/bits/gslice_array.h (gslice_array()): Make public.
1249 (operator=(gslice_array)): Make public. Implement.
1250 * include/bits/indirect_array.h (indirect_array()): Make public.
1251 * include/bits/mask_array.h (mask_array()): Make public.
1252 (operator=(mask_array)): Make public. Implement.
1253 * include/bits/valarray_array.tcc (__valarray_copy):
1254 Comment. Add versions for gslice_array and mask_array.
1255 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1257 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1259 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1261 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1262 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1263 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1264 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1265 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1266 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1268 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1270 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1273 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1274 * testsuite/23_containers/list/modifiers/swap.cc: New.
1275 * testsuite/23_containers/map/modifiers/swap.cc: New.
1276 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1277 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1278 * testsuite/23_containers/set/modifiers/swap.cc: New.
1279 * testsuite/23_containers/vector/modifiers/swap.cc: New.
1281 2004-03-08 Petur Runolfsson <peturr02@ru.is>
1284 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1286 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1288 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1289 * include/bits/stl_multiset.h: Add comment about DR 103.
1290 * include/bits/stl_set.h: Likewise.
1292 2004-03-08 Paolo Carlini <pcarlini@suse.de>
1294 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1295 The value _space_ indicates that at least one space is required
1297 * testsuite/22_locale/money_get/get/char/17.cc: New.
1298 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1300 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1301 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1303 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1304 Remove redundant conditional on __str.size().
1306 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1308 * include/bits/allocator.h: Switch defaults to mt_alloc.
1310 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1312 * include/ext/mt_allocator.h (_S_initialize): If
1313 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1315 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1318 * src/locale_init.cc (locale::locale): Lock critical regions with
1320 (locale::global): Same.
1321 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1322 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1323 (__glibcxx_mutex_lock): Same.
1325 * config/cpu/generic/atomicity.h: Remove
1326 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1327 * src/misc-inst.cc: Move all locking bits out of this file.
1329 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1330 * src/misc-inst.cc: Same.
1331 * config/cpu/hppa/atomicity.h: Same.
1333 * config/linker-map.gnu: Remove types in the signature of atomic
1334 exports, as they may vary.
1336 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1338 * include/bits/locale_facets.tcc: Tweak the comment preceding
1339 has_facet: doesn't throw.
1341 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1343 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1344 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1345 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1346 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1347 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1348 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1349 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1350 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1352 2004-03-06 Paolo Carlini <pcarlini@suse.de>
1354 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1355 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1356 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1357 * testsuite/testsuite_character.h (struct __gnu_test::character):
1359 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1362 2004-03-05 Paolo Carlini <pcarlini@suse.de>
1364 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1366 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1368 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1370 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1372 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1373 * testsuite/23_containers/list/invalidation/1.cc: Same.
1374 * testsuite/23_containers/list/invalidation/2.cc: Same.
1375 * testsuite/23_containers/list/invalidation/3.cc: Same.
1376 * testsuite/23_containers/list/invalidation/4.cc: Same.
1377 * testsuite/23_containers/map/invalidation/2.cc: Same.
1378 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1379 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1380 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1381 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1382 * testsuite/23_containers/set/invalidation/1.cc: Same.
1383 * testsuite/23_containers/set/invalidation/2.cc: Same.
1384 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1385 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1386 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1387 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1389 2004-03-04 Paolo Carlini <pcarlini@suse.de>
1391 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1393 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1395 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1396 from the dg-options.
1397 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1398 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1399 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1400 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1401 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1402 * testsuite/26_numerics/complex_value.cc: Likewise.
1403 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1404 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1405 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1406 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1407 * testsuite/27_io/objects/char/5.cc: Likewise.
1408 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1409 * testsuite/backward/11460.cc: Likewise.
1410 * testsuite/thread/pthread7-rope.cc: Likewise.
1412 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1413 missing test variable.
1414 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1415 missing test variable.
1417 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1419 * testsuite/20_util/allocator/1.cc: Provide explicit
1420 instantiations for non-weak systems.
1421 * testsuite/20_util/binders.cc: Same.
1422 * testsuite/20_util/allocator/8230.cc: Same.
1423 * testsuite/20_util/allocator/10378.cc: Same.
1424 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1425 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1426 * testsuite/thread/pthread7-rope.cc: Same.
1427 * testsuite/thread/pthread6.cc: Same.
1428 * testsuite/thread/pthread5.cc: Same.
1429 * testsuite/thread/pthread4.cc: Same.
1430 * testsuite/thread/pthread1.cc: Same.
1431 * testsuite/ext/rope.cc: Same.
1432 * testsuite/ext/hash_set.cc: Same.
1433 * testsuite/ext/hash_map.cc: Same.
1434 * testsuite/ext/concept_checks.cc: Same.
1435 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1436 * testsuite/25_algorithms/unique/2.cc: Same.
1437 * testsuite/25_algorithms/unique/1.cc: Same.
1438 * testsuite/25_algorithms/rotate.cc: Same.
1439 * testsuite/25_algorithms/min_max.cc: Same.
1440 * testsuite/25_algorithms/equal.cc: Same.
1441 * testsuite/24_iterators/rel_ops.cc: Same.
1442 * testsuite/24_iterators/iterator.cc: Same.
1443 * testsuite/24_iterators/insert_iterator.cc: Same.
1444 * testsuite/24_iterators/front_insert_iterator.cc: Same.
1445 * testsuite/24_iterators/back_insert_iterator.cc: Same.
1446 * testsuite/23_containers/vector/resize/1.cc: Same.
1447 * testsuite/23_containers/vector/modifiers/2.cc: Same.
1448 * testsuite/23_containers/vector/modifiers/1.cc: Same.
1449 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1450 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1451 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1452 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1453 * testsuite/23_containers/vector/element_access/1.cc: Same.
1454 * testsuite/23_containers/vector/cons/6513.cc: Same.
1455 * testsuite/23_containers/vector/cons/3.cc: Same.
1456 * testsuite/23_containers/vector/cons/2.cc: Same.
1457 * testsuite/23_containers/vector/cons/1.cc: Same.
1458 * testsuite/23_containers/vector/capacity/8230.cc: Same.
1459 * testsuite/23_containers/vector/capacity/1.cc: Same.
1460 * testsuite/23_containers/vector/bool/6886.cc: Same.
1461 * testsuite/23_containers/stack/members/7158.cc: Same.
1462 * testsuite/23_containers/set/invalidation/2.cc: Same.
1463 * testsuite/23_containers/set/invalidation/1.cc: Same.
1464 * testsuite/23_containers/queue/members/7157.cc: Same.
1465 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1466 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1467 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1468 * testsuite/23_containers/multiset/insert/1.cc: Same.
1469 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1470 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1471 * testsuite/23_containers/map/operators/1.cc: Same.
1472 * testsuite/23_containers/map/invalidation/2.cc: Same.
1473 * testsuite/23_containers/map/invalidation/1.cc: Same.
1474 * testsuite/23_containers/map/insert/1.cc: Same.
1475 * testsuite/23_containers/list/operators/4.cc: Same.
1476 * testsuite/23_containers/list/operators/3.cc: Same.
1477 * testsuite/23_containers/list/operators/2.cc: Same.
1478 * testsuite/23_containers/list/operators/1.cc: Same.
1479 * testsuite/23_containers/list/modifiers/3.cc: Same.
1480 * testsuite/23_containers/list/modifiers/2.cc: Same.
1481 * testsuite/23_containers/list/modifiers/1.cc: Same.
1482 * testsuite/23_containers/list/invalidation/4.cc: Same.
1483 * testsuite/23_containers/list/invalidation/3.cc: Same.
1484 * testsuite/23_containers/list/invalidation/2.cc: Same.
1485 * testsuite/23_containers/list/invalidation/1.cc: Same.
1486 * testsuite/23_containers/list/cons/9.cc: Same.
1487 * testsuite/23_containers/list/cons/8.cc: Same.
1488 * testsuite/23_containers/list/cons/7.cc: Same.
1489 * testsuite/23_containers/list/cons/6.cc: Same.
1490 * testsuite/23_containers/list/cons/5.cc: Same.
1491 * testsuite/23_containers/list/cons/4.cc: Same.
1492 * testsuite/23_containers/list/cons/3.cc: Same.
1493 * testsuite/23_containers/list/cons/2.cc: Same.
1494 * testsuite/23_containers/list/cons/1.cc: Same.
1495 * testsuite/23_containers/list/capacity/1.cc: Same.
1496 * testsuite/23_containers/deque/operators/1.cc: Same.
1497 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1498 * testsuite/23_containers/deque/invalidation/3.cc: Same.
1499 * testsuite/23_containers/deque/invalidation/2.cc: Same.
1500 * testsuite/23_containers/deque/invalidation/1.cc: Same.
1501 * testsuite/23_containers/deque/cons/2.cc: Same.
1502 * testsuite/23_containers/deque/cons/1.cc: Same.
1504 * src/allocator.cc: Add char, wchar_t instantiations
1505 to match extern template declarations in memory.h.
1507 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1509 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1510 Fix warning regression.
1512 2004-03-03 Paolo Carlini <pcarlini@suse.de>
1514 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1515 Deal properly with empty __digits and negative frac_digits,
1518 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
1520 * docs/html/documentation.html: Regenerate.
1522 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1525 * include/bits/postypes.h (class streamoff): Remove, now
1526 streamoff is just typedef a 64 bit signed integer type.
1527 (class fpos): Tweak consistently.
1528 * testsuite/27_io/fpos/14320-1.cc: New.
1529 * testsuite/27_io/fpos/14320-2.cc: New.
1530 * testsuite/27_io/fpos/14320-3.cc: New.
1531 * testsuite/27_io/fpos/14320-4.cc: New.
1532 * testsuite/27_io/fpos/14320-5.cc: New.
1533 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1535 2004-03-02 Paolo Carlini <pcarlini@suse.de>
1537 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1538 Reorganize a bit the main parsing loop, thus early detecting
1539 an empty value component.
1540 * testsuite/22_locale/money_get/get/char/16.cc: New.
1541 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1543 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
1545 Support automake 1.8.2
1546 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1547 * po/Makefile.am (EXTRA_DIST): New.
1548 * po/Makefile.in: Regenerate.
1549 * Makefile.in: Same.
1550 * include/Makefile.in: Same.
1551 * libmath/Makefile.in: Same.
1552 * libsupc++/Makefile.in: Same.
1553 * src/Makefile.in: Same.
1554 * testsuite/Makefile.in: Same.
1556 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1557 __GXX_WEAK__ instead of SUPPORTS_WEAK.
1558 (${host_builddir}/gthr-default.h): Same.
1559 (${host_builddir}/gthr.h): Same.
1560 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1561 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1563 * aclocal.m4: Regenerate.
1564 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1565 * config.h.in: Regenerate.
1568 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1570 Support autoconf 2.59
1571 * acinclude.m4: Quote correctly.
1572 * aclocal.m4: Regenerate.
1575 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1577 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1579 * docs/html/18_support/howto.html: Add bit about writing to
1580 stderr, mostly by Zack.
1582 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1584 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1585 money_get<>::do_get(string_type&)): ... and two more.
1587 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1589 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1590 Fix thinkos in the switch from string_type& to string& as last
1593 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1595 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1596 Also when parsing exponent sign, first look for thousands_sep
1597 and decimal_point; tweak a bit.
1598 * testsuite/22_locale/num_get/get/char/15.cc: New.
1599 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
1601 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1602 num_get<>::_M_extract_int): Reorder some conditionals.
1604 2004-03-01 Paolo Carlini <pcarlini@suse.de>
1606 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1607 Consistently with numpunct, enforce the requirements in
1608 22.2.6.3, p3 for the thousands separators; tweak a bit.
1609 * testsuite/22_locale/money_get/get/char/15.cc: New.
1610 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
1612 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
1614 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
1615 testsuite_files from correct multilib blddir when running
1618 2004-02-29 Phil Edwards <phil@codesourcery.com>
1620 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
1621 the summary file to the logfile.
1622 * testsuite/Makefile.in: Regenerate.
1624 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1626 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
1628 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
1629 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
1631 2004-02-28 Paolo Carlini <pcarlini@suse.de>
1633 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1634 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
1635 no 'decimal-point' in the middle: in this case too we must fix
1636 up __found_grouping; slightly tweak.
1637 * testsuite/22_locale/num_get/get/char/14.cc: New.
1638 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
1640 2004-02-27 Eric Christopher <echristo@redhat.com>
1641 Phil Edwards <phil@codesourcery.com>
1643 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
1644 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
1645 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
1646 testsuite/22_locale/collate/hash/wchar_t/2.cc,
1647 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
1648 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
1649 testsuite/22_locale/collate/transform/wchar_t/2.cc,
1650 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
1651 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1652 Use dg-require-iconv.
1653 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
1655 2004-02-27 Phil Edwards <phil@codesourcery.com>
1656 Eric Christopher <echristo@redhat.com>
1658 * testsuite/config/default.exp: Update with comments.
1659 (${tool}_target_compile): New wrapper routine.
1660 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
1661 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
1663 (load_gcc_lib, v3track): New routines.
1664 (v3-init): Rename to libstdc++_init.
1665 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
1666 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
1668 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
1670 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
1672 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
1674 * config/os/irix/irix5.2/atomicity.h: Merge..
1675 * config/os/irix/irix6.5/atomicity.h: Merge..
1676 * config/os/irix/atomicity.h: ...into this.
1677 * config/os/irix/atomic_word.h: New.
1678 * configure.host: Set atomic_word_dir for irix.
1680 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
1681 * i386/atomicity.h: Same.
1682 * m68k/atomicity.h: Same.
1683 * sparc/atomicity.h: Same.
1685 2004-02-27 David Edelsohn <edelsohn@gnu.org>
1687 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
1688 static, and inline keywords.
1690 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1692 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1693 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1694 call reserve on the __tmp_gruping string.
1695 (num_get<>::_M_extract_float): Don't append unnecessarily a
1696 char() to the returned string.
1697 * include/bits/locale_facets.tcc: Trivial reformattings.
1699 2004-02-27 Paolo Carlini <pcarlini@suse.de>
1701 * include/bits/locale_facets.h (money_get<>::_M_extract):
1702 Change signature: now takes a plain string&.
1703 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1704 Update consistently the definition; use the moneypunct cache
1705 to parse the value; use swap to change __units.
1706 (money_get<>::do_get(long double&)): Update call of _M_extract,
1707 avoid ctype::narrow, not correct wrt the standard.
1708 (money_get<>::do_get(string_type&)): Likewise, update call
1709 of _M_extract, use ctype::widen.
1710 * src/locale-inst.cc: Tweak instantiations of _M_extract.
1712 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
1714 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1715 * testsuite/demangle/abi_examples/02.cc: Likewise.
1716 * testsuite/demangle/regression/cw-11.cc: Likewise.
1717 * testsuite/demangle/regression/cw-16.cc: Change two expected
1718 results to match libiberty demangler output.
1720 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1723 * libsupc++/Makefile.am: Use libiberty demangler.
1724 (c_sources): Add cp-demangle.c.
1725 * libsupc++/Makefile.in: Regenerate.
1726 * src/Makefile.am (sources): Remove demangle.cc.
1727 * src/Makefile.in: Regenerate.
1728 * include/Makefile.am (bits_headers): Move demangle.h.
1729 (ext_headers): ...here.
1730 * include/Makefile.in: Regenerate.
1731 * include/bits/demangle.h: Move...
1732 * include/ext/demangle.h: ...here.
1733 * src/demangle.cc: Remove.
1735 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1737 * include/bits/demangle.h: Add type template parameter to all
1738 templates with just an Allocator template parameter.
1740 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
1742 * include/bits/atomicity.h: New, forward declarations for __atomic_add
1743 and __exchange_and_add.
1744 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1745 * config/cpu/cris/atomic_word.h: Same.
1746 * config/cpu/sparc/atomic_word.h: Same.
1747 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1748 Qualifiy with __gnu_cxx.
1749 (_Callback_list::_M_add_reference): Same.
1750 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1751 (locale::facet::_M_remove_reference): Same.
1752 (locale::_Impl::_M_add_reference): Add.
1753 (locale::_Impl::_M_remove_reference): Same.
1754 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1755 (basic_string::_Rep::_M_dispose): Same.
1756 * src/ios.cc (ios_base::xalloc): Same.
1757 * src/ios_init.cc (ios_base::Init::Init): Same.
1758 (ios_base::Init::~Init): Same.
1759 * src/locale.cc (locale::id::_M_id): Same.
1760 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1761 static, and inline keywords.
1762 * config/cpu/alpha/atomicity.h: Same.
1763 * config/cpu/cris/atomicity.h: Same.
1764 * config/cpu/generic/atomicity.h: Same.
1765 * config/cpu/hppa/atomicity.h: Same.
1766 * config/cpu/i386/atomicity.h: Same.
1767 * config/cpu/ia64/atomicity.h: Same.
1768 * config/cpu/m68k/atomicity.h: Same.
1769 * config/cpu/mips/atomicity.h: Same.
1770 * config/cpu/powerpc/atomicity.h: Same.
1771 * config/cpu/s390/atomicity.h: Same.
1772 * config/cpu/sparc/atomicity.h: Same.
1774 * src/Makefile.am (host_sources): Add atomicity.cc.
1775 (atomicity.cc): New rule.
1776 * src/Makefile.in: Regenerate.
1777 * include/Makefile.am (host_headers): Remove host atomicity.h.
1778 (host_headers): Add atomic_word.h.
1779 (bits_headers): Add bits atomicity.h.
1780 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1781 * include/Makefile.in: Regenerate.
1782 * configure.host (atomic_word_dir): Add.
1783 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1784 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1785 * configure: Regenerate.
1786 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1788 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1789 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1791 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
1793 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1794 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1795 Fix markup, more <link> tags.
1797 2004-02-25 Carlo Wood <carlo@alinoe.com>
1800 namespace __gnu_cxx::demangler
1801 (session<Allocator>::qualifier_list_Allocator): Add
1802 (session<Allocator>::M_qualifier_list_alloc): Add
1803 (session<Allocator>::decode_type_with_postfix):
1804 Use M_qualifier_list_alloc instead of calling operator new/delete.
1806 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1809 * include/bits/postypes.h (class streamoff): Add operator++(),
1810 operator++(int), operator--() and operator--(int).
1811 * testsuite/27_io/fpos/14252.cc: New.
1813 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
1815 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1816 error in handling of hex constants.
1818 2004-02-24 Paolo Carlini <pcarlini@suse.de>
1820 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1821 Prefer basic_string::append to operator+= and a temporary.
1823 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1825 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1826 Only use fputs, not write.
1828 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1830 * include/ext/malloc_allocator.h: Add operators ==, !=.
1831 * include/ext/new_allocator.h: Add operators ==, !=.
1832 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1833 (__mt_alloc::_S_get_options): New.
1834 (__mt_alloc::_S_set_options): New.
1835 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1836 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1837 Move functions out of line, simplify, format.
1838 * src/allocator.cc: Simplify explicit instantiations.
1839 * include/bits/allocator.h: Tweak.
1841 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1843 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1844 Restructure formatting of value component, first dealing with
1845 the non-decimal digits; use reserve.
1847 2004-02-22 Paolo Carlini <pcarlini@suse.de>
1849 * include/bits/locale_facets.h (class money_get): Inherit
1850 from money_base too; tweak declaration of _M_extract, now
1851 parameterized on _Intl too.
1852 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1853 Update definition to use the cache; call reserve on __res to
1854 avoid multiple reallocations; fix parsing of sign component
1855 according to 22.2.6.1.2, p3.
1856 (money_get<>::do_get(long double&),
1857 money_get<>::do_get(string_type&)): Update calls of _M_extract.
1858 * src/locale-inst.cc: Add instantiations of
1859 money_get::_M_extract<false> and money_get::_M_extract<true>.
1860 * testsuite/22_locale/money_get/get/char/14.cc: New.
1861 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
1863 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1865 * libsupc++/vterminate.cc
1866 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1868 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1870 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1871 not set RLIMIT_AS on HP-UX.
1873 2004-02-21 Mark Mitchell <mark@codesourcery.com>
1875 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1876 not set RLIMIT_AS on HP-UX.
1878 2004-02-21 Paolo Carlini <pcarlini@suse.de>
1880 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1881 _S_zero, _S_end } enum, _S_atoms.
1882 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1883 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1884 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1885 (__moneypunct_cache<>::~__moneypunct_cache): Update.
1886 (__moneypunct_cache<>::_M_cache): Fill the cache.
1887 (class moneypunct): Tweak __cache_type typedef.
1888 (class money_put): Inherit from money_base too; tweak declaration
1889 of _M_insert, now parameterized on _Intl.
1890 * include/bits/locale_facets.tcc
1891 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1892 (money_put<>::_M_insert): Update definition to use the cache;
1893 call reserve on __res to avoid multiple reallocations.
1894 (money_put<>::do_put(long double),
1895 money_put<>::do_put(const string_type&): Update calls of _M_insert.
1896 * config/locale/generic/monetary_members.cc
1897 (moneypunct<char, true>::_M_initialize_moneypunct,
1898 moneypunct<char, false>::_M_initialize_moneypunct,
1899 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1900 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1901 * config/locale/gnu/monetary_members.cc: Likewise.
1902 * config/locale/gnu/monetary_members.cc
1903 (moneypunct<wchar_t, true>::~moneypunct(),
1904 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1905 * src/globals_locale.cc: Tweak fake_money_cache_c.
1906 * src/locale-inst.cc: Add instantiations for
1907 money_put::_M_insert<false> and money_put::_M_insert<true> and
1908 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1909 * src/locale_facets.cc: Define money_base::_S_atoms.
1910 * src/locale_init.cc: Update placement new of
1911 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1912 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1914 * config/locale/generic/numeric_members.cc: Clean up.
1915 * config/locale/gnu/numeric_members.cc: Likewise.
1916 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1917 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1918 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1919 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1920 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1921 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1923 2004-02-20 Mark Mitchell <mark@codesourcery.com>
1925 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1926 FIFO for writing with ios_base::in|ios_base::out.
1927 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1928 * testsuite/27_io/objects/char/7.cc: Likewise.
1929 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1932 2004-02-19 David Edelsohn <edelsohn@gnu.org>
1934 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1935 from iso-8859-1 to ISO8859-1.
1936 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1937 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1938 * 22_locale/collate/hash/wchar_t/2.cc: Same.
1939 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1940 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1941 * 22_locale/collate/transform/wchar_t/2.cc: Same.
1942 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1943 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1945 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1947 * include/bits/locale_facets.h (money_get<>::_M_extract):
1948 New, helper for do_get.
1949 (money_put<>::_M_insert): Likewise, for do_put.
1950 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1951 money_put<>::_M_insert): Define.
1952 (money_get<>::do_get(long double&), money_get<>::do_get(
1953 string_type&), money_put::do_put(long double),
1954 money_put::do_put(const string_type&)): Use the helpers.
1956 2004-02-18 Paolo Carlini <pcarlini@suse.de>
1958 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1959 Rewrite, avoiding recursion.
1960 (__gnu_internal::xwrite): Minor tweaks.
1962 2004-02-17 Stefan Olsson <stefan@xapa.se>
1964 * include/ext/mt_allocator.h: Removed the last
1965 pointer. Deallocated blocks are now added to the front of
1966 freelists as proposed by Felix Yen. This gives roughly 10%
1967 performance boost and saves some memory.
1968 * docs/html/ext/mt_allocator.html: Change due to that deallocated
1969 blocks now are added to the front of freelists. The reason to this
1970 approach is also explained.
1972 2004-02-17 Paolo Carlini <pcarlini@suse.de>
1974 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1975 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1976 grouping fidelity conditional.
1978 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1980 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1981 Qualify exception with std::.
1982 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1983 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1984 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1985 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1986 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1988 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1990 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1991 for now that the catch block is not reached.
1992 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1994 2004-02-16 Paolo Carlini <pcarlini@suse.de>
1996 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1997 Fix parsing of the remaining sign characters.
1998 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1999 the input is scanned 'til eof.
2000 * 22_locale/money_get/get/char/4.cc: Likewise.
2001 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2002 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2003 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2004 not do_pos_format: the former is the only one that matters during
2006 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2008 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2009 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2011 2004-02-15 David Asher <david.asher@cavium.com>
2014 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2015 access __olds beyond __oldlen.
2017 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2019 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2020 sure the exception is actually thrown.
2021 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2022 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2023 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2025 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2028 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2029 In case of conversion errors, throw ios_failure; simplify.
2030 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2031 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2032 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2033 previously we didn't throw in case of conversion errors, instead
2034 just returned eof().
2035 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2036 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2037 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2039 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2040 Trivial simplification of a conditional.
2042 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2044 PR libstdc++/13731 (final part: writev)
2045 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2046 New, a wrapper around writev() handling partial writes.
2047 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2049 (__basic_file<char>::xsputn): Update call.
2050 (__basic_file<char>::xsputn_2): Likewise.
2051 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2052 Don't declare, now static.
2054 2004-02-11 Stefan Olsson <stefan@xapa.se>
2056 * docs/html/ext/mt_allocator.html: New.
2058 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2060 * docs/html/20_util/allocator.html: New file, consolidate
2061 allocator information here. Revamp.
2062 * docs/html/documentation.html: Change links.
2063 * docs/html/20_util/howto.html: Same.
2064 * docs/html/ext/howto.html: Same.
2066 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2068 PR libstdc++/13731 (first part: write)
2069 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2071 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2072 Define it: a wrapper around write() handling partial write.
2073 (__basic_file<char>::xsputn): Use it.
2074 (__basic_file<char>::xsputn_2): Likewise.
2076 2004-02-11 Paolo Carlini <pcarlini@suse.de>
2077 Petur Runolfsson <peturr02@ru.is>
2080 * include/std/std_istream.h (operator>>(__istream_type& (*)
2081 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2082 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2083 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2084 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2085 operator<<(ios_base& (*) (ios_base&))): Likewise.
2086 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2088 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
2091 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2092 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2095 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2096 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2098 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
2100 * include/ext/pool_allocator.h: Include c++config.h.
2102 2004-02-09 Stefan Olsson <stefan@xapa.se>
2104 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2105 applications and now has a ifdef to remove it completely on
2106 compilers without thread support. Include stdlib.h due to a
2107 compiler warning on getenv().
2109 2004-02-09 Paul Brook <paul@codesourcery.com>
2111 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2113 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2116 * src/locale_init.cc (locale::global(const locale&)): Use
2117 locale::name() in order to decide whether calling setlocale.
2118 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2120 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2121 Avoid computing &= unnecessarily.
2123 2004-02-09 James E Wilson <wilson@specifixinc.com>
2126 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2127 __builtin_extend_pointer.
2129 2004-02-09 Paolo Carlini <pcarlini@suse.de>
2132 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2133 Don't leave dangling pointers.
2134 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2135 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2136 facet is needed in the final test.
2138 2004-02-09 Bernardo Innocenti <bernie@develer.com>
2140 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2141 * configure: Regenerate.
2143 2004-02-08 Richard Henderson <rth@redhat.com>
2146 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
2147 uncaughtExceptions during nested catch rethrow.
2148 * testsuite/18_support/14026.cc: New.
2150 2004-02-08 Paolo Carlini <pcarlini@suse.de>
2152 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2153 When working in place remember to set the state to sharable
2154 (otherwise, _M_mutate does it).
2156 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2158 * include/bits/allocator.h, include/bits/basic_ios.h,
2159 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2160 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2161 include/bits/char_traits.h, include/bits/codecvt.h,
2162 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2163 include/bits/demangle.h, include/bits/deque.tcc,
2164 include/bits/fstream.tcc, include/bits/functexcept.h,
2165 include/bits/gslice.h, include/bits/gslice_array.h,
2166 include/bits/indirect_array.h, include/bits/ios_base.h,
2167 include/bits/istream.tcc, include/bits/list.tcc,
2168 include/bits/locale_classes.h, include/bits/locale_facets.h,
2169 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2170 include/bits/mask_array.h, include/bits/ostream.tcc,
2171 include/bits/postypes.h, include/bits/slice_array.h,
2172 include/bits/sstream.tcc, include/bits/stl_algo.h,
2173 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2174 include/bits/stl_construct.h, include/bits/stl_deque.h,
2175 include/bits/stl_function.h, include/bits/stl_heap.h,
2176 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2177 include/bits/stl_list.h, include/bits/stl_map.h,
2178 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2179 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2180 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2181 include/bits/stl_relops.h, include/bits/stl_set.h,
2182 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2183 include/bits/stl_threads.h, include/bits/stl_tree.h,
2184 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2185 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2186 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2187 include/bits/type_traits.h, include/bits/valarray_after.h,
2188 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2189 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2190 trailing whitespace.
2192 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2194 * include/bits/basic_string.h: Fix comment.
2196 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2198 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2199 according to the coding standards.
2200 * include/bits/stl_pair.h: Likewise.
2201 * include/bits/stl_raw_storage_iter.h: Likewise.
2202 * include/bits/stl_stack.h: Likewise.
2203 * include/bits/stl_uninitialized.h: Likewise.
2204 * include/bits/stream_iterator.h: Likewise.
2205 * include/bits/streambuf_iterator.h: Likewise.
2206 * include/bits/type_traits.h: Likewise.
2208 2004-02-06 Paolo Carlini <pcarlini@suse.de>
2210 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2213 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
2215 * scripts/check_performance: Support PCH.
2217 * scripts/check_performance (CXX): Add -DNOTHREAD.
2218 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2219 threaded tests from insert_insert.cc. Tweak iterations,
2220 remove special cases.
2221 * testsuite/performance/20_util/allocator/insert_insert.cc:
2222 Make all tests single-threaded. Tweak iterations.
2223 * testsuite/performance/20_util/allocator/map_thread.cc:
2225 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2228 2004-02-05 Geoffrey Keating <geoffk@apple.com>
2232 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2233 'gcc-lib'. Add comment about poorly-named variables.
2234 * aclocal.m4: Regenerate.
2235 * configure: Regenerate.
2237 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2239 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2240 Thousands-sep are always optional; thousands-sep are not allowed
2241 after the decimal_point.
2242 * testsuite/22_locale/money_get/get/char/12.cc: New.
2243 * testsuite/22_locale/money_get/get/char/13.cc: New.
2244 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2245 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2247 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2248 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2249 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2250 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2251 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2252 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2253 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2254 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2256 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2258 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2260 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
2262 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2264 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2265 it to decide whether FIONREAD should take an off_t or int argument.
2267 2004-02-05 Paolo Carlini <pcarlini@suse.de>
2269 * include/bits/stl_function.h: Minor formatting changes.
2271 2004-02-04 Zack Weinberg <zack@codesourcery.com>
2273 Revert previous change to config/abi/*/baseline_symbols.txt.
2275 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2276 Zack Weinberg <zack@codesourcery.com>
2278 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2280 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2281 (__basic_file<char>::_M_open_mode): Delete.
2282 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2284 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2285 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2286 Correct flags to filebuf::open calls.
2288 * config/abi/alpha-freebsd5/baseline_symbols.txt
2289 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2290 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2291 * config/abi/i386-freebsd4/baseline_symbols.txt
2292 * config/abi/i386-freebsd5/baseline_symbols.txt
2293 * config/abi/i486-linux-gnu/baseline_symbols.txt
2294 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2295 * config/abi/mips-linux-gnu/baseline_symbols.txt
2296 * config/abi/sparc-freebsd5/baseline_symbols.txt
2297 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2298 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2299 Remove entry for __basic_file<char>::_M_open_mode.
2301 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
2303 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2305 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
2307 * testsuite/performance/20_util/producer_consumer.cc: New.
2308 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2310 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2312 * testsuite/performance/20_util/allocator.cc: Move to..
2313 * testsuite/performance/20_util/allocator/insert.cc: ...here.
2314 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2315 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2316 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2317 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2319 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2321 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2322 * docs/html/faq/index.txt: Regenerate.
2324 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2326 * include/ext/debug_allocator.h: _M_extra now stands for the
2327 number of extra objects instead of the number of extra bytes.
2328 (debug_allocator::allocate): Adjust.
2329 (debug_allocator::deallocate): Adjust.
2331 * include/ext/pool_allocator.h: Fix typo.
2333 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
2334 Benjamin Kosnik <bkoz@redhat.com>
2336 * testsuite/performance/20_util/allocator.cc: Add map,
2338 * testsuite/performance/20_util/allocator_thread.cc: Same.
2340 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2342 * include/bits/basic_string.h (insert(iterator)): Remove,
2343 non-standard and already scheduled for removal.
2345 2004-02-03 Paolo Carlini <pcarlini@suse.de>
2347 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2348 and indentation tweaks.
2349 * include/bits/stl_iterator_base_types.h: Likewise.
2350 * include/bits/stl_list.h: Likewise.
2351 * include/bits/stl_map.h: Likewise.
2352 * include/bits/stl_tempbuf.h: Likewise.
2354 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2356 * include/bits/gslice.h, include/bits/gslice_array.h,
2357 include/bits/indirect_array.h, include/bits/mask_array.h,
2358 include/bits/slice_array.h, include/bits/stl_numeric.h,
2359 include/std/std_valarray.h: Update copyright years.
2361 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
2363 * include/bits/gslice.h (gslice): Document.
2364 * include/bits/gslice_array.h (gslice_array): Document.
2365 * include/bits/indirect_array (indirect_array): Document.
2366 * include/bits/mask_array (mask_array): Document.
2367 * include/bits/slice_array.h (slice,slice_array): Document.
2368 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2369 adjacent_difference): Document
2370 * include/std/std_valarray.h (valarray): Document.
2372 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2374 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2376 * docs/html/18_support/howto.html: Here.
2377 * docs/html/documentation.html: Add reference here.
2379 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2381 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2382 of no longer used GLIBC thread locale functions.
2384 2004-02-02 Eric Christopher <echristo@redhat.com>
2385 Zack Weinberg <zack@codesourcery.com>
2387 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2389 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2390 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2391 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2392 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2393 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2394 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2395 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2396 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2399 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2401 * include/bits/stl_function.h: Additional minor tweaks.
2402 * include/bits/stl_multiset.h: Likewise.
2404 * include/bits/stl_queue.h: Minor tweaks.
2406 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2408 PR libstdc++/13976 (continued)
2409 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2410 Make the second parameter unnamed, to void unused parameter
2412 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2414 2004-02-02 Paolo Carlini <pcarlini@suse.de>
2417 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2418 Make the second parameter unnamed, to void unused parameter
2420 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2421 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2423 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2425 * include/bits/stl_algo.h: Additional minor tweaks.
2426 * include/bits/stl_map.h: Likewise.
2427 * include/bits/stl_multimap.h: Likewise.
2428 * include/bits/stl_multiset.h: Likewise.
2429 * include/bits/stl_set.h: Likewise.
2430 * include/bits/stl_tree.h: Likewise.
2432 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2434 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2437 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2439 * include/bits/stl_function.h: Additional minor tweaks.
2441 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2443 * include/bits/deque.tcc: Wrap overlong lines, constify
2444 a few variables, reformat according to the coding standards.
2445 * include/bits/list.tcc: Likewise.
2446 * include/bits/stl_deque.h: Likewise.
2447 * include/bits/stl_function.h: Likewise.
2448 * include/bits/stl_iterator.h: Likewise.
2449 * include/bits/stl_iterator_base_funcs.h: Likewise.
2450 * include/bits/stl_iterator_base_types.h: Likewise.
2451 * include/bits/stl_list.h: Likewise.
2452 * include/bits/stl_map.h: Likewise.
2453 * include/bits/stl_multimap.h: Likewise.
2454 * include/bits/stl_multiset.h: Likewise.
2455 * include/bits/stl_relops.h: Likewise.
2456 * include/bits/stl_set.h: Likewise.
2458 2004-02-01 Paolo Carlini <pcarlini@suse.de>
2460 * include/bits/stl_bvector.h: Wrap overlong lines, constify
2461 a few variables, reformat according to the coding standards.
2462 * include/bits/stl_tree.h: Likewise.
2464 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2466 * include/bits/stl_algo.h: Minor additional reformat, add
2468 * include/bits/stl_algobase.h: Add copyright year.
2470 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2472 * include/bits/stl_algo.h: Wrap overlong lines, constify
2473 a few variables, reformat according to the coding standards.
2474 * include/bits/stl_algobase.h: Likewise.
2475 * include/bits/stl_heap.h: Likewise.
2477 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2479 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2481 * include/bits/basic_string.h: Fix two comments.
2483 2004-01-31 Per Bothner <per@bothner.com>
2485 * include/ext/mt_allocator.h
2486 (__mt_alloc::_S_thread_freelist_mutex): Guard with
2487 __GTHREAD_MUTEX_INIT.
2489 2004-01-31 Paolo Carlini <pcarlini@suse.de>
2491 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2493 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2495 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2496 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2497 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2499 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
2501 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2502 Don't use clear, but instead assign. Use insert.
2504 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
2506 * src/demangle.cc: Add instantiations.
2507 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2508 * src/Makefile.in: Regenerate.
2510 2004-01-30 David Edelsohn <edelsohn@gnu.org>
2512 * src/allocator.cc: Protect _S_get_thread_id() and
2513 _S_thread_key_destr() with #ifdef __GTHREADS.
2515 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2517 Reshuffle performance testsuite.
2518 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2519 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2520 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2521 fstream_seek_write.cc, ifstream_extract_float.cc,
2522 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2523 list_create_fill_sort.cc, map_create_fill.cc,
2524 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2525 ofstream_insert_float.cc, ofstream_insert_int.cc,
2526 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2527 wchar_t_out.cc: Split into...
2528 * testsuite/performance/20_util/allocator.cc: New.
2529 * testsuite/performance/20_util/allocator_map_thread.cc: New.
2530 * testsuite/performance/20_util/allocator_thread.cc: New.
2531 * testsuite/performance/21_strings/string_append: New.
2532 * testsuite/performance/22_locale/is_wchar_t.cc: New.
2533 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2534 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2535 * testsuite/performance/22_locale/wchar_t_in.cc: New.
2536 * testsuite/performance/22_locale/wchar_t_length.cc: New.
2537 * testsuite/performance/22_locale/wchar_t_out.cc: New.
2538 * testsuite/performance/23_containers/container_benchmark.cc: New.
2539 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2540 * testsuite/performance/23_containers/map_create_fill.cc: New.
2541 * testsuite/performance/26_numerics/complex_norm.cc: New.
2542 * testsuite/performance/27_io/cout_insert_int.cc: New.
2543 * testsuite/performance/27_io/filebuf_copy.cc: New.
2544 * testsuite/performance/27_io/filebuf_sputc.cc: New.
2545 * testsuite/performance/27_io/fstream_seek_write.cc: New.
2546 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2547 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2548 * testsuite/performance/27_io/ifstream_getline.cc: New.
2549 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2550 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2552 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2554 * include/bits/basic_string.tcc (_Rep::_S_create):
2555 Never allocate a string bigger than max_size(); always keep
2556 __capacity and __size in sync to avoid memory leaks at
2559 2004-01-30 Paolo Carlini <pcarlini@suse.de>
2561 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2562 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2563 the double loop, streamline.
2565 * include/bits/basic_string.tcc: Very minor tweaks.
2567 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
2569 * scripts/check_performance: Only compile with $THREAD_FLAG
2570 when test is marked to require it. Allow multiple
2571 compilations/executions of marked tests.
2572 * testsuite/testsuite_performance.h (report_performance):
2573 Report dynamic thread support status.
2574 (report_header): Likewise.
2575 * testsuite/performance/allocator.cc: Stabilize iteration
2576 count. Support more allocators. Mark each allocator test to
2577 run and report independently.
2578 * testsuite/performance/allocator_map_thread.cc: Likewise.
2579 * testsuite/performance/allocator_thread.cc: Likewise.
2581 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
2583 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
2584 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
2585 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
2586 std::get_temporary_buffer() instead of duplicating its code.
2587 Update to C++STYLE conventions.
2588 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
2589 new() instead of std::malloc().
2590 (return_temporary_buffer): Use ::operator delete() instead of
2593 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
2595 * include/bits/allocator.h: Temporary switch to new_allocator as
2596 the default to unjam bootstraps.
2598 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2600 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
2601 * include/Makefile.in: Regenerate.
2602 * include/bits/allocator_traits.h: Remove.
2603 * include/bits/allocator.h: Remove allocator_traits.h include, and
2605 (allocator): Empty base class, inherit from the underlying allocator.
2606 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
2607 * src/allocator.cc: ...here. New. For the underlying allocators.
2608 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
2609 * config/linker-map.gnu: Remove __pool_alloc bits.
2610 * src/Makefile.am (sources): Add allocator.cc.
2611 * src/Makefile.in: Regenerate.
2612 * testsuite/20_util/allocator/1.cc: Split second test into...
2613 * testsuite/20_util/allocator/8230.cc: ...this.
2614 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
2615 typedef to use std::allocatore. Format.
2616 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
2618 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
2619 __throw_bad_alloc calls. Don't include <memory>.
2620 * include/ext/malloc_allocator.h: Remove <memory> include.
2621 * include/ext/new_allocator.h (new_allocator): Same.
2622 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
2623 declaration. Switch __alloc to _Alloc.
2624 * include/ext/hashtable.h: Remove __alloc.
2625 * include/backward/alloc.h: Only inject allocator, not
2626 implementation details.
2628 * include/ext/mt_allocator.h: Replace free with delete.
2630 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2632 * src/globals_io.cc: Change to __gnu_internal namespace.
2633 * src/globals_locale.cc: Same.
2634 * src/locale_init.cc: Same.
2635 * src/ios_init.cc: Same.
2637 2004-01-28 Stefan Olsson <stefan@snon.net>
2639 * include/ext/mt_allocator.h: Replaced all malloc() calls with
2640 operator new(). Added support for the env variable
2641 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
2642 one in allocate() as well). Fix typos.
2644 2004-01-28 Paolo Carlini <pcarlini@suse.de>
2646 * include/bits/basic_string.h (_S_create(size_t,
2647 const _Alloc&): Change signature to take two size_type
2649 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2650 _InIterator, const _Alloc&, input_iterator_tag)): Update
2652 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2653 forward_iterator_tag)): Likewise.
2654 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
2655 (_M_mutate(size_type, size_type, size_type)): Don't
2656 implement the exponential growth policy, demand it to
2657 _S_create, update call and simplify.
2658 (_M_clone(const _Alloc&, size_type)): Likewise.
2659 (_S_create(size_type, size_type, const _Alloc&)): Implement
2660 the growth policy, simplify otherwise.
2662 * include/bits/basic_string.h (_Rep::operator[]): Tweak
2663 signature to take a size_type, consistently with the other
2666 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
2668 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
2669 delete declarations, add include and test variable.
2671 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
2673 * include/bits/codecvt.h, include/bits/locale_facets.h,
2674 include/bits/postypes.h, include/bits/stl_bvector.h,
2675 include/bits/stl_multiset.h, include/bits/stl_set.h,
2676 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
2677 include/std/std_complex.h: Document.
2679 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
2682 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
2683 iword/pword selector.
2684 (ios_base::iword, ios_base::pword): Use it.
2685 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
2686 iword or pword member on alloc failure.
2687 * testsuite/27_io/ios_base/storage/11584.cc: New test.
2689 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2690 PJ Darcy <darcypj@us.ibm.com>
2692 * configure.host: Add support for *-tpf.
2693 * crossconfig.m4: Likewise.
2694 * configure: Regenerate.
2695 * config/os/tpf: New directory.
2696 * config/os/tpf/os_defines.h: New file.
2697 * config/os/tpf/ctype_base.h: Likewise.
2698 * config/os/tpf/ctype_inline.h: Likewise.
2699 * config/os/tpf/ctype_noninline.h: Likewise.
2701 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2704 * include/bits/sstream.tcc: Guard use of extern template.
2706 2004-01-27 Paolo Carlini <pcarlini@suse.de>
2708 * include/bits/basic_string.tcc
2709 (basic_string(const basic_string&, size_type, size_type),
2710 basic_string(const basic_string&, size_type, size_type,
2711 const _Alloc&)): Avoid unnecessarily constructing iterators.
2713 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2715 * config/locale/generic/c_locale.cc: Fix throw messages
2716 to use the __N marker.
2717 * config/locale/gnu/c_locale.cc: Likewise.
2718 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2720 * docs/html/17_intro/C++STYLE: Likewise.
2721 * include/bits/basic_ios.tcc: Likewise.
2722 * include/bits/fstream.tcc: Likewise.
2723 * include/bits/vector.tcc: Likewise.
2724 * include/ext/ropeimpl.h: Likewise.
2725 * include/std/std_bitset.h: Likewise.
2726 * src/ios.cc: Likewise.
2727 * src/locale.cc: Likewise.
2728 * src/localename.cc: Likewise.
2730 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2732 * include/bits/basic_string.h (_M_replace_aux): Use the
2733 __N marker in throw message.
2734 * include/bits/basic_string.tcc (assign(const _CharT*,
2735 size_type), insert(size_type, const _CharT*, size_type),
2736 replace(size_type, size_type, const _CharT*, size_type),
2737 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2740 * include/bits/basic_string.h, include/bits/basic_string.tcc:
2741 Fold overlong lines, minor formatting changes.
2743 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2745 * include/bits/basic_string.h (replace(iterator, iterator,
2746 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2747 (replace(iterator, iterator, const _CharT*)): Ditto.
2748 (replace(iterator, iterator, const _CharT*, size_type)):
2749 Add missing _GLIBCXX_DEBUG_PEDASSERT.
2751 2004-01-26 Paolo Carlini <pcarlini@suse.de>
2753 * include/bits/basic_string.tcc (replace(size_type,
2754 size_type, const _CharT*, size_type)): Implement optimized
2755 in-place algorithm for non-overlapping ranges.
2756 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2757 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2759 * include/bits/basic_string.tcc (insert(size_type,
2760 const _CharT*, size_type)): Tweak slightly.
2762 2004-01-26 Andreas Schwab <schwab@suse.de>
2764 * config/locale/gnu/monetary_members.cc: Restore locale before
2765 rethrowing exception.
2767 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2769 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2771 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2774 * include/bits/basic_string.tcc: Very minor tweaks.
2776 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2778 * testsuite/performance/string_append.cc: Increase number
2781 2004-01-25 Paolo Carlini <pcarlini@suse.de>
2783 * include/bits/basic_string.h (erase(size_type, size_type),
2784 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2785 instead, thus avoiding redundant check for length_error.
2787 * include/bits/basic_string.h: Tweak some comments.
2789 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2791 * include/bits/basic_string.tcc (operator+(const _CharT*,
2792 const basic_string&)): No need to go through the append
2793 taking two iterators.
2795 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2797 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2798 Revert last change to use std::min: machine language is worse.
2799 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2800 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2801 (find_last_not_of(_CharT, size_type)): Ditto.
2803 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2804 size_type)): Discard the value returned by _M_check.
2805 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2806 (append(const basic_string&, size_type, size_type)): Ditto.
2807 (copy(_CharT*, size_type, size_type)): Ditto.
2808 (compare(size_type, size_type, const basic_string&)): Ditto.
2809 (compare(size_type, size_type, const basic_string&,
2810 size_type, size_type)): Ditto.
2811 (compare(size_type, size_type, const _CharT*)): Ditto.
2812 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2814 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2816 * include/bits/basic_string.h (insert(size_type,
2817 const basic_string&, size_type, size_type)): Define inline here.
2818 * include/bits/basic_string.tcc (insert(size_type,
2819 const basic_string&, size_type, size_type)): Move inline.
2821 2004-01-24 Paolo Carlini <pcarlini@suse.de>
2823 * include/bits/basic_string.h (assign(const basic_string&,
2824 size_type, size_type)): Define inline here.
2825 (replace(size_type, size_type, const basic_string&,
2826 size_type, size_type)): Ditto.
2827 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2828 _InputIterator, __false_type)): Only declare.
2829 (_M_replace(iterator, iterator, _InputIterator,
2830 _InputIterator)): Remove.
2831 * include/bits/basic_string.tcc (assign(const basic_string&,
2832 size_type, size_type)): Move inline.
2833 (replace(size_type, size_type, const basic_string&,
2834 size_type, size_type)): Ditto.
2835 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2836 _InputIterator, __false_type)): Define, now does also what
2837 _M_replace did before.
2838 * src/string-inst.cc (_M_replace): Don't instantiate.
2840 * include/bits/basic_string.tcc (find(const _CharT*,
2841 size_type, size_type)): Tidy.
2842 (rfind(_CharT, size_type)): Ditto.
2843 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2844 (find_first_not_of(_CharT, size_type)): Ditto.
2845 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2846 (find_last_not_of(_CharT, size_type)): Ditto.
2848 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2851 * include/debug/bitset (operator|=): Fix typo.
2852 * testsuite/23_containers/bitset/operations/13838.cc: New.
2854 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2856 * include/bits/basic_string.tcc (insert(size_type,
2857 const _CharT*, size_type __n)): Fix length_error check.
2858 (replace(size_type, size_type, const _CharT*, size_type):
2859 Ditto; call _M_replace_safe.
2860 (_M_replace_aux(size_type, size_type, size_type, _CharT):
2861 Fix length_error check.
2862 (_M_replace(iterator, iterator, _InputIterator,
2863 _InputIterator)): Ditto, tweak.
2864 (_M_replace_safe(size_type, size_type, const _CharT*,
2865 size_type)): Remove length_error check.
2867 * include/bits/basic_string.tcc (append(const basic_string&),
2868 append(const basic_string&, size_type, size_type)): Tweak
2871 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2872 size_type)): If __n == 0 don't call traits::copy.
2874 2004-01-23 Stefan Olsson <stefan@snon.net>
2876 * include/ext/mt_allocator.h: Reduce lock contention.
2878 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2881 * include/bits/fstream.tcc (underflow): Remove unused
2883 * include/bits/streambuf_iterator.h (equal): Ditto.
2884 * include/bits/locale_facets.h (_M_convert_from_char):
2887 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2890 * config/linker-map.gnu (nan): Delete.
2891 * libmath/mathconf.h (NAN, nan): Delete.
2892 * linkage.m4 (nan): Don't check for it.
2893 * libmath/nan.c: Delete file.
2895 * config.h.in, configure: Regenerate.
2897 2004-01-23 Paolo Carlini <pcarlini@suse.de>
2899 * include/bits/basic_string.h (push_back(_CharT)):
2900 Call _M_replace_aux.
2901 (insert(size_type, const basic_string&)): Trivial tweak.
2902 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2903 (insert(iterator, _CharT)): Ditto.
2904 (erase(size_type, size_type)): Ditto.
2905 (erase(iterator)): Ditto.
2906 (erase(iterator, iterator)): Ditto.
2907 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2909 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
2912 * testsuite/performance/allocator_map_thread.cc: New test.
2914 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2916 * include/bits/locale_facets.tcc
2917 (money_put::do_put(..., long double)): Use the basic_string
2918 constructor for char arrays, not that for C-strings, to pass
2919 __digits to do_put(..., const string_type&): __ws isn't
2922 2004-01-22 Paolo Carlini <pcarlini@suse.de>
2924 * include/bits/basic_string.h (_M_replace_safe): Change
2925 signatures to take size_types and const _CharT*.
2926 (_M_replace_aux): Likewise, takes size_types instead of
2928 (append(size_type, _CharT)): Update call.
2929 (assign(size_type, _CharT)): Ditto.
2930 (replace(iterator, iterator, size_type, _CharT)): Ditto.
2931 (_M_replace_dispatch(iterator, iterator, _Integer,
2932 _Integer, __true_type)): Ditto.
2933 * include/bits/basic_string.tcc (assign(const _CharT*,
2935 (insert(size_type, const _CharT*, size_type)): Ditto.
2936 (replace(size_type, size_type, const _CharT*,
2938 (_M_replace(iterator, iterator, _InputIterator,
2939 _InputIterator)): Ditto.
2940 (append(const basic_string&)): Ditto.
2941 (append(const basic_string&, size_type, size_type): Ditto.
2942 (append(const _CharT*, size_type): Ditto.
2943 (_M_replace_safe, _M_replace_safe): Change definitions
2944 accordingly, simplify.
2945 * string-inst.cc (_M_replace_safe): Don't instantiate.
2947 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2949 * include/bits/basic_string.tcc (append(const basic_string&)):
2950 Revert previous change.
2951 (append(const basic_string&, size_type, size_type)): Revert
2952 previous change, use _M_check and _M_limit.
2954 2004-01-21 Paolo Carlini <pcarlini@suse.de>
2956 * include/bits/basic_string.h (_M_check): Change to return
2957 a checked __pos and take an additional const char* argument.
2958 (_M_fold): Rename to _M_limit, change to return a size_type,
2959 corresponding to the __off limited to the actual length.
2960 (insert(size_type, size_type, _CharT)): Update call, call
2962 (insert(iterator, _CharT)): Call replace(iterator, iterator,
2963 size_type, _CharT) instead.
2964 (erase(size_type, size_type)): Update calls.
2965 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2966 (substr(size_type, size_type)): Use _M_check.
2967 * include/bits/basic_string.tcc (basic_string(const basic_string&,
2968 size_type, size_type)): Update calls.
2969 (basic_string(const basic_string&, size_type, size_type,
2970 const _Alloc&)): Ditto.
2971 (assign(const basic_string&, size_type, size_type)): Use the
2972 new _M_check and _M_limit.
2973 (insert(size_type, const basic_string&, size_type, size_type):
2975 (insert(size_type, const _CharT*, size_type)): Ditto.
2976 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2977 (replace(size_type, size_type, const basic_string&,
2978 size_type, size_type)): Ditto.
2979 (append(const basic_string&)): Ditto.
2980 (append(const basic_string&, size_type, size_type)): Ditto.
2981 (copy(_CharT*, size_type, size_type)): Ditto.
2982 (compare(size_type, size_type, const basic_string&)): Ditto.
2983 (compare(size_type, size_type, const basic_string&,size_type,
2985 (compare(size_type, size_type, const _CharT*)): Ditto.
2986 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2988 2004-01-19 Stefan Olsson <stefan@snon.net>
2990 * include/ext/mt_allocator.h: If a thread, when it dies, still has
2991 memory on it's freelist this memory is not returned to global
2992 list. Simplification of deallocate so that memory is always
2993 returned to the calling thread id's freelist instead of to
2994 global. Fix typos. Add volatile where appropriate.
2996 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
2998 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2999 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3000 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3002 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3004 * src/debug.cc: Make sure all the names are prefixed with
3005 double (or single) underscore.
3007 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3009 * src/debug.cc: Trivial formatting change.
3011 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3013 * include/bits/basic_string.tcc (_S_construct(size_type,
3014 _CharT, const _Alloc&)): Remove redundant try/catch.
3015 (_M_mutate(size_type, size_type, size_type)): Ditto.
3016 (_M_clone(const _Alloc&, size_type)): Ditto.
3018 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3020 * include/bits/basic_string.h (c_str()): Simplify, due to
3021 21.3.4 the internal representation is always kept null-terminated.
3022 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3023 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3024 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3027 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3029 * include/bits/basic_string.h (append(size_type, _CharT)):
3030 Moved inline, just call _M_replace_aux, no source iterators at
3031 risk of being clobbered.
3032 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3033 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3034 input_iterator_tag)): Remove fifth unused argument.
3035 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3036 _InputIterator, __false_type)): Update call.
3037 * include/bits/basic_string.tcc (replace(size_type, size_type,
3038 const _CharT*, size_type)): Update call.
3039 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3040 throw string literal.
3041 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3042 _ForwardIterator)): Likewise.
3043 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3044 input_iterator_tag)): Remove fifth unused argument.
3045 (append(size_type __n, _CharT __c)): Move inline.
3046 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3047 const C*, const C*, input_iterator_tag)): Remove fifth unused
3050 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3052 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
3053 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
3055 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3057 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3060 2004-01-15 Stefan Olsson <stefan@snon.net>
3062 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3063 possible by changing the behaviour of thread_freelist to do
3064 push_front when threads die instead of push_back.
3066 2004-01-14 Paolo Carlini <pcarlini@suse.de>
3068 * include/bits/locale_facets.h (struct __numpunct_cache):
3069 Add member _M_grouping_size, caching the length of _M_grouping.
3070 (__numpunct_cache<>::_M_cache): Assign the latter.
3071 (__verify_grouping): Move declaration...
3072 * include/bits/locale_facets.tcc (__verify_grouping):
3073 ... here, change signature to take a const char* and a size_t
3074 for the grouping; not a template anymore.
3075 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
3076 Likewise change signature and tweak consistently.
3077 (num_get::_M_extract_float, num_get::_M_extract_int,
3078 num_put::_M_insert_int, num_put::_M_insert_float,
3079 money_get::do_get(string_type&), money_get::do_put(string_type)):
3081 * config/locale/generic/numeric_members.cc
3082 (numpunct<>::_M_initialize_numpunct): Assign the new member.
3083 * config/locale/gnu/numeric_members.cc
3084 (numpunct<>::_M_initialize_numpunct): Likewise.
3085 * src/locale-inst.cc (__add_grouping): Tweak signature.
3086 (__verify_grouping): Don't instantiate, not a template anymore.
3088 * include/bits/locale_facets.h: Rename _M_truename_len ->
3089 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3090 * include/bits/locale_facets.tcc: Likewise.
3091 * config/locale/generic/numeric_members.cc: Likewise.
3092 * config/locale/gnu/numeric_members.cc: Likewise.
3094 2004-01-14 Stefan Olsson <stefan@snon.net>
3096 * include/ext/mt_allocator.h: Fixups.
3097 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3098 * testsuite/performance/allocator_thread.cc: Same.
3100 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3102 * testsuite/performance/ifstream_extract_float.cc: Add higher
3104 * testsuite/performance/ofstream_insert_float.cc: Same.
3106 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3108 * src/locale-misc-inst.cc (__convert_from_v(long),
3109 __convert_from_v(unsigned long), __convert_from_v(long long),
3110 __convert_from_v(unsigned long long)): Remove, unused.
3112 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3114 * testsuite/performance/ifstream_extract_float.cc: New.
3115 * testsuite/performance/ofstream_insert_float.cc: Float generation
3118 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3119 * 20_util/auto_ptr/1.cc: ...this.
3120 * 20_util/auto_ptr/2.cc: Same.
3121 * 20_util/auto_ptr/3.cc: Same.
3122 * 20_util/auto_ptr/3946.cc: Same.
3123 * 20_util/auto_ptr/4.cc: Same.
3124 * 20_util/auto_ptr/5.cc: Same.
3125 * 20_util/auto_ptr/6.cc: Same.
3126 * 20_util/auto_ptr/7.cc: Same.
3127 * 20_util/auto_ptr/assign_neg.cc
3128 * 20_util/pairs.cc: Break into...
3129 * 20_util/pair/1.cc: ...this.
3130 * 20_util/pair/2.cc: Same.
3131 * 20_util/pair/3.cc: Same.
3132 * 20_util/pair/4.cc: Same.
3134 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3136 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3137 Set correctly just basefield, the only group that matters.
3139 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3141 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3142 (_Rope_rep_base): Inherit directly from the rope allocator;
3143 use rebinding instead of _Alloc_traits; pick up data member
3144 from _Rope_rep_alloc_base.
3145 (_Rope_alloc_base): Eliminate.
3146 (_Rope_base): Inherit directly from the rope allocator; use
3147 rebinding instead of _Alloc_traits; pick up data member from
3149 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3150 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3152 2004-01-13 Paolo Carlini <pcarlini@suse.de>
3155 * include/bits/basic_string.tcc (compare(size_type, size_type,
3156 const _CharT*, size_type)): Implement correctly the resolution
3157 of DR 5: basically, s is a char array, -not- a C string.
3158 * include/bits/basic_string.h: Tweak some comments.
3159 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3160 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3162 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3164 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3167 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3169 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3171 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3174 2004-01-12 Paolo Carlini <pcarlini@suse.de>
3176 * include/bits/locale_facets.h (struct __numpunct_cache):
3177 Add members _M_truename_len and _M_falsename_len, caching
3178 the lengths of _M_truename and _M_falsename.
3179 (__numpunct_cache<>::_M_cache): Assign the latter.
3180 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3181 num_put::do_put(bool)): Use the new members, thus avoiding
3182 computing string lengths again and again.
3183 * config/locale/generic/numeric_members.cc
3184 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3185 * config/locale/gnu/numeric_members.cc
3186 (numpunct<>::_M_initialize_numpunct): Likewise.
3188 2004-01-12 Mark Mitchell <mark@codesourcery.com>
3190 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3191 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3193 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3194 and remove Cygwin XFAIL.
3195 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3196 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3197 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3198 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3200 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3201 * testsuite/27_io/objects/char/7.cc: Likewise.
3202 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3203 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3204 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3206 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3208 * include/std/std_complex.h (std::complex<>::real): Return a
3209 reference. Add non-const overload.
3210 (std::complex<>::real): Likewise.
3211 (std::real): Likewise.
3212 (std::imag): Likewise.
3213 (std::operator+): Tidy.
3214 (std::operator-): Likewise.
3215 (std::operator*): Likewise.
3216 (std::operator/): Likewise.
3217 (std::operator>>): Likewise.
3219 2004-01-11 Paolo Carlini <pcarlini@suse.de>
3222 * include/bits/fstream.tcc (imbue): Exploit the external
3223 buffer to imbue 'on the fly' a new locale and convert its
3224 remainder with the new codecvt facet.
3225 (underflow): Tweak slightly to deal with this special case.
3226 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3227 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3228 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3229 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3230 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
3232 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3234 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3237 2004-01-10 Paolo Carlini <pcarlini@suse.de>
3240 * include/bits/locale_classes.h (class locale): Fix category
3242 * testsuite/22_locale/locale/13630.cc: Add.
3244 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3246 * include/bits/locale_facets.h: Make a name really dependent. This
3247 will be needed when Core Issue 224 is implemented.
3249 2004-01-09 Paolo Carlini <pcarlini@suse.de>
3251 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3252 * testsuite/performance/allocator_thread.cc: Likewise.
3254 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3256 * crossconfig.m4: Add LFS, io bits to linux cross config.
3257 * acconfig.h: Remove obsolete bits, reorder.
3258 * config.h.in: Regenerate.
3262 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
3264 * include/bits/stl_list.h:
3265 * include/bits/list.tc:
3267 Performance enhancements for destructor, push_front(),
3268 push_back(), pop_front(), pop_back(), sort()
3269 Eliminated static_casts where possible.
3270 Moved code out of header files into new src/list.cc
3271 implementation file for library where possible.
3272 Remove inheritance from iterator class and create separate
3273 classes for non-constant and constant iterators.
3274 * include/bits/stl_tree.h (_Rb_tree class):
3276 Only erase contents in destructor.
3277 Eliminate unnecessary initialization in assignment operator.
3278 Optimize for the nominal case by not checking whether
3279 container is empty in clear().
3280 Re-order test in _M_insert() to improve performance.
3281 Move initialization of new node's left & right pointers to
3282 src/tree.cc to where new node's colour is initialized
3283 and to reduce the amount of inline code.
3284 Use _M_leftmost() and _M_end() to improve readability where
3286 Create separate classes for non-constant and constant
3287 iterators to clarify code, avoid extra template parameters and
3288 casting away constness.
3290 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3292 * src/Makefile.am (sources): Add list.cc, tree.cc.
3293 * src/stl_tree.cc: Move to...
3294 * src/tree.cc: ...here.
3296 * config/linker-map.gnu: Tweaks.
3297 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3298 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3300 * bits/stl_vector.h: Column wrap comments.
3302 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
3304 (re-open) PR libstdc++/12658
3305 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.