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