1 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
3 * Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
4 * include/Makefile.in: Likewise.
5 * libmath/Makefile.in: Likewise.
6 * libsupc++/Makefile.in: Likewise.
7 * po/Makefile.in: Likewise.
8 * src/Makefile.in: Likewise.
9 * testsuite/Makefile.in: Likewise.
12 2004-11-24 Jonathan Wakely <redi@kayari.org>
14 * docs/html/ext/howto.html: Fix incorrect link.
15 * docs/html/documentation.html: Regenerate.
17 2004-11-24 Nathan Myers <ncm@cantrip.org>
19 * include/bits/streambuf_iterator.h
20 (istreambuf_iterator<>::operator++(), operator++(int)): Don't
21 check unnecessarily the return value of _M_sbuf->sbumpc().
23 2004-11-24 Benjamin Kosnik <bkoz@redhat.com>
25 * include/Makefile.am (tr1_headers): Add utility, functional.
26 * include/Makefile.in: Regenerate.
28 2004-11-24 Chris Jefferson <chris@bubblescope.net>
30 * include/tr1/tuple(operator!=): Change operator
31 definition to match (draft) technical report.
35 (ref): Move to include/tr1/functional.
37 (tuple_size<pair>): Move to include/tr1/utility.
38 (tuple_element<,pair>): Same.
39 * include/tr1/functional: New.
40 * include/tr1/utility: New.
41 * testsuite/tr1/6_container/utility/pair.cc: New.
43 2004-11-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
45 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
46 (do_out, do_unshift, do_in): Remove redundant typedef.
48 2004-11-23 Chris Jefferson <chris@bubblescope.net>
50 * testsuite/testsuite_iterators.h: New.
51 * testsuite/25_algorithms/search_n/iterator.cc: New.
52 * testsuite/performance/25_algorithms/search_n.cc: New.
54 2004-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
56 * testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
58 2004-11-23 Benjamin Kosnik <bkoz@redhat.com>
60 * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
61 * docs/doxygen/run_doxygen: Renames for std::tr1.
62 * docs/doxygen/user.cfg.in: Add cxxabi.h.
63 * include/bits/*.tcc: Add file markup.
64 * include/bits/allocator.h: Add link to allocator.html.
65 * include/bits/atomicity.h: Add file markup.
66 * include/bits/concurrence.h: Same.
67 * include/bits/functexcept.h: Same.
68 * include/ext*: Adjust file markup, remove GCC3 bits.
69 * include/std/*: Adjust file markup, remove bits about renamed files.
70 * libsupc++/cxxabi.h: Add file markup.
71 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
73 2004-11-22 Benjamin Kosnik <bkoz@redhat.com>
75 * include/bits/locale_facets.h (isspace, isprint, isupper,
76 islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
77 toupper, tolower): Add doxygen markup.
78 (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
79 time_get_byname, time_put_byname, moneypunct_byname,
80 messages_byname): Same.
81 * include/std/std_fstream.h: Remove superfluous markup.
82 * include/std/std_sstream.h: Same.
83 * include/std/std_streambuf.h: Same.
84 * include/ext/enc_filebuf.h: Adjust markup.
85 * include/ext/stdio_filebuf.h: Same.
86 * include/ext/stdio_sync_filebuf.h: Same.
87 * include/bits/codecvt.h: Same.
88 * config/os/gnu-linux/ctype_base.h: Same.
89 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
90 * include/tr1/array: Add markup.
91 * include/tr1/tuple: Same.
93 * docs/doxygen/run_doxygen: Print arguments.
95 * docs/doxygen/user.cfg.in: Tweaks.
97 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
99 * include/bits/basic_string.h, include/bits/locale_classes.h,
100 include/bits/valarray_after.h, include/bits/valarray_before.h,
101 include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
102 include/std/std_functional.h, include/std/std_memory.h,
103 include/std/std_numeric.h: Doxygen fixes.
105 2004-11-19 Paolo Carlini <pcarlini@suse.de>
107 * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
108 use, more correctly (and consistently with other testcases) the
109 return value of the facet (the iterator arguments are by value).
110 * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
111 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
112 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
113 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
114 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
115 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
116 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
117 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
118 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
119 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
120 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
122 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
124 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
125 from host_alias variable.
126 * Makefile.in: Regenerate.
128 2004-11-19 Chris Jefferson <chris@bubblescope.net>
130 * include/bits/stl_list.h (list::back, list::back const):
131 Don't decrement temporary.
133 2004-11-19 Paolo Carlini <pcarlini@suse.de>
135 * include/bits/stl_deque.h (deque::front, deque::front const,
136 deque::back, deque::back const): Slightly tweak for stylistic
139 2004-11-18 Paolo Carlini <pcarlini@suse.de>
141 * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
142 * testsuite/ext/array_allocator/1.cc: Likewise.
143 * testsuite/ext/array_allocator/2.cc: Likewise.
144 * testsuite/ext/array_allocator/3.cc: Likewise.
145 * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
147 2004-11-18 Paolo Carlini <pcarlini@suse.de>
149 * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
150 If the failbit is set, don't set it again.
151 (money_get<>::_M_extract): Minor stylistic tweak: consistently
152 with the other functions, take care of eofbit at the end.
154 2004-11-18 Paolo Carlini <pcarlini@suse.de>
156 DR 434. bitset::to_string() hard to use [Ready]
157 2004-11-23 Benjamin Kosnik <bkoz@redhat.com>
159 * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
160 * docs/doxygen/run_doxygen: Renames for std::tr1.
161 * docs/doxygen/user.cfg.in: Add cxxabi.h.
162 * include/bits/*.tcc: Add file markup.
163 * include/bits/allocator.h: Add link to allocator.html.
164 * include/bits/atomicity.h: Add file markup.
165 * include/bits/concurrence.h: Same.
166 * include/bits/functexcept.h: Same.
167 * include/ext*: Adjust file markup, remove GCC3 bits.
168 * include/std/*: Adjust file markup, remove bits about renamed files.
169 * libsupc++/cxxabi.h: Add file markup.
170 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
172 2004-11-22 Benjamin Kosnik <bkoz@redhat.com>
174 * include/bits/locale_facets.h (isspace, isprint, isupper,
175 islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
176 toupper, tolower): Add doxygen markup.
177 (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
178 time_get_byname, time_put_byname, moneypunct_byname,
179 messages_byname): Same.
180 * include/std/std_fstream.h: Remove superfluous markup.
181 * include/std/std_sstream.h: Same.
182 * include/std/std_streambuf.h: Same.
183 * include/ext/enc_filebuf.h: Adjust markup.
184 * include/ext/stdio_filebuf.h: Same.
185 * include/ext/stdio_sync_filebuf.h: Same.
186 * include/bits/codecvt.h: Same.
187 * config/os/gnu-linux/ctype_base.h: Same.
188 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
189 * include/tr1/array: Add markup.
190 * include/tr1/tuple: Same.
192 * docs/doxygen/run_doxygen: Print arguments.
194 * docs/doxygen/user.cfg.in: Tweaks.
196 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
198 * include/bits/basic_string.h, include/bits/locale_classes.h,
199 include/bits/valarray_after.h, include/bits/valarray_before.h,
200 include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
201 include/std/std_functional.h, include/std/std_memory.h,
202 include/std/std_numeric.h: Doxygen fixes.
204 2004-11-19 Paolo Carlini <pcarlini@suse.de>
206 * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
207 use, more correctly (and consistently with other testcases) the
208 return value of the facet (the iterator arguments are by value).
209 * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
210 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
211 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
212 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
213 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
214 * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
215 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
216 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
217 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
218 * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
219 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
221 2004-11-19 Jonathan Wakely <redi@gcc.gnu.org>
223 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
224 from host_alias variable.
225 * Makefile.in: Regenerate.
227 2004-11-19 Chris Jefferson <chris@bubblescope.net>
229 * include/bits/stl_list.h (list::back, list::back const):
230 Don't decrement temporary.
232 2004-11-19 Paolo Carlini <pcarlini@suse.de>
234 * include/bits/stl_deque.h (deque::front, deque::front const,
235 deque::back, deque::back const): Slightly tweak for stylistic
238 2004-11-18 Paolo Carlini <pcarlini@suse.de>
240 * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
241 * testsuite/ext/array_allocator/1.cc: Likewise.
242 * testsuite/ext/array_allocator/2.cc: Likewise.
243 * testsuite/ext/array_allocator/3.cc: Likewise.
244 * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
246 2004-11-18 Paolo Carlini <pcarlini@suse.de>
248 * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
249 If the failbit is set, don't set it again.
250 (money_get<>::_M_extract): Minor stylistic tweak: consistently
251 with the other functions, take care of eofbit at the end.
253 2004-11-18 Paolo Carlini <pcarlini@suse.de>
255 DR 434. bitset::to_string() hard to use [Ready]
256 * include/std/std_bitset.h (to_string): Add three overloads, taking
257 fewer template arguments.
258 * docs/html/ext/howto.html: Add an entry for DR 434.
259 * testsuite/23_containers/bitset/to_string/1.cc: New.
261 2004-11-17 Paolo Carlini <pcarlini@suse.de>
263 * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
264 _CharT)): Remove temporary kludge for libstdc++/15002.
265 * include/std/std_streambuf.h (class basic_streambuf): Declare
266 getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
267 * include/bits/basic_string.h (getline(basic_istream<>&,
268 basic_string<>&, _CharT)): Declare optimized specializations for
269 char and wchar_t, using protected members of basic_streambuf.
270 * src/istream.cc: Define the latter.
272 2004-11-16 Jonathan Wakely <redi@gcc.gnu.org>
274 * docs/html/19_diagnostics/howto.html: Document change from
275 _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
277 2004-11-16 Matthias Klose <doko@debian.org>
279 * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
281 2004-11-16 Matthias Klose <doko@debian.org>
283 * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
284 instead of build_alias.
285 * docs/doxygen/run_doxygen: Likewise.
286 * docs/doxygen/user.cfg.in: Likewise.
287 * Makefile.in: Regenerate.
289 2004-11-15 Paolo Carlini <pcarlini@suse.de>
291 * include/bits/streambuf.tcc (__copy_streambufs): Provide
292 a generic version of the function, not using the protected
293 members of basic_streambuf.
294 * include/std/std_streambuf.h (__copy_streambufs): Declare
295 optimized specializations for char and wchar_t.
296 * src/streambuf.cc: New file, define the latter.
297 * src/Makefile.am: Add.
298 * src/Makefile.in: Regenerate.
300 2004-11-15 Matthias Klose <doko@debian.org>
302 * docs/doxygen/run_doxygen: Add --build_alias option,
303 substitute it in docs/doxygen/user.cfg.in.
304 * docs/doxygen/user.cfg.in: Use build_alias.
305 * Makefile.am: Pass --build_alias to run_doxygen
306 * Makefile.in: Regenerate.
308 2004-11-15 Benjamin Kosnik <bkoz@redhat.com>
310 * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
312 2004-11-15 Paolo Carlini <pcarlini@suse.de>
314 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
316 2004-11-14 Paolo Carlini <pcarlini@suse.de>
318 * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
319 Slightly tweak for clarity (also leads to measurably better code).
321 2004-11-12 Andrew Pinski <pinskia@physics.uc.edu>
324 * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
326 2004-11-09 Paolo Carlini <pcarlini@suse.de>
328 * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
329 time_get<>::do_get_monthname): Absolutely avoid dereferencing
332 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
335 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
336 Doug Gregor <dgregor@cs.indiana.edu>
339 * src/debug.cc : Just use one mutex.
341 2004-11-08 Benjamin Kosnik <bkoz@redhat.com>
343 * configure.ac (libtool_VERSION): To 6:4:0.
344 * configure: Regenerate.
346 * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
348 * docs/doxygen/user.cfg.in: Add more extension files.
350 2004-11-08 Paolo Carlini <pcarlini@suse.de>
352 * include/bits/streambuf_iterator.h (class istreambuf_iterator):
353 Consistently use _M_c to cache the current char, i.e., not only
354 when operator++(int) is involved; change _M_c to mutable.
355 (_M_get()): Always save the return value of _M_sbuf->sgetc() into
357 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
358 (long standing) typo.
359 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
360 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
361 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
363 2004-11-08 Paolo Carlini <pcarlini@suse.de>
365 * include/bits/istream.tcc (getline(char_type*, streamsize,
366 char_type), ignore(streamsize), ignore(streamsize, int_type)):
367 Restore a generic version of the functions, not using the
368 protected members of basic_streambuf.
369 * include/std/std_istream.h (getline(char_type*, streamsize,
370 char_type), ignore(streamsize), ignore(streamsize, int_type)):
371 Declare optimized specializations for char and wchar_t.
372 * src/istream.cc: New file, define the latter.
373 * src/Makefile.am: Add.
374 * src/Makefile.in: Regenerate.
376 2004-11-07 Paolo Carlini <pcarlini@suse.de>
378 * testsuite/performance/27_io/ifstream_getline-2.cc: New.
380 2004-11-05 Benjamin Kosnik <bkoz@redhat.com>
384 * docs/doxygen/filter: Remove.
385 * docs/doxygen/filter.sed: Remove.
386 * docs/doxygen/mainpage.html: Add link to functions.
387 * docs/doxygen/run_doxygen: Changes due to new source filtering.
388 * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
389 * include/bits/allocator.h: Tweaks for doxygen.
390 * include/bits/char_traits.h: Same.
391 * include/bits/codecvt.h: Same.
392 * include/bits/concurrence.h: Same.
393 * include/bits/locale_facets.h: Same.
394 * include/ext/array_allocator.h: Same.
395 * include/ext/debug_allocator.h: Same.
396 * include/ext/malloc_allocator.h: Same.
397 * include/ext/mt_allocator.h: Same.
398 * include/ext/new_allocator.h: Same.
399 * include/ext/pool_allocator.h: Same.
400 * include/ext/stdio_sync_filebuf.h: Same.
401 * include/std/std_memory.h: Same.
402 * include/tr1/array: Same.
403 * include/tr1/tuple: Same.
404 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
405 * config/os/gnu-linux/ctype_base.h: Same.
407 2004-11-04 Paolo Carlini <pcarlini@suse.de>
409 * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
410 Evaluate __beg == __end the exact strict minimum number of times.
412 2004-11-03 Jonathan Wakely <redi@gcc.gnu.org>
414 * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
415 Avoid dereferencing two times __first in the prologue.
417 2004-11-03 Paolo Carlini <pcarlini@suse.de>
419 * include/bits/stl_numeric.h: Trivial formatting fixes.
421 2004-11-03 Benjamin Kosnik <bkoz@redhat.com>
423 * include/bits/c++config: Spacing.
424 * libsupc++/del_op.cc: Include c++config.h.
425 * libsupc++/del_opnt.cc: Same.
426 * libsupc++/del_opv.cc: Same.
427 * libsupc++/del_opvnt.cc: Same.
428 * libsupc++/new_op.cc: Same.
429 * libsupc++/new_opnt.cc: Same.
430 * libsupc++/new_opv.cc: Same.
431 * libsupc++/new_opvnt.cc: Same.
433 2004-11-03 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
435 * config/os/bsd/darwin/os_defines.h
436 (_GLIBCXX_WEAK_DEFINITION): Define.
437 * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
438 * libsupc++/del_op.cc (operator delete(void *)): Use
439 _GLIBCXX_WEAK_DEFINITION.
440 * libsupc++/del_opnt.cc
441 (operator delete(void *, const std::nothrow_t&)): Same.
442 * libsupc++/del_opv.cc (operator delete[](void *)): Same.
443 * libsupc++/del_opvnt.cc
444 (operator delete[](void *, const std::nothrow_t&)): Same.
445 * libsupc++/new_op.cc (operator new(std::size_t)): Same.
446 * libsupc++/new_opnt.cc
447 (operator new(std::size_t, const std::nothrow_t&)): Same
448 * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
449 * libsupc++/new_opvnt.cc
450 (operator new[](std::size_t, const std::nothrow_t&)): Same.
452 2004-11-02 Paolo Carlini <pcarlini@suse.de>
454 * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
455 Evaluate *__beg the exact strict minimum number of times; likewise
456 for __beg != __end; slightly simplify main parsing loop.
458 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
459 Lothar Werzinger <lothar@xcerla.com>
462 * src/debug.cc: Include concurrence, use mutexes.
463 (_Safe_iterator_base::_M_attach): Here.
464 (_Safe_iterator_base::_M_detach): Here.
466 2004-11-02 Benjamin Kosnik <bkoz@redhat.com>
469 * include/bits/ios_base.h : Add enum values.
470 * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
471 * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
472 * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
473 * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
474 * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
475 * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
476 * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
477 * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
479 * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
482 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
483 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
485 2004-11-01 Momchil Velikov <velco@fadata.bg>
488 * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
490 * testsuite/thread/18185.cc: New.
492 2004-11-01 Chris Jefferson <chris@bubblescope.net>
495 * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
496 (get(const pair)): Likewise.
498 2004-11-01 Paolo Carlini <pcarlini@suse.de>
500 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
501 Evaluate *__beg the exact strict minimum number of times; likewise
502 for __beg != __end; in the main parsing loop, call ++__beg in two
503 places only. The former is also a correctness issue, because,
504 according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
505 dereferenced only one time for each increment.
507 2004-10-31 Benjamin Kosnik <bkoz@redhat.com>
510 * testsuite/23_containers/set/modifiers/16728.cc: New.
512 2004-10-30 Paolo Carlini <pcarlini@suse.de>
514 * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
516 * testsuite/ext/bitmap_allocator/check_delete.cc: New.
517 * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
519 2004-10-29 Geoffrey Keating <geoffk@apple.com>
521 * configure.host (darwin*): Set os_include_dir to a separate directory
523 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
525 * config/locale/darwin/ctype_members.cc: New.
526 * config/os/bsd/darwin/ctype_base.h: New.
527 * config/os/bsd/darwin/ctype_inline.h: New.
528 * config/os/bsd/darwin/ctype_noninline.h: New.
529 * config/os/bsd/darwin/os_defines.h: New.
531 * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
534 2004-10-29 Chris Jefferson <chris@bubblescope.net>
536 * include/bit/stl_algo.h (find_first_of(,,,,pred)):
537 Remove invalid EqualOpConcept.
538 * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
540 2004-10-29 Benjamin Kosnik <bkoz@redhat.com>
542 * testsuite/testsuite_allocator.h (check_delete): New.
543 (check_new): Simplify.
544 * testsuite/ext/array_allocator/check_delete.cc: New.
545 * testsuite/ext/array_allocator/check_new.cc: Simplify.
546 * testsuite/ext/debug_allocator/check_delete.cc: New.
547 * testsuite/ext/debug_allocator/check_new.cc: Simplify.
548 * testsuite/ext/malloc_allocator/check_delete.cc: New.
549 * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
550 * testsuite/ext/mt_allocator/check_delete.cc: New.
551 * testsuite/ext/mt_allocator/check_new.cc: Simplify.
552 * testsuite/ext/new_allocator/check_delete.cc: New.
553 * testsuite/ext/new_allocator/check_new.cc: Simplify.
554 * testsuite/ext/pool_allocator/check_delete.cc: New.
555 * testsuite/ext/pool_allocator/check_new.cc: Simplify.
557 2004-10-28 Chris Jefferson <chris@bubblescope.net>
560 * include/tr1/tuple: Fix, change formatting.
562 2004-10-28 Benjamin Kosnik <bkoz@redhat.com>
564 * include/ext/mt_allocator.h (__common_pool_policy): Add template
565 template parameter for pool class type.
566 (__per_type_pool_policy): Same.
567 (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
568 * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
569 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
570 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
571 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
572 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
573 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
574 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
575 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
576 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
577 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
578 * testsuite/ext/mt_allocator/instantiate.cc: Same.
579 * testsuite/ext/mt_allocator/tune-1.cc: Same.
580 * testsuite/ext/mt_allocator/tune-2.cc: Same.
581 * testsuite/ext/mt_allocator/tune-3.cc: Same.
582 * testsuite/ext/mt_allocator/tune-4.cc: Same.
584 2004-10-28 Paolo Carlini <pcarlini@suse.de>
586 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
587 Cache *__beg in __c when parsing exponent sign too.
588 (num_get<>::do_get(..., bool&)): Cache *__beg.
589 (money_get<>::_M_extract)): Likewise, in money_base::value.
591 2004-10-27 Paolo Carlini <pcarlini@suse.de>
593 * include/bits/basic_string.h (assign(const basic_string&)):
595 * include/bits/basic_string.tcc: ... here.
597 2004-10-27 Paolo Carlini <pcarlini@suse.de>
599 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
601 * include/bits/basic_string.tcc: ... here.
603 2004-10-26 Paolo Carlini <pcarlini@suse.de>
605 * include/bits/basic_string.h (append(const basic_string&),
606 append(size_type, _CharT)): Move out of line...
607 * include/bits/basic_string.tcc: ... here.
609 2004-10-26 Paolo Carlini <pcarlini@suse.de>
611 * include/bits/basic_string.h (erase(size_type, size_type),
612 erase(iterator), erase(iterator, iterator)): Call _M_mutate
613 instead of _M_replace_safe, equivalent when the fourth argument
616 2004-10-26 Benjamin Kosnik <bkoz@redhat.com>
618 * include/ext/array_allocator.h (array::allocate): Check for valid
619 array object, use its size member function directly.
620 * testsuite/ext/array_allocator/3.cc: New.
621 * docs/html/20_util/allocator.html: Add docs.
623 2004-10-25 Geoffrey Keating <geoffk@apple.com>
625 * configure.host (darwin*): Build libstdc++ single module
627 * libsupc++/new_op.cc (new): Make weak.
628 * libsupc++/new_opnt.cc (new): Make weak.
629 * libsupc++/new_opv.cc (new): Make weak.
630 * libsupc++/new_opvnt.cc (new): Make weak.
631 * libsupc++/delete_op.cc (delete): Make weak.
632 * libsupc++/delete_opnt.cc (delete): Make weak.
633 * libsupc++/delete_opv.cc (delete): Make weak.
634 * libsupc++/delete_opvnt.cc (delete): Make weak.
636 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
638 * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
639 (AUTOMAKE_OPTIONS): Add nostdinc.
640 * testsuite/Makefile.in: Regenerate.
641 * scripts/testsuite_flags.in (build-includes): Remove redundant
642 search for libsupc++.
643 * fragment.am: Clean.
645 2004-10-25 Benjamin Kosnik <bkoz@redhat.com>
647 * include/Makefile.am (tr1_headers): Add tuple.
648 * include/Makefile.in: Regenerate.
650 2004-10-25 Chris Jefferson <chris@bubblescope.net>
652 * include/tr1/tuple: Implementation of tuple from library TR.
653 * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
654 * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
655 * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
657 * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
658 * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
659 * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
660 * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
662 * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
663 * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
665 2004-10-25 Paolo Carlini <pcarlini@suse.de>
667 * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
668 basic_string as _M_disjunct, adjust to take only __s.
669 * include/bits/basic_string.tcc: Adjust consistently callers.
671 2004-10-25 Paolo Carlini <pcarlini@suse.de>
673 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
674 Adjust bit missing from the previous commit.
676 2004-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
679 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
681 2004-10-25 Paolo Carlini <pcarlini@suse.de>
683 * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
684 _M_move, _M_copy, _M_assign): New, use througout.
685 (operator+=(_CharT)): Define in terms of push_back.
686 (append(const basic_string&)): Define here, inline, and simplify,
687 don't use the full _M_replace_safe.
688 (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
689 (push_back): Likewise.
690 (assign(const basic_string&)): Define here, inline.
691 * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
692 Fix: when s points inside the _Rep, upon reallocation (reserve) we
693 were copying from deallocated memory.
694 (append(const basic_string&, size_type, size_type)): Simplify,
695 don't use _M_replace_safe.
696 (replace(size_type, size_type, const _CharT*, size_type)): Slightly
699 * testsuite/21_strings/basic_string/append/char/2.cc: New.
700 * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
701 * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
702 * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
704 * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
705 * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
707 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
709 * testsuite/ext/mt_allocator/deallocate_global-2.c:
710 s/value_t/value_type/. s/traits_t/traits_type/.
711 s/policy_t/policy_type/. s/allocator_t/allocator_type/.
712 s/string_t/string_type/. s/list_t/list_type/.
713 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
714 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
715 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
716 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
717 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
718 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
719 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
721 2004-10-21 Benjamin Kosnik <bkoz@redhat.com>
723 * include/tr1/array (array): Make safe for zero-sized arrays.
724 (array::end): Return one past the end.
725 (array::at): Use __throw_out_of_range, include functexcept.h.
726 (operator==): Implement.
732 * testsuite/tr1/6_containers/array/capacity/(empty.cc,
733 max_size.cc, size.cc): New.
734 * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
735 greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
737 * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc:
739 * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc:
741 * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
742 * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
743 instantiate, typedefs, zero_size_arrays): New.
745 2004-10-21 Paolo Carlini <pcarlini@suse.de>
746 Benjamin Kosnik <bkoz@redhat.com>
748 * include/bits/basic_string.h (_M_set_length_and_sharable): New.
749 * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
750 size_type), _M_mutate, _M_clone): Use it.
751 (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
753 2004-10-21 Paolo Carlini <pcarlini@suse.de>
754 Dhruv Matani <dhruvbird@gmx.net>
755 Nathan Myers <ncm@cantrip.org>
757 * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
758 _M_range_insert): Check at the outset that we are not trying
759 to exceed max_size, then deal properly with __len overflows.
760 * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
762 * testsuite/testsuite_allocator.h: Remove redundant include.
764 2004-10-20 Paolo Carlini <pcarlini@suse.de>
766 * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
768 * include/ext/malloc_allocator.h (allocate): Likewise.
769 * include/ext/mt_allocator.h (allocate): Likewise.
770 * include/ext/new_allocator.h (allocate): Likewise.
771 * include/ext/array_allocator.h: Use __throw_bad_alloc().
772 * include/ext/pool_allocator.h: Use __builtin_expect.
773 * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
774 * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
775 * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
776 * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
777 * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
778 * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
779 * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
781 2004-10-19 Paolo Carlini <pcarlini@suse.de>
783 * testsuite/performance/20_util/allocator/list_sort_search.cc:
784 Include <ext/new_allocator.h>.
785 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
787 2004-10-18 Paolo Carlini <pcarlini@suse.de>
789 * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
790 unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
791 == capacity() (== 0): is ok to just leave everything unchanged.
793 * include/bits/basic_string.h: Minor formatting fixes.
794 * include/bits/basic_string.tcc: Likewise.
796 2004-10-17 Benjamin Kosnik <bkoz@redhat.com>
798 * include/ext/mt_allocator.h (__pool::_M_get_align): New.
799 (__mt_alloc::allocate): Use it.
800 * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
801 (__pool::_M_reserve_block): Simplify block allocation.
803 2004-10-17 Dhruv Matani <dhruvbird@gmx.net>
804 Paolo Carlini <pcarlini@suse.de>
806 * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
807 makes the code 64-bit correct and also fixes (together with using at
808 the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
809 8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
810 Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
811 * src/bitmap_allocator.cc: Change to size_t.
812 * config/linker-map.gnu: Adjust.
814 2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
816 * include/tr1/array: Don't use layout_type.
818 2004-10-16 Sashan Govender <sashang@gmail.com>
820 * include/tr1/array (array::end const): Fix casting from iterator
823 2004-10-15 Paolo Carlini <pcarlini@suse.de>
825 * include/ext/bitmap_allocator.h: Qualify ::operator delete.
826 * src/bitmap_allocator.cc: Likewise.
827 * src/mt_allocator.cc: Use ::operator delete, not delete,
828 consistently with ::operator new.
830 * include/ext/bitmap_allocator.h (deallocate): Check for null
832 * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
833 * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
835 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
837 * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
839 * include/ext/pool_allocator.h (debug_allocator::deallocate):
841 * include/ext/debug_allocator.h (debug_allocator::deallocate):
842 Throw exceptions, don't abort.
843 * include/ext/array_allocator.h
844 (array_allocator_base::deallocate): Remove unused parameters.
845 * testsuite/testsuite_allocator.h (check_deallocate_null): New.
846 * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
847 * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
848 * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
849 * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
850 * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
851 * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
852 * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
854 * testsuite/testsuite_allocator.h (check_new): Add instance argument.
855 * testsuite/ext/array_allocator/check_new.cc: New.
857 2004-10-14 Paolo Carlini <pcarlini@suse.de>
859 * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
860 Rename __unused to __M_unused.
862 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
864 * testsuite/ext/headers.cc: Add includes, compile only.
865 * testsuite/ext/hash_map.cc: Move to...
866 * testsuite/ext/hash_map/1.cc: ...here.
867 * testsuite/ext/14648.cc: Move to...
868 * testsuite/ext/hash_map/14648.cc: ...here.
869 * testsuite/ext/hash_map/instantiate.cc: Add.
870 * testsuite/ext/hash_set.cc: Move to...
871 * testsuite/ext/hash_set/1.cc: ...here.
872 * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
873 * testsuite/ext/hash_set/instantiate.cc: ...here.
874 * testsuite/ext/hash_check_construct_destroy.cc: Move to...
875 * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
876 * testsuite/ext/slist_check_construct_destroy.cc: Move to...
877 * testsuite/ext/slist/check_construct_destroy.cc: ...here.
878 * testsuite/ext/slist_explicit_instantiation.cc: Move to...
879 * testsuite/ext/slist/instantiate.cc: ...here.
881 2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
883 * include/ext/mt_allocator.h: Tweaks.
884 * src/mt_allocator.cc: Same.
886 2004-10-14 Dhruv Matani <dhruvbird@gmx.net>
888 * ext/bitmap_allocator.h: Clean-up add/remove functions.
889 * src/bitmap_allocator.cc: New file. Contains the out-of-line
890 function definitions, static initialization of variables, and
891 explicit instantiations needed for the allocator.
892 * src/Makefile.am: Add.
893 * src/Makefile.in: Regenerate.
894 * config/linker.map.gnu: Add the necessary symbols.
896 2004-10-13 Paolo Carlini <pcarlini@suse.de>
898 * include/bits/basic_string.tcc (_S_create): Use consistently
899 the exponential policy, simplify.
900 * testsuite/performance/21_strings/string_append_2.cc: New.
902 * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
903 * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
904 that case sizeof(_Rep) == 24).
906 2004-10-12 Paolo Carlini <pcarlini@suse.de>
909 * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
910 wrong commit of 2004-10-07.
912 2004-10-12 Scott Snyder <snyder@fnal.gov>
915 * testsuite/23_containers/set/modifiers/17948.cc: New.
917 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
919 * include/bits/stl_deque.h: Correct for over-long lines.
921 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
924 * include/ext/mt_allocator.h (__pool::_M_destroy): New.
925 * src/mt_allocator.cc (__pool::~__pool): Change definitions to
927 * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
928 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
929 * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
930 * configure: Regenerate.
931 * config/linker-map.gnu: Tweak exports.
932 * docs/html/ext/mt_allocator.html: Update docs.
933 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
934 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.
935 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
936 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
937 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
938 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
939 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
940 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
942 2004-10-11 Benjamin Kosnik <bkoz@redhat.com>
944 PR libstdc++/16614 continued.
945 * include/ext/mt_allocator.h
946 (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
947 specific type characteristics.
948 (__pool_base): Add constructor that takes a _Tune argument.
950 * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
951 * testsuite/ext/mt_allocator/tune-4.cc: Same.
952 * testsuite/ext/mt_allocator/tune-3.cc: Same.
954 2004-10-11 Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
955 Paolo Carlini <pcarlini@suse.de>
957 * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
958 Deal properly with exceptions thrown by ::operator new(size_t).
959 * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
961 * include/ext/pool_allocator.h: Include <cstdlib>.
963 2004-10-10 Benjamin Kosnik <bkoz@redhat.com>
965 * include/bits/functexcept.h: Add guards.
967 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
968 * configure: Regenerate.
970 2004-10-10 Paolo Carlini <pcarlini@suse.de>
972 * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
973 Give __ret a default value, thus avoiding spurious warnings.
975 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
976 words or linux.words, otherwise exit.
977 * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
979 2004-10-09 Paolo Carlini <pcarlini@suse.de>
981 * include/std/std_memory.h (__get_temporary_buffer): Don't use
982 INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
984 * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
987 2004-10-08 Benjamin Kosnik <bkoz@redhat.com>
989 * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
990 * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
991 * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
992 * configure: Regenerate.
993 * src/mt_allocator.cc (__pool::~__pool): Make conditional on
994 _GLIBCXX_USE___CXA_ATEXIT macro.
995 * docs/html/ext/mt_allocator.html: Add note about deallocation.
996 * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
997 with _GLIBCXX_USE___CXA_ATEXIT.
998 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
999 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
1000 * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
1001 * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
1002 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
1003 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
1004 * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
1006 2004-10-07 Phil Edwards <phil@codesourcery.com>
1008 * testsuite/lib/libstdc++.exp: Update list of undefined functions.
1010 2004-10-07 Paolo Carlini <pcarlini@suse.de>
1012 * include/bits/list.tcc (operator=): Avoid iterator postincrement.
1013 * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
1015 2004-10-07 Benjamin Kosnik <bkoz@redhat.com>
1018 * include/tr1/array: New.
1019 * include/Makefile.am (tr1_headers): New.
1021 (install-headers): New.
1022 (allstamped): Add stamp-tr1.
1024 * include/ext/array_allocator.h: New.
1025 * include/Makefile.am: Add.
1026 * include/Makefile.in: Regenerate.
1027 * testsuite/ext/array_allocator/1.cc: New.
1028 * testsuite/ext/array_allocator/2.cc: New.
1030 2004-10-07 Richard Earnshaw <rearnsha@arm.com>
1032 * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
1034 2004-10-07 Roger Sayle <roger@eyesopen.com>
1037 * configure.ac: Newlib does not provide strtold.
1038 * configure: Regenerate.
1040 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
1042 * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
1043 (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
1044 * configure: Regenerated.
1045 * testsuite/Makefile.am (CLEANFILES): Add TEST for
1046 check-performance executables.
1047 (stamp_thread): New.
1048 (all-local): Use it.
1049 * testsuite/Makefile.in: Regenerate.
1050 * scripts/create_testsuite_files: Filter thread tests.
1052 * testsuite/thread/pthread1.cc: Remove macro conditionals: this
1053 file will only be run by thread enabled configurations.
1054 * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
1055 * testsuite/thread/pthread6.cc: Same.
1056 * testsuite/thread/pthread5.cc: Same.
1057 * testsuite/thread/pthread4.cc: Same.
1058 * testsuite/thread/pthread3.cc: Same.
1059 * testsuite/thread/pthread2.cc: Same.
1061 * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
1062 * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
1063 * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
1064 * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
1065 * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
1066 * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
1067 * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
1068 * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
1069 * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
1071 2004-10-06 Benjamin Kosnik <bkoz@redhat.com>
1072 Paolo Carlini <pcarlini@suse.de>
1075 * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
1076 to old locking order.
1078 2004-10-06 Paolo Carlini <pcarlini@suse.de>
1080 * include/std/std_sstream.h (_M_sync): When the caller is
1081 setbuf, don't trust _M_string.capacity() to be the size of
1082 the buffer area, use _M_string.size() in this case.
1083 * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
1084 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
1086 * include/bits/sstream.tcc (overflow): Avoid calling string::assign
1087 unnecessarily when the current _M_string is empty.
1089 2004-10-06 Paolo Carlini <pcarlini@suse.de>
1091 * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
1092 Avoid iterator postincrement.
1093 (__rotate): Likewise.
1095 * include/bits/stl_algo.h: Minor formatting tweaks.
1097 2004-10-06 Christopher Jefferson <caj@cs.york.ac.uk>
1099 * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
1100 Avoid iterator postincrement; fix swapping middle element with
1101 itself on odd-length inputs.
1103 2004-10-05 Benjamin Kosnik <bkoz@redhat.com>
1106 * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
1107 options as compile-time constant enums.
1108 (__pool_base::_Tune::is_default): New.
1109 (__pool_base::_Block_address): New.
1110 (__pool_base): Rearrange data members.
1111 (__pool::_M_reserve_memory): To _M_reserve_block.
1112 (__pool::_M_reclaim_memory): To _M_reclaim_block.
1113 (__pool::_Bin_record): Add _Block_address data member.
1114 (__pool<false>): Add _M_thread_freelist_initial.
1115 (__pool::~__pool): Declare.
1116 (__common_pool_policy): Move static data member to...
1117 (__common_pool_policy::_S_get_pool): ...here, make static local.
1118 (__per_type_pool_policy): Move static data member to...
1119 (__per_type_pool_policy::_S_get_pool): ...here, make static local.
1120 (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
1121 Remove static member definitions. Use define for __default_policy.
1122 * src/mt_allocator.cc: Same.
1123 * config/linker-map.gnu: Don't export _S_get_pool. Renames.
1124 * testsuite/ext/new_allocator: New.
1125 * testsuite/ext/new_allocator/instantiate.cc: New.
1126 * testsuite/ext/new_allocator/check_new.cc: New.
1127 * testsuite/ext/new_allocator/deallocate_global.cc: New.
1128 * testsuite/ext/new_allocator/deallocate_local.cc: New.
1129 * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
1131 * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
1132 * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
1133 * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
1134 * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
1135 * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
1136 * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
1137 * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
1138 * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
1139 * testsuite/ext/mt_allocator/deallocate.cc: New.
1140 * testsuite/ext/malloc_allocator/deallocate.cc: New.
1141 * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
1142 * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
1144 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1146 * configure.host (abi_baseline_pair): Define for s390-*-linux* and
1148 * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
1149 * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
1151 2004-10-05 Christopher Jefferson <caj@cs.york.ac.uk>
1153 * include/bits/stl_algobase.h (iter_swap): delegate to swap via
1154 __iter_swap when iterator's value_types are equal.
1155 (struct __iter_swap): New.
1157 2004-10-04 Benjamin Kosnik <bkoz@redhat.com>
1159 * configure.ac (libtool_VERSION): To 6:3:0.
1160 * configure: Regnerate.
1161 * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
1163 2004-10-04 Roger Sayle <roger@eyesopen.com>
1164 Eric Botcazou <ebotcazou@libertysurf.fr>
1167 * config/linker-map.gnu: Synchronize the current list of stub
1168 functions from libmath.
1170 2004-10-03 Roger Sayle <roger@eyesopen.com>
1172 * config/locale/generic/c_locale.cc (__convert_to_v): Use
1173 _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
1174 Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
1175 to check for presence of strtold.
1177 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1179 * include/bits/stl_list.h: Trivial formatting fixes.
1180 * include/bits/stl_tree.h: Likewise.
1182 2004-10-03 Paolo Carlini <pcarlini@suse.de>
1184 * include/bits/sstream.tcc (seekpos): In case of success, just
1187 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1189 * include/bits/sstream.tcc (pbackfail): Implement correctly
1190 27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
1191 write in the buffer.
1192 * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
1193 * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
1194 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
1195 * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
1196 * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
1198 2004-10-01 Paolo Carlini <pcarlini@suse.de>
1200 * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
1201 conditionals consistently with seekoff.
1202 * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1203 (_M_sync): Simplify a bit, clean-up comment.
1205 2004-09-30 Paolo Carlini <pcarlini@suse.de>
1207 PR libstdc++/10975 (DR 453)
1208 * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1210 * docs/html/ext/howto.html: Add an entry for DR 453.
1211 * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1212 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1213 * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1214 * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1215 * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1216 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1218 * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1219 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1221 * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1223 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1225 * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1226 Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1227 (str()): Slightly tweak, protect from pptr() == 0.
1228 (_M_update_egptr()): Likewise.
1229 * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1230 for an empty buffer use __beg instead of _M_string.capacity().
1231 * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1232 * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1234 * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1235 * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1236 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1237 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1239 2004-09-29 Paolo Carlini <pcarlini@suse.de>
1240 Benjamin Kosnik <bkoz@redhat.com>
1242 * testsuite/testsuite_io.h (class constraint_buf): New, extended
1243 and templatized version of constraint_filebuf; add typedefs for
1244 streambuf/stringbuf/filebuf and wchar_t counterparts.
1246 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1249 * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1250 basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1251 don't deal with _S_empty_rep.
1252 * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1253 _M_leak_hard, _M_mutate): Likewise.
1254 * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1255 * acconfig.h: Add corresponding undef.
1256 * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1257 * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1258 * configure: Regenerate.
1259 * config.h.in: Likewise.
1261 2004-09-28 Benjamin Kosnik <bkoz@redhat.com>
1262 Paolo Carlini <pcarlini@suse.de>
1264 * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1265 * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1266 * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1267 * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc:
1270 2004-09-28 Paolo Carlini <pcarlini@suse.de>
1272 * README: Remove obsolete entry about include/c_shadow.
1274 2004-09-24 H.J. Lu <hongjiu.lu@intel.com>
1277 * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1279 2004-09-24 Paolo Carlini <pcarlini@suse.de>
1281 * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1282 rename a variable, move an assignment.
1283 (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1285 2004-09-24 Paul Brook <paul@codesourcery.com>
1287 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1289 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1290 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1291 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1292 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1293 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1294 * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1296 2004-09-23 Zack Weinberg <zack@codesourcery.com>
1298 * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1299 * testsuite/23_containers/map/operators/1_neg.cc
1300 * testsuite/23_containers/set/operators/1_neg.cc:
1301 Update locations and/or regexps of dg-error markers.
1303 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
1305 * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1306 Add rule to build ${host_builddir}/gthr-tpf.h.
1307 * include/Makefile.in: Regenerate.
1309 2004-09-23 Paolo Carlini <pcarlini@suse.de>
1310 Magnus Fromreide <magfr@lysator.liu.se>
1312 * include/bits/boost_concept_check.h (struct _SequenceConcept):
1313 Remove wrong requirement, i.e., not present in Table 67.
1315 2004-09-21 Paolo Carlini <pcarlini@suse.de>
1317 PR libstdc++/12882 (cont)
1318 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1319 * configure: Regenerate.
1320 * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1321 _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1322 trivial showmanyc for large files too.
1324 2004-09-17 Jonathan Wakely <redi@gcc.gnu.org>
1326 * include/bits/stl_algo.h (remove): Remove too restrictive
1329 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1331 * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1332 as per Nathan's original suggestion.
1334 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1336 * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1338 * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1339 * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1340 * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1342 2004-09-17 Paolo Carlini <pcarlini@suse.de>
1343 Andrea Arcangeli <andrea@suse.de>
1345 * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1346 call unnecessarily sync, that is fflush: the library, since 3.4.0
1347 does not use buffered fread/fwrite.
1348 * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1350 2004-09-15 Mark Mitchell <mark@codesourcery.com>
1352 * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1354 * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1356 * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1357 (__cxa_vec_new): Use it.
1358 (__cxa_vec_new2): Likewise.
1359 (__cxa_vec_new3): Likewise.
1360 (__cxa_vec_cdtor): Likewise.
1361 (__cxa_vec_cctor): Likeiwse.
1362 (__cxa_vec_dtor): Likewise.
1363 (__cxa_vec_cleanup): Likewise.
1364 (__cxa_vec_delete2): Likewise.
1365 (__cxa_vec_delete3): Likewise.
1366 * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1367 (__cxa_vec_new2): Likewise.
1368 (__cxa_vec_new3): Likewise.
1369 (__cxa_vec_cdtor): Likewise.
1370 (__cxa_vec_cctor): Likeiwse.
1371 (__cxa_vec_dtor): Likewise.
1372 (__cxa_vec_cleanup): Likewise.
1373 (__cxa_vec_delete2): Likewise.
1374 (__cxa_vec_delete3): Likewise.
1375 (__aeabi_vec_ctor_nocookie_nodtor): New function.
1376 (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1377 (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1378 (__aeabi_vec_new_cookie_noctor): Likewise.
1379 (__aeabi_vec_new_nocookie): Likewise.
1380 (__aeabi_vec_new_cookie_nodtor): Likewise.
1381 (__aeabi_vec_new_cookie): Likewise.
1382 (__aeabi_vec_dtor): Likewise.
1383 (__aeabi_vec_dtor_cookie): Likewise.
1384 (__aeabi_vec_delete): Likewise.
1385 (__aeabi_vec_delete3): Likewise.
1386 (__aeabi_vec_delete3_nodtor): Likewise.
1387 (__aeabi_atexit): Likewise.
1389 2004-09-14 Nathan Myers <ncm@cantrip.org>
1391 * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1392 for 11722: copy can replace move; the common case is __avail == 0.
1394 2004-09-14 Paolo Carlini <pcarlini@suse.de>
1396 * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1397 to __is_scalar, more clear and consistent with "tr1" naming.
1398 * include/bits/stl_algobase.h: Update consistently throughout.
1400 2004-09-13 Paolo Carlini <pcarlini@suse.de>
1403 * include/std/std_fstream.h (xsgetn): Declare only.
1404 * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1405 always_noconv() case: when __n > __buflen, copy the available
1406 buffer and issue a direct read.
1407 * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1409 * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1412 2004-09-13 Hans-Peter Nilsson <hp@bitrange.com>
1414 * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1415 libstdc++_maybe_build_wrapper instead of using local code.
1417 2004-09-08 Benjamin Kosnik <bkoz@redhat.com>
1419 * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1421 2004-09-03 Jan Beulich <jbeulich@novell.com>
1423 * crossconfig.m4: Add NetWare as a target.
1424 * configure: Regenerate.
1426 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1428 * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1431 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1432 Simon Richter <Simon.Richter@hogyros.de>
1435 * include/bits/istream.tcc: Add extern template for iostream
1436 char and wchar_t instantiations.
1438 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1439 Leland Wang <llwang@infor.org>
1442 * include/ext/ropeimpl.h (rope::_S_compare): Use
1443 _Rope_constants::_S_leaf.
1445 2004-09-02 Benjamin Kosnik <bkoz@redhat.com>
1448 * include/Makefile.am (ext_headers): Remove demangle.h.
1449 * include/Makefile.in: Regenerate.
1450 * include/ext/demangle.h: Remove.
1452 2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
1455 * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1457 (__pool): New, specialize.
1458 (__common_pool): New, static bits here.
1459 (__per_type_pool): New, and here.
1460 (__mt_alloc_base): New.
1461 (__mt_alloc): Add template parameter, inherit from it.
1462 * src/allocator.cc: Split this...
1463 * src/allocator-inst.cc: And this...
1464 * src/pool_allocator.cc: ...into this.
1465 * src/mt_allocator.cc: ... and this. Add definitions for
1467 * src/Makefile.am (sources): Split allocator.cc to
1468 pool_allocator.cc and mt_allocator.cc.
1469 * src/Makefile.in: Regenerate.
1470 * config/linker-map.gnu: Add symbols.
1471 * docs/html/ext/mt_allocator.html: Document new design.
1472 * testsuite/ext/mt_allocator/tune-1.cc: New.
1473 * testsuite/ext/mt_allocator/tune-2.cc: New.
1474 * testsuite/ext/mt_allocator/tune-3.cc: New.
1475 * testsuite/ext/mt_allocator/tune-4.cc: New.
1477 * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1478 * testsuite/ext/allocators.cc: Use check_new, split into...
1479 * testsuite/ext/mt_allocator/check_new.cc: this.
1480 * testsuite/ext/pool_allocator/check_new.cc: this.
1481 * testsuite/ext/malloc_allocator/check_new.cc: this.
1482 * testsuite/ext/debug_allocator/check_new.cc: this.
1483 * testsuite/ext/mt_allocator/instantiate.cc: this.
1484 * testsuite/ext/pool_allocator/instantiate.cc: this.
1485 * testsuite/ext/malloc_allocator/instantiate.cc: this.
1486 * testsuite/ext/debug_allocator/instantiate.cc: this.
1488 2004-08-30 Phil Edwards <phil@codesourcery.com>
1490 * docs/html/install.html: Update locales list (from Paolo).
1491 Remove other redundant information and point to the GCC install
1494 2004-08-30 Benjamin Kosnik <bkoz@redhat.com>
1496 * include/ext/pool_allocator.h: Rename __pool_base to
1498 * src/allocator.cc: Same.
1499 * config/linker-map.gnu: Same.
1501 2004-08-30 Paolo Carlini <pcarlini@suse.de>
1502 Kenneth C. Schalk <ken@xorian.net>
1505 * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1506 Check the return value of fclose/sync, loop on EINTR.
1507 (__basic_file<char>::sys_open): Likewise, for sync.
1509 2004-08-29 Paolo Carlini <pcarlini@suse.de>
1511 * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1512 case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1513 and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1514 * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1515 * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1517 2004-08-27 Jason Merrill <jason@redhat.com>
1520 * libsupc++/guard.cc (static_mutex): Internal class implementing a
1521 recursive mutex which controls initialization of local statics.
1522 (__gnu_cxx::recursive_init): New exception class.
1523 (__cxa_guard_acquire): Deal with locking and recursion detection.
1524 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1526 2004-08-27 Matthias Klose <doko@debian.org>
1528 * configure.host: For mips*-*-linux* update cpu_include_dir
1529 after atomicity_dir is set.
1531 2004-08-27 Matthias Klose <doko@debian.org>
1533 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1534 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1535 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1538 2004-08-27 Paolo Carlini <pcarlini@suse.de>
1540 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1541 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1542 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1543 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1544 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1546 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1548 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1549 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1550 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1551 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1553 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1555 PR libstdc++/17038 (partial)
1556 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1558 * include/bits/locale_facets.h (class __timepunct): Add FIXME
1559 comment about _M_put.
1560 * config/locale/generic/time_members.cc (_M_put): Always null
1562 * config/locale/gnu/time_members.cc (_M_put): Likewise.
1563 * testsuite/22_locale/time_put/put/char/17038.cc: New.
1564 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1566 2004-08-24 Paolo Carlini <pcarlini@suse.de>
1568 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1569 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1570 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1571 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1572 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1573 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1575 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1577 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1579 2004-08-22 Matthias Klose <doko@debian.org>
1581 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1582 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1584 2004-08-23 Paolo Carlini <pcarlini@suse.de>
1586 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1587 * aclocal.m4: Regenerate with automake-1.9.1.
1588 * configure: Regenerate.
1589 * Makefile.in: Likewise.
1590 * include/Makefile.in: Likewise.
1591 * libmath/Makefile.in: Likewise.
1592 * libsupc++/Makefile.in: Likewise.
1593 * po/Makefile.in: Likewise.
1594 * src/Makefile.in: Likewise.
1595 * testsuite/Makefile.in: Likewise.
1597 2004-08-22 Paolo Carlini <pcarlini@suse.de>
1599 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1600 to a signed type, long according to the resolution of DR 359.
1601 * testsuite/22_locale/num_put/put/char/9.cc: New.
1602 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1604 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1605 Simplify a bit: no need to clear showpos.
1607 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1609 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1612 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1614 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1615 wchar_t type for the fill argument; minor formatting tweaks.
1616 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1617 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1618 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1619 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1620 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1621 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1623 2004-08-21 Paolo Carlini <pcarlini@suse.de>
1625 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1626 with _M_word != _M_local_word two times, redundantly.
1628 2004-08-20 Jason Merrill <jason@redhat.com>
1630 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1631 _GLIBCXX_ to #pragma lines.
1632 * include/Makefile.in: Update.
1634 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1636 PR libstdc++/7219 (continued)
1637 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1638 typedefs by default.
1639 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1640 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1642 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1644 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1646 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1647 barrier to locking asm.
1649 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1651 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1652 actually the warning is a front-end bug (c++/17120).
1654 2004-08-20 Matthias Klose <doko@debian.org>
1656 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1658 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1660 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1661 used as truth value warning.
1663 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1665 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1668 2004-08-20 Paolo Carlini <pcarlini@suse.de>
1670 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1672 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
1674 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1676 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1678 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1680 * testsuite/performance/20_util/allocator/insert.cc: For std::map
1681 instantiate the allocator for a correct pair type.
1682 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1683 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1684 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1687 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1688 minor formatting fixes.
1689 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1691 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1693 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1695 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1696 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1697 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1698 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1699 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1700 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1701 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1703 2004-08-19 Paolo Carlini <pcarlini@suse.de>
1705 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1707 2004-08-18 Matthias Klose <doko@debian.org>
1709 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1710 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1711 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1713 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1715 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1717 2004-08-17 Paolo Carlini <pcarlini@suse.de>
1719 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1721 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
1723 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1725 2004-08-16 Paolo Carlini <pcarlini@suse.de>
1727 * include/bits/indirect_array.h: Trivial formatting fixes.
1728 * include/bits/valarray_after.h: Likewise.
1729 * include/bits/valarray_array.h: Likewise.
1730 * src/valarray-inst.cc: Likewise.
1732 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1734 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1735 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1736 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1738 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1739 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1740 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1741 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1742 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1744 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1746 * include/bits/deque.tcc: Trivial formatting fixes.
1748 2004-08-15 Paolo Carlini <pcarlini@suse.de>
1750 * include/bits/deque.tcc: Trivial formatting fixes.
1752 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1753 Remove unneded typedef.
1755 * include/bits/locale_facets.tcc: Very minor tweaks.
1757 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1758 type for the fill argument.
1759 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1760 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1761 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1762 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1763 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1764 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1765 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1766 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1768 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1770 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1771 memmove is not needed, memcpy suffices.
1773 2004-08-13 Paolo Carlini <pcarlini@suse.de>
1775 * include/std/std_fstream.h (class basic_ifstream,
1776 class basic_ofstream, class basic_fstream): Add const overloads
1777 of is_open, as per DR 365 [WP].
1778 * docs/html/ext/howto.html: Add an entry for DR 365.
1780 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1782 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1784 2004-08-12 Paolo Carlini <pcarlini@suse.de>
1787 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1788 to the returned value, reorganize a bit.
1789 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1790 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1792 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1793 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1794 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1795 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1797 2004-08-12 Paul Brook <paul@codesourcery.com>
1799 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1800 _GLIBCXX_CXA_VEC_CTOR_RETURN.
1801 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1802 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1803 __cxa_vec_ctor_return.
1804 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1805 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1807 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
1809 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1810 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1811 src/Makefile.in, testsuite/Makefile.in: Regenerate
1813 2004-08-12 Jan Beulich <jbeulich@novell.com>
1815 * config/locale/generic/ctype_members.cc
1816 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1817 initializer for return value, as that is invalid for enumerated types.
1818 * config/locale/gnu/ctype_members.cc
1819 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1821 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1823 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1825 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1827 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1829 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1830 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1831 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1832 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1833 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1834 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1835 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1836 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1837 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1838 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1839 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1840 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1841 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1842 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1843 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1844 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1845 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1846 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1847 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1848 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1849 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1851 2004-08-11 Paolo Carlini <pcarlini@suse.de>
1852 Petur Runolfsson <peturr02@ru.is>
1855 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1856 standard streams are constructed.
1857 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1859 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1861 * include/bits/stl_bvector.h: Trivial formatting fixes.
1863 2004-08-09 Paolo Carlini <pcarlini@suse.de>
1865 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1867 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
1868 Paolo Carlini <pcarlini@suse.de>
1870 * src/debug.cc (_Error_formatter::_M_print_string): In order
1871 to print individual words from __string, _M_format_word can't
1872 be called since may be just sprintf, thus ignoring completely
1873 __n: instead, use memmove and append '\0' by hand.
1875 2004-08-07 Paolo Carlini <pcarlini@suse.de>
1877 * config/locale/generic/c_locale.h (__convert_from_v): Don't
1878 use a default for __prec, assume __prec >= 0 and simplify.
1879 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1880 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1881 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1883 2004-08-04 Phil Edwards <phil@codesourcery.com>
1885 * docs/html/configopts.html: Emphasize that options change.
1886 * docs/html/17_intro/configury.html: Update links.
1888 2004-08-03 Paolo Carlini <pcarlini@suse.de>
1890 * include/bits/list.tcc: Trivial formatting fixes.
1892 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1894 * libsupc++/new_op.cc: Update comments.
1895 * libsupc++/del_op.cc: Likewise.
1897 2004-08-02 Mark Mitchell <mark@codesourcery.com>
1899 * libsupc++/cxxabi.h: Make all declarations have default
1901 * libsupc++/exception: Likewise.
1902 * libsupc++/new: Likewise.
1903 * libsupc++/typeinfo: Likewise.
1904 * libsupc++/unwind-cxx.h: Likewise.
1905 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
1906 the __cxxabiv1 namespace.
1907 (__cxa_free_exception): Likewise.
1908 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
1909 (__cxa_bad_typeid): Likewise.
1910 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1911 (__cxa_end_catch): Likewise.
1912 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
1913 (__cxa_get_globals): Likewise.
1914 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
1915 (__cxa_rethrow): Likewise.
1916 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
1917 * libsupc++/eh_type.cc: Include <cxxabi.h>.
1919 * Makefile.am (hosted_source): Add libmath and testsuite.
1920 (SUBDIRS): Remove them.
1921 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
1922 on arm*-*-symbianelf*.
1923 * crossconfig.m4: Add arm*-*-symbianelf* support.
1924 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
1925 when freestanding. Do not bring names into std:: namespace with
1926 "using" when freestanding. Declare required functions and macros
1928 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
1930 * libsupc++/del_op.cc: Declare "free" only when freestanding.
1931 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
1932 (malloc): Declare when freestanding.
1935 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
1937 (__cxa_free_exception): Likewise for free.
1938 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
1939 * libsupc++/pure.cc (writestr): Define to nothing when
1941 * libsupc++/vterminate.cc: Do not define anything when
1943 * Makefile.in: Regenerated.
1944 * aclocal.m4: Likewise.
1945 * configure: Likewise.
1946 * include/Makefile.in: Likewise.
1947 * libmath/Makefile.in: Likewise.
1948 * libsupc++/Makefile.in: Likewise.
1949 * po/Makefile.in: Likewise.
1950 * src/Makefile.in: Likewise.
1951 * testsuite/Makefile.in: Likewise.
1953 2004-08-01 Matt Austern <austern@apple.com>
1956 * include/bits/stl_list.h (_M_create_node): Remove unused
1957 zero-argument version.
1958 * include/ext/slist (_M_create_node): Pass two arguments to
1959 allocator's construct() member function.
1960 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
1961 * testsuite/23_containers/list/explicit_instantiation.cc: New.
1962 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
1963 * testsuite/23_containers/map/explicit_instantiation.cc: New.
1964 * testsuite/23_containers/set/explicit_instantiation.cc: New.
1965 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
1966 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
1967 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
1968 * testsuite/ext/slist_explicit_instantiation.cc: New.
1970 2004-07-30 Paolo Carlini <pcarlini@suse.de>
1972 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1973 num_get<>::_M_extract_int): In the main parsing loop delay the
1974 life of __q to the actual use point.
1976 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1979 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
1980 Don't clip the precision passed down to __convert_from_v:
1981 22.2.2.2.2 nowhere says so.
1982 * testsuite/22_locale/num_put/put/char/14220.cc: New.
1983 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
1985 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1987 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
1989 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1990 Petur Runolfsson <peturr02@ru.is>
1992 PR libstdc++/12658 (continued)
1993 * src/locale_init.cc (locale::locale, locale::global): Use
1994 a single locale_mutex instead of two separate mutexes.
1996 2004-07-29 Paolo Carlini <pcarlini@suse.de>
1999 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
2001 * testsuite/23_containers/map/insert/16813.cc: New.
2003 2004-07-29 Phil Edwards <phil@codesourcery.com>
2005 * docs/html/faq/index.html: Update version references. Make
2006 clear that code from SGI has diverged greatly. Remove references
2007 to library snapshots and what's-new sections.
2008 * docs/html/faq/index.txt: Regenerate.
2010 2004-07-28 Matt Austern <austern@apple.com>
2012 * include/bits/stl_construct.h (_Destroy): New three-argument
2013 overload that takes an allocator argument. Another inline
2014 three-argument overload that takes std::allocator and dispatches
2015 to the two-argument version.
2016 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
2017 Change return type to void to match uninitialized_fill_n.
2018 (__uninitialized_copy_a_): New function. Like uninitialized_copy
2019 except that it takes an allocator and uses it for construct and
2020 destroy. If the allocator is std::allocator, dispatches to
2022 (__uninitialized_fill_a): Likewise.
2023 (__uninitialized_fill_n_a): Likewise.
2024 (__uninitialized_copy_copy): Give it an allocator argument.
2025 (__uninitialized_fill_copy): Likewise.
2026 (__uninitialized_copy_fill): Likewise.
2027 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
2028 and stl_uninitialized.h. Replace use of single-argument _Construct
2029 and _Destroy with use of allocator's construct and destroy methods.
2030 * include/bits/list.tcc: Likewise.
2031 * include/bits/stl_deque.h: Likewise.
2032 * include/bits/stl_list.h: Likewise.
2033 * include/bits/stl_tree.h: Likewise.
2034 * include/bits/stl_vector.h: Likewise.
2035 * include/bits/vector.tcc: Likewise.
2036 * include/ext/hashtable.h: Use rebind so that allocator_type
2037 has correct type for a container's allocator. Replace use of
2038 single-argument _Construct and _Destroy with use of allocator's
2039 construct and destroy methods.
2040 * include/ext/memory (__uninitialized_copy_n_a): New function.
2041 Like uninitialized_copy_n except that it takes an extra parameter,
2042 an allocator, and uses it for construct and destroy operations.
2043 * include/ext/rope: Use new forms defined in stl_construct.h,
2044 stl_uninitialized.h, and ext/memory. Replace use of single-argument
2045 _Construct and _Destroy with allocator construct and destroy methods.
2046 * include/ext/ropeimpl.h: Likewise.
2047 * include/ext/slist.h: Likewise.
2048 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
2049 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
2050 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
2051 * testsuite/23_containers/list/check_construct_destroy.cc: New.
2052 * testsuite/23_containers/set/check_construct_destroy.cc: New.
2053 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
2054 * testsuite/ext/hash_check_construct_destroy.cc: New.
2055 * testsuite/ext/slist_check_construct_destroy.cc: New.
2057 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
2059 2003-10-01 Eric Christopher <echristo@redhat.com>
2060 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
2062 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
2063 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
2065 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
2068 * include/bits/locale_facets.tcc: Fix for -Werror.
2070 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
2072 * docs/html/debug.html: Say debug mode only available since 3.4.0.
2074 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
2076 * docs/doxygen/mainpage.html: Clarify links.
2077 * docs/doxygen/stdheader.cc: Add files.
2078 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
2079 * docs/doxygen/user.cfg.in: New options, wrap.
2081 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
2083 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
2085 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
2088 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
2090 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
2093 * scripts/create_testsuite_files: Pass -print to find.
2095 2004-07-15 Paolo Carlini <pcarlini@suse.de>
2097 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
2098 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
2100 2004-07-15 Jakub Jelinek <jakub@redhat.com>
2103 * acinclude.m4 (glibcxx_shared_libgcc): Correct
2104 glibcxx_shared_libgcc test for multilibs.
2105 * configure: Rebuilt.
2107 2004-07-14 Paolo Carlini <pcarlini@suse.de>
2110 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
2111 the signature to return void, as per 20.4.4.3.
2112 * include/bits/stl_vector.h (vector::vector(size_type,
2113 const value_type&, const allocator_type&), vector::vector(size_type),
2114 vector::_M_initialize_dispatch): Adjust callers.
2115 * include/bits/vector.tcc (vector<>::_M_fill_assign,
2116 vector<>::_M_fill_insert): Likewise.
2117 * testsuite/20_util/memory/16505.cc: New.
2119 2004-07-14 Paolo Carlini <pcarlini@suse.de>
2121 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
2122 12658_thread-2.cc: Use __gnu_test::try_named_locale.
2124 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
2126 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
2127 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
2128 (__mt_alloc::_S_set_options): Same.
2131 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
2133 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
2135 * configure: Regenerated.
2137 2004-07-13 Paolo Carlini <pcarlini@suse.de>
2139 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
2140 to 12658_thread-1.cc and xfail.
2141 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
2142 simpler version of 12658_thread-1.cc, still failing on 3_3 and
2143 not failing on 3_4/mainline - both on single processor and
2144 multiprocessor machines.
2146 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
2148 * docs/html/abi.html: Remove non-public qualification.
2150 * include/bits/concurrence.h: Tweak comments.
2152 2004-07-11 Paolo Carlini <pcarlini@suse.de>
2154 Add wchar_t counterparts of the basic_streambbuf<char> tests.
2155 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
2156 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
2158 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
2159 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
2161 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
2162 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
2163 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
2164 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
2165 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
2167 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
2169 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
2171 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
2173 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
2174 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
2176 2004-07-11 Phil Edwards <phil@codesourcery.com>
2178 * acinclude.m4: Cosmetic shell syntax fixes.
2179 * configure.ac: Bring comment inline with reality.
2180 * configure.host: Both of the above. Move 'arm' case to right
2181 place in host_cpu switch.
2182 * aclocal.m4, configure: Regenerate.
2184 2004-07-09 Paolo Carlini <pcarlini@suse.de>
2186 Add wchar_t counterparts of the basic_stringbuf<char> tests.
2187 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
2188 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
2189 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
2190 3599.cc, 9988.cc: Likewise.
2191 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
2193 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
2195 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
2197 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
2199 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
2200 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
2201 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
2202 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2204 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2205 9404-1.cc: Likewise.
2206 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2207 9404-2.cc: Likewise.
2208 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2210 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2211 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2213 2004-07-08 Paolo Carlini <pcarlini@suse.de>
2215 * include/bits/gslice.h: Trivial formatting fixes.
2216 * include/bits/gslice_array.h: Likewise.
2217 * include/bits/indirect_array.h: Likewise.
2218 * include/bits/mask_array.h: Likewise.
2219 * include/bits/slice_array.h: Likewise.
2220 * include/bits/valarray_after.h: Likewise.
2221 * include/bits/valarray_array.h: Likewise.
2222 * include/bits/valarray_before.h: Likewise.
2223 * include/std/std_valarray.h: Likewise.
2225 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
2228 * include/bits/basic_string.h (basic_string::operator=): Revert.
2230 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2232 * configure.ac (libtool_VERSION): To 6:2:0.
2233 * configure: Regenerated.
2235 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2237 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2240 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2242 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
2244 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2247 2004-07-07 Paolo Carlini <pcarlini@suse.de>
2250 * include/bits/sstream.tcc (overflow): When reallocating _M_string
2251 use an exponential grow policy.
2252 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2253 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2255 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
2258 * crossconfig.m4: Add in bits for djgpp.
2259 * configure: Regenerate.
2261 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
2263 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2264 instantiation of set and multiset (functor param given as int).
2266 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2268 * include/bits/basic_string.h: Trivial formatting fixes and/or
2269 const-ification of some variables.
2270 * include/bits/deque.tcc: Likewise.
2271 * include/bits/stl_algobase.h: Likewise.
2272 * include/bits/stl_bvector.h: Likewise.
2273 * include/bits/stl_construct.h: Likewise.
2274 * include/bits/stl_deque.h: Likewise.
2275 * include/bits/stl_pair.h: Likewise.
2276 * include/bits/stl_vector.h: Likewise.
2277 * include/bits/vector.tcc: Likewise.
2279 2004-07-04 Paolo Carlini <pcarlini@suse.de>
2281 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2282 systems with no COMDAT or weak support.
2283 * testsuite/25_algorithms/copy/2.cc: Likewise.
2284 * testsuite/25_algorithms/copy/3.cc: Likewise.
2285 * testsuite/25_algorithms/copy/4.cc: Likewise.
2287 2004-07-03 Paul Brook <paul@codesourcery.com>
2289 * configure.ac: Set ABI_TWEAKS_SRCDIR.
2290 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
2291 setting atomicity_dir. Override type_cpu for arm based targets.
2292 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2293 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2294 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2295 * libsupc++/vec.cc: Ditto.
2296 * config/cpu/arm/cxxabi_tweaks.h: New file.
2297 * config/cpu/generic/cxxabi_tweaks.h: New file.
2298 * */Makefile.in: Regenerate.
2299 * configure: Regenerate.
2301 2004-07-02 Paolo Carlini <pcarlini@suse.de>
2303 * include/bits/type_traits.h (_Is_normal_iterator): Move...
2304 * include/bits/cpp_type_traits.h: ... here, renamed to
2305 __is_normal_iterator and consistent with the other traits.
2306 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2307 to the struct __copy_normal and three specializations.
2308 (__copy_backward_output_normal_iterator,
2309 __copy_backward_input_normal_iterator): Likewise, convert to
2310 the struct __copy_backward_normal and three specializations.
2311 (copy, copy_backward): Use the latter.
2312 (__copy_aux, __copy_backward_aux): Very minor tweaks.
2314 2004-07-01 Paolo Carlini <pcarlini@suse.de>
2316 * include/bits/stl_algobase.h (__copy_trivial): Remove.
2317 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2318 __is_trivially_copyable, __are_same and __copy::copy.
2319 (__copy): Rewrite as a class template and two specializations.
2320 (__copy_ni2): Simplify, just call __copy_aux.
2322 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2324 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2325 for destination value type != source value type.
2327 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
2328 Per Bothner <per@bothner.com>
2329 Mohan Embar <gnustuff@thisiscool.com>
2332 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2333 (__glibcxx_mutex): Encapsulate mutex init function into type for
2334 threaded configurations without __GTHREAD_MUTEX_INIT.
2335 (lock::lock): Make device member a reference.
2336 (lock::~lock): Same.
2337 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2339 * src/allocator.cc: Same.
2341 2004-06-30 Brad Spencer <spencer@infointeractive.com>
2343 * include/ext/mt_allocator.h: Handle allocations at static
2344 initialization that happen before _S_options is (automatically)
2345 constructed; set _S_init even if _M_force_new is true.
2347 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2349 * config/linker-map.gnu: Revert new exports.
2351 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
2352 Stuart Anderson <anderson@netsweng.com>
2354 * config/linker-map.gnu: Add destructor exports for abstract base
2355 classes to conform to LSB.
2357 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2358 Paolo Carlini <pcarlini@suse.de>
2360 * include/bits/cpp_type_traits.h: Add __is_pointer and
2361 __is_trivially_copyable.
2362 * include/bits/stl_algobase.h (fill, fill_n): Slightly
2363 tweak to use the latter.
2364 (__copy_backward_dispatch): Remove.
2365 (__copy_backward_aux): Rewrite to use __is_pointer and
2366 __is_trivially_copyable and __copy_backward::copy_b.
2367 (__copy_backward): Rewrite as a class template and two
2370 2004-06-30 Paolo Carlini <pcarlini@suse.de>
2372 * testsuite/25_algorithms/copy.cc: Move to...
2373 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2374 * testsuite/25_algorithms/copy/2.cc: New.
2375 * testsuite/25_algorithms/copy/3.cc: New.
2376 * testsuite/25_algorithms/copy/4.cc: New.
2378 2004-06-29 Paul Brook <paul@codesourcery.com>
2380 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2381 element size in the cookie.
2383 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2385 * include/bits/cpp_type_traits.h: Move the additions to
2386 namespace __gnu_internal outside of namespace std; trivial
2389 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
2391 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2392 Revert -Weffc++ changes that defined copy ctory and or assignment
2394 * libsupc++/tinfo.cc (__upcast_result): Same.
2396 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2398 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2399 the algorithm used to name the categories.
2401 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
2403 * include/Makefile.am: Give a .gch extension to
2404 the PCH files, not only to the directory.
2405 * include/Makefile.in: Regenerate.
2407 2004-06-28 Paolo Carlini <pcarlini@suse.de>
2409 * config/locale/gnu/monetary_members.cc
2410 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2411 assignments of _M_decimal_point and _M_thousands_sep.
2413 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2415 * docs/html/17_intro/contribute.html: Update some links.
2416 * docs/html/17_intro/porting-howto.html: Likewise.
2417 * docs/html/17_intro/porting-howto.xml: Likewise.
2418 * docs/html/18_support/howto.html: Likewise.
2419 * docs/html/21_strings/howto.html: Likewise.
2420 * docs/html/27_io/howto.html: Likewise.
2421 * docs/html/configopts.html: Likewise.
2422 * docs/html/ext/howto.html: Likewise.
2423 * docs/html/faq/index.html: Likewise.
2424 * docs/html/install.html: Don't mention 2.x compilers.
2426 2004-06-27 Paolo Carlini <pcarlini@suse.de>
2428 * include/ext/rope: Trivial formatting fixes.
2429 * include/ext/ropeimpl.h: Likewise.
2431 2004-06-26 Paolo Carlini <pcarlini@suse.de>
2434 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2435 availability of strto(u)ll, not used anymore in the iostreams.
2436 * configure: Regenerate.
2438 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2441 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2443 * configure: Regenerate.
2445 2004-06-25 Paul Brook <paul@codesourcery.com>
2447 * libsupc++/cxxabi.h: Define __ARM_EABI__
2449 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2451 2004-06-25 Paul Brook <paul@codesourcery.com>
2453 * include/bits/concurrence.h: Still create mutex object when
2456 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2458 * include/bits/stl_algobase.h (fill, fill_n): Revert last
2459 change: actually we need to copy construct an object of type
2460 _Tp, not of type iterator_traits<>::value_type, therefore the
2463 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2465 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2466 dispatch: use iterator_traits<>::value_type, not _Tp.
2468 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2470 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2471 * testsuite/25_algorithms/fill/2.cc: Likewise.
2473 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
2474 Paolo Carlini <pcarlini@suse.de>
2476 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2477 for fill and fill_n, respectively: when copying is cheap, use a
2478 temporary to avoid a memory read in each iteration.
2480 2004-06-25 Paolo Carlini <pcarlini@suse.de>
2482 * testsuite/25_algorithms/fill/1.cc: New.
2483 * testsuite/25_algorithms/fill/2.cc: Likewise.
2485 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
2487 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2488 Remove copy constructor and assignment operator.
2490 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
2492 * include/bits/concurrence.h (__gnu_cxx::lock): New.
2493 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2494 (__pool_base::_M_get_mutex): New.
2495 * include/bits/allocator.h: Tweak.
2496 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2497 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2498 * include/bits/stl_threads.h: Remove.
2499 * include/Makefile.am: Also here.
2500 * include/Makefile.in: Regenerate.
2502 * src/locale_init.cc: Use __gnu_cxx::lock.
2504 * src/allocator.cc: Move all instantiations...
2505 * src/allocator-inst.cc: ...here.
2507 2004-06-23 Andrew Pinski <apinski@apple.com>
2509 * linkage.m4: Remove check for libmx.
2510 * configure: Regenerate.
2512 2004-06-23 Paolo Carlini <pcarlini@suse.de>
2515 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2516 Don't require the _DefaultConstructibleConcept.
2517 (struct _ForwardIteratorConcept): Require it here.
2519 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
2521 * include/bits/istream.tcc (getline): Make sure arguments passed
2522 to min/max have the same type.
2523 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2524 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2526 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
2528 * docs/html/abi.html: Update links.
2530 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2532 * testsuite/26_numerics/complex_inserters_extractors.cc,
2533 complex_value.cc, buggy_complex.cc: Move to...
2534 * testsuite/26_numerics/complex/: ... here.
2535 * testsuite/26_numerics/c99_classification_macros_c++.cc,
2536 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2537 fabs_inline.cc: Move to...
2538 * testsuite/26_numerics/cmath/: ... here.
2539 * testsuite/26_numerics/binary_closure.cc, slice.cc,
2540 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2541 valarray_name_lookup.cc, valarray_operators.cc,
2542 valarray_subset_assignment.cc: Move to...
2543 * testsuite/26_numerics/valarray/: ... here (new dir).
2544 * testsuite/26_numerics/sum_diff.cc: Move to...
2545 * testsuite/26_numerics/numeric/: ... here (new dir).
2547 2004-06-22 Paolo Carlini <pcarlini@suse.de>
2549 * include/std/std_istream.h (ignore(streamsize __n = 1,
2550 int_type __delim = traits_type::eof())): Split into...
2551 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2552 int_type __delim)): The first two can be much more simpler
2553 and efficient than the fully general case; also, the last
2554 two can take advantage of the same mechanism already used
2556 * include/bits/istream.tcc (ignore(streamsize __n = 1,
2557 int_type __delim = traits_type::eof()): Remove.
2558 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2559 int_type __delim)): New.
2561 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
2563 * config/linker-map.gnu: Use wildcards for
2564 __basic_file::sys_open(FILE*, _Ios_Openmode).
2566 2004-06-20 Paolo Carlini <pcarlini@suse.de>
2568 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2570 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2572 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2573 the alignment requested.
2574 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2575 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2576 (__mt_alloc<>::deallocate): Likewise.
2578 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2581 * include/debug/safe_base.h
2582 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2583 _Safe_sequence_base::operator=): Provide definitions.
2584 * testsuite/23_containers/bitset/cons/16020.cc: New.
2586 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
2588 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2589 (__pool_base): Remove unused template parameter. Add
2590 protected. Move lock data into __pool_base::_Lock. Remove static
2591 on member functions.
2592 (__pool_base::_M_get_free_list): New.
2593 (__pool_alloc): Move _S_force new here.
2594 * src/allocator.cc: Move out of line __pool_base definitions here.
2595 * config/linker-map.gnu: Export bits from __pool_base.
2597 2004-06-18 Paolo Carlini <pcarlini@suse.de>
2599 * config/locale/gnu/numeric_members.cc
2600 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2601 assignments of _M_decimal_point and _M_thousands_sep.
2602 * config/locale/gnu/time_members.cc
2603 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2604 and reformat assignments of date and time fields.
2606 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2608 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2609 to use _Data_allocate.
2610 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2611 (rope<>::_S_substring): Likewise.
2612 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2613 (rope<>::c_str()): Likewise.
2614 (rope<>::replace_with_c_str()): Likewise.
2616 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2617 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2619 (_Rope_iterator_base<>::_S_setcache): Likewise.
2620 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2621 (rope<>::_S_substring): Likewise.
2622 (rope<>::_S_dump): Likewise.
2623 (rope<>::_S_fetch_ptr): Likewise.
2624 (rope<>::_S_compare): Likewise.
2625 (rope<>::replace_with_c_str()): Likewise.
2627 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2628 * testsuite/ext/rope/2.cc: New.
2630 2004-06-16 Paolo Carlini <pcarlini@suse.de>
2631 Matt Austern <austern@apple.com>
2633 * testsuite/ext/rope/3.cc: New.
2635 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2637 * acinclude.m4: Remove useless multilib configury.
2638 * Makefile.am: Remove useless multilib rules.
2639 * aclocal.m4: Regenerate.
2640 * Makefile.in: Regenerate.
2641 * configure: Regenerate.
2643 2004-06-15 Paolo Carlini <pcarlini@suse.de>
2645 * include/ext/hashtable.h: Trivial formatting fixes.
2646 * include/ext/rb_tree: Likewise.
2648 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2650 * include/ext/hash_map: Trivial formatting fixes.
2651 * include/ext/hash_set: Likewise.
2652 * include/ext/memory: Likewise.
2653 * include/ext/numeric: Likewise.
2655 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2657 * Makefile.in: Regenerate with automake 1.8.5.
2659 * include/Makefile.in: Same.
2660 * libmath/Makefile.in: Same.
2661 * libsupc++/Makefile.in: Same.
2662 * po/Makefile.in: Same.
2663 * src/Makefile.in: Same.
2664 * testsuite/Makefile.in: Same.
2666 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2668 * include/ext/slist: Trivial formatting fixes.
2670 2004-06-14 Paolo Carlini <pcarlini@suse.de>
2672 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2673 Don't use the 'magic number' 10 in the computation of __minlen;
2674 never access __name past __minlen; in the loop over __i3, don't
2675 decrease __nmatches and increase __i3 at once, only either of
2678 2004-06-13 Paolo Carlini <pcarlini@suse.de>
2680 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2681 time_get<>::do_get_date): Use only once _M_extract_via_format,
2682 instead of going through "%X"/"%x" and calling it two times
2685 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2687 * include/ext/algorithm: Trivial formatting fixes.
2688 * include/ext/functional: Likewise.
2689 * include/ext/hash_fun.h: Likewise.
2690 * include/ext/iterator: Likewise.
2692 2004-06-12 Paolo Carlini <pcarlini@suse.de>
2694 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2695 size_type)): Reimplement using std::search.
2696 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2698 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
2700 * testsuite/performance/21_strings/string_find.cc: New.
2702 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2704 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2706 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
2708 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2709 this function return a value.
2711 2004-06-09 Paolo Carlini <pcarlini@suse.de>
2714 * include/bits/stl_deque.h: Consistently with stl_set.h, define
2715 pointer as allocator's pointer, likewise for reference,
2716 const_pointer, and const_reference.
2717 * include/bits/stl_list.h: Likewise.
2718 * include/bits/stl_map.h: Likewise.
2719 * include/bits/stl_multimap.h: Likewise.
2720 * include/bits/stl_vector.h: Likewise.
2722 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
2724 * crossconfig.m4: Remove signbit, signbitf, signbitl.
2725 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
2726 builtin math functions instead of AC_DEFINE_UNQUOTED.
2727 * configure: Regenerate.
2729 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2731 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2732 * docs/doxygen/mainpage.html: Remove links.
2734 2004-06-08 Jason Merrill <jason@redhat.com>
2736 * config/linker-map.gnu: Use wildcards for
2737 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2739 2004-06-08 Paolo Carlini <pcarlini@suse.de>
2741 * include/ext/pool_allocator.h: Convert to a global free-list,
2742 as per the original SGI/HP design: move the implementation
2743 details to struct __pool_base, from which __pool_alloc derives.
2744 * src/allocator.cc: Instantiate __pool_base.
2746 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
2747 Paolo Carlini <pcarlini@suse.de>
2749 * testsuite/testsuite_performance.h
2750 (resource_counter::allocated_memory): Make it return the right
2751 number of bytes requested by the allocators/application. This is
2752 the sbrk+mmaped memory.
2754 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2756 * include/std/std_complex.h (log): Tidy.
2758 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
2760 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2761 * testsuite/testsuite_abi.cc: Same.
2762 * configure.ac (libtool_VERSION): Bump to 6:1:0.
2763 * configure: Regenerate.
2764 * aclocal.m4: Regenerate.
2766 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2768 * include/std/std_complex.h (complex<_Tp>): Properly indent
2770 (complex<>::__rep): New.
2771 (__complex_abs): New. Dispatch to built-ins.
2773 (__complex_arg): New. Dispatch to built-ins.
2775 (__complex_cos): New. Dispatch to built-ins.
2777 (__complex_cosh): New. Dispatch to built-ins.
2779 (__complex_exp): New. Dispatch to built-ins.
2781 (__complex_log): New. Dispatch to built-ins.
2783 (__complex_sin): New. Dispatch to built-ins.
2785 (__complex_sinh): New. Dispatch to built-ins.
2787 (__complex_sqrt): New. Dispatch to built-ins.
2789 (__complex_tan): New. Dispatch to built-ins.
2791 (__complex_tanh): New. Dispatch to built-ins.
2793 (__complex_pow): New. Dispatch to built-ins.
2796 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
2797 Benjamin Kosnik <bkoz@redhat.com>
2800 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2801 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2802 * config/io/basic_file_stdio.cc (__basic_file::file): New.
2803 * config/io/basic_file_stdio.h: Define.
2805 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
2808 * docs/html/documentation.html: Update doxygen links for 3.4.0.
2810 2004-05-27 Jan Beulich <jbeulich@novell.com>
2812 * scripts/create_testsuite_files: Tweak.
2814 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
2817 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2818 bits to do the same thing.
2820 2004-05-24 Paolo Carlini <pcarlini@suse.de>
2822 * include/bits/istream.tcc (ignore): Correctly deal with
2823 n == numeric_limits<streamsize>::max().
2824 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2826 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2827 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2828 __n == numeric_limits<>::min().
2830 * include/bits/istream.tcc: Minor tweaks.
2832 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2834 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2836 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2838 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2840 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2842 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2845 Fixups for -Weffc++.
2846 * include/bits/basic_string.h (basic_string::operator=): Return
2847 pointer to this instead of result of assign. Although redundant,
2848 this doesn't impact resultant codegen.
2850 * include/bits/locale_facets.h (__numpunct_cache): Declare
2851 assignment opxserator and copy constructor private.
2852 (__timepunct_cache): Same.
2853 (__moneypunct_cache): Same.
2854 (collate): Use member initialization list for _M_c_locale_collate.
2855 * config/locale/gnu/messages_members.h: Same.
2856 * config/locale/gnu/time_members.h (__timepunct): Same.
2857 * src/codecvt.cc: Use member initialization list to initialize
2858 _M_c_locale_codecvt.
2859 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2860 * config/os/gnu-linux/ctype_noninline.h: Same.
2861 * src/locale.cc (_Impl): Same.
2862 * src/locale_init.cc: Same.
2863 * src/localename.cc: Same.
2865 * include/bits/basic_ios.h (basic_ios): Complete member
2866 initialization list.
2867 * include/bits/istream.tcc (basic_istream::sentry): Same.
2868 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2869 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2870 _M_pback to member initialization list.
2871 * include/std/std_streambuf.h: Same.
2872 * include/std/std_sstream.h: Same, for _M_mode.
2873 * src/ios.cc (ios_base): Same.
2875 * include/ext/rope: Make derived classes match exception
2877 specifications. Add copy constructors and assignment operators.
2879 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2880 constructor and assignment operator protected.
2881 (_Safe_iterator_base): Same.
2882 * include/debug/formatter.h (_Error_formatter): Define copy
2883 constructor and assignment operator.
2885 * include/backward/strstream: Declare assignment operator and copy
2886 constructor private.
2888 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2890 * testsuite/testsuite_hooks.h (func_callback): Declare copy
2891 constructor and assignment operator private.
2892 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2893 exception specifications of base class.
2894 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2895 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2896 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2898 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2900 * libsupc++/cxxabi.h: Remove duplicated and useless public and
2901 private keywords in class declarations. Format. Use
2902 stddef.h. Expose declarations to "C" compilation.
2903 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
2904 assignment operator.
2905 (__dyncast_result): Same.
2906 * libsupc++/vec.cc (uncatch_exception): Same, use member
2907 initialization list.
2909 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
2911 * testsuite/abi_check.cc: Add unistd.h.
2913 2004-05-22 Paolo Carlini <pcarlini@suse.de>
2916 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
2917 __int_to_char(unsigned long long)): Showpos is not relevant
2919 * testsuite/22_locale/num_put/put/char/15565.cc: New.
2920 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
2922 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
2924 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
2925 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
2926 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2927 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
2928 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
2929 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
2931 2004-05-21 Matthias Klose <doko@debian.org>
2933 * docs/doxygen/run_doxygen: Bump required version.
2935 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
2937 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
2938 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
2940 2004-05-21 Paolo Carlini <pcarlini@suse.de>
2942 * include/bits/istream.tcc (ignore): Remove redundant line.
2943 (readsome): Tidy, closely following 27.6.1.3, p30.
2945 2004-05-20 Paolo Carlini <pcarlini@suse.de>
2947 * include/bits/istream.tcc (operator>>(basic_istream<>&,
2948 basic_string<>&)): Use a temporary buffer, thus avoiding
2949 reallocation for common case.
2950 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2952 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2955 * include/bits/istream.tcc: Const-ification of a few variables.
2957 * include/bits/ostream.tcc: Trivial formatting fixes and
2958 const-ification of some variables.
2960 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
2964 * docs/doxygen/Intro.3: Remove Allocators.3.
2965 Add new extension headers, extension namespace list.
2966 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
2967 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
2968 __gnu_debug::. Remove __policy_ renames.
2969 * docs/doxygen/guide.html: Add dot note.
2970 * docs/doxygen/stdheader.cc: Edit, add files.
2971 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
2973 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
2975 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
2977 2004-05-18 Jan Beulich <jbeulich@novell.com>
2980 * scripts/create_testsuite_files: Also find source files through
2983 2004-05-18 Jan Beulich <jbeulich@novell.com>
2986 * testsuite/lib/libstdc++.exp: Make test files writable.
2988 2004-05-18 Paolo Carlini <pcarlini@suse.de>
2990 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
2993 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
2995 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
2996 allocation loop which removes blocks from the global free list
2997 from O(N) to O(1) when the required blocks are <= the number
3000 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
3002 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
3004 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
3006 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
3007 * testsuite/23_containers/deque/14340.cc: New.
3008 * testsuite/23_containers/list/14340.cc: New.
3009 * testsuite/23_containers/map/14340.cc: New.
3010 * testsuite/23_containers/multimap/14340.cc: New.
3011 * testsuite/23_containers/multiset/14340.cc: New.
3012 * testsuite/23_containers/set/14340.cc: New.
3013 * testsuite/23_containers/vector/14340.cc: New.
3015 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
3018 * include/debug/safe_iterator.h (_Safe_iterator converting
3019 constructor): Only allow declaration to instantiate when the
3020 incoming _Safe_iterator has exactly the right iterator type.
3022 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
3024 * include/bits/boost_concept_check.h: Fix old attribute syntax.
3025 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
3026 to pass concept-checks.
3027 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3028 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3029 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3031 2004-05-16 Paolo Carlini <pcarlini@suse.de>
3033 * include/std/std_bitset.h: Minor formatting fixes.
3035 2004-05-16 Paolo Carlini <pcarlini@suse.de>
3037 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3038 Consistently update __bin._M_free[0].
3039 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
3040 __bin._M_free[0] to simplify the while loop (i.e., the number
3041 of iterations becomes known at the outset).
3043 2004-05-15 Paolo Carlini <pcarlini@suse.de>
3045 * include/std/std_bitset.h: Trivial formatting fixes.
3047 2004-05-14 Paolo Carlini <pcarlini@suse.de>
3048 Ivan Godard <igodard@pacbell.net>
3051 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
3052 * testsuite/23_containers/bitset/ext/15361.cc: New.
3054 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3057 * crossconfig.m4: Add C99 math bits for linux crosses.
3058 * configure: Regenerate.
3060 2004-05-13 Simon Marshall <simon.marshall@misys.com>
3061 Benjamin Kosnik <bkoz@redhat.com>
3064 * include/bits/locale_facets.h: Fix for -fno-for-scope.
3065 * include/debug/safe_sequence.h: Same.
3066 * include/debug/safe_iterator.tcc: Same.
3067 * src/debug.cc: Same.
3068 * src/locale.cc: Same.
3069 * src/locale_init.cc: Same.
3070 * src/localename.cc: Same.
3071 * config/locale/gnu/ctype_members.cc: Same.
3072 * config/locale/gnu/numeric_members.cc: Same.
3073 * testsuite/testsuite_abi.cc: Same.
3074 * testsuite/testsuite_hooks.cc: Same.
3076 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
3078 * docs/html/abi.html: Document effect of -fabi-version on value
3079 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
3082 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3085 * docs/html/faq/index.html: Update docs for libsupc++ usage.
3087 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3090 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
3092 (_GLIBCXX_mutex_address): Same.
3093 (_GLIBCXX_once): Same.
3094 (_GLIBCXX_mutex_init): Same.
3095 (_GLIBCXX_mutex_address_init): Same.
3097 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
3099 * docs/html/abi.html: New.
3100 * docs/html/abi.txt: Remove.
3101 * docs/html/documentation.html: Add link.
3102 * testsuite/Makefile.am: Add files.
3103 * testsuite/Makefile.in: Regenerated.
3104 * testsuite/abi_check.cc: Move and modify code into...
3105 * testsuite/testsuite_abi.cc: Add.
3106 * testsuite/testsuite_abi.h: Add.
3108 * docs/html/17_intro/TODO: Update.
3109 * include/bits/stl_pair.h: Format.
3111 2004-05-06 Matthias Klose <doko@debian.org>
3113 * include/backward/iterator.h: Add GPL copyright info,
3114 with exception clause.
3115 * include/bits/boost_concept_check.h: Likewise.
3117 * libsupc++/tinfo.h: Likewise.
3118 * po/string_literals.cc: Likewise.
3120 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
3122 * acinclude.m4: Replace -W with more speaking -Wextra.
3123 * configure: Rebuilt.
3125 2004-05-03 Paolo Carlini <pcarlini@suse.de>
3127 Optimize locale::_M_impl->_M_names for the most common cases:
3128 !_M_names[0] means unnamed; !_M_names[1] means all the categories
3129 the same name (_M_names[0] && _M_names[1] means that the full set
3130 of _M_names must be processed, the general case).
3131 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
3132 Tweak, saving work when !_M_names[1].
3133 (locale::locale(const locale&, _Facet*): Simplify: now just setting
3134 _M_names[0] = 0 means unnamed.
3135 * src/locale.cc (locale::operator==): Deal first with the common,
3136 easy cases, otherwise fall back to locale::name().
3137 (locale::name()): Tweak, if !_M_names[0] just return "*".
3138 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
3139 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
3140 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
3141 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
3142 Simplify when !std::strchr, just updating _M_names[0]; clean up.
3143 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
3144 for the general case (full set of names), then do the usual work;
3147 * src/locale.cc (locale::name()): Reserve space in __ret.
3148 * src/locale_init.cc (locale::global(const locale&)): Save
3149 the name in a temporary.
3150 * src/localename.cc (locale::locale(const char*)): Reserve space
3153 2004-04-29 Paolo Carlini <pcarlini@suse.de>
3155 * src/locale.cc (locale::operator==): Always avoid constructing
3156 locale::name(), directly compare pairs of _M_names.
3158 2004-04-26 Paolo Carlini <pcarlini@suse.de>
3160 * include/bits/istream.tcc: Fix comment.
3162 2004-04-26 Paolo Carlini <pcarlini@suse.de>
3164 * include/bits/stl_vector.h: Trivial formatting fixes.
3165 * include/bits/vector.tcc: Likewise.
3167 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3169 PR libstdc++/15002 (continued again)
3170 * include/bits/istream.tcc (getline(basic_istream<>&,
3171 basic_string<>&, _CharT)): Use a temporary buffer, thus
3172 avoiding reallocation for common case.
3174 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3175 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
3176 of temporary buffer to a power of two.
3178 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
3180 2004-04-25 Paolo Carlini <pcarlini@suse.de>
3182 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3184 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3186 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3188 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3189 Petur Runolfsson <peturr02@ru.is>
3191 PR libstdc++/15002 (continued)
3192 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
3193 streamsize, char_type)): Use traits::find/copy in a loop to speed
3194 up greatly the function in the common case (I/O buffer size >> 1).
3196 2004-04-24 Paolo Carlini <pcarlini@suse.de>
3198 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
3200 * include/bits/istream.tcc (getline(basic_istream<>&,
3201 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
3202 of sbumpc(), consistently with the other functions, thus also
3203 dealing correctly with the case of exceeded string::max_size().
3205 2004-04-24 Matthias Klose <doko@debian.org>
3207 Jonathan Wakely <cow@compsoc.man.ac.uk>
3208 * docs/html/configopts.html: Fix reference to allocator config option.
3210 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
3212 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3213 * configure: Regenerate.
3215 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
3217 PR libstdc++/15047, libstdc++/11610
3218 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3219 (libstdc++_init): Don't pass outdir to v3-copy-files.
3221 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3223 * include/bits/deque.tcc: Trivial formatting fixes.
3224 * include/bits/stl_deque.h: Likewise.
3225 * include/bits/stl_list.h: Likewise.
3226 * include/bits/stl_tree.h: Likewise.
3228 2004-04-21 Paolo Carlini <pcarlini@suse.de>
3229 Andrew Pinski <pinskia@physics.uc.edu>
3231 * include/bits/basic_string.tcc (_M_mutate): Don't compute
3232 __src unnecessarily.
3234 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
3236 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3237 Clarify assertion, set test variable to false before assert.
3238 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3239 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3240 * testsuite/27_io/ios_base/storage/2.cc: Same.
3242 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3244 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3245 * testsuite/27_io/fpos/14320-3.cc: Same.
3247 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3248 * testsuite/27_io/fpos/1.cc: Same.
3249 * testsuite/27_io/basic_stringstream/2.cc: Same.
3250 * testsuite/27_io/basic_stringbuf/4.cc: Same.
3251 * testsuite/27_io/basic_stringbuf/1.cc: Same.
3252 * testsuite/27_io/basic_stringbuf/2.cc: Same.
3253 * testsuite/27_io/basic_streambuf/2.cc: Same.
3254 * testsuite/27_io/basic_ostringstream/2.cc: Same.
3255 * testsuite/27_io/basic_ostream/2.cc: Same.
3256 * testsuite/27_io/basic_ofstream/2.cc: Same.
3257 * testsuite/27_io/basic_istringstream/2.cc: Same.
3258 * testsuite/27_io/basic_istream/2.cc: Same.
3259 * testsuite/27_io/basic_iostream/2.cc: Same.
3260 * testsuite/27_io/basic_ios/2.cc: Same.
3261 * testsuite/27_io/basic_ifstream/2.cc: Same.
3262 * testsuite/27_io/basic_fstream/2.cc: Same.
3263 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3265 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3266 unsigned against zero.
3267 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3268 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3270 * testsuite/18_support/new_delete_placement.cc: Initialize
3271 variables before first use.
3272 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3273 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3274 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3275 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3277 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3278 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3280 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3281 * testsuite/27_io/types/2.cc: Same.
3283 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3285 * testsuite/27_io/fpos/14775.cc: Same.
3287 2004-04-19 Paolo Carlini <pcarlini@suse.de>
3289 PR libstdc++/15002 (partial)
3290 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3291 Special case __n2 == 1, not calling traits_type::assign/copy.
3293 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
3295 * include/bits/stl_bvector.h: Use _M_impl._M_start.
3297 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
3299 * include/bits/c++config (_GLIBCXX_STD): New.
3300 * src/list.cc: Use it.
3301 * include/std/std_bitset.h: Same.
3302 * include/bits/vector.tcc: Same.
3303 * include/bits/stl_set.h: Same.
3304 * include/bits/stl_multiset.h: Same.
3305 * include/bits/stl_multimap.h: Same.
3306 * include/bits/stl_map.h: Same.
3307 * include/bits/stl_list.h: Same.
3308 * include/bits/stl_vector.h: Same.
3309 * include/bits/stl_bvector.h: Same.
3310 * include/bits/stl_deque.h: Same.
3311 * include/bits/deque.tcc: Same.
3312 * include/bits/list.tcc: Same.
3313 * include/debug/vector: Same.
3314 * include/debug/set.h: Same.
3315 * include/debug/multiset.h: Same.
3316 * include/debug/multimap.h: Same.
3317 * include/debug/map.h: Same.
3318 * include/debug/list: Same.
3319 * include/debug/deque: Same.
3320 * include/debug/bitset: Same.
3321 * include/debug/formatter.h (__gnu_debug): Remove using directive.
3322 Add using declaration for std::type_info.
3323 * include/debug/safe_iterator.h: Add using declaration for
3324 std::iterator_traits and std::pair.
3325 * src/debug_list.cc: New.
3326 * src/Makefile.am: Add debug_list.cc.
3327 * src/Makefile.in: Regenerate.
3328 * config/linker-map.gnu: Add _List_node_base exports for std and
3331 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3332 idiom that other containers use.
3333 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3335 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3338 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3340 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3341 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3343 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3345 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3347 * config.h.in: Regenerate.
3349 2004-04-16 Paolo Carlini <pcarlini@suse.de>
3351 * config/locale/generic/monetary_members.cc
3352 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3353 btowc unnecessarily, just cast to wchar_t (the concerned chars
3354 all belong to the basic character set).
3355 * config/locale/generic/numeric_members.cc
3356 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3357 * config/locale/gnu/monetary_members.cc
3358 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3359 * config/locale/gnu/numeric_members.cc
3360 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3362 2004-04-15 Paolo Carlini <pcarlini@suse.de>
3364 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3365 avoid constructing unnecessarily this->name().
3367 2004-04-14 Zack Weinberg <zack@codesourcery.com>
3369 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3370 Change definition of CXX to use $(shell) instead of backticks.
3371 * testsuite/Makefile.in: Regenerate.
3373 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
3375 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3376 Minor formatting fixes.
3377 * testsuite/performance/20_util/allocator/map_mt_find.cc:
3380 2004-04-12 Paolo Carlini <pcarlini@suse.de>
3382 * config/locale/gnu/numeric_members.cc
3383 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3384 in __uselocale, since btowc is called for chars belonging to
3385 the basic character set.
3387 2004-04-09 Paolo Carlini <pcarlini@suse.de>
3389 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3390 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3391 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3392 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3393 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3394 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3395 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3396 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3397 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3398 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3399 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3400 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3401 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3402 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3403 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3404 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3405 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3407 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3409 * config/locale/generic/time_members.cc
3410 (__timepunct<char>::_M_initialize_timepunct,
3411 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3412 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3413 * config/locale/gnu/time_members.cc
3414 (__timepunct<char>::_M_initialize_timepunct,
3415 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3416 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3417 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3419 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3420 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3421 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3422 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3423 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3424 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3425 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3426 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3427 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3428 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3429 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3430 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3431 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3432 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3433 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3434 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3435 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3436 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3437 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3438 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3439 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3440 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3441 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3442 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3443 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3444 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3445 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3446 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3447 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3448 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3449 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3450 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3451 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3452 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3453 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3454 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3456 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3458 2004-04-07 Paolo Carlini <pcarlini@suse.de>
3460 * config/locale/gnu/monetary_members.cc
3461 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3462 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3463 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3464 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3465 * config/locale/gnu/numeric_members.cc
3466 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3467 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3469 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
3471 Fixups for EDG front end.
3472 * include/ext/rope: Instead of non-existent function
3473 _Data_allocate, use allocator's allocate. Use this.
3474 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3475 enumerations from _Rope_RopeRep here.
3476 * include/ext/ropeimpl.h: Same.
3477 * src/ext-inst.cc (_S_min_len): Fix up definition.
3479 * config/locale/gnu/ctype_members.cc: Qualify base class members
3481 * config/locale/generic/ctype_members.cc: Same.
3482 * config/locale/gnu/messages_members.h: Same.
3483 * config/locale/generic/messages_members.h: Same.
3484 * src/ctype.cc: Same.
3485 * include/bits/codecvt.h: Same.
3487 * include/bits/boost_concept_check.h: Declare.
3488 (__error_type_must_be_an_unsigned_integer_type): Remove this.
3489 (__error_type_must_be_an_integer_type): Remove this.
3490 (__error_type_must_be_a_signed_integer_type): Remove this.
3492 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3494 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3495 specification to definition.
3496 (__cxa_allocate_exception): Same.
3497 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3498 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3499 (__cxa_get_globals): Same.
3501 * libsupc++/del_op.cc: Add comment about freestanding.
3503 2004-04-05 Paolo Carlini <pcarlini@suse.de>
3505 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3506 The critical section is actually very small, only two assignments.
3508 2004-04-04 Paolo Carlini <pcarlini@suse.de>
3509 Petur Runolfsson <peturr02@ru.is>
3511 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3512 adapted from libstdc++/11378.
3514 2004-04-03 Paolo Carlini <pcarlini@suse.de>
3516 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3517 some duplicated code.
3518 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3519 in the single threaded case.
3520 * testsuite/performance/20_util/allocator/list_sort_search.cc:
3521 Reorder and renumber the tests consistently with the other testfiles.
3522 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3523 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3524 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3526 2004-04-02 Paolo Carlini <pcarlini@suse.de>
3528 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3529 Rearrange arithmetic to avoid computing two divisions at
3532 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3534 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3535 Streamline the second half, wrapping it in a single
3536 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3537 conditionals inside loops.
3539 2004-04-01 Paolo Carlini <pcarlini@suse.de>
3542 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3543 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3544 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3545 to _GLIBCXX_RES_LIMITS.
3546 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3548 * testsuite/testsuite_hooks.h: Declare set_file_limit.
3549 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3550 and setrlimit(RLIMIT_FSIZE).
3551 * testsuite/27_io/fpos/14775.cc: New.
3552 * config.h.in: Regenerate.
3553 * configure: Likewise.
3555 2004-03-31 Paolo Carlini <pcarlini@suse.de>
3557 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3558 In v3 uses of sscanf, the special floating-point numbers INF,
3559 INFINITY, etc., cannot occur in input, therefore, if the latter
3560 is too large, ERANGE is always stored in errno, no need of finitel.
3562 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
3565 * include/bits/stl_tree.h: Adjust initialization list order.
3567 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
3569 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3571 2004-03-29 Paolo Carlini <pcarlini@suse.de>
3573 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3574 on allocator behavior, the memory pointed by data2 may well be not
3577 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
3580 * include/bits/basic_string.tcc
3581 (basic_string::basic_string(const basic_string&)): Pass to
3582 _Rep::_M_grab the actual allocator of the string being constructed
3583 not the default constructed one.
3585 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
3588 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3589 (__enc_traits::_M_destroy): New.
3590 (__enc_traits::~__enc_traits): Use it.
3591 (__enc_traits::operator=): Use _M_destroy, _M_init.
3592 (__enc_traits::__enc_traits): Same.
3594 2004-03-27 Petur Runolfsson <peturr02@ru.is>
3596 * testsuite/ext/enc_filebuf/char/13598.cc: New.
3598 2004-03-27 Paolo Carlini <pcarlini@suse.de>
3600 * include/ext/mt_allocator.h: Uglify consistently names of
3601 variables, members and classes; tidy.
3603 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
3605 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3606 Deallocation loop rewrote.
3608 2004-03-26 Paolo Carlini <pcarlini@suse.de>
3610 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3611 __mt_alloc<>::deallocate): Protect two instances of
3612 block->thread_id with __GTHREADS.
3614 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
3616 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3617 default argument in constructors.
3618 (_Rb_tree::_M_empty_initialize): Remove.
3620 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
3622 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3623 * testsuite/23_containers/set/operators/1_neg.cc: Same.
3625 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3627 * include/bits/cpp_type_traits.h: Changed __is_pod
3628 completely. Now, it does not use any of the previous type_traits
3629 to detect the pod types, and it also detects function pointers as
3632 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3633 which encapsulates the internal implementation of an rb_tree. Made
3634 the allocator a base class of this class instead of the rb_tree,
3635 which was not conforming. This _Rb_tree_impl class is also
3636 specialized on whether the _Compare parameter is a POD type or
3637 not. If so, then it maintains the comparison function as a data
3638 member, otherwise it makes the _Compare parameter a base class of
3639 itself. Also, _M_key_compare is now a function instead of a data
3640 member, so that the above trick can work properly. Delegated the
3641 initialization of the other data members to this newly created
3642 class. Also, now other member functions of rb_tree must refer to
3643 _M_key_compare as _M_impl._M_key_compare(). The other data members
3644 (*) can be referenced to as _M_impl.(*), where
3645 (*) includes _M_header, and _M_node_count.
3647 2004-03-25 Paolo Carlini <pcarlini@suse.de>
3649 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3650 Add _M_min_bin, the size in bytes of the smallest bin.
3651 (__mt_alloc<>::tune()): Tweak accordingly.
3652 (__mt_alloc<>::tune(size_t, ...)): Likewise.
3653 (__mt_alloc<>::block_record): Change to a union: members next
3654 and thread_id are never used at the same time.
3655 (__mt_alloc<>::allocate): Update consistently.
3656 (__mt_alloc<>::deallocate): Likewise.
3657 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3658 _S_bin_size for the configurable _M_min_size.
3660 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3662 * include/bits/stl_list.h: Created a _List_impl class and made it
3663 derive from the allocator, instead of the list deriving from the
3664 allocator class, which was not conformant. Changed all references
3665 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3666 as above (changed all references to the concerned variables).
3668 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3670 * include/bits/stl_deque.h: Created a _Deque_impl class and made
3671 it derive from the allocator, instead of the deque deriving from
3672 the allocator class, which was not conformant. Changed all
3673 references to the _M_start, _M_finish, _M_map, and _M_map_size to
3675 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3676 qualification in 2 places where it was missing.
3677 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3679 * include/bits/deque.tcc: Same as above (changed all references to
3680 the concerned variables).
3682 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3684 * include/bits/stl_vector.h: Created a _Vector_impl class and made
3685 it derive from the allocator, instead of the _Vector_base class,
3686 deriving from the allocator which was not conformant. Changed all
3687 references to the _M_start, _M_finish, and _M_end_of_storage to
3689 * include/bits/vector.tcc: Same as above (changed all references
3690 to the concerned variables).
3692 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
3694 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3695 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3696 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3698 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3700 * include/ext/malloc_allocator.h: Fixed the construct function to
3701 call global placement new instead of assignment. Added a check
3702 after the return from malloc to check whether returned pointer is
3703 NULL, and if so, throw std::bad_alloc().
3704 * include/ext/debug_allocator.h: Added a check in the deallocate
3705 function to check whether the user has passed a NULL pointer or
3708 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
3710 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3712 2004-03-24 Andreas Schwab <schwab@suse.de>
3714 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3715 warning from IA64 assembler.
3717 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
3719 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3720 function call __builtin_ctz instead of the while loop.
3721 (allocate) -> If condition has __builtin_expect.
3722 (deallocate) -> Ditto.
3723 Renamed a few left-over variables and typedefs according to the
3724 C++STYLE mentioned in the documentation.
3725 Protected calls to __gthread* by __gthread_active_p(), whose value
3726 is cached in the local variable __threads_active.
3728 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
3730 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3731 Use linear algorithm for producer.
3733 2004-03-24 Paolo Carlini <pcarlini@suse.de>
3735 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3736 __mt_alloc<>::deallocate): Avoid redundant conditionals.
3738 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
3740 * include/bits/locale_facets.h: Tweaks for 80 column.
3741 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3742 (__moneypunct_cache::_M_cache): Same.
3743 (num_get): Don't inherit from __num_base.
3745 (money_get): Don't inherit from money_base.
3747 (__timepunct::_M_am_pm_format): New.
3748 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3749 (time_get::_M_extract_name): Same.
3750 (time_get::_M_extract_via_format): Same.
3751 * include/bits/locale_facets.tcc: Tweaks for 80 column.
3752 Use _M_getloc instead of getloc.
3753 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3754 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3755 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3757 2004-03-22 Paolo Carlini <pcarlini@suse.de>
3759 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3760 * configure: Regenerate.
3761 * config/allocator/pool_allocator_base.h: New.
3762 * include/ext/pool_allocator.h: Convert to a standard-conforming
3764 * src/allocator.cc: Tweak instantiations.
3765 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3766 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3767 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3768 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3769 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3770 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3772 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
3774 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
3775 inline" and attribute-unused. Qualify parameter __mem with
3777 (__exchange_and_add): Ditto. Add back memory clobber to asm.
3779 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3781 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
3783 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
3785 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
3787 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
3789 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
3791 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
3793 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3795 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3797 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3799 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3802 2004-03-20 Paolo Carlini <pcarlini@suse.de>
3804 * include/std/std_valarray.h: Document DR389 [Ready].
3805 * docs/html/ext/howto.html: Add an entry for DR389.
3807 2004-03-19 Michael Eager <eager@mvista.com>
3809 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
3812 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3814 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
3816 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
3817 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
3818 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
3819 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
3820 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
3821 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
3822 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
3823 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
3824 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
3826 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3827 Petur Runolfsson <peturr02@ru.is>
3830 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
3831 no way to find out the conversion used by the underlying FILE*.
3832 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
3833 * testsuite/27_io/objects/char/9.cc: Tweak.
3835 2004-03-19 Paolo Carlini <pcarlini@suse.de>
3838 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
3839 memory allocation/deallocation calls.
3840 * testsuite/ext/14648.cc: New.
3842 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
3845 * include/backward/bvector.h (bit_vector): Allocator is in std
3848 2004-03-19 Phil Edwards <phil@codesourcery.com>
3850 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
3851 not libiconv. SUBST this variable as well.
3852 * testsuite/Makefile.am (site.exp): New target, based on that
3853 created by automake. Also set libiconv.
3855 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
3856 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
3857 testsuite/Makefile.in: Regenerate.
3859 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
3861 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
3862 new_allocator for all hosts.
3863 * configure: Regenerate.
3865 2004-03-16 Paolo Carlini <pcarlini@suse.de>
3867 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
3868 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3870 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3872 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3873 Adjust the logic underlying the parsing of symbol to deal
3874 correctly with an optional sign component (i.e., when either
3875 negative_sign or positive_sign is empty)
3876 * testsuite/22_locale/money_get/get/char/19.cc: New.
3877 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
3879 2004-03-15 Paolo Carlini <pcarlini@suse.de>
3881 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3882 Do not accept an incomplete currency symbol.
3883 * testsuite/22_locale/money_get/get/char/18.cc: New.
3884 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
3886 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
3888 * config/allocator: New.
3889 * config/allocator/bitmap_allocator_base.h: New.
3890 * config/allocator/malloc_allocator_base.h: New.
3891 * config/allocator/mt_allocator_base.h: New.
3892 * config/allocator/new_allocator_base.h: New.
3893 * include/bits/allocator.h: Include c++allocator.h.
3894 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
3895 * aclocal.m4: Regenerate.
3896 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
3897 * configure: Regenerate.
3898 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
3899 * include/Makefile.in: Regenerate.
3900 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
3902 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3904 * include/bits/allocator.h: Revert.
3906 2004-03-12 Paolo Carlini <pcarlini@suse.de>
3908 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
3909 * include/bits/gslice_array.h: Add comment about DR 253.
3910 * include/bits/indirect_array.h: Likewise.
3911 * include/bits/mask_array.h: Likewise.
3912 * include/bits/slice_array.h: Likewise.
3914 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
3916 * testsuite/20_util/allocator/14176.cc: New.
3917 * include/ext/mt_allocator.h: Formatting fixes.
3919 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
3921 * include/Makefile.am (ext_headers): Add
3922 ${ext_srcdir}/bitmap_allocator.h .
3923 * include/Makefile.in: Regenerate.
3924 * docs/html/ext/ballocator_doc.txt: New file.
3925 * include/ext/bitmap_allocator.h: New file.
3926 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
3928 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
3929 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
3930 test for the bitmap_allocator<>.
3931 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
3932 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
3933 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
3935 2004-03-11 Paolo Carlini <pcarlini@suse.de>
3937 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3938 pow(const _Tp&, const complex&), pow(const complex&,
3939 const complex&)): Fully qualify with std:: a few calls.
3940 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
3942 2004-03-11 Steven Bosscher <stevenb@suse.de>
3945 * include/c_std/cmath.tcc (__cmath_power): Define inline.
3947 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3949 * configure.ac: Bump AC_PREREQ to 2.59.
3951 2004-03-10 Paolo Carlini <pcarlini@suse.de>
3953 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
3955 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
3956 Paolo Carlini <pcarlini@suse.de>
3959 * include/std/std_complex.h (pow(const complex&, const _Tp&),
3960 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
3961 * testsuite/26_numerics/complex/13450.cc: New.
3963 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
3964 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
3966 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
3969 * include/bits/gslice_array.h (gslice_array()): Make public.
3970 (operator=(gslice_array)): Make public. Implement.
3971 * include/bits/indirect_array.h (indirect_array()): Make public.
3972 * include/bits/mask_array.h (mask_array()): Make public.
3973 (operator=(mask_array)): Make public. Implement.
3974 * include/bits/valarray_array.tcc (__valarray_copy):
3975 Comment. Add versions for gslice_array and mask_array.
3976 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
3978 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
3980 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
3982 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
3983 * testsuite/23_containers/set/modifiers/swap.cc: Same.
3984 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3985 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3986 * testsuite/23_containers/map/modifiers/swap.cc: Same.
3987 * testsuite/23_containers/list/modifiers/swap.cc: Same.
3989 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
3991 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
3994 * testsuite/23_containers/deque/modifiers/swap.cc: New.
3995 * testsuite/23_containers/list/modifiers/swap.cc: New.
3996 * testsuite/23_containers/map/modifiers/swap.cc: New.
3997 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
3998 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
3999 * testsuite/23_containers/set/modifiers/swap.cc: New.
4000 * testsuite/23_containers/vector/modifiers/swap.cc: New.
4002 2004-03-08 Petur Runolfsson <peturr02@ru.is>
4005 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
4007 2004-03-08 Paolo Carlini <pcarlini@suse.de>
4009 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
4010 * include/bits/stl_multiset.h: Add comment about DR 103.
4011 * include/bits/stl_set.h: Likewise.
4013 2004-03-08 Paolo Carlini <pcarlini@suse.de>
4015 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4016 The value _space_ indicates that at least one space is required
4018 * testsuite/22_locale/money_get/get/char/17.cc: New.
4019 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
4021 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
4022 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
4024 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
4025 Remove redundant conditional on __str.size().
4027 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
4029 * include/bits/allocator.h: Switch defaults to mt_alloc.
4031 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
4033 * include/ext/mt_allocator.h (_S_initialize): If
4034 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
4036 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
4039 * src/locale_init.cc (locale::locale): Lock critical regions with
4041 (locale::global): Same.
4042 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
4043 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
4044 (__glibcxx_mutex_lock): Same.
4046 * config/cpu/generic/atomicity.h: Remove
4047 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
4048 * src/misc-inst.cc: Move all locking bits out of this file.
4050 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
4051 * src/misc-inst.cc: Same.
4052 * config/cpu/hppa/atomicity.h: Same.
4054 * config/linker-map.gnu: Remove types in the signature of atomic
4055 exports, as they may vary.
4057 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4059 * include/bits/locale_facets.tcc: Tweak the comment preceding
4060 has_facet: doesn't throw.
4062 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4064 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
4065 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4066 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4067 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4068 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4069 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4070 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4071 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4073 2004-03-06 Paolo Carlini <pcarlini@suse.de>
4075 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4076 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
4077 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
4078 * testsuite/testsuite_character.h (struct __gnu_test::character):
4080 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
4083 2004-03-05 Paolo Carlini <pcarlini@suse.de>
4085 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
4087 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
4089 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
4091 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
4093 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4094 * testsuite/23_containers/list/invalidation/1.cc: Same.
4095 * testsuite/23_containers/list/invalidation/2.cc: Same.
4096 * testsuite/23_containers/list/invalidation/3.cc: Same.
4097 * testsuite/23_containers/list/invalidation/4.cc: Same.
4098 * testsuite/23_containers/map/invalidation/2.cc: Same.
4099 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
4100 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4101 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
4102 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4103 * testsuite/23_containers/set/invalidation/1.cc: Same.
4104 * testsuite/23_containers/set/invalidation/2.cc: Same.
4105 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4106 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4107 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4108 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4110 2004-03-04 Paolo Carlini <pcarlini@suse.de>
4112 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
4114 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
4116 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
4117 from the dg-options.
4118 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
4119 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
4120 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
4121 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
4122 * testsuite/23_containers/vector/resize/1.cc: Likewise.
4123 * testsuite/26_numerics/complex_value.cc: Likewise.
4124 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
4125 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
4126 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
4127 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
4128 * testsuite/27_io/objects/char/5.cc: Likewise.
4129 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
4130 * testsuite/backward/11460.cc: Likewise.
4131 * testsuite/thread/pthread7-rope.cc: Likewise.
4133 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
4134 missing test variable.
4135 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
4136 missing test variable.
4138 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
4140 * testsuite/20_util/allocator/1.cc: Provide explicit
4141 instantiations for non-weak systems.
4142 * testsuite/20_util/binders.cc: Same.
4143 * testsuite/20_util/allocator/8230.cc: Same.
4144 * testsuite/20_util/allocator/10378.cc: Same.
4145 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4146 * testsuite/22_locale/ctype/is/char/2.cc: Same.
4147 * testsuite/thread/pthread7-rope.cc: Same.
4148 * testsuite/thread/pthread6.cc: Same.
4149 * testsuite/thread/pthread5.cc: Same.
4150 * testsuite/thread/pthread4.cc: Same.
4151 * testsuite/thread/pthread1.cc: Same.
4152 * testsuite/ext/rope.cc: Same.
4153 * testsuite/ext/hash_set.cc: Same.
4154 * testsuite/ext/hash_map.cc: Same.
4155 * testsuite/ext/concept_checks.cc: Same.
4156 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
4157 * testsuite/25_algorithms/unique/2.cc: Same.
4158 * testsuite/25_algorithms/unique/1.cc: Same.
4159 * testsuite/25_algorithms/rotate.cc: Same.
4160 * testsuite/25_algorithms/min_max.cc: Same.
4161 * testsuite/25_algorithms/equal.cc: Same.
4162 * testsuite/24_iterators/rel_ops.cc: Same.
4163 * testsuite/24_iterators/iterator.cc: Same.
4164 * testsuite/24_iterators/insert_iterator.cc: Same.
4165 * testsuite/24_iterators/front_insert_iterator.cc: Same.
4166 * testsuite/24_iterators/back_insert_iterator.cc: Same.
4167 * testsuite/23_containers/vector/resize/1.cc: Same.
4168 * testsuite/23_containers/vector/modifiers/2.cc: Same.
4169 * testsuite/23_containers/vector/modifiers/1.cc: Same.
4170 * testsuite/23_containers/vector/invalidation/4.cc: Same.
4171 * testsuite/23_containers/vector/invalidation/3.cc: Same.
4172 * testsuite/23_containers/vector/invalidation/2.cc: Same.
4173 * testsuite/23_containers/vector/invalidation/1.cc: Same.
4174 * testsuite/23_containers/vector/element_access/1.cc: Same.
4175 * testsuite/23_containers/vector/cons/6513.cc: Same.
4176 * testsuite/23_containers/vector/cons/3.cc: Same.
4177 * testsuite/23_containers/vector/cons/2.cc: Same.
4178 * testsuite/23_containers/vector/cons/1.cc: Same.
4179 * testsuite/23_containers/vector/capacity/8230.cc: Same.
4180 * testsuite/23_containers/vector/capacity/1.cc: Same.
4181 * testsuite/23_containers/vector/bool/6886.cc: Same.
4182 * testsuite/23_containers/stack/members/7158.cc: Same.
4183 * testsuite/23_containers/set/invalidation/2.cc: Same.
4184 * testsuite/23_containers/set/invalidation/1.cc: Same.
4185 * testsuite/23_containers/queue/members/7157.cc: Same.
4186 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
4187 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4188 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
4189 * testsuite/23_containers/multiset/insert/1.cc: Same.
4190 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4191 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
4192 * testsuite/23_containers/map/operators/1.cc: Same.
4193 * testsuite/23_containers/map/invalidation/2.cc: Same.
4194 * testsuite/23_containers/map/invalidation/1.cc: Same.
4195 * testsuite/23_containers/map/insert/1.cc: Same.
4196 * testsuite/23_containers/list/operators/4.cc: Same.
4197 * testsuite/23_containers/list/operators/3.cc: Same.
4198 * testsuite/23_containers/list/operators/2.cc: Same.
4199 * testsuite/23_containers/list/operators/1.cc: Same.
4200 * testsuite/23_containers/list/modifiers/3.cc: Same.
4201 * testsuite/23_containers/list/modifiers/2.cc: Same.
4202 * testsuite/23_containers/list/modifiers/1.cc: Same.
4203 * testsuite/23_containers/list/invalidation/4.cc: Same.
4204 * testsuite/23_containers/list/invalidation/3.cc: Same.
4205 * testsuite/23_containers/list/invalidation/2.cc: Same.
4206 * testsuite/23_containers/list/invalidation/1.cc: Same.
4207 * testsuite/23_containers/list/cons/9.cc: Same.
4208 * testsuite/23_containers/list/cons/8.cc: Same.
4209 * testsuite/23_containers/list/cons/7.cc: Same.
4210 * testsuite/23_containers/list/cons/6.cc: Same.
4211 * testsuite/23_containers/list/cons/5.cc: Same.
4212 * testsuite/23_containers/list/cons/4.cc: Same.
4213 * testsuite/23_containers/list/cons/3.cc: Same.
4214 * testsuite/23_containers/list/cons/2.cc: Same.
4215 * testsuite/23_containers/list/cons/1.cc: Same.
4216 * testsuite/23_containers/list/capacity/1.cc: Same.
4217 * testsuite/23_containers/deque/operators/1.cc: Same.
4218 * testsuite/23_containers/deque/invalidation/4.cc: Same.
4219 * testsuite/23_containers/deque/invalidation/3.cc: Same.
4220 * testsuite/23_containers/deque/invalidation/2.cc: Same.
4221 * testsuite/23_containers/deque/invalidation/1.cc: Same.
4222 * testsuite/23_containers/deque/cons/2.cc: Same.
4223 * testsuite/23_containers/deque/cons/1.cc: Same.
4225 * src/allocator.cc: Add char, wchar_t instantiations
4226 to match extern template declarations in memory.h.
4228 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4230 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4231 Fix warning regression.
4233 2004-03-03 Paolo Carlini <pcarlini@suse.de>
4235 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4236 Deal properly with empty __digits and negative frac_digits,
4239 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
4241 * docs/html/documentation.html: Regenerate.
4243 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4246 * include/bits/postypes.h (class streamoff): Remove, now
4247 streamoff is just typedef a 64 bit signed integer type.
4248 (class fpos): Tweak consistently.
4249 * testsuite/27_io/fpos/14320-1.cc: New.
4250 * testsuite/27_io/fpos/14320-2.cc: New.
4251 * testsuite/27_io/fpos/14320-3.cc: New.
4252 * testsuite/27_io/fpos/14320-4.cc: New.
4253 * testsuite/27_io/fpos/14320-5.cc: New.
4254 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
4256 2004-03-02 Paolo Carlini <pcarlini@suse.de>
4258 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4259 Reorganize a bit the main parsing loop, thus early detecting
4260 an empty value component.
4261 * testsuite/22_locale/money_get/get/char/16.cc: New.
4262 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
4264 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
4266 Support automake 1.8.2
4267 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
4268 * po/Makefile.am (EXTRA_DIST): New.
4269 * po/Makefile.in: Regenerate.
4270 * Makefile.in: Same.
4271 * include/Makefile.in: Same.
4272 * libmath/Makefile.in: Same.
4273 * libsupc++/Makefile.in: Same.
4274 * src/Makefile.in: Same.
4275 * testsuite/Makefile.in: Same.
4277 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
4278 __GXX_WEAK__ instead of SUPPORTS_WEAK.
4279 (${host_builddir}/gthr-default.h): Same.
4280 (${host_builddir}/gthr.h): Same.
4281 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
4282 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
4284 * aclocal.m4: Regenerate.
4285 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
4286 * config.h.in: Regenerate.
4289 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4291 Support autoconf 2.59
4292 * acinclude.m4: Quote correctly.
4293 * aclocal.m4: Regenerate.
4296 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
4298 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
4300 * docs/html/18_support/howto.html: Add bit about writing to
4301 stderr, mostly by Zack.
4303 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4305 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4306 money_get<>::do_get(string_type&)): ... and two more.
4308 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4310 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4311 Fix thinkos in the switch from string_type& to string& as last
4314 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4316 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4317 Also when parsing exponent sign, first look for thousands_sep
4318 and decimal_point; tweak a bit.
4319 * testsuite/22_locale/num_get/get/char/15.cc: New.
4320 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
4322 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4323 num_get<>::_M_extract_int): Reorder some conditionals.
4325 2004-03-01 Paolo Carlini <pcarlini@suse.de>
4327 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4328 Consistently with numpunct, enforce the requirements in
4329 22.2.6.3, p3 for the thousands separators; tweak a bit.
4330 * testsuite/22_locale/money_get/get/char/15.cc: New.
4331 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
4333 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
4335 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
4336 testsuite_files from correct multilib blddir when running
4339 2004-02-29 Phil Edwards <phil@codesourcery.com>
4341 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
4342 the summary file to the logfile.
4343 * testsuite/Makefile.in: Regenerate.
4345 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4347 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
4349 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
4350 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
4352 2004-02-28 Paolo Carlini <pcarlini@suse.de>
4354 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
4355 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
4356 no 'decimal-point' in the middle: in this case too we must fix
4357 up __found_grouping; slightly tweak.
4358 * testsuite/22_locale/num_get/get/char/14.cc: New.
4359 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
4361 2004-02-27 Eric Christopher <echristo@redhat.com>
4362 Phil Edwards <phil@codesourcery.com>
4364 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
4365 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
4366 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
4367 testsuite/22_locale/collate/hash/wchar_t/2.cc,
4368 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
4369 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
4370 testsuite/22_locale/collate/transform/wchar_t/2.cc,
4371 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
4372 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
4373 Use dg-require-iconv.
4374 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
4376 2004-02-27 Phil Edwards <phil@codesourcery.com>
4377 Eric Christopher <echristo@redhat.com>
4379 * testsuite/config/default.exp: Update with comments.
4380 (${tool}_target_compile): New wrapper routine.
4381 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
4382 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
4384 (load_gcc_lib, v3track): New routines.
4385 (v3-init): Rename to libstdc++_init.
4386 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
4387 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
4389 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
4391 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
4393 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
4395 * config/os/irix/irix5.2/atomicity.h: Merge..
4396 * config/os/irix/irix6.5/atomicity.h: Merge..
4397 * config/os/irix/atomicity.h: ...into this.
4398 * config/os/irix/atomic_word.h: New.
4399 * configure.host: Set atomic_word_dir for irix.
4401 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
4402 * i386/atomicity.h: Same.
4403 * m68k/atomicity.h: Same.
4404 * sparc/atomicity.h: Same.
4406 2004-02-27 David Edelsohn <edelsohn@gnu.org>
4408 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
4409 static, and inline keywords.
4411 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4413 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4414 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
4415 call reserve on the __tmp_gruping string.
4416 (num_get<>::_M_extract_float): Don't append unnecessarily a
4417 char() to the returned string.
4418 * include/bits/locale_facets.tcc: Trivial reformattings.
4420 2004-02-27 Paolo Carlini <pcarlini@suse.de>
4422 * include/bits/locale_facets.h (money_get<>::_M_extract):
4423 Change signature: now takes a plain string&.
4424 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4425 Update consistently the definition; use the moneypunct cache
4426 to parse the value; use swap to change __units.
4427 (money_get<>::do_get(long double&)): Update call of _M_extract,
4428 avoid ctype::narrow, not correct wrt the standard.
4429 (money_get<>::do_get(string_type&)): Likewise, update call
4430 of _M_extract, use ctype::widen.
4431 * src/locale-inst.cc: Tweak instantiations of _M_extract.
4433 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
4435 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
4436 * testsuite/demangle/abi_examples/02.cc: Likewise.
4437 * testsuite/demangle/regression/cw-11.cc: Likewise.
4438 * testsuite/demangle/regression/cw-16.cc: Change two expected
4439 results to match libiberty demangler output.
4441 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4444 * libsupc++/Makefile.am: Use libiberty demangler.
4445 (c_sources): Add cp-demangle.c.
4446 * libsupc++/Makefile.in: Regenerate.
4447 * src/Makefile.am (sources): Remove demangle.cc.
4448 * src/Makefile.in: Regenerate.
4449 * include/Makefile.am (bits_headers): Move demangle.h.
4450 (ext_headers): ...here.
4451 * include/Makefile.in: Regenerate.
4452 * include/bits/demangle.h: Move...
4453 * include/ext/demangle.h: ...here.
4454 * src/demangle.cc: Remove.
4456 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
4458 * include/bits/demangle.h: Add type template parameter to all
4459 templates with just an Allocator template parameter.
4461 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
4463 * include/bits/atomicity.h: New, forward declarations for __atomic_add
4464 and __exchange_and_add.
4465 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
4466 * config/cpu/cris/atomic_word.h: Same.
4467 * config/cpu/sparc/atomic_word.h: Same.
4468 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
4469 Qualifiy with __gnu_cxx.
4470 (_Callback_list::_M_add_reference): Same.
4471 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
4472 (locale::facet::_M_remove_reference): Same.
4473 (locale::_Impl::_M_add_reference): Add.
4474 (locale::_Impl::_M_remove_reference): Same.
4475 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
4476 (basic_string::_Rep::_M_dispose): Same.
4477 * src/ios.cc (ios_base::xalloc): Same.
4478 * src/ios_init.cc (ios_base::Init::Init): Same.
4479 (ios_base::Init::~Init): Same.
4480 * src/locale.cc (locale::id::_M_id): Same.
4481 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
4482 static, and inline keywords.
4483 * config/cpu/alpha/atomicity.h: Same.
4484 * config/cpu/cris/atomicity.h: Same.
4485 * config/cpu/generic/atomicity.h: Same.
4486 * config/cpu/hppa/atomicity.h: Same.
4487 * config/cpu/i386/atomicity.h: Same.
4488 * config/cpu/ia64/atomicity.h: Same.
4489 * config/cpu/m68k/atomicity.h: Same.
4490 * config/cpu/mips/atomicity.h: Same.
4491 * config/cpu/powerpc/atomicity.h: Same.
4492 * config/cpu/s390/atomicity.h: Same.
4493 * config/cpu/sparc/atomicity.h: Same.
4495 * src/Makefile.am (host_sources): Add atomicity.cc.
4496 (atomicity.cc): New rule.
4497 * src/Makefile.in: Regenerate.
4498 * include/Makefile.am (host_headers): Remove host atomicity.h.
4499 (host_headers): Add atomic_word.h.
4500 (bits_headers): Add bits atomicity.h.
4501 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4502 * include/Makefile.in: Regenerate.
4503 * configure.host (atomic_word_dir): Add.
4504 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
4505 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
4506 * configure: Regenerate.
4507 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
4509 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
4510 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4512 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
4514 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
4515 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
4516 Fix markup, more <link> tags.
4518 2004-02-25 Carlo Wood <carlo@alinoe.com>
4521 namespace __gnu_cxx::demangler
4522 (session<Allocator>::qualifier_list_Allocator): Add
4523 (session<Allocator>::M_qualifier_list_alloc): Add
4524 (session<Allocator>::decode_type_with_postfix):
4525 Use M_qualifier_list_alloc instead of calling operator new/delete.
4527 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4530 * include/bits/postypes.h (class streamoff): Add operator++(),
4531 operator++(int), operator--() and operator--(int).
4532 * testsuite/27_io/fpos/14252.cc: New.
4534 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
4536 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
4537 error in handling of hex constants.
4539 2004-02-24 Paolo Carlini <pcarlini@suse.de>
4541 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4542 Prefer basic_string::append to operator+= and a temporary.
4544 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4546 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
4547 Only use fputs, not write.
4549 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
4551 * include/ext/malloc_allocator.h: Add operators ==, !=.
4552 * include/ext/new_allocator.h: Add operators ==, !=.
4553 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
4554 (__mt_alloc::_S_get_options): New.
4555 (__mt_alloc::_S_set_options): New.
4556 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
4557 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
4558 Move functions out of line, simplify, format.
4559 * src/allocator.cc: Simplify explicit instantiations.
4560 * include/bits/allocator.h: Tweak.
4562 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4564 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
4565 Restructure formatting of value component, first dealing with
4566 the non-decimal digits; use reserve.
4568 2004-02-22 Paolo Carlini <pcarlini@suse.de>
4570 * include/bits/locale_facets.h (class money_get): Inherit
4571 from money_base too; tweak declaration of _M_extract, now
4572 parameterized on _Intl too.
4573 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
4574 Update definition to use the cache; call reserve on __res to
4575 avoid multiple reallocations; fix parsing of sign component
4576 according to 22.2.6.1.2, p3.
4577 (money_get<>::do_get(long double&),
4578 money_get<>::do_get(string_type&)): Update calls of _M_extract.
4579 * src/locale-inst.cc: Add instantiations of
4580 money_get::_M_extract<false> and money_get::_M_extract<true>.
4581 * testsuite/22_locale/money_get/get/char/14.cc: New.
4582 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
4584 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4586 * libsupc++/vterminate.cc
4587 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
4589 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
4591 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4592 not set RLIMIT_AS on HP-UX.
4594 2004-02-21 Mark Mitchell <mark@codesourcery.com>
4596 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
4597 not set RLIMIT_AS on HP-UX.
4599 2004-02-21 Paolo Carlini <pcarlini@suse.de>
4601 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
4602 _S_zero, _S_end } enum, _S_atoms.
4603 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
4604 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
4605 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
4606 (__moneypunct_cache<>::~__moneypunct_cache): Update.
4607 (__moneypunct_cache<>::_M_cache): Fill the cache.
4608 (class moneypunct): Tweak __cache_type typedef.
4609 (class money_put): Inherit from money_base too; tweak declaration
4610 of _M_insert, now parameterized on _Intl.
4611 * include/bits/locale_facets.tcc
4612 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
4613 (money_put<>::_M_insert): Update definition to use the cache;
4614 call reserve on __res to avoid multiple reallocations.
4615 (money_put<>::do_put(long double),
4616 money_put<>::do_put(const string_type&): Update calls of _M_insert.
4617 * config/locale/generic/monetary_members.cc
4618 (moneypunct<char, true>::_M_initialize_moneypunct,
4619 moneypunct<char, false>::_M_initialize_moneypunct,
4620 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
4621 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
4622 * config/locale/gnu/monetary_members.cc: Likewise.
4623 * config/locale/gnu/monetary_members.cc
4624 (moneypunct<wchar_t, true>::~moneypunct(),
4625 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
4626 * src/globals_locale.cc: Tweak fake_money_cache_c.
4627 * src/locale-inst.cc: Add instantiations for
4628 money_put::_M_insert<false> and money_put::_M_insert<true> and
4629 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
4630 * src/locale_facets.cc: Define money_base::_S_atoms.
4631 * src/locale_init.cc: Update placement new of
4632 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
4633 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
4635 * config/locale/generic/numeric_members.cc: Clean up.
4636 * config/locale/gnu/numeric_members.cc: Likewise.
4637 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
4638 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
4639 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
4640 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
4641 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
4642 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
4644 2004-02-20 Mark Mitchell <mark@codesourcery.com>
4646 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
4647 FIFO for writing with ios_base::in|ios_base::out.
4648 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4649 * testsuite/27_io/objects/char/7.cc: Likewise.
4650 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
4653 2004-02-19 David Edelsohn <edelsohn@gnu.org>
4655 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
4656 from iso-8859-1 to ISO8859-1.
4657 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
4658 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
4659 * 22_locale/collate/hash/wchar_t/2.cc: Same.
4660 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
4661 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
4662 * 22_locale/collate/transform/wchar_t/2.cc: Same.
4663 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
4664 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
4666 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4668 * include/bits/locale_facets.h (money_get<>::_M_extract):
4669 New, helper for do_get.
4670 (money_put<>::_M_insert): Likewise, for do_put.
4671 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
4672 money_put<>::_M_insert): Define.
4673 (money_get<>::do_get(long double&), money_get<>::do_get(
4674 string_type&), money_put::do_put(long double),
4675 money_put::do_put(const string_type&)): Use the helpers.
4677 2004-02-18 Paolo Carlini <pcarlini@suse.de>
4679 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4680 Rewrite, avoiding recursion.
4681 (__gnu_internal::xwrite): Minor tweaks.
4683 2004-02-17 Stefan Olsson <stefan@xapa.se>
4685 * include/ext/mt_allocator.h: Removed the last
4686 pointer. Deallocated blocks are now added to the front of
4687 freelists as proposed by Felix Yen. This gives roughly 10%
4688 performance boost and saves some memory.
4689 * docs/html/ext/mt_allocator.html: Change due to that deallocated
4690 blocks now are added to the front of freelists. The reason to this
4691 approach is also explained.
4693 2004-02-17 Paolo Carlini <pcarlini@suse.de>
4695 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
4696 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
4697 grouping fidelity conditional.
4699 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4701 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
4702 Qualify exception with std::.
4703 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
4704 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4705 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4706 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4707 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4709 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4711 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
4712 for now that the catch block is not reached.
4713 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
4715 2004-02-16 Paolo Carlini <pcarlini@suse.de>
4717 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4718 Fix parsing of the remaining sign characters.
4719 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
4720 the input is scanned 'til eof.
4721 * 22_locale/money_get/get/char/4.cc: Likewise.
4722 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
4723 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
4724 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
4725 not do_pos_format: the former is the only one that matters during
4727 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
4729 * 22_locale/money_get/get/char/6.cc: Minor tweak.
4730 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
4732 2004-02-15 David Asher <david.asher@cavium.com>
4735 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
4736 access __olds beyond __oldlen.
4738 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4740 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
4741 sure the exception is actually thrown.
4742 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4743 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4744 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4746 2004-02-14 Paolo Carlini <pcarlini@suse.de>
4749 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
4750 In case of conversion errors, throw ios_failure; simplify.
4751 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
4752 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
4753 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
4754 previously we didn't throw in case of conversion errors, instead
4755 just returned eof().
4756 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
4757 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
4758 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
4760 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
4761 Trivial simplification of a conditional.
4763 2004-02-12 Paolo Carlini <pcarlini@suse.de>
4765 PR libstdc++/13731 (final part: writev)
4766 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
4767 New, a wrapper around writev() handling partial writes.
4768 (__basic_file<char>::xwrite): Move to __gnu_internal and make
4770 (__basic_file<char>::xsputn): Update call.
4771 (__basic_file<char>::xsputn_2): Likewise.
4772 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4773 Don't declare, now static.
4775 2004-02-11 Stefan Olsson <stefan@xapa.se>
4777 * docs/html/ext/mt_allocator.html: New.
4779 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
4781 * docs/html/20_util/allocator.html: New file, consolidate
4782 allocator information here. Revamp.
4783 * docs/html/documentation.html: Change links.
4784 * docs/html/20_util/howto.html: Same.
4785 * docs/html/ext/howto.html: Same.
4787 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4789 PR libstdc++/13731 (first part: write)
4790 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
4792 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
4793 Define it: a wrapper around write() handling partial write.
4794 (__basic_file<char>::xsputn): Use it.
4795 (__basic_file<char>::xsputn_2): Likewise.
4797 2004-02-11 Paolo Carlini <pcarlini@suse.de>
4798 Petur Runolfsson <peturr02@ru.is>
4801 * include/std/std_istream.h (operator>>(__istream_type& (*)
4802 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
4803 operator>>(ios_base& (*)(ios_base&))): Declare inline.
4804 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
4805 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
4806 operator<<(ios_base& (*) (ios_base&))): Likewise.
4807 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
4809 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
4812 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4813 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
4816 * config/linker-map.gnu: Add typeinfo and typeinfo name for
4817 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
4819 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
4821 * include/ext/pool_allocator.h: Include c++config.h.
4823 2004-02-09 Stefan Olsson <stefan@xapa.se>
4825 * include/ext/mt_allocator.h: thread_id is unused in non threaded
4826 applications and now has a ifdef to remove it completely on
4827 compilers without thread support. Include stdlib.h due to a
4828 compiler warning on getenv().
4830 2004-02-09 Paul Brook <paul@codesourcery.com>
4832 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
4834 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4837 * src/locale_init.cc (locale::global(const locale&)): Use
4838 locale::name() in order to decide whether calling setlocale.
4839 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
4841 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
4842 Avoid computing &= unnecessarily.
4844 2004-02-09 James E Wilson <wilson@specifixinc.com>
4847 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
4848 __builtin_extend_pointer.
4850 2004-02-09 Paolo Carlini <pcarlini@suse.de>
4853 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
4854 Don't leave dangling pointers.
4855 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
4856 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
4857 facet is needed in the final test.
4859 2004-02-09 Bernardo Innocenti <bernie@develer.com>
4861 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
4862 * configure: Regenerate.
4864 2004-02-08 Richard Henderson <rth@redhat.com>
4867 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
4868 uncaughtExceptions during nested catch rethrow.
4869 * testsuite/18_support/14026.cc: New.
4871 2004-02-08 Paolo Carlini <pcarlini@suse.de>
4873 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
4874 When working in place remember to set the state to sharable
4875 (otherwise, _M_mutate does it).
4877 2004-02-08 Bernardo Innocenti <bernie@develer.com>
4879 * include/bits/allocator.h, include/bits/basic_ios.h,
4880 include/bits/basic_ios.tcc, include/bits/basic_string.h,
4881 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
4882 include/bits/char_traits.h, include/bits/codecvt.h,
4883 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
4884 include/bits/demangle.h, include/bits/deque.tcc,
4885 include/bits/fstream.tcc, include/bits/functexcept.h,
4886 include/bits/gslice.h, include/bits/gslice_array.h,
4887 include/bits/indirect_array.h, include/bits/ios_base.h,
4888 include/bits/istream.tcc, include/bits/list.tcc,
4889 include/bits/locale_classes.h, include/bits/locale_facets.h,
4890 include/bits/locale_facets.tcc, include/bits/localefwd.h,
4891 include/bits/mask_array.h, include/bits/ostream.tcc,
4892 include/bits/postypes.h, include/bits/slice_array.h,
4893 include/bits/sstream.tcc, include/bits/stl_algo.h,
4894 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4895 include/bits/stl_construct.h, include/bits/stl_deque.h,
4896 include/bits/stl_function.h, include/bits/stl_heap.h,
4897 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
4898 include/bits/stl_list.h, include/bits/stl_map.h,
4899 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
4900 include/bits/stl_numeric.h, include/bits/stl_pair.h,
4901 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
4902 include/bits/stl_relops.h, include/bits/stl_set.h,
4903 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
4904 include/bits/stl_threads.h, include/bits/stl_tree.h,
4905 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
4906 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
4907 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
4908 include/bits/type_traits.h, include/bits/valarray_after.h,
4909 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
4910 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
4911 trailing whitespace.
4913 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4915 * include/bits/basic_string.h: Fix comment.
4917 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4919 * include/bits/stl_construct.h: Wrap overlong lines, reformat
4920 according to the coding standards.
4921 * include/bits/stl_pair.h: Likewise.
4922 * include/bits/stl_raw_storage_iter.h: Likewise.
4923 * include/bits/stl_stack.h: Likewise.
4924 * include/bits/stl_uninitialized.h: Likewise.
4925 * include/bits/stream_iterator.h: Likewise.
4926 * include/bits/streambuf_iterator.h: Likewise.
4927 * include/bits/type_traits.h: Likewise.
4929 2004-02-06 Paolo Carlini <pcarlini@suse.de>
4931 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
4934 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
4936 * scripts/check_performance: Support PCH.
4938 * scripts/check_performance (CXX): Add -DNOTHREAD.
4939 * testsuite/performance/20_util/allocator/insert.cc: Integrate
4940 threaded tests from insert_insert.cc. Tweak iterations,
4941 remove special cases.
4942 * testsuite/performance/20_util/allocator/insert_insert.cc:
4943 Make all tests single-threaded. Tweak iterations.
4944 * testsuite/performance/20_util/allocator/map_thread.cc:
4946 * testsuite/performance/20_util/allocator/producer_consumer.cc:
4949 2004-02-05 Geoffrey Keating <geoffk@apple.com>
4953 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
4954 'gcc-lib'. Add comment about poorly-named variables.
4955 * aclocal.m4: Regenerate.
4956 * configure: Regenerate.
4958 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4960 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
4961 Thousands-sep are always optional; thousands-sep are not allowed
4962 after the decimal_point.
4963 * testsuite/22_locale/money_get/get/char/12.cc: New.
4964 * testsuite/22_locale/money_get/get/char/13.cc: New.
4965 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
4966 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
4968 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
4969 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
4970 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
4971 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
4972 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
4973 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
4974 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
4975 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
4977 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
4979 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
4981 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
4983 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
4985 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
4986 it to decide whether FIONREAD should take an off_t or int argument.
4988 2004-02-05 Paolo Carlini <pcarlini@suse.de>
4990 * include/bits/stl_function.h: Minor formatting changes.
4992 2004-02-04 Zack Weinberg <zack@codesourcery.com>
4994 Revert previous change to config/abi/*/baseline_symbols.txt.
4996 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
4997 Zack Weinberg <zack@codesourcery.com>
4999 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
5001 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
5002 (__basic_file<char>::_M_open_mode): Delete.
5003 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
5005 * testsuite/27_io/basic_filebuf/close/char/9964.cc
5006 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
5007 Correct flags to filebuf::open calls.
5009 * config/abi/alpha-freebsd5/baseline_symbols.txt
5010 * config/abi/alpha-linux-gnu/baseline_symbols.txt
5011 * config/abi/hppa-linux-gnu/baseline_symbols.txt
5012 * config/abi/i386-freebsd4/baseline_symbols.txt
5013 * config/abi/i386-freebsd5/baseline_symbols.txt
5014 * config/abi/i486-linux-gnu/baseline_symbols.txt
5015 * config/abi/ia64-linux-gnu/baseline_symbols.txt
5016 * config/abi/mips-linux-gnu/baseline_symbols.txt
5017 * config/abi/sparc-freebsd5/baseline_symbols.txt
5018 * config/abi/sparc-linux-gnu/baseline_symbols.txt
5019 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
5020 Remove entry for __basic_file<char>::_M_open_mode.
5022 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
5024 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
5026 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
5028 * testsuite/performance/20_util/producer_consumer.cc: New.
5029 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
5031 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
5033 * testsuite/performance/20_util/allocator.cc: Move to..
5034 * testsuite/performance/20_util/allocator/insert.cc: ...here.
5035 * testsuite/performance/20_util/allocator_thread.cc: Move to...
5036 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
5037 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
5038 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
5040 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5042 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
5043 * docs/html/faq/index.txt: Regenerate.
5045 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
5047 * include/ext/debug_allocator.h: _M_extra now stands for the
5048 number of extra objects instead of the number of extra bytes.
5049 (debug_allocator::allocate): Adjust.
5050 (debug_allocator::deallocate): Adjust.
5052 * include/ext/pool_allocator.h: Fix typo.
5054 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
5055 Benjamin Kosnik <bkoz@redhat.com>
5057 * testsuite/performance/20_util/allocator.cc: Add map,
5059 * testsuite/performance/20_util/allocator_thread.cc: Same.
5061 2004-02-03 Paolo Carlini <pcarlini@suse.de>
5063 * include/bits/basic_string.h (insert(iterator)): Remove,
5064 non-standard and already scheduled for removal.
5066 2004-02-03 Paolo Carlini <pcarlini@suse.de>
5068 * include/bits/stl_iterator_base_funcs.h: Minor formatting
5069 and indentation tweaks.
5070 * include/bits/stl_iterator_base_types.h: Likewise.
5071 * include/bits/stl_list.h: Likewise.
5072 * include/bits/stl_map.h: Likewise.
5073 * include/bits/stl_tempbuf.h: Likewise.
5075 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
5077 * include/bits/gslice.h, include/bits/gslice_array.h,
5078 include/bits/indirect_array.h, include/bits/mask_array.h,
5079 include/bits/slice_array.h, include/bits/stl_numeric.h,
5080 include/std/std_valarray.h: Update copyright years.
5082 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
5084 * include/bits/gslice.h (gslice): Document.
5085 * include/bits/gslice_array.h (gslice_array): Document.
5086 * include/bits/indirect_array (indirect_array): Document.
5087 * include/bits/mask_array (mask_array): Document.
5088 * include/bits/slice_array.h (slice,slice_array): Document.
5089 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
5090 adjacent_difference): Document
5091 * include/std/std_valarray.h (valarray): Document.
5093 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
5095 * docs/html/19_diagnostics/howto.html: Move verbose terminate
5097 * docs/html/18_support/howto.html: Here.
5098 * docs/html/documentation.html: Add reference here.
5100 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5102 * config/locale/gnu/c++locale_internal.h: Remove prototypes
5103 of no longer used GLIBC thread locale functions.
5105 2004-02-02 Eric Christopher <echristo@redhat.com>
5106 Zack Weinberg <zack@codesourcery.com>
5108 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
5110 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
5111 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
5112 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
5113 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
5114 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
5115 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
5116 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
5117 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
5120 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5122 * include/bits/stl_function.h: Additional minor tweaks.
5123 * include/bits/stl_multiset.h: Likewise.
5125 * include/bits/stl_queue.h: Minor tweaks.
5127 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5129 PR libstdc++/13976 (continued)
5130 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
5131 Make the second parameter unnamed, to void unused parameter
5133 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
5135 2004-02-02 Paolo Carlini <pcarlini@suse.de>
5138 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
5139 Make the second parameter unnamed, to void unused parameter
5141 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
5142 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
5144 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5146 * include/bits/stl_algo.h: Additional minor tweaks.
5147 * include/bits/stl_map.h: Likewise.
5148 * include/bits/stl_multimap.h: Likewise.
5149 * include/bits/stl_multiset.h: Likewise.
5150 * include/bits/stl_set.h: Likewise.
5151 * include/bits/stl_tree.h: Likewise.
5153 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5155 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
5158 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5160 * include/bits/stl_function.h: Additional minor tweaks.
5162 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5164 * include/bits/deque.tcc: Wrap overlong lines, constify
5165 a few variables, reformat according to the coding standards.
5166 * include/bits/list.tcc: Likewise.
5167 * include/bits/stl_deque.h: Likewise.
5168 * include/bits/stl_function.h: Likewise.
5169 * include/bits/stl_iterator.h: Likewise.
5170 * include/bits/stl_iterator_base_funcs.h: Likewise.
5171 * include/bits/stl_iterator_base_types.h: Likewise.
5172 * include/bits/stl_list.h: Likewise.
5173 * include/bits/stl_map.h: Likewise.
5174 * include/bits/stl_multimap.h: Likewise.
5175 * include/bits/stl_multiset.h: Likewise.
5176 * include/bits/stl_relops.h: Likewise.
5177 * include/bits/stl_set.h: Likewise.
5179 2004-02-01 Paolo Carlini <pcarlini@suse.de>
5181 * include/bits/stl_bvector.h: Wrap overlong lines, constify
5182 a few variables, reformat according to the coding standards.
5183 * include/bits/stl_tree.h: Likewise.
5185 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5187 * include/bits/stl_algo.h: Minor additional reformat, add
5189 * include/bits/stl_algobase.h: Add copyright year.
5191 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5193 * include/bits/stl_algo.h: Wrap overlong lines, constify
5194 a few variables, reformat according to the coding standards.
5195 * include/bits/stl_algobase.h: Likewise.
5196 * include/bits/stl_heap.h: Likewise.
5198 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5200 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
5202 * include/bits/basic_string.h: Fix two comments.
5204 2004-01-31 Per Bothner <per@bothner.com>
5206 * include/ext/mt_allocator.h
5207 (__mt_alloc::_S_thread_freelist_mutex): Guard with
5208 __GTHREAD_MUTEX_INIT.
5210 2004-01-31 Paolo Carlini <pcarlini@suse.de>
5212 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
5214 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5216 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
5217 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
5218 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
5220 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
5222 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
5223 Don't use clear, but instead assign. Use insert.
5225 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
5227 * src/demangle.cc: Add instantiations.
5228 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
5229 * src/Makefile.in: Regenerate.
5231 2004-01-30 David Edelsohn <edelsohn@gnu.org>
5233 * src/allocator.cc: Protect _S_get_thread_id() and
5234 _S_thread_key_destr() with #ifdef __GTHREADS.
5236 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5238 Reshuffle performance testsuite.
5239 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
5240 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
5241 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
5242 fstream_seek_write.cc, ifstream_extract_float.cc,
5243 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
5244 list_create_fill_sort.cc, map_create_fill.cc,
5245 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
5246 ofstream_insert_float.cc, ofstream_insert_int.cc,
5247 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
5248 wchar_t_out.cc: Split into...
5249 * testsuite/performance/20_util/allocator.cc: New.
5250 * testsuite/performance/20_util/allocator_map_thread.cc: New.
5251 * testsuite/performance/20_util/allocator_thread.cc: New.
5252 * testsuite/performance/21_strings/string_append: New.
5253 * testsuite/performance/22_locale/is_wchar_t.cc: New.
5254 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
5255 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
5256 * testsuite/performance/22_locale/wchar_t_in.cc: New.
5257 * testsuite/performance/22_locale/wchar_t_length.cc: New.
5258 * testsuite/performance/22_locale/wchar_t_out.cc: New.
5259 * testsuite/performance/23_containers/container_benchmark.cc: New.
5260 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
5261 * testsuite/performance/23_containers/map_create_fill.cc: New.
5262 * testsuite/performance/26_numerics/complex_norm.cc: New.
5263 * testsuite/performance/27_io/cout_insert_int.cc: New.
5264 * testsuite/performance/27_io/filebuf_copy.cc: New.
5265 * testsuite/performance/27_io/filebuf_sputc.cc: New.
5266 * testsuite/performance/27_io/fstream_seek_write.cc: New.
5267 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
5268 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
5269 * testsuite/performance/27_io/ifstream_getline.cc: New.
5270 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
5271 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
5273 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5275 * include/bits/basic_string.tcc (_Rep::_S_create):
5276 Never allocate a string bigger than max_size(); always keep
5277 __capacity and __size in sync to avoid memory leaks at
5280 2004-01-30 Paolo Carlini <pcarlini@suse.de>
5282 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5283 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
5284 the double loop, streamline.
5286 * include/bits/basic_string.tcc: Very minor tweaks.
5288 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
5290 * scripts/check_performance: Only compile with $THREAD_FLAG
5291 when test is marked to require it. Allow multiple
5292 compilations/executions of marked tests.
5293 * testsuite/testsuite_performance.h (report_performance):
5294 Report dynamic thread support status.
5295 (report_header): Likewise.
5296 * testsuite/performance/allocator.cc: Stabilize iteration
5297 count. Support more allocators. Mark each allocator test to
5298 run and report independently.
5299 * testsuite/performance/allocator_map_thread.cc: Likewise.
5300 * testsuite/performance/allocator_thread.cc: Likewise.
5302 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
5304 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
5305 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
5306 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
5307 std::get_temporary_buffer() instead of duplicating its code.
5308 Update to C++STYLE conventions.
5309 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
5310 new() instead of std::malloc().
5311 (return_temporary_buffer): Use ::operator delete() instead of
5314 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
5316 * include/bits/allocator.h: Temporary switch to new_allocator as
5317 the default to unjam bootstraps.
5319 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5321 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
5322 * include/Makefile.in: Regenerate.
5323 * include/bits/allocator_traits.h: Remove.
5324 * include/bits/allocator.h: Remove allocator_traits.h include, and
5326 (allocator): Empty base class, inherit from the underlying allocator.
5327 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
5328 * src/allocator.cc: ...here. New. For the underlying allocators.
5329 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
5330 * config/linker-map.gnu: Remove __pool_alloc bits.
5331 * src/Makefile.am (sources): Add allocator.cc.
5332 * src/Makefile.in: Regenerate.
5333 * testsuite/20_util/allocator/1.cc: Split second test into...
5334 * testsuite/20_util/allocator/8230.cc: ...this.
5335 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
5336 typedef to use std::allocatore. Format.
5337 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
5339 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
5340 __throw_bad_alloc calls. Don't include <memory>.
5341 * include/ext/malloc_allocator.h: Remove <memory> include.
5342 * include/ext/new_allocator.h (new_allocator): Same.
5343 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
5344 declaration. Switch __alloc to _Alloc.
5345 * include/ext/hashtable.h: Remove __alloc.
5346 * include/backward/alloc.h: Only inject allocator, not
5347 implementation details.
5349 * include/ext/mt_allocator.h: Replace free with delete.
5351 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
5353 * src/globals_io.cc: Change to __gnu_internal namespace.
5354 * src/globals_locale.cc: Same.
5355 * src/locale_init.cc: Same.
5356 * src/ios_init.cc: Same.
5358 2004-01-28 Stefan Olsson <stefan@snon.net>
5360 * include/ext/mt_allocator.h: Replaced all malloc() calls with
5361 operator new(). Added support for the env variable
5362 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
5363 one in allocate() as well). Fix typos.
5365 2004-01-28 Paolo Carlini <pcarlini@suse.de>
5367 * include/bits/basic_string.h (_S_create(size_t,
5368 const _Alloc&): Change signature to take two size_type
5370 * include/bits/basic_string.tcc (_S_construct(_InIterator,
5371 _InIterator, const _Alloc&, input_iterator_tag)): Update
5373 (_S_construct(_InIterator, _InIterator, const _Alloc&,
5374 forward_iterator_tag)): Likewise.
5375 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
5376 (_M_mutate(size_type, size_type, size_type)): Don't
5377 implement the exponential growth policy, demand it to
5378 _S_create, update call and simplify.
5379 (_M_clone(const _Alloc&, size_type)): Likewise.
5380 (_S_create(size_type, size_type, const _Alloc&)): Implement
5381 the growth policy, simplify otherwise.
5383 * include/bits/basic_string.h (_Rep::operator[]): Tweak
5384 signature to take a size_type, consistently with the other
5387 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
5389 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
5390 delete declarations, add include and test variable.
5392 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
5394 * include/bits/codecvt.h, include/bits/locale_facets.h,
5395 include/bits/postypes.h, include/bits/stl_bvector.h,
5396 include/bits/stl_multiset.h, include/bits/stl_set.h,
5397 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
5398 include/std/std_complex.h: Document.
5400 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
5403 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
5404 iword/pword selector.
5405 (ios_base::iword, ios_base::pword): Use it.
5406 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
5407 iword or pword member on alloc failure.
5408 * testsuite/27_io/ios_base/storage/11584.cc: New test.
5410 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
5411 PJ Darcy <darcypj@us.ibm.com>
5413 * configure.host: Add support for *-tpf.
5414 * crossconfig.m4: Likewise.
5415 * configure: Regenerate.
5416 * config/os/tpf: New directory.
5417 * config/os/tpf/os_defines.h: New file.
5418 * config/os/tpf/ctype_base.h: Likewise.
5419 * config/os/tpf/ctype_inline.h: Likewise.
5420 * config/os/tpf/ctype_noninline.h: Likewise.
5422 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5425 * include/bits/sstream.tcc: Guard use of extern template.
5427 2004-01-27 Paolo Carlini <pcarlini@suse.de>
5429 * include/bits/basic_string.tcc
5430 (basic_string(const basic_string&, size_type, size_type),
5431 basic_string(const basic_string&, size_type, size_type,
5432 const _Alloc&)): Avoid unnecessarily constructing iterators.
5434 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5436 * config/locale/generic/c_locale.cc: Fix throw messages
5437 to use the __N marker.
5438 * config/locale/gnu/c_locale.cc: Likewise.
5439 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
5441 * docs/html/17_intro/C++STYLE: Likewise.
5442 * include/bits/basic_ios.tcc: Likewise.
5443 * include/bits/fstream.tcc: Likewise.
5444 * include/bits/vector.tcc: Likewise.
5445 * include/ext/ropeimpl.h: Likewise.
5446 * include/std/std_bitset.h: Likewise.
5447 * src/ios.cc: Likewise.
5448 * src/locale.cc: Likewise.
5449 * src/localename.cc: Likewise.
5451 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5453 * include/bits/basic_string.h (_M_replace_aux): Use the
5454 __N marker in throw message.
5455 * include/bits/basic_string.tcc (assign(const _CharT*,
5456 size_type), insert(size_type, const _CharT*, size_type),
5457 replace(size_type, size_type, const _CharT*, size_type),
5458 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
5461 * include/bits/basic_string.h, include/bits/basic_string.tcc:
5462 Fold overlong lines, minor formatting changes.
5464 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5466 * include/bits/basic_string.h (replace(iterator, iterator,
5467 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
5468 (replace(iterator, iterator, const _CharT*)): Ditto.
5469 (replace(iterator, iterator, const _CharT*, size_type)):
5470 Add missing _GLIBCXX_DEBUG_PEDASSERT.
5472 2004-01-26 Paolo Carlini <pcarlini@suse.de>
5474 * include/bits/basic_string.tcc (replace(size_type,
5475 size_type, const _CharT*, size_type)): Implement optimized
5476 in-place algorithm for non-overlapping ranges.
5477 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
5478 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
5480 * include/bits/basic_string.tcc (insert(size_type,
5481 const _CharT*, size_type)): Tweak slightly.
5483 2004-01-26 Andreas Schwab <schwab@suse.de>
5485 * config/locale/gnu/monetary_members.cc: Restore locale before
5486 rethrowing exception.
5488 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5490 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
5492 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
5495 * include/bits/basic_string.tcc: Very minor tweaks.
5497 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5499 * testsuite/performance/string_append.cc: Increase number
5502 2004-01-25 Paolo Carlini <pcarlini@suse.de>
5504 * include/bits/basic_string.h (erase(size_type, size_type),
5505 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
5506 instead, thus avoiding redundant check for length_error.
5508 * include/bits/basic_string.h: Tweak some comments.
5510 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5512 * include/bits/basic_string.tcc (operator+(const _CharT*,
5513 const basic_string&)): No need to go through the append
5514 taking two iterators.
5516 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5518 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
5519 Revert last change to use std::min: machine language is worse.
5520 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
5521 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5522 (find_last_not_of(_CharT, size_type)): Ditto.
5524 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
5525 size_type)): Discard the value returned by _M_check.
5526 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
5527 (append(const basic_string&, size_type, size_type)): Ditto.
5528 (copy(_CharT*, size_type, size_type)): Ditto.
5529 (compare(size_type, size_type, const basic_string&)): Ditto.
5530 (compare(size_type, size_type, const basic_string&,
5531 size_type, size_type)): Ditto.
5532 (compare(size_type, size_type, const _CharT*)): Ditto.
5533 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5535 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5537 * include/bits/basic_string.h (insert(size_type,
5538 const basic_string&, size_type, size_type)): Define inline here.
5539 * include/bits/basic_string.tcc (insert(size_type,
5540 const basic_string&, size_type, size_type)): Move inline.
5542 2004-01-24 Paolo Carlini <pcarlini@suse.de>
5544 * include/bits/basic_string.h (assign(const basic_string&,
5545 size_type, size_type)): Define inline here.
5546 (replace(size_type, size_type, const basic_string&,
5547 size_type, size_type)): Ditto.
5548 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5549 _InputIterator, __false_type)): Only declare.
5550 (_M_replace(iterator, iterator, _InputIterator,
5551 _InputIterator)): Remove.
5552 * include/bits/basic_string.tcc (assign(const basic_string&,
5553 size_type, size_type)): Move inline.
5554 (replace(size_type, size_type, const basic_string&,
5555 size_type, size_type)): Ditto.
5556 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5557 _InputIterator, __false_type)): Define, now does also what
5558 _M_replace did before.
5559 * src/string-inst.cc (_M_replace): Don't instantiate.
5561 * include/bits/basic_string.tcc (find(const _CharT*,
5562 size_type, size_type)): Tidy.
5563 (rfind(_CharT, size_type)): Ditto.
5564 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
5565 (find_first_not_of(_CharT, size_type)): Ditto.
5566 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
5567 (find_last_not_of(_CharT, size_type)): Ditto.
5569 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5572 * include/debug/bitset (operator|=): Fix typo.
5573 * testsuite/23_containers/bitset/operations/13838.cc: New.
5575 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5577 * include/bits/basic_string.tcc (insert(size_type,
5578 const _CharT*, size_type __n)): Fix length_error check.
5579 (replace(size_type, size_type, const _CharT*, size_type):
5580 Ditto; call _M_replace_safe.
5581 (_M_replace_aux(size_type, size_type, size_type, _CharT):
5582 Fix length_error check.
5583 (_M_replace(iterator, iterator, _InputIterator,
5584 _InputIterator)): Ditto, tweak.
5585 (_M_replace_safe(size_type, size_type, const _CharT*,
5586 size_type)): Remove length_error check.
5588 * include/bits/basic_string.tcc (append(const basic_string&),
5589 append(const basic_string&, size_type, size_type)): Tweak
5592 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
5593 size_type)): If __n == 0 don't call traits::copy.
5595 2004-01-23 Stefan Olsson <stefan@snon.net>
5597 * include/ext/mt_allocator.h: Reduce lock contention.
5599 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5602 * include/bits/fstream.tcc (underflow): Remove unused
5604 * include/bits/streambuf_iterator.h (equal): Ditto.
5605 * include/bits/locale_facets.h (_M_convert_from_char):
5608 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5611 * config/linker-map.gnu (nan): Delete.
5612 * libmath/mathconf.h (NAN, nan): Delete.
5613 * linkage.m4 (nan): Don't check for it.
5614 * libmath/nan.c: Delete file.
5616 * config.h.in, configure: Regenerate.
5618 2004-01-23 Paolo Carlini <pcarlini@suse.de>
5620 * include/bits/basic_string.h (push_back(_CharT)):
5621 Call _M_replace_aux.
5622 (insert(size_type, const basic_string&)): Trivial tweak.
5623 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
5624 (insert(iterator, _CharT)): Ditto.
5625 (erase(size_type, size_type)): Ditto.
5626 (erase(iterator)): Ditto.
5627 (erase(iterator, iterator)): Ditto.
5628 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5630 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
5633 * testsuite/performance/allocator_map_thread.cc: New test.
5635 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5637 * include/bits/locale_facets.tcc
5638 (money_put::do_put(..., long double)): Use the basic_string
5639 constructor for char arrays, not that for C-strings, to pass
5640 __digits to do_put(..., const string_type&): __ws isn't
5643 2004-01-22 Paolo Carlini <pcarlini@suse.de>
5645 * include/bits/basic_string.h (_M_replace_safe): Change
5646 signatures to take size_types and const _CharT*.
5647 (_M_replace_aux): Likewise, takes size_types instead of
5649 (append(size_type, _CharT)): Update call.
5650 (assign(size_type, _CharT)): Ditto.
5651 (replace(iterator, iterator, size_type, _CharT)): Ditto.
5652 (_M_replace_dispatch(iterator, iterator, _Integer,
5653 _Integer, __true_type)): Ditto.
5654 * include/bits/basic_string.tcc (assign(const _CharT*,
5656 (insert(size_type, const _CharT*, size_type)): Ditto.
5657 (replace(size_type, size_type, const _CharT*,
5659 (_M_replace(iterator, iterator, _InputIterator,
5660 _InputIterator)): Ditto.
5661 (append(const basic_string&)): Ditto.
5662 (append(const basic_string&, size_type, size_type): Ditto.
5663 (append(const _CharT*, size_type): Ditto.
5664 (_M_replace_safe, _M_replace_safe): Change definitions
5665 accordingly, simplify.
5666 * string-inst.cc (_M_replace_safe): Don't instantiate.
5668 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5670 * include/bits/basic_string.tcc (append(const basic_string&)):
5671 Revert previous change.
5672 (append(const basic_string&, size_type, size_type)): Revert
5673 previous change, use _M_check and _M_limit.
5675 2004-01-21 Paolo Carlini <pcarlini@suse.de>
5677 * include/bits/basic_string.h (_M_check): Change to return
5678 a checked __pos and take an additional const char* argument.
5679 (_M_fold): Rename to _M_limit, change to return a size_type,
5680 corresponding to the __off limited to the actual length.
5681 (insert(size_type, size_type, _CharT)): Update call, call
5683 (insert(iterator, _CharT)): Call replace(iterator, iterator,
5684 size_type, _CharT) instead.
5685 (erase(size_type, size_type)): Update calls.
5686 (replace(size_type, size_type, size_type, _CharT)): Ditto.
5687 (substr(size_type, size_type)): Use _M_check.
5688 * include/bits/basic_string.tcc (basic_string(const basic_string&,
5689 size_type, size_type)): Update calls.
5690 (basic_string(const basic_string&, size_type, size_type,
5691 const _Alloc&)): Ditto.
5692 (assign(const basic_string&, size_type, size_type)): Use the
5693 new _M_check and _M_limit.
5694 (insert(size_type, const basic_string&, size_type, size_type):
5696 (insert(size_type, const _CharT*, size_type)): Ditto.
5697 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
5698 (replace(size_type, size_type, const basic_string&,
5699 size_type, size_type)): Ditto.
5700 (append(const basic_string&)): Ditto.
5701 (append(const basic_string&, size_type, size_type)): Ditto.
5702 (copy(_CharT*, size_type, size_type)): Ditto.
5703 (compare(size_type, size_type, const basic_string&)): Ditto.
5704 (compare(size_type, size_type, const basic_string&,size_type,
5706 (compare(size_type, size_type, const _CharT*)): Ditto.
5707 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
5709 2004-01-19 Stefan Olsson <stefan@snon.net>
5711 * include/ext/mt_allocator.h: If a thread, when it dies, still has
5712 memory on it's freelist this memory is not returned to global
5713 list. Simplification of deallocate so that memory is always
5714 returned to the calling thread id's freelist instead of to
5715 global. Fix typos. Add volatile where appropriate.
5717 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
5719 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
5720 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
5721 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
5723 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5725 * src/debug.cc: Make sure all the names are prefixed with
5726 double (or single) underscore.
5728 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5730 * src/debug.cc: Trivial formatting change.
5732 2004-01-19 Paolo Carlini <pcarlini@suse.de>
5734 * include/bits/basic_string.tcc (_S_construct(size_type,
5735 _CharT, const _Alloc&)): Remove redundant try/catch.
5736 (_M_mutate(size_type, size_type, size_type)): Ditto.
5737 (_M_clone(const _Alloc&, size_type)): Ditto.
5739 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5741 * include/bits/basic_string.h (c_str()): Simplify, due to
5742 21.3.4 the internal representation is always kept null-terminated.
5743 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
5744 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
5745 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
5748 2004-01-18 Paolo Carlini <pcarlini@suse.de>
5750 * include/bits/basic_string.h (append(size_type, _CharT)):
5751 Moved inline, just call _M_replace_aux, no source iterators at
5752 risk of being clobbered.
5753 (assign(size_type, _CharT)): Call directly _M_replace_aux.
5754 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5755 input_iterator_tag)): Remove fifth unused argument.
5756 (_M_replace_dispatch(iterator, iterator, _InputIterator,
5757 _InputIterator, __false_type)): Update call.
5758 * include/bits/basic_string.tcc (replace(size_type, size_type,
5759 const _CharT*, size_type)): Update call.
5760 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
5761 throw string literal.
5762 (_M_replace_safe(iterator, iterator, _ForwardIterator,
5763 _ForwardIterator)): Likewise.
5764 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
5765 input_iterator_tag)): Remove fifth unused argument.
5766 (append(size_type __n, _CharT __c)): Move inline.
5767 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
5768 const C*, const C*, input_iterator_tag)): Remove fifth unused
5771 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
5773 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
5774 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
5776 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
5778 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
5781 2004-01-15 Stefan Olsson <stefan@snon.net>
5783 * include/ext/mt_allocator.h: Reuse thread id's as soon as
5784 possible by changing the behaviour of thread_freelist to do
5785 push_front when threads die instead of push_back.
5787 2004-01-14 Paolo Carlini <pcarlini@suse.de>
5789 * include/bits/locale_facets.h (struct __numpunct_cache):
5790 Add member _M_grouping_size, caching the length of _M_grouping.
5791 (__numpunct_cache<>::_M_cache): Assign the latter.
5792 (__verify_grouping): Move declaration...
5793 * include/bits/locale_facets.tcc (__verify_grouping):
5794 ... here, change signature to take a const char* and a size_t
5795 for the grouping; not a template anymore.
5796 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
5797 Likewise change signature and tweak consistently.
5798 (num_get::_M_extract_float, num_get::_M_extract_int,
5799 num_put::_M_insert_int, num_put::_M_insert_float,
5800 money_get::do_get(string_type&), money_get::do_put(string_type)):
5802 * config/locale/generic/numeric_members.cc
5803 (numpunct<>::_M_initialize_numpunct): Assign the new member.
5804 * config/locale/gnu/numeric_members.cc
5805 (numpunct<>::_M_initialize_numpunct): Likewise.
5806 * src/locale-inst.cc (__add_grouping): Tweak signature.
5807 (__verify_grouping): Don't instantiate, not a template anymore.
5809 * include/bits/locale_facets.h: Rename _M_truename_len ->
5810 _M_truename_size, _M_falsename_len -> _M_falsename_size.
5811 * include/bits/locale_facets.tcc: Likewise.
5812 * config/locale/generic/numeric_members.cc: Likewise.
5813 * config/locale/gnu/numeric_members.cc: Likewise.
5815 2004-01-14 Stefan Olsson <stefan@snon.net>
5817 * include/ext/mt_allocator.h: Fixups.
5818 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
5819 * testsuite/performance/allocator_thread.cc: Same.
5821 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5823 * testsuite/performance/ifstream_extract_float.cc: Add higher
5825 * testsuite/performance/ofstream_insert_float.cc: Same.
5827 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5829 * src/locale-misc-inst.cc (__convert_from_v(long),
5830 __convert_from_v(unsigned long), __convert_from_v(long long),
5831 __convert_from_v(unsigned long long)): Remove, unused.
5833 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
5835 * testsuite/performance/ifstream_extract_float.cc: New.
5836 * testsuite/performance/ofstream_insert_float.cc: Float generation
5839 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
5840 * 20_util/auto_ptr/1.cc: ...this.
5841 * 20_util/auto_ptr/2.cc: Same.
5842 * 20_util/auto_ptr/3.cc: Same.
5843 * 20_util/auto_ptr/3946.cc: Same.
5844 * 20_util/auto_ptr/4.cc: Same.
5845 * 20_util/auto_ptr/5.cc: Same.
5846 * 20_util/auto_ptr/6.cc: Same.
5847 * 20_util/auto_ptr/7.cc: Same.
5848 * 20_util/auto_ptr/assign_neg.cc
5849 * 20_util/pairs.cc: Break into...
5850 * 20_util/pair/1.cc: ...this.
5851 * 20_util/pair/2.cc: Same.
5852 * 20_util/pair/3.cc: Same.
5853 * 20_util/pair/4.cc: Same.
5855 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5857 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
5858 Set correctly just basefield, the only group that matters.
5860 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5862 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
5863 (_Rope_rep_base): Inherit directly from the rope allocator;
5864 use rebinding instead of _Alloc_traits; pick up data member
5865 from _Rope_rep_alloc_base.
5866 (_Rope_alloc_base): Eliminate.
5867 (_Rope_base): Inherit directly from the rope allocator; use
5868 rebinding instead of _Alloc_traits; pick up data member from
5870 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
5871 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
5873 2004-01-13 Paolo Carlini <pcarlini@suse.de>
5876 * include/bits/basic_string.tcc (compare(size_type, size_type,
5877 const _CharT*, size_type)): Implement correctly the resolution
5878 of DR 5: basically, s is a char array, -not- a C string.
5879 * include/bits/basic_string.h: Tweak some comments.
5880 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
5881 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
5883 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
5885 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
5888 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5890 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
5892 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
5895 2004-01-12 Paolo Carlini <pcarlini@suse.de>
5897 * include/bits/locale_facets.h (struct __numpunct_cache):
5898 Add members _M_truename_len and _M_falsename_len, caching
5899 the lengths of _M_truename and _M_falsename.
5900 (__numpunct_cache<>::_M_cache): Assign the latter.
5901 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
5902 num_put::do_put(bool)): Use the new members, thus avoiding
5903 computing string lengths again and again.
5904 * config/locale/generic/numeric_members.cc
5905 (numpunct<>::_M_initialize_numpunct): Assign the new members.
5906 * config/locale/gnu/numeric_members.cc
5907 (numpunct<>::_M_initialize_numpunct): Likewise.
5909 2004-01-12 Mark Mitchell <mark@codesourcery.com>
5911 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
5912 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
5914 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
5915 and remove Cygwin XFAIL.
5916 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
5917 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
5918 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
5919 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
5921 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
5922 * testsuite/27_io/objects/char/7.cc: Likewise.
5923 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
5924 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
5925 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
5927 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5929 * include/std/std_complex.h (std::complex<>::real): Return a
5930 reference. Add non-const overload.
5931 (std::complex<>::real): Likewise.
5932 (std::real): Likewise.
5933 (std::imag): Likewise.
5934 (std::operator+): Tidy.
5935 (std::operator-): Likewise.
5936 (std::operator*): Likewise.
5937 (std::operator/): Likewise.
5938 (std::operator>>): Likewise.
5940 2004-01-11 Paolo Carlini <pcarlini@suse.de>
5943 * include/bits/fstream.tcc (imbue): Exploit the external
5944 buffer to imbue 'on the fly' a new locale and convert its
5945 remainder with the new codecvt facet.
5946 (underflow): Tweak slightly to deal with this special case.
5947 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
5948 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
5949 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
5950 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
5951 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
5953 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5955 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
5958 2004-01-10 Paolo Carlini <pcarlini@suse.de>
5961 * include/bits/locale_classes.h (class locale): Fix category
5963 * testsuite/22_locale/locale/13630.cc: Add.
5965 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5967 * include/bits/locale_facets.h: Make a name really dependent. This
5968 will be needed when Core Issue 224 is implemented.
5970 2004-01-09 Paolo Carlini <pcarlini@suse.de>
5972 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
5973 * testsuite/performance/allocator_thread.cc: Likewise.
5975 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
5977 * crossconfig.m4: Add LFS, io bits to linux cross config.
5978 * acconfig.h: Remove obsolete bits, reorder.
5979 * config.h.in: Regenerate.
5983 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
5985 * include/bits/stl_list.h:
5986 * include/bits/list.tc:
5988 Performance enhancements for destructor, push_front(),
5989 push_back(), pop_front(), pop_back(), sort()
5990 Eliminated static_casts where possible.
5991 Moved code out of header files into new src/list.cc
5992 implementation file for library where possible.
5993 Remove inheritance from iterator class and create separate
5994 classes for non-constant and constant iterators.
5995 * include/bits/stl_tree.h (_Rb_tree class):
5997 Only erase contents in destructor.
5998 Eliminate unnecessary initialization in assignment operator.
5999 Optimize for the nominal case by not checking whether
6000 container is empty in clear().
6001 Re-order test in _M_insert() to improve performance.
6002 Move initialization of new node's left & right pointers to
6003 src/tree.cc to where new node's colour is initialized
6004 and to reduce the amount of inline code.
6005 Use _M_leftmost() and _M_end() to improve readability where
6007 Create separate classes for non-constant and constant
6008 iterators to clarify code, avoid extra template parameters and
6009 casting away constness.
6011 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
6013 * src/Makefile.am (sources): Add list.cc, tree.cc.
6014 * src/stl_tree.cc: Move to...
6015 * src/tree.cc: ...here.
6017 * config/linker-map.gnu: Tweaks.
6018 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
6019 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
6021 * bits/stl_vector.h: Column wrap comments.
6023 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
6025 (re-open) PR libstdc++/12658
6026 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
6027 (locale::global): Likewise.
6029 2004-01-07 Paolo Carlini <pcarlini@suse.de>
6031 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
6032 Remove redundant #include.
6033 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
6034 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
6035 re-enable normal testing.
6036 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
6038 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
6039 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
6041 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
6043 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
6045 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
6047 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
6049 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
6051 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
6053 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
6054 More properly, #include <locale>.
6055 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
6056 Remove redundant #include.
6057 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
6058 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
6059 redundant DejaGnu directive.
6060 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
6063 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
6064 Stefan Olsson <stefan@snon.net>
6066 * scripts/check_performance: Use -pthread.
6067 * testsuite/performance/allocator.cc: Tweaks, add list.
6068 * testsuite/performance/allocator_thread.cc: New.
6070 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
6072 * include/bits/locale_facets.h: Document public classes and
6074 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
6077 2004-01-06 Paolo Carlini <pcarlini@suse.de>
6079 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
6080 Remove redundant #includes.
6081 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
6083 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
6085 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
6086 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
6087 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
6088 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
6089 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
6090 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
6091 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
6092 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
6093 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
6094 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
6095 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
6096 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
6097 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
6098 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
6099 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
6101 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
6103 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
6105 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
6107 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
6109 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
6110 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
6111 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
6113 2004-01-04 Paolo Carlini <pcarlini@suse.de>
6115 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
6116 Remove redundant #includes.
6117 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
6119 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
6121 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
6123 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
6125 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
6127 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
6129 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
6131 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
6133 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
6135 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
6137 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
6139 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
6142 2004-01-04 Mark Mitchell <mark@codesourcery.com>
6145 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
6147 * testsuite/27_io/basic_fstream/4.cc: Likewise.
6148 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
6149 * testsuite/27_io/basic_ios/4.cc: Likewise.
6150 * testsuite/27_io/basic_iostream/4.cc: Likewise.
6151 * testsuite/27_io/basic_istream/4.cc: Likewise.
6152 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
6153 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
6154 * testsuite/27_io/basic_ostream/4.cc: Likewise.
6155 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
6156 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
6157 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
6159 2004-01-04 Paolo Carlini <pcarlini@suse.de>
6161 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
6162 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
6163 always use double underscored names.
6164 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
6166 * include/bits/locale_facets.h (struct __numpunct_cache):
6167 Dimension _M_atoms_out and _M_atoms_in one position smaller.
6168 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out