OSDN Git Service

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