OSDN Git Service

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