debug.cc (_Error_formatter::_M_print_string): Fix thinko, memmove is not needed,...
[gcc.git] / libstdc++-v3 / ChangeLog
1 2004-08-13 Paolo Carlini <pcarlini@suse.de>
2
3 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
4 memmove is not needed, memcpy suffices.
5
6 2004-08-13 Paolo Carlini <pcarlini@suse.de>
7
8 * include/std/std_fstream.h (class basic_ifstream,
9 class basic_ofstream, class basic_fstream): Add const overloads
10 of is_open, as per DR 365 [WP].
11 * docs/html/ext/howto.html: Add an entry for DR 365.
12
13 2004-08-12 Paolo Carlini <pcarlini@suse.de>
14
15 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
16
17 2004-08-12 Paolo Carlini <pcarlini@suse.de>
18
19 PR libstdc++/16956
20 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
21 to the returned value, reorganize a bit.
22 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
23 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
24
25 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
26 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
27 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
28 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
29
30 2004-08-12 Paul Brook <paul@codesourcery.com>
31
32 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
33 _GLIBCXX_CXA_VEC_CTOR_RETURN.
34 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
35 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
36 __cxa_vec_ctor_return.
37 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
38 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
39
40 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
41
42 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
43 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
44 src/Makefile.in, testsuite/Makefile.in: Regenerate
45
46 2004-08-12 Jan Beulich <jbeulich@novell.com>
47
48 * config/locale/generic/ctype_members.cc
49 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
50 initializer for return value, as that is invalid for enumerated types.
51 * config/locale/gnu/ctype_members.cc
52 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
53
54 2004-08-11 Paolo Carlini <pcarlini@suse.de>
55
56 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
57
58 2004-08-11 Paolo Carlini <pcarlini@suse.de>
59
60 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
61 variable.
62 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
63 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
64 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
65 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
66 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
67 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
68 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
69 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
70 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
71 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
72 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
73 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
74 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
75 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
76 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
77 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
78 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
79 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
80 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
81 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
82 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
83
84 2004-08-11 Paolo Carlini <pcarlini@suse.de>
85 Petur Runolfsson <peturr02@ru.is>
86
87 PR libstdc++/16959
88 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
89 standard streams are constructed.
90 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
91
92 2004-08-09 Paolo Carlini <pcarlini@suse.de>
93
94 * include/bits/stl_bvector.h: Trivial formatting fixes.
95
96 2004-08-09 Paolo Carlini <pcarlini@suse.de>
97
98 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
99
100 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
101 Paolo Carlini <pcarlini@suse.de>
102
103 * src/debug.cc (_Error_formatter::_M_print_string): In order
104 to print individual words from __string, _M_format_word can't
105 be called since may be just sprintf, thus ignoring completely
106 __n: instead, use memmove and append '\0' by hand.
107
108 2004-08-07 Paolo Carlini <pcarlini@suse.de>
109
110 * config/locale/generic/c_locale.h (__convert_from_v): Don't
111 use a default for __prec, assume __prec >= 0 and simplify.
112 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
113 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
114 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
115
116 2004-08-04 Phil Edwards <phil@codesourcery.com>
117
118 * docs/html/configopts.html: Emphasize that options change.
119 * docs/html/17_intro/configury.html: Update links.
120
121 2004-08-03 Paolo Carlini <pcarlini@suse.de>
122
123 * include/bits/list.tcc: Trivial formatting fixes.
124
125 2004-08-03 Mark Mitchell <mark@codesourcery.com>
126
127 * libsupc++/new_op.cc: Update comments.
128 * libsupc++/del_op.cc: Likewise.
129
130 2004-08-02 Mark Mitchell <mark@codesourcery.com>
131
132 * libsupc++/cxxabi.h: Make all declarations have default
133 visibility.
134 * libsupc++/exception: Likewise.
135 * libsupc++/new: Likewise.
136 * libsupc++/typeinfo: Likewise.
137 * libsupc++/unwind-cxx.h: Likewise.
138 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
139 the __cxxabiv1 namespace.
140 (__cxa_free_exception): Likewise.
141 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
142 (__cxa_bad_typeid): Likewise.
143 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
144 (__cxa_end_catch): Likewise.
145 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
146 (__cxa_get_globals): Likewise.
147 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
148 (__cxa_rethrow): Likewise.
149 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
150 * libsupc++/eh_type.cc: Include <cxxabi.h>.
151
152 * Makefile.am (hosted_source): Add libmath and testsuite.
153 (SUBDIRS): Remove them.
154 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
155 on arm*-*-symbianelf*.
156 * crossconfig.m4: Add arm*-*-symbianelf* support.
157 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
158 when freestanding. Do not bring names into std:: namespace with
159 "using" when freestanding. Declare required functions and macros
160 when freestanding.
161 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
162 when freestanding.
163 * libsupc++/del_op.cc: Declare "free" only when freestanding.
164 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
165 (malloc): Declare when freestanding.
166 (free): Likewise.
167 (memset): Likewise.
168 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
169 for memset.
170 (__cxa_free_exception): Likewise for free.
171 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
172 * libsupc++/pure.cc (writestr): Define to nothing when
173 freestanding.
174 * libsupc++/vterminate.cc: Do not define anything when
175 freestanding.
176 * Makefile.in: Regenerated.
177 * aclocal.m4: Likewise.
178 * configure: Likewise.
179 * include/Makefile.in: Likewise.
180 * libmath/Makefile.in: Likewise.
181 * libsupc++/Makefile.in: Likewise.
182 * po/Makefile.in: Likewise.
183 * src/Makefile.in: Likewise.
184 * testsuite/Makefile.in: Likewise.
185
186 2004-08-01 Matt Austern <austern@apple.com>
187
188 PR libstdc++/16844
189 * include/bits/stl_list.h (_M_create_node): Remove unused
190 zero-argument version.
191 * include/ext/slist (_M_create_node): Pass two arguments to
192 allocator's construct() member function.
193 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
194 * testsuite/23_containers/list/explicit_instantiation.cc: New.
195 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
196 * testsuite/23_containers/map/explicit_instantiation.cc: New.
197 * testsuite/23_containers/set/explicit_instantiation.cc: New.
198 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
199 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
200 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
201 * testsuite/ext/slist_explicit_instantiation.cc: New.
202
203 2004-07-30 Paolo Carlini <pcarlini@suse.de>
204
205 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
206 num_get<>::_M_extract_int): In the main parsing loop delay the
207 life of __q to the actual use point.
208
209 2004-07-29 Paolo Carlini <pcarlini@suse.de>
210
211 PR libstdc++/14220
212 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
213 Don't clip the precision passed down to __convert_from_v:
214 22.2.2.2.2 nowhere says so.
215 * testsuite/22_locale/num_put/put/char/14220.cc: New.
216 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
217
218 2004-07-29 Paolo Carlini <pcarlini@suse.de>
219
220 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
221
222 2004-07-29 Paolo Carlini <pcarlini@suse.de>
223 Petur Runolfsson <peturr02@ru.is>
224
225 PR libstdc++/12658 (continued)
226 * src/locale_init.cc (locale::locale, locale::global): Use
227 a single locale_mutex instead of two separate mutexes.
228
229 2004-07-29 Paolo Carlini <pcarlini@suse.de>
230
231 PR libstdc++/16813
232 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
233 Fix typo.
234 * testsuite/23_containers/map/insert/16813.cc: New.
235
236 2004-07-29 Phil Edwards <phil@codesourcery.com>
237
238 * docs/html/faq/index.html: Update version references. Make
239 clear that code from SGI has diverged greatly. Remove references
240 to library snapshots and what's-new sections.
241 * docs/html/faq/index.txt: Regenerate.
242
243 2004-07-28 Matt Austern <austern@apple.com>
244
245 * include/bits/stl_construct.h (_Destroy): New three-argument
246 overload that takes an allocator argument. Another inline
247 three-argument overload that takes std::allocator and dispatches
248 to the two-argument version.
249 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
250 Change return type to void to match uninitialized_fill_n.
251 (__uninitialized_copy_a_): New function. Like uninitialized_copy
252 except that it takes an allocator and uses it for construct and
253 destroy. If the allocator is std::allocator, dispatches to
254 uninitialized_copy.
255 (__uninitialized_fill_a): Likewise.
256 (__uninitialized_fill_n_a): Likewise.
257 (__uninitialized_copy_copy): Give it an allocator argument.
258 (__uninitialized_fill_copy): Likewise.
259 (__uninitialized_copy_fill): Likewise.
260 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
261 and stl_uninitialized.h. Replace use of single-argument _Construct
262 and _Destroy with use of allocator's construct and destroy methods.
263 * include/bits/list.tcc: Likewise.
264 * include/bits/stl_deque.h: Likewise.
265 * include/bits/stl_list.h: Likewise.
266 * include/bits/stl_tree.h: Likewise.
267 * include/bits/stl_vector.h: Likewise.
268 * include/bits/vector.tcc: Likewise.
269 * include/ext/hashtable.h: Use rebind so that allocator_type
270 has correct type for a container's allocator. Replace use of
271 single-argument _Construct and _Destroy with use of allocator's
272 construct and destroy methods.
273 * include/ext/memory (__uninitialized_copy_n_a): New function.
274 Like uninitialized_copy_n except that it takes an extra parameter,
275 an allocator, and uses it for construct and destroy operations.
276 * include/ext/rope: Use new forms defined in stl_construct.h,
277 stl_uninitialized.h, and ext/memory. Replace use of single-argument
278 _Construct and _Destroy with allocator construct and destroy methods.
279 * include/ext/ropeimpl.h: Likewise.
280 * include/ext/slist.h: Likewise.
281 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
282 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
283 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
284 * testsuite/23_containers/list/check_construct_destroy.cc: New.
285 * testsuite/23_containers/set/check_construct_destroy.cc: New.
286 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
287 * testsuite/ext/hash_check_construct_destroy.cc: New.
288 * testsuite/ext/slist_check_construct_destroy.cc: New.
289
290 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
291
292 2003-10-01 Eric Christopher <echristo@redhat.com>
293 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
294 constraint.
295 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
296 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
297
298 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
299
300 PR libstdc++/16678
301 * include/bits/locale_facets.tcc: Fix for -Werror.
302
303 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
304
305 * docs/html/debug.html: Say debug mode only available since 3.4.0.
306
307 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
308
309 * docs/doxygen/mainpage.html: Clarify links.
310 * docs/doxygen/stdheader.cc: Add files.
311 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
312 * docs/doxygen/user.cfg.in: New options, wrap.
313
314 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
315
316 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
317
318 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
319
320 PR libstdc++/15488
321 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
322
323 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
324
325 PR bootstrap/16469
326 * scripts/create_testsuite_files: Pass -print to find.
327
328 2004-07-15 Paolo Carlini <pcarlini@suse.de>
329
330 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
331 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
332
333 2004-07-15 Jakub Jelinek <jakub@redhat.com>
334
335 PR libstdc++/14697
336 * acinclude.m4 (glibcxx_shared_libgcc): Correct
337 glibcxx_shared_libgcc test for multilibs.
338 * configure: Rebuilt.
339
340 2004-07-14 Paolo Carlini <pcarlini@suse.de>
341
342 PR libstdc++/16505
343 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
344 the signature to return void, as per 20.4.4.3.
345 * include/bits/stl_vector.h (vector::vector(size_type,
346 const value_type&, const allocator_type&), vector::vector(size_type),
347 vector::_M_initialize_dispatch): Adjust callers.
348 * include/bits/vector.tcc (vector<>::_M_fill_assign,
349 vector<>::_M_fill_insert): Likewise.
350 * testsuite/20_util/memory/16505.cc: New.
351
352 2004-07-14 Paolo Carlini <pcarlini@suse.de>
353
354 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
355 12658_thread-2.cc: Use __gnu_test::try_named_locale.
356
357 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
358
359 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
360 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
361 (__mt_alloc::_S_set_options): Same.
362 Add to comments.
363
364 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
365
366 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
367 for linux.
368 * configure: Regenerated.
369
370 2004-07-13 Paolo Carlini <pcarlini@suse.de>
371
372 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
373 to 12658_thread-1.cc and xfail.
374 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
375 simpler version of 12658_thread-1.cc, still failing on 3_3 and
376 not failing on 3_4/mainline - both on single processor and
377 multiprocessor machines.
378
379 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
380
381 * docs/html/abi.html: Remove non-public qualification.
382
383 * include/bits/concurrence.h: Tweak comments.
384
385 2004-07-11 Paolo Carlini <pcarlini@suse.de>
386
387 Add wchar_t counterparts of the basic_streambbuf<char> tests.
388 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
389 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
390 Likewise.
391 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
392 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
393 3599.cc: Likewise.
394 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
395 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
396 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
397 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
398 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
399 Likewise.
400 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
401
402 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
403 tweaks.
404 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
405 Likewise.
406 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
407 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
408
409 2004-07-11 Phil Edwards <phil@codesourcery.com>
410
411 * acinclude.m4: Cosmetic shell syntax fixes.
412 * configure.ac: Bring comment inline with reality.
413 * configure.host: Both of the above. Move 'arm' case to right
414 place in host_cpu switch.
415 * aclocal.m4, configure: Regenerate.
416
417 2004-07-09 Paolo Carlini <pcarlini@suse.de>
418
419 Add wchar_t counterparts of the basic_stringbuf<char> tests.
420 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
421 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
422 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
423 3599.cc, 9988.cc: Likewise.
424 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
425 Likewise.
426 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
427 Likewise.
428 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
429 Likewise.
430 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
431 Likewise.
432 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
433 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
434 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
435 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
436 Likewise.
437 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
438 9404-1.cc: Likewise.
439 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
440 9404-2.cc: Likewise.
441 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
442 3955.cc: Likewise.
443 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
444 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
445
446 2004-07-08 Paolo Carlini <pcarlini@suse.de>
447
448 * include/bits/gslice.h: Trivial formatting fixes.
449 * include/bits/gslice_array.h: Likewise.
450 * include/bits/indirect_array.h: Likewise.
451 * include/bits/mask_array.h: Likewise.
452 * include/bits/slice_array.h: Likewise.
453 * include/bits/valarray_after.h: Likewise.
454 * include/bits/valarray_array.h: Likewise.
455 * include/bits/valarray_before.h: Likewise.
456 * include/std/std_valarray.h: Likewise.
457
458 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
459
460 PR c++/16169
461 * include/bits/basic_string.h (basic_string::operator=): Revert.
462
463 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
464
465 * configure.ac (libtool_VERSION): To 6:2:0.
466 * configure: Regenerated.
467
468 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
469
470 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
471
472 PR libstdc++/16411
473 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
474
475 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
476
477 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
478 -Weffc++ issues.
479
480 2004-07-07 Paolo Carlini <pcarlini@suse.de>
481
482 PR libstdc++/16401
483 * include/bits/sstream.tcc (overflow): When reallocating _M_string
484 use an exponential grow policy.
485 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
486 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
487
488 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
489
490 PR libstdc++/15928
491 * crossconfig.m4: Add in bits for djgpp.
492 * configure: Regenerate.
493
494 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
495
496 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
497 instantiation of set and multiset (functor param given as int).
498
499 2004-07-04 Paolo Carlini <pcarlini@suse.de>
500
501 * include/bits/basic_string.h: Trivial formatting fixes and/or
502 const-ification of some variables.
503 * include/bits/deque.tcc: Likewise.
504 * include/bits/stl_algobase.h: Likewise.
505 * include/bits/stl_bvector.h: Likewise.
506 * include/bits/stl_construct.h: Likewise.
507 * include/bits/stl_deque.h: Likewise.
508 * include/bits/stl_pair.h: Likewise.
509 * include/bits/stl_vector.h: Likewise.
510 * include/bits/vector.tcc: Likewise.
511
512 2004-07-04 Paolo Carlini <pcarlini@suse.de>
513
514 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
515 systems with no COMDAT or weak support.
516 * testsuite/25_algorithms/copy/2.cc: Likewise.
517 * testsuite/25_algorithms/copy/3.cc: Likewise.
518 * testsuite/25_algorithms/copy/4.cc: Likewise.
519
520 2004-07-03 Paul Brook <paul@codesourcery.com>
521
522 * configure.ac: Set ABI_TWEAKS_SRCDIR.
523 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
524 setting atomicity_dir. Override type_cpu for arm based targets.
525 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
526 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
527 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
528 * libsupc++/vec.cc: Ditto.
529 * config/cpu/arm/cxxabi_tweaks.h: New file.
530 * config/cpu/generic/cxxabi_tweaks.h: New file.
531 * */Makefile.in: Regenerate.
532 * configure: Regenerate.
533
534 2004-07-02 Paolo Carlini <pcarlini@suse.de>
535
536 * include/bits/type_traits.h (_Is_normal_iterator): Move...
537 * include/bits/cpp_type_traits.h: ... here, renamed to
538 __is_normal_iterator and consistent with the other traits.
539 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
540 to the struct __copy_normal and three specializations.
541 (__copy_backward_output_normal_iterator,
542 __copy_backward_input_normal_iterator): Likewise, convert to
543 the struct __copy_backward_normal and three specializations.
544 (copy, copy_backward): Use the latter.
545 (__copy_aux, __copy_backward_aux): Very minor tweaks.
546
547 2004-07-01 Paolo Carlini <pcarlini@suse.de>
548
549 * include/bits/stl_algobase.h (__copy_trivial): Remove.
550 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
551 __is_trivially_copyable, __are_same and __copy::copy.
552 (__copy): Rewrite as a class template and two specializations.
553 (__copy_ni2): Simplify, just call __copy_aux.
554
555 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
556 check.
557 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
558 for destination value type != source value type.
559
560 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
561 Per Bothner <per@bothner.com>
562 Mohan Embar <gnustuff@thisiscool.com>
563
564 PR libstdc++/16248
565 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
566 (__glibcxx_mutex): Encapsulate mutex init function into type for
567 threaded configurations without __GTHREAD_MUTEX_INIT.
568 (lock::lock): Make device member a reference.
569 (lock::~lock): Same.
570 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
571 to mutex_type.
572 * src/allocator.cc: Same.
573
574 2004-06-30 Brad Spencer <spencer@infointeractive.com>
575
576 * include/ext/mt_allocator.h: Handle allocations at static
577 initialization that happen before _S_options is (automatically)
578 constructed; set _S_init even if _M_force_new is true.
579
580 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
581
582 * config/linker-map.gnu: Revert new exports.
583
584 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
585 Stuart Anderson <anderson@netsweng.com>
586
587 * config/linker-map.gnu: Add destructor exports for abstract base
588 classes to conform to LSB.
589
590 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
591 Paolo Carlini <pcarlini@suse.de>
592
593 * include/bits/cpp_type_traits.h: Add __is_pointer and
594 __is_trivially_copyable.
595 * include/bits/stl_algobase.h (fill, fill_n): Slightly
596 tweak to use the latter.
597 (__copy_backward_dispatch): Remove.
598 (__copy_backward_aux): Rewrite to use __is_pointer and
599 __is_trivially_copyable and __copy_backward::copy_b.
600 (__copy_backward): Rewrite as a class template and two
601 specializations.
602
603 2004-06-30 Paolo Carlini <pcarlini@suse.de>
604
605 * testsuite/25_algorithms/copy.cc: Move to...
606 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
607 * testsuite/25_algorithms/copy/2.cc: New.
608 * testsuite/25_algorithms/copy/3.cc: New.
609 * testsuite/25_algorithms/copy/4.cc: New.
610
611 2004-06-29 Paul Brook <paul@codesourcery.com>
612
613 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
614 element size in the cookie.
615
616 2004-06-28 Paolo Carlini <pcarlini@suse.de>
617
618 * include/bits/cpp_type_traits.h: Move the additions to
619 namespace __gnu_internal outside of namespace std; trivial
620 formatting fixes.
621
622 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
623
624 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
625 Revert -Weffc++ changes that defined copy ctory and or assignment
626 operator.
627 * libsupc++/tinfo.cc (__upcast_result): Same.
628
629 2004-06-28 Paolo Carlini <pcarlini@suse.de>
630
631 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
632 the algorithm used to name the categories.
633
634 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
635
636 * include/Makefile.am: Give a .gch extension to
637 the PCH files, not only to the directory.
638 * include/Makefile.in: Regenerate.
639
640 2004-06-28 Paolo Carlini <pcarlini@suse.de>
641
642 * config/locale/gnu/monetary_members.cc
643 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
644 assignments of _M_decimal_point and _M_thousands_sep.
645
646 2004-06-27 Paolo Carlini <pcarlini@suse.de>
647
648 * docs/html/17_intro/contribute.html: Update some links.
649 * docs/html/17_intro/porting-howto.html: Likewise.
650 * docs/html/17_intro/porting-howto.xml: Likewise.
651 * docs/html/18_support/howto.html: Likewise.
652 * docs/html/21_strings/howto.html: Likewise.
653 * docs/html/27_io/howto.html: Likewise.
654 * docs/html/configopts.html: Likewise.
655 * docs/html/ext/howto.html: Likewise.
656 * docs/html/faq/index.html: Likewise.
657 * docs/html/install.html: Don't mention 2.x compilers.
658
659 2004-06-27 Paolo Carlini <pcarlini@suse.de>
660
661 * include/ext/rope: Trivial formatting fixes.
662 * include/ext/ropeimpl.h: Likewise.
663
664 2004-06-26 Paolo Carlini <pcarlini@suse.de>
665
666 PR libstdc++/16210
667 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
668 availability of strto(u)ll, not used anymore in the iostreams.
669 * configure: Regenerate.
670
671 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
672
673 PR libstdc++/16182
674 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
675 AC_DEFINE_UNQUOTED.
676 * configure: Regenerate.
677
678 2004-06-25 Paul Brook <paul@codesourcery.com>
679
680 * libsupc++/cxxabi.h: Define __ARM_EABI__
681 (__guard): Use it.
682 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
683
684 2004-06-25 Paul Brook <paul@codesourcery.com>
685
686 * include/bits/concurrence.h: Still create mutex object when
687 single-threaded.
688
689 2004-06-25 Paolo Carlini <pcarlini@suse.de>
690
691 * include/bits/stl_algobase.h (fill, fill_n): Revert last
692 change: actually we need to copy construct an object of type
693 _Tp, not of type iterator_traits<>::value_type, therefore the
694 code is ok.
695
696 2004-06-25 Paolo Carlini <pcarlini@suse.de>
697
698 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
699 dispatch: use iterator_traits<>::value_type, not _Tp.
700
701 2004-06-25 Paolo Carlini <pcarlini@suse.de>
702
703 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
704 * testsuite/25_algorithms/fill/2.cc: Likewise.
705
706 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
707 Paolo Carlini <pcarlini@suse.de>
708
709 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
710 for fill and fill_n, respectively: when copying is cheap, use a
711 temporary to avoid a memory read in each iteration.
712
713 2004-06-25 Paolo Carlini <pcarlini@suse.de>
714
715 * testsuite/25_algorithms/fill/1.cc: New.
716 * testsuite/25_algorithms/fill/2.cc: Likewise.
717
718 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
719
720 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
721 Remove copy constructor and assignment operator.
722
723 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
724
725 * include/bits/concurrence.h (__gnu_cxx::lock): New.
726 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
727 (__pool_base::_M_get_mutex): New.
728 * include/bits/allocator.h: Tweak.
729 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
730 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
731 * include/bits/stl_threads.h: Remove.
732 * include/Makefile.am: Also here.
733 * include/Makefile.in: Regenerate.
734
735 * src/locale_init.cc: Use __gnu_cxx::lock.
736
737 * src/allocator.cc: Move all instantiations...
738 * src/allocator-inst.cc: ...here.
739
740 2004-06-23 Andrew Pinski <apinski@apple.com>
741
742 * linkage.m4: Remove check for libmx.
743 * configure: Regenerate.
744
745 2004-06-23 Paolo Carlini <pcarlini@suse.de>
746
747 PR libstdc++/16154
748 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
749 Don't require the _DefaultConstructibleConcept.
750 (struct _ForwardIteratorConcept): Require it here.
751
752 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
753
754 * include/bits/istream.tcc (getline): Make sure arguments passed
755 to min/max have the same type.
756 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
757 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
758
759 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
760
761 * docs/html/abi.html: Update links.
762
763 2004-06-22 Paolo Carlini <pcarlini@suse.de>
764
765 * testsuite/26_numerics/complex_inserters_extractors.cc,
766 complex_value.cc, buggy_complex.cc: Move to...
767 * testsuite/26_numerics/complex/: ... here.
768 * testsuite/26_numerics/c99_classification_macros_c++.cc,
769 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
770 fabs_inline.cc: Move to...
771 * testsuite/26_numerics/cmath/: ... here.
772 * testsuite/26_numerics/binary_closure.cc, slice.cc,
773 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
774 valarray_name_lookup.cc, valarray_operators.cc,
775 valarray_subset_assignment.cc: Move to...
776 * testsuite/26_numerics/valarray/: ... here (new dir).
777 * testsuite/26_numerics/sum_diff.cc: Move to...
778 * testsuite/26_numerics/numeric/: ... here (new dir).
779
780 2004-06-22 Paolo Carlini <pcarlini@suse.de>
781
782 * include/std/std_istream.h (ignore(streamsize __n = 1,
783 int_type __delim = traits_type::eof())): Split into...
784 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
785 int_type __delim)): The first two can be much more simpler
786 and efficient than the fully general case; also, the last
787 two can take advantage of the same mechanism already used
788 for getline.
789 * include/bits/istream.tcc (ignore(streamsize __n = 1,
790 int_type __delim = traits_type::eof()): Remove.
791 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
792 int_type __delim)): New.
793
794 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
795
796 * config/linker-map.gnu: Use wildcards for
797 __basic_file::sys_open(FILE*, _Ios_Openmode).
798
799 2004-06-20 Paolo Carlini <pcarlini@suse.de>
800
801 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
802
803 2004-06-18 Paolo Carlini <pcarlini@suse.de>
804
805 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
806 the alignment requested.
807 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
808 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
809 (__mt_alloc<>::deallocate): Likewise.
810
811 2004-06-18 Paolo Carlini <pcarlini@suse.de>
812
813 PR libstdc++/16020
814 * include/debug/safe_base.h
815 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
816 _Safe_sequence_base::operator=): Provide definitions.
817 * testsuite/23_containers/bitset/cons/16020.cc: New.
818
819 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
820
821 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
822 (__pool_base): Remove unused template parameter. Add
823 protected. Move lock data into __pool_base::_Lock. Remove static
824 on member functions.
825 (__pool_base::_M_get_free_list): New.
826 (__pool_alloc): Move _S_force new here.
827 * src/allocator.cc: Move out of line __pool_base definitions here.
828 * config/linker-map.gnu: Export bits from __pool_base.
829
830 2004-06-18 Paolo Carlini <pcarlini@suse.de>
831
832 * config/locale/gnu/numeric_members.cc
833 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
834 assignments of _M_decimal_point and _M_thousands_sep.
835 * config/locale/gnu/time_members.cc
836 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
837 and reformat assignments of date and time fields.
838
839 2004-06-16 Paolo Carlini <pcarlini@suse.de>
840
841 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
842 to use _Data_allocate.
843 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
844 (rope<>::_S_substring): Likewise.
845 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
846 (rope<>::c_str()): Likewise.
847 (rope<>::replace_with_c_str()): Likewise.
848
849 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
850 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
851 not _RopeRep.
852 (_Rope_iterator_base<>::_S_setcache): Likewise.
853 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
854 (rope<>::_S_substring): Likewise.
855 (rope<>::_S_dump): Likewise.
856 (rope<>::_S_fetch_ptr): Likewise.
857 (rope<>::_S_compare): Likewise.
858 (rope<>::replace_with_c_str()): Likewise.
859
860 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
861 * testsuite/ext/rope/2.cc: New.
862
863 2004-06-16 Paolo Carlini <pcarlini@suse.de>
864 Matt Austern <austern@apple.com>
865
866 * testsuite/ext/rope/3.cc: New.
867
868 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
869
870 * acinclude.m4: Remove useless multilib configury.
871 * Makefile.am: Remove useless multilib rules.
872 * aclocal.m4: Regenerate.
873 * Makefile.in: Regenerate.
874 * configure: Regenerate.
875
876 2004-06-15 Paolo Carlini <pcarlini@suse.de>
877
878 * include/ext/hashtable.h: Trivial formatting fixes.
879 * include/ext/rb_tree: Likewise.
880
881 2004-06-14 Paolo Carlini <pcarlini@suse.de>
882
883 * include/ext/hash_map: Trivial formatting fixes.
884 * include/ext/hash_set: Likewise.
885 * include/ext/memory: Likewise.
886 * include/ext/numeric: Likewise.
887
888 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
889
890 * Makefile.in: Regenerate with automake 1.8.5.
891 * aclocal.m4: Same.
892 * include/Makefile.in: Same.
893 * libmath/Makefile.in: Same.
894 * libsupc++/Makefile.in: Same.
895 * po/Makefile.in: Same.
896 * src/Makefile.in: Same.
897 * testsuite/Makefile.in: Same.
898
899 2004-06-14 Paolo Carlini <pcarlini@suse.de>
900
901 * include/ext/slist: Trivial formatting fixes.
902
903 2004-06-14 Paolo Carlini <pcarlini@suse.de>
904
905 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
906 Don't use the 'magic number' 10 in the computation of __minlen;
907 never access __name past __minlen; in the loop over __i3, don't
908 decrease __nmatches and increase __i3 at once, only either of
909 the two; tidy.
910
911 2004-06-13 Paolo Carlini <pcarlini@suse.de>
912
913 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
914 time_get<>::do_get_date): Use only once _M_extract_via_format,
915 instead of going through "%X"/"%x" and calling it two times
916 (+ using widen).
917
918 2004-06-12 Paolo Carlini <pcarlini@suse.de>
919
920 * include/ext/algorithm: Trivial formatting fixes.
921 * include/ext/functional: Likewise.
922 * include/ext/hash_fun.h: Likewise.
923 * include/ext/iterator: Likewise.
924
925 2004-06-12 Paolo Carlini <pcarlini@suse.de>
926
927 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
928 size_type)): Reimplement using std::search.
929 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
930
931 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
932
933 * testsuite/performance/21_strings/string_find.cc: New.
934
935 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
936
937 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
938
939 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
940
941 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
942 this function return a value.
943
944 2004-06-09 Paolo Carlini <pcarlini@suse.de>
945
946 PR libstdc++/15775
947 * include/bits/stl_deque.h: Consistently with stl_set.h, define
948 pointer as allocator's pointer, likewise for reference,
949 const_pointer, and const_reference.
950 * include/bits/stl_list.h: Likewise.
951 * include/bits/stl_map.h: Likewise.
952 * include/bits/stl_multimap.h: Likewise.
953 * include/bits/stl_vector.h: Likewise.
954
955 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
956
957 * crossconfig.m4: Remove signbit, signbitf, signbitl.
958 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
959 builtin math functions instead of AC_DEFINE_UNQUOTED.
960 * configure: Regenerate.
961
962 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
963
964 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
965 * docs/doxygen/mainpage.html: Remove links.
966
967 2004-06-08 Jason Merrill <jason@redhat.com>
968
969 * config/linker-map.gnu: Use wildcards for
970 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
971
972 2004-06-08 Paolo Carlini <pcarlini@suse.de>
973
974 * include/ext/pool_allocator.h: Convert to a global free-list,
975 as per the original SGI/HP design: move the implementation
976 details to struct __pool_base, from which __pool_alloc derives.
977 * src/allocator.cc: Instantiate __pool_base.
978
979 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
980 Paolo Carlini <pcarlini@suse.de>
981
982 * testsuite/testsuite_performance.h
983 (resource_counter::allocated_memory): Make it return the right
984 number of bytes requested by the allocators/application. This is
985 the sbrk+mmaped memory.
986
987 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
988
989 * include/std/std_complex.h (log): Tidy.
990
991 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
992
993 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
994 * testsuite/testsuite_abi.cc: Same.
995 * configure.ac (libtool_VERSION): Bump to 6:1:0.
996 * configure: Regenerate.
997 * aclocal.m4: Regenerate.
998
999 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1000
1001 * include/std/std_complex.h (complex<_Tp>): Properly indent
1002 to follow C++STYLE.
1003 (complex<>::__rep): New.
1004 (__complex_abs): New. Dispatch to built-ins.
1005 (abs): Use them.
1006 (__complex_arg): New. Dispatch to built-ins.
1007 (arg): Use it.
1008 (__complex_cos): New. Dispatch to built-ins.
1009 (cos): Use it.
1010 (__complex_cosh): New. Dispatch to built-ins.
1011 (cosh): Use it.
1012 (__complex_exp): New. Dispatch to built-ins.
1013 (exp): Use it.
1014 (__complex_log): New. Dispatch to built-ins.
1015 (log): Use it.
1016 (__complex_sin): New. Dispatch to built-ins.
1017 (sin): Use it.
1018 (__complex_sinh): New. Dispatch to built-ins.
1019 (sinh): Use it.
1020 (__complex_sqrt): New. Dispatch to built-ins.
1021 (sqrt): Use it.
1022 (__complex_tan): New. Dispatch to built-ins.
1023 (tan): Use it.
1024 (__complex_tanh): New. Dispatch to built-ins.
1025 (tanh): Use it.
1026 (__complex_pow): New. Dispatch to built-ins.
1027 (pow): Use it.
1028
1029 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
1030 Benjamin Kosnik <bkoz@redhat.com>
1031
1032 PR libstdc++/14600
1033 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1034 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1035 * config/io/basic_file_stdio.cc (__basic_file::file): New.
1036 * config/io/basic_file_stdio.h: Define.
1037
1038 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
1039
1040 PR libstdc++/15675
1041 * docs/html/documentation.html: Update doxygen links for 3.4.0.
1042
1043 2004-05-27 Jan Beulich <jbeulich@novell.com>
1044
1045 * scripts/create_testsuite_files: Tweak.
1046
1047 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
1048
1049 PR libstdc++/15489
1050 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1051 bits to do the same thing.
1052
1053 2004-05-24 Paolo Carlini <pcarlini@suse.de>
1054
1055 * include/bits/istream.tcc (ignore): Correctly deal with
1056 n == numeric_limits<streamsize>::max().
1057 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1058
1059 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1060 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1061 __n == numeric_limits<>::min().
1062
1063 * include/bits/istream.tcc: Minor tweaks.
1064
1065 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1066 Tighten.
1067 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1068 Likewise.
1069 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1070 Likewise.
1071 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1072 Likewise.
1073 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1074
1075 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1076
1077 PR libstdc++/12854
1078 Fixups for -Weffc++.
1079 * include/bits/basic_string.h (basic_string::operator=): Return
1080 pointer to this instead of result of assign. Although redundant,
1081 this doesn't impact resultant codegen.
1082
1083 * include/bits/locale_facets.h (__numpunct_cache): Declare
1084 assignment opxserator and copy constructor private.
1085 (__timepunct_cache): Same.
1086 (__moneypunct_cache): Same.
1087 (collate): Use member initialization list for _M_c_locale_collate.
1088 * config/locale/gnu/messages_members.h: Same.
1089 * config/locale/gnu/time_members.h (__timepunct): Same.
1090 * src/codecvt.cc: Use member initialization list to initialize
1091 _M_c_locale_codecvt.
1092 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1093 * config/os/gnu-linux/ctype_noninline.h: Same.
1094 * src/locale.cc (_Impl): Same.
1095 * src/locale_init.cc: Same.
1096 * src/localename.cc: Same.
1097
1098 * include/bits/basic_ios.h (basic_ios): Complete member
1099 initialization list.
1100 * include/bits/istream.tcc (basic_istream::sentry): Same.
1101 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1102 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1103 _M_pback to member initialization list.
1104 * include/std/std_streambuf.h: Same.
1105 * include/std/std_sstream.h: Same, for _M_mode.
1106 * src/ios.cc (ios_base): Same.
1107
1108 * include/ext/rope: Make derived classes match exception
1109
1110 specifications. Add copy constructors and assignment operators.
1111
1112 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1113 constructor and assignment operator protected.
1114 (_Safe_iterator_base): Same.
1115 * include/debug/formatter.h (_Error_formatter): Define copy
1116 constructor and assignment operator.
1117
1118 * include/backward/strstream: Declare assignment operator and copy
1119 constructor private.
1120
1121 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1122
1123 * testsuite/testsuite_hooks.h (func_callback): Declare copy
1124 constructor and assignment operator private.
1125 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1126 exception specifications of base class.
1127 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1128 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1129 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1130
1131 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1132
1133 * libsupc++/cxxabi.h: Remove duplicated and useless public and
1134 private keywords in class declarations. Format. Use
1135 stddef.h. Expose declarations to "C" compilation.
1136 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1137 assignment operator.
1138 (__dyncast_result): Same.
1139 * libsupc++/vec.cc (uncatch_exception): Same, use member
1140 initialization list.
1141
1142 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1143
1144 * testsuite/abi_check.cc: Add unistd.h.
1145
1146 2004-05-22 Paolo Carlini <pcarlini@suse.de>
1147
1148 PR libstdc++/15565
1149 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1150 __int_to_char(unsigned long long)): Showpos is not relevant
1151 for unsigned types.
1152 * testsuite/22_locale/num_put/put/char/15565.cc: New.
1153 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1154
1155 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1156 char.
1157 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1158 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1159 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1160 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1161 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1162 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1163
1164 2004-05-21 Matthias Klose <doko@debian.org>
1165
1166 * docs/doxygen/run_doxygen: Bump required version.
1167
1168 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
1169
1170 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1171 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1172
1173 2004-05-21 Paolo Carlini <pcarlini@suse.de>
1174
1175 * include/bits/istream.tcc (ignore): Remove redundant line.
1176 (readsome): Tidy, closely following 27.6.1.3, p30.
1177
1178 2004-05-20 Paolo Carlini <pcarlini@suse.de>
1179
1180 * include/bits/istream.tcc (operator>>(basic_istream<>&,
1181 basic_string<>&)): Use a temporary buffer, thus avoiding
1182 reallocation for common case.
1183 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1184 New.
1185 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1186 Likewise.
1187
1188 * include/bits/istream.tcc: Const-ification of a few variables.
1189
1190 * include/bits/ostream.tcc: Trivial formatting fixes and
1191 const-ification of some variables.
1192
1193 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
1194
1195 PR libstdc++/15123
1196 PR libstdc++/13928
1197 * docs/doxygen/Intro.3: Remove Allocators.3.
1198 Add new extension headers, extension namespace list.
1199 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1200 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1201 __gnu_debug::. Remove __policy_ renames.
1202 * docs/doxygen/guide.html: Add dot note.
1203 * docs/doxygen/stdheader.cc: Edit, add files.
1204 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1205
1206 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1207
1208 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1209
1210 2004-05-18 Jan Beulich <jbeulich@novell.com>
1211
1212 PR libstdc++/15489
1213 * scripts/create_testsuite_files: Also find source files through
1214 symbolic links.
1215
1216 2004-05-18 Jan Beulich <jbeulich@novell.com>
1217
1218 PR libstdc++/15488
1219 * testsuite/lib/libstdc++.exp: Make test files writable.
1220
1221 2004-05-18 Paolo Carlini <pcarlini@suse.de>
1222
1223 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1224 tweaks.
1225
1226 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
1227
1228 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1229 allocation loop which removes blocks from the global free list
1230 from O(N) to O(1) when the required blocks are <= the number
1231 available.
1232
1233 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1234
1235 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1236
1237 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
1238
1239 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1240 * testsuite/23_containers/deque/14340.cc: New.
1241 * testsuite/23_containers/list/14340.cc: New.
1242 * testsuite/23_containers/map/14340.cc: New.
1243 * testsuite/23_containers/multimap/14340.cc: New.
1244 * testsuite/23_containers/multiset/14340.cc: New.
1245 * testsuite/23_containers/set/14340.cc: New.
1246 * testsuite/23_containers/vector/14340.cc: New.
1247
1248 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1249
1250 PR libstdc++/14340
1251 * include/debug/safe_iterator.h (_Safe_iterator converting
1252 constructor): Only allow declaration to instantiate when the
1253 incoming _Safe_iterator has exactly the right iterator type.
1254
1255 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1256
1257 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1258 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1259 to pass concept-checks.
1260 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1261 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1262 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1263
1264 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1265
1266 * include/std/std_bitset.h: Minor formatting fixes.
1267
1268 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1269
1270 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1271 Consistently update __bin._M_free[0].
1272 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1273 __bin._M_free[0] to simplify the while loop (i.e., the number
1274 of iterations becomes known at the outset).
1275
1276 2004-05-15 Paolo Carlini <pcarlini@suse.de>
1277
1278 * include/std/std_bitset.h: Trivial formatting fixes.
1279
1280 2004-05-14 Paolo Carlini <pcarlini@suse.de>
1281 Ivan Godard <igodard@pacbell.net>
1282
1283 PR libstdc++/15361
1284 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1285 * testsuite/23_containers/bitset/ext/15361.cc: New.
1286
1287 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1288
1289 PR libstdc++/15046
1290 * crossconfig.m4: Add C99 math bits for linux crosses.
1291 * configure: Regenerate.
1292
1293 2004-05-13 Simon Marshall <simon.marshall@misys.com>
1294 Benjamin Kosnik <bkoz@redhat.com>
1295
1296 PR libstdc++/15090
1297 * include/bits/locale_facets.h: Fix for -fno-for-scope.
1298 * include/debug/safe_sequence.h: Same.
1299 * include/debug/safe_iterator.tcc: Same.
1300 * src/debug.cc: Same.
1301 * src/locale.cc: Same.
1302 * src/locale_init.cc: Same.
1303 * src/localename.cc: Same.
1304 * config/locale/gnu/ctype_members.cc: Same.
1305 * config/locale/gnu/numeric_members.cc: Same.
1306 * testsuite/testsuite_abi.cc: Same.
1307 * testsuite/testsuite_hooks.cc: Same.
1308
1309 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
1310
1311 * docs/html/abi.html: Document effect of -fabi-version on value
1312 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1313 Fix markup.
1314
1315 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1316
1317 PR libstdc++/15074
1318 * docs/html/faq/index.html: Update docs for libsupc++ usage.
1319
1320 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1321
1322 PR libstdc++/15412
1323 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1324 __gnu_internal.
1325 (_GLIBCXX_mutex_address): Same.
1326 (_GLIBCXX_once): Same.
1327 (_GLIBCXX_mutex_init): Same.
1328 (_GLIBCXX_mutex_address_init): Same.
1329
1330 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1331
1332 * docs/html/abi.html: New.
1333 * docs/html/abi.txt: Remove.
1334 * docs/html/documentation.html: Add link.
1335 * testsuite/Makefile.am: Add files.
1336 * testsuite/Makefile.in: Regenerated.
1337 * testsuite/abi_check.cc: Move and modify code into...
1338 * testsuite/testsuite_abi.cc: Add.
1339 * testsuite/testsuite_abi.h: Add.
1340
1341 * docs/html/17_intro/TODO: Update.
1342 * include/bits/stl_pair.h: Format.
1343
1344 2004-05-06 Matthias Klose <doko@debian.org>
1345
1346 * include/backward/iterator.h: Add GPL copyright info,
1347 with exception clause.
1348 * include/bits/boost_concept_check.h: Likewise.
1349 * include
1350 * libsupc++/tinfo.h: Likewise.
1351 * po/string_literals.cc: Likewise.
1352
1353 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1354
1355 * acinclude.m4: Replace -W with more speaking -Wextra.
1356 * configure: Rebuilt.
1357
1358 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1359
1360 Optimize locale::_M_impl->_M_names for the most common cases:
1361 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1362 the same name (_M_names[0] && _M_names[1] means that the full set
1363 of _M_names must be processed, the general case).
1364 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1365 Tweak, saving work when !_M_names[1].
1366 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1367 _M_names[0] = 0 means unnamed.
1368 * src/locale.cc (locale::operator==): Deal first with the common,
1369 easy cases, otherwise fall back to locale::name().
1370 (locale::name()): Tweak, if !_M_names[0] just return "*".
1371 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1372 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1373 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1374 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1375 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1376 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1377 for the general case (full set of names), then do the usual work;
1378 clean up.
1379
1380 * src/locale.cc (locale::name()): Reserve space in __ret.
1381 * src/locale_init.cc (locale::global(const locale&)): Save
1382 the name in a temporary.
1383 * src/localename.cc (locale::locale(const char*)): Reserve space
1384 in __str.
1385
1386 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1387
1388 * src/locale.cc (locale::operator==): Always avoid constructing
1389 locale::name(), directly compare pairs of _M_names.
1390
1391 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1392
1393 * include/bits/istream.tcc: Fix comment.
1394
1395 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1396
1397 * include/bits/stl_vector.h: Trivial formatting fixes.
1398 * include/bits/vector.tcc: Likewise.
1399
1400 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1401
1402 PR libstdc++/15002 (continued again)
1403 * include/bits/istream.tcc (getline(basic_istream<>&,
1404 basic_string<>&, _CharT)): Use a temporary buffer, thus
1405 avoiding reallocation for common case.
1406
1407 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1408 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1409 of temporary buffer to a power of two.
1410
1411 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1412
1413 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1414
1415 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1416 New.
1417 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1418 Likewise.
1419 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1420
1421 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1422 Petur Runolfsson <peturr02@ru.is>
1423
1424 PR libstdc++/15002 (continued)
1425 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1426 streamsize, char_type)): Use traits::find/copy in a loop to speed
1427 up greatly the function in the common case (I/O buffer size >> 1).
1428
1429 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1430
1431 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1432
1433 * include/bits/istream.tcc (getline(basic_istream<>&,
1434 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1435 of sbumpc(), consistently with the other functions, thus also
1436 dealing correctly with the case of exceeded string::max_size().
1437
1438 2004-04-24 Matthias Klose <doko@debian.org>
1439
1440 Jonathan Wakely <cow@compsoc.man.ac.uk>
1441 * docs/html/configopts.html: Fix reference to allocator config option.
1442
1443 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1444
1445 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1446 * configure: Regenerate.
1447
1448 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1449
1450 PR libstdc++/15047, libstdc++/11610
1451 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1452 (libstdc++_init): Don't pass outdir to v3-copy-files.
1453
1454 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1455
1456 * include/bits/deque.tcc: Trivial formatting fixes.
1457 * include/bits/stl_deque.h: Likewise.
1458 * include/bits/stl_list.h: Likewise.
1459 * include/bits/stl_tree.h: Likewise.
1460
1461 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1462 Andrew Pinski <pinskia@physics.uc.edu>
1463
1464 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1465 __src unnecessarily.
1466
1467 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1468
1469 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1470 Clarify assertion, set test variable to false before assert.
1471 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1472 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1473 * testsuite/27_io/ios_base/storage/2.cc: Same.
1474
1475 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1476 function returns.
1477 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1478 * testsuite/27_io/fpos/14320-3.cc: Same.
1479
1480 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1481 * testsuite/27_io/fpos/1.cc: Same.
1482 * testsuite/27_io/basic_stringstream/2.cc: Same.
1483 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1484 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1485 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1486 * testsuite/27_io/basic_streambuf/2.cc: Same.
1487 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1488 * testsuite/27_io/basic_ostream/2.cc: Same.
1489 * testsuite/27_io/basic_ofstream/2.cc: Same.
1490 * testsuite/27_io/basic_istringstream/2.cc: Same.
1491 * testsuite/27_io/basic_istream/2.cc: Same.
1492 * testsuite/27_io/basic_iostream/2.cc: Same.
1493 * testsuite/27_io/basic_ios/2.cc: Same.
1494 * testsuite/27_io/basic_ifstream/2.cc: Same.
1495 * testsuite/27_io/basic_fstream/2.cc: Same.
1496 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1497
1498 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1499 unsigned against zero.
1500 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1501 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1502
1503 * testsuite/18_support/new_delete_placement.cc: Initialize
1504 variables before first use.
1505 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1506 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1507 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1508 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1509 Same.
1510 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1511 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1512 Same.
1513 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1514 * testsuite/27_io/types/2.cc: Same.
1515
1516 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1517 file name.
1518 * testsuite/27_io/fpos/14775.cc: Same.
1519
1520 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1521
1522 PR libstdc++/15002 (partial)
1523 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1524 Special case __n2 == 1, not calling traits_type::assign/copy.
1525
1526 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1527
1528 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1529
1530 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1531
1532 * include/bits/c++config (_GLIBCXX_STD): New.
1533 * src/list.cc: Use it.
1534 * include/std/std_bitset.h: Same.
1535 * include/bits/vector.tcc: Same.
1536 * include/bits/stl_set.h: Same.
1537 * include/bits/stl_multiset.h: Same.
1538 * include/bits/stl_multimap.h: Same.
1539 * include/bits/stl_map.h: Same.
1540 * include/bits/stl_list.h: Same.
1541 * include/bits/stl_vector.h: Same.
1542 * include/bits/stl_bvector.h: Same.
1543 * include/bits/stl_deque.h: Same.
1544 * include/bits/deque.tcc: Same.
1545 * include/bits/list.tcc: Same.
1546 * include/debug/vector: Same.
1547 * include/debug/set.h: Same.
1548 * include/debug/multiset.h: Same.
1549 * include/debug/multimap.h: Same.
1550 * include/debug/map.h: Same.
1551 * include/debug/list: Same.
1552 * include/debug/deque: Same.
1553 * include/debug/bitset: Same.
1554 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1555 Add using declaration for std::type_info.
1556 * include/debug/safe_iterator.h: Add using declaration for
1557 std::iterator_traits and std::pair.
1558 * src/debug_list.cc: New.
1559 * src/Makefile.am: Add debug_list.cc.
1560 * src/Makefile.in: Regenerate.
1561 * config/linker-map.gnu: Add _List_node_base exports for std and
1562 __gnu_norm.
1563
1564 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1565 idiom that other containers use.
1566 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1567
1568 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1569
1570 PR libstdc++/14975
1571 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1572 in case of error.
1573 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1574 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1575
1576 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1577
1578 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1579 used anymore.
1580 * config.h.in: Regenerate.
1581
1582 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1583
1584 * config/locale/generic/monetary_members.cc
1585 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1586 btowc unnecessarily, just cast to wchar_t (the concerned chars
1587 all belong to the basic character set).
1588 * config/locale/generic/numeric_members.cc
1589 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1590 * config/locale/gnu/monetary_members.cc
1591 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1592 * config/locale/gnu/numeric_members.cc
1593 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1594
1595 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1596
1597 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1598 avoid constructing unnecessarily this->name().
1599
1600 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1601
1602 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1603 Change definition of CXX to use $(shell) instead of backticks.
1604 * testsuite/Makefile.in: Regenerate.
1605
1606 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1607
1608 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1609 Minor formatting fixes.
1610 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1611 Likewise.
1612
1613 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1614
1615 * config/locale/gnu/numeric_members.cc
1616 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1617 in __uselocale, since btowc is called for chars belonging to
1618 the basic character set.
1619
1620 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1621
1622 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1623 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1624 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1625 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1626 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1627 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1628 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1629 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1630 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1631 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1632 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1633 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1634 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1635 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1636 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1637 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1638 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1639
1640 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1641
1642 * config/locale/generic/time_members.cc
1643 (__timepunct<char>::_M_initialize_timepunct,
1644 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1645 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1646 * config/locale/gnu/time_members.cc
1647 (__timepunct<char>::_M_initialize_timepunct,
1648 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1649 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1650 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1651
1652 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1653 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1654 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1655 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1656 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1657 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1658 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1659 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1660 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1661 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1662 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1663 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1664 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1665 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1666 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1667 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1668 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1669 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1670 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1671 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1672 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1673 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1674 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1675 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1676 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1677 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1678 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1679 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1680 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1681 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1682 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1683 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1684 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1685 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1686 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1687 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1688
1689 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1690
1691 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1692
1693 * config/locale/gnu/monetary_members.cc
1694 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1695 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1696 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1697 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1698 * config/locale/gnu/numeric_members.cc
1699 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1700 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1701
1702 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1703
1704 Fixups for EDG front end.
1705 * include/ext/rope: Instead of non-existent function
1706 _Data_allocate, use allocator's allocate. Use this.
1707 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1708 enumerations from _Rope_RopeRep here.
1709 * include/ext/ropeimpl.h: Same.
1710 * src/ext-inst.cc (_S_min_len): Fix up definition.
1711
1712 * config/locale/gnu/ctype_members.cc: Qualify base class members
1713 with this.
1714 * config/locale/generic/ctype_members.cc: Same.
1715 * config/locale/gnu/messages_members.h: Same.
1716 * config/locale/generic/messages_members.h: Same.
1717 * src/ctype.cc: Same.
1718 * include/bits/codecvt.h: Same.
1719
1720 * include/bits/boost_concept_check.h: Declare.
1721 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1722 (__error_type_must_be_an_integer_type): Remove this.
1723 (__error_type_must_be_a_signed_integer_type): Remove this.
1724
1725 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1726
1727 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1728 specification to definition.
1729 (__cxa_allocate_exception): Same.
1730 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1731 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1732 (__cxa_get_globals): Same.
1733
1734 * libsupc++/del_op.cc: Add comment about freestanding.
1735
1736 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1737
1738 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1739 The critical section is actually very small, only two assignments.
1740
1741 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1742 Petur Runolfsson <peturr02@ru.is>
1743
1744 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1745 adapted from libstdc++/11378.
1746
1747 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1748
1749 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
1750 some duplicated code.
1751 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
1752 in the single threaded case.
1753 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1754 Reorder and renumber the tests consistently with the other testfiles.
1755 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1756 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1757 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1758
1759 2004-04-02 Paolo Carlini <pcarlini@suse.de>
1760
1761 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1762 Rearrange arithmetic to avoid computing two divisions at
1763 each deallocation.
1764
1765 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1766
1767 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
1768 Streamline the second half, wrapping it in a single
1769 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
1770 conditionals inside loops.
1771
1772 2004-04-01 Paolo Carlini <pcarlini@suse.de>
1773
1774 PR libstdc++/14775
1775 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
1776 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
1777 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
1778 to _GLIBCXX_RES_LIMITS.
1779 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
1780 HAVE_LIMIT_*.
1781 * testsuite/testsuite_hooks.h: Declare set_file_limit.
1782 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
1783 and setrlimit(RLIMIT_FSIZE).
1784 * testsuite/27_io/fpos/14775.cc: New.
1785 * config.h.in: Regenerate.
1786 * configure: Likewise.
1787
1788 2004-03-31 Paolo Carlini <pcarlini@suse.de>
1789
1790 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
1791 In v3 uses of sscanf, the special floating-point numbers INF,
1792 INFINITY, etc., cannot occur in input, therefore, if the latter
1793 is too large, ERANGE is always stored in errno, no need of finitel.
1794
1795 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
1796
1797 PR libstdc++/14783
1798 * include/bits/stl_tree.h: Adjust initialization list order.
1799
1800 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
1801
1802 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
1803
1804 2004-03-29 Paolo Carlini <pcarlini@suse.de>
1805
1806 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
1807 on allocator behavior, the memory pointed by data2 may well be not
1808 trashed.
1809
1810 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
1811
1812 PR libstdc++/14245
1813 * include/bits/basic_string.tcc
1814 (basic_string::basic_string(const basic_string&)): Pass to
1815 _Rep::_M_grab the actual allocator of the string being constructed
1816 not the default constructed one.
1817
1818 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
1819
1820 libstdc++ PR/13598
1821 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1822 (__enc_traits::_M_destroy): New.
1823 (__enc_traits::~__enc_traits): Use it.
1824 (__enc_traits::operator=): Use _M_destroy, _M_init.
1825 (__enc_traits::__enc_traits): Same.
1826
1827 2004-03-27 Petur Runolfsson <peturr02@ru.is>
1828
1829 * testsuite/ext/enc_filebuf/char/13598.cc: New.
1830
1831 2004-03-27 Paolo Carlini <pcarlini@suse.de>
1832
1833 * include/ext/mt_allocator.h: Uglify consistently names of
1834 variables, members and classes; tidy.
1835
1836 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
1837
1838 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1839 Deallocation loop rewrote.
1840
1841 2004-03-26 Paolo Carlini <pcarlini@suse.de>
1842
1843 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1844 __mt_alloc<>::deallocate): Protect two instances of
1845 block->thread_id with __GTHREADS.
1846
1847 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
1848
1849 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
1850 default argument in constructors.
1851 (_Rb_tree::_M_empty_initialize): Remove.
1852
1853 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
1854
1855 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
1856 * testsuite/23_containers/set/operators/1_neg.cc: Same.
1857
1858 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1859
1860 * include/bits/cpp_type_traits.h: Changed __is_pod
1861 completely. Now, it does not use any of the previous type_traits
1862 to detect the pod types, and it also detects function pointers as
1863 POD types.
1864
1865 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
1866 which encapsulates the internal implementation of an rb_tree. Made
1867 the allocator a base class of this class instead of the rb_tree,
1868 which was not conforming. This _Rb_tree_impl class is also
1869 specialized on whether the _Compare parameter is a POD type or
1870 not. If so, then it maintains the comparison function as a data
1871 member, otherwise it makes the _Compare parameter a base class of
1872 itself. Also, _M_key_compare is now a function instead of a data
1873 member, so that the above trick can work properly. Delegated the
1874 initialization of the other data members to this newly created
1875 class. Also, now other member functions of rb_tree must refer to
1876 _M_key_compare as _M_impl._M_key_compare(). The other data members
1877 (*) can be referenced to as _M_impl.(*), where
1878 (*) includes _M_header, and _M_node_count.
1879
1880 2004-03-25 Paolo Carlini <pcarlini@suse.de>
1881
1882 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
1883 Add _M_min_bin, the size in bytes of the smallest bin.
1884 (__mt_alloc<>::tune()): Tweak accordingly.
1885 (__mt_alloc<>::tune(size_t, ...)): Likewise.
1886 (__mt_alloc<>::block_record): Change to a union: members next
1887 and thread_id are never used at the same time.
1888 (__mt_alloc<>::allocate): Update consistently.
1889 (__mt_alloc<>::deallocate): Likewise.
1890 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
1891 _S_bin_size for the configurable _M_min_size.
1892
1893 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1894
1895 * include/bits/stl_list.h: Created a _List_impl class and made it
1896 derive from the allocator, instead of the list deriving from the
1897 allocator class, which was not conformant. Changed all references
1898 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
1899 as above (changed all references to the concerned variables).
1900
1901 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1902
1903 * include/bits/stl_deque.h: Created a _Deque_impl class and made
1904 it derive from the allocator, instead of the deque deriving from
1905 the allocator class, which was not conformant. Changed all
1906 references to the _M_start, _M_finish, _M_map, and _M_map_size to
1907 _M_impl.*.
1908 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
1909 qualification in 2 places where it was missing.
1910 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
1911 above.
1912 * include/bits/deque.tcc: Same as above (changed all references to
1913 the concerned variables).
1914
1915 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1916
1917 * include/bits/stl_vector.h: Created a _Vector_impl class and made
1918 it derive from the allocator, instead of the _Vector_base class,
1919 deriving from the allocator which was not conformant. Changed all
1920 references to the _M_start, _M_finish, and _M_end_of_storage to
1921 _M_impl.*.
1922 * include/bits/vector.tcc: Same as above (changed all references
1923 to the concerned variables).
1924
1925 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
1926
1927 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
1928 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
1929 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
1930
1931 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1932
1933 * include/ext/malloc_allocator.h: Fixed the construct function to
1934 call global placement new instead of assignment. Added a check
1935 after the return from malloc to check whether returned pointer is
1936 NULL, and if so, throw std::bad_alloc().
1937 * include/ext/debug_allocator.h: Added a check in the deallocate
1938 function to check whether the user has passed a NULL pointer or
1939 not.
1940
1941 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
1942
1943 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
1944
1945 2004-03-24 Andreas Schwab <schwab@suse.de>
1946
1947 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
1948 warning from IA64 assembler.
1949
1950 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
1951
1952 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
1953 function call __builtin_ctz instead of the while loop.
1954 (allocate) -> If condition has __builtin_expect.
1955 (deallocate) -> Ditto.
1956 Renamed a few left-over variables and typedefs according to the
1957 C++STYLE mentioned in the documentation.
1958 Protected calls to __gthread* by __gthread_active_p(), whose value
1959 is cached in the local variable __threads_active.
1960
1961 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
1962
1963 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1964 Use linear algorithm for producer.
1965
1966 2004-03-24 Paolo Carlini <pcarlini@suse.de>
1967
1968 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1969 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1970
1971 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1972
1973 * include/bits/locale_facets.h: Tweaks for 80 column.
1974 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1975 (__moneypunct_cache::_M_cache): Same.
1976 (num_get): Don't inherit from __num_base.
1977 (num_put): Same.
1978 (money_get): Don't inherit from money_base.
1979 (money_put): Same.
1980 (__timepunct::_M_am_pm_format): New.
1981 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1982 (time_get::_M_extract_name): Same.
1983 (time_get::_M_extract_via_format): Same.
1984 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1985 Use _M_getloc instead of getloc.
1986 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1987 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1988 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1989
1990 2004-03-22 Paolo Carlini <pcarlini@suse.de>
1991
1992 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1993 * configure: Regenerate.
1994 * config/allocator/pool_allocator_base.h: New.
1995 * include/ext/pool_allocator.h: Convert to a standard-conforming
1996 allocator.
1997 * src/allocator.cc: Tweak instantiations.
1998 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1999 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2000 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2001 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2002 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2003 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2004
2005 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2006
2007 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2008 inline" and attribute-unused. Qualify parameter __mem with
2009 "volatile".
2010 (__exchange_and_add): Ditto. Add back memory clobber to asm.
2011
2012 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2013
2014 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2015 Remove junk.
2016 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2017 Likewise.
2018 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2019 Likewise.
2020 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2021 Likewise.
2022 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2023 Likewise.
2024 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2025 Likewise.
2026 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2027 Likewise.
2028 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2029 Likewise.
2030 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2031 Likewise.
2032 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2033 Likewise.
2034
2035 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2036
2037 * include/std/std_valarray.h: Document DR389 [Ready].
2038 * docs/html/ext/howto.html: Add an entry for DR389.
2039
2040 2004-03-19 Michael Eager <eager@mvista.com>
2041
2042 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
2043 SC instructions.
2044
2045 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2046
2047 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2048 static_cast-s.
2049 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2050 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2051 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2052 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2053 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2054 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2055 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2056 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2057 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2058
2059 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2060 Petur Runolfsson <peturr02@ru.is>
2061
2062 PR libstdc++/12077
2063 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2064 no way to find out the conversion used by the underlying FILE*.
2065 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2066 * testsuite/27_io/objects/char/9.cc: Tweak.
2067
2068 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2069
2070 PR libstdc++/14648
2071 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2072 memory allocation/deallocation calls.
2073 * testsuite/ext/14648.cc: New.
2074
2075 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2076
2077 PR libstdc++/14647
2078 * include/backward/bvector.h (bit_vector): Allocator is in std
2079 namespace.
2080
2081 2004-03-19 Phil Edwards <phil@codesourcery.com>
2082
2083 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
2084 not libiconv. SUBST this variable as well.
2085 * testsuite/Makefile.am (site.exp): New target, based on that
2086 created by automake. Also set libiconv.
2087
2088 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2089 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2090 testsuite/Makefile.in: Regenerate.
2091
2092 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
2093
2094 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2095 new_allocator for all hosts.
2096 * configure: Regenerate.
2097
2098 2004-03-16 Paolo Carlini <pcarlini@suse.de>
2099
2100 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2101 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2102
2103 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2104
2105 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2106 Adjust the logic underlying the parsing of symbol to deal
2107 correctly with an optional sign component (i.e., when either
2108 negative_sign or positive_sign is empty)
2109 * testsuite/22_locale/money_get/get/char/19.cc: New.
2110 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2111
2112 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2113
2114 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2115 Do not accept an incomplete currency symbol.
2116 * testsuite/22_locale/money_get/get/char/18.cc: New.
2117 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2118
2119 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
2120
2121 * config/allocator: New.
2122 * config/allocator/bitmap_allocator_base.h: New.
2123 * config/allocator/malloc_allocator_base.h: New.
2124 * config/allocator/mt_allocator_base.h: New.
2125 * config/allocator/new_allocator_base.h: New.
2126 * include/bits/allocator.h: Include c++allocator.h.
2127 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2128 * aclocal.m4: Regenerate.
2129 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2130 * configure: Regenerate.
2131 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2132 * include/Makefile.in: Regenerate.
2133 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2134
2135 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2136
2137 * include/bits/allocator.h: Revert.
2138
2139 2004-03-12 Paolo Carlini <pcarlini@suse.de>
2140
2141 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2142 * include/bits/gslice_array.h: Add comment about DR 253.
2143 * include/bits/indirect_array.h: Likewise.
2144 * include/bits/mask_array.h: Likewise.
2145 * include/bits/slice_array.h: Likewise.
2146
2147 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2148
2149 * testsuite/20_util/allocator/14176.cc: New.
2150 * include/ext/mt_allocator.h: Formatting fixes.
2151
2152 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
2153
2154 * include/Makefile.am (ext_headers): Add
2155 ${ext_srcdir}/bitmap_allocator.h .
2156 * include/Makefile.in: Regenerate.
2157 * docs/html/ext/ballocator_doc.txt: New file.
2158 * include/ext/bitmap_allocator.h: New file.
2159 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2160 test.
2161 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2162 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2163 test for the bitmap_allocator<>.
2164 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2165 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2166 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2167
2168 2004-03-11 Paolo Carlini <pcarlini@suse.de>
2169
2170 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2171 pow(const _Tp&, const complex&), pow(const complex&,
2172 const complex&)): Fully qualify with std:: a few calls.
2173 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2174
2175 2004-03-11 Steven Bosscher <stevenb@suse.de>
2176
2177 PR libstdc++/11706
2178 * include/c_std/cmath.tcc (__cmath_power): Define inline.
2179
2180 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2181
2182 * configure.ac: Bump AC_PREREQ to 2.59.
2183
2184 2004-03-10 Paolo Carlini <pcarlini@suse.de>
2185
2186 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2187
2188 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
2189 Paolo Carlini <pcarlini@suse.de>
2190
2191 PR libstdc++/13450
2192 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2193 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2194 * testsuite/26_numerics/complex/13450.cc: New.
2195
2196 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2197 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2198
2199 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
2200
2201 PR libstdc++/3247
2202 * include/bits/gslice_array.h (gslice_array()): Make public.
2203 (operator=(gslice_array)): Make public. Implement.
2204 * include/bits/indirect_array.h (indirect_array()): Make public.
2205 * include/bits/mask_array.h (mask_array()): Make public.
2206 (operator=(mask_array)): Make public. Implement.
2207 * include/bits/valarray_array.tcc (__valarray_copy):
2208 Comment. Add versions for gslice_array and mask_array.
2209 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
2210
2211 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
2212
2213 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2214 non-weak systems.
2215 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2216 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2217 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2218 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2219 * testsuite/23_containers/map/modifiers/swap.cc: Same.
2220 * testsuite/23_containers/list/modifiers/swap.cc: Same.
2221
2222 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2223
2224 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2225
2226 PR c++/13658
2227 * testsuite/23_containers/deque/modifiers/swap.cc: New.
2228 * testsuite/23_containers/list/modifiers/swap.cc: New.
2229 * testsuite/23_containers/map/modifiers/swap.cc: New.
2230 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2231 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2232 * testsuite/23_containers/set/modifiers/swap.cc: New.
2233 * testsuite/23_containers/vector/modifiers/swap.cc: New.
2234
2235 2004-03-08 Petur Runolfsson <peturr02@ru.is>
2236
2237 PR libstdc++/12658
2238 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2239
2240 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2241
2242 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2243 * include/bits/stl_multiset.h: Add comment about DR 103.
2244 * include/bits/stl_set.h: Likewise.
2245
2246 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2247
2248 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2249 The value _space_ indicates that at least one space is required
2250 at that position.
2251 * testsuite/22_locale/money_get/get/char/17.cc: New.
2252 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2253
2254 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2255 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2256
2257 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2258 Remove redundant conditional on __str.size().
2259
2260 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2261
2262 * include/bits/allocator.h: Switch defaults to mt_alloc.
2263
2264 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2265
2266 * include/ext/mt_allocator.h (_S_initialize): If
2267 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2268
2269 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2270
2271 PR libstdc++/12658
2272 * src/locale_init.cc (locale::locale): Lock critical regions with
2273 external mutexes.
2274 (locale::global): Same.
2275 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2276 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2277 (__glibcxx_mutex_lock): Same.
2278
2279 * config/cpu/generic/atomicity.h: Remove
2280 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2281 * src/misc-inst.cc: Move all locking bits out of this file.
2282
2283 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2284 * src/misc-inst.cc: Same.
2285 * config/cpu/hppa/atomicity.h: Same.
2286
2287 * config/linker-map.gnu: Remove types in the signature of atomic
2288 exports, as they may vary.
2289
2290 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2291
2292 * include/bits/locale_facets.tcc: Tweak the comment preceding
2293 has_facet: doesn't throw.
2294
2295 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2296
2297 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2298 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2299 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2300 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2301 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2302 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2303 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2304 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2305
2306 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2307
2308 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2309 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2310 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2311 * testsuite/testsuite_character.h (struct __gnu_test::character):
2312 Provide operator==.
2313 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2314 Likewise.
2315
2316 2004-03-05 Paolo Carlini <pcarlini@suse.de>
2317
2318 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2319
2320 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2321
2322 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2323
2324 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2325 returns 0.
2326 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2327 * testsuite/23_containers/list/invalidation/1.cc: Same.
2328 * testsuite/23_containers/list/invalidation/2.cc: Same.
2329 * testsuite/23_containers/list/invalidation/3.cc: Same.
2330 * testsuite/23_containers/list/invalidation/4.cc: Same.
2331 * testsuite/23_containers/map/invalidation/2.cc: Same.
2332 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2333 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2334 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2335 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2336 * testsuite/23_containers/set/invalidation/1.cc: Same.
2337 * testsuite/23_containers/set/invalidation/2.cc: Same.
2338 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2339 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2340 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2341 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2342
2343 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2344
2345 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2346 CXXFLAGS_save.
2347 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2348 DEFAULT_CXXFLAGS.
2349 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2350 from the dg-options.
2351 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2352 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2353 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2354 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2355 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2356 * testsuite/26_numerics/complex_value.cc: Likewise.
2357 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2358 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2359 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2360 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2361 * testsuite/27_io/objects/char/5.cc: Likewise.
2362 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2363 * testsuite/backward/11460.cc: Likewise.
2364 * testsuite/thread/pthread7-rope.cc: Likewise.
2365
2366 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2367 missing test variable.
2368 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2369 missing test variable.
2370
2371 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2372
2373 * testsuite/20_util/allocator/1.cc: Provide explicit
2374 instantiations for non-weak systems.
2375 * testsuite/20_util/binders.cc: Same.
2376 * testsuite/20_util/allocator/8230.cc: Same.
2377 * testsuite/20_util/allocator/10378.cc: Same.
2378 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2379 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2380 * testsuite/thread/pthread7-rope.cc: Same.
2381 * testsuite/thread/pthread6.cc: Same.
2382 * testsuite/thread/pthread5.cc: Same.
2383 * testsuite/thread/pthread4.cc: Same.
2384 * testsuite/thread/pthread1.cc: Same.
2385 * testsuite/ext/rope.cc: Same.
2386 * testsuite/ext/hash_set.cc: Same.
2387 * testsuite/ext/hash_map.cc: Same.
2388 * testsuite/ext/concept_checks.cc: Same.
2389 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2390 * testsuite/25_algorithms/unique/2.cc: Same.
2391 * testsuite/25_algorithms/unique/1.cc: Same.
2392 * testsuite/25_algorithms/rotate.cc: Same.
2393 * testsuite/25_algorithms/min_max.cc: Same.
2394 * testsuite/25_algorithms/equal.cc: Same.
2395 * testsuite/24_iterators/rel_ops.cc: Same.
2396 * testsuite/24_iterators/iterator.cc: Same.
2397 * testsuite/24_iterators/insert_iterator.cc: Same.
2398 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2399 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2400 * testsuite/23_containers/vector/resize/1.cc: Same.
2401 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2402 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2403 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2404 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2405 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2406 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2407 * testsuite/23_containers/vector/element_access/1.cc: Same.
2408 * testsuite/23_containers/vector/cons/6513.cc: Same.
2409 * testsuite/23_containers/vector/cons/3.cc: Same.
2410 * testsuite/23_containers/vector/cons/2.cc: Same.
2411 * testsuite/23_containers/vector/cons/1.cc: Same.
2412 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2413 * testsuite/23_containers/vector/capacity/1.cc: Same.
2414 * testsuite/23_containers/vector/bool/6886.cc: Same.
2415 * testsuite/23_containers/stack/members/7158.cc: Same.
2416 * testsuite/23_containers/set/invalidation/2.cc: Same.
2417 * testsuite/23_containers/set/invalidation/1.cc: Same.
2418 * testsuite/23_containers/queue/members/7157.cc: Same.
2419 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2420 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2421 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2422 * testsuite/23_containers/multiset/insert/1.cc: Same.
2423 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2424 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2425 * testsuite/23_containers/map/operators/1.cc: Same.
2426 * testsuite/23_containers/map/invalidation/2.cc: Same.
2427 * testsuite/23_containers/map/invalidation/1.cc: Same.
2428 * testsuite/23_containers/map/insert/1.cc: Same.
2429 * testsuite/23_containers/list/operators/4.cc: Same.
2430 * testsuite/23_containers/list/operators/3.cc: Same.
2431 * testsuite/23_containers/list/operators/2.cc: Same.
2432 * testsuite/23_containers/list/operators/1.cc: Same.
2433 * testsuite/23_containers/list/modifiers/3.cc: Same.
2434 * testsuite/23_containers/list/modifiers/2.cc: Same.
2435 * testsuite/23_containers/list/modifiers/1.cc: Same.
2436 * testsuite/23_containers/list/invalidation/4.cc: Same.
2437 * testsuite/23_containers/list/invalidation/3.cc: Same.
2438 * testsuite/23_containers/list/invalidation/2.cc: Same.
2439 * testsuite/23_containers/list/invalidation/1.cc: Same.
2440 * testsuite/23_containers/list/cons/9.cc: Same.
2441 * testsuite/23_containers/list/cons/8.cc: Same.
2442 * testsuite/23_containers/list/cons/7.cc: Same.
2443 * testsuite/23_containers/list/cons/6.cc: Same.
2444 * testsuite/23_containers/list/cons/5.cc: Same.
2445 * testsuite/23_containers/list/cons/4.cc: Same.
2446 * testsuite/23_containers/list/cons/3.cc: Same.
2447 * testsuite/23_containers/list/cons/2.cc: Same.
2448 * testsuite/23_containers/list/cons/1.cc: Same.
2449 * testsuite/23_containers/list/capacity/1.cc: Same.
2450 * testsuite/23_containers/deque/operators/1.cc: Same.
2451 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2452 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2453 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2454 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2455 * testsuite/23_containers/deque/cons/2.cc: Same.
2456 * testsuite/23_containers/deque/cons/1.cc: Same.
2457
2458 * src/allocator.cc: Add char, wchar_t instantiations
2459 to match extern template declarations in memory.h.
2460
2461 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2462
2463 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2464 Fix warning regression.
2465
2466 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2467
2468 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2469 Deal properly with empty __digits and negative frac_digits,
2470 clean-up a bit.
2471
2472 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2473
2474 * docs/html/documentation.html: Regenerate.
2475
2476 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2477
2478 PR libstdc++/14320
2479 * include/bits/postypes.h (class streamoff): Remove, now
2480 streamoff is just typedef a 64 bit signed integer type.
2481 (class fpos): Tweak consistently.
2482 * testsuite/27_io/fpos/14320-1.cc: New.
2483 * testsuite/27_io/fpos/14320-2.cc: New.
2484 * testsuite/27_io/fpos/14320-3.cc: New.
2485 * testsuite/27_io/fpos/14320-4.cc: New.
2486 * testsuite/27_io/fpos/14320-5.cc: New.
2487 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2488
2489 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2490
2491 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2492 Reorganize a bit the main parsing loop, thus early detecting
2493 an empty value component.
2494 * testsuite/22_locale/money_get/get/char/16.cc: New.
2495 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2496
2497 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2498
2499 Support automake 1.8.2
2500 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2501 * po/Makefile.am (EXTRA_DIST): New.
2502 * po/Makefile.in: Regenerate.
2503 * Makefile.in: Same.
2504 * include/Makefile.in: Same.
2505 * libmath/Makefile.in: Same.
2506 * libsupc++/Makefile.in: Same.
2507 * src/Makefile.in: Same.
2508 * testsuite/Makefile.in: Same.
2509
2510 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2511 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2512 (${host_builddir}/gthr-default.h): Same.
2513 (${host_builddir}/gthr.h): Same.
2514 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2515 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2516 -fno-weak.
2517 * aclocal.m4: Regenerate.
2518 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2519 * config.h.in: Regenerate.
2520 * configure: Same.
2521
2522 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2523
2524 Support autoconf 2.59
2525 * acinclude.m4: Quote correctly.
2526 * aclocal.m4: Regenerate.
2527 * linkage.m4: Same.
2528
2529 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2530
2531 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2532
2533 * docs/html/18_support/howto.html: Add bit about writing to
2534 stderr, mostly by Zack.
2535
2536 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2537
2538 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2539 money_get<>::do_get(string_type&)): ... and two more.
2540
2541 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2542
2543 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2544 Fix thinkos in the switch from string_type& to string& as last
2545 argument.
2546
2547 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2548
2549 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2550 Also when parsing exponent sign, first look for thousands_sep
2551 and decimal_point; tweak a bit.
2552 * testsuite/22_locale/num_get/get/char/15.cc: New.
2553 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2554
2555 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2556 num_get<>::_M_extract_int): Reorder some conditionals.
2557
2558 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2559
2560 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2561 Consistently with numpunct, enforce the requirements in
2562 22.2.6.3, p3 for the thousands separators; tweak a bit.
2563 * testsuite/22_locale/money_get/get/char/15.cc: New.
2564 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2565
2566 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2567
2568 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2569 testsuite_files from correct multilib blddir when running
2570 testsuite.
2571
2572 2004-02-29 Phil Edwards <phil@codesourcery.com>
2573
2574 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2575 the summary file to the logfile.
2576 * testsuite/Makefile.in: Regenerate.
2577
2578 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2579
2580 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2581 volatile.
2582 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2583 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2584
2585 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2586
2587 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2588 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2589 no 'decimal-point' in the middle: in this case too we must fix
2590 up __found_grouping; slightly tweak.
2591 * testsuite/22_locale/num_get/get/char/14.cc: New.
2592 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2593
2594 2004-02-27 Eric Christopher <echristo@redhat.com>
2595 Phil Edwards <phil@codesourcery.com>
2596
2597 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2598 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2599 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2600 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2601 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2602 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2603 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2604 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2605 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2606 Use dg-require-iconv.
2607 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2608
2609 2004-02-27 Phil Edwards <phil@codesourcery.com>
2610 Eric Christopher <echristo@redhat.com>
2611
2612 * testsuite/config/default.exp: Update with comments.
2613 (${tool}_target_compile): New wrapper routine.
2614 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2615 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2616 fixes.
2617 (load_gcc_lib, v3track): New routines.
2618 (v3-init): Rename to libstdc++_init.
2619 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2620 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2621
2622 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2623
2624 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2625
2626 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2627
2628 * config/os/irix/irix5.2/atomicity.h: Merge..
2629 * config/os/irix/irix6.5/atomicity.h: Merge..
2630 * config/os/irix/atomicity.h: ...into this.
2631 * config/os/irix/atomic_word.h: New.
2632 * configure.host: Set atomic_word_dir for irix.
2633
2634 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2635 * i386/atomicity.h: Same.
2636 * m68k/atomicity.h: Same.
2637 * sparc/atomicity.h: Same.
2638
2639 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2640
2641 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2642 static, and inline keywords.
2643
2644 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2645
2646 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2647 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2648 call reserve on the __tmp_gruping string.
2649 (num_get<>::_M_extract_float): Don't append unnecessarily a
2650 char() to the returned string.
2651 * include/bits/locale_facets.tcc: Trivial reformattings.
2652
2653 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2654
2655 * include/bits/locale_facets.h (money_get<>::_M_extract):
2656 Change signature: now takes a plain string&.
2657 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2658 Update consistently the definition; use the moneypunct cache
2659 to parse the value; use swap to change __units.
2660 (money_get<>::do_get(long double&)): Update call of _M_extract,
2661 avoid ctype::narrow, not correct wrt the standard.
2662 (money_get<>::do_get(string_type&)): Likewise, update call
2663 of _M_extract, use ctype::widen.
2664 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2665
2666 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2667
2668 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2669 * testsuite/demangle/abi_examples/02.cc: Likewise.
2670 * testsuite/demangle/regression/cw-11.cc: Likewise.
2671 * testsuite/demangle/regression/cw-16.cc: Change two expected
2672 results to match libiberty demangler output.
2673
2674 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2675
2676 PR libstdc++/10246
2677 * libsupc++/Makefile.am: Use libiberty demangler.
2678 (c_sources): Add cp-demangle.c.
2679 * libsupc++/Makefile.in: Regenerate.
2680 * src/Makefile.am (sources): Remove demangle.cc.
2681 * src/Makefile.in: Regenerate.
2682 * include/Makefile.am (bits_headers): Move demangle.h.
2683 (ext_headers): ...here.
2684 * include/Makefile.in: Regenerate.
2685 * include/bits/demangle.h: Move...
2686 * include/ext/demangle.h: ...here.
2687 * src/demangle.cc: Remove.
2688
2689 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2690
2691 * include/bits/demangle.h: Add type template parameter to all
2692 templates with just an Allocator template parameter.
2693
2694 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2695
2696 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2697 and __exchange_and_add.
2698 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2699 * config/cpu/cris/atomic_word.h: Same.
2700 * config/cpu/sparc/atomic_word.h: Same.
2701 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2702 Qualifiy with __gnu_cxx.
2703 (_Callback_list::_M_add_reference): Same.
2704 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2705 (locale::facet::_M_remove_reference): Same.
2706 (locale::_Impl::_M_add_reference): Add.
2707 (locale::_Impl::_M_remove_reference): Same.
2708 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2709 (basic_string::_Rep::_M_dispose): Same.
2710 * src/ios.cc (ios_base::xalloc): Same.
2711 * src/ios_init.cc (ios_base::Init::Init): Same.
2712 (ios_base::Init::~Init): Same.
2713 * src/locale.cc (locale::id::_M_id): Same.
2714 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2715 static, and inline keywords.
2716 * config/cpu/alpha/atomicity.h: Same.
2717 * config/cpu/cris/atomicity.h: Same.
2718 * config/cpu/generic/atomicity.h: Same.
2719 * config/cpu/hppa/atomicity.h: Same.
2720 * config/cpu/i386/atomicity.h: Same.
2721 * config/cpu/ia64/atomicity.h: Same.
2722 * config/cpu/m68k/atomicity.h: Same.
2723 * config/cpu/mips/atomicity.h: Same.
2724 * config/cpu/powerpc/atomicity.h: Same.
2725 * config/cpu/s390/atomicity.h: Same.
2726 * config/cpu/sparc/atomicity.h: Same.
2727
2728 * src/Makefile.am (host_sources): Add atomicity.cc.
2729 (atomicity.cc): New rule.
2730 * src/Makefile.in: Regenerate.
2731 * include/Makefile.am (host_headers): Remove host atomicity.h.
2732 (host_headers): Add atomic_word.h.
2733 (bits_headers): Add bits atomicity.h.
2734 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2735 * include/Makefile.in: Regenerate.
2736 * configure.host (atomic_word_dir): Add.
2737 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2738 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2739 * configure: Regenerate.
2740 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2741
2742 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2743 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2744
2745 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2746
2747 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2748 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
2749 Fix markup, more <link> tags.
2750
2751 2004-02-25 Carlo Wood <carlo@alinoe.com>
2752
2753 * bits/demangle.h
2754 namespace __gnu_cxx::demangler
2755 (session<Allocator>::qualifier_list_Allocator): Add
2756 (session<Allocator>::M_qualifier_list_alloc): Add
2757 (session<Allocator>::decode_type_with_postfix):
2758 Use M_qualifier_list_alloc instead of calling operator new/delete.
2759
2760 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2761
2762 PR libstdc++/14252
2763 * include/bits/postypes.h (class streamoff): Add operator++(),
2764 operator++(int), operator--() and operator--(int).
2765 * testsuite/27_io/fpos/14252.cc: New.
2766
2767 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
2768
2769 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
2770 error in handling of hex constants.
2771
2772 2004-02-24 Paolo Carlini <pcarlini@suse.de>
2773
2774 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2775 Prefer basic_string::append to operator+= and a temporary.
2776
2777 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2778
2779 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
2780 Only use fputs, not write.
2781
2782 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
2783
2784 * include/ext/malloc_allocator.h: Add operators ==, !=.
2785 * include/ext/new_allocator.h: Add operators ==, !=.
2786 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
2787 (__mt_alloc::_S_get_options): New.
2788 (__mt_alloc::_S_set_options): New.
2789 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
2790 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
2791 Move functions out of line, simplify, format.
2792 * src/allocator.cc: Simplify explicit instantiations.
2793 * include/bits/allocator.h: Tweak.
2794
2795 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2796
2797 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2798 Restructure formatting of value component, first dealing with
2799 the non-decimal digits; use reserve.
2800
2801 2004-02-22 Paolo Carlini <pcarlini@suse.de>
2802
2803 * include/bits/locale_facets.h (class money_get): Inherit
2804 from money_base too; tweak declaration of _M_extract, now
2805 parameterized on _Intl too.
2806 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2807 Update definition to use the cache; call reserve on __res to
2808 avoid multiple reallocations; fix parsing of sign component
2809 according to 22.2.6.1.2, p3.
2810 (money_get<>::do_get(long double&),
2811 money_get<>::do_get(string_type&)): Update calls of _M_extract.
2812 * src/locale-inst.cc: Add instantiations of
2813 money_get::_M_extract<false> and money_get::_M_extract<true>.
2814 * testsuite/22_locale/money_get/get/char/14.cc: New.
2815 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
2816
2817 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2818
2819 * libsupc++/vterminate.cc
2820 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
2821 calls to terminate.
2822 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
2823
2824 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2825 not set RLIMIT_AS on HP-UX.
2826
2827 2004-02-21 Mark Mitchell <mark@codesourcery.com>
2828
2829 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
2830 not set RLIMIT_AS on HP-UX.
2831
2832 2004-02-21 Paolo Carlini <pcarlini@suse.de>
2833
2834 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
2835 _S_zero, _S_end } enum, _S_atoms.
2836 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
2837 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
2838 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
2839 (__moneypunct_cache<>::~__moneypunct_cache): Update.
2840 (__moneypunct_cache<>::_M_cache): Fill the cache.
2841 (class moneypunct): Tweak __cache_type typedef.
2842 (class money_put): Inherit from money_base too; tweak declaration
2843 of _M_insert, now parameterized on _Intl.
2844 * include/bits/locale_facets.tcc
2845 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
2846 (money_put<>::_M_insert): Update definition to use the cache;
2847 call reserve on __res to avoid multiple reallocations.
2848 (money_put<>::do_put(long double),
2849 money_put<>::do_put(const string_type&): Update calls of _M_insert.
2850 * config/locale/generic/monetary_members.cc
2851 (moneypunct<char, true>::_M_initialize_moneypunct,
2852 moneypunct<char, false>::_M_initialize_moneypunct,
2853 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
2854 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
2855 * config/locale/gnu/monetary_members.cc: Likewise.
2856 * config/locale/gnu/monetary_members.cc
2857 (moneypunct<wchar_t, true>::~moneypunct(),
2858 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
2859 * src/globals_locale.cc: Tweak fake_money_cache_c.
2860 * src/locale-inst.cc: Add instantiations for
2861 money_put::_M_insert<false> and money_put::_M_insert<true> and
2862 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
2863 * src/locale_facets.cc: Define money_base::_S_atoms.
2864 * src/locale_init.cc: Update placement new of
2865 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
2866 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
2867
2868 * config/locale/generic/numeric_members.cc: Clean up.
2869 * config/locale/gnu/numeric_members.cc: Likewise.
2870 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
2871 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
2872 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
2873 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
2874 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
2875 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
2876
2877 2004-02-20 Mark Mitchell <mark@codesourcery.com>
2878
2879 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
2880 FIFO for writing with ios_base::in|ios_base::out.
2881 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2882 * testsuite/27_io/objects/char/7.cc: Likewise.
2883 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
2884 with "r+".
2885
2886 2004-02-19 David Edelsohn <edelsohn@gnu.org>
2887
2888 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
2889 from iso-8859-1 to ISO8859-1.
2890 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
2891 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
2892 * 22_locale/collate/hash/wchar_t/2.cc: Same.
2893 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
2894 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
2895 * 22_locale/collate/transform/wchar_t/2.cc: Same.
2896 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
2897 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
2898
2899 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2900
2901 * include/bits/locale_facets.h (money_get<>::_M_extract):
2902 New, helper for do_get.
2903 (money_put<>::_M_insert): Likewise, for do_put.
2904 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2905 money_put<>::_M_insert): Define.
2906 (money_get<>::do_get(long double&), money_get<>::do_get(
2907 string_type&), money_put::do_put(long double),
2908 money_put::do_put(const string_type&)): Use the helpers.
2909
2910 2004-02-18 Paolo Carlini <pcarlini@suse.de>
2911
2912 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2913 Rewrite, avoiding recursion.
2914 (__gnu_internal::xwrite): Minor tweaks.
2915
2916 2004-02-17 Stefan Olsson <stefan@xapa.se>
2917
2918 * include/ext/mt_allocator.h: Removed the last
2919 pointer. Deallocated blocks are now added to the front of
2920 freelists as proposed by Felix Yen. This gives roughly 10%
2921 performance boost and saves some memory.
2922 * docs/html/ext/mt_allocator.html: Change due to that deallocated
2923 blocks now are added to the front of freelists. The reason to this
2924 approach is also explained.
2925
2926 2004-02-17 Paolo Carlini <pcarlini@suse.de>
2927
2928 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2929 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
2930 grouping fidelity conditional.
2931
2932 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2933
2934 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
2935 Qualify exception with std::.
2936 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
2937 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2938 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2939 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2940 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2941
2942 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2943
2944 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
2945 for now that the catch block is not reached.
2946 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
2947
2948 2004-02-16 Paolo Carlini <pcarlini@suse.de>
2949
2950 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2951 Fix parsing of the remaining sign characters.
2952 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
2953 the input is scanned 'til eof.
2954 * 22_locale/money_get/get/char/4.cc: Likewise.
2955 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
2956 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
2957 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
2958 not do_pos_format: the former is the only one that matters during
2959 input.
2960 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2961
2962 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2963 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2964
2965 2004-02-15 David Asher <david.asher@cavium.com>
2966
2967 PR libstdc++/11352
2968 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2969 access __olds beyond __oldlen.
2970
2971 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2972
2973 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2974 sure the exception is actually thrown.
2975 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2976 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2977 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2978
2979 2004-02-14 Paolo Carlini <pcarlini@suse.de>
2980
2981 PR libstdc++/13858
2982 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2983 In case of conversion errors, throw ios_failure; simplify.
2984 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2985 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2986 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2987 previously we didn't throw in case of conversion errors, instead
2988 just returned eof().
2989 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2990 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2991 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2992
2993 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2994 Trivial simplification of a conditional.
2995
2996 2004-02-12 Paolo Carlini <pcarlini@suse.de>
2997
2998 PR libstdc++/13731 (final part: writev)
2999 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3000 New, a wrapper around writev() handling partial writes.
3001 (__basic_file<char>::xwrite): Move to __gnu_internal and make
3002 static.
3003 (__basic_file<char>::xsputn): Update call.
3004 (__basic_file<char>::xsputn_2): Likewise.
3005 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3006 Don't declare, now static.
3007
3008 2004-02-11 Stefan Olsson <stefan@xapa.se>
3009
3010 * docs/html/ext/mt_allocator.html: New.
3011
3012 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
3013
3014 * docs/html/20_util/allocator.html: New file, consolidate
3015 allocator information here. Revamp.
3016 * docs/html/documentation.html: Change links.
3017 * docs/html/20_util/howto.html: Same.
3018 * docs/html/ext/howto.html: Same.
3019
3020 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3021
3022 PR libstdc++/13731 (first part: write)
3023 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3024 New, declare.
3025 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3026 Define it: a wrapper around write() handling partial write.
3027 (__basic_file<char>::xsputn): Use it.
3028 (__basic_file<char>::xsputn_2): Likewise.
3029
3030 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3031 Petur Runolfsson <peturr02@ru.is>
3032
3033 PR libstdc++/14078
3034 * include/std/std_istream.h (operator>>(__istream_type& (*)
3035 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3036 operator>>(ios_base& (*)(ios_base&))): Declare inline.
3037 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3038 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3039 operator<<(ios_base& (*) (ios_base&))): Likewise.
3040 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3041
3042 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
3043
3044 PR libstdc++/14098
3045 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3046 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3047
3048 PR libstdc++/14097
3049 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3050 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3051
3052 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
3053
3054 * include/ext/pool_allocator.h: Include c++config.h.
3055
3056 2004-02-09 Stefan Olsson <stefan@xapa.se>
3057
3058 * include/ext/mt_allocator.h: thread_id is unused in non threaded
3059 applications and now has a ifdef to remove it completely on
3060 compilers without thread support. Include stdlib.h due to a
3061 compiler warning on getenv().
3062
3063 2004-02-09 Paul Brook <paul@codesourcery.com>
3064
3065 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3066
3067 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3068
3069 PR libstdc++/14071
3070 * src/locale_init.cc (locale::global(const locale&)): Use
3071 locale::name() in order to decide whether calling setlocale.
3072 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3073
3074 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3075 Avoid computing &= unnecessarily.
3076
3077 2004-02-09 James E Wilson <wilson@specifixinc.com>
3078
3079 PR libstdc++/5625
3080 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3081 __builtin_extend_pointer.
3082
3083 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3084
3085 PR libstdc++/14072
3086 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3087 Don't leave dangling pointers.
3088 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3089 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3090 facet is needed in the final test.
3091
3092 2004-02-09 Bernardo Innocenti <bernie@develer.com>
3093
3094 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3095 * configure: Regenerate.
3096
3097 2004-02-08 Richard Henderson <rth@redhat.com>
3098
3099 PR libstdc++/14026
3100 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3101 uncaughtExceptions during nested catch rethrow.
3102 * testsuite/18_support/14026.cc: New.
3103
3104 2004-02-08 Paolo Carlini <pcarlini@suse.de>
3105
3106 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3107 When working in place remember to set the state to sharable
3108 (otherwise, _M_mutate does it).
3109
3110 2004-02-08 Bernardo Innocenti <bernie@develer.com>
3111
3112 * include/bits/allocator.h, include/bits/basic_ios.h,
3113 include/bits/basic_ios.tcc, include/bits/basic_string.h,
3114 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3115 include/bits/char_traits.h, include/bits/codecvt.h,
3116 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3117 include/bits/demangle.h, include/bits/deque.tcc,
3118 include/bits/fstream.tcc, include/bits/functexcept.h,
3119 include/bits/gslice.h, include/bits/gslice_array.h,
3120 include/bits/indirect_array.h, include/bits/ios_base.h,
3121 include/bits/istream.tcc, include/bits/list.tcc,
3122 include/bits/locale_classes.h, include/bits/locale_facets.h,
3123 include/bits/locale_facets.tcc, include/bits/localefwd.h,
3124 include/bits/mask_array.h, include/bits/ostream.tcc,
3125 include/bits/postypes.h, include/bits/slice_array.h,
3126 include/bits/sstream.tcc, include/bits/stl_algo.h,
3127 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3128 include/bits/stl_construct.h, include/bits/stl_deque.h,
3129 include/bits/stl_function.h, include/bits/stl_heap.h,
3130 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3131 include/bits/stl_list.h, include/bits/stl_map.h,
3132 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3133 include/bits/stl_numeric.h, include/bits/stl_pair.h,
3134 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3135 include/bits/stl_relops.h, include/bits/stl_set.h,
3136 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3137 include/bits/stl_threads.h, include/bits/stl_tree.h,
3138 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3139 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3140 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3141 include/bits/type_traits.h, include/bits/valarray_after.h,
3142 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3143 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3144 trailing whitespace.
3145
3146 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3147
3148 * include/bits/basic_string.h: Fix comment.
3149
3150 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3151
3152 * include/bits/stl_construct.h: Wrap overlong lines, reformat
3153 according to the coding standards.
3154 * include/bits/stl_pair.h: Likewise.
3155 * include/bits/stl_raw_storage_iter.h: Likewise.
3156 * include/bits/stl_stack.h: Likewise.
3157 * include/bits/stl_uninitialized.h: Likewise.
3158 * include/bits/stream_iterator.h: Likewise.
3159 * include/bits/streambuf_iterator.h: Likewise.
3160 * include/bits/type_traits.h: Likewise.
3161
3162 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3163
3164 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3165 Adjust timings.
3166
3167 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
3168
3169 * scripts/check_performance: Support PCH.
3170
3171 * scripts/check_performance (CXX): Add -DNOTHREAD.
3172 * testsuite/performance/20_util/allocator/insert.cc: Integrate
3173 threaded tests from insert_insert.cc. Tweak iterations,
3174 remove special cases.
3175 * testsuite/performance/20_util/allocator/insert_insert.cc:
3176 Make all tests single-threaded. Tweak iterations.
3177 * testsuite/performance/20_util/allocator/map_thread.cc:
3178 Tweak iterations.
3179 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3180 Likewise.
3181
3182 2004-02-05 Geoffrey Keating <geoffk@apple.com>
3183
3184 PR 12179
3185 * .cvsignore: New.
3186 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3187 'gcc-lib'. Add comment about poorly-named variables.
3188 * aclocal.m4: Regenerate.
3189 * configure: Regenerate.
3190
3191 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3192
3193 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3194 Thousands-sep are always optional; thousands-sep are not allowed
3195 after the decimal_point.
3196 * testsuite/22_locale/money_get/get/char/12.cc: New.
3197 * testsuite/22_locale/money_get/get/char/13.cc: New.
3198 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3199 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3200
3201 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3202 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3203 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3204 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3205 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3206 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3207 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3208 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3209
3210 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3211 the standard.
3212 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3213
3214 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
3215
3216 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3217 Define.
3218 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3219 it to decide whether FIONREAD should take an off_t or int argument.
3220
3221 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3222
3223 * include/bits/stl_function.h: Minor formatting changes.
3224
3225 2004-02-04 Zack Weinberg <zack@codesourcery.com>
3226
3227 Revert previous change to config/abi/*/baseline_symbols.txt.
3228
3229 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3230 Zack Weinberg <zack@codesourcery.com>
3231
3232 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3233 New function.
3234 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3235 (__basic_file<char>::_M_open_mode): Delete.
3236 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3237
3238 * testsuite/27_io/basic_filebuf/close/char/9964.cc
3239 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3240 Correct flags to filebuf::open calls.
3241
3242 * config/abi/alpha-freebsd5/baseline_symbols.txt
3243 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3244 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3245 * config/abi/i386-freebsd4/baseline_symbols.txt
3246 * config/abi/i386-freebsd5/baseline_symbols.txt
3247 * config/abi/i486-linux-gnu/baseline_symbols.txt
3248 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3249 * config/abi/mips-linux-gnu/baseline_symbols.txt
3250 * config/abi/sparc-freebsd5/baseline_symbols.txt
3251 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3252 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3253 Remove entry for __basic_file<char>::_M_open_mode.
3254
3255 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3256
3257 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3258
3259 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3260
3261 * testsuite/performance/20_util/producer_consumer.cc: New.
3262 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3263
3264 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3265
3266 * testsuite/performance/20_util/allocator.cc: Move to..
3267 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3268 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3269 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3270 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3271 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3272
3273 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3274
3275 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3276 * docs/html/faq/index.txt: Regenerate.
3277
3278 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
3279
3280 * include/ext/debug_allocator.h: _M_extra now stands for the
3281 number of extra objects instead of the number of extra bytes.
3282 (debug_allocator::allocate): Adjust.
3283 (debug_allocator::deallocate): Adjust.
3284
3285 * include/ext/pool_allocator.h: Fix typo.
3286
3287 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
3288 Benjamin Kosnik <bkoz@redhat.com>
3289
3290 * testsuite/performance/20_util/allocator.cc: Add map,
3291 deque, set tests.
3292 * testsuite/performance/20_util/allocator_thread.cc: Same.
3293
3294 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3295
3296 * include/bits/basic_string.h (insert(iterator)): Remove,
3297 non-standard and already scheduled for removal.
3298
3299 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3300
3301 * include/bits/stl_iterator_base_funcs.h: Minor formatting
3302 and indentation tweaks.
3303 * include/bits/stl_iterator_base_types.h: Likewise.
3304 * include/bits/stl_list.h: Likewise.
3305 * include/bits/stl_map.h: Likewise.
3306 * include/bits/stl_tempbuf.h: Likewise.
3307
3308 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3309
3310 * include/bits/gslice.h, include/bits/gslice_array.h,
3311 include/bits/indirect_array.h, include/bits/mask_array.h,
3312 include/bits/slice_array.h, include/bits/stl_numeric.h,
3313 include/std/std_valarray.h: Update copyright years.
3314
3315 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3316
3317 * include/bits/gslice.h (gslice): Document.
3318 * include/bits/gslice_array.h (gslice_array): Document.
3319 * include/bits/indirect_array (indirect_array): Document.
3320 * include/bits/mask_array (mask_array): Document.
3321 * include/bits/slice_array.h (slice,slice_array): Document.
3322 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3323 adjacent_difference): Document
3324 * include/std/std_valarray.h (valarray): Document.
3325
3326 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3327
3328 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3329 documentation...
3330 * docs/html/18_support/howto.html: Here.
3331 * docs/html/documentation.html: Add reference here.
3332
3333 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3334
3335 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3336 of no longer used GLIBC thread locale functions.
3337
3338 2004-02-02 Eric Christopher <echristo@redhat.com>
3339 Zack Weinberg <zack@codesourcery.com>
3340
3341 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3342 -finput-charset.
3343 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3344 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3345 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3346 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3347 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3348 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3349 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3350 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3351 Ditto.
3352
3353 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3354
3355 * include/bits/stl_function.h: Additional minor tweaks.
3356 * include/bits/stl_multiset.h: Likewise.
3357
3358 * include/bits/stl_queue.h: Minor tweaks.
3359
3360 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3361
3362 PR libstdc++/13976 (continued)
3363 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3364 Make the second parameter unnamed, to void unused parameter
3365 warnings.
3366 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3367
3368 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3369
3370 PR libstdc++/13976
3371 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3372 Make the second parameter unnamed, to void unused parameter
3373 warnings.
3374 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3375 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3376
3377 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3378
3379 * include/bits/stl_algo.h: Additional minor tweaks.
3380 * include/bits/stl_map.h: Likewise.
3381 * include/bits/stl_multimap.h: Likewise.
3382 * include/bits/stl_multiset.h: Likewise.
3383 * include/bits/stl_set.h: Likewise.
3384 * include/bits/stl_tree.h: Likewise.
3385
3386 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3387
3388 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3389 Remove, unused.
3390
3391 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3392
3393 * include/bits/stl_function.h: Additional minor tweaks.
3394
3395 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3396
3397 * include/bits/deque.tcc: Wrap overlong lines, constify
3398 a few variables, reformat according to the coding standards.
3399 * include/bits/list.tcc: Likewise.
3400 * include/bits/stl_deque.h: Likewise.
3401 * include/bits/stl_function.h: Likewise.
3402 * include/bits/stl_iterator.h: Likewise.
3403 * include/bits/stl_iterator_base_funcs.h: Likewise.
3404 * include/bits/stl_iterator_base_types.h: Likewise.
3405 * include/bits/stl_list.h: Likewise.
3406 * include/bits/stl_map.h: Likewise.
3407 * include/bits/stl_multimap.h: Likewise.
3408 * include/bits/stl_multiset.h: Likewise.
3409 * include/bits/stl_relops.h: Likewise.
3410 * include/bits/stl_set.h: Likewise.
3411
3412 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3413
3414 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3415 a few variables, reformat according to the coding standards.
3416 * include/bits/stl_tree.h: Likewise.
3417
3418 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3419
3420 * include/bits/stl_algo.h: Minor additional reformat, add
3421 copyright year.
3422 * include/bits/stl_algobase.h: Add copyright year.
3423
3424 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3425
3426 * include/bits/stl_algo.h: Wrap overlong lines, constify
3427 a few variables, reformat according to the coding standards.
3428 * include/bits/stl_algobase.h: Likewise.
3429 * include/bits/stl_heap.h: Likewise.
3430
3431 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3432
3433 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3434
3435 * include/bits/basic_string.h: Fix two comments.
3436
3437 2004-01-31 Per Bothner <per@bothner.com>
3438
3439 * include/ext/mt_allocator.h
3440 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3441 __GTHREAD_MUTEX_INIT.
3442
3443 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3444
3445 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3446
3447 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3448
3449 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3450 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3451 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3452
3453 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3454
3455 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3456 Don't use clear, but instead assign. Use insert.
3457
3458 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3459
3460 * src/demangle.cc: Add instantiations.
3461 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3462 * src/Makefile.in: Regenerate.
3463
3464 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3465
3466 * src/allocator.cc: Protect _S_get_thread_id() and
3467 _S_thread_key_destr() with #ifdef __GTHREADS.
3468
3469 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3470
3471 Reshuffle performance testsuite.
3472 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3473 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3474 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3475 fstream_seek_write.cc, ifstream_extract_float.cc,
3476 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3477 list_create_fill_sort.cc, map_create_fill.cc,
3478 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3479 ofstream_insert_float.cc, ofstream_insert_int.cc,
3480 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3481 wchar_t_out.cc: Split into...
3482 * testsuite/performance/20_util/allocator.cc: New.
3483 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3484 * testsuite/performance/20_util/allocator_thread.cc: New.
3485 * testsuite/performance/21_strings/string_append: New.
3486 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3487 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3488 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3489 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3490 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3491 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3492 * testsuite/performance/23_containers/container_benchmark.cc: New.
3493 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3494 * testsuite/performance/23_containers/map_create_fill.cc: New.
3495 * testsuite/performance/26_numerics/complex_norm.cc: New.
3496 * testsuite/performance/27_io/cout_insert_int.cc: New.
3497 * testsuite/performance/27_io/filebuf_copy.cc: New.
3498 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3499 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3500 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3501 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3502 * testsuite/performance/27_io/ifstream_getline.cc: New.
3503 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3504 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3505
3506 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3507
3508 * include/bits/basic_string.tcc (_Rep::_S_create):
3509 Never allocate a string bigger than max_size(); always keep
3510 __capacity and __size in sync to avoid memory leaks at
3511 deallocation time.
3512
3513 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3514
3515 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3516 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3517 the double loop, streamline.
3518
3519 * include/bits/basic_string.tcc: Very minor tweaks.
3520
3521 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3522
3523 * scripts/check_performance: Only compile with $THREAD_FLAG
3524 when test is marked to require it. Allow multiple
3525 compilations/executions of marked tests.
3526 * testsuite/testsuite_performance.h (report_performance):
3527 Report dynamic thread support status.
3528 (report_header): Likewise.
3529 * testsuite/performance/allocator.cc: Stabilize iteration
3530 count. Support more allocators. Mark each allocator test to
3531 run and report independently.
3532 * testsuite/performance/allocator_map_thread.cc: Likewise.
3533 * testsuite/performance/allocator_thread.cc: Likewise.
3534
3535 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3536
3537 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3538 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3539 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3540 std::get_temporary_buffer() instead of duplicating its code.
3541 Update to C++STYLE conventions.
3542 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3543 new() instead of std::malloc().
3544 (return_temporary_buffer): Use ::operator delete() instead of
3545 std::free().
3546
3547 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3548
3549 * include/bits/allocator.h: Temporary switch to new_allocator as
3550 the default to unjam bootstraps.
3551
3552 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3553
3554 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3555 * include/Makefile.in: Regenerate.
3556 * include/bits/allocator_traits.h: Remove.
3557 * include/bits/allocator.h: Remove allocator_traits.h include, and
3558 relevant comments.
3559 (allocator): Empty base class, inherit from the underlying allocator.
3560 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3561 * src/allocator.cc: ...here. New. For the underlying allocators.
3562 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3563 * config/linker-map.gnu: Remove __pool_alloc bits.
3564 * src/Makefile.am (sources): Add allocator.cc.
3565 * src/Makefile.in: Regenerate.
3566 * testsuite/20_util/allocator/1.cc: Split second test into...
3567 * testsuite/20_util/allocator/8230.cc: ...this.
3568 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3569 typedef to use std::allocatore. Format.
3570 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3571 _Alloc_traits.
3572 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3573 __throw_bad_alloc calls. Don't include <memory>.
3574 * include/ext/malloc_allocator.h: Remove <memory> include.
3575 * include/ext/new_allocator.h (new_allocator): Same.
3576 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3577 declaration. Switch __alloc to _Alloc.
3578 * include/ext/hashtable.h: Remove __alloc.
3579 * include/backward/alloc.h: Only inject allocator, not
3580 implementation details.
3581
3582 * include/ext/mt_allocator.h: Replace free with delete.
3583
3584 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3585
3586 * src/globals_io.cc: Change to __gnu_internal namespace.
3587 * src/globals_locale.cc: Same.
3588 * src/locale_init.cc: Same.
3589 * src/ios_init.cc: Same.
3590
3591 2004-01-28 Stefan Olsson <stefan@snon.net>
3592
3593 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3594 operator new(). Added support for the env variable
3595 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3596 one in allocate() as well). Fix typos.
3597
3598 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3599
3600 * include/bits/basic_string.h (_S_create(size_t,
3601 const _Alloc&): Change signature to take two size_type
3602 arguments.
3603 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3604 _InIterator, const _Alloc&, input_iterator_tag)): Update
3605 call, tweak a bit.
3606 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3607 forward_iterator_tag)): Likewise.
3608 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3609 (_M_mutate(size_type, size_type, size_type)): Don't
3610 implement the exponential growth policy, demand it to
3611 _S_create, update call and simplify.
3612 (_M_clone(const _Alloc&, size_type)): Likewise.
3613 (_S_create(size_type, size_type, const _Alloc&)): Implement
3614 the growth policy, simplify otherwise.
3615
3616 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3617 signature to take a size_type, consistently with the other
3618 members.
3619
3620 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3621
3622 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3623 delete declarations, add include and test variable.
3624
3625 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3626
3627 * include/bits/codecvt.h, include/bits/locale_facets.h,
3628 include/bits/postypes.h, include/bits/stl_bvector.h,
3629 include/bits/stl_multiset.h, include/bits/stl_set.h,
3630 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3631 include/std/std_complex.h: Document.
3632
3633 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3634
3635 PR libstdc++/11584
3636 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3637 iword/pword selector.
3638 (ios_base::iword, ios_base::pword): Use it.
3639 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3640 iword or pword member on alloc failure.
3641 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3642
3643 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3644 PJ Darcy <darcypj@us.ibm.com>
3645
3646 * configure.host: Add support for *-tpf.
3647 * crossconfig.m4: Likewise.
3648 * configure: Regenerate.
3649 * config/os/tpf: New directory.
3650 * config/os/tpf/os_defines.h: New file.
3651 * config/os/tpf/ctype_base.h: Likewise.
3652 * config/os/tpf/ctype_inline.h: Likewise.
3653 * config/os/tpf/ctype_noninline.h: Likewise.
3654
3655 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3656
3657 PR libstdc++/13884
3658 * include/bits/sstream.tcc: Guard use of extern template.
3659
3660 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3661
3662 * include/bits/basic_string.tcc
3663 (basic_string(const basic_string&, size_type, size_type),
3664 basic_string(const basic_string&, size_type, size_type,
3665 const _Alloc&)): Avoid unnecessarily constructing iterators.
3666
3667 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3668
3669 * config/locale/generic/c_locale.cc: Fix throw messages
3670 to use the __N marker.
3671 * config/locale/gnu/c_locale.cc: Likewise.
3672 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3673 Likewise.
3674 * docs/html/17_intro/C++STYLE: Likewise.
3675 * include/bits/basic_ios.tcc: Likewise.
3676 * include/bits/fstream.tcc: Likewise.
3677 * include/bits/vector.tcc: Likewise.
3678 * include/ext/ropeimpl.h: Likewise.
3679 * include/std/std_bitset.h: Likewise.
3680 * src/ios.cc: Likewise.
3681 * src/locale.cc: Likewise.
3682 * src/localename.cc: Likewise.
3683
3684 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3685
3686 * include/bits/basic_string.h (_M_replace_aux): Use the
3687 __N marker in throw message.
3688 * include/bits/basic_string.tcc (assign(const _CharT*,
3689 size_type), insert(size_type, const _CharT*, size_type),
3690 replace(size_type, size_type, const _CharT*, size_type),
3691 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3692 Likewise.
3693
3694 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3695 Fold overlong lines, minor formatting changes.
3696
3697 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3698
3699 * include/bits/basic_string.h (replace(iterator, iterator,
3700 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3701 (replace(iterator, iterator, const _CharT*)): Ditto.
3702 (replace(iterator, iterator, const _CharT*, size_type)):
3703 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3704
3705 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3706
3707 * include/bits/basic_string.tcc (replace(size_type,
3708 size_type, const _CharT*, size_type)): Implement optimized
3709 in-place algorithm for non-overlapping ranges.
3710 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3711 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3712
3713 * include/bits/basic_string.tcc (insert(size_type,
3714 const _CharT*, size_type)): Tweak slightly.
3715
3716 2004-01-26 Andreas Schwab <schwab@suse.de>
3717
3718 * config/locale/gnu/monetary_members.cc: Restore locale before
3719 rethrowing exception.
3720
3721 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3722
3723 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3724 Define inline here.
3725 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3726 Move inline.
3727
3728 * include/bits/basic_string.tcc: Very minor tweaks.
3729
3730 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3731
3732 * testsuite/performance/string_append.cc: Increase number
3733 of iterations.
3734
3735 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3736
3737 * include/bits/basic_string.h (erase(size_type, size_type),
3738 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3739 instead, thus avoiding redundant check for length_error.
3740
3741 * include/bits/basic_string.h: Tweak some comments.
3742
3743 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3744
3745 * include/bits/basic_string.tcc (operator+(const _CharT*,
3746 const basic_string&)): No need to go through the append
3747 taking two iterators.
3748
3749 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3750
3751 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
3752 Revert last change to use std::min: machine language is worse.
3753 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
3754 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3755 (find_last_not_of(_CharT, size_type)): Ditto.
3756
3757 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
3758 size_type)): Discard the value returned by _M_check.
3759 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
3760 (append(const basic_string&, size_type, size_type)): Ditto.
3761 (copy(_CharT*, size_type, size_type)): Ditto.
3762 (compare(size_type, size_type, const basic_string&)): Ditto.
3763 (compare(size_type, size_type, const basic_string&,
3764 size_type, size_type)): Ditto.
3765 (compare(size_type, size_type, const _CharT*)): Ditto.
3766 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3767
3768 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3769
3770 * include/bits/basic_string.h (insert(size_type,
3771 const basic_string&, size_type, size_type)): Define inline here.
3772 * include/bits/basic_string.tcc (insert(size_type,
3773 const basic_string&, size_type, size_type)): Move inline.
3774
3775 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3776
3777 * include/bits/basic_string.h (assign(const basic_string&,
3778 size_type, size_type)): Define inline here.
3779 (replace(size_type, size_type, const basic_string&,
3780 size_type, size_type)): Ditto.
3781 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3782 _InputIterator, __false_type)): Only declare.
3783 (_M_replace(iterator, iterator, _InputIterator,
3784 _InputIterator)): Remove.
3785 * include/bits/basic_string.tcc (assign(const basic_string&,
3786 size_type, size_type)): Move inline.
3787 (replace(size_type, size_type, const basic_string&,
3788 size_type, size_type)): Ditto.
3789 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3790 _InputIterator, __false_type)): Define, now does also what
3791 _M_replace did before.
3792 * src/string-inst.cc (_M_replace): Don't instantiate.
3793
3794 * include/bits/basic_string.tcc (find(const _CharT*,
3795 size_type, size_type)): Tidy.
3796 (rfind(_CharT, size_type)): Ditto.
3797 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
3798 (find_first_not_of(_CharT, size_type)): Ditto.
3799 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
3800 (find_last_not_of(_CharT, size_type)): Ditto.
3801
3802 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3803
3804 PR libstdc++/13838
3805 * include/debug/bitset (operator|=): Fix typo.
3806 * testsuite/23_containers/bitset/operations/13838.cc: New.
3807
3808 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3809
3810 * include/bits/basic_string.tcc (insert(size_type,
3811 const _CharT*, size_type __n)): Fix length_error check.
3812 (replace(size_type, size_type, const _CharT*, size_type):
3813 Ditto; call _M_replace_safe.
3814 (_M_replace_aux(size_type, size_type, size_type, _CharT):
3815 Fix length_error check.
3816 (_M_replace(iterator, iterator, _InputIterator,
3817 _InputIterator)): Ditto, tweak.
3818 (_M_replace_safe(size_type, size_type, const _CharT*,
3819 size_type)): Remove length_error check.
3820
3821 * include/bits/basic_string.tcc (append(const basic_string&),
3822 append(const basic_string&, size_type, size_type)): Tweak
3823 comment.
3824
3825 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
3826 size_type)): If __n == 0 don't call traits::copy.
3827
3828 2004-01-23 Stefan Olsson <stefan@snon.net>
3829
3830 * include/ext/mt_allocator.h: Reduce lock contention.
3831
3832 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3833
3834 PR libstdc++/13831
3835 * include/bits/fstream.tcc (underflow): Remove unused
3836 variable.
3837 * include/bits/streambuf_iterator.h (equal): Ditto.
3838 * include/bits/locale_facets.h (_M_convert_from_char):
3839 Ditto.
3840
3841 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3842
3843 PR c/13814
3844 * config/linker-map.gnu (nan): Delete.
3845 * libmath/mathconf.h (NAN, nan): Delete.
3846 * linkage.m4 (nan): Don't check for it.
3847 * libmath/nan.c: Delete file.
3848
3849 * config.h.in, configure: Regenerate.
3850
3851 2004-01-23 Paolo Carlini <pcarlini@suse.de>
3852
3853 * include/bits/basic_string.h (push_back(_CharT)):
3854 Call _M_replace_aux.
3855 (insert(size_type, const basic_string&)): Trivial tweak.
3856 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
3857 (insert(iterator, _CharT)): Ditto.
3858 (erase(size_type, size_type)): Ditto.
3859 (erase(iterator)): Ditto.
3860 (erase(iterator, iterator)): Ditto.
3861 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3862
3863 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
3864
3865 libstdc++/13823
3866 * testsuite/performance/allocator_map_thread.cc: New test.
3867
3868 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3869
3870 * include/bits/locale_facets.tcc
3871 (money_put::do_put(..., long double)): Use the basic_string
3872 constructor for char arrays, not that for C-strings, to pass
3873 __digits to do_put(..., const string_type&): __ws isn't
3874 null-terminated.
3875
3876 2004-01-22 Paolo Carlini <pcarlini@suse.de>
3877
3878 * include/bits/basic_string.h (_M_replace_safe): Change
3879 signatures to take size_types and const _CharT*.
3880 (_M_replace_aux): Likewise, takes size_types instead of
3881 iterators.
3882 (append(size_type, _CharT)): Update call.
3883 (assign(size_type, _CharT)): Ditto.
3884 (replace(iterator, iterator, size_type, _CharT)): Ditto.
3885 (_M_replace_dispatch(iterator, iterator, _Integer,
3886 _Integer, __true_type)): Ditto.
3887 * include/bits/basic_string.tcc (assign(const _CharT*,
3888 size_type)): Ditto.
3889 (insert(size_type, const _CharT*, size_type)): Ditto.
3890 (replace(size_type, size_type, const _CharT*,
3891 size_type)): Ditto.
3892 (_M_replace(iterator, iterator, _InputIterator,
3893 _InputIterator)): Ditto.
3894 (append(const basic_string&)): Ditto.
3895 (append(const basic_string&, size_type, size_type): Ditto.
3896 (append(const _CharT*, size_type): Ditto.
3897 (_M_replace_safe, _M_replace_safe): Change definitions
3898 accordingly, simplify.
3899 * string-inst.cc (_M_replace_safe): Don't instantiate.
3900
3901 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3902
3903 * include/bits/basic_string.tcc (append(const basic_string&)):
3904 Revert previous change.
3905 (append(const basic_string&, size_type, size_type)): Revert
3906 previous change, use _M_check and _M_limit.
3907
3908 2004-01-21 Paolo Carlini <pcarlini@suse.de>
3909
3910 * include/bits/basic_string.h (_M_check): Change to return
3911 a checked __pos and take an additional const char* argument.
3912 (_M_fold): Rename to _M_limit, change to return a size_type,
3913 corresponding to the __off limited to the actual length.
3914 (insert(size_type, size_type, _CharT)): Update call, call
3915 replace.
3916 (insert(iterator, _CharT)): Call replace(iterator, iterator,
3917 size_type, _CharT) instead.
3918 (erase(size_type, size_type)): Update calls.
3919 (replace(size_type, size_type, size_type, _CharT)): Ditto.
3920 (substr(size_type, size_type)): Use _M_check.
3921 * include/bits/basic_string.tcc (basic_string(const basic_string&,
3922 size_type, size_type)): Update calls.
3923 (basic_string(const basic_string&, size_type, size_type,
3924 const _Alloc&)): Ditto.
3925 (assign(const basic_string&, size_type, size_type)): Use the
3926 new _M_check and _M_limit.
3927 (insert(size_type, const basic_string&, size_type, size_type):
3928 Ditto.
3929 (insert(size_type, const _CharT*, size_type)): Ditto.
3930 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
3931 (replace(size_type, size_type, const basic_string&,
3932 size_type, size_type)): Ditto.
3933 (append(const basic_string&)): Ditto.
3934 (append(const basic_string&, size_type, size_type)): Ditto.
3935 (copy(_CharT*, size_type, size_type)): Ditto.
3936 (compare(size_type, size_type, const basic_string&)): Ditto.
3937 (compare(size_type, size_type, const basic_string&,size_type,
3938 size_type)): Ditto.
3939 (compare(size_type, size_type, const _CharT*)): Ditto.
3940 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
3941
3942 2004-01-19 Stefan Olsson <stefan@snon.net>
3943
3944 * include/ext/mt_allocator.h: If a thread, when it dies, still has
3945 memory on it's freelist this memory is not returned to global
3946 list. Simplification of deallocate so that memory is always
3947 returned to the calling thread id's freelist instead of to
3948 global. Fix typos. Add volatile where appropriate.
3949
3950 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
3951
3952 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
3953 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
3954 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
3955
3956 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3957
3958 * src/debug.cc: Make sure all the names are prefixed with
3959 double (or single) underscore.
3960
3961 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3962
3963 * src/debug.cc: Trivial formatting change.
3964
3965 2004-01-19 Paolo Carlini <pcarlini@suse.de>
3966
3967 * include/bits/basic_string.tcc (_S_construct(size_type,
3968 _CharT, const _Alloc&)): Remove redundant try/catch.
3969 (_M_mutate(size_type, size_type, size_type)): Ditto.
3970 (_M_clone(const _Alloc&, size_type)): Ditto.
3971
3972 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3973
3974 * include/bits/basic_string.h (c_str()): Simplify, due to
3975 21.3.4 the internal representation is always kept null-terminated.
3976 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3977 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3978 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3979 Ditto.
3980
3981 2004-01-18 Paolo Carlini <pcarlini@suse.de>
3982
3983 * include/bits/basic_string.h (append(size_type, _CharT)):
3984 Moved inline, just call _M_replace_aux, no source iterators at
3985 risk of being clobbered.
3986 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3987 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3988 input_iterator_tag)): Remove fifth unused argument.
3989 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3990 _InputIterator, __false_type)): Update call.
3991 * include/bits/basic_string.tcc (replace(size_type, size_type,
3992 const _CharT*, size_type)): Update call.
3993 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3994 throw string literal.
3995 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3996 _ForwardIterator)): Likewise.
3997 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3998 input_iterator_tag)): Remove fifth unused argument.
3999 (append(size_type __n, _CharT __c)): Move inline.
4000 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4001 const C*, const C*, input_iterator_tag)): Remove fifth unused
4002 argument.
4003
4004 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
4005
4006 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4007 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4008
4009 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4010
4011 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4012 mkfifo for mingw32.
4013
4014 2004-01-15 Stefan Olsson <stefan@snon.net>
4015
4016 * include/ext/mt_allocator.h: Reuse thread id's as soon as
4017 possible by changing the behaviour of thread_freelist to do
4018 push_front when threads die instead of push_back.
4019
4020 2004-01-14 Paolo Carlini <pcarlini@suse.de>
4021
4022 * include/bits/locale_facets.h (struct __numpunct_cache):
4023 Add member _M_grouping_size, caching the length of _M_grouping.
4024 (__numpunct_cache<>::_M_cache): Assign the latter.
4025 (__verify_grouping): Move declaration...
4026 * include/bits/locale_facets.tcc (__verify_grouping):
4027 ... here, change signature to take a const char* and a size_t
4028 for the grouping; not a template anymore.
4029 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4030 Likewise change signature and tweak consistently.
4031 (num_get::_M_extract_float, num_get::_M_extract_int,
4032 num_put::_M_insert_int, num_put::_M_insert_float,
4033 money_get::do_get(string_type&), money_get::do_put(string_type)):
4034 Update callers.
4035 * config/locale/generic/numeric_members.cc
4036 (numpunct<>::_M_initialize_numpunct): Assign the new member.
4037 * config/locale/gnu/numeric_members.cc
4038 (numpunct<>::_M_initialize_numpunct): Likewise.
4039 * src/locale-inst.cc (__add_grouping): Tweak signature.
4040 (__verify_grouping): Don't instantiate, not a template anymore.
4041
4042 * include/bits/locale_facets.h: Rename _M_truename_len ->
4043 _M_truename_size, _M_falsename_len -> _M_falsename_size.
4044 * include/bits/locale_facets.tcc: Likewise.
4045 * config/locale/generic/numeric_members.cc: Likewise.
4046 * config/locale/gnu/numeric_members.cc: Likewise.
4047
4048 2004-01-14 Stefan Olsson <stefan@snon.net>
4049
4050 * include/ext/mt_allocator.h: Fixups.
4051 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4052 * testsuite/performance/allocator_thread.cc: Same.
4053
4054 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4055
4056 * testsuite/performance/ifstream_extract_float.cc: Add higher
4057 precision tests.
4058 * testsuite/performance/ofstream_insert_float.cc: Same.
4059
4060 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4061
4062 * src/locale-misc-inst.cc (__convert_from_v(long),
4063 __convert_from_v(unsigned long), __convert_from_v(long long),
4064 __convert_from_v(unsigned long long)): Remove, unused.
4065
4066 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4067
4068 * testsuite/performance/ifstream_extract_float.cc: New.
4069 * testsuite/performance/ofstream_insert_float.cc: Float generation
4070 matches above.
4071
4072 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4073 * 20_util/auto_ptr/1.cc: ...this.
4074 * 20_util/auto_ptr/2.cc: Same.
4075 * 20_util/auto_ptr/3.cc: Same.
4076 * 20_util/auto_ptr/3946.cc: Same.
4077 * 20_util/auto_ptr/4.cc: Same.
4078 * 20_util/auto_ptr/5.cc: Same.
4079 * 20_util/auto_ptr/6.cc: Same.
4080 * 20_util/auto_ptr/7.cc: Same.
4081 * 20_util/auto_ptr/assign_neg.cc
4082 * 20_util/pairs.cc: Break into...
4083 * 20_util/pair/1.cc: ...this.
4084 * 20_util/pair/2.cc: Same.
4085 * 20_util/pair/3.cc: Same.
4086 * 20_util/pair/4.cc: Same.
4087
4088 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4089
4090 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4091 Set correctly just basefield, the only group that matters.
4092
4093 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4094
4095 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4096 (_Rope_rep_base): Inherit directly from the rope allocator;
4097 use rebinding instead of _Alloc_traits; pick up data member
4098 from _Rope_rep_alloc_base.
4099 (_Rope_alloc_base): Eliminate.
4100 (_Rope_base): Inherit directly from the rope allocator; use
4101 rebinding instead of _Alloc_traits; pick up data member from
4102 _Rope_alloc_base.
4103 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4104 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4105
4106 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4107
4108 PR libstdc++/13650
4109 * include/bits/basic_string.tcc (compare(size_type, size_type,
4110 const _CharT*, size_type)): Implement correctly the resolution
4111 of DR 5: basically, s is a char array, -not- a C string.
4112 * include/bits/basic_string.h: Tweak some comments.
4113 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4114 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4115
4116 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4117
4118 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4119 Solaris.
4120
4121 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4122
4123 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4124 Use try_mkfifo.
4125 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4126 Likewise.
4127
4128 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4129
4130 * include/bits/locale_facets.h (struct __numpunct_cache):
4131 Add members _M_truename_len and _M_falsename_len, caching
4132 the lengths of _M_truename and _M_falsename.
4133 (__numpunct_cache<>::_M_cache): Assign the latter.
4134 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4135 num_put::do_put(bool)): Use the new members, thus avoiding
4136 computing string lengths again and again.
4137 * config/locale/generic/numeric_members.cc
4138 (numpunct<>::_M_initialize_numpunct): Assign the new members.
4139 * config/locale/gnu/numeric_members.cc
4140 (numpunct<>::_M_initialize_numpunct): Likewise.
4141
4142 2004-01-12 Mark Mitchell <mark@codesourcery.com>
4143
4144 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4145 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4146 it.
4147 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4148 and remove Cygwin XFAIL.
4149 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4150 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4151 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4152 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4153 Likewise.
4154 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4155 * testsuite/27_io/objects/char/7.cc: Likewise.
4156 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4157 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4158 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4159
4160 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4161
4162 * include/std/std_complex.h (std::complex<>::real): Return a
4163 reference. Add non-const overload.
4164 (std::complex<>::real): Likewise.
4165 (std::real): Likewise.
4166 (std::imag): Likewise.
4167 (std::operator+): Tidy.
4168 (std::operator-): Likewise.
4169 (std::operator*): Likewise.
4170 (std::operator/): Likewise.
4171 (std::operator>>): Likewise.
4172
4173 2004-01-11 Paolo Carlini <pcarlini@suse.de>
4174
4175 PR libstdc++/13582
4176 * include/bits/fstream.tcc (imbue): Exploit the external
4177 buffer to imbue 'on the fly' a new locale and convert its
4178 remainder with the new codecvt facet.
4179 (underflow): Tweak slightly to deal with this special case.
4180 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4181 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4182 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4183 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4184 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4185
4186 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4187
4188 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4189 Import Revision 28.
4190
4191 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4192
4193 PR libstdc++/13630
4194 * include/bits/locale_classes.h (class locale): Fix category
4195 typedef.
4196 * testsuite/22_locale/locale/13630.cc: Add.
4197
4198 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4199
4200 * include/bits/locale_facets.h: Make a name really dependent. This
4201 will be needed when Core Issue 224 is implemented.
4202
4203 2004-01-09 Paolo Carlini <pcarlini@suse.de>
4204
4205 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4206 * testsuite/performance/allocator_thread.cc: Likewise.
4207
4208 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4209
4210 * crossconfig.m4: Add LFS, io bits to linux cross config.
4211 * acconfig.h: Remove obsolete bits, reorder.
4212 * config.h.in: Regenerate.
4213 * aclocal.m4: Same.
4214 * configure: Same.
4215
4216 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
4217
4218 * include/bits/stl_list.h:
4219 * include/bits/list.tc:
4220 * src/list.cc:
4221 Performance enhancements for destructor, push_front(),
4222 push_back(), pop_front(), pop_back(), sort()
4223 Eliminated static_casts where possible.
4224 Moved code out of header files into new src/list.cc
4225 implementation file for library where possible.
4226 Remove inheritance from iterator class and create separate
4227 classes for non-constant and constant iterators.
4228 * include/bits/stl_tree.h (_Rb_tree class):
4229 * src/tree.cc:
4230 Only erase contents in destructor.
4231 Eliminate unnecessary initialization in assignment operator.
4232 Optimize for the nominal case by not checking whether
4233 container is empty in clear().
4234 Re-order test in _M_insert() to improve performance.
4235 Move initialization of new node's left & right pointers to
4236 src/tree.cc to where new node's colour is initialized
4237 and to reduce the amount of inline code.
4238 Use _M_leftmost() and _M_end() to improve readability where
4239 appropriate.
4240 Create separate classes for non-constant and constant
4241 iterators to clarify code, avoid extra template parameters and
4242 casting away constness.
4243
4244 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4245
4246 * src/Makefile.am (sources): Add list.cc, tree.cc.
4247 * src/stl_tree.cc: Move to...
4248 * src/tree.cc: ...here.
4249 * src/list.cc: Add.
4250 * config/linker-map.gnu: Tweaks.
4251 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4252 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4253
4254 * bits/stl_vector.h: Column wrap comments.
4255
4256 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4257
4258 (re-open) PR libstdc++/12658
4259 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4260 (locale::global): Likewise.
4261
4262 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4263
4264 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4265 Remove redundant #include.
4266 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4267 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4268 re-enable normal testing.
4269 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4270 #include.
4271 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4272 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4273 Likewise.
4274 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4275 Likewise.
4276 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4277 Likewise.
4278 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4279 Likewise.
4280 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4281 Likewise.
4282 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4283 Likewise.
4284 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4285 Likewise.
4286 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4287 More properly, #include <locale>.
4288 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4289 Remove redundant #include.
4290 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4291 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4292 redundant DejaGnu directive.
4293 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4294 redundant #include.
4295
4296 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
4297 Stefan Olsson <stefan@snon.net>
4298
4299 * scripts/check_performance: Use -pthread.
4300 * testsuite/performance/allocator.cc: Tweaks, add list.
4301 * testsuite/performance/allocator_thread.cc: New.
4302
4303 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
4304
4305 * include/bits/locale_facets.h: Document public classes and
4306 functions.
4307 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4308 Add comment.
4309
4310 2004-01-06 Paolo Carlini <pcarlini@suse.de>
4311
4312 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4313 Remove redundant #includes.
4314 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4315 Likewise.
4316 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4317 Likewise.
4318 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4319 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4320 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4321 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4322 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4323 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4324 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4325 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4326 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4327 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4328 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4329 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4330 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4331 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4332 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4333 Likewise.
4334 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4335 Likewise.
4336 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4337 Likewise.
4338 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4339 Likewise.
4340 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4341 Likewise.
4342 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4343 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4344 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4345
4346 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4347
4348 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4349 Remove redundant #includes.
4350 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4351 Likewise.
4352 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4353 Likewise.
4354 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4355 Likewise.
4356 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4357 Likewise.
4358 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4359 Likewise.
4360 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4361 Likewise.
4362 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4363 Likewise.
4364 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4365 Likewise.
4366 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4367 Likewise.
4368 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4369 Likewise.
4370 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4371 Likewise.
4372 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4373 Likewise.
4374
4375 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4376
4377 PR c++/12226
4378 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4379 constructor.
4380 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4381 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4382 * testsuite/27_io/basic_ios/4.cc: Likewise.
4383 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4384 * testsuite/27_io/basic_istream/4.cc: Likewise.
4385 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4386 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4387 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4388 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4389 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4390 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4391
4392 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4393
4394 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4395 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4396 always use double underscored names.
4397 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4398 Likewise.
4399 * include/bits/locale_facets.h (struct __numpunct_cache):
4400 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4401 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
4402 and _M_atoms_in.