2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
[official-gcc.git] / libstdc++-v3 / ChangeLog
blob2a494a148b93fa2d0d3289c784f3590aecdf743f
1 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
3         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4         sputc): Move inline, from here...
5         * include/std/std_streambuf.h: ... to here.
7         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
8         sputbackc, sungetc, sputc): Use __builtin_expect.
10 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
12         * docs/doxygen/mainpage.html:  Use a useful title.
14 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
16         * docs/html/documentation.html: Remove assignment info.
17         * docs/html/17_intro/contribute.html: Edits.
18         * docs/html/17_intro/libstdc++-assign.tx: Remove.
20         * docs/html/test.html: Update.
22         * README: Update.
23         
24 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
25             Ulrich Drepper  <drepper@redhat.com>
27         * testsuite/testsuite_performance.h: Tweak mallinfo.
29 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
30             Nathan C. Myers  <ncm-nospam@cantrip.org>
32         * include/std/std_fstream.h (_M_filepos): Remove.
33         (_M_reading, _M_writing): New, encode the various I/O modes:
34         'read', 'write' and 'uncommitted'.
35         (sync): If there is something to flush, do it, then go to
36         'uncommitted' mode.
37         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
38         with three different cases: __off > 0 (upon underflow),
39         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
40         seekoff/pos).
41         (_M_underflow): Don't call overflow, set _M_reading to true
42         on success, tweak.
43         (pbackfail): Set _M_reading to true on pback creation, tweak.
44         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
45         set _M_writing to true on success, tweak.
46         (seekoff): Simplify, set _M_reading, _M_writing to false, call
47         _M_set_buffer(-1) ('uncommitted').
48         (open, close, setbuf): Set _M_reading, _M_writing to false and
49         call _M_set_buffer(-1), tweak.
50         (basic_filebuf): Don't set _M_buf_unified.
51         (_M_destroy_internal_buffer): Don't call setg and setp.
52         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
53         _M_writing and _M_set_buffer(-1).
54         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
55         _M_out_lim, _M_buf_unified): Remove.
56         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
57         (setp): Don't set _M_out_lim.   
58         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
59         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
60         upon open the mode is 'uncommitted' and therefore the put area
61         pointers are null.
62         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
63         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
64         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
65         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
66         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
67         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
68         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
69         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
70         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
71         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
72         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
73         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
74         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
75         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
76         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
77         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
78         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
79         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
80         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
81         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
83         * include/bits/fstream.tcc (showmanyc): Use only the
84         documented derivation interface to basic_streambuf (gptr(),
85         setg(), etc.) to work right with user specializations.
86         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
87         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
88         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
89         Likewise.
90         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
91         xsgetn): Likewise.
93 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
95         * configure.host (freebsd*): Set abi_baseline_pair.
96         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
97         (at or near first release) to 3.3.
98         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
99         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
100         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
102         * include/ext/mt_allocator.h: Portability.
103         * testsuite/testsuite_performance.h: Likewise.
105 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
107         * docs/html/17_intro/libstdc++-assign.txt: Update address.
109         * testsuite/performance/ifstream_getline.cc: Fix.
110         
111 2003-06-23  Doug Gregor <dgregor@apple.com>
113         * include/bits/boost_concept_check.h: Don't use _D or _R for type 
114         names.
116 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
117             Nathan C. Myers  <ncm-nospam@cantrip.org>
119         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
120         is now used only for filebuf, when _M_buf_unified is true.
121         epgtr() plays the role of _M_out_lim but it's only updated
122         upon overflow, underflow, uflow, seekoff/pos.
123         * include/bits/sstream.tcc (_M_underflow): New, implements
124         stringbuf::underflow and uflow.
125         (seekoff, seekpos): Tweak, use  _M_update_egptr.
126         * include/std/std_sstream.h (str): Rewrote, deal correctly
127         with the new logic, in particular, when pptr() > egptr().
128         (_M_sync): When __testout && !__testin set all the get area
129         pointers to the current string end.
130         (_M_update_egptr): New, internal function updating egptr()
131         to the actual string end.
132         (_M_underflow): New, declare.
133         (underflow): Dispatch to _M_underflow(false).
134         (uflow): Dispatch to _M_underflow(true).
136         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
137         seekpos): Use only the documented derivation interface to
138         basic_streambuf (gptr(), setg(), etc.) to work right with
139         user specializations.
140         * include/std/std_sstream.h (str, _M_sync): Likewise.
142 2003-06-20  Doug Gregor <dgregor@apple.com>
144         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
145         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
146         dereference end iterator.
147         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
148         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
149         index equal to the length of a string.
150         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
151         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
152         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
153         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
154         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
155         * testsuite/23_containers/list_modifiers.cc: Don't dereference
156         singular reverse iterator.
157         * testsuite/23_containers/vector_bool.cc: Don't increment singular
158         iterator.
159         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
161 2003-06-20  Doug Gregor <dgregor@apple.com>
163         * include/bits/basic_string.h (basic_string::replace): Dispatch 
164         _InputIterator version based on _Is_integer.
165         * include/bits/basic_string.tcc (basic_string::replace):
166         Renamed replace(iterator, iterator, size_type, _CharT) to
167         _M_replace_aux.
168         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
169         Test basic_string::assign(_InputIterator, _InputIterator),
170         which calls basic_string::replace(iterator, iterator,
171         _Input_iterator, _InputIterator).
173 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
175         * testsuite/testsuite_performance.h (resource_counter): Don't use
176         mallinfo at the moment.
178 2003-06-20  Matthias Klose  <doko@debian.org>
180         * configure.host: Set try_cpu to target_cpu for existing
181         baseline files.
183 2003-06-19  Andreas Jaeger  <aj@suse.de>
185         * testsuite/Makefile.am (extract_symvers): Revert accidental
186         change.
187         * testsuite/Makefile.in: Regenerate.
189         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
190         * configure: Regenerated.
192 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
194         * include/std/std_sstream.h (_M_sync): Make non virtual.
196 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
198         * testsuite/testsuite_performance.h (time_counter): New.
199         (resource_counter): New.
200         (report_performance): New.
201         (start_counters): New.
202         (stop_counters): New.
203         (clear_counters): New.
204         * testsuite/performance/allocator.cc: Instrument.
205         * testsuite/performance/cout_insert_int.cc: Same.
206         * testsuite/performance/complex_norm.cc: Same.
207         * testsuite/performance/filebuf_sputc.cc: New.
208         * testsuite/performance/fstream_seek_write.cc: Same.
209         * testsuite/performance/ifstream_getline.cc: Same.
210         * testsuite/performance/map_create_fill.cc: Same.
211         * testsuite/performance/ofstream_insert_float.cc: Same.
212         * testsuite/performance/ofstream_insert_int.cc: Same.
213         * testsuite/performance/string_append.cc: Convert.
214         * scripts/check_performance: New.
215         * testsuite/Makefile.am (check-performance): New.
216         (CLEANFILES): Add.
218 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
219             Benjamin Kosnik  <bkoz@redhat.com>
221         * include/std/std_sstream.h (setbuf): Check __n >= 0.
222         * include/bits/fstream.tcc (setbuf): Tweak.
224 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
226         * include/bits/sstream.tcc (seekoff): We can't seek beyond
227         _M_out_lim, therefore _M_move_out_cur boils down to simply
228         updating _M_out_cur.
229         (seekpos): Likewise, clean up.
231 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
232             Paolo Carlini  <pcarlini@unitus.it>
234         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
235         simply equivalent to the unbuffered case (0, 0) as far as
236         _M_buf_size is concerned.
238 2003-06-18  Andreas Jaeger  <aj@suse.de>
240         * testsuite/Makefile.am (new-abi-baseline): Create baseline
241         directory.
242         (baseline_file): Use baseline_dir.
243         (baseline_dir): New.
244         (mkinstalldirs): New.
246         * acinclude.m4: Rename baseline_file to baseline_dir, strip
247         filename from baseline_dir.
249         * testsuite/Makefile.in: Regenerated.
250         * Makefile.in: Regenerated.
251         * aclocal.m4: Regenerated.
252         * configure: Regenerated.
254 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
256         * configure.in: Missed check_survey bit.
257         * configure: Regenerated.
259 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
261         * scripts: New.
262         * config/abi/extract_symvers: Move to...
263         * scripts/extract_symvers: ...here.
264         * mkcheck.in: Move to..
265         * scripts/check_survey.in: ...here.
266         * testsuite_flags.in: Move to..
267         * scripts/testsuite_flags.in: ...here.
268         * configure.in: Change check and testsuite_flags locations.
269         * configure: Regenerate.
270         * testsuite/Makefile.am (current_symbols.txt): Change location.
271         * testsuite/Makefile.in: Regenerate.
272         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
273         location of testsuite_flags.
274         * Makefile.am (check-script): Move..
275         (check-script-install): Move...
276         * testsuite/Makefile.am: ... here.
277         * testsuite/Makefile.in: Regenerate.
278         * Makefile.in: Regenerate.
280 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
282         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
284 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
286         * Makefile.am (check-abi): Move...
287         (new-abi-baseline): Move...
288         * testsuite/Makefile.am: ...here.
289         (new-abi-baseline): Conditionalize.
290         (check-abi): Conditionalize.
291         (check-abi-verbose): New.
292         * Makefile.in: Regenerate.
293         * testsuite/Makefile.in: Regenerate.
294         * configure.in: Consolidate testsuite configure bits.
295         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
296         * configure: Regenerate.
297         * aclocal.m4: Regenerate.
298         * testsuite/abi_check.cc: Add --check-verbose.
299         Only output detailed information if --check-verbose.
301 2003-06-16  Andreas Jaeger  <aj@suse.de>
303         * testsuite/abi_check.cc: Create summary report.
305 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
307         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
308         for systems with BUFSIZ != 8192.
309         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
310         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
311         Minor tweaks.
313 2003-06-16  Andreas Jaeger  <aj@suse.de>
315         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
316         check-abi multilib aware.
317         * aclocal.m4: Regenerate.
318         * configure: Regenerate.
320 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
321             Andreas Jaeger  <aj@suse.de>
323         * configure.host: Set x86_64 abi_baseline pair correctly.
325 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
327         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
328         fix for missing seeks between gets and puts into...
329         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
330         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
331         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
332         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
333         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
334         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
336 2003-06-15  Richard Henderson  <rth@redhat.com>
338         * config/linker-map.gnu: Export virtual function thunks for
339         64-bit systems too.
341 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
343         * config/abi/i686-pc-linux-gnu: To..
344         * config/abi/i486-linux-gnu: ...this.
345         * config/abi/alphaev67-unknown-linux-gnu: To..
346         * config/abi/alpha-linux-gnu: ...this.
347         * config/abi/ia64-unknown-linux-gnu: To...
348         * config/abi/ia64-linux-gnu: ...this.
349         * config/abi/x86_64-unknown-linux-gnu: To...
350         * config/abi/x86_64-linux-gnu: ...this.
351         * config/abi/i386-unknown-freebsd4: To...
352         * config/abi/i386-freebsd4: ...this.
353         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
354         CXXABI.
355         * configure.host: abi_baseline_triplet to abi_baseline_pair.
356         Simplify cpu bits so that abi_baseline_pair can use the same
357         cpu configuration.
358         * acinclude.m4: Same.
359         * aclocal.m4: Regenerate.
360         * configure.in: Can't get enable_abi_check to yes unless native.
361         * configure: Regenerate.
363 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
365         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
366         fix for missing seeks between gets and puts into...
367         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
368         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
369         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
370         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
371         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
372         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
373         for missing seeks between gets and puts.
374         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
375         * testsuite/data/seekoff-1.tst: New.
376         * testsuite/data/seekoff-2.tst: New.
377         * testsuite/data/seekpos-1.tst: New.
378         * testsuite/data/seekpos-2.tst: New.
380 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
382         Avoid multi-processor bus contention on increment/decrement-and-
383         test of the reference count in the empty-string object, by comparing
384         addresses first, and never touching the reference count of the empty-
385         string object.
386         * include/bits/basic_string.h:
387         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
388         members.
389         (_Rep::_S_empty_rep()): New accessor.
390         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
391         a base class _Rep_base.
392         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
393         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
394         since no longer must increment its refcount.
395         * include/bits/basic_string.tcc:
396         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
397         return immediately.  The former might be unnecessary.  The latter
398         prevents begin() and end() from cloning it unnecessarily.
399         (_S_construct(_InIterator, _InIterator, const _Alloc&,
400         input_iterator_tag), _S_construct(_InIterator, _InIterator,
401         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
402         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
403         (_M_mutate): Check for the empty string and treat it as shared.
404         This is necessary here because _M_mutate is sometimes called with
405         all-zero arguments; in all other uses of _M_is_shared, the test comes
406         out right anyhow.
408 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
410         * src/allocator-inst.cc: Explicitly instantiate.
411         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
412         Tweaks.
413         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
415 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
417         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
418         * aclocal.m4: Regenerate.
419         * Makefile.am (SUBDIRS): Remove libio.
420         * Makefile.in: Regenerate.
421         * configure.in: Same.
422         * configure: Regenerate.
423         * config/io/basic_file_libio.cc: Remove.
424         * config/io/basic_file_libio.h: Remove.
425         * config/io/c_io_libio_codecvt.c: Remove.
426         * config/io/c_io_libio.h: Remove.
427         * libio/*: Remove.
428         * src/Makefile.am: Same.
429         * src/Makefile.in: Regenerate.
430         * docs/html/configopts.html: Edits.
431         * docs/html/explanations.html: Edits.
433 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
435         * include/bits/stl_alloc.h (__debug_alloc): Move out.
436         (__malloc_alloc): Same.
437         (__pool_alloc): Same.
438         (__new_alloc): Same.
439         Rename to..
440         * include/bits/allocator.h: ...this.
441         * include/bits/stl_deque.h: Modify comment.
442         * include/bits/stl_tree.h: Modify include.
443         * include/std/std_memory.h: Same.
444         * include/ext/rope: Same.
445         * include/ext/slist: Same.
446         * include/std/std_vector.h: Same.
447         * include/std/std_stack.h: Same.
448         * include/std/std_queue.h: Same.
449         * include/std/std_list.h: Same.
450         * include/std/std_deque.h: Same.
451         * include/backward/alloc.h: Same.
452         * include/ext/debug_allocator.h: New.
453         * include/ext/malloc_allocator.h: New.
454         * include/ext/pool_allocator.h: New.
455         * include/ext/new_allocator.h: New.
456         * include/bits/pthread_allocimpl.h: Remove.
457         * include/bits/stl_pthread_alloc.h: Remove.
458         * include/Makefile.am (ext_headers): Add.
459         * include/Makefile.in: Regenerate.
460         * src/stl-inst.cc: Use __gnu_cxx namespace.
461         * src/stl-inst.cc: Move to...
462         * src/allocator-inst.cc: Here.
463         * src/Makefile.am (sources): Update.
464         * src/Makefile.in: Regenerate.
465         * config/linker-map.gnu: Remove __pool_alloc bits.
466         * testsuite/ext/headers.cc: Add.
467         * testsuite/ext/allocators.cc: Fixup.
469 2003-06-11  Stefan Olsson  <stefan@snon.net>
470             Ola Rönnerup  <fnolis@home.se>
472         * include/Makefile.am (ext_headers): Add.
473         * include/Makefile.in: Regenerate.
474         * include/ext/mt_allocator.h: New file.
476 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
478         * include/bits/fstream.tcc (close): Clean up a bit.
480         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
482         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
483         - the saved _M_in_cur, that is - cannot be null.
484         (sync): Constify a variable.
486         * include/std/std_streambuf.h: Tweak a comment.
487         (in_avail): Constify a variable.
489 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
491         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
492         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
493         correctness of container::iterator typedefs.  Fix whitespace.
494         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
495         to allocator docs.
496         * docs/html/documentation.html:  Regenerate.
498         * include/bits/basic_string.h, include/bits/basic_string.tcc,
499         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
500         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
501         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
502         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
503         include/bits/stl_vector.h, include/bits/vector.tcc,
504         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
505         Change _Iter names to _Iterator, and __pos to __position.
507         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
508         include/bits/stl_multiset.h, include/bits/stl_set.h:
509         Remove emacs markers.
511         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
513 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
515         * include/bits/fstream.tcc (overflow): According to
516         27.5.2.4.5, overflow() returns not_eof(eof()).
517         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
518         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
520 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
522         * include/bits/fstream.tcc (_M_underflow): Check overflow return
523         value; tweak slightly.
525 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
527         * include/bits/fstream.tcc (_M_underflow): Do not special
528         case the unbuffered case, which really means simply a one char
529         get area.
530         (basic_filebuf): Initialize _M_buf_size.
531         (setbuf): Unbuffered means _M_buf_size == 1, since only
532         _M_buf_size - 1 == 0 chars are going to be used for the
533         put area and 1 for the get area.
534         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
535         (~basic_streambuf): Tweak.
536         (basic_streambuf): Do not initialize _M_buf_size.
537         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
538         (~basic_filebuf): Tweak.
539         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
540         unbuffered situation (i.e., put area pointers NULL).
541         * include/bits/streambuf.tcc (sbumpc): Clean up.
542         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
543         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
544         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
545         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
546         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
547         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
548         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
550 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
552         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
553         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
554         statements.
555         * configure.in:  Centralize AM_CONDITIONALs so that they are always
556         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
557         * aclocal.m4, configure:  Regenerated.
559 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
561         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
563 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
565         * include/bits/stl_iterator.h
566         (reverse_iterator::reverse_iterator()): Apply DR235: default
567         constructor default-initializes data member.  Instantiated on a
568         pointer type, the member has to end up equal to zero.
570 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
572         * include/bits/stl_alloc.h: Cleanups.
573         * include/ext/functional: Same.
574         * include/ext/hash_map: Same.
575         * include/ext/hash_set: Same.
576         * include/ext/iterator: Same.
577         * include/ext/memory: Same.
578         * include/ext/numeric: Same.
579         * include/ext/rb_tree: Same.
580         * include/ext/ropeimpl.h: Same.
581         * include/ext/slist: Same.
582         * include/ext/stdio_filebuf.h: Same.
583         * include/ext/stdio_sync_filebuf.h: Same.
584         * include/ext/stl_rope.h: Move to...
585         * include/ext/rope: ...here.
586         * include/ext/stl_hash_fun.h: Move to...
587         * include/ext/hash_fun.h: ...here.
588         * include/ext/stl_hashtable.h: Move to...
589         * include/ext/hashtable.h: ...here.
590         * include/backward/hashtable.h: Reflect new names.
591         * include/Makefile.am: Same.
592         * include/Makefile.in: Regenerated.
594 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
596         PR libstdc++/9024
597         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
598         * include/bits/stl_algobase.h: Tweak.
599         * include/std/std_fstream.h: Move _M_buf_size to...
600         * include/std/std_streambuf.h: ...here. Modify.
601         * include/bits/streambuf.tcc: Same.
602         * testsuite/testsuite_hooks.h: Tweak.
603         * testsuite/testsuite_io.h (constraint_filebuf): New.
604         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
605         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
606         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
607         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
608         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
609         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
610         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
611         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
612         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
613         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
614         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
615         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
616         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
617         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
618         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
619         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
620         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
621         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
622         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
623         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
624         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
625         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
626         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
627         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
628         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
629         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
630         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
631         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
632         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
633         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
634         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
635         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
636         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
637         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
638         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
639         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
640         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
641         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
642         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
643         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
644         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
645         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
646         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
647         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
648         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
649         * testsuite/data/sgetc.txt: New.
650         * testsuite/data/sgetn.txt: New.
652 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
654         PR libstdc++/11095
655         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
656         Deal with width() smaller than zero.
657         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
658         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
659         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
660         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
661         operator<<(basic_ostream, const basic_string&)): Likewise.
663         * testsuite/27_io/basic_istream/extractors_character/char/
664         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
665         * testsuite/27_io/basic_ostream/inserters_character/char/
666         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
667         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
668         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
670 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
672         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
673         .gch compilation works.
674         * aclocal.m4, configure: Regenerate.
675         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
676         initialize PCHFLAGS.
678 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
680         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
681         erase(iterator), erase(iterator, iterator), c_str,
682         compare(const basic_string&)): Constify various variables.
683         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
684         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
685         _S_create, resize, _M_replace, _M_replace_safe,
686         append(const basic_string&), append(const basic_string&, size_type,
687         size_type), append(const _CharT*, size_type), append(size_type,
688         _CharT), operator+(const _CharT*, const basic_string&),
689         operator+(_CharT, const basic_string&), replace(iterator, iterator,
690         size_type, _CharT), find(const _CharT*, size_type, size_type),
691         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
692         rfind(_CharT, size_type), compare(size_type, size_type,
693         const basic_string&), compare(size_type, size_type,
694         const basic_string&, size_type, size_type), compare(const _CharT*),
695         compare(size_type, size_type, const _CharT*), compare(size_type,
696         size_type, const _CharT*, size_type)): Likewise.
698 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
700         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
701         'if' branch less obscure.
703 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
705         PR libstdc++/9815
706         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
707         asm case to asm.
708         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
709         (__atomic_add): likewise.
711 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
713         * include/bits/sstream.tcc (pbackfail): Minor clean up and
714         reformatting, consistent with basic_filebuf::pbackfail.
716 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
718         PR libstdc++/11062
719         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
720         __attribute__ ((__unused__)).
721         * config/os/aix/atomicity.h:  Likewise.
723 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
725         PR libstdc++/9761
726         * include/bits/fstream.tcc (pbackfail): If the pback buffer
727         is already active don't try to store in it a second char.
728         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
730         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
732 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
734         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
735         line spacing.
737 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
739         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
740         instead of unnecessarily taking the address of _M_pback.
741         (xsgetn): Simplify slightly for a single char pback buffer.
743 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
745         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
746         variables and two 'if', clean up.
748 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
750         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
751         not _M_out_end, since the former actually points to the string
752         end (vs buffer end).
753         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
755 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
757         * docs/doxygen/filter:  New file.
758         * docs/doxygen/filter.sed:  New file.
759         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
760         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
761         * docs/html/documentation.html:  Fix links to doxygen pages.
763 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
765         * include/bits/fstream.tcc (_M_convert_to_external): Don't
766         check for __ilen > 0.
768 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
770         PR libstdc++/10783
771         * include/bits/stl_iterator.h (class __normal_iterator):
772         Don't inherit from iterator, add missing typedefs.
774 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
776         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
777         * testsuite/24_iterators/reverse_iterator/1.cc: New.
778         * testsuite/24_iterators/reverse_iterator/2.cc: New.
779         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
780         PR libstdc++/10783.
782 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
784         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
785         on IA64 HP-UX.
786         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
787         _LIBUNWIND_STD_ABI is set.
789 2003-05-26  Brendan Kehoe  <brendan@zen.org>
791         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
792         make sure the number of digits required after the decimal-point
793         (if any) is exactly the value returned by frac_digits().
794         * testsuite/22_locale/money_get/get/char/9.cc: New.
795         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
797 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
799         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
800         comment.
802 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
804         PR libstdc++/9339
805         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
806         (_M_pback): No array necessary.
807         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
808         unbuffered case, coalesec into ...
809         (basic_filebuf::overflow): ...this.
810         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
811         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
813 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
815         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
816         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
817         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
818         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
819         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
820         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
821         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
822         libsupc++/eh_unex_handler.cc, libsupc++/exception,
823         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
824         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
825         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
826         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
827         Replace "GNU CC" with "GCC".
829         * include/backward/new.h: Replace "GNU CC" with "GCC".
831 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
833         PR libstdc++/3066.
834         * configure.in: Switch target to host, don't assume newlib.
835         (target_alias): Remove.
836         * configure: Regenerate.
837         * acinclude.m4: Same.
838         * aclocal.m4: Regenerate.
839         * configure.target: Same. Rename to...
840         * configure.host: This.
842 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
844         * include/std/std_fstream.h (_S_pback_size): Remove definition.
845         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
846         pback buffer.
847         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
848         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
849         of _S_pback_size for systems with no COMDAT or weak support.
850         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
851         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
852         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
853         * testsuite/27_io/basic_fstream/3.cc: Likewise.
854         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
855         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
856         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
857         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
858         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
860 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
862         * include/bits/fstream.tcc (_M_underflow): Simplify:
863         !__testout implies _M_filepos == _M_in_end, therefore
864         the first _M_file.seekoff call is never issued.
866 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
868         * configure.in: Sort cross table.
869         * configure: Regenerate.
871 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
873         PR libstdc++/10106
874         * configure.in: Add Solaris cross bits.
876 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
878         * libstdc++-v3/config/os/mingw32/os_defines.h
879         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
880         (NOMINMAX): Define.  Update copyright year.
882 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
884         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
886 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
888         * docs/html/faq/index.html: Fix typo.
889         * docs/html/faq/index.txt: Regenerate.
891 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
893         * docs/html/test.html: Fix markup.
895 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
897         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
898         zero.
899         Update copyright year.
901 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
903         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
905 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
907         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
908         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
910 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
912         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
913         Cast via void* to avoid -Wcast-align warnings.
914         (__default_alloc_template::_S_refill): Likewise.
916 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
918         * testsuite/README: Move to...
919         * docs/html/test.html: ...here. Add documentation.
920         * docs/html/install.html: Move testing bits out..
921         * docs/html/documentation.html: Add separate testing link.
922         * testsuite/performance: Add.
923         * testsuite/performance/allocator.cc: New.
924         * testsuite/performance/complex_norm.cc: New.
925         * testsuite/performance/cout_insert_int.cc: New.
926         * testsuite/performance/fstream_seek_write.cc: New.
927         * testsuite/performance/ifstream_getline.cc: New.
928         * testsuite/performance/map_create_fill.cc: New.
929         * testsuite/performance/ofstream_insert_float.cc: New.
930         * testsuite/performance/ofstream_insert_int.cc: New.
931         * testsuite/performance/string_append.cc: New.
932         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
933         performance tests.
935 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
937         PR libstdc++/10689
938         * include/std/std_complex.h (pow): Tidy.
940 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
942         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
943         that upon filebuf::close() 27.8.1.1,3 is enforced.
945 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
947         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
949 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
950             Nathan Myers  <ncm@cantrip.org>
952         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
953         _M_convert_to_external only once (_M_buf_size is now the size of
954         the put area + 1 for the overflow char of a full area); call
955         _M_set_buffer instead of _M_set_indeterminate.
956         (setbuf): Don't accept a buffer smaller than 2 chars.
957         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
958         instead of _M_set_determinate.
959         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
960         (seekoff): Likewise.
961         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
962         std::ios_base::openmode, bool, size_t),
963         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
964         Likewise.
965         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
966         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
967         _M_buf_size - 1.
968         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
969         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
970         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
971         the put area is now BUFSIZ - 1.
972         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
973         that now the smallest _M_buf_size is 2 (still fails, for the same
974         reason, with 3.2.3)
976 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
978         * testsuite/thread/pthread4.cc: Tweak test.
980 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
982         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
983         excess errors dg marker, use dg-errors instead.
984         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
985         * testsuite/20_util/auto_ptr_neg.cc: Same.
987 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
989         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
990         cached member.
991         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
992         Initialize _M_codecvt.
993         (basic_filebuf::imbue): Same.
994         (basic_filebuf::showmanyc): Use it.
995         (basic_filebuf::underflow): Use it.
996         (basic_filebuf::_M_convert_to_external): Use it.
997         (basic_filebuf::seekoff): Use it.
998         (basic_filebuf::imbue): Use it, tweaks.
999         * include/bits/localefwd.h (__check_facet): New.
1000         * include/bits/locale_classes.h: Tweaks.
1001         * include/bits/locale_facets.tcc: Tweaks.
1002         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
1003         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
1004         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
1005         * include/bits/basic_ios.tcc: Same.
1006         * include/bits/istream.tcc: Same.
1007         * include/bits/ostream.tcc: Same.
1008         * include/std/std_streambuf.h: Same.
1009         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
1010         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
1011         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
1012         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
1013         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
1014         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
1016 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
1018         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
1019         unnecessary includes and unused string literals.
1020         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
1021         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
1022         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
1023         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
1025 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
1027         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
1029 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
1031         * include/std/std_fstream.h (_M_convert_to_external): Change
1032         to return bool, take two less streamsize parameters.
1033         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
1034         consistently definition.
1035         (_M_overflow): Adjust call points.
1037 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
1039         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
1041 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
1043         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
1044         * testsuite/Makefile.in:  Regenerate.
1046 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
1048         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
1049         * testsuite/Makefile.in:  Regenerate.
1051 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
1053         PR libstdc++/3181
1054         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
1055         (acos): Handle integer argument.
1056         (asin): Likewise.
1057         (atan): Likewise.
1058         (atan2): Likewise.
1059         (ceil): Likewise.
1060         (cos): Likewise.
1061         (cosh): Likewise.
1062         (exp): Likewise.
1063         (fabs): Likewise.
1064         (floor): Likewise.
1065         (frexp): Likewise.
1066         (ldexp): Likewise.
1067         (log): Likewise.
1068         (log10): Likewise.
1069         (sin): Likewise.
1070         (sinh): Likewise.
1071         (sqrt): Likewise.
1072         (tan): Likewise.
1073         (tanh): Likewise.
1074         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
1075         (__enable_if): Likewise.
1076         * testsuite/26_numerics/cmath/overloads.C: New test.
1078 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
1080         PR libstdc++/9027
1081         PR libstdc++/9520
1082         PR libstdc++/10096
1083         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
1084         implementation, based on old wchar_t specialization, add support
1085         for codecvt::in() return value of codecvt_base::noconv, remove
1086         _M_file.sys_ungetc() call.
1087         * include/std/std_fstream.h (basic_file::underflow,
1088         basic_file::uflow, basic_file::_M_underflow):  Remove
1089         specialization declarations, call _M_underflow from generic versions
1090         of underflow and uflow.
1091         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
1092         basic_file::_M_underflow):  Remove specializations.
1093         * src/Makefile.am (sources):  Remove fstream.cc.
1094         * src/Makefile.in:  Regenerated.
1095         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
1096         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
1097         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
1098         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
1100 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
1102         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
1103         buffer.
1104         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
1105         unbuffered bits.
1106         (__basic_file::xsputn): Same.
1107         (__basic_file::seekoff): Same.
1108         (__basic_file::seekpos): Same.
1109         (__basic_file::showmanyc): Same.
1110         * config/io/basic_file_stdio.cc: Same.
1111         * include/std/std_fstream.h: Same.
1112         * include/bits/fstream.tcc: Same.
1113         * src/fstream.cc: Same.
1114         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
1116 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
1118         PR libstdc++/9520
1119         PR libstdc++/9661
1120         PR libstdc++/9662
1121         * include/ext/stdio_sync_filebuf.h:  New file.
1122         (basic_stdiobuf):  New.
1123         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
1124         * include/Makefile.in: Regenerate.
1125         * include/bits/ios_base.h (Init::_S_create_buffers,
1126         Init::_S_destroy_buffers):  Remove declarations.
1127         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
1128         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
1129         * src/ios.cc (Init::_S_create_buffers,
1130         Init::_S_destroy_buffers):  Remove.
1131         (Init::Init):  Create and use syncronized buffers.
1132         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
1133         create and install unsyncronized buffers.
1134         * testsuite/27_io/objects/char/10.cc:  New test.
1135         * testsuite/27_io/objects/char/9.cc:  New test.
1136         * testsuite/27_io/objects/char/9661-1.cc:  New test.
1137         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
1138         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
1139         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
1140         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
1141         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
1142         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
1143         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
1144         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
1145         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
1146         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
1147         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
1148         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
1149         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
1150         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
1151         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
1152         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
1153         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
1154         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
1155         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
1156         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
1157         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
1158         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
1159         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
1160         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
1161         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
1162         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
1163         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
1164         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
1165         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
1166         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
1167         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
1168         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
1169         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
1170         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
1171         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
1172         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
1173         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
1174         * testsuite/ext/stdiobuf_char.cc:  New test.
1175         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
1177 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
1179         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
1180         unnecessary includes and unused string literals.
1181         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
1183 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
1185         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
1187 2003-05-07  Richard Henderson  <rth@redhat.com>
1189         PR c++/10570
1190         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
1191         (__cxa_end_catch): Likewise.
1192         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
1193         _Unwind_Resume_or_Rethrow.
1194         * libsupc++/eh_personality.cc (empty_exception_spec): New.
1195         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
1196         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
1197         exceptions.  Don't push terminate/unexpected to cxa functions.
1198         (__cxa_call_unexpected): Remove foreign exception fixmes.
1200 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
1202         * testsuite/27_io/ios_base/cons: New.
1203         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
1204         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
1206 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
1208         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
1209         * src/fstream.cc
1210         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
1211         there is no buffer or __testget == !__testinit.
1213         * src/fstream.cc
1214         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
1215         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
1217         * include/std/std_fstream.h (_M_destroy_pback): Don't set
1218         unnecessarily _M_pback_cur_save and _M_pback_end_save.
1220         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
1222         * include/std/std_sstream.h (_M_sync): Minor tweak.
1224         * include/bits/fstream.tcc (close): No need to call
1225         _M_destroy_pback, setting _M_pback_init to false suffices
1226         to clean up.
1228 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
1230         * include/bits/stl_algo.h: Enums as _S_.
1231         * include/bits/stl_tree.h: Same.
1232         * include/bits/stl_bvector.h: Same.
1233         * include/bits/ios_base.h: Same.
1234         * include/bits/stl_alloc.h: Same.
1235         * include/ext/stl_hashtable.h: Same.
1236         * src/ios.cc: And here.
1238         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
1239         * include/bits/sstream.tcc: Same.
1241         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
1243         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
1245         * include/bits/locale_facets.h (__num_base): Remove protected.
1246         Use _S_[io]* names for enumerations.
1247         (_S_format_int): Remove.
1248         * include/bits/locale_facets.tcc: Same.
1249         * src/locale.cc: Same.
1251         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
1253 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
1255         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
1256         * docs/html/faq/index.txt:  Regenerated.
1258 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
1259             Matt Kraai <kraai@alumni.cmu.edu>
1261         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
1262         And retweak.
1264 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
1266         * configure.target (mips*): Use the generic atomicity.h by default.
1268 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
1269             (Inspired by an alternate patch from Danny Smith.)
1271         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
1272         (_Swap_lock_struct<>): ...and the horse it rode in on.
1273         * src/globals.cc (_Swap_lock_struct<>): Likewise.
1274         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
1275         member to support...
1276         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
1277         visibility rules related to POSIX threads.
1278         * testsuite/thread/pthread7-rope.cc: New test.
1280 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
1282         * testsuite/21_strings/basic_string/find/char/3.cc: New
1283         file, testing basic_string<char>::find_first_not_of.
1284         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
1285         Likewise for basic_string<wchar_t>.
1287 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
1289         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
1291 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
1293         * include/Makefile.am (CLEANFILES): Remove PCH files in target
1294         directory.
1295         * include/Makefile.in: Regenerate.
1297 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
1299         * include/std/std_sstream.h (str()): Tidy.
1301 2003-05-02  Nathan Myers  <ncm@cantrip.org>
1302             Paolo Carlini  <pcarlini@unitus.it>
1304         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
1306 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
1308         * include/bits/basic_string.h (swap): Remove redundant template
1309         parameters from declaration of non-template member function.
1311 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
1313         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
1314         * configure.in:  Move libintl.h header test...
1315         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
1316         the NLS-related test results into one symbol.
1317         * src/functexcept.cc:  Use it here.
1318         * aclocal.m4, config.h.in, configure:  Regenerated.
1320 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1322         * include/bits/sstream.tcc (overflow): Instead of calling
1323         str(), then _M_string.reserve, thus copying the contents
1324         of the current buffer two times, just copy the latter in
1325         a temporary, then use the 'swap trick'.
1327 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1329         * include/std/std_sstream.h (str()): Revert the best of the
1330         previous 'improvement', incorrect due to the COW nature of
1331         v3 basic_string; simplify.
1333 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1335         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
1336         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
1338 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
1340         * testsuite/abi_check.cc (check_version): Update known versions.
1341         Check added symbols for version_name != base version. Add missing
1342         symbols to incompatible list.
1344 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
1346         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
1347         * aclocal.m4: Regenerated.
1348         * configure: Regenerated.
1350 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1352         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
1353         Const-ify some variables.
1354         (basic_streambuf::xsputn): Likewise; change the type of some
1355         variables to size_t.
1356         (__copy_streambufs): Change some variables to size_t.
1358 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1360         * include/std/std_sstream.h (str()): Avoid constructing
1361         a basic_string temporary not only when it would turn out
1362         to be zero-sized but also when identical to the current
1363         _M_string buffer.
1365 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
1367         * include/ext/stdio_filebuf.h
1368         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
1369         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
1370         Shorten a bit (-10 lines) by factoring out some code.
1372 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
1374         * acinclude.m4:  Add bit missing from previous patch.
1375         * aclocal.m4, configure:  Regenerated.
1377 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
1379         * docs/doxygen/mainpage.html:  Bring up to date.
1380         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
1381         in Doxygen.
1382         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
1383         breaks everything.  Don't scan them.
1384         * docs/html/documentation.html:  Point to "Write after approval"
1385         notes.
1387 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
1389         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
1390         of libc if message translations are being used.  Fix info text in
1391         xieee_1003.1-2001 case.
1392         * aclocal.m4, configure:  Regenerate.
1394 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
1395            Loren J. Rittle <ljrittle@acm.org>
1396            Martin v. Loewis  <martin@v.loewis.de>
1398         * config/cpu/i386/atomicity.h: New file.
1400 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
1402         * include/bits/fstream.tcc (open): Change to single return.
1404 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
1406         * include/std/std_sstream.h (underflow): Change to single return.
1408 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1410         * include/std/std_streambuf.h (_M_buf): is currently
1411         used only for basic_filebuf, therefore move it there.
1412         (basic_streambuf(), ~basic_streambuf()): Adjust.
1413         * include/std/std_fstream.h (_M_buf): Moved here.
1414         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
1415         is actually redundant for basic_stringbuf.
1416         (_M_really_sync): Likewise.
1417         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
1418         * include/bits/sstream.tcc (seekoff): Adjust.
1420 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1422         * src/localename.cc: Standardize exception strings.
1423         * src/locale.cc: Same.
1424         * src/ios.cc: Same.
1425         * include/bits/basic_string.tcc: Same.
1426         * include/bits/basic_ios.tcc: Same.
1427         * include/std/std_bitset.h: Same.
1428         * include/ext/ropeimpl.h: Same.
1429         * include/bits/stl_vector.h: Same.
1430         * include/bits/stl_deque.h: Same.
1431         * include/bits/stl_bvector.h: Same.
1432         * config/locale/generic/c_locale.cc: Same.
1433         * config/locale/gnu/c_locale.cc: Same.
1434         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
1436         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
1438 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1440         * include/std/std_streambuf.h (_M_buf_size): is currently
1441         used only for basic_filebuf, therefore move it there.
1442         (basic_streambuf(), ~basic_streambuf()): Adjust.
1443         * include/std/std_fstream.h (_M_buf_size): Moved here.
1444         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
1446 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1448         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
1449         _M_buf_size (synced input is now correctly dealt with
1450         elsewhere); when the output buffer is full don't fall back
1451         to a snextc-sputc loop, call overflow instead.
1453 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
1455         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
1456         the innermost 'if' by factoring out some code.
1458 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
1460         * configure.in:  Test for libintl.h.
1461         * include/bits/c++config:  Define __N for everybody.
1462         * include/bits/basic_string.h, include/bits/stl_bvector.h,
1463         include/bits/stl_deque.h, include/bits/stl_vector.h,
1464         include/std/std_bitset.h:  Wrap all __throw* text with __N.
1465         * po/Makefile.am (pot):  New rule, mostly working.
1466         * src/functexcept.cc:  Call gettext on all __throw* arguments when
1467         -fexceptions is in effect.
1468         * po/Makefile.in, config.h.in, configure:  Regenerate.
1470 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
1472         PR libstdc++/9523
1473         * include/bits/ios_base.h (Init::_S_ios_create,
1474         Init::_S_ios_destroy):  Remove declarations.
1475         (Init::_S_create_buffers,
1476         Init::_S_destroy_buffers):  Declare
1477         * src/ios.cc (Init::_S_ios_create):  Remove
1478         (Init::_S_create_buffers):  Create buffers and add to streams.
1479         (Init::_S_ios_destroy):  Rename to...
1480         (Init::_S_destroy_buffers):  this.
1481         (Init::Init):  Only construct streams once.
1482         (Init::~Init):  Flush streams, don't destroy them.
1483         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
1484         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
1485         * testsuite/27_io/objects/char/5.cc:  New test.
1486         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
1487         * testsuite/27_io/objects/char/6.cc:  New test.
1488         * testsuite/27_io/objects/char/7.cc:  New test.
1490 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1492         * testsuite/27_io/objects/char/8.cc:  New test.
1494 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
1496         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
1497         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
1499 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
1501         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
1502         _M_destroy_pback. _M_pback_create to
1503         _M_create_pback. _M_underflow_common to
1504         _M_underflow. _M_really_overflow to _M_overflow.
1505         * include/bits/fstream.tcc: Same.
1506         * src/fstream.cc: Same.
1507         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
1508         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
1509         * include/bits/streambuf.tcc: Same.
1510         * include/bits/fstream.tcc: Same.
1511         * include/bits/sstream.tcc: Same.
1513 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
1515         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
1516         from fixed size array.
1517         (locale): Change _S_categories as well.
1518         Formatting tweaks.
1519         * include/bits/locale_facets.tcc: Tweak.
1520         * config/locale/gnu/c_locale.cc: Assign _S_categories.
1521         * config/locale/generic/c_locale.cc: Same.
1522         * src/locale.cc: Tweak.
1523         * src/globals.cc: Change facet_name to name_vec, add names_c.
1524         * src/localename.cc: Use them.
1525         (locale::_Impl::~_Impl): Destroy _M_names.
1526         (locale::_Impl::_Impl): Create _M_names.
1528 2003-04-27  Andreas Schwab  <schwab@suse.de>
1530         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1531         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
1533 2003-04-27  Nathan Myers  <ncm@cantrip.org>
1535         Move some basic_string members out of line because
1536         they are too big to reasonably be inline.
1537         * include/bits/basic_string.h
1538         (assign(const basic_string&, size_type, size_type),
1539         assign(const _CharT*, size_type),
1540         insert(size_type, const basic_string&, size_type, size_type),
1541         insert(size_type, const _CharT*, size_type),
1542         replace(size_type, size_type, const _CharT*, size_type)):
1543         Move from here to...
1544         * include/bits/basic_string.tcc: ...here.
1546 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1548         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
1549         the innermost 'if' by factoring out some code.
1551 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1553         * include/bits/streambuf.tcc (__copy_streambufs): Don't
1554         use in_avail(), simplify.
1556 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
1558         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
1559         in basic_stringbuf it's unused.
1561         * include/std/std_sstream.h (underflow): consistently use
1562         _M_in_cur, not gptr().
1564 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
1565             Phil Edwards  <pme@gcc.gnu.org>
1567         * testsuite_flags.in: Guard against the possibility
1568         of having "xgcc" as a part of a folder name in the
1569         path to the GCC build folder.
1570         * testsuite/Makefile.am: Likewise.
1571         * testsuite/Makefile.in: Regenerated.
1573 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
1575         PR libstdc++/10132
1576         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
1577         exception specifications.
1578         (basic_filebuf::close): Same.
1579         (basic_filebuf::_M_pback_destroy): Same.
1580         (basic_filebuf::_M_destroy_internal_buffer): Same.
1581         (basic_filebuf): Remove __res_type typedef.
1582         * src/fstream.cc: Same.
1583         * include/bits/fstream.tcc
1584         (basic_filebuf::_M_convert_to_external): Simplify.
1585         (basic_filebuf::seekoff): Use has_facet before use_facet.
1586         (basic_filebuf::close): Add exception specification of throw().
1587         * testsuite/27_io/basic_filebuf/cons: New.
1588         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
1589         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
1590         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
1591         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
1593 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
1595         * include/bits/locale_classes.h
1596         (locale::_S_extra_categories_size): Remove.
1597         * src/locale.cc: Remove _S_extra_categories_size.
1598         * src/localename.cc: Same.
1599         * config/locale/gnu/c_locale.cc: Same.
1600         * config/locale/generic/c_locale.cc: Same.
1602 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
1604         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
1606 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
1608         * docs/html/17_intro/howto.html:  Update some links.
1609         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
1610         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
1611         * docs/html/ext/howto.html:  Link to demangler notes and API.
1612         * docs/html/faq/index.html:  Remove trailing whitespace.
1613         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
1614         (5.6):  Change to a bulleted list.
1616         * docs/html/faq/index.txt, docs/html/documentation.html,
1617         docs/html/17_intro/porting.html:  Regenerate.
1619 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
1621         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
1622         belongs to basic_filebuf.
1623         * testsuite/27_io/basic_fstream/3.cc: Likewise.
1624         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
1625         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
1626         instantiation (now belongs to basic_filebuf).
1627         * testsuite/27_io/basic_iostream/3.cc: Likewise.
1628         * testsuite/27_io/basic_istream/3.cc: Likewise.
1629         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
1630         _S_pback_size now belongs to basic_filebuf.
1631         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
1632         instantiation (now belongs to basic_filebuf).
1633         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
1634         belongs to basic_filebuf.
1635         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
1636         instantiation (now belongs to basic_filebuf).
1637         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
1638         _S_pback_size now belongs to basic_filebuf.
1639         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
1640         instantiation (now belongs to basic_filebuf).
1641         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
1642         to basic_filebuf.
1643         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
1644         instantiation (now belongs to basic_filebuf).
1645         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
1647 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
1649         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
1650         * configure: Regenerated.
1652 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
1654         * config/locale/generic/c_locale.h (__convert_from_v): Use
1655         attribute unused.
1657 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
1659         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
1660         implementation only.
1661         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
1662         Comment and change to comply with DR 60 and the effect on gcount().
1663         * include/std/std_istream.h:  Update comments.
1664         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
1665         comments about reasons for tests.  Test sync() against gcount().
1666         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
1667         for effect on gcount().
1668         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
1669         for effect on gcount().
1671 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
1673         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
1674         Adjust timing.
1676 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
1678         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
1679         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
1680         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
1681         (basic_streambuf::basic_streambuf()): Adjust.
1682         * include/std/std_fstream.h (_S_pback_size, _M_pback,
1683         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
1684         _M_pback_create(), _M_pback_destroy()): Moved here
1685         from basic_streambuf.
1686         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
1687         Adjust.
1688         (basic_filebuf::_S_pback_size): Add declaration.
1689         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
1690         Remove declaration.
1692 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1694         Consistently use _M_in_beg instead of eback(), _M_in_cur
1695         instead of gptr(), and so on.
1696         * include/bits/fstream.tcc (pbackfail, imbue): Here.
1697         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
1698         * include/bits/streambuf.tcc (sbumpc, sputbackc,
1699         __copy_streambufs): Ditto.
1700         * include/std/std_streambuf.h (sgetc): Ditto.
1702 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1704         * include/bits/sstream.tcc (pbackfail, overflow):
1705         Formatting fixes.
1707 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
1709         * include/std/std_streambuf.h (uflow()): It's used only by
1710         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
1711         therefore do not consider the _M_buf_unified == true case.
1713         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
1715 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
1717         * docs/html/ext/howto.html ('LWG Issues'):
1718         Add issues 19, 90, 171, 231, 271.
1720 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
1722         * include/bits/sstream.tcc (pbackfail): Remove redundant
1723         NULL pointer check from test involving _M_in_*.
1724         (overflow, seekoff, seekpos): Const qualify bool variables.
1725         * include/std/std_sstream.h (underflow): Remove redundant
1726         NULL pointer check from test involving _M_in_*.
1727         (_M_really_sync): Const qualify bool variables.
1728         * src/fstream.cc (_M_underflow_common): Remove redundant
1729         NULL pointer check from test involving _M_in_*, const qualify
1730         bool variables.
1732         * include/std/std_streambuf.h (sgetc): Remove redundant
1733         variable.
1735 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
1737         According to 5.9 para 2 (second bullet) for pointers p, q
1738         pointing to the same type, with  p == 0 and q == 0, (p < q)
1739         is false.
1740         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
1741         seekoff): Remove redundant NULL pointer checks from tests
1742         involving _M_out_* and _M_in_*, const qualify bool variables.
1743         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
1744         qualify bool variables.
1745         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
1746         Remove redundant NULL pointer checks from tests involving
1747         _M_out_* and _M_in_*, const qualify bool variables.
1748         * include/std/std_fstream.h (sync): Likewise.
1749         (_M_is_indeterminate): Const qualify bool variables.
1750         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
1751         NULL pointer checks from tests involving _M_out_* and _M_in_*,
1752         const qualify bool variables.
1753         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
1754         variables.
1756 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
1758         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
1759         C99 FP macros, if actually captured.
1761         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
1762         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
1763         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
1764         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
1765         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
1766         New macro.
1767         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
1768         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
1769         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
1770         * include/c_std/std_cstdlib.h: Use new macros.
1771         * include/c_std/std_cstdio.h: Use new macros.
1772         * include/c_std/std_cwchar.h: Use new macros.
1774 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
1776         PR libstdc++/9555
1777         * include/bits/ostream.tcc: Catch all exceptions for formatted
1778         output, instead of std::exception and derivatives.
1779         * include/bits/istream.tcc: Same.
1780         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
1781         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
1782         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
1783         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
1784         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1785         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
1786         New.
1788 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
1790         * include/bits/c++config:  Minor cosmetic tweaks.
1792 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
1794         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
1795         * include/Makefile.am (pch_input): Find in ${target_builddir}.
1796         (pch_output): Rename to...
1797         (pch_output_builddir): ..this.  Find in ${target_builddir}.
1798         (pch_source): Tweak.
1799         (pch_build): Key off a built file.
1800         (pch_output rule): Rename to...
1801         (pch_input rule): ...this.  Produce ${pch_output_builddir}
1802         instead of ${pch_output}.
1803         (install-pch rule): Install ${pch_output_builddir}.
1804         * include/Makefile.in: Regenerated.
1806 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
1808         * include/std/std_streambuf.h (setp): _M_out_lim, being
1809         the end limit of used put area, is set equal to _M_out_beg.
1811 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
1813         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
1814         * aclocal.m4: Regenerated.
1815         * configure.in: Remove old demangler bits.
1816         Call pch checks.
1817         * configure: Regenerate.
1818         * config.h.in: Regenerate.
1819         * include/Makefile.am (allstamps): Now allstamped.
1820         (allcreated): Define this.
1821         (all-local): Use 'em.
1822         Conditionally define pch_build, pch_install based on
1823         GLIBCPP_BUILD_PCH.
1824         (${pch_output}): New rule.
1825         (install-pch): New rule.
1826         (install-headers): New rule.
1827         (install-data-local): Install headers and conditionally pch.
1828         * include/Makefile.in: Regenerate.
1829         * testsuite_flags.in (--build-cxx): Use pch file.
1831 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
1833         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
1835 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
1836             Paolo Carlini  <pcarlini at unitus dot it>
1838         PR libstdc++/9423
1839         * docs/html/27_io/howto.html
1840         ('The buffering is screwing up my program!'): Explain that
1841         opening counts as an I/O operation.
1843 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
1845         * testsuite/thread/pthread1.cc: Enable for darwin test.
1846         * testsuite/thread/pthread2.cc: Same.
1847         * testsuite/thread/pthread3.cc: Same.
1848         * testsuite/thread/pthread4.cc: Same.
1849         * testsuite/thread/pthread5.cc: Same.
1850         * testsuite/thread/pthread6.cc: Same.
1852 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
1854         libstdc++/7680
1855         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
1856         Populate it with multiple legal ways to obtain the C99 float
1857         transcendentals.  Use them instead of direct global reference.
1858         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
1859         * docs/html/17_intro/porting.texi
1860         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
1861         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
1862         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
1863         * config/os/bsd/freebsd/os_defines.h
1864         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
1865         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
1866         * testsuite/26_numerics/c_math_dynamic.cc: New file.
1868 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
1869             Benjamin Kosnik  <bkoz@redhat.com>
1871         * config/os/generic/ctype_inline.h: Fix.
1873 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
1875         * testsuite/testsuite_hooks.h
1876         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
1877         Change to try_named_locale.
1878         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
1880         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
1881         try_named_locale.
1882         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
1883         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
1884         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
1885         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
1886         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
1887         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
1888         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
1889         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
1890         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
1891         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
1892         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
1893         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
1894         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
1895         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
1896         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
1897         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
1898         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
1899         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
1900         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
1901         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
1902         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
1903         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
1904         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
1905         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
1906         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
1907         * testsuite/22_locale/collate/compare/char/1.cc: Same.
1908         * testsuite/22_locale/collate/compare/char/2.cc: Same.
1909         * testsuite/22_locale/collate/compare/char/3.cc: Same.
1910         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
1911         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
1912         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
1913         * testsuite/22_locale/collate/hash/char/2.cc: Same.
1914         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
1915         * testsuite/22_locale/collate/transform/char/2.cc: Same.
1916         * testsuite/22_locale/collate/transform/char/3.cc: Same.
1917         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
1918         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
1919         * testsuite/22_locale/collate_byname/1.cc: Same.
1920         * testsuite/22_locale/ctype/is/char/2.cc: Same.
1921         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1922         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
1923         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
1924         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
1925         * testsuite/22_locale/facet/2.cc: Same.
1926         * testsuite/22_locale/locale/cons/2.cc: Same.
1927         * testsuite/22_locale/locale/cons/4.cc: Same.
1928         * testsuite/22_locale/locale/cons/5.cc: Same.
1929         * testsuite/22_locale/locale/cons/7.cc: Same.
1930         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
1931         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
1932         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
1933         * testsuite/22_locale/messages/members/char/1.cc: Same.
1934         * testsuite/22_locale/messages/members/char/2.cc: Same.
1935         * testsuite/22_locale/messages/members/char/3.cc: Same.
1936         * testsuite/22_locale/messages_byname/1.cc: Same.
1937         * testsuite/22_locale/money_get/get/char/1.cc: Same.
1938         * testsuite/22_locale/money_get/get/char/2.cc: Same.
1939         * testsuite/22_locale/money_get/get/char/3.cc: Same.
1940         * testsuite/22_locale/money_get/get/char/4.cc: Same.
1941         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
1942         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
1943         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
1944         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
1945         * testsuite/22_locale/money_put/put/char/1.cc: Same.
1946         * testsuite/22_locale/money_put/put/char/2.cc: Same.
1947         * testsuite/22_locale/money_put/put/char/3.cc: Same.
1948         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
1949         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
1950         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
1951         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
1952         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
1953         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
1954         * testsuite/22_locale/num_get/get/char/1.cc: Same.
1955         * testsuite/22_locale/num_get/get/char/2.cc: Same.
1956         * testsuite/22_locale/num_get/get/char/3.cc: Same.
1957         * testsuite/22_locale/num_get/get/char/5.cc: Same.
1958         * testsuite/22_locale/num_get/get/char/6.cc: Same.
1959         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
1960         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
1961         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
1962         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
1963         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
1964         * testsuite/22_locale/num_put/put/char/1.cc: Same.
1965         * testsuite/22_locale/num_put/put/char/2.cc: Same.
1966         * testsuite/22_locale/num_put/put/char/3.cc: Same.
1967         * testsuite/22_locale/num_put/put/char/5.cc: Same.
1968         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
1969         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
1970         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
1971         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
1972         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
1973         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
1974         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
1975         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
1976         * testsuite/22_locale/numpunct_byname/1.cc: Same.
1977         * testsuite/22_locale/numpunct_byname/2.cc: Same.
1978         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
1979         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
1980         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
1981         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
1982         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
1983         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
1984         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
1985         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
1986         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
1987         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
1988         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
1989         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
1990         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
1991         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
1992         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
1993         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
1994         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
1995         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
1996         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
1997         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
1998         * testsuite/22_locale/time_put/put/char/1.cc: Same.
1999         * testsuite/22_locale/time_put/put/char/2.cc: Same.
2000         * testsuite/22_locale/time_put/put/char/3.cc: Same.
2001         * testsuite/22_locale/time_put/put/char/4.cc: Same.
2002         * testsuite/22_locale/time_put/put/char/5.cc: Same.
2003         * testsuite/22_locale/time_put/put/char/6.cc: Same.
2004         * testsuite/22_locale/time_put/put/char/7.cc: Same.
2005         * testsuite/22_locale/time_put/put/char/8.cc: Same.
2006         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
2007         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
2008         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
2009         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
2010         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
2011         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
2012         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
2013         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
2014         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
2015         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
2016         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
2017         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
2018         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
2020 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
2022         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
2023         solaris includes, not generic.
2025 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
2027         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
2029         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
2030         * include/bits/concept_check.h: Fix multi-line comment.
2031         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
2032         when target is *-*-freebsd*.
2034 2003-04-14  Nathan Myers  <ncm@cantrip.org>
2035             Paolo Carlini  <pcarlini@unitus.it>
2037         PR libstdc++/9701 (in_avail())
2038         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
2039         doesn't care if there is anything in some putback cell.
2040         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
2042         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
2043         unused string literals.
2045 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
2047         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
2048         _M_out_end, _M_set_indeterminate() does it.
2050 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2052         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
2054 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
2056         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2057         Change basic_streambuf instantiation to "unsigned char".
2058         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2060 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
2062         Remove _M_buf_size_opt, use directly _M_buf_size instead.
2063         * include/bits/fstream.tcc
2064         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
2065         references to _M_buf_size_opt.
2066         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
2067         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
2068         __bufsize to __in_avail and __size_opt to __buf_size.
2069         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
2070         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
2071         * include/std/std_streambuf.h (~basic_streambuf(),
2072         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
2073         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
2074         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2075         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
2076         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
2077         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
2078         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
2079         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
2080         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
2081         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2082         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2083         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2084         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2086 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
2088         * include/ext/stdio_filebuf.h
2089         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
2090         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
2091         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
2092         since a stack-based buffer is used for small values of the size_t
2093         parameter.
2094         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
2095         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
2096         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
2098 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
2100         PR libstdc++/9533
2101         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
2102         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
2104 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
2106         * testsuite/22_locale/locale/cons/3.cc: Split.
2107         * testsuite/22_locale/locale/cons/7222-c.cc: New.
2108         * testsuite/22_locale/locale/cons/7222-env.cc: New.
2109         Check before trying to create a locale from the environment.
2110         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
2111         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2112         Adjust includes.
2114 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
2116         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
2117         locale to construct this hybrid locale, not the global locale.
2119 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
2121         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
2122         instantiation for AIX.
2123         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2124         * testsuite/25_algorithms/min_max.cc: Same.
2126 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2128         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
2129         twice.  Always set _M_cfile to 0 when stream was open.
2131 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
2133         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
2134         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
2135         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
2136         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
2137         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
2138         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
2139         ifstream_members.cc, instantiations.cc, ios.cc,
2140         ios_base_callbacks.cc, ios_base_members_static-1.tst,
2141         ios_base_members_static.cc, ios_base_storage.cc,
2142         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
2143         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
2144         iostream.cc, iostream_members.cc, istream.cc,
2145         istream_exception.cc, istream_extractor_char.cc,
2146         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
2147         istream_extractor_other-2.tst, istream_extractor_other.cc,
2148         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
2149         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
2150         istream_sentry.cc, istream_unformatted-1.tst,
2151         istream_unformatted-1.txt, istream_unformatted.cc,
2152         istringstream.cc, istringstream_members.cc,
2153         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
2154         ofstream_members.cc, ostream.cc, ostream_exception.cc,
2155         ostream_fail.cc, ostream_inserter_arith.cc,
2156         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
2157         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
2158         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
2159         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
2160         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
2161         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
2162         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
2163         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
2164         wide_stream_objects.cc, istream_extractor_arith/01.cc,
2165         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
2166         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
2167         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
2168         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
2169         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
2170         Split into...
2171         * 27_io/basic_filebuf/1.cc: New.
2172         * 27_io/basic_filebuf/2.cc: New.
2173         * 27_io/basic_filebuf/3.cc: New.
2174         * 27_io/basic_filebuf/4.cc: New.
2175         * 27_io/basic_filebuf/close/char/1.cc: New.
2176         * 27_io/basic_filebuf/close/char/2.cc: New.
2177         * 27_io/basic_filebuf/close/char/3.cc: New.
2178         * 27_io/basic_filebuf/close/char/4879.cc: New.
2179         * 27_io/basic_filebuf/close/char/9964.cc: New.
2180         * 27_io/basic_filebuf/imbue/char/1.cc: New.
2181         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
2182         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
2183         * 27_io/basic_filebuf/is_open/char/1.cc: New.
2184         * 27_io/basic_filebuf/open/char/1.cc: New.
2185         * 27_io/basic_filebuf/open/char/2.cc: New.
2186         * 27_io/basic_filebuf/open/char/3.cc: New.
2187         * 27_io/basic_filebuf/open/char/9507.cc: New.
2188         * 27_io/basic_filebuf/overflow/char/1.cc: New.
2189         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
2190         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
2191         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
2192         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
2193         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
2194         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
2195         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
2196         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
2197         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
2198         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
2199         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
2200         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
2201         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
2202         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
2203         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
2204         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
2205         * 27_io/basic_filebuf/snextc/char/1.cc: New.
2206         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
2207         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
2208         * 27_io/basic_filebuf/sputc/char/1.cc: New.
2209         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
2210         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
2211         * 27_io/basic_filebuf/sputn/char/1.cc: New.
2212         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
2213         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
2214         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
2215         * 27_io/basic_filebuf/sync/char/1057.cc: New.
2216         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
2217         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
2218         * 27_io/basic_fstream/1.cc: New.
2219         * 27_io/basic_fstream/2.cc: New.
2220         * 27_io/basic_fstream/3.cc: New.
2221         * 27_io/basic_fstream/4.cc: New.
2222         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
2223         * 27_io/basic_ifstream/1.cc: New.
2224         * 27_io/basic_ifstream/2.cc: New.
2225         * 27_io/basic_ifstream/3.cc: New.
2226         * 27_io/basic_ifstream/4.cc: New.
2227         * 27_io/basic_ifstream/cons/char/1.cc: New.
2228         * 27_io/basic_ifstream/open/char/1.cc: New.
2229         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
2230         * 27_io/basic_ios/1.cc: New.
2231         * 27_io/basic_ios/2.cc: New.
2232         * 27_io/basic_ios/3.cc: New.
2233         * 27_io/basic_ios/4.cc: New.
2234         * 27_io/basic_ios/clear/char/1.cc: New.
2235         * 27_io/basic_ios/cons/char/1.cc: New.
2236         * 27_io/basic_ios/cons/char/2.cc: New.
2237         * 27_io/basic_ios/cons/char/3.cc: New.
2238         * 27_io/basic_ios/copyfmt/char/1.cc: New.
2239         * 27_io/basic_ios/copyfmt/char/2.cc: New.
2240         * 27_io/basic_ios/exceptions/char/1.cc: New.
2241         * 27_io/basic_ios/locales/char/1.cc: New.
2242         * 27_io/basic_iostream/1.cc: New.
2243         * 27_io/basic_iostream/2.cc: New.
2244         * 27_io/basic_iostream/3.cc: New.
2245         * 27_io/basic_iostream/4.cc: New.
2246         * 27_io/basic_istream/1.cc: New.
2247         * 27_io/basic_istream/2.cc: New.
2248         * 27_io/basic_istream/3.cc: New.
2249         * 27_io/basic_istream/4.cc: New.
2250         * 27_io/basic_istream/exceptions/char/9561.cc: New.
2251         * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
2252         * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
2253         * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
2254         * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
2255         * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
2256         * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
2257         * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
2258         * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
2259         * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
2260         * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
2261         * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
2262         * 27_io/basic_istream/extractors_character/char/1.cc: New.
2263         * 27_io/basic_istream/extractors_character/char/2.cc: New.
2264         * 27_io/basic_istream/extractors_character/char/3.cc: New.
2265         * 27_io/basic_istream/extractors_character/char/9826.cc: New.
2266         * 27_io/basic_istream/extractors_other/char/1.cc: New.
2267         * 27_io/basic_istream/extractors_other/char/2.cc: New.
2268         * 27_io/basic_istream/extractors_other/char/3.cc: New.
2269         * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
2270         * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
2271         * 27_io/basic_istream/get/char/1.cc: New.
2272         * 27_io/basic_istream/get/char/2.cc: New.
2273         * 27_io/basic_istream/getline/char/1.cc: New.
2274         * 27_io/basic_istream/getline/char/2.cc: New.
2275         * 27_io/basic_istream/getline/char/3.cc: New.
2276         * 27_io/basic_istream/ignore/char/1.cc: New.
2277         * 27_io/basic_istream/ignore/char/6360.cc: New.
2278         * 27_io/basic_istream/ignore/char/7220.cc: New.
2279         * 27_io/basic_istream/peek/char/1.cc: New.
2280         * 27_io/basic_istream/peek/char/6414.cc: New.
2281         * 27_io/basic_istream/putback/char/1.cc: New.
2282         * 27_io/basic_istream/read/char/1.cc: New.
2283         * 27_io/basic_istream/read/char/2.cc: New.
2284         * 27_io/basic_istream/read/char/3.cc: New.
2285         * 27_io/basic_istream/readsome/char/6746-1.cc: New.
2286         * 27_io/basic_istream/readsome/char/6746-2.cc: New.
2287         * 27_io/basic_istream/readsome/char/8258.cc: New.
2288         * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
2289         * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
2290         * 27_io/basic_istream/seekg/char/8348-1.cc: New.
2291         * 27_io/basic_istream/seekg/char/8348-2.cc: New.
2292         * 27_io/basic_istream/seekg/char/fstream.cc: New.
2293         * 27_io/basic_istream/seekg/char/sstream.cc: New.
2294         * 27_io/basic_istream/sentry/char/1.cc: New.
2295         * 27_io/basic_istream/sentry/char/2.cc: New.
2296         * 27_io/basic_istream/sentry/char/3.cc: New.
2297         * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
2298         * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
2299         * 27_io/basic_istream/tellg/char/1.cc: New.
2300         * 27_io/basic_istream/tellg/char/8348.cc: New.
2301         * 27_io/basic_istream/tellg/char/fstream.cc: New.
2302         * 27_io/basic_istream/tellg/char/sstream.cc: New.
2303         * 27_io/basic_istream/ws/char/1.cc: New.
2304         * 27_io/basic_istringstream/1.cc: New.
2305         * 27_io/basic_istringstream/2.cc: New.
2306         * 27_io/basic_istringstream/3.cc: New.
2307         * 27_io/basic_istringstream/4.cc: New.
2308         * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
2309         * 27_io/basic_istringstream/str/char/1.cc: New.
2310         * 27_io/basic_ofstream/1.cc: New.
2311         * 27_io/basic_ofstream/2.cc: New.
2312         * 27_io/basic_ofstream/3.cc: New.
2313         * 27_io/basic_ofstream/4.cc: New.
2314         * 27_io/basic_ofstream/cons/char/2.cc: New.
2315         * 27_io/basic_ofstream/open/char/1.cc: New.
2316         * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
2317         * 27_io/basic_ostream/1.cc: New.
2318         * 27_io/basic_ostream/2.cc: New.
2319         * 27_io/basic_ostream/3.cc: New.
2320         * 27_io/basic_ostream/4.cc: New.
2321         * 27_io/basic_ostream/cons/char/9827.cc: New.
2322         * 27_io/basic_ostream/endl/char/1.cc: New.
2323         * 27_io/basic_ostream/ends/char/1.cc: New.
2324         * 27_io/basic_ostream/ends/char/2.cc: New.
2325         * 27_io/basic_ostream/exceptions/char/9561.cc: New.
2326         * 27_io/basic_ostream/flush/char/1.cc: New.
2327         * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
2328         * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
2329         * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
2330         * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
2331         * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
2332         * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
2333         * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
2334         * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
2335         * 27_io/basic_ostream/inserters_character/char/1.cc: New.
2336         * 27_io/basic_ostream/inserters_character/char/2.cc: New.
2337         * 27_io/basic_ostream/inserters_character/char/3.cc: New.
2338         * 27_io/basic_ostream/inserters_character/char/4.cc: New.
2339         * 27_io/basic_ostream/inserters_character/char/5.cc: New.
2340         * 27_io/basic_ostream/inserters_character/char/6.cc: New.
2341         * 27_io/basic_ostream/inserters_character/char/8.cc: New.
2342         * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
2343         * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
2344         * 27_io/basic_ostream/inserters_other/char/1.cc: New.
2345         * 27_io/basic_ostream/inserters_other/char/2.cc: New.
2346         * 27_io/basic_ostream/inserters_other/char/3.cc: New.
2347         * 27_io/basic_ostream/inserters_other/char/4.cc: New.
2348         * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
2349         * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
2350         * 27_io/basic_ostream/sentry/char/1.cc: New.
2351         * 27_io/basic_ostream/sentry/char/2.cc: New.
2352         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
2353         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
2354         * 27_io/basic_ostream/tellp/char/1.cc: New.
2355         * 27_io/basic_ostream/tellp/char/2.cc: New.
2356         * 27_io/basic_ostringstream/1.cc: New.
2357         * 27_io/basic_ostringstream/2.cc: New.
2358         * 27_io/basic_ostringstream/3.cc: New.
2359         * 27_io/basic_ostringstream/4.cc: New.
2360         * 27_io/basic_ostringstream/cons/char/3.cc: New.
2361         * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
2362         * 27_io/basic_ostringstream/str/char/1.cc: New.
2363         * 27_io/basic_ostringstream/str/char/2.cc: New.
2364         * 27_io/basic_streambuf/1.cc: New.
2365         * 27_io/basic_streambuf/2.cc: New.
2366         * 27_io/basic_streambuf/3.cc: New.
2367         * 27_io/basic_streambuf/cons/char/1.cc: New.
2368         * 27_io/basic_streambuf/imbue/char/1.cc: New.
2369         * 27_io/basic_streambuf/imbue/char/9322.cc: New.
2370         * 27_io/basic_streambuf/overflow/char/1.cc: New.
2371         * 27_io/basic_streambuf/overflow/char/2.cc: New.
2372         * 27_io/basic_streambuf/overflow/char/3599.cc: New.
2373         * 27_io/basic_streambuf/sgetc/char/1.cc: New.
2374         * 27_io/basic_streambuf/sgetn/char/1.cc: New.
2375         * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
2376         * 27_io/basic_streambuf/sputc/char/1057.cc: New.
2377         * 27_io/basic_streambuf/sputn/char/1.cc: New.
2378         * 27_io/basic_streambuf/sputn/char/1057.cc: New.
2379         * 27_io/basic_streambuf/sync/char/1057.cc: New.
2380         * 27_io/basic_stringbuf/1.cc: New.
2381         * 27_io/basic_stringbuf/2.cc: New.
2382         * 27_io/basic_stringbuf/3.cc: New.
2383         * 27_io/basic_stringbuf/4.cc: New.
2384         * 27_io/basic_stringbuf/5.cc: New.
2385         * 27_io/basic_stringbuf/imbue/char/1.cc: New.
2386         * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
2387         * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
2388         * 27_io/basic_stringbuf/overflow/char/2.cc: New.
2389         * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
2390         * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
2391         * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
2392         * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
2393         * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
2394         * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
2395         * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
2396         * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
2397         * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
2398         * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
2399         * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
2400         * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
2401         * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
2402         * 27_io/basic_stringbuf/snextc/char/1.cc: New.
2403         * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
2404         * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
2405         * 27_io/basic_stringbuf/sputc/char/1.cc: New.
2406         * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
2407         * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
2408         * 27_io/basic_stringbuf/sputn/char/1.cc: New.
2409         * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
2410         * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
2411         * 27_io/basic_stringbuf/str/char/1.cc: New.
2412         * 27_io/basic_stringbuf/str/char/2.cc: New.
2413         * 27_io/basic_stringbuf/str/char/3.cc: New.
2414         * 27_io/basic_stringbuf/str/char/3955.cc: New.
2415         * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
2416         * 27_io/basic_stringbuf/sync/char/1057.cc: New.
2417         * 27_io/basic_stringstream/1.cc: New.
2418         * 27_io/basic_stringstream/2.cc: New.
2419         * 27_io/basic_stringstream/3.cc: New.
2420         * 27_io/basic_stringstream/4.cc: New.
2421         * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
2422         * 27_io/basic_stringstream/str/char/1.cc: New.
2423         * 27_io/basic_stringstream/str/char/2.cc: New.
2424         * 27_io/basic_stringstream/str/char/3.cc: New.
2425         * 27_io/basic_stringstream/str/char/4.cc: New.
2426         * 27_io/fpos/1.cc: New.
2427         * 27_io/fpos/2.cc: New.
2428         * 27_io/fpos/3.cc: New.
2429         * 27_io/ios_base/callbacks/1.cc: New.
2430         * 27_io/ios_base/state/1.cc: New.
2431         * 27_io/ios_base/storage/1.cc: New.
2432         * 27_io/ios_base/storage/2.cc: New.
2433         * 27_io/ios_base/storage/3.cc: New.
2434         * 27_io/ios_base/sync_with_stdio/1.cc: New.
2435         * 27_io/ios_base/sync_with_stdio/2.cc: New.
2436         * 27_io/manipulators/adjustfield/char/1.cc: New.
2437         * 27_io/manipulators/adjustfield/char/2.cc: New.
2438         * 27_io/manipulators/basefield/char/1.cc: New.
2439         * 27_io/manipulators/standard/char/1.cc: New.
2440         * 27_io/manipulators/standard/char/2.cc: New.
2441         * 27_io/objects/char/1.cc: New.
2442         * 27_io/objects/char/2.cc: New.
2443         * 27_io/objects/char/2523-1_xin.cc: New.
2444         * 27_io/objects/char/2523-1_xin.in: New.
2445         * 27_io/objects/char/2523-2_xin.cc: New.
2446         * 27_io/objects/char/2523-2_xin.in: New.
2447         * 27_io/objects/char/3045.cc: New.
2448         * 27_io/objects/char/3647.cc: New.
2449         * 27_io/objects/char/3_xin.cc: New.
2450         * 27_io/objects/char/3_xin.in: New.
2451         * 27_io/objects/char/4_xin.cc: New.
2452         * 27_io/objects/char/4_xin.in: New.
2453         * 27_io/objects/char/5268.cc: New.
2454         * 27_io/objects/char/5280_xin.cc: New.
2455         * 27_io/objects/char/5280_xin.in: New.
2456         * 27_io/objects/char/6548_xin.cc: New.
2457         * 27_io/objects/char/6548_xin.in: New.
2458         * 27_io/objects/char/6648-1_xin.cc: New.
2459         * 27_io/objects/char/6648-1_xin.in: New.
2460         * 27_io/objects/char/6648-2_xin.cc: New.
2461         * 27_io/objects/char/6648-2_xin.in: New.
2462         * 27_io/objects/char/7744_xin.cc: New.
2463         * 27_io/objects/char/7744_xin.in: New.
2464         * 27_io/objects/wchar_t/1.cc: New.
2465         * 27_io/types/1.cc: New.
2466         * 27_io/types/2.cc: New.
2467         * data/filebuf_members-1.tst: New.
2468         * data/filebuf_members-1.txt: New.
2469         * data/filebuf_virtuals-1.tst: New.
2470         * data/filebuf_virtuals-1.txt: New.
2471         * data/filebuf_virtuals-2.tst: New.
2472         * data/filebuf_virtuals-3.tst: New.
2473         * data/ifstream_members-1.tst: New.
2474         * data/ifstream_members-1.txt: New.
2475         * data/ios_base_members_static-1.tst: New.
2476         * data/istream_extractor_other-1.tst: New.
2477         * data/istream_extractor_other-1.txt: New.
2478         * data/istream_extractor_other-2.tst: New.
2479         * data/istream_seeks-1.tst: New.
2480         * data/istream_seeks-1.txt: New.
2481         * data/istream_seeks-2.tst: New.
2482         * data/istream_seeks-3.tst: New.
2483         * data/istream_unformatted-1.tst: New.
2484         * data/istream_unformatted-1.txt: New.
2485         * data/ofstream_members-1.tst: New.
2486         * data/ostream_inserter_char-1.tst: New.
2487         * data/ostream_inserter_char-1.txt: New.
2488         * data/ostream_inserter_other-1.tst: New.
2489         * data/ostream_inserter_other-2.tst: New.
2490         * data/ostream_seeks-1.tst: New.
2492 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
2494         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
2495         requirement that __mode must be strict input or output.
2497         * include/std/std_streambuf.h (basic_streambuf::setp): Set
2498         _M_out_lim.
2500         * include/std/std_sstream.h (basic_strinbuf::str): Zero length
2501         output string shouldn't core.
2502         (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
2503         type.
2504         * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
2506         * include/bits/istream.tcc (basic_istream::putback): Set gcount to
2507         zero.
2509 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
2511         * testsuite/data: New directory.
2512         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2513         to copy files from the testsuite data directory.
2514         (libstdc++-v3-list-sourcefiles): Add another test list filter, for
2515         testfiles containing _xin, which now means this is an interactive
2516         test and should be run with the interactive dejagnu hooks.
2517         * testsuite/Makefile.am: Remove testsuite_* files.
2518         * testsuite/Makefile.in: Regenerate.
2520 2003-04-09  Zack Weinberg  <zack@codesourcery.com>
2522         * docs/html/install.html: Document complete list of locales
2523         required by test suite.  Document procedure for installing
2524         said locales under Debian.  Solicit instructions for other
2525         operating systems.
2527 2003-04-08  Alexandre Oliva  <aoliva@redhat.com>
2529         * include/bits/sstream.tcc (overflow): Make sure operands of min
2530         and max have the same type.
2532 2003-04-04  Jerry Quinn  <jlquinn@optonline.net>
2534         PR libstdc++/10276
2535         * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
2536         initialization.
2538 2003-03-31  Paolo Carlini  <pcarlini@unitus.it>
2540         * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
2541         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
2542         Don't set _M_out_end.
2543         (basic_filebuf::overflow): Replace _M_out_buf_size() with
2544         this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
2545         * include/bits/sstream.tcc (basic_stringbuf::overflow):
2546         Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
2547         * include/bits/streambuf.tcc (basic_streambuf::sputc):
2548         Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
2549         (basic_streambuf::xsputn): Replace _M_out_buf_size() with
2550         _M_out_end - _M_out_cur.
2551         (__copy_streambufs): Likewise.
2552         * include/std/std_fstream.h (_M_set_determinate): Set
2553         _M_out_end here.
2555 2003-03-30  Paolo Carlini  <pcarlini@unitus.it>
2557         * include/bits/fstream.tcc (basic_filebuf::showmanyc,
2558         _M_convert_to_external, _M_really_overflow, seekoff): Fix
2559         test for synced buffer.
2560         * include/std/std_fstream.h (sync): Likewise.
2561         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
2562         basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
2564 2003-03-28  Benjamin Kosnik  <bkoz@redhat.com>
2566         * include/std/std_sstream.h (basic_istringstream): Adjust
2567         initialization.
2568         (basic_ostringstream): Same.
2569         (basic_stringstream): Same.
2570         * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
2571         (basic_ofstream): Same.
2572         (basic_fstream): Same.
2573         * include/std/std_ostream.h (basic_ostrem): Add protected ctor
2574         that does not call init.
2575         * include/std/std_istream.h (basic_istream): Same.
2576         (basic_iostream): Construct istream, ostream uninitialized, use
2577         init to initialize just once. Add protected ctor that does not
2578         call init.
2580 2003-03-28  Paolo Carlini  <pcarlini@unitus.it>
2581             Nathan Myers  <ncm@cantrip.org>
2583         PR libstdc++/9533
2584         * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
2585         call underflow().
2586         (basic_filebuf<>::showmanyc): Use the information provided
2587         by codecvt and __basic_file<>::showmanyc_helper to implement
2588         a non-trivial showmanyc.
2589         * config/io/basic_file_stdio.h
2590         (__basic_file<>::showmanyc_helper): New, declare.
2591         * config/io/basic_file_stdio.cc
2592         (__basic_file<>::showmanyc_helper): Define.
2593         (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
2594         (__basic_file<char>::open): Don't call fcntl().
2595         * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
2596         GLIBCPP_CHECK_POLL): New macros.
2597         * configure.in: Call here.
2598         * acconfig.h: Add #undefs for the corresponding symbols.
2599         * aclocal.m4: Regenerate.
2600         * configure: Regenerate.
2601         * config.h.in: Regenerate.
2603 2003-03-24  Benjamin Kosnik  <bkoz@redhat.com>
2605         * config/linker-map.gnu: Remove string export restrictions.
2607 2003-03-24  Paolo Carlini  <pcarlini@unitus.it>
2609         * testsuite/21_strings/basic_string/find/char/1.cc: Remove
2610         find_first_of, find_last_of and find_last_not_of tests.
2611         * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
2612         tests here, new file.
2613         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
2614         remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
2615         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
2616         wchar_t find_first_of tests here, new file.
2617         * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
2618         tests here.
2619         * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
2620         tests here.
2621         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
2622         wchar_t find_last_of tests here.
2623         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
2624         wchar_t find_last_not_of tests here.
2626 2003-03-22  Loren J. Rittle  <ljrittle@acm.org>
2628         * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
2629         Correct return value.
2631 2003-03-21  Jerry Quinn  <jlquinn@optonline.net>
2633         PR libstdc++/5730
2634         * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
2635         * include/std/std_complex.h (norm):  Use faster,
2636         less accurate computation for builtin float types under --fast-math.
2638 2003-03-21  Magnus Fromreide  <gnats@magfr.user.lysator.liu.se>
2640         * testsuite/testsuite_hooks.h: Fix warning nits.
2642 2003-03-19  Alexandre Oliva  <aoliva@redhat.com>
2644         * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
2645         Only .set mips2 for the o32 ABI.
2647 2003-03-19  Paolo Carlini  <pcarlini@unitus.it>
2649         * testsuite/21_strings/char_traits/requirements/char/1.cc:
2650         Test char not wchar_t.
2652 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
2654         * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
2655         Correct size, taking into account sizeof(wchar_t).
2657 2003-03-18  Paolo Carlini  <pcarlini@unitus.it>
2659         Reshuffle 21_strings testsuite.
2660         * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
2661         assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
2662         element_access.cc, operations.cc, char_traits_requirements.cc,
2663         find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
2664         compare.cc, inserters_extractors.cc, substr.cc: Split up, add
2665         wchar_t tests as follows.
2666         * 21_strings/basic_string/append/char/1.cc: New.
2667         * 21_strings/basic_string/append/wchar_t/1.cc: New.
2668         * 21_strings/basic_string/assign/char/1.cc: New.
2669         * 21_strings/basic_string/assign/char/2.cc: New.
2670         * 21_strings/basic_string/assign/char/3.cc: New.
2671         * 21_strings/basic_string/assign/wchar_t/1.cc: New.
2672         * 21_strings/basic_string/assign/wchar_t/2.cc: New.
2673         * 21_strings/basic_string/assign/wchar_t/3.cc: New.
2674         * 21_strings/basic_string/capacity/1.cc: New.
2675         * 21_strings/basic_string/capacity/char/1.cc: New.
2676         * 21_strings/basic_string/capacity/char/2.cc: New.
2677         * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
2678         * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
2679         * 21_strings/basic_string/compare/char/1.cc: New.
2680         * 21_strings/basic_string/compare/wchar_t/1.cc: New.
2681         * 21_strings/basic_string/cons/char/1.cc: New.
2682         * 21_strings/basic_string/cons/char/2.cc: New.
2683         * 21_strings/basic_string/cons/char/3.cc: New.
2684         * 21_strings/basic_string/cons/char/4.cc: New.
2685         * 21_strings/basic_string/cons/char/5.cc: New.
2686         * 21_strings/basic_string/cons/wchar_t/1.cc: New.
2687         * 21_strings/basic_string/cons/wchar_t/2.cc: New.
2688         * 21_strings/basic_string/cons/wchar_t/3.cc: New.
2689         * 21_strings/basic_string/cons/wchar_t/4.cc: New.
2690         * 21_strings/basic_string/cons/wchar_t/5.cc: New.
2691         * 21_strings/basic_string/element_access/char/1.cc: New.
2692         * 21_strings/basic_string/element_access/char/2.cc: New.
2693         * 21_strings/basic_string/element_access/char/3.cc: New.
2694         * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
2695         * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
2696         * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
2697         * 21_strings/basic_string/find/char/1.cc: New.
2698         * 21_strings/basic_string/find/wchar_t/1.cc: New.
2699         * 21_strings/basic_string/insert/char/1.cc: New.
2700         * 21_strings/basic_string/insert/char/2.cc: New.
2701         * 21_strings/basic_string/insert/wchar_t/1.cc: New.
2702         * 21_strings/basic_string/insert/wchar_t/2.cc: New.
2703         * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
2704         * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
2705         * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
2706         * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
2707         * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
2708         * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
2709         * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
2710         * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
2711         * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
2712         * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
2713         * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
2714         * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
2715         * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
2716         * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
2717         * 21_strings/basic_string/operators/char/1.cc: New.
2718         * 21_strings/basic_string/operators/char/2.cc: New.
2719         * 21_strings/basic_string/operators/wchar_t/1.cc: New.
2720         * 21_strings/basic_string/operators/wchar_t/2.cc: New.
2721         * 21_strings/basic_string/replace/char/1.cc: New.
2722         * 21_strings/basic_string/replace/char/2.cc: New.
2723         * 21_strings/basic_string/replace/char/3.cc: New.
2724         * 21_strings/basic_string/replace/char/4.cc: New.
2725         * 21_strings/basic_string/replace/char/5.cc: New.
2726         * 21_strings/basic_string/replace/wchar_t/1.cc: New.
2727         * 21_strings/basic_string/replace/wchar_t/2.cc: New.
2728         * 21_strings/basic_string/replace/wchar_t/3.cc: New.
2729         * 21_strings/basic_string/replace/wchar_t/4.cc: New.
2730         * 21_strings/basic_string/replace/wchar_t/5.cc: New.
2731         * 21_strings/basic_string/rfind/char/1.cc: New.
2732         * 21_strings/basic_string/rfind/char/2.cc: New.
2733         * 21_strings/basic_string/rfind/char/3.cc: New.
2734         * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
2735         * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
2736         * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
2737         * 21_strings/basic_string/substr/char/1.cc: New.
2738         * 21_strings/basic_string/substr/wchar_t/1.cc: New.
2739         * 21_strings/c_strings/char/1.cc: New.
2740         * 21_strings/c_strings/char/2.cc: New.
2741         * 21_strings/c_strings/wchar_t/1.cc: New.
2742         * 21_strings/c_strings/wchar_t/2.cc: New.
2743         * 21_strings/char_traits/requirements/char/1.cc: New.
2744         * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
2745         * 21_strings/char_traits/typedefs/char/1.cc: New.
2747 2003-03-17  Paolo Carlini  <pcarlini@unitus.it>
2748             Petur Runolfsson  <peturr02@ru.is>
2750         PR libstdc++/10097
2751         * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
2752         basic_filebuf<wchar_t>::_M_underflow_common):
2753         if (gptr() < egptr()) return *gptr().
2754         * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
2756         * testsuite/27_io/filebuf_members.cc (test_04): Minor
2757         changes: unlink fifo before making it, fix spelling error.
2759 2003-03-17  Benjamin Kosnik  <bkoz@redhat.com>
2761         * testsuite/Makefile.am (CLEANFILES): Add tmp*.
2762         * testsuite/Makefile.in: Regenerate.
2763         * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
2764         Cleanups.
2766 2003-03-17  Petur Runolfsson  <peturr02@ru.is>
2768         PR libstdc++/9964
2769         * include/bits/fstream.tcc (basic_filebuf::close):
2770         Always close file, even when write fails.
2771         * testsuite/27_io/filebuf_members.cc (test_07):  New test.
2773 2003-03-17  Danny Smith  <dannysmith@users.sourceforge.net>
2775         * libsupc++/Makefile.am (C_COMPILE): Remove.
2776         (LTCOMPILE): Likewise.
2777         * libsupc++/Makefile.in: Regenerate.
2779 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
2781         * testsuite/23_containers/bitset_members.cc: Add test variable.
2782         * testsuite/23_containers/map_insert.cc: Same.
2783         * testsuite/22_locale/ctype/cons/char/1.cc: Same.
2784         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
2785         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
2786         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
2787         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
2788         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
2789         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
2790         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
2791         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
2792         * testsuite/27_io/istream_exception.cc: Same.
2793         * testsuite/27_io/filebuf_virtuals.cc: Same.
2794         * testsuite/27_io/stringbuf_virtuals.cc: Same.
2795         * testsuite/27_io/ostream_inserter_arith.cc: Same.
2796         * testsuite/26_numerics/valarray_operators.cc: Same.
2797         * testsuite/26_numerics/slice.cc: Same.
2798         * testsuite/26_numerics/slice_array_assignment.cc: Same.
2799         * testsuite/24_iterators/istream_iterator.cc: Same.
2800         * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
2802 2003-03-14  Petur Runolfsson  <peturr02@ru.is>
2804         PR libstdc++/9581
2805         PR libstdc++/9870
2806         * config/locale/generic/ctype_members.cc,
2807         * config/locale/gnu/ctype_members.cc
2808         (ctype<wchar_t>::do_widen(char)):  Cast argument to
2809         unsigned char before passing to btowc.
2810         (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
2811         Convert characters with btowc instead of mbsrtowcs.
2812         (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
2813         char, char*):
2814         Convert characters with wctob instead of wcsrtombs.
2815         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc:  New test.
2816         * testsuite/22_locale/ctype/widen/wchar_t/2.cc:  New test.
2817         * testsuite/22_locale/ctype/widen/wchar_t/3.cc:  New test.
2819 2003-03-14  Benjamin Kosnik  <bkoz@redhat.com>
2821         * include/stdc++.h: New.
2822         * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
2823         * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
2824         * include/Makefile.in: Regenerate.
2825         * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
2826         (--cxxflags): Put -g -O2 here.
2827         * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
2829 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
2831         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
2832         missing named locale.
2834 2003-03-14  Andreas Schwab  <schwab@suse.de>
2836         * configure.in: Only append to makefiles that are newly created to
2837         avoid multiple multi-do/multi-clean rules.
2838         * configure: Rebuilt.
2840 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
2842         * docs/html/configopts.html, docs/html/documentation.html,
2843         docs/html/explanations.html, docs/html/install.html,
2844         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
2845         invalid XHTML and make page header style consistent.
2847 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
2849         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
2850         * docs/html/faq/index.txt: Regenerate.
2851         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
2853 2003-03-12  Andreas Schwab  <schwab@suse.de>
2855         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
2856         glibcpp_toolexeclibdir.
2857         * aclocal.m4, configure: Rebuilt.
2859 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
2861         * docs/html/faq/index.html: Update text about location of headers.
2862         * docs/html/faq/index.txt: Regenerate.
2864 2003-03-11  Carlo Wood  <carlo@alinoe.com>
2866         * include/bits/demangle.h: Prepend accessors of
2867         class qualifier with 'get_' in order to fix warnings
2868         when compiling with -Wshadow.
2870 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
2872         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
2873         when so installed.
2874         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
2876         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
2877         report lack of setenv().
2879 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
2881         * config/io/basic_file_stdio.cc: include <unistd.h>.
2883 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
2884             Nathan Myers  <ncm@cantrip.org>
2886         PR libstdc++/7744
2887         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
2888         seekoff, seekpos): Add a boolean parameter __stdio.
2889         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
2890         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
2891         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
2892         respectively).
2893         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
2894         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
2895         * include/std/std_fstream.h (sync): Likewise.
2896         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
2897         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
2898         libstdc++/8399 commit involving isatty(0).
2899         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
2900         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
2901         * configure.in: Remove call.
2902         * aclocal.m4: Regenerate.
2903         * config.h.in: Regenerate.
2904         * configure: Regenerate.
2905         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
2907 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
2909         PR libstdc++/9988
2910         * include/bits/fstream.tcc (overflow): don't write EOF to file.
2911         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
2913 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
2915         PR libstdc++/9561
2916         * include/bits/basic_ios.h (_M_setstate): New.
2917         * include/bits/ostream.tcc (operator<<): Use it.
2918         * include/bits/istream.tcc (operator>>): Use it.
2919         * include/std/std_ostream.h (operator<<): Make friends.
2920         * include/std/std_istream.h (operator>>): Make friends.
2921         * testsuite/27_io/ostream_exception.cc,
2922         testsuite/27_io/istream_exception.cc: New tests.
2924 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>
2926         * include/bits/locale_facets.tcc: Fix typo.
2928 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
2930         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
2932         * config/locale/generic/c_locale.cc
2933         (locale::facet::_S_create_c_locale): Throw runtime exception when
2934         unsupported language is specified.
2935         * testsuite/testsuite_hooks.h
2936         (run_test_wrapped_generic_locale_exception_catcher): New function.
2937         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
2938         Suppress runtime exception thrown by generic implementation.
2939         (run_tests_wrapped_env): Likewise.
2940         (run_test_wrapped_generic_locale_exception_catcher): New function.
2941         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
2942         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
2943         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
2944         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
2945         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
2946         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
2947         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
2948         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
2949         * testsuite/22_locale/facet/2.cc: New test wrap.
2950         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
2951         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
2952         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
2953         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
2954         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
2955         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
2956         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
2957         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
2958         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
2959         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
2960         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
2961         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
2962         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
2963         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
2964         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
2965         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
2966         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
2967         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
2968         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
2969         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
2970         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
2971         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
2972         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
2973         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
2974         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
2975         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
2976         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
2977         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
2978         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
2979         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
2980         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
2981         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
2982         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
2983         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
2984         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
2985         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
2986         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
2987         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
2988         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
2989         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
2990         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
2991         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
2992         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
2993         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
2994         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
2995         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
2996         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
2997         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
2998         * testsuite/27_io/ios_members.cc: New test wrap.
2999         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
3000         New test wrap.
3001         * testsuite/27_io/streambuf_members.cc: New test wrap.
3002         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
3004 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
3005             Petur Runolfsson  <peturr02@ru.is>
3007         PR libstdc++/9424
3008         * include/bits/streambuf.tcc (__copy_streambufs): Use
3009         sgetn-sputn only when sputn cannot fail, otherwise fall back
3010         to safe snextc-sputc.
3011         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
3013 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
3015         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
3016         locale cache for truename and falsename.
3018 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
3020         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
3021         _M_word_size initialization.
3023 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
3025         * include/bits/fstream.tcc (_M_convert_to_external):
3026         Set __elen to zero if codecvt::out eventually fails.
3028 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
3030         PR libstdc++/9182
3031         * include/bits/fstream.tcc (_M_really_overflow): Check
3032         for _M_convert_to_external possible failures.
3033         * include/std/std_fstream.h (sync): Check _M_really_overflow
3034         return value and return -1 in case of failure.
3035         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
3037 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
3039         PR libstdc++/9826
3040         * include/bits/istream.tcc (operator>>(_CharT*),
3041         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
3042         * testsuite/27_io/stringstream.cc (test02): Add.
3044         * include/bits/istream.tcc (operator>>(_CharT*)):
3045         Assign a char_type to *__s.
3047 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
3049         PR libstdc++/9817
3050         * include/bits/locale_facets.tcc
3051         (collate::do_compare, collate::do_transform):
3052         Handle nul characters in input.
3053         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
3054         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
3055         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
3056         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
3058 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
3060         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
3061         sputn fails.
3062         * testsuite/27_io/ostream_fail.cc: New test.
3064 2003-03-07  Matthias Klose  <doko@debian.org>
3066         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
3067         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
3068         * Makefile.in: Regenerate.
3069         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
3070         of gxx_include_dir.
3071         AM_MAKEFLAGS: Pass gxx_include_dir.
3072         * libsupc++/Makefile.in: Regenerate.
3074 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
3076         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
3077         mask.  Test setting small-numbered pword and iword slots.  Test
3078         behavior at limit of numeric_limits::max.  Check that values are
3079         still good after failures.
3081 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
3083         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
3084         (ios_base::ios_base): Set _M_word, _M_word_size.
3085         (ios_base::~ios_base): Remove redundant test.
3086         * testsuite/27_io/ios_base_storage.cc (test03): New.
3088 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
3090         * src/strstream.cc, include/bits/basic_string.tcc: Remove
3091         incorrect whitespace added in my previous change.
3093 2003-03-05  Carlo Wood  <carlo@alinoe.com>
3095         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
3096         _S_initialized() in order to allow debugging libraries to detect
3097         when the std streams are initialized from an overloaded operator
3098         new.
3100 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
3102         * libsupc++/demangle.h: Move to..
3103         * include/bits/demangle.h: ...here.
3104         * src/demangle.cc: Adjust include.
3105         * include/Makefile.am (bits_headers): Add.
3106         * include/Makefile.in: Regenerate.
3108 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3110         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
3112         * config/linker-map.gnu: Filter typeinfo and vtable info.
3114 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
3116         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
3117         new failure.  Throw exception if badbit and exception mask when ix
3118         >= numeric_limits<int>::max().
3120 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
3122         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
3123         min and max have the same type.
3124         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
3126 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
3128         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
3129         * include/Makefile.in: Regenerate.
3131 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
3133         * testsuite/abi_check.cc (report_symbol_info): Add version info.
3135         * config/linker-map.gnu: Hide more stuff.
3136         * include/Makefile.am: Cleanups.
3137         * include/Makefile.in: Regenerate.
3139 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
3141         * config/locale/generic/messages_members.h (messages::messages):
3142         Remove name from unused parameter.
3144 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3146         * src/Makefile.am (sources): Add demangle.cc.
3147         (demangle.o): Add.
3148         (demangle.lo): Add.
3149         * src/Makefile.in: Regenerate.
3150         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
3151         * libsupc++/Makefile.in: Regenerate.
3153         * testsuite/testsuite_hooks.h
3154         (__gnu_cxx_test::verify_demangle): New.
3155         * testsuite/testsuite_hooks.cc: Define.
3157 2003-02-27  Carlo Wood  <carlo@alinoe.com>
3159         * src/demangle.cc: New.
3160         * libsupc++/demangle.h: New.
3162 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
3163             Carlo Wood  <carlo@alinoe.com>
3165         * testsuite/demangle/abi_examples/01.cc: New.
3166         * testsuite/demangle/abi_examples/02.cc: New.
3167         * testsuite/demangle/abi_examples/03.cc: New.
3168         * testsuite/demangle/abi_examples/04.cc: New.
3169         * testsuite/demangle/abi_examples/05.cc: New.
3170         * testsuite/demangle/abi_examples/06.cc: New.
3171         * testsuite/demangle/abi_examples/07.cc: New.
3172         * testsuite/demangle/abi_examples/08.cc: New.
3173         * testsuite/demangle/abi_examples/09.cc: New.
3174         * testsuite/demangle/abi_examples/10.cc: New.
3175         * testsuite/demangle/abi_examples/11.cc: New.
3176         * testsuite/demangle/abi_examples/12.cc: New.
3177         * testsuite/demangle/abi_examples/13.cc: New.
3178         * testsuite/demangle/abi_examples/14.cc: New.
3179         * testsuite/demangle/abi_examples/15.cc: New.
3180         * testsuite/demangle/abi_examples/16.cc: New.
3181         * testsuite/demangle/abi_examples/17.cc: New.
3182         * testsuite/demangle/abi_examples/18.cc: New.
3183         * testsuite/demangle/abi_examples/19.cc: New.
3184         * testsuite/demangle/abi_examples/20.cc: New.
3185         * testsuite/demangle/abi_examples/21.cc: New.
3186         * testsuite/demangle/abi_examples/22.cc: New.
3187         * testsuite/demangle/abi_examples/23.cc: New.
3188         * testsuite/demangle/abi_examples/24.cc: New.
3189         * testsuite/demangle/abi_examples/25.cc: New.
3190         * testsuite/demangle/abi_examples/26.cc: New.
3191         * testsuite/demangle/abi_text/01.cc: New.
3192         * testsuite/demangle/abi_text/02.cc: New.
3193         * testsuite/demangle/abi_text/03.cc: New.
3194         * testsuite/demangle/abi_text/04.cc: New.
3195         * testsuite/demangle/abi_text/05.cc: New.
3196         * testsuite/demangle/abi_text/06.cc: New.
3197         * testsuite/demangle/abi_text/07.cc: New.
3198         * testsuite/demangle/abi_text/08.cc: New.
3199         * testsuite/demangle/abi_text/09.cc: New.
3200         * testsuite/demangle/abi_text/10.cc: New.
3201         * testsuite/demangle/abi_text/11.cc: New.
3202         * testsuite/demangle/abi_text/12.cc: New.
3203         * testsuite/demangle/abi_text/13.cc: New.
3204         * testsuite/demangle/abi_text/14.cc: New.
3205         * testsuite/demangle/regression/3111-1.cc: New.
3206         * testsuite/demangle/regression/3111-2.cc: New.
3207         * testsuite/demangle/regression/7986-01.cc: New.
3208         * testsuite/demangle/regression/7986-02.cc: New.
3209         * testsuite/demangle/regression/7986-03.cc: New.
3210         * testsuite/demangle/regression/7986-04.cc: New.
3211         * testsuite/demangle/regression/7986-05.cc: New.
3212         * testsuite/demangle/regression/7986-06.cc: New.
3213         * testsuite/demangle/regression/7986-07.cc: New.
3214         * testsuite/demangle/regression/7986-08.cc: New.
3215         * testsuite/demangle/regression/7986-09.cc: New.
3216         * testsuite/demangle/regression/7986-10.cc: New.
3217         * testsuite/demangle/regression/7986-11.cc: New.
3218         * testsuite/demangle/regression/7986-12.cc: New.
3219         * testsuite/demangle/regression/7986.cc: New.
3220         * testsuite/demangle/regression/8897.cc: New.
3221         * testsuite/demangle/regression/cw-01.cc: New.
3222         * testsuite/demangle/regression/cw-02.cc: New.
3223         * testsuite/demangle/regression/cw-03.cc: New.
3224         * testsuite/demangle/regression/cw-04.cc: New.
3225         * testsuite/demangle/regression/cw-05.cc: New.
3226         * testsuite/demangle/regression/cw-06.cc: New.
3227         * testsuite/demangle/regression/cw-07.cc: New.
3228         * testsuite/demangle/regression/cw-08.cc: New.
3229         * testsuite/demangle/regression/cw-09.cc: New.
3230         * testsuite/demangle/regression/cw-10.cc: New.
3231         * testsuite/demangle/regression/cw-11.cc: New.
3232         * testsuite/demangle/regression/cw-12.cc: New.
3233         * testsuite/demangle/regression/cw-13.cc: New.
3234         * testsuite/demangle/regression/cw-14.cc: New.
3235         * testsuite/demangle/regression/old.cc: New.
3237 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
3239         * docs/doxygen/Intro.3:  Update with new (proper) names.
3240         * docs/doxygen/TODO:  Update.
3241         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
3242         Fake entries for standard typedefs.
3243         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
3244         * docs/html/documentation.html:  Top-level man page is now called
3245         C++Intro.
3246         * include/std/std_limits.h:  Doxygenate.
3248 2003-02-25  Scott Snyder  <snyder@fnal.gov>
3250         PR libstdc++/9811
3251         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
3252         Correct documentation.
3253         * include/bits/stl_multimap.h (lower_bound, upper_bound,
3254         equal_range): Likewise.
3256 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
3258         PR libstdc++/9825
3259         * src/fstream.cc
3260         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
3261         __bump is true (uflow), always increment the read pointer
3262         (_M_in_cur) before returning successfully.
3263         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
3265 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
3266             Nathan Myers <ncm@cantrip.org>
3268         PR libstdc++/9404, PR libstdc++/9701 (partial)
3269         (aka pptr == epptr implies overflow)
3270         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3271         Consistently, _M_out_end points to the end of the buffer just
3272         created.
3273         (overflow): Tweak to use _M_out_buf_size().
3274         (_M_convert_to_external): The role of the old _M_out_end is
3275         now played by _M_out_lim.
3276         (_M_really_overflow): Likewise.
3277         (seekoff): Likewise.
3278         (setbuf): _M_out_end points to the end of the external buffer.
3279         * include/bits/sstream.tcc (overflow): Rewrote, taking into
3280         account the resolution of DR 169 (TC).
3281         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
3282         (seekpos): Use _M_string.capacity(); tweak.
3283         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
3284         * include/std/std_fstream.h (sync): The role of the old
3285         _M_out_end is now played by _M_out_lim.
3286         (_M_set_indeterminate): Use _M_set_determinate.
3287         (_M_set_determinate): _M_out_end is now _M_out_lim.
3288         (_M_is_indeterminate): Likewise.
3289         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
3290         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
3291         which have the information readily available as _M_string.capacity();
3292         for ate and app modes, pass the string size to _M_really_sync.
3293         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
3294         point to the end of the buffer (i.e., epptr) and to the string end,
3295         respectively.
3296         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
3297         which points to the right limit of the used put area.
3298         (_M_out_cur_move): The role of the old _M_out_end is now played
3299         by _M_out_lim.
3300         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
3301         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
3302         of the standard.
3303         (basic_streambuf()): Initialize _M_out_lim too.
3304         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
3305         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
3306         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
3308 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
3310         * testsuite/27_io/ios_base_storage.cc (main): Call
3311         set_memory_limits.
3313 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
3315         * include/bits/locale_facets.tcc (_M_convert_float): Replace
3316         numpunct facet accesses with data from __locale_cache.
3318 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
3320         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
3321         * docs/html/faq/index.txt:  Regenerate.
3323 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
3325         * config/linker-map.gnu:  Also export locking symbols needed for the
3326         generic atomicity.h case.
3328 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
3330         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
3331         config.status.
3332         * configure: Rebuilt.
3334 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
3336         * include/bits/sstream.tcc (overflow): According to
3337         27.7.1.3, p5, actual output is performed by sputc(c).
3339 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
3341         PR libstdc++/9582
3342         * include/bits/stl_alloc.h:  Remove all traces of assert().
3344 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
3346         * include/std/std_sstream.h (str()): the size of the
3347         current string may be different from the initial one
3348         whenever _M_out_end > _M_out_beg.
3349         * testsuite/27_io/stringbuf_members.cc (test07): Add.
3351 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
3353         PR libstdc++/9582
3354         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
3356 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
3358         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
3359         * testsuite/27_io/ios_members.cc (test03): New.
3361 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
3363         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
3364         (basic_ios::_M_cache_facets): Move into above.
3365         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
3366         cache.
3367         (basic_ios::imbue): Force locale cache to be built.
3368         (basic_ios::_M_init): Create and initialize locale cache.
3369         * include/bits/ios_base.h (__locale_cache_base): Declare.
3370         (ios_base::_M_locale_cache): New.
3371         (ios_base::_M_cache): Define.
3372         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
3373         _S_end.
3374         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
3375         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
3376         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
3377         cache literal string, grouping flag, thousands separator.
3378         (__locale_cache<_CharT>::__locale_cache): New.
3379         (__locale_cache<_CharT>::_M_init): New.
3380         * src/ios.cc: Clear _M_locale_cache in constructor.
3381         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
3382         New.
3384 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3386         * src/locale-inst.cc: Do not include <cassert>.
3387         * src/locale.cc: Likewise.
3389 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3391         PR libstdc++/9580
3392         * include/std/std_fstream.h: Declare underflow and uflow
3393         specializations, change generic definitions to do nothing.
3394         * src/fstream.cc: Add underflow and uflow specializations.
3396 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
3398         PR libstdc++/9169
3399         * include/bits/fstream.tcc (_M_convert_to_external):
3400         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
3401         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
3403 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
3405         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
3406         * include/bits/basic_ios.tcc: Guard use of extern template.
3407         * include/std/std_iomanip.h: Same.
3408         * include/bits/streambuf.tcc: Same.
3409         * include/bits/stl_alloc.h: Same.
3410         * include/bits/locale_facets.tcc: Same.
3411         * include/bits/ostream.tcc: Same.
3412         * include/bits/istream.tcc: Same.
3413         * include/bits/fstream.tcc: Same.
3414         * include/bits/basic_string.tcc: Same.
3416 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
3418         * include/bits/ostream.tcc (sentry::sentry): Improve
3419         performance-wise the fix for libstdc++/9563.
3421 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
3423         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
3424         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
3425         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
3426         when we don't have static mutex initialization.
3427         (__exchange_and_add):  Use _Atomic_add_mutex_once.
3428         * src/misc-inst.cc:  Definitions of all the above.
3430 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
3432         PR libstdc++/9563
3433         * include/bits/ostream.tcc (sentry::sentry): Check
3434         the state of the stream after the preparation.
3435         * testsuite/27_io/ostream_sentry.cc (test02): Add.
3437 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
3439         * include/Makefile.am (stamp-std-precompile): Add rule.
3440         * include/Makefile.in: Regenerated.
3442 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
3443            Benjamin Kosnik  <benjamin@redhat.com>
3445         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
3446         Add indexes into this array.
3447         (__num_base::_S_atoms): To _S_atoms_in.
3448         (num_put::_M_insert): Rename to _M_pad.
3449         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
3450         (num_put::_M_widen_int): Rename to _M_group_int.
3451         (num_put::_M_widen_float): Rename to _M_group_float.
3452         * include/bits/locale_facets.tcc (__int_to_char): New inline
3453         function and adapter functions.
3454         (num_put::_M_group_int): Streamline.
3455         (num_put::_M_group_float): Streamline.
3456         (num_put::_M_convert_int): Remove unused parameter names. Choose
3457         large enough buffer for text.  Use __int_to_char instead of
3458         __convert_from_v.  Formatted text is now at the end of the buffer.
3459         (num_put::_M_convert_float): Preliminary fixups.
3460         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
3461         (__int_to_char<unsigned long long>): Same.
3462         (__int_to_char<char, unsigned long>): New.
3463         (__int_to_char<char, unsigned long long>): New.
3464         (__int_to_char<wchar_t, unsigned long>): New.
3465         (__int_to_char<wchar_t, unsigned long long>): New.
3467 2003-02-11  Scott Snyder  <snyder@fnal.gov>
3469         PR libstdc++/9659
3470         * include/bits/fstream.tcc (seekoff): Avoid operator+
3471         for pos_type.
3473 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
3475         PR libstdc++/9320
3476         * include/ext/stdio_filebuf.h
3477         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
3478         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
3479         Change to take a __size parameter of type size_t, not
3480         of type (template parameter dependent) int_type.
3481         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
3482         size vars to size_t.
3483         * testsuite/ext/stdio_filebuf.cc: Add.
3485 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
3486             Petur Runolfsson  <peturr02@ru.is>
3488         PR libstdc++/9318
3489         * include/bits/streambuf.tcc (__copy_streambufs):
3490         Don't conditionalize the copy to __testput.
3491         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
3493 2002-02-11  DJ Delorie  <dj@redhat.com>
3495         * acinclude.m4: Check for native targets that can't link at
3496         this point in the build.
3497         * aclocal.m4: Regenerate.
3498         * configure: Regenerate.
3500 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3502         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
3503         Correct alignment.
3504         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
3505         lock.
3507 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
3509         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
3510         unsigned char platforms.
3512 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
3514         PR libstdc++/9562
3515         * include/std/std_istream.h
3516         (basic_istream::sentry::operator bool()): Make const.
3517         * include/std/std_ostream.h
3518         (basic_ostream::sentry::operator bool()): Likewise.
3519         * testsuite/27_io/istream_sentry.cc (test03): Add.
3520         * testsuite/27_io/ostream_sentry.cc: Add.
3522 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
3524         PR libstdc++/9548
3525         Implement resolution of DR 231 (Ready)
3526         * include/bits/locale_facets.h (__num_base::_S_format_float):
3527         Change declaration: return void, remove __prec parameter.
3528         * src/locale.cc (__num_base::_S_format_float): Implement
3529         resolution of DR 231.
3530         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
3531         Tweak uses. Check for negative precision.
3532         * testsuite/22_locale/num_put/put/char/6.cc: Add
3533         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
3535 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
3537         * config/io/basic_file_libio.h: Fixups.
3538         * config/io/c_io_libio.h: Same.
3539         * libio/Makefile.am: Same.
3540         * libio/Makefile.in: Regenerated.
3542 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
3544         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
3545         Explicitly use the "C" locale.
3546         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
3548 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
3550         DR 75
3551         DR 305
3552         PR libstdc++/9028 (partial)
3553         PR libstdc++/9224
3554         PR libstdc++/9246
3555         PR libstdc++/9247
3557         * src/codecvt.cc
3558         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
3559         codecvt<wchar_t, char, mbstate_t>::do_length,
3560         codecvt<wchar_t, char, mbstate_t>::do_max_length):
3561         Move...
3562         * config/locale/generic/codecvt_members.cc:  ...here.
3563         * config/locale/gnu/codecvt_members.cc:  ...and here.
3565         * config/locale/generic/codecvt_members.cc,
3566         * config/locale/gnu/codecvt_members.cc
3567         (codecvt<wchar_t, char, mbstate_t>::do_encoding
3568         codecvt<wchar_t, char, mbstate_t>::do_in,
3569         codecvt<wchar_t, char, mbstate_t>::do_length,
3570         codecvt<wchar_t, char, mbstate_t>::do_max_length,
3571         codecvt<wchar_t, char, mbstate_t>::do_out):
3572         New implementation that handles stateless encodings,
3573         including UTF-8.
3575         * config/locale/generic/codecvt_members.cc,
3576         * config/locale/gnu/codecvt_members.cc,
3577         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
3578         * include/bits/codecvt.h,
3579         * src/codecvt.cc
3580         (codecvt::length, codecvt::do_length):
3581         Change type of first argument of length and do_length from
3582         'const state_type&' to 'state_type&' according to DR 75.
3584         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
3585         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
3586         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
3587         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
3588         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
3589         Cleanup and check for correct return value from encoding
3590         for "C" locale.
3591         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
3592         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
3593         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
3594         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
3595         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
3596         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
3597         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
3598         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
3599         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
3600         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
3601         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
3602         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
3603         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
3604         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
3605         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
3606         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
3607         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
3608         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
3609         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
3610         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
3611         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
3612         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
3613         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
3614         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
3615         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
3616         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
3617         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
3618         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
3619         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
3620         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
3621         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
3622         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
3623         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
3624         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
3625         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
3626         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
3627         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
3629 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
3631         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
3632         (money_put::do_put): Same.
3634 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
3636         * include/bits/ios_base.h (ios_base): Document reserved storage.
3638         * include/bits/locale_facets.h: (struct __pad): Comment on
3639         implementation.
3640         (__verify_grouping): Same.
3641         (__add_grouping): Same.
3642         * include/bits/locale_facets.tcc (__verify_grouping): Move
3643         comments to declaration.
3644         (__add_grouping): Same.
3646         * include/bits/locale_facets.tcc:
3647         (__write<_CharT, _OutIter>): New function.
3648         (__write<_CharT>): New function specialization.
3649         (num_put::_M_insert): Remove explicit loop over iterator.  Use
3650         __write.
3651         (num_put::_M_widen_float): Remove __basefield.
3652         (num_put::_M_widen_int): Move __basefield to within grouping block.
3654         * include/bits/streambuf_iterator.h: Include <streambuf>.
3655         (ostreambuf_iterator::_M_put): Add.
3657 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
3659         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
3661 2003-02-04  Nathan Myers  <ncm@cantrip.org>
3663         * testsuite/25_algorithms/min_max.cc (test02): Add.
3665 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
3667         PR libstdc++/9439, PR libstdc++/9425
3668         * config/io/basic_file_stdio.cc
3669         (__basic_file<char>::seekoff, seekpos): Return -1L if
3670         fseek fails.
3671         * include/bits/fstream.tcc (basic_filebuf::seekoff):
3672         Check _M_file.seekoff return value; always return
3673         pos_type(off_type(-1)) in case of failure.
3674         (basic_filebuf::pbackfail): Check this->seekoff return
3675         value and return traits_type::eof() in case of failure.
3676         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
3678 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
3680         * include/std/std_ostream.h (ostream::_M_write): Declare.
3681         * ostream.tcc (ostream::_M_write): Define.
3682         (basic_ostream::write): Use it.
3683         (operator<<(basic_ostream, _CharT)): Ditto.
3684         (operator<<(basic_ostream, char)): Ditto.
3685         (operator<<(basic_ostream, _CharT*)): Ditto.
3686         (operator<<(basic_ostream, char*)): Ditto.
3687         (operator<<(basic_ostream, basic_string)): Ditto.
3689 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
3691         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
3693 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
3695         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
3696         add HTML comment about updating links if numbering changes.
3698 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
3700         PR libstdc++/9538
3701         * include/bits/streambuf.tcc (sputbackc): Access
3702         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
3703         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
3705 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
3707         PR libstdc++/9507
3708         * include/bits/fstream.tcc (open): If the 'ate' repositioning
3709         operation fails, calls close _and_ returns a null pointer
3710         to indicate failure (27.8.1.3,4).
3711         * testsuite/27_io/filebuf_members.cc (test_06): Add.
3713 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
3715         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
3717 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
3719         * docs/html/27_io/howto.html: New section on stdio_filebuf.
3720         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
3721         * docs/html/documentation.html: Regenerate.
3723 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
3725         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
3726         * docs/html/17_intro/porting.html: Regenerate.
3728 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3729             Phil Edwards  <pme@gcc.gnu.org>
3731         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
3732         numeric_limits for bits-per-word values.
3733         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
3734         Use __builtin_popcountl instead.
3735         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
3736         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
3737         Use __builtin_ctzl instead.
3738         (_S_bit_count, _S_first_one):  Remove.
3739         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
3740         * src/Makefile.am (sources):  Remove bitset.cc.
3741         * src/bitset.cc:  Delete file.
3742         * src/Makefile.in:  Regenerate.
3744 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
3746         PR libstdc++/9527, PR libstdc++/8713
3747         * docs/html/install.html:  Mention glibc version requirement.
3748         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
3749         with 3.2.1+ (formatting bugfixes).
3750         * docs/html/faq/index.txt:  Regenerate.
3752 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3754         PR libstdc++/9234
3755         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
3756         operator.
3758         * include/bits/valarray_before.h (__not_equal_to): Use != instead
3759         of ==.
3761         * testsuite/26_numerics/valarray_operators.cc: New test.
3763 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
3765         * docs/html/faq/index.html:  Correct link to libg++ information.
3766         * docs/html/faq/index.txt:  Regenerated.
3768 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
3769             Benjamin Kosnik  <bkoz@redhat.com>
3771         Const correctness issue:
3772         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
3773         * include/bits/locale_classes.h
3774         (locale::_Impl::_M_facets): Change type to const facet**.
3775         (locale::_Impl::_M_install_facet): Change declaration to
3776         take const facet*.
3777         (locale::facet::_M_references): Make mutable.
3778         (locale::facet::_M_add_reference): Declare const.
3779         (locale::facet::_M_remove_reference): Likewise.
3780         * include/bits/locale_facets.tcc
3781         (use_facet(const locale&)): Tweak for const facet** _M_facets.
3782         (has_facet(const locale&)): Likewise.
3783         * src/locale.cc
3784         (locale::facet::_M_add_reference): Adjust definition.
3785         (locale::facet::_M_remove_reference): Likewise.
3786         * src/localename.cc
3787         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
3788         const facet** _M_facets.
3789         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
3790         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
3791         (locale::_Impl::_M_install_facet): Adjust definition to take
3792         const facet* and for const facet** _M_facets.
3793         * testsuite/22_locale/locale/cons/8.cc: Add.
3795 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
3797         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
3798         Use __FLT_HAS_INIFINITY__ to initialize.
3799         (numeric_limits<float>::has_quiet_NaN): Likewise.
3800         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
3801         to initialize.
3802         (numeric_limits<double>::has_quiet_NaN): Likewise.
3803         (numeric_limits<long double>::has_infinity): Use
3804         __LDBL_HAS_INIFINITY__ to initialize.
3805         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
3807 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
3809         PR c++/9433
3810         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
3811         with bases which are very ambiguous.
3813 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
3815         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
3816         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
3817         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
3818         * src/Makefile.in: Regenerate.
3819         * libsupc++/Makefile.in: Regenerate.
3821 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
3823         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
3824         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
3825         version_specific_libs is enabled.
3826         * aclocal.m4, configure: Rebuilt.
3828 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
3830         * include/bits/valarray_meta.h: Remove, split into ...
3831         * include/bits/valarray_before.h: ... this, and ...
3832         * include/bits/valarray_after.h: ... this.
3833         * include/std/std_valarray.h: Adjust.
3834         * include/Makefile.am (bits_headers): Adjust.
3835         * include/Makefile.in: Regenerate.
3837 2003-01-24  Andreas Schwab  <schwab@suse.de>
3839         * config/linker-map.gnu: Fix for size_t variance.
3841 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
3843         PR libstdc++/9322
3844         * include/std/std_streambuf.h
3845         (basic_streambuf::basic_streambuf,
3846         basic_streambuf::~basic_streambuf,
3847         basic_streambuf::getloc, basic_streambuf::imbue):
3848         Remove _M_buf_locale_init
3849         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
3850         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
3851         * testsuite/27_io/streambuf_members.cc (test08):  Add.
3852         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
3854 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
3856         Revert include ordering.
3857         * config/locale/generic/c_locale.h: Add include guards.
3858         * config/locale/gnu/c_locale.h: Same.
3859         * include/bits/locale_classes.h: Remove cctype include.
3860         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
3861         * include/std/std_fstream.h: Remove streambuf include.
3862         * include/std/std_sstream.h: Remove streambuf include.
3864 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
3866         * configure.in (libtool_VERSION): To 6:0:0.
3867         * configure: Regenerated.
3868         * config/linker-map.gnu: Clean.
3870         * src/misc-inst.cc: Remove instantiations.
3872         * include/bits/stl_alloc.h (__malloc_alloc_template):
3873         To __malloc_alloc.
3874         (__default_alloc_template): To __pool_alloc.
3875         * src/stl-inst.cc: Same.
3876         * include/backward/alloc.h: Update.
3877         * testsuite/ext/allocators.cc: Update.
3879         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
3880         really try to remove these if possible.
3881         * src/locale.cc (std): Same.
3883         * testsuite/abi_check.cc (check_version): Add.
3885 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
3886             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
3887             Mark Mitchell  <mark@codesourcery.com>
3889         PR libstdc++/9269
3890         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
3891         (basic_filebuf::underflow): Declare.
3892         Move definitions.
3894 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
3896         * include/bits/locale_facets.h: Move non-facet classes requiring
3897         <string> to...
3898         * include/bits/locale_classes.h: New.
3899         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
3900         * include/bits/Makefile.in: Regenerate.
3902         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
3903         * config/locale/gnu/c_locale.h: ...here.
3904         * config/locale/generic/c_locale.h: Same.
3906         * include/bits/locale_facets.tcc: Move declarations to...
3907         * include/bits/locale_facets.h: ...here.
3908         * include/bits/basic_ios.h: Tweak includes accordingly.
3909         * include/std/std_sstream.h: Add streambuf include.
3910         * include/std/std_fstream.h: Ditto.
3911         * include/std/std_locale.h: Add locale_classes.h include.
3912         * include/std/std_iosfwd.h: Tweak.
3913         * src/concept-inst.cc: Add iterator include.
3915         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
3916         bits as unexported in the future.
3918 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
3920         Reshuffle 22_locale testsuite.
3921         * 22_locale/(codecvt.cc money_get.cc
3922         codecvt_members_char_char.cc money_get_members_char.cc
3923         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
3924         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
3925         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
3926         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
3927         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
3928         money_put_members_char.cc ctor_copy_dtor.cc
3929         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
3930         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
3931         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
3932         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
3933         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
3934         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
3935         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
3936         operators.cc ctype_widen_char.cc static_members.cc
3937         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
3938         global_templates.cc time_get_members_wchar_t.cc, members.cc,
3939         time_put.cc, messages_byname.cc, time_put_members_char.cc,
3940         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
3941         Split up into individual test cases...
3942         * 22_locale/codecvt/1.cc: New.
3943         * 22_locale/codecvt/2.cc: New.
3944         * 22_locale/codecvt/always_noconv/char/1.cc: New.
3945         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
3946         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
3947         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
3948         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
3949         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
3950         * 22_locale/codecvt/encoding/char/1.cc: New.
3951         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
3952         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
3953         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
3954         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
3955         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
3956         * 22_locale/codecvt/in/char/1.cc: New.
3957         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
3958         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
3959         * 22_locale/codecvt/in/wchar_t/1.cc: New.
3960         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
3961         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
3962         * 22_locale/codecvt/length/char/1.cc: New.
3963         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
3964         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
3965         * 22_locale/codecvt/length/wchar_t/1.cc: New.
3966         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
3967         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
3968         * 22_locale/codecvt/max_length/char/1.cc: New.
3969         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
3970         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
3971         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
3972         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
3973         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
3974         * 22_locale/codecvt/out/char/1.cc: New.
3975         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
3976         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
3977         * 22_locale/codecvt/out/wchar_t/1.cc: New.
3978         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
3979         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
3980         * 22_locale/codecvt/unicode/char.cc: New.
3981         * 22_locale/codecvt/unicode/wchar_t.cc: New.
3982         * 22_locale/codecvt/unshift/char/1.cc: New.
3983         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
3984         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
3985         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
3986         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
3987         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
3988         * 22_locale/collate/1.cc: New.
3989         * 22_locale/collate/2.cc: New.
3990         * 22_locale/collate/compare/char/1.cc: New.
3991         * 22_locale/collate/compare/char/2.cc: New.
3992         * 22_locale/collate/compare/char/wrapped_env.cc: New.
3993         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
3994         * 22_locale/collate/compare/wchar_t/1.cc: New.
3995         * 22_locale/collate/compare/wchar_t/2.cc: New.
3996         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
3997         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
3998         * 22_locale/collate/hash/char/1.cc: New.
3999         * 22_locale/collate/hash/char/2.cc: New.
4000         * 22_locale/collate/hash/char/wrapped_env.cc: New.
4001         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
4002         * 22_locale/collate/hash/wchar_t/1.cc: New.
4003         * 22_locale/collate/hash/wchar_t/2.cc: New.
4004         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
4005         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
4006         * 22_locale/collate/transform/char/2.cc: New.
4007         * 22_locale/collate/transform/char/wrapped_env.cc: New.
4008         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
4009         * 22_locale/collate/transform/wchar_t/2.cc: New.
4010         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
4011         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
4012         * 22_locale/collate_byname/1.cc: New.
4013         * 22_locale/ctype/1.cc: New.
4014         * 22_locale/ctype/2.cc: New.
4015         * 22_locale/ctype/cons/char/1.cc: New.
4016         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
4017         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
4018         * 22_locale/ctype/is/char/1.cc: New.
4019         * 22_locale/ctype/is/char/2.cc: New.
4020         * 22_locale/ctype/is/char/3.cc: New.
4021         * 22_locale/ctype/is/char/wrapped_env.cc: New.
4022         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
4023         * 22_locale/ctype/is/wchar_t/1.cc: New.
4024         * 22_locale/ctype/is/wchar_t/2.cc: New.
4025         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
4026         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
4027         * 22_locale/ctype/narrow/char/1.cc: New.
4028         * 22_locale/ctype/narrow/char/2.cc: New.
4029         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
4030         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
4031         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
4032         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
4033         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
4034         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
4035         * 22_locale/ctype/scan/char/1.cc: New.
4036         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
4037         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
4038         * 22_locale/ctype/scan/wchar_t/1.cc: New.
4039         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
4040         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
4041         * 22_locale/ctype/to/char/1.cc: New.
4042         * 22_locale/ctype/to/char/wrapped_env.cc: New.
4043         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
4044         * 22_locale/ctype/to/wchar_t/1.cc: New.
4045         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
4046         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
4047         * 22_locale/ctype/widen/char/1.cc: New.
4048         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
4049         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
4050         * 22_locale/ctype/widen/wchar_t/1.cc: New.
4051         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
4052         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
4053         * 22_locale/facet/1.cc: New.
4054         * 22_locale/facet/2.cc: New.
4055         * 22_locale/global_templates/1.cc: New.
4056         * 22_locale/locale/cons/1.cc: New.
4057         * 22_locale/locale/cons/2.cc: New.
4058         * 22_locale/locale/cons/3.cc: New.
4059         * 22_locale/locale/cons/4.cc: New.
4060         * 22_locale/locale/cons/5.cc: New.
4061         * 22_locale/locale/cons/6.cc: New.
4062         * 22_locale/locale/cons/7.cc: New.
4063         * 22_locale/locale/global_locale_objects/1.cc: New.
4064         * 22_locale/locale/global_locale_objects/2.cc: New.
4065         * 22_locale/locale/global_locale_objects/3.cc: New.
4066         * 22_locale/locale/operations/1.cc: New.
4067         * 22_locale/locale/operations/2.cc: New.
4068         * 22_locale/messages/1.cc: New.
4069         * 22_locale/messages/2.cc: New.
4070         * 22_locale/messages/members/char/1.cc: New.
4071         * 22_locale/messages/members/char/2.cc: New.
4072         * 22_locale/messages/members/char/3.cc: New.
4073         * 22_locale/messages/members/char/wrapped_env.cc: New.
4074         * 22_locale/messages/members/char/wrapped_locale.cc: New.
4075         * 22_locale/messages_byname/1.cc: New.
4076         * 22_locale/money_get/1.cc: New.
4077         * 22_locale/money_get/2.cc: New.
4078         * 22_locale/money_get/get/char/1.cc: New.
4079         * 22_locale/money_get/get/char/2.cc: New.
4080         * 22_locale/money_get/get/char/3.cc: New.
4081         * 22_locale/money_get/get/char/4.cc: New.
4082         * 22_locale/money_get/get/char/5.cc: New.
4083         * 22_locale/money_get/get/char/6.cc: New.
4084         * 22_locale/money_get/get/char/7.cc: New.
4085         * 22_locale/money_get/get/char/8.cc: New.
4086         * 22_locale/money_get/get/char/wrapped_env.cc: New.
4087         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
4088         * 22_locale/money_get/get/wchar_t/1.cc: New.
4089         * 22_locale/money_get/get/wchar_t/2.cc: New.
4090         * 22_locale/money_get/get/wchar_t/3.cc: New.
4091         * 22_locale/money_get/get/wchar_t/4.cc: New.
4092         * 22_locale/money_get/get/wchar_t/5.cc: New.
4093         * 22_locale/money_get/get/wchar_t/6.cc: New.
4094         * 22_locale/money_get/get/wchar_t/7.cc: New.
4095         * 22_locale/money_get/get/wchar_t/8.cc: New.
4096         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
4097         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
4098         * 22_locale/money_put/1.cc: New.
4099         * 22_locale/money_put/2.cc: New.
4100         * 22_locale/money_put/put/char/1.cc: New.
4101         * 22_locale/money_put/put/char/2.cc: New.
4102         * 22_locale/money_put/put/char/3.cc: New.
4103         * 22_locale/money_put/put/char/4.cc: New.
4104         * 22_locale/money_put/put/char/5.cc: New.
4105         * 22_locale/money_put/put/char/6.cc: New.
4106         * 22_locale/money_put/put/char/wrapped_env.cc: New.
4107         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
4108         * 22_locale/money_put/put/wchar_t/1.cc: New.
4109         * 22_locale/money_put/put/wchar_t/2.cc: New.
4110         * 22_locale/money_put/put/wchar_t/3.cc: New.
4111         * 22_locale/money_put/put/wchar_t/4.cc: New.
4112         * 22_locale/money_put/put/wchar_t/5.cc: New.
4113         * 22_locale/money_put/put/wchar_t/6.cc: New.
4114         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
4115         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
4116         * 22_locale/moneypunct/1.cc: New.
4117         * 22_locale/moneypunct/2.cc: New.
4118         * 22_locale/moneypunct/3.cc: New.
4119         * 22_locale/moneypunct/members/char/1.cc: New.
4120         * 22_locale/moneypunct/members/char/2.cc: New.
4121         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
4122         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
4123         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
4124         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
4125         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
4126         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
4127         * 22_locale/moneypunct_byname/1.cc: New.
4128         * 22_locale/num_get/1.cc: New.
4129         * 22_locale/num_get/2.cc: New.
4130         * 22_locale/num_get/get/char/1.cc: New.
4131         * 22_locale/num_get/get/char/2.cc: New.
4132         * 22_locale/num_get/get/char/3.cc: New.
4133         * 22_locale/num_get/get/char/4.cc: New.
4134         * 22_locale/num_get/get/char/5.cc: New.
4135         * 22_locale/num_get/get/char/6.cc: New.
4136         * 22_locale/num_get/get/char/wrapped_env.cc: New.
4137         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
4138         * 22_locale/num_get/get/wchar_t/1.cc: New.
4139         * 22_locale/num_get/get/wchar_t/2.cc: New.
4140         * 22_locale/num_get/get/wchar_t/3.cc: New.
4141         * 22_locale/num_get/get/wchar_t/4.cc: New.
4142         * 22_locale/num_get/get/wchar_t/5.cc: New.
4143         * 22_locale/num_get/get/wchar_t/6.cc: New.
4144         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
4145         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
4146         * 22_locale/num_put/1.cc: New.
4147         * 22_locale/num_put/2.cc: New.
4148         * 22_locale/num_put/put/char/1.cc: New.
4149         * 22_locale/num_put/put/char/2.cc: New.
4150         * 22_locale/num_put/put/char/3.cc: New.
4151         * 22_locale/num_put/put/char/4.cc: New.
4152         * 22_locale/num_put/put/char/5.cc: New.
4153         * 22_locale/num_put/put/char/wrapped_env.cc: New.
4154         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
4155         * 22_locale/num_put/put/wchar_t/1.cc: New.
4156         * 22_locale/num_put/put/wchar_t/2.cc: New.
4157         * 22_locale/num_put/put/wchar_t/3.cc: New.
4158         * 22_locale/num_put/put/wchar_t/4.cc: New.
4159         * 22_locale/num_put/put/wchar_t/5.cc: New.
4160         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
4161         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
4162         * 22_locale/numpunct/1.cc: New.
4163         * 22_locale/numpunct/2.cc: New.
4164         * 22_locale/numpunct/members/char/1.cc: New.
4165         * 22_locale/numpunct/members/char/2.cc: New.
4166         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
4167         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
4168         * 22_locale/numpunct/members/wchar_t/1.cc: New.
4169         * 22_locale/numpunct/members/wchar_t/2.cc: New.
4170         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
4171         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
4172         * 22_locale/numpunct_byname/1.cc: New.
4173         * 22_locale/numpunct_byname/2.cc: New.
4174         * 22_locale/time_get/1.cc: New.
4175         * 22_locale/time_get/2.cc: New.
4176         * 22_locale/time_get/date_order/char/1.cc: New.
4177         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
4178         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
4179         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
4180         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
4181         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
4182         * 22_locale/time_get/get_date/char/1.cc: New.
4183         * 22_locale/time_get/get_date/char/2.cc: New.
4184         * 22_locale/time_get/get_date/char/3.cc: New.
4185         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
4186         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
4187         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
4188         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
4189         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
4190         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
4191         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
4192         * 22_locale/time_get/get_monthname/char/1.cc: New.
4193         * 22_locale/time_get/get_monthname/char/2.cc: New.
4194         * 22_locale/time_get/get_monthname/char/3.cc: New.
4195         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
4196         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
4197         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
4198         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
4199         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
4200         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
4201         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
4202         * 22_locale/time_get/get_time/char/1.cc: New.
4203         * 22_locale/time_get/get_time/char/2.cc: New.
4204         * 22_locale/time_get/get_time/char/3.cc: New.
4205         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
4206         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
4207         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
4208         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
4209         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
4210         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
4211         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
4212         * 22_locale/time_get/get_weekday/char/1.cc: New.
4213         * 22_locale/time_get/get_weekday/char/2.cc: New.
4214         * 22_locale/time_get/get_weekday/char/3.cc: New.
4215         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
4216         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
4217         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
4218         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
4219         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
4220         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
4221         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
4222         * 22_locale/time_get/get_year/char/1.cc: New.
4223         * 22_locale/time_get/get_year/char/3.cc: New.
4224         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
4225         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
4226         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
4227         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
4228         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
4229         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
4230         * 22_locale/time_put/1.cc: New.
4231         * 22_locale/time_put/2.cc: New.
4232         * 22_locale/time_put/put/char/1.cc: New.
4233         * 22_locale/time_put/put/char/10.cc: New.
4234         * 22_locale/time_put/put/char/2.cc: New.
4235         * 22_locale/time_put/put/char/3.cc: New.
4236         * 22_locale/time_put/put/char/4.cc: New.
4237         * 22_locale/time_put/put/char/5.cc: New.
4238         * 22_locale/time_put/put/char/6.cc: New.
4239         * 22_locale/time_put/put/char/7.cc: New.
4240         * 22_locale/time_put/put/char/8.cc: New.
4241         * 22_locale/time_put/put/char/9.cc: New.
4242         * 22_locale/time_put/put/char/wrapped_env.cc: New.
4243         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
4244         * 22_locale/time_put/put/wchar_t/1.cc: New.
4245         * 22_locale/time_put/put/wchar_t/10.cc: New.
4246         * 22_locale/time_put/put/wchar_t/2.cc: New.
4247         * 22_locale/time_put/put/wchar_t/3.cc: New.
4248         * 22_locale/time_put/put/wchar_t/4.cc: New.
4249         * 22_locale/time_put/put/wchar_t/5.cc: New.
4250         * 22_locale/time_put/put/wchar_t/6.cc: New.
4251         * 22_locale/time_put/put/wchar_t/7.cc: New.
4252         * 22_locale/time_put/put/wchar_t/8.cc: New.
4253         * 22_locale/time_put/put/wchar_t/9.cc: New.
4254         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
4255         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
4257 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
4259         * config/locale/generic/messages_members.h
4260         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
4261         unqualified members of base clasess.
4263 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
4264             Jeffrey Oldham <oldham@codesourcery.com>
4266         * config/locale/gnu/messages_members.h: Use this-> to refer to
4267         unqualified members of base clasess.
4268         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
4269         * include/bits/codecvt.h: Likewise.
4270         * include/bits/deque.tcc: Likewise.
4271         * include/bits/fstream.tcc: Likewise.
4272         * include/bits/istream.tcc: Likewise.
4273         * include/bits/list.tcc: Likewise.
4274         * include/bits/locale_facets.h: Likewise.
4275         * include/bits/ostream.tcc: Likewise.
4276         * include/bits/sstream.tcc: Likewise.
4277         * include/bits/stl_bvector.h: Likewise.
4278         * include/bits/stl_deque.h: Likewise.
4279         * include/bits/stl_list.h: Likewise.
4280         * include/bits/stl_tree.h: Likewise.
4281         * include/bits/stl_vector.h: Likewise.
4282         * include/bits/vector.tcc: Likewise.
4283         * include/ext/ropeimpl.h: Likewise.
4284         * include/ext/stdio_filebuf.h: Likewise.
4285         * include/ext/stl_rope.h: Likewise.
4286         * include/std/std_fstream.h: Likewise.
4287         * include/std/std_sstream.h: Likewise.
4289 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
4291         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
4293 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
4295         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
4296         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
4297         * aclocal.m4: Regenerate.
4298         * configure: Regenerate.
4299         * testsuite/Makefile.am (all-local): Add conditional rule to
4300         generate testsuite_wchar_t.
4301         * testsuite/Makefile.in: Regenerate.
4302         * testsuite/lib/libstdc++-v3-dg.exp
4303         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
4304         testsuite_wchar_t is not present in the build directory.
4305         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
4306         Remove setulimit bits.
4307         * testsuite/26_numerics/complex_value.cc: Set to noopts.
4308         * testsuite/Makefile.am (CLEANFILES): Add.
4309         * testsuite/Makefile.in: Regenerate.
4311 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4313         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
4314         __hppa__.
4316 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
4318         Further conform g++'s __vmi_class_type_info to the C++ ABI
4319         specification.
4320         * libsupc++/cxxabi.h
4321         (__vmi_class_type_info::__flags_masks): Remove enumerations not
4322         required by the specification.
4324 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
4326         Renames, namespaces for testsuite utilities.
4327         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
4328         (gnu_allocator_tracker): Rename to allocation_tracker.
4329         (gnu_new_allocator): Rename to tracker_alloc.
4330         (__set_testsuite_memlimit): Rename to set_memory_limits.
4331         (gnu_assignment_operator): Rename to assignment_operator.
4332         (gnu_destructor): Rename to destructor.
4333         (gnu_copy_tracker): Rename to copy_tracker.
4334         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
4335         (run_tests_wrapped_locale): New.
4336         (run_tests_wrapped_env): New.
4337         * testsuite/testsuite_hooks.cc: Same.
4338         (class locale_data): Add.
4339         (class enviornment_variable): Add.
4340         (class not_found): Add.
4341         * testsuite/testsuite_allocator.h: Same.
4342         * testsuite/testsuite_allocator.cc: Same.
4343         * testsuite/23_containers/deque_ctor.cc
4344         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
4345         allocation_tracker.
4346         Change gnu_new_allocator to tracker_alloc.
4347         Change gnu_counting_struct to counter.
4348         Change gnu_copy_tracker to copy_tracker.
4349         Change gnu_copy_constructor to copy_constructor.
4350         Change gnu_assignment_operator to assignment_operator.
4351         Inject.
4352         * testsuite/23_containers/vector_capacity.cc: Same.
4353         * testsuite/23_containers/vector_ctor.cc (test01): Same.
4354         * testsuite/23_containers/list_modifiers.cc: Change
4355         gnu_copy_tracker to copy_tracker.
4356         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
4357         __set_testsuite_memlimit to set_memory_limits.
4358         * testsuite/21_strings/insert.cc (main): Same.
4359         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
4360         * testsuite/27_io/stringstream.cc: Same.
4361         * testsuite/27_io/stringbuf.cc: Same.
4362         * testsuite/27_io/streambuf.cc: Same.
4363         * testsuite/27_io/ostream.cc: Same.
4364         * testsuite/27_io/istream.cc: Same.
4365         * testsuite/27_io/fstream.cc: Same.
4366         * testsuite/lib/libstdc++-v3-dg.exp
4367         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
4368         three levels deeper in glob patterns.
4370 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
4372         * docs/doxygen/tables.html:  Finished now.
4373         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
4374         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
4375         comments.
4377         * include/bits/deque.tcc, include/bits/stl_alloc.h,
4378         include/bits/stl_deque.h, include/bits/stl_list.h,
4379         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
4380         for 3.4 removal.
4382 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
4384         * configure.in: Revert.
4385         * configure: Regenerate.
4387 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
4389         * include/Makefile.am (install-data-local): Prepend
4390         $(DESTDIR) to destination paths in all (un)installation
4391         commands.  Use ${c_base_builddir} and ${std_builddir}
4392         as destination subdirectories to achieve consistency with
4393         preceding mkinstalldirs commands.  No effect because both
4394         variables contain "." only.
4395         * include/Makefile.in: Regenerate.
4397 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
4399         * include/Makefile.am (stamp-*): Add checks for existing stamps.
4400         * include/Makefile.in: Regenerate.
4402         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
4403         * aclocal.m4: Regenerate.
4405         * configure.in: Don't add new multi-do rules every time the
4406         directory is reconfigured.
4407         * configure: Regenerate.
4409 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
4410             Nathan Myers  <ncm@cantrip.org>
4412         * src/Makefile.am (stamp-debug): Clean.
4413         * src/Makefile.in: Regenerate.
4415 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
4417         PR libstdc++/8707
4418         * Makefile.am (distclean-multi): Fix.
4419         * Makefile.in: Regenerate.
4421 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
4423         * include/bits/locale_facets.h (messages): Move ctor, dtor
4424         definitions to..
4425         (__timepunct): Same.
4426         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
4427         definitions. Conditionalize for GNU systems.
4428         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
4429         definitions.
4430         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
4431         definitions. Conditionalize for GNU systems.
4432         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
4433         definitions.
4434         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
4435         * src/locale.cc: Define.
4436         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
4437         Use it.
4438         * config/locale/gnu/time_members.h: Use it.
4439         * config/locale/gnu/messages_members.h: Use it.
4440         * config/linker-map.gnu: Add locale::facets details.
4441         * include/Makefile.am (target_headers_extra): Add time_members.h.
4442         * include/Makefile.in: Regenerate.
4443         * acinclude.m4: Export CTIME_H.
4444         * aclocal.m4: Regenerate.
4445         * configure: Regnerate.
4447 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
4449         * src/codecvt.cc
4450         (codecvt<char, char, mbstate_t>::do_in, do_out):
4451         Tweak parameters to avoid unused parameter warnings.
4453 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
4455         PR libstdc++/9151
4456         * include/bits/locale_facets.cc (num_put::_M_convert_float):
4457         Limit __prec to digits10 + 2, not digits10 + 1, taking into
4458         account the possibility of %{g,G} conversion specifiers
4459         inside _S_format_float.
4460         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
4462 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4464         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
4465         libstdc++-v3-list-sourcefiles): Additionally handle files one
4466         level deeper in glob patterns.
4468         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
4469         * testsuite/27_io/istream_extractor_arith/01.cc,
4470         testsuite/27_io/istream_extractor_arith/02.cc,
4471         testsuite/27_io/istream_extractor_arith/03.cc,
4472         testsuite/27_io/istream_extractor_arith/06.cc,
4473         testsuite/27_io/istream_extractor_arith/07.cc,
4474         testsuite/27_io/istream_extractor_arith/08.cc,
4475         testsuite/27_io/istream_extractor_arith/09.cc,
4476         testsuite/27_io/istream_extractor_arith/10.cc,
4477         testsuite/27_io/istream_extractor_arith/11.cc,
4478         testsuite/27_io/istream_extractor_arith/12.cc,
4479         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
4480         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
4481         sparc*-*-solaris2*.
4483 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
4485         PR libstdc++/9168
4486         * src/codecvt.cc
4487         (codecvt<char, char, mbstate_t>::do_in, do_out):
4488         Implement the resolution of DR19 (TC).
4489         * testsuite/22_locale/codecvt_members_char_char.cc
4490         (test01): Tweak.
4492 2003-01-02  Jason Merrill  <jason@redhat.com>
4494         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
4495         *__mem is also an output.
4496         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.