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