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