OSDN Git Service

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