OSDN Git Service

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