OSDN Git Service

2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
2
3         * testsuite/testsuite_performance.h (resource_counter): Don't use
4         mallinfo at the moment.
5
6 2003-06-20  Matthias Klose  <doko@debian.org>
7
8         * configure.host: Set try_cpu to target_cpu for existing
9         baseline files.
10
11 2003-06-19  Andreas Jaeger  <aj@suse.de>
12
13         * testsuite/Makefile.am (extract_symvers): Revert accidental
14         change.
15         * testsuite/Makefile.in: Regenerate.
16
17         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
18         * configure: Regenerated.
19
20 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
21
22         * include/std/std_sstream.h (_M_sync): Make non virtual.
23
24 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
25
26         * testsuite/testsuite_performance.h (time_counter): New.
27         (resource_counter): New.
28         (report_performance): New.
29         (start_counters): New.
30         (stop_counters): New.
31         (clear_counters): New.
32         * testsuite/performance/allocator.cc: Instrument.
33         * testsuite/performance/cout_insert_int.cc: Same.
34         * testsuite/performance/complex_norm.cc: Same.
35         * testsuite/performance/filebuf_sputc.cc: New.
36         * testsuite/performance/fstream_seek_write.cc: Same.
37         * testsuite/performance/ifstream_getline.cc: Same.
38         * testsuite/performance/map_create_fill.cc: Same.
39         * testsuite/performance/ofstream_insert_float.cc: Same.
40         * testsuite/performance/ofstream_insert_int.cc: Same.
41         * testsuite/performance/string_append.cc: Convert.
42         * scripts/check_performance: New.
43         * testsuite/Makefile.am (check-performance): New.
44         (CLEANFILES): Add.
45
46 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
47             Benjamin Kosnik  <bkoz@redhat.com>
48
49         * include/std/std_sstream.h (setbuf): Check __n >= 0.
50         * include/bits/fstream.tcc (setbuf): Tweak.
51
52 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
53
54         * include/bits/sstream.tcc (seekoff): We can't seek beyond
55         _M_out_lim, therefore _M_move_out_cur boils down to simply
56         updating _M_out_cur.
57         (seekpos): Likewise, clean up.
58
59 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
60             Paolo Carlini  <pcarlini@unitus.it>
61
62         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
63         simply equivalent to the unbuffered case (0, 0) as far as
64         _M_buf_size is concerned.
65
66 2003-06-18  Andreas Jaeger  <aj@suse.de>
67
68         * testsuite/Makefile.am (new-abi-baseline): Create baseline
69         directory.
70         (baseline_file): Use baseline_dir.
71         (baseline_dir): New.
72         (mkinstalldirs): New.
73
74         * acinclude.m4: Rename baseline_file to baseline_dir, strip
75         filename from baseline_dir.
76
77         * testsuite/Makefile.in: Regenerated.
78         * Makefile.in: Regenerated.
79         * aclocal.m4: Regenerated.
80         * configure: Regenerated.
81
82 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
83
84         * configure.in: Missed check_survey bit.
85         * configure: Regenerated.
86
87 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
88
89         * scripts: New.
90         * config/abi/extract_symvers: Move to...
91         * scripts/extract_symvers: ...here.
92         * mkcheck.in: Move to..
93         * scripts/check_survey.in: ...here.
94         * testsuite_flags.in: Move to..
95         * scripts/testsuite_flags.in: ...here.
96         * configure.in: Change check and testsuite_flags locations.
97         * configure: Regenerate.
98         * testsuite/Makefile.am (current_symbols.txt): Change location.
99         * testsuite/Makefile.in: Regenerate.
100         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
101         location of testsuite_flags.
102         * Makefile.am (check-script): Move..
103         (check-script-install): Move...
104         * testsuite/Makefile.am: ... here.
105         * testsuite/Makefile.in: Regenerate.
106         * Makefile.in: Regenerate.
107
108 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
109
110         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
111
112 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
113
114         * Makefile.am (check-abi): Move...
115         (new-abi-baseline): Move...
116         * testsuite/Makefile.am: ...here.
117         (new-abi-baseline): Conditionalize.
118         (check-abi): Conditionalize.
119         (check-abi-verbose): New.
120         * Makefile.in: Regenerate.
121         * testsuite/Makefile.in: Regenerate.
122         * configure.in: Consolidate testsuite configure bits.
123         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
124         * configure: Regenerate.
125         * aclocal.m4: Regenerate.
126         * testsuite/abi_check.cc: Add --check-verbose.
127         Only output detailed information if --check-verbose.
128
129 2003-06-16  Andreas Jaeger  <aj@suse.de>
130
131         * testsuite/abi_check.cc: Create summary report.
132
133 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
134
135         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
136         for systems with BUFSIZ != 8192.
137         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
138         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
139         Minor tweaks.
140
141 2003-06-16  Andreas Jaeger  <aj@suse.de>
142
143         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
144         check-abi multilib aware.
145         * aclocal.m4: Regenerate.
146         * configure: Regenerate.
147
148 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
149             Andreas Jaeger  <aj@suse.de>
150
151         * configure.host: Set x86_64 abi_baseline pair correctly.
152
153 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
154
155         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
156         fix for missing seeks between gets and puts into...
157         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
158         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
159         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
160         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
161         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
162         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
163
164 2003-06-15  Richard Henderson  <rth@redhat.com>
165
166         * config/linker-map.gnu: Export virtual function thunks for
167         64-bit systems too.
168
169 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
170
171         * config/abi/i686-pc-linux-gnu: To..
172         * config/abi/i486-linux-gnu: ...this.
173         * config/abi/alphaev67-unknown-linux-gnu: To..
174         * config/abi/alpha-linux-gnu: ...this.
175         * config/abi/ia64-unknown-linux-gnu: To...
176         * config/abi/ia64-linux-gnu: ...this.
177         * config/abi/x86_64-unknown-linux-gnu: To...
178         * config/abi/x86_64-linux-gnu: ...this.
179         * config/abi/i386-unknown-freebsd4: To...
180         * config/abi/i386-freebsd4: ...this.
181         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
182         CXXABI.
183         * configure.host: abi_baseline_triplet to abi_baseline_pair.
184         Simplify cpu bits so that abi_baseline_pair can use the same
185         cpu configuration.
186         * acinclude.m4: Same.
187         * aclocal.m4: Regenerate.
188         * configure.in: Can't get enable_abi_check to yes unless native.
189         * configure: Regenerate.
190
191 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
192
193         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
194         fix for missing seeks between gets and puts into...
195         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
196         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
197         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
198         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
199         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
200         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
201         for missing seeks between gets and puts.
202         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
203         * testsuite/data/seekoff-1.tst: New.
204         * testsuite/data/seekoff-2.tst: New.
205         * testsuite/data/seekpos-1.tst: New.
206         * testsuite/data/seekpos-2.tst: New.
207
208 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
209
210         Avoid multi-processor bus contention on increment/decrement-and-
211         test of the reference count in the empty-string object, by comparing
212         addresses first, and never touching the reference count of the empty-
213         string object.
214         * include/bits/basic_string.h:
215         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
216         members.
217         (_Rep::_S_empty_rep()): New accessor.
218         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
219         a base class _Rep_base.
220         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
221         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
222         since no longer must increment its refcount.
223         * include/bits/basic_string.tcc:
224         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
225         return immediately.  The former might be unnecessary.  The latter
226         prevents begin() and end() from cloning it unnecessarily.
227         (_S_construct(_InIterator, _InIterator, const _Alloc&,
228         input_iterator_tag), _S_construct(_InIterator, _InIterator,
229         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
230         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
231         (_M_mutate): Check for the empty string and treat it as shared.
232         This is necessary here because _M_mutate is sometimes called with
233         all-zero arguments; in all other uses of _M_is_shared, the test comes
234         out right anyhow.
235
236 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
237
238         * src/allocator-inst.cc: Explicitly instantiate.
239         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
240         Tweaks.
241         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
242
243 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
244
245         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
246         * aclocal.m4: Regenerate.
247         * Makefile.am (SUBDIRS): Remove libio.
248         * Makefile.in: Regenerate.
249         * configure.in: Same.
250         * configure: Regenerate.
251         * config/io/basic_file_libio.cc: Remove.
252         * config/io/basic_file_libio.h: Remove.
253         * config/io/c_io_libio_codecvt.c: Remove.
254         * config/io/c_io_libio.h: Remove.
255         * libio/*: Remove.
256         * src/Makefile.am: Same.
257         * src/Makefile.in: Regenerate.
258         * docs/html/configopts.html: Edits.
259         * docs/html/explanations.html: Edits.
260
261 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
262
263         * include/bits/stl_alloc.h (__debug_alloc): Move out.
264         (__malloc_alloc): Same.
265         (__pool_alloc): Same.
266         (__new_alloc): Same.
267         Rename to..
268         * include/bits/allocator.h: ...this.
269         * include/bits/stl_deque.h: Modify comment.
270         * include/bits/stl_tree.h: Modify include.
271         * include/std/std_memory.h: Same.
272         * include/ext/rope: Same.
273         * include/ext/slist: Same.
274         * include/std/std_vector.h: Same.
275         * include/std/std_stack.h: Same.
276         * include/std/std_queue.h: Same.
277         * include/std/std_list.h: Same.
278         * include/std/std_deque.h: Same.
279         * include/backward/alloc.h: Same.
280         * include/ext/debug_allocator.h: New.
281         * include/ext/malloc_allocator.h: New.
282         * include/ext/pool_allocator.h: New.
283         * include/ext/new_allocator.h: New.
284         * include/bits/pthread_allocimpl.h: Remove.
285         * include/bits/stl_pthread_alloc.h: Remove.
286         * include/Makefile.am (ext_headers): Add.
287         * include/Makefile.in: Regenerate.
288         * src/stl-inst.cc: Use __gnu_cxx namespace.
289         * src/stl-inst.cc: Move to...
290         * src/allocator-inst.cc: Here.
291         * src/Makefile.am (sources): Update.
292         * src/Makefile.in: Regenerate.
293         * config/linker-map.gnu: Remove __pool_alloc bits.
294         * testsuite/ext/headers.cc: Add.
295         * testsuite/ext/allocators.cc: Fixup.
296
297 2003-06-11  Stefan Olsson  <stefan@snon.net>
298             Ola Rönnerup  <fnolis@home.se>
299
300         * include/Makefile.am (ext_headers): Add.
301         * include/Makefile.in: Regenerate.
302         * include/ext/mt_allocator.h: New file.
303
304 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
305
306         * include/bits/fstream.tcc (close): Clean up a bit.
307
308         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
309
310         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
311         - the saved _M_in_cur, that is - cannot be null.
312         (sync): Constify a variable.
313
314         * include/std/std_streambuf.h: Tweak a comment.
315         (in_avail): Constify a variable.
316
317 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
318
319         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
320         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
321         correctness of container::iterator typedefs.  Fix whitespace.
322         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
323         to allocator docs.
324         * docs/html/documentation.html:  Regenerate.
325
326         * include/bits/basic_string.h, include/bits/basic_string.tcc,
327         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
328         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
329         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
330         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
331         include/bits/stl_vector.h, include/bits/vector.tcc,
332         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
333         Change _Iter names to _Iterator, and __pos to __position.
334
335         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
336         include/bits/stl_multiset.h, include/bits/stl_set.h:
337         Remove emacs markers.
338
339         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
340
341 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
342
343         * include/bits/fstream.tcc (overflow): According to
344         27.5.2.4.5, overflow() returns not_eof(eof()).
345         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
346         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
347
348 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
349
350         * include/bits/fstream.tcc (_M_underflow): Check overflow return
351         value; tweak slightly.
352
353 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
354
355         * include/bits/fstream.tcc (_M_underflow): Do not special
356         case the unbuffered case, which really means simply a one char
357         get area.
358         (basic_filebuf): Initialize _M_buf_size.
359         (setbuf): Unbuffered means _M_buf_size == 1, since only
360         _M_buf_size - 1 == 0 chars are going to be used for the
361         put area and 1 for the get area.
362         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
363         (~basic_streambuf): Tweak.
364         (basic_streambuf): Do not initialize _M_buf_size.
365         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
366         (~basic_filebuf): Tweak.
367         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
368         unbuffered situation (i.e., put area pointers NULL).
369         * include/bits/streambuf.tcc (sbumpc): Clean up.
370         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
371         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
372         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
373         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
374         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
375         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
376         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
377
378 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
379
380         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
381         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
382         statements.
383         * configure.in:  Centralize AM_CONDITIONALs so that they are always
384         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
385         * aclocal.m4, configure:  Regenerated.
386
387 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
388
389         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
390
391 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
392
393         * include/bits/stl_iterator.h
394         (reverse_iterator::reverse_iterator()): Apply DR235: default
395         constructor default-initializes data member.  Instantiated on a
396         pointer type, the member has to end up equal to zero.
397
398 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
399
400         * include/bits/stl_alloc.h: Cleanups.
401         * include/ext/functional: Same.
402         * include/ext/hash_map: Same.
403         * include/ext/hash_set: Same.
404         * include/ext/iterator: Same.
405         * include/ext/memory: Same.
406         * include/ext/numeric: Same.
407         * include/ext/rb_tree: Same.
408         * include/ext/ropeimpl.h: Same.
409         * include/ext/slist: Same.
410         * include/ext/stdio_filebuf.h: Same.
411         * include/ext/stdio_sync_filebuf.h: Same.
412         * include/ext/stl_rope.h: Move to...
413         * include/ext/rope: ...here.
414         * include/ext/stl_hash_fun.h: Move to...
415         * include/ext/hash_fun.h: ...here.
416         * include/ext/stl_hashtable.h: Move to...
417         * include/ext/hashtable.h: ...here.
418         * include/backward/hashtable.h: Reflect new names.
419         * include/Makefile.am: Same.
420         * include/Makefile.in: Regenerated.
421
422 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
423
424         PR libstdc++/9024
425         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
426         * include/bits/stl_algobase.h: Tweak.
427         * include/std/std_fstream.h: Move _M_buf_size to...
428         * include/std/std_streambuf.h: ...here. Modify.
429         * include/bits/streambuf.tcc: Same.
430         * testsuite/testsuite_hooks.h: Tweak.
431         * testsuite/testsuite_io.h (constraint_filebuf): New.
432         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
433         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
434         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
435         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
436         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
437         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
438         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
439         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
440         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
441         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
442         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
443         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
444         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
445         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
446         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
447         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
448         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
449         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
450         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
451         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
452         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
453         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
454         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
455         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
456         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
457         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
458         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
459         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
460         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
461         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
462         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
463         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
464         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
465         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
466         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
467         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
468         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
469         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
470         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
471         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
472         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
473         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
474         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
475         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
476         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
477         * testsuite/data/sgetc.txt: New.
478         * testsuite/data/sgetn.txt: New.
479
480 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
481
482         PR libstdc++/11095
483         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
484         Deal with width() smaller than zero.
485         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
486         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
487         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
488         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
489         operator<<(basic_ostream, const basic_string&)): Likewise.
490
491         * testsuite/27_io/basic_istream/extractors_character/char/
492         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
493         * testsuite/27_io/basic_ostream/inserters_character/char/
494         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
495         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
496         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
497
498 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
499
500         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
501         .gch compilation works.
502         * aclocal.m4, configure: Regenerate.
503         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
504         initialize PCHFLAGS.
505
506 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
507
508         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
509         erase(iterator), erase(iterator, iterator), c_str,
510         compare(const basic_string&)): Constify various variables.
511         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
512         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
513         _S_create, resize, _M_replace, _M_replace_safe,
514         append(const basic_string&), append(const basic_string&, size_type,
515         size_type), append(const _CharT*, size_type), append(size_type,
516         _CharT), operator+(const _CharT*, const basic_string&),
517         operator+(_CharT, const basic_string&), replace(iterator, iterator,
518         size_type, _CharT), find(const _CharT*, size_type, size_type),
519         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
520         rfind(_CharT, size_type), compare(size_type, size_type,
521         const basic_string&), compare(size_type, size_type,
522         const basic_string&, size_type, size_type), compare(const _CharT*),
523         compare(size_type, size_type, const _CharT*), compare(size_type,
524         size_type, const _CharT*, size_type)): Likewise.
525
526 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
527
528         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
529         'if' branch less obscure.
530
531 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
532
533         PR libstdc++/9815
534         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
535         asm case to asm.
536         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
537         (__atomic_add): likewise.
538
539 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
540
541         * include/bits/sstream.tcc (pbackfail): Minor clean up and
542         reformatting, consistent with basic_filebuf::pbackfail.
543
544 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
545
546         PR libstdc++/11062
547         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
548         __attribute__ ((__unused__)).
549         * config/os/aix/atomicity.h:  Likewise.
550
551 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
552
553         PR libstdc++/9761
554         * include/bits/fstream.tcc (pbackfail): If the pback buffer
555         is already active don't try to store in it a second char.
556         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
557
558         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
559
560 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
561
562         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
563         line spacing.
564
565 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
566
567         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
568         instead of unnecessarily taking the address of _M_pback.
569         (xsgetn): Simplify slightly for a single char pback buffer.
570
571 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
572
573         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
574         variables and two 'if', clean up.
575
576 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
577
578         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
579         not _M_out_end, since the former actually points to the string
580         end (vs buffer end).
581         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
582
583 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
584
585         * docs/doxygen/filter:  New file.
586         * docs/doxygen/filter.sed:  New file.
587         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
588         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
589         * docs/html/documentation.html:  Fix links to doxygen pages.
590
591 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
592
593         * include/bits/fstream.tcc (_M_convert_to_external): Don't
594         check for __ilen > 0.
595
596 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
597
598         PR libstdc++/10783
599         * include/bits/stl_iterator.h (class __normal_iterator):
600         Don't inherit from iterator, add missing typedefs.
601
602 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
603
604         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
605         * testsuite/24_iterators/reverse_iterator/1.cc: New.
606         * testsuite/24_iterators/reverse_iterator/2.cc: New.
607         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
608         PR libstdc++/10783.
609
610 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
611
612         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
613         on IA64 HP-UX.
614         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
615         _LIBUNWIND_STD_ABI is set.
616
617 2003-05-26  Brendan Kehoe  <brendan@zen.org>
618
619         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
620         make sure the number of digits required after the decimal-point
621         (if any) is exactly the value returned by frac_digits().
622         * testsuite/22_locale/money_get/get/char/9.cc: New.
623         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
624
625 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
626
627         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
628         comment.
629
630 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
631
632         PR libstdc++/9339
633         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
634         (_M_pback): No array necessary.
635         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
636         unbuffered case, coalesec into ...
637         (basic_filebuf::overflow): ...this.
638         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
639         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
640
641 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
642
643         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
644         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
645         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
646         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
647         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
648         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
649         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
650         libsupc++/eh_unex_handler.cc, libsupc++/exception,
651         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
652         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
653         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
654         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
655         Replace "GNU CC" with "GCC".
656
657         * include/backward/new.h: Replace "GNU CC" with "GCC".
658
659 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
660
661         PR libstdc++/3066.
662         * configure.in: Switch target to host, don't assume newlib.
663         (target_alias): Remove.
664         * configure: Regenerate.
665         * acinclude.m4: Same.
666         * aclocal.m4: Regenerate.
667         * configure.target: Same. Rename to...
668         * configure.host: This.
669
670 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
671
672         * include/std/std_fstream.h (_S_pback_size): Remove definition.
673         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
674         pback buffer.
675         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
676         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
677         of _S_pback_size for systems with no COMDAT or weak support.
678         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
679         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
680         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
681         * testsuite/27_io/basic_fstream/3.cc: Likewise.
682         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
683         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
684         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
685         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
686         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
687
688 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
689
690         * include/bits/fstream.tcc (_M_underflow): Simplify:
691         !__testout implies _M_filepos == _M_in_end, therefore
692         the first _M_file.seekoff call is never issued.
693
694 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
695
696         * configure.in: Sort cross table.
697         * configure: Regenerate.
698
699 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
700
701         PR libstdc++/10106
702         * configure.in: Add Solaris cross bits.
703
704 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
705
706         * libstdc++-v3/config/os/mingw32/os_defines.h
707         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
708         (NOMINMAX): Define.  Update copyright year.
709
710 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
711
712         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
713
714 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
715
716         * docs/html/faq/index.html: Fix typo.
717         * docs/html/faq/index.txt: Regenerate.
718
719 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
720
721         * docs/html/test.html: Fix markup.
722
723 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
724
725         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
726         zero.
727         Update copyright year.
728
729 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
730
731         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
732
733 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
734
735         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
736         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
737
738 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
739
740         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
741         Cast via void* to avoid -Wcast-align warnings.
742         (__default_alloc_template::_S_refill): Likewise.
743
744 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
745
746         * testsuite/README: Move to...
747         * docs/html/test.html: ...here. Add documentation.
748         * docs/html/install.html: Move testing bits out..
749         * docs/html/documentation.html: Add separate testing link.
750         * testsuite/performance: Add.
751         * testsuite/performance/allocator.cc: New.
752         * testsuite/performance/complex_norm.cc: New.
753         * testsuite/performance/cout_insert_int.cc: New.
754         * testsuite/performance/fstream_seek_write.cc: New.
755         * testsuite/performance/ifstream_getline.cc: New.
756         * testsuite/performance/map_create_fill.cc: New.
757         * testsuite/performance/ofstream_insert_float.cc: New.
758         * testsuite/performance/ofstream_insert_int.cc: New.
759         * testsuite/performance/string_append.cc: New.
760         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
761         performance tests.
762
763 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
764
765         PR libstdc++/10689
766         * include/std/std_complex.h (pow): Tidy.
767
768 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
769
770         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
771         that upon filebuf::close() 27.8.1.1,3 is enforced.
772
773 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
774
775         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
776
777 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
778             Nathan Myers  <ncm@cantrip.org>
779
780         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
781         _M_convert_to_external only once (_M_buf_size is now the size of
782         the put area + 1 for the overflow char of a full area); call
783         _M_set_buffer instead of _M_set_indeterminate.
784         (setbuf): Don't accept a buffer smaller than 2 chars.
785         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
786         instead of _M_set_determinate.
787         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
788         (seekoff): Likewise.
789         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
790         std::ios_base::openmode, bool, size_t),
791         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
792         Likewise.
793         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
794         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
795         _M_buf_size - 1.
796         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
797         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
798         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
799         the put area is now BUFSIZ - 1.
800         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
801         that now the smallest _M_buf_size is 2 (still fails, for the same
802         reason, with 3.2.3)
803
804 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
805
806         * testsuite/thread/pthread4.cc: Tweak test.
807
808 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
809
810         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
811         excess errors dg marker, use dg-errors instead.
812         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
813         * testsuite/20_util/auto_ptr_neg.cc: Same.
814
815 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
816
817         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
818         cached member.
819         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
820         Initialize _M_codecvt.
821         (basic_filebuf::imbue): Same.
822         (basic_filebuf::showmanyc): Use it.
823         (basic_filebuf::underflow): Use it.
824         (basic_filebuf::_M_convert_to_external): Use it.
825         (basic_filebuf::seekoff): Use it.
826         (basic_filebuf::imbue): Use it, tweaks.
827         * include/bits/localefwd.h (__check_facet): New.
828         * include/bits/locale_classes.h: Tweaks.
829         * include/bits/locale_facets.tcc: Tweaks.
830         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
831         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
832         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
833         * include/bits/basic_ios.tcc: Same.
834         * include/bits/istream.tcc: Same.
835         * include/bits/ostream.tcc: Same.
836         * include/std/std_streambuf.h: Same.
837         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
838         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
839         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
840         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
841         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
842         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
843
844 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
845
846         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
847         unnecessary includes and unused string literals.
848         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
849         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
850         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
851         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
852
853 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
854
855         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
856
857 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
858
859         * include/std/std_fstream.h (_M_convert_to_external): Change
860         to return bool, take two less streamsize parameters.
861         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
862         consistently definition.
863         (_M_overflow): Adjust call points.
864
865 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
866
867         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
868
869 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
870
871         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
872         * testsuite/Makefile.in:  Regenerate.
873
874 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
875
876         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
877         * testsuite/Makefile.in:  Regenerate.
878
879 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
880
881         PR libstdc++/3181
882         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
883         (acos): Handle integer argument.
884         (asin): Likewise.
885         (atan): Likewise.
886         (atan2): Likewise.
887         (ceil): Likewise.
888         (cos): Likewise.
889         (cosh): Likewise.
890         (exp): Likewise.
891         (fabs): Likewise.
892         (floor): Likewise.
893         (frexp): Likewise.
894         (ldexp): Likewise.
895         (log): Likewise.
896         (log10): Likewise.
897         (sin): Likewise.
898         (sinh): Likewise.
899         (sqrt): Likewise.
900         (tan): Likewise.
901         (tanh): Likewise.
902         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
903         (__enable_if): Likewise.
904         * testsuite/26_numerics/cmath/overloads.C: New test.
905
906 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
907
908         PR libstdc++/9027
909         PR libstdc++/9520
910         PR libstdc++/10096
911         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
912         implementation, based on old wchar_t specialization, add support
913         for codecvt::in() return value of codecvt_base::noconv, remove
914         _M_file.sys_ungetc() call.
915         * include/std/std_fstream.h (basic_file::underflow,
916         basic_file::uflow, basic_file::_M_underflow):  Remove
917         specialization declarations, call _M_underflow from generic versions
918         of underflow and uflow.
919         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
920         basic_file::_M_underflow):  Remove specializations.
921         * src/Makefile.am (sources):  Remove fstream.cc.
922         * src/Makefile.in:  Regenerated.
923         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
924         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
925         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
926         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
927
928 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
929
930         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
931         buffer.
932         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
933         unbuffered bits.
934         (__basic_file::xsputn): Same.
935         (__basic_file::seekoff): Same.
936         (__basic_file::seekpos): Same.
937         (__basic_file::showmanyc): Same.
938         * config/io/basic_file_stdio.cc: Same.
939         * include/std/std_fstream.h: Same.
940         * include/bits/fstream.tcc: Same.
941         * src/fstream.cc: Same.
942         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
943
944 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
945
946         PR libstdc++/9520
947         PR libstdc++/9661
948         PR libstdc++/9662
949         * include/ext/stdio_sync_filebuf.h:  New file.
950         (basic_stdiobuf):  New.
951         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
952         * include/Makefile.in: Regenerate.
953         * include/bits/ios_base.h (Init::_S_create_buffers,
954         Init::_S_destroy_buffers):  Remove declarations.
955         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
956         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
957         * src/ios.cc (Init::_S_create_buffers,
958         Init::_S_destroy_buffers):  Remove.
959         (Init::Init):  Create and use syncronized buffers.
960         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
961         create and install unsyncronized buffers.
962         * testsuite/27_io/objects/char/10.cc:  New test.
963         * testsuite/27_io/objects/char/9.cc:  New test.
964         * testsuite/27_io/objects/char/9661-1.cc:  New test.
965         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
966         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
967         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
968         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
969         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
970         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
971         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
972         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
973         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
974         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
975         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
976         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
977         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
978         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
979         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
980         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
981         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
982         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
983         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
984         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
985         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
986         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
987         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
988         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
989         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
990         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
991         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
992         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
993         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
994         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
995         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
996         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
997         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
998         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
999         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
1000         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
1001         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
1002         * testsuite/ext/stdiobuf_char.cc:  New test.
1003         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
1004
1005 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
1006
1007         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
1008         unnecessary includes and unused string literals.
1009         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
1010
1011 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
1012
1013         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
1014
1015 2003-05-07  Richard Henderson  <rth@redhat.com>
1016
1017         PR c++/10570
1018         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
1019         (__cxa_end_catch): Likewise.
1020         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
1021         _Unwind_Resume_or_Rethrow.
1022         * libsupc++/eh_personality.cc (empty_exception_spec): New.
1023         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
1024         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
1025         exceptions.  Don't push terminate/unexpected to cxa functions.
1026         (__cxa_call_unexpected): Remove foreign exception fixmes.
1027
1028 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
1029
1030         * testsuite/27_io/ios_base/cons: New.
1031         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
1032         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
1033
1034 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
1035
1036         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
1037         * src/fstream.cc
1038         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
1039         there is no buffer or __testget == !__testinit.
1040
1041         * src/fstream.cc
1042         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
1043         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
1044
1045         * include/std/std_fstream.h (_M_destroy_pback): Don't set
1046         unnecessarily _M_pback_cur_save and _M_pback_end_save.
1047
1048         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
1049
1050         * include/std/std_sstream.h (_M_sync): Minor tweak.
1051
1052         * include/bits/fstream.tcc (close): No need to call
1053         _M_destroy_pback, setting _M_pback_init to false suffices
1054         to clean up.
1055
1056 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
1057
1058         * include/bits/stl_algo.h: Enums as _S_.
1059         * include/bits/stl_tree.h: Same.
1060         * include/bits/stl_bvector.h: Same.
1061         * include/bits/ios_base.h: Same.
1062         * include/bits/stl_alloc.h: Same.
1063         * include/ext/stl_hashtable.h: Same.
1064         * src/ios.cc: And here.
1065
1066         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
1067         * include/bits/sstream.tcc: Same.
1068
1069         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
1070
1071         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
1072
1073         * include/bits/locale_facets.h (__num_base): Remove protected.
1074         Use _S_[io]* names for enumerations.
1075         (_S_format_int): Remove.
1076         * include/bits/locale_facets.tcc: Same.
1077         * src/locale.cc: Same.
1078
1079         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
1080
1081 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
1082
1083         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
1084         * docs/html/faq/index.txt:  Regenerated.
1085
1086 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
1087             Matt Kraai <kraai@alumni.cmu.edu>
1088
1089         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
1090         And retweak.
1091
1092 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
1093
1094         * configure.target (mips*): Use the generic atomicity.h by default.
1095
1096 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
1097             (Inspired by an alternate patch from Danny Smith.)
1098
1099         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
1100         (_Swap_lock_struct<>): ...and the horse it rode in on.
1101         * src/globals.cc (_Swap_lock_struct<>): Likewise.
1102         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
1103         member to support...
1104         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
1105         visibility rules related to POSIX threads.
1106         * testsuite/thread/pthread7-rope.cc: New test.
1107
1108 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
1109
1110         * testsuite/21_strings/basic_string/find/char/3.cc: New
1111         file, testing basic_string<char>::find_first_not_of.
1112         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
1113         Likewise for basic_string<wchar_t>.
1114
1115 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
1116
1117         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
1118
1119 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
1120
1121         * include/Makefile.am (CLEANFILES): Remove PCH files in target
1122         directory.
1123         * include/Makefile.in: Regenerate.
1124
1125 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
1126
1127         * include/std/std_sstream.h (str()): Tidy.
1128
1129 2003-05-02  Nathan Myers  <ncm@cantrip.org>
1130             Paolo Carlini  <pcarlini@unitus.it>
1131
1132         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
1133
1134 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
1135
1136         * include/bits/basic_string.h (swap): Remove redundant template
1137         parameters from declaration of non-template member function.
1138
1139 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
1140
1141         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
1142         * configure.in:  Move libintl.h header test...
1143         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
1144         the NLS-related test results into one symbol.
1145         * src/functexcept.cc:  Use it here.
1146         * aclocal.m4, config.h.in, configure:  Regenerated.
1147
1148 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1149
1150         * include/bits/sstream.tcc (overflow): Instead of calling
1151         str(), then _M_string.reserve, thus copying the contents
1152         of the current buffer two times, just copy the latter in
1153         a temporary, then use the 'swap trick'.
1154
1155 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1156
1157         * include/std/std_sstream.h (str()): Revert the best of the
1158         previous 'improvement', incorrect due to the COW nature of
1159         v3 basic_string; simplify.
1160
1161 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1162
1163         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
1164         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
1165
1166 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
1167
1168         * testsuite/abi_check.cc (check_version): Update known versions.
1169         Check added symbols for version_name != base version. Add missing
1170         symbols to incompatible list.
1171
1172 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
1173
1174         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
1175         * aclocal.m4: Regenerated.
1176         * configure: Regenerated.
1177
1178 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1179
1180         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
1181         Const-ify some variables.
1182         (basic_streambuf::xsputn): Likewise; change the type of some
1183         variables to size_t.
1184         (__copy_streambufs): Change some variables to size_t.
1185
1186 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1187
1188         * include/std/std_sstream.h (str()): Avoid constructing
1189         a basic_string temporary not only when it would turn out
1190         to be zero-sized but also when identical to the current
1191         _M_string buffer.
1192
1193 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1194
1195         * include/ext/stdio_filebuf.h
1196         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
1197         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
1198         Shorten a bit (-10 lines) by factoring out some code.
1199
1200 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
1201
1202         * acinclude.m4:  Add bit missing from previous patch.
1203         * aclocal.m4, configure:  Regenerated.
1204
1205 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
1206
1207         * docs/doxygen/mainpage.html:  Bring up to date.
1208         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
1209         in Doxygen.
1210         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
1211         breaks everything.  Don't scan them.
1212         * docs/html/documentation.html:  Point to "Write after approval"
1213         notes.
1214
1215 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
1216
1217         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
1218         of libc if message translations are being used.  Fix info text in
1219         xieee_1003.1-2001 case.
1220         * aclocal.m4, configure:  Regenerate.
1221
1222 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
1223            Loren J. Rittle <ljrittle@acm.org>
1224            Martin v. Loewis  <martin@v.loewis.de>
1225
1226         * config/cpu/i386/atomicity.h: New file.
1227
1228 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
1229
1230         * include/bits/fstream.tcc (open): Change to single return.
1231
1232 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
1233
1234         * include/std/std_sstream.h (underflow): Change to single return.
1235
1236 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1237
1238         * include/std/std_streambuf.h (_M_buf): is currently
1239         used only for basic_filebuf, therefore move it there.
1240         (basic_streambuf(), ~basic_streambuf()): Adjust.
1241         * include/std/std_fstream.h (_M_buf): Moved here.
1242         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
1243         is actually redundant for basic_stringbuf.
1244         (_M_really_sync): Likewise.
1245         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
1246         * include/bits/sstream.tcc (seekoff): Adjust.
1247
1248 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1249
1250         * src/localename.cc: Standardize exception strings.
1251         * src/locale.cc: Same.
1252         * src/ios.cc: Same.
1253         * include/bits/basic_string.tcc: Same.
1254         * include/bits/basic_ios.tcc: Same.
1255         * include/std/std_bitset.h: Same.
1256         * include/ext/ropeimpl.h: Same.
1257         * include/bits/stl_vector.h: Same.
1258         * include/bits/stl_deque.h: Same.
1259         * include/bits/stl_bvector.h: Same.
1260         * config/locale/generic/c_locale.cc: Same.
1261         * config/locale/gnu/c_locale.cc: Same.
1262         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
1263
1264         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
1265
1266 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1267
1268         * include/std/std_streambuf.h (_M_buf_size): is currently
1269         used only for basic_filebuf, therefore move it there.
1270         (basic_streambuf(), ~basic_streambuf()): Adjust.
1271         * include/std/std_fstream.h (_M_buf_size): Moved here.
1272         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
1273
1274 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1275
1276         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
1277         _M_buf_size (synced input is now correctly dealt with
1278         elsewhere); when the output buffer is full don't fall back
1279         to a snextc-sputc loop, call overflow instead.
1280
1281 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1282
1283         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
1284         the innermost 'if' by factoring out some code.
1285
1286 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
1287
1288         * configure.in:  Test for libintl.h.
1289         * include/bits/c++config:  Define __N for everybody.
1290         * include/bits/basic_string.h, include/bits/stl_bvector.h,
1291         include/bits/stl_deque.h, include/bits/stl_vector.h,
1292         include/std/std_bitset.h:  Wrap all __throw* text with __N.
1293         * po/Makefile.am (pot):  New rule, mostly working.
1294         * src/functexcept.cc:  Call gettext on all __throw* arguments when
1295         -fexceptions is in effect.
1296         * po/Makefile.in, config.h.in, configure:  Regenerate.
1297
1298 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
1299
1300         PR libstdc++/9523
1301         * include/bits/ios_base.h (Init::_S_ios_create,
1302         Init::_S_ios_destroy):  Remove declarations.
1303         (Init::_S_create_buffers,
1304         Init::_S_destroy_buffers):  Declare
1305         * src/ios.cc (Init::_S_ios_create):  Remove
1306         (Init::_S_create_buffers):  Create buffers and add to streams.
1307         (Init::_S_ios_destroy):  Rename to...
1308         (Init::_S_destroy_buffers):  this.
1309         (Init::Init):  Only construct streams once.
1310         (Init::~Init):  Flush streams, don't destroy them.
1311         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
1312         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
1313         * testsuite/27_io/objects/char/5.cc:  New test.
1314         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
1315         * testsuite/27_io/objects/char/6.cc:  New test.
1316         * testsuite/27_io/objects/char/7.cc:  New test.
1317
1318 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1319
1320         * testsuite/27_io/objects/char/8.cc:  New test.
1321
1322 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1323
1324         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
1325         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
1326
1327 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
1328
1329         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
1330         _M_destroy_pback. _M_pback_create to
1331         _M_create_pback. _M_underflow_common to
1332         _M_underflow. _M_really_overflow to _M_overflow.
1333         * include/bits/fstream.tcc: Same.
1334         * src/fstream.cc: Same.
1335         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
1336         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
1337         * include/bits/streambuf.tcc: Same.
1338         * include/bits/fstream.tcc: Same.
1339         * include/bits/sstream.tcc: Same.
1340
1341 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
1342
1343         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
1344         from fixed size array.
1345         (locale): Change _S_categories as well.
1346         Formatting tweaks.
1347         * include/bits/locale_facets.tcc: Tweak.
1348         * config/locale/gnu/c_locale.cc: Assign _S_categories.
1349         * config/locale/generic/c_locale.cc: Same.
1350         * src/locale.cc: Tweak.
1351         * src/globals.cc: Change facet_name to name_vec, add names_c.
1352         * src/localename.cc: Use them.
1353         (locale::_Impl::~_Impl): Destroy _M_names.
1354         (locale::_Impl::_Impl): Create _M_names.
1355
1356 2003-04-27  Andreas Schwab  <schwab@suse.de>
1357
1358         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1359         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
1360
1361 2003-04-27  Nathan Myers  <ncm@cantrip.org>
1362
1363         Move some basic_string members out of line because
1364         they are too big to reasonably be inline.
1365         * include/bits/basic_string.h
1366         (assign(const basic_string&, size_type, size_type),
1367         assign(const _CharT*, size_type),
1368         insert(size_type, const basic_string&, size_type, size_type),
1369         insert(size_type, const _CharT*, size_type),
1370         replace(size_type, size_type, const _CharT*, size_type)):
1371         Move from here to...
1372         * include/bits/basic_string.tcc: ...here.
1373
1374 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1375
1376         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
1377         the innermost 'if' by factoring out some code.
1378
1379 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1380
1381         * include/bits/streambuf.tcc (__copy_streambufs): Don't
1382         use in_avail(), simplify.
1383
1384 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1385
1386         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
1387         in basic_stringbuf it's unused.
1388
1389         * include/std/std_sstream.h (underflow): consistently use
1390         _M_in_cur, not gptr().
1391
1392 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
1393             Phil Edwards  <pme@gcc.gnu.org>
1394
1395         * testsuite_flags.in: Guard against the possibility
1396         of having "xgcc" as a part of a folder name in the
1397         path to the GCC build folder.
1398         * testsuite/Makefile.am: Likewise.
1399         * testsuite/Makefile.in: Regenerated.
1400
1401 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
1402
1403         PR libstdc++/10132
1404         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
1405         exception specifications.
1406         (basic_filebuf::close): Same.
1407         (basic_filebuf::_M_pback_destroy): Same.
1408         (basic_filebuf::_M_destroy_internal_buffer): Same.
1409         (basic_filebuf): Remove __res_type typedef.
1410         * src/fstream.cc: Same.
1411         * include/bits/fstream.tcc
1412         (basic_filebuf::_M_convert_to_external): Simplify.
1413         (basic_filebuf::seekoff): Use has_facet before use_facet.
1414         (basic_filebuf::close): Add exception specification of throw().
1415         * testsuite/27_io/basic_filebuf/cons: New.
1416         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
1417         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
1418         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
1419         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
1420
1421 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
1422
1423         * include/bits/locale_classes.h
1424         (locale::_S_extra_categories_size): Remove.
1425         * src/locale.cc: Remove _S_extra_categories_size.
1426         * src/localename.cc: Same.
1427         * config/locale/gnu/c_locale.cc: Same.
1428         * config/locale/generic/c_locale.cc: Same.
1429
1430 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
1431
1432         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
1433
1434 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
1435
1436         * docs/html/17_intro/howto.html:  Update some links.
1437         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
1438         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
1439         * docs/html/ext/howto.html:  Link to demangler notes and API.
1440         * docs/html/faq/index.html:  Remove trailing whitespace.
1441         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
1442         (5.6):  Change to a bulleted list.
1443
1444         * docs/html/faq/index.txt, docs/html/documentation.html,
1445         docs/html/17_intro/porting.html:  Regenerate.
1446
1447 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
1448
1449         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
1450         belongs to basic_filebuf.
1451         * testsuite/27_io/basic_fstream/3.cc: Likewise.
1452         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1453         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
1454         instantiation (now belongs to basic_filebuf).
1455         * testsuite/27_io/basic_iostream/3.cc: Likewise.
1456         * testsuite/27_io/basic_istream/3.cc: Likewise.
1457         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
1458         _S_pback_size now belongs to basic_filebuf.
1459         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
1460         instantiation (now belongs to basic_filebuf).
1461         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
1462         belongs to basic_filebuf.
1463         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
1464         instantiation (now belongs to basic_filebuf).
1465         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
1466         _S_pback_size now belongs to basic_filebuf.
1467         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
1468         instantiation (now belongs to basic_filebuf).
1469         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
1470         to basic_filebuf.
1471         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
1472         instantiation (now belongs to basic_filebuf).
1473         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
1474
1475 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
1476
1477         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
1478         * configure: Regenerated.
1479
1480 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
1481
1482         * config/locale/generic/c_locale.h (__convert_from_v): Use
1483         attribute unused.
1484
1485 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
1486
1487         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
1488         implementation only.
1489         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
1490         Comment and change to comply with DR 60 and the effect on gcount().
1491         * include/std/std_istream.h:  Update comments.
1492         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
1493         comments about reasons for tests.  Test sync() against gcount().
1494         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
1495         for effect on gcount().
1496         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
1497         for effect on gcount().
1498
1499 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
1500
1501         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
1502         Adjust timing.
1503
1504 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
1505
1506         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
1507         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
1508         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
1509         (basic_streambuf::basic_streambuf()): Adjust.
1510         * include/std/std_fstream.h (_S_pback_size, _M_pback,
1511         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
1512         _M_pback_create(), _M_pback_destroy()): Moved here
1513         from basic_streambuf.
1514         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
1515         Adjust.
1516         (basic_filebuf::_S_pback_size): Add declaration.
1517         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
1518         Remove declaration.
1519
1520 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1521
1522         Consistently use _M_in_beg instead of eback(), _M_in_cur
1523         instead of gptr(), and so on.
1524         * include/bits/fstream.tcc (pbackfail, imbue): Here.
1525         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
1526         * include/bits/streambuf.tcc (sbumpc, sputbackc,
1527         __copy_streambufs): Ditto.
1528         * include/std/std_streambuf.h (sgetc): Ditto.
1529
1530 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1531
1532         * include/bits/sstream.tcc (pbackfail, overflow):
1533         Formatting fixes.
1534
1535 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1536
1537         * include/std/std_streambuf.h (uflow()): It's used only by
1538         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
1539         therefore do not consider the _M_buf_unified == true case.
1540
1541         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
1542
1543 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
1544
1545         * docs/html/ext/howto.html ('LWG Issues'):
1546         Add issues 19, 90, 171, 231, 271.
1547
1548 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
1549
1550         * include/bits/sstream.tcc (pbackfail): Remove redundant
1551         NULL pointer check from test involving _M_in_*.
1552         (overflow, seekoff, seekpos): Const qualify bool variables.
1553         * include/std/std_sstream.h (underflow): Remove redundant
1554         NULL pointer check from test involving _M_in_*.
1555         (_M_really_sync): Const qualify bool variables.
1556         * src/fstream.cc (_M_underflow_common): Remove redundant
1557         NULL pointer check from test involving _M_in_*, const qualify
1558         bool variables.
1559
1560         * include/std/std_streambuf.h (sgetc): Remove redundant
1561         variable.
1562
1563 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
1564
1565         According to 5.9 para 2 (second bullet) for pointers p, q
1566         pointing to the same type, with  p == 0 and q == 0, (p < q)
1567         is false.
1568         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
1569         seekoff): Remove redundant NULL pointer checks from tests
1570         involving _M_out_* and _M_in_*, const qualify bool variables.
1571         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
1572         qualify bool variables.
1573         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
1574         Remove redundant NULL pointer checks from tests involving
1575         _M_out_* and _M_in_*, const qualify bool variables.
1576         * include/std/std_fstream.h (sync): Likewise.
1577         (_M_is_indeterminate): Const qualify bool variables.
1578         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
1579         NULL pointer checks from tests involving _M_out_* and _M_in_*,
1580         const qualify bool variables.
1581         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
1582         variables.
1583
1584 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
1585
1586         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
1587         C99 FP macros, if actually captured.
1588
1589         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
1590         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
1591         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
1592         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
1593         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
1594         New macro.
1595         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
1596         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
1597         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
1598         * include/c_std/std_cstdlib.h: Use new macros.
1599         * include/c_std/std_cstdio.h: Use new macros.
1600         * include/c_std/std_cwchar.h: Use new macros.
1601
1602 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
1603
1604         PR libstdc++/9555
1605         * include/bits/ostream.tcc: Catch all exceptions for formatted
1606         output, instead of std::exception and derivatives.
1607         * include/bits/istream.tcc: Same.
1608         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
1609         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
1610         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
1611         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
1612         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1613         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
1614         New.
1615
1616 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
1617
1618         * include/bits/c++config:  Minor cosmetic tweaks.
1619
1620 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
1621
1622         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
1623         * include/Makefile.am (pch_input): Find in ${target_builddir}.
1624         (pch_output): Rename to...
1625         (pch_output_builddir): ..this.  Find in ${target_builddir}.
1626         (pch_source): Tweak.
1627         (pch_build): Key off a built file.
1628         (pch_output rule): Rename to...
1629         (pch_input rule): ...this.  Produce ${pch_output_builddir}
1630         instead of ${pch_output}.
1631         (install-pch rule): Install ${pch_output_builddir}.
1632         * include/Makefile.in: Regenerated.
1633
1634 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
1635
1636         * include/std/std_streambuf.h (setp): _M_out_lim, being
1637         the end limit of used put area, is set equal to _M_out_beg.
1638
1639 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
1640
1641         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
1642         * aclocal.m4: Regenerated.
1643         * configure.in: Remove old demangler bits.
1644         Call pch checks.
1645         * configure: Regenerate.
1646         * config.h.in: Regenerate.
1647         * include/Makefile.am (allstamps): Now allstamped.
1648         (allcreated): Define this.
1649         (all-local): Use 'em.
1650         Conditionally define pch_build, pch_install based on
1651         GLIBCPP_BUILD_PCH.
1652         (${pch_output}): New rule.
1653         (install-pch): New rule.
1654         (install-headers): New rule.
1655         (install-data-local): Install headers and conditionally pch.
1656         * include/Makefile.in: Regenerate.
1657         * testsuite_flags.in (--build-cxx): Use pch file.
1658
1659 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
1660
1661         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
1662
1663 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
1664             Paolo Carlini  <pcarlini at unitus dot it>
1665
1666         PR libstdc++/9423
1667         * docs/html/27_io/howto.html
1668         ('The buffering is screwing up my program!'): Explain that
1669         opening counts as an I/O operation.
1670
1671 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
1672
1673         * testsuite/thread/pthread1.cc: Enable for darwin test.
1674         * testsuite/thread/pthread2.cc: Same.
1675         * testsuite/thread/pthread3.cc: Same.
1676         * testsuite/thread/pthread4.cc: Same.
1677         * testsuite/thread/pthread5.cc: Same.
1678         * testsuite/thread/pthread6.cc: Same.
1679
1680 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
1681
1682         libstdc++/7680
1683         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
1684         Populate it with multiple legal ways to obtain the C99 float
1685         transcendentals.  Use them instead of direct global reference.
1686         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
1687         * docs/html/17_intro/porting.texi
1688         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
1689         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
1690         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
1691         * config/os/bsd/freebsd/os_defines.h
1692         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
1693         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
1694         * testsuite/26_numerics/c_math_dynamic.cc: New file.
1695
1696 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
1697             Benjamin Kosnik  <bkoz@redhat.com>
1698
1699         * config/os/generic/ctype_inline.h: Fix.
1700
1701 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
1702
1703         * testsuite/testsuite_hooks.h
1704         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
1705         Change to try_named_locale.
1706         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
1707
1708         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
1709         try_named_locale.
1710         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
1711         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
1712         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
1713         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
1714         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
1715         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
1716         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
1717         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
1718         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
1719         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
1720         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
1721         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
1722         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
1723         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
1724         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
1725         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
1726         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
1727         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
1728         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
1729         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
1730         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
1731         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
1732         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
1733         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
1734         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
1735         * testsuite/22_locale/collate/compare/char/1.cc: Same.
1736         * testsuite/22_locale/collate/compare/char/2.cc: Same.
1737         * testsuite/22_locale/collate/compare/char/3.cc: Same.
1738         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
1739         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
1740         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
1741         * testsuite/22_locale/collate/hash/char/2.cc: Same.
1742         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
1743         * testsuite/22_locale/collate/transform/char/2.cc: Same.
1744         * testsuite/22_locale/collate/transform/char/3.cc: Same.
1745         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
1746         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
1747         * testsuite/22_locale/collate_byname/1.cc: Same.
1748         * testsuite/22_locale/ctype/is/char/2.cc: Same.
1749         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1750         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
1751         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
1752         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
1753         * testsuite/22_locale/facet/2.cc: Same.
1754         * testsuite/22_locale/locale/cons/2.cc: Same.
1755         * testsuite/22_locale/locale/cons/4.cc: Same.
1756         * testsuite/22_locale/locale/cons/5.cc: Same.
1757         * testsuite/22_locale/locale/cons/7.cc: Same.
1758         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
1759         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
1760         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
1761         * testsuite/22_locale/messages/members/char/1.cc: Same.
1762         * testsuite/22_locale/messages/members/char/2.cc: Same.
1763         * testsuite/22_locale/messages/members/char/3.cc: Same.
1764         * testsuite/22_locale/messages_byname/1.cc: Same.
1765         * testsuite/22_locale/money_get/get/char/1.cc: Same.
1766         * testsuite/22_locale/money_get/get/char/2.cc: Same.
1767         * testsuite/22_locale/money_get/get/char/3.cc: Same.
1768         * testsuite/22_locale/money_get/get/char/4.cc: Same.
1769         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
1770         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
1771         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
1772         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
1773         * testsuite/22_locale/money_put/put/char/1.cc: Same.
1774         * testsuite/22_locale/money_put/put/char/2.cc: Same.
1775         * testsuite/22_locale/money_put/put/char/3.cc: Same.
1776         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
1777         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
1778         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
1779         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
1780         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
1781         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
1782         * testsuite/22_locale/num_get/get/char/1.cc: Same.
1783         * testsuite/22_locale/num_get/get/char/2.cc: Same.
1784         * testsuite/22_locale/num_get/get/char/3.cc: Same.
1785         * testsuite/22_locale/num_get/get/char/5.cc: Same.
1786         * testsuite/22_locale/num_get/get/char/6.cc: Same.
1787         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
1788         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
1789         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
1790         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
1791         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
1792         * testsuite/22_locale/num_put/put/char/1.cc: Same.
1793         * testsuite/22_locale/num_put/put/char/2.cc: Same.
1794         * testsuite/22_locale/num_put/put/char/3.cc: Same.
1795         * testsuite/22_locale/num_put/put/char/5.cc: Same.
1796         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
1797         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
1798         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
1799         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
1800         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
1801         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
1802         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
1803         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
1804         * testsuite/22_locale/numpunct_byname/1.cc: Same.
1805         * testsuite/22_locale/numpunct_byname/2.cc: Same.
1806         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
1807         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
1808         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
1809         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
1810         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
1811         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
1812         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
1813         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
1814         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
1815         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
1816         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
1817         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
1818         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
1819         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
1820         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
1821         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
1822         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
1823         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
1824         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
1825         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
1826         * testsuite/22_locale/time_put/put/char/1.cc: Same.
1827         * testsuite/22_locale/time_put/put/char/2.cc: Same.
1828         * testsuite/22_locale/time_put/put/char/3.cc: Same.
1829         * testsuite/22_locale/time_put/put/char/4.cc: Same.
1830         * testsuite/22_locale/time_put/put/char/5.cc: Same.
1831         * testsuite/22_locale/time_put/put/char/6.cc: Same.
1832         * testsuite/22_locale/time_put/put/char/7.cc: Same.
1833         * testsuite/22_locale/time_put/put/char/8.cc: Same.
1834         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
1835         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
1836         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
1837         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
1838         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
1839         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
1840         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
1841         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
1842         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
1843         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
1844         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
1845         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
1846         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
1847
1848 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
1849
1850         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
1851         solaris includes, not generic.
1852
1853 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
1854
1855         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
1856
1857         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
1858         * include/bits/concept_check.h: Fix multi-line comment.
1859         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
1860         when target is *-*-freebsd*.
1861
1862 2003-04-14  Nathan Myers  <ncm@cantrip.org>
1863             Paolo Carlini  <pcarlini@unitus.it>
1864
1865         PR libstdc++/9701 (in_avail())
1866         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
1867         doesn't care if there is anything in some putback cell.
1868         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
1869
1870         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
1871         unused string literals.
1872
1873 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
1874
1875         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
1876         _M_out_end, _M_set_indeterminate() does it.
1877
1878 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1879
1880         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
1881
1882 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
1883
1884         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
1885         Change basic_streambuf instantiation to "unsigned char".
1886         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1887
1888 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
1889
1890         Remove _M_buf_size_opt, use directly _M_buf_size instead.
1891         * include/bits/fstream.tcc
1892         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
1893         references to _M_buf_size_opt.
1894         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
1895         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
1896         __bufsize to __in_avail and __size_opt to __buf_size.
1897         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
1898         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
1899         * include/std/std_streambuf.h (~basic_streambuf(),
1900         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
1901         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
1902         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
1903         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
1904         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
1905         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
1906         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
1907         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
1908         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
1909         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
1910         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
1911         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
1912         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
1913
1914 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
1915
1916         * include/ext/stdio_filebuf.h
1917         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
1918         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
1919         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
1920         since a stack-based buffer is used for small values of the size_t
1921         parameter.
1922         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
1923         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
1924         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
1925
1926 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
1927
1928         PR libstdc++/9533
1929         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
1930         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
1931
1932 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
1933
1934         * testsuite/22_locale/locale/cons/3.cc: Split.
1935         * testsuite/22_locale/locale/cons/7222-c.cc: New.
1936         * testsuite/22_locale/locale/cons/7222-env.cc: New.
1937         Check before trying to create a locale from the environment.
1938         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
1939         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1940         Adjust includes.
1941
1942 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
1943
1944         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
1945         locale to construct this hybrid locale, not the global locale.
1946
1947 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
1948
1949         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
1950         instantiation for AIX.
1951         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1952         * testsuite/25_algorithms/min_max.cc: Same.
1953
1954 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1955
1956         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
1957         twice.  Always set _M_cfile to 0 when stream was open.
1958
1959 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
1960
1961         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
1962         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
1963         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
1964         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
1965         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
1966         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
1967         ifstream_members.cc, instantiations.cc, ios.cc,
1968         ios_base_callbacks.cc, ios_base_members_static-1.tst,
1969         ios_base_members_static.cc, ios_base_storage.cc,
1970         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
1971         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
1972         iostream.cc, iostream_members.cc, istream.cc,
1973         istream_exception.cc, istream_extractor_char.cc,
1974         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
1975         istream_extractor_other-2.tst, istream_extractor_other.cc,
1976         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
1977         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
1978         istream_sentry.cc, istream_unformatted-1.tst,
1979         istream_unformatted-1.txt, istream_unformatted.cc,
1980         istringstream.cc, istringstream_members.cc,
1981         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
1982         ofstream_members.cc, ostream.cc, ostream_exception.cc,
1983         ostream_fail.cc, ostream_inserter_arith.cc,
1984         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
1985         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
1986         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
1987         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
1988         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
1989         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
1990         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
1991         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
1992         wide_stream_objects.cc, istream_extractor_arith/01.cc,
1993         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
1994         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
1995         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
1996         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
1997         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
1998         Split into...
1999         * 27_io/basic_filebuf/1.cc: New.
2000         * 27_io/basic_filebuf/2.cc: New.
2001         * 27_io/basic_filebuf/3.cc: New.
2002         * 27_io/basic_filebuf/4.cc: New.
2003         * 27_io/basic_filebuf/close/char/1.cc: New.
2004         * 27_io/basic_filebuf/close/char/2.cc: New.
2005         * 27_io/basic_filebuf/close/char/3.cc: New.
2006         * 27_io/basic_filebuf/close/char/4879.cc: New.
2007         * 27_io/basic_filebuf/close/char/9964.cc: New.
2008         * 27_io/basic_filebuf/imbue/char/1.cc: New.
2009         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
2010         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
2011         * 27_io/basic_filebuf/is_open/char/1.cc: New.
2012         * 27_io/basic_filebuf/open/char/1.cc: New.
2013         * 27_io/basic_filebuf/open/char/2.cc: New.
2014         * 27_io/basic_filebuf/open/char/3.cc: New.
2015         * 27_io/basic_filebuf/open/char/9507.cc: New.
2016         * 27_io/basic_filebuf/overflow/char/1.cc: New.
2017         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
2018         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
2019         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
2020         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
2021         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
2022         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
2023         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
2024         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
2025         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
2026         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
2027         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
2028         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
2029         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
2030         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
2031         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
2032         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
2033         * 27_io/basic_filebuf/snextc/char/1.cc: New.
2034         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
2035         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
2036         * 27_io/basic_filebuf/sputc/char/1.cc: New.
2037         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
2038         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
2039         * 27_io/basic_filebuf/sputn/char/1.cc: New.
2040         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
2041         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
2042         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
2043         * 27_io/basic_filebuf/sync/char/1057.cc: New.
2044         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
2045         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
2046         * 27_io/basic_fstream/1.cc: New.
2047         * 27_io/basic_fstream/2.cc: New.
2048         * 27_io/basic_fstream/3.cc: New.
2049         * 27_io/basic_fstream/4.cc: New.
2050         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
2051         * 27_io/basic_ifstream/1.cc: New.
2052         * 27_io/basic_ifstream/2.cc: New.
2053         * 27_io/basic_ifstream/3.cc: New.
2054         * 27_io/basic_ifstream/4.cc: New.
2055         * 27_io/basic_ifstream/cons/char/1.cc: New.
2056         * 27_io/basic_ifstream/open/char/1.cc: New.
2057         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
2058         * 27_io/basic_ios/1.cc: New.
2059         * 27_io/basic_ios/2.cc: New.
2060         * 27_io/basic_ios/3.cc: New.
2061         * 27_io/basic_ios/4.cc: New.
2062         * 27_io/basic_ios/clear/char/1.cc: New.
2063         * 27_io/basic_ios/cons/char/1.cc: New.
2064         * 27_io/basic_ios/cons/char/2.cc: New.
2065         * 27_io/basic_ios/cons/char/3.cc: New.
2066         * 27_io/basic_ios/copyfmt/char/1.cc: New.
2067         * 27_io/basic_ios/copyfmt/char/2.cc: New.
2068         * 27_io/basic_ios/exceptions/char/1.cc: New.
2069         * 27_io/basic_ios/locales/char/1.cc: New.
2070         * 27_io/basic_iostream/1.cc: New.
2071         * 27_io/basic_iostream/2.cc: New.
2072         * 27_io/basic_iostream/3.cc: New.
2073         * 27_io/basic_iostream/4.cc: New.
2074         * 27_io/basic_istream/1.cc: New.
2075         * 27_io/basic_istream/2.cc: New.
2076         * 27_io/basic_istream/3.cc: New.
2077         * 27_io/basic_istream/4.cc: New.
2078         * 27_io/basic_istream/exceptions/char/9561.cc: New.
2079         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
2080         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
2081         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
2082         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
2083         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
2084         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
2085         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
2086         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
2087         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
2088         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
2089         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
2090         * 27_io/basic_istream/extractors_character/char/1.cc: New.
2091         * 27_io/basic_istream/extractors_character/char/2.cc: New.
2092         * 27_io/basic_istream/extractors_character/char/3.cc: New.
2093         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
2094         * 27_io/basic_istream/extractors_other/char/1.cc: New.
2095         * 27_io/basic_istream/extractors_other/char/2.cc: New.
2096         * 27_io/basic_istream/extractors_other/char/3.cc: New.
2097         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
2098         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
2099         * 27_io/basic_istream/get/char/1.cc: New.
2100         * 27_io/basic_istream/get/char/2.cc: New.
2101         * 27_io/basic_istream/getline/char/1.cc: New.
2102         * 27_io/basic_istream/getline/char/2.cc: New.
2103         * 27_io/basic_istream/getline/char/3.cc: New.
2104         * 27_io/basic_istream/ignore/char/1.cc: New.
2105         * 27_io/basic_istream/ignore/char/6360.cc: New.
2106         * 27_io/basic_istream/ignore/char/7220.cc: New.
2107         * 27_io/basic_istream/peek/char/1.cc: New.
2108         * 27_io/basic_istream/peek/char/6414.cc: New.
2109         * 27_io/basic_istream/putback/char/1.cc: New.
2110         * 27_io/basic_istream/read/char/1.cc: New.
2111         * 27_io/basic_istream/read/char/2.cc: New.
2112         * 27_io/basic_istream/read/char/3.cc: New.
2113         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
2114         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
2115         * 27_io/basic_istream/readsome/char/8258.cc: New.
2116         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
2117         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
2118         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
2119         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
2120         * 27_io/basic_istream/seekg/char/fstream.cc: New.
2121         * 27_io/basic_istream/seekg/char/sstream.cc: New.
2122         * 27_io/basic_istream/sentry/char/1.cc: New.
2123         * 27_io/basic_istream/sentry/char/2.cc: New.
2124         * 27_io/basic_istream/sentry/char/3.cc: New.
2125         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
2126         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
2127         * 27_io/basic_istream/tellg/char/1.cc: New.
2128         * 27_io/basic_istream/tellg/char/8348.cc: New.
2129         * 27_io/basic_istream/tellg/char/fstream.cc: New.
2130         * 27_io/basic_istream/tellg/char/sstream.cc: New.
2131         * 27_io/basic_istream/ws/char/1.cc: New.
2132         * 27_io/basic_istringstream/1.cc: New.
2133         * 27_io/basic_istringstream/2.cc: New.
2134         * 27_io/basic_istringstream/3.cc: New.
2135         * 27_io/basic_istringstream/4.cc: New.
2136         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
2137         * 27_io/basic_istringstream/str/char/1.cc: New.
2138         * 27_io/basic_ofstream/1.cc: New.
2139         * 27_io/basic_ofstream/2.cc: New.
2140         * 27_io/basic_ofstream/3.cc: New.
2141         * 27_io/basic_ofstream/4.cc: New.
2142         * 27_io/basic_ofstream/cons/char/2.cc: New.
2143         * 27_io/basic_ofstream/open/char/1.cc: New.
2144         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
2145         * 27_io/basic_ostream/1.cc: New.
2146         * 27_io/basic_ostream/2.cc: New.
2147         * 27_io/basic_ostream/3.cc: New.
2148         * 27_io/basic_ostream/4.cc: New.
2149         * 27_io/basic_ostream/cons/char/9827.cc: New.
2150         * 27_io/basic_ostream/endl/char/1.cc: New.
2151         * 27_io/basic_ostream/ends/char/1.cc: New.
2152         * 27_io/basic_ostream/ends/char/2.cc: New.
2153         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
2154         * 27_io/basic_ostream/flush/char/1.cc: New.
2155         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
2156         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
2157         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
2158         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
2159         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
2160         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
2161         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
2162         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
2163         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
2164         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
2165         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
2166         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
2167         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
2168         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
2169         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
2170         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
2171         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
2172         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
2173         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
2174         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
2175         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
2176         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
2177         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
2178         * 27_io/basic_ostream/sentry/char/1.cc: New.
2179         * 27_io/basic_ostream/sentry/char/2.cc: New.
2180         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
2181         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
2182         * 27_io/basic_ostream/tellp/char/1.cc: New.
2183         * 27_io/basic_ostream/tellp/char/2.cc: New.
2184         * 27_io/basic_ostringstream/1.cc: New.
2185         * 27_io/basic_ostringstream/2.cc: New.
2186         * 27_io/basic_ostringstream/3.cc: New.
2187         * 27_io/basic_ostringstream/4.cc: New.
2188         * 27_io/basic_ostringstream/cons/char/3.cc: New.
2189         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
2190         * 27_io/basic_ostringstream/str/char/1.cc: New.
2191         * 27_io/basic_ostringstream/str/char/2.cc: New.
2192         * 27_io/basic_streambuf/1.cc: New.
2193         * 27_io/basic_streambuf/2.cc: New.
2194         * 27_io/basic_streambuf/3.cc: New.
2195         * 27_io/basic_streambuf/cons/char/1.cc: New.
2196         * 27_io/basic_streambuf/imbue/char/1.cc: New.
2197         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
2198         * 27_io/basic_streambuf/overflow/char/1.cc: New.
2199         * 27_io/basic_streambuf/overflow/char/2.cc: New.
2200         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
2201         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
2202         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
2203         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
2204         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
2205         * 27_io/basic_streambuf/sputn/char/1.cc: New.
2206         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
2207         * 27_io/basic_streambuf/sync/char/1057.cc: New.
2208         * 27_io/basic_stringbuf/1.cc: New.
2209         * 27_io/basic_stringbuf/2.cc: New.
2210         * 27_io/basic_stringbuf/3.cc: New.
2211         * 27_io/basic_stringbuf/4.cc: New.
2212         * 27_io/basic_stringbuf/5.cc: New.
2213         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
2214         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
2215         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
2216         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
2217         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
2218         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
2219         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
2220         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
2221         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
2222         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
2223         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
2224         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
2225         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
2226         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
2227         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
2228         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
2229         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
2230         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
2231         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
2232         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
2233         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
2234         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
2235         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
2236         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
2237         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
2238         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
2239         * 27_io/basic_stringbuf/str/char/1.cc: New.
2240         * 27_io/basic_stringbuf/str/char/2.cc: New.
2241         * 27_io/basic_stringbuf/str/char/3.cc: New.
2242         * 27_io/basic_stringbuf/str/char/3955.cc: New.
2243         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
2244         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
2245         * 27_io/basic_stringstream/1.cc: New.
2246         * 27_io/basic_stringstream/2.cc: New.
2247         * 27_io/basic_stringstream/3.cc: New.
2248         * 27_io/basic_stringstream/4.cc: New.
2249         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
2250         * 27_io/basic_stringstream/str/char/1.cc: New.
2251         * 27_io/basic_stringstream/str/char/2.cc: New.
2252         * 27_io/basic_stringstream/str/char/3.cc: New.
2253         * 27_io/basic_stringstream/str/char/4.cc: New.
2254         * 27_io/fpos/1.cc: New.
2255         * 27_io/fpos/2.cc: New.
2256         * 27_io/fpos/3.cc: New.
2257         * 27_io/ios_base/callbacks/1.cc: New.
2258         * 27_io/ios_base/state/1.cc: New.
2259         * 27_io/ios_base/storage/1.cc: New.
2260         * 27_io/ios_base/storage/2.cc: New.
2261         * 27_io/ios_base/storage/3.cc: New.
2262         * 27_io/ios_base/sync_with_stdio/1.cc: New.
2263         * 27_io/ios_base/sync_with_stdio/2.cc: New.
2264         * 27_io/manipulators/adjustfield/char/1.cc: New.
2265         * 27_io/manipulators/adjustfield/char/2.cc: New.
2266         * 27_io/manipulators/basefield/char/1.cc: New.
2267         * 27_io/manipulators/standard/char/1.cc: New.
2268         * 27_io/manipulators/standard/char/2.cc: New.
2269         * 27_io/objects/char/1.cc: New.
2270         * 27_io/objects/char/2.cc: New.
2271         * 27_io/objects/char/2523-1_xin.cc: New.
2272         * 27_io/objects/char/2523-1_xin.in: New.
2273         * 27_io/objects/char/2523-2_xin.cc: New.
2274         * 27_io/objects/char/2523-2_xin.in: New.
2275         * 27_io/objects/char/3045.cc: New.
2276         * 27_io/objects/char/3647.cc: New.
2277         * 27_io/objects/char/3_xin.cc: New.
2278         * 27_io/objects/char/3_xin.in: New.
2279         * 27_io/objects/char/4_xin.cc: New.
2280         * 27_io/objects/char/4_xin.in: New.
2281         * 27_io/objects/char/5268.cc: New.
2282         * 27_io/objects/char/5280_xin.cc: New.
2283         * 27_io/objects/char/5280_xin.in: New.
2284         * 27_io/objects/char/6548_xin.cc: New.
2285         * 27_io/objects/char/6548_xin.in: New.
2286         * 27_io/objects/char/6648-1_xin.cc: New.
2287         * 27_io/objects/char/6648-1_xin.in: New.
2288         * 27_io/objects/char/6648-2_xin.cc: New.
2289         * 27_io/objects/char/6648-2_xin.in: New.
2290         * 27_io/objects/char/7744_xin.cc: New.
2291         * 27_io/objects/char/7744_xin.in: New.
2292         * 27_io/objects/wchar_t/1.cc: New.
2293         * 27_io/types/1.cc: New.
2294         * 27_io/types/2.cc: New.
2295         * data/filebuf_members-1.tst: New.
2296         * data/filebuf_members-1.txt: New.
2297         * data/filebuf_virtuals-1.tst: New.
2298         * data/filebuf_virtuals-1.txt: New.
2299         * data/filebuf_virtuals-2.tst: New.
2300         * data/filebuf_virtuals-3.tst: New.
2301         * data/ifstream_members-1.tst: New.
2302         * data/ifstream_members-1.txt: New.
2303         * data/ios_base_members_static-1.tst: New.
2304         * data/istream_extractor_other-1.tst: New.
2305         * data/istream_extractor_other-1.txt: New.
2306         * data/istream_extractor_other-2.tst: New.
2307         * data/istream_seeks-1.tst: New.
2308         * data/istream_seeks-1.txt: New.
2309         * data/istream_seeks-2.tst: New.
2310         * data/istream_seeks-3.tst: New.
2311         * data/istream_unformatted-1.tst: New.
2312         * data/istream_unformatted-1.txt: New.
2313         * data/ofstream_members-1.tst: New.
2314         * data/ostream_inserter_char-1.tst: New.
2315         * data/ostream_inserter_char-1.txt: New.
2316         * data/ostream_inserter_other-1.tst: New.
2317         * data/ostream_inserter_other-2.tst: New.
2318         * data/ostream_seeks-1.tst: New.
2319
2320 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
2321
2322         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
2323         requirement that __mode must be strict input or output.
2324
2325         * include/std/std_streambuf.h (basic_streambuf::setp): Set
2326         _M_out_lim.
2327
2328         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
2329         output string shouldn't core.
2330         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
2331         type.
2332         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
2333
2334         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
2335         zero.
2336
2337 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
2338
2339         * testsuite/data: New directory.
2340         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2341         to copy files from the testsuite data directory.
2342         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
2343         testfiles containing _xin, which now means this is an interactive
2344         test and should be run with the interactive dejagnu hooks.
2345         * testsuite/Makefile.am: Remove testsuite_* files.
2346         * testsuite/Makefile.in: Regenerate.
2347
2348 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
2349
2350         * docs/html/install.html: Document complete list of locales
2351         required by test suite.  Document procedure for installing
2352         said locales under Debian.  Solicit instructions for other
2353         operating systems.
2354
2355 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
2356
2357         * include/bits/sstream.tcc (overflow): Make sure operands of min
2358         and max have the same type.
2359
2360 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
2361
2362         PR libstdc++/10276
2363         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
2364         initialization.
2365
2366 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
2367
2368         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
2369         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
2370         Don't set _M_out_end.
2371         (basic_filebuf::overflow): Replace _M_out_buf_size() with
2372         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
2373         * include/bits/sstream.tcc (basic_stringbuf::overflow):
2374         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
2375         * include/bits/streambuf.tcc (basic_streambuf::sputc):
2376         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
2377         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
2378         _M_out_end - _M_out_cur.
2379         (__copy_streambufs): Likewise.
2380         * include/std/std_fstream.h (_M_set_determinate): Set
2381         _M_out_end here.
2382
2383 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
2384
2385         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
2386         _M_convert_to_external, _M_really_overflow, seekoff): Fix
2387         test for synced buffer.
2388         * include/std/std_fstream.h (sync): Likewise.
2389         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
2390         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
2391
2392 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
2393
2394         * include/std/std_sstream.h (basic_istringstream): Adjust
2395         initialization.
2396         (basic_ostringstream): Same.
2397         (basic_stringstream): Same.
2398         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
2399         (basic_ofstream): Same.
2400         (basic_fstream): Same.
2401         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
2402         that does not call init.
2403         * include/std/std_istream.h (basic_istream): Same.
2404         (basic_iostream): Construct istream, ostream uninitialized, use
2405         init to initialize just once. Add protected ctor that does not
2406         call init.
2407
2408 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
2409             Nathan Myers  <ncm@cantrip.org>
2410
2411         PR libstdc++/9533
2412         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
2413         call underflow().
2414         (basic_filebuf<>::showmanyc): Use the information provided
2415         by codecvt and __basic_file<>::showmanyc_helper to implement
2416         a non-trivial showmanyc.
2417         * config/io/basic_file_stdio.h
2418         (__basic_file<>::showmanyc_helper): New, declare.
2419         * config/io/basic_file_stdio.cc
2420         (__basic_file<>::showmanyc_helper): Define.
2421         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
2422         (__basic_file<char>::open): Don't call fcntl().
2423         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
2424         GLIBCPP_CHECK_POLL): New macros.
2425         * configure.in: Call here.
2426         * acconfig.h: Add #undefs for the corresponding symbols.
2427         * aclocal.m4: Regenerate.
2428         * configure: Regenerate.
2429         * config.h.in: Regenerate.
2430
2431 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
2432
2433         * config/linker-map.gnu: Remove string export restrictions.
2434
2435 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
2436
2437         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
2438         find_first_of, find_last_of and find_last_not_of tests.
2439         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
2440         tests here, new file.
2441         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
2442         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
2443         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
2444         wchar_t find_first_of tests here, new file.
2445         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
2446         tests here.
2447         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
2448         tests here.
2449         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
2450         wchar_t find_last_of tests here.
2451         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
2452         wchar_t find_last_not_of tests here.
2453
2454 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
2455
2456         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
2457         Correct return value.
2458
2459 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
2460
2461         PR libstdc++/5730
2462         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
2463         * include/std/std_complex.h (norm):  Use faster,
2464         less accurate computation for builtin float types under --fast-math.
2465
2466 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
2467
2468         * testsuite/testsuite_hooks.h: Fix warning nits.
2469
2470 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
2471
2472         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
2473         Only .set mips2 for the o32 ABI.
2474
2475 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
2476
2477         * testsuite/21_strings/char_traits/requirements/char/1.cc:
2478         Test char not wchar_t.
2479
2480 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
2481
2482         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
2483         Correct size, taking into account sizeof(wchar_t).
2484
2485 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
2486
2487         Reshuffle 21_strings testsuite.
2488         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
2489         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
2490         element_access.cc, operations.cc, char_traits_requirements.cc,
2491         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
2492         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
2493         wchar_t tests as follows.
2494         * 21_strings/basic_string/append/char/1.cc: New.
2495         * 21_strings/basic_string/append/wchar_t/1.cc: New.
2496         * 21_strings/basic_string/assign/char/1.cc: New.
2497         * 21_strings/basic_string/assign/char/2.cc: New.
2498         * 21_strings/basic_string/assign/char/3.cc: New.
2499         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
2500         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
2501         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
2502         * 21_strings/basic_string/capacity/1.cc: New.
2503         * 21_strings/basic_string/capacity/char/1.cc: New.
2504         * 21_strings/basic_string/capacity/char/2.cc: New.
2505         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
2506         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
2507         * 21_strings/basic_string/compare/char/1.cc: New.
2508         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
2509         * 21_strings/basic_string/cons/char/1.cc: New.
2510         * 21_strings/basic_string/cons/char/2.cc: New.
2511         * 21_strings/basic_string/cons/char/3.cc: New.
2512         * 21_strings/basic_string/cons/char/4.cc: New.
2513         * 21_strings/basic_string/cons/char/5.cc: New.
2514         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
2515         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
2516         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
2517         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
2518         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
2519         * 21_strings/basic_string/element_access/char/1.cc: New.
2520         * 21_strings/basic_string/element_access/char/2.cc: New.
2521         * 21_strings/basic_string/element_access/char/3.cc: New.
2522         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
2523         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
2524         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
2525         * 21_strings/basic_string/find/char/1.cc: New.
2526         * 21_strings/basic_string/find/wchar_t/1.cc: New.
2527         * 21_strings/basic_string/insert/char/1.cc: New.
2528         * 21_strings/basic_string/insert/char/2.cc: New.
2529         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
2530         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
2531         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
2532         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
2533         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
2534         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
2535         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
2536         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
2537         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
2538         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
2539         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
2540         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
2541         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
2542         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
2543         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
2544         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
2545         * 21_strings/basic_string/operators/char/1.cc: New.
2546         * 21_strings/basic_string/operators/char/2.cc: New.
2547         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
2548         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
2549         * 21_strings/basic_string/replace/char/1.cc: New.
2550         * 21_strings/basic_string/replace/char/2.cc: New.
2551         * 21_strings/basic_string/replace/char/3.cc: New.
2552         * 21_strings/basic_string/replace/char/4.cc: New.
2553         * 21_strings/basic_string/replace/char/5.cc: New.
2554         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
2555         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
2556         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
2557         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
2558         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
2559         * 21_strings/basic_string/rfind/char/1.cc: New.
2560         * 21_strings/basic_string/rfind/char/2.cc: New.
2561         * 21_strings/basic_string/rfind/char/3.cc: New.
2562         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
2563         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
2564         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
2565         * 21_strings/basic_string/substr/char/1.cc: New.
2566         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
2567         * 21_strings/c_strings/char/1.cc: New.
2568         * 21_strings/c_strings/char/2.cc: New.
2569         * 21_strings/c_strings/wchar_t/1.cc: New.
2570         * 21_strings/c_strings/wchar_t/2.cc: New.
2571         * 21_strings/char_traits/requirements/char/1.cc: New.
2572         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
2573         * 21_strings/char_traits/typedefs/char/1.cc: New.
2574
2575 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
2576             Petur Runolfsson  <peturr02@ru.is>
2577
2578         PR libstdc++/10097
2579         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
2580         basic_filebuf<wchar_t>::_M_underflow_common):
2581         if (gptr() < egptr()) return *gptr().
2582         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
2583
2584         * testsuite/27_io/filebuf_members.cc (test_04): Minor
2585         changes: unlink fifo before making it, fix spelling error.
2586
2587 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
2588
2589         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
2590         * testsuite/Makefile.in: Regenerate.
2591         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
2592         Cleanups.
2593
2594 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
2595
2596         PR libstdc++/9964
2597         * include/bits/fstream.tcc (basic_filebuf::close):
2598         Always close file, even when write fails.
2599         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
2600
2601 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
2602
2603         * libsupc++/Makefile.am (C_COMPILE): Remove.
2604         (LTCOMPILE): Likewise.
2605         * libsupc++/Makefile.in: Regenerate.
2606
2607 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
2608
2609         * testsuite/23_containers/bitset_members.cc: Add test variable.
2610         * testsuite/23_containers/map_insert.cc: Same.
2611         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
2612         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
2613         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
2614         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
2615         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
2616         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
2617         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
2618         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
2619         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
2620         * testsuite/27_io/istream_exception.cc: Same.
2621         * testsuite/27_io/filebuf_virtuals.cc: Same.
2622         * testsuite/27_io/stringbuf_virtuals.cc: Same.
2623         * testsuite/27_io/ostream_inserter_arith.cc: Same.
2624         * testsuite/26_numerics/valarray_operators.cc: Same.
2625         * testsuite/26_numerics/slice.cc: Same.
2626         * testsuite/26_numerics/slice_array_assignment.cc: Same.
2627         * testsuite/24_iterators/istream_iterator.cc: Same.
2628         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
2629
2630 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
2631
2632         PR libstdc++/9581
2633         PR libstdc++/9870
2634         * config/locale/generic/ctype_members.cc,
2635         * config/locale/gnu/ctype_members.cc
2636         (ctype<wchar_t>::do_widen(char)):  Cast argument to
2637         unsigned char before passing to btowc.
2638         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
2639         Convert characters with btowc instead of mbsrtowcs.
2640         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
2641         char, char*):
2642         Convert characters with wctob instead of wcsrtombs.
2643         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
2644         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
2645         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
2646
2647 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
2648
2649         * include/stdc++.h: New.
2650         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
2651         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
2652         * include/Makefile.in: Regenerate.
2653         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
2654         (--cxxflags): Put -g -O2 here.
2655         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
2656
2657 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
2658
2659         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
2660         missing named locale.
2661
2662 2003-03-14  Andreas Schwab  <schwab@suse.de>
2663
2664         * configure.in: Only append to makefiles that are newly created to
2665         avoid multiple multi-do/multi-clean rules.
2666         * configure: Rebuilt.
2667
2668 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
2669
2670         * docs/html/configopts.html, docs/html/documentation.html,
2671         docs/html/explanations.html, docs/html/install.html,
2672         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
2673         invalid XHTML and make page header style consistent.
2674
2675 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
2676
2677         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
2678         * docs/html/faq/index.txt: Regenerate.
2679         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
2680
2681 2003-03-12  Andreas Schwab  <schwab@suse.de>
2682
2683         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2684         glibcpp_toolexeclibdir.
2685         * aclocal.m4, configure: Rebuilt.
2686
2687 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
2688
2689         * docs/html/faq/index.html: Update text about location of headers.
2690         * docs/html/faq/index.txt: Regenerate.
2691
2692 2003-03-11  Carlo Wood  <carlo@alinoe.com>
2693
2694         * include/bits/demangle.h: Prepend accessors of
2695         class qualifier with 'get_' in order to fix warnings
2696         when compiling with -Wshadow.
2697
2698 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
2699
2700         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
2701         when so installed.
2702         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
2703
2704         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
2705         report lack of setenv().
2706
2707 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
2708
2709         * config/io/basic_file_stdio.cc: include <unistd.h>.
2710
2711 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
2712             Nathan Myers  <ncm@cantrip.org>
2713
2714         PR libstdc++/7744
2715         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
2716         seekoff, seekpos): Add a boolean parameter __stdio.
2717         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
2718         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
2719         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
2720         respectively).
2721         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
2722         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
2723         * include/std/std_fstream.h (sync): Likewise.
2724         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
2725         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
2726         libstdc++/8399 commit involving isatty(0).
2727         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
2728         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
2729         * configure.in: Remove call.
2730         * aclocal.m4: Regenerate.
2731         * config.h.in: Regenerate.
2732         * configure: Regenerate.
2733         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
2734
2735 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
2736
2737         PR libstdc++/9988
2738         * include/bits/fstream.tcc (overflow): don't write EOF to file.
2739         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
2740
2741 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
2742
2743         PR libstdc++/9561
2744         * include/bits/basic_ios.h (_M_setstate): New.
2745         * include/bits/ostream.tcc (operator<<): Use it.
2746         * include/bits/istream.tcc (operator>>): Use it.
2747         * include/std/std_ostream.h (operator<<): Make friends.
2748         * include/std/std_istream.h (operator>>): Make friends.
2749         * testsuite/27_io/ostream_exception.cc,
2750         testsuite/27_io/istream_exception.cc: New tests.
2751
2752 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2753
2754         * include/bits/locale_facets.tcc: Fix typo.
2755
2756 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
2757
2758         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
2759
2760         * config/locale/generic/c_locale.cc
2761         (locale::facet::_S_create_c_locale): Throw runtime exception when
2762         unsupported language is specified.
2763         * testsuite/testsuite_hooks.h
2764         (run_test_wrapped_generic_locale_exception_catcher): New function.
2765         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
2766         Suppress runtime exception thrown by generic implementation.
2767         (run_tests_wrapped_env): Likewise.
2768         (run_test_wrapped_generic_locale_exception_catcher): New function.
2769         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
2770         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
2771         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
2772         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
2773         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
2774         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
2775         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
2776         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
2777         * testsuite/22_locale/facet/2.cc: New test wrap.
2778         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
2779         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
2780         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
2781         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
2782         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
2783         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
2784         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
2785         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
2786         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
2787         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
2788         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
2789         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
2790         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
2791         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
2792         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
2793         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
2794         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
2795         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
2796         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
2797         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
2798         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
2799         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
2800         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
2801         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
2802         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
2803         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
2804         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
2805         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
2806         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
2807         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
2808         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
2809         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
2810         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
2811         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
2812         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
2813         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
2814         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
2815         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
2816         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
2817         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
2818         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
2819         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
2820         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
2821         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
2822         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
2823         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
2824         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
2825         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
2826         * testsuite/27_io/ios_members.cc: New test wrap.
2827         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
2828         New test wrap.
2829         * testsuite/27_io/streambuf_members.cc: New test wrap.
2830         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
2831
2832 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
2833             Petur Runolfsson  <peturr02@ru.is>
2834
2835         PR libstdc++/9424
2836         * include/bits/streambuf.tcc (__copy_streambufs): Use
2837         sgetn-sputn only when sputn cannot fail, otherwise fall back
2838         to safe snextc-sputc.
2839         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
2840
2841 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
2842
2843         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
2844         locale cache for truename and falsename.
2845
2846 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
2847
2848         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
2849         _M_word_size initialization.
2850
2851 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
2852
2853         * include/bits/fstream.tcc (_M_convert_to_external):
2854         Set __elen to zero if codecvt::out eventually fails.
2855
2856 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
2857
2858         PR libstdc++/9182
2859         * include/bits/fstream.tcc (_M_really_overflow): Check
2860         for _M_convert_to_external possible failures.
2861         * include/std/std_fstream.h (sync): Check _M_really_overflow
2862         return value and return -1 in case of failure.
2863         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
2864
2865 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
2866
2867         PR libstdc++/9826
2868         * include/bits/istream.tcc (operator>>(_CharT*),
2869         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
2870         * testsuite/27_io/stringstream.cc (test02): Add.
2871
2872         * include/bits/istream.tcc (operator>>(_CharT*)):
2873         Assign a char_type to *__s.
2874
2875 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
2876
2877         PR libstdc++/9817
2878         * include/bits/locale_facets.tcc
2879         (collate::do_compare, collate::do_transform):
2880         Handle nul characters in input.
2881         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
2882         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
2883         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
2884         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
2885
2886 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
2887
2888         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
2889         sputn fails.
2890         * testsuite/27_io/ostream_fail.cc: New test.
2891
2892 2003-03-07  Matthias Klose  <doko@debian.org>
2893
2894         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
2895         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
2896         * Makefile.in: Regenerate.
2897         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
2898         of gxx_include_dir.
2899         AM_MAKEFLAGS: Pass gxx_include_dir.
2900         * libsupc++/Makefile.in: Regenerate.
2901
2902 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
2903
2904         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
2905         mask.  Test setting small-numbered pword and iword slots.  Test
2906         behavior at limit of numeric_limits::max.  Check that values are
2907         still good after failures.
2908
2909 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
2910
2911         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
2912         (ios_base::ios_base): Set _M_word, _M_word_size.
2913         (ios_base::~ios_base): Remove redundant test.
2914         * testsuite/27_io/ios_base_storage.cc (test03): New.
2915
2916 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
2917
2918         * src/strstream.cc, include/bits/basic_string.tcc: Remove
2919         incorrect whitespace added in my previous change.
2920
2921 2003-03-05  Carlo Wood  <carlo@alinoe.com>
2922
2923         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
2924         _S_initialized() in order to allow debugging libraries to detect
2925         when the std streams are initialized from an overloaded operator
2926         new.
2927
2928 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
2929
2930         * libsupc++/demangle.h: Move to..
2931         * include/bits/demangle.h: ...here.
2932         * src/demangle.cc: Adjust include.
2933         * include/Makefile.am (bits_headers): Add.
2934         * include/Makefile.in: Regenerate.
2935
2936 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2937
2938         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
2939
2940         * config/linker-map.gnu: Filter typeinfo and vtable info.
2941
2942 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
2943
2944         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
2945         new failure.  Throw exception if badbit and exception mask when ix
2946         >= numeric_limits<int>::max().
2947
2948 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
2949
2950         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
2951         min and max have the same type.
2952         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
2953
2954 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
2955
2956         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
2957         * include/Makefile.in: Regenerate.
2958
2959 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
2960
2961         * testsuite/abi_check.cc (report_symbol_info): Add version info.
2962
2963         * config/linker-map.gnu: Hide more stuff.
2964         * include/Makefile.am: Cleanups.
2965         * include/Makefile.in: Regenerate.
2966
2967 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
2968
2969         * config/locale/generic/messages_members.h (messages::messages):
2970         Remove name from unused parameter.
2971
2972 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
2973
2974         * src/Makefile.am (sources): Add demangle.cc.
2975         (demangle.o): Add.
2976         (demangle.lo): Add.
2977         * src/Makefile.in: Regenerate.
2978         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
2979         * libsupc++/Makefile.in: Regenerate.
2980
2981         * testsuite/testsuite_hooks.h
2982         (__gnu_cxx_test::verify_demangle): New.
2983         * testsuite/testsuite_hooks.cc: Define.
2984
2985 2003-02-27  Carlo Wood  <carlo@alinoe.com>
2986
2987         * src/demangle.cc: New.
2988         * libsupc++/demangle.h: New.
2989
2990 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
2991             Carlo Wood  <carlo@alinoe.com>
2992
2993         * testsuite/demangle/abi_examples/01.cc: New.
2994         * testsuite/demangle/abi_examples/02.cc: New.
2995         * testsuite/demangle/abi_examples/03.cc: New.
2996         * testsuite/demangle/abi_examples/04.cc: New.
2997         * testsuite/demangle/abi_examples/05.cc: New.
2998         * testsuite/demangle/abi_examples/06.cc: New.
2999         * testsuite/demangle/abi_examples/07.cc: New.
3000         * testsuite/demangle/abi_examples/08.cc: New.
3001         * testsuite/demangle/abi_examples/09.cc: New.
3002         * testsuite/demangle/abi_examples/10.cc: New.
3003         * testsuite/demangle/abi_examples/11.cc: New.
3004         * testsuite/demangle/abi_examples/12.cc: New.
3005         * testsuite/demangle/abi_examples/13.cc: New.
3006         * testsuite/demangle/abi_examples/14.cc: New.
3007         * testsuite/demangle/abi_examples/15.cc: New.
3008         * testsuite/demangle/abi_examples/16.cc: New.
3009         * testsuite/demangle/abi_examples/17.cc: New.
3010         * testsuite/demangle/abi_examples/18.cc: New.
3011         * testsuite/demangle/abi_examples/19.cc: New.
3012         * testsuite/demangle/abi_examples/20.cc: New.
3013         * testsuite/demangle/abi_examples/21.cc: New.
3014         * testsuite/demangle/abi_examples/22.cc: New.
3015         * testsuite/demangle/abi_examples/23.cc: New.
3016         * testsuite/demangle/abi_examples/24.cc: New.
3017         * testsuite/demangle/abi_examples/25.cc: New.
3018         * testsuite/demangle/abi_examples/26.cc: New.
3019         * testsuite/demangle/abi_text/01.cc: New.
3020         * testsuite/demangle/abi_text/02.cc: New.
3021         * testsuite/demangle/abi_text/03.cc: New.
3022         * testsuite/demangle/abi_text/04.cc: New.
3023         * testsuite/demangle/abi_text/05.cc: New.
3024         * testsuite/demangle/abi_text/06.cc: New.
3025         * testsuite/demangle/abi_text/07.cc: New.
3026         * testsuite/demangle/abi_text/08.cc: New.
3027         * testsuite/demangle/abi_text/09.cc: New.
3028         * testsuite/demangle/abi_text/10.cc: New.
3029         * testsuite/demangle/abi_text/11.cc: New.
3030         * testsuite/demangle/abi_text/12.cc: New.
3031         * testsuite/demangle/abi_text/13.cc: New.
3032         * testsuite/demangle/abi_text/14.cc: New.
3033         * testsuite/demangle/regression/3111-1.cc: New.
3034         * testsuite/demangle/regression/3111-2.cc: New.
3035         * testsuite/demangle/regression/7986-01.cc: New.
3036         * testsuite/demangle/regression/7986-02.cc: New.
3037         * testsuite/demangle/regression/7986-03.cc: New.
3038         * testsuite/demangle/regression/7986-04.cc: New.
3039         * testsuite/demangle/regression/7986-05.cc: New.
3040         * testsuite/demangle/regression/7986-06.cc: New.
3041         * testsuite/demangle/regression/7986-07.cc: New.
3042         * testsuite/demangle/regression/7986-08.cc: New.
3043         * testsuite/demangle/regression/7986-09.cc: New.
3044         * testsuite/demangle/regression/7986-10.cc: New.
3045         * testsuite/demangle/regression/7986-11.cc: New.
3046         * testsuite/demangle/regression/7986-12.cc: New.
3047         * testsuite/demangle/regression/7986.cc: New.
3048         * testsuite/demangle/regression/8897.cc: New.
3049         * testsuite/demangle/regression/cw-01.cc: New.
3050         * testsuite/demangle/regression/cw-02.cc: New.
3051         * testsuite/demangle/regression/cw-03.cc: New.
3052         * testsuite/demangle/regression/cw-04.cc: New.
3053         * testsuite/demangle/regression/cw-05.cc: New.
3054         * testsuite/demangle/regression/cw-06.cc: New.
3055         * testsuite/demangle/regression/cw-07.cc: New.
3056         * testsuite/demangle/regression/cw-08.cc: New.
3057         * testsuite/demangle/regression/cw-09.cc: New.
3058         * testsuite/demangle/regression/cw-10.cc: New.
3059         * testsuite/demangle/regression/cw-11.cc: New.
3060         * testsuite/demangle/regression/cw-12.cc: New.
3061         * testsuite/demangle/regression/cw-13.cc: New.
3062         * testsuite/demangle/regression/cw-14.cc: New.
3063         * testsuite/demangle/regression/old.cc: New.
3064
3065 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
3066
3067         * docs/doxygen/Intro.3:  Update with new (proper) names.
3068         * docs/doxygen/TODO:  Update.
3069         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
3070         Fake entries for standard typedefs.
3071         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
3072         * docs/html/documentation.html:  Top-level man page is now called
3073         C++Intro.
3074         * include/std/std_limits.h:  Doxygenate.
3075
3076 2003-02-25  Scott Snyder  <snyder@fnal.gov>
3077
3078         PR libstdc++/9811
3079         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
3080         Correct documentation.
3081         * include/bits/stl_multimap.h (lower_bound, upper_bound,
3082         equal_range): Likewise.
3083
3084 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
3085
3086         PR libstdc++/9825
3087         * src/fstream.cc
3088         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
3089         __bump is true (uflow), always increment the read pointer
3090         (_M_in_cur) before returning successfully.
3091         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
3092
3093 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
3094             Nathan Myers <ncm@cantrip.org>
3095
3096         PR libstdc++/9404, PR libstdc++/9701 (partial)
3097         (aka pptr == epptr implies overflow)
3098         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3099         Consistently, _M_out_end points to the end of the buffer just
3100         created.
3101         (overflow): Tweak to use _M_out_buf_size().
3102         (_M_convert_to_external): The role of the old _M_out_end is
3103         now played by _M_out_lim.
3104         (_M_really_overflow): Likewise.
3105         (seekoff): Likewise.
3106         (setbuf): _M_out_end points to the end of the external buffer.
3107         * include/bits/sstream.tcc (overflow): Rewrote, taking into
3108         account the resolution of DR 169 (TC).
3109         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
3110         (seekpos): Use _M_string.capacity(); tweak.
3111         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
3112         * include/std/std_fstream.h (sync): The role of the old
3113         _M_out_end is now played by _M_out_lim.
3114         (_M_set_indeterminate): Use _M_set_determinate.
3115         (_M_set_determinate): _M_out_end is now _M_out_lim.
3116         (_M_is_indeterminate): Likewise.
3117         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
3118         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
3119         which have the information readily available as _M_string.capacity();
3120         for ate and app modes, pass the string size to _M_really_sync.
3121         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
3122         point to the end of the buffer (i.e., epptr) and to the string end,
3123         respectively.
3124         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
3125         which points to the right limit of the used put area.
3126         (_M_out_cur_move): The role of the old _M_out_end is now played
3127         by _M_out_lim.
3128         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
3129         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
3130         of the standard.
3131         (basic_streambuf()): Initialize _M_out_lim too.
3132         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
3133         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
3134         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
3135
3136 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
3137
3138         * testsuite/27_io/ios_base_storage.cc (main): Call
3139         set_memory_limits.
3140
3141 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
3142
3143         * include/bits/locale_facets.tcc (_M_convert_float): Replace
3144         numpunct facet accesses with data from __locale_cache.
3145
3146 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
3147
3148         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
3149         * docs/html/faq/index.txt:  Regenerate.
3150
3151 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
3152
3153         * config/linker-map.gnu:  Also export locking symbols needed for the
3154         generic atomicity.h case.
3155
3156 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
3157
3158         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
3159         config.status.
3160         * configure: Rebuilt.
3161
3162 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
3163
3164         * include/bits/sstream.tcc (overflow): According to
3165         27.7.1.3, p5, actual output is performed by sputc(c).
3166
3167 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
3168
3169         PR libstdc++/9582
3170         * include/bits/stl_alloc.h:  Remove all traces of assert().
3171
3172 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
3173
3174         * include/std/std_sstream.h (str()): the size of the
3175         current string may be different from the initial one
3176         whenever _M_out_end > _M_out_beg.
3177         * testsuite/27_io/stringbuf_members.cc (test07): Add.
3178
3179 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
3180
3181         PR libstdc++/9582
3182         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
3183
3184 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
3185
3186         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
3187         * testsuite/27_io/ios_members.cc (test03): New.
3188
3189 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
3190
3191         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
3192         (basic_ios::_M_cache_facets): Move into above.
3193         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
3194         cache.
3195         (basic_ios::imbue): Force locale cache to be built.
3196         (basic_ios::_M_init): Create and initialize locale cache.
3197         * include/bits/ios_base.h (__locale_cache_base): Declare.
3198         (ios_base::_M_locale_cache): New.
3199         (ios_base::_M_cache): Define.
3200         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
3201         _S_end.
3202         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
3203         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
3204         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
3205         cache literal string, grouping flag, thousands separator.
3206         (__locale_cache<_CharT>::__locale_cache): New.
3207         (__locale_cache<_CharT>::_M_init): New.
3208         * src/ios.cc: Clear _M_locale_cache in constructor.
3209         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
3210         New.
3211
3212 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3213
3214         * src/locale-inst.cc: Do not include <cassert>.
3215         * src/locale.cc: Likewise.
3216
3217 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3218
3219         PR libstdc++/9580
3220         * include/std/std_fstream.h: Declare underflow and uflow
3221         specializations, change generic definitions to do nothing.
3222         * src/fstream.cc: Add underflow and uflow specializations.
3223
3224 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3225
3226         PR libstdc++/9169
3227         * include/bits/fstream.tcc (_M_convert_to_external):
3228         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
3229         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
3230
3231 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
3232
3233         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
3234         * include/bits/basic_ios.tcc: Guard use of extern template.
3235         * include/std/std_iomanip.h: Same.
3236         * include/bits/streambuf.tcc: Same.
3237         * include/bits/stl_alloc.h: Same.
3238         * include/bits/locale_facets.tcc: Same.
3239         * include/bits/ostream.tcc: Same.
3240         * include/bits/istream.tcc: Same.
3241         * include/bits/fstream.tcc: Same.
3242         * include/bits/basic_string.tcc: Same.
3243
3244 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
3245
3246         * include/bits/ostream.tcc (sentry::sentry): Improve
3247         performance-wise the fix for libstdc++/9563.
3248
3249 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
3250
3251         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
3252         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
3253         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
3254         when we don't have static mutex initialization.
3255         (__exchange_and_add):  Use _Atomic_add_mutex_once.
3256         * src/misc-inst.cc:  Definitions of all the above.
3257
3258 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
3259
3260         PR libstdc++/9563
3261         * include/bits/ostream.tcc (sentry::sentry):&n