OSDN Git Service

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