OSDN Git Service

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