OSDN Git Service

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