OSDN Git Service

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