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