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