OSDN Git Service

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