OSDN Git Service

a0cd7a40a7e0999552b7a93dcf3150609499ade8
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-09-09  David Edelsohn  <edelsohn@gnu.org>
2
3         * src/ios.cc (ios_base::Init::Init): Remove unnecessary
4         qualifier from _S_synced_with_stdio.
5
6 2003-09-09  Bernardo Innocenti  <bernie@develer.com>
7
8         * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
9
10 2003-09-04  Petur Runolfsson  <peturr02@ru.is>
11
12         PR libstdc++/9028
13         * include/bits/fstream.tcc
14         (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
15         (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
16         _M_ext_buf_size, _M_ext_next and _M_ext_end.
17         (basic_filebuf::underflow): Handle variable-width stateless
18         encodings (codecvt::encoding() == 0), including UTF-8.
19         * include/std/std_fstream.h (basic_filebuf):
20         Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
21         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
22         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
23         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
24         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
25         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
26         * testsuite/27_io/objects/wchar_t/12.cc: New test.
27         * testsuite/27_io/objects/wchar_t/13.cc: New test.
28
29 2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>
30
31         * docs/html/faq/index.html: Note that a namespace alias can't be
32         used when specialising templates in extension namespace.
33         * docs/html/faq/index.txt: Regenerate.
34
35 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
36
37         PR libstdc++/12048
38         * include/ext/stdio_sync_filebuf.h
39         (stdio_sync_filebuf::_M_unget_buf): Declare it.
40         (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
41         (stdio_sync_filebuf::uflow): Store the returned character in
42         _M_unget_buf.
43         (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
44         _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
45         (stdio_sync_filebuf<char>::xsgetn): Store last read character in
46         _M_unget_buf, if any, else eof().
47         (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
48         _M_unget_buf, if any, else eof().
49         * testsuite/27_io/objects/char/12048.cc: Rename to...
50         * testsuite/27_io/objects/char/12048-1.cc: ...this.
51         * testsuite/27_io/objects/char/12048-2.cc: New test.
52         * testsuite/27_io/objects/char/12048-3.cc: New test.
53         * testsuite/27_io/objects/char/12048-4.cc: New test.
54         * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
55         * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
56         * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
57         * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
58         * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
59         * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
60         * testsuite/ext/stdio_sync_filebuf_char.cc
61         (test02, test03, test04, test05): New tests.
62         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
63         (test02, test03, test04, test05): New tests.
64
65 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
66
67         * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
68         stringbuf or strstreambuf. Fix typos.
69
70 2003-09-02  Phil Edwards  <phil@codesourcery.com>
71
72         * acinclude.m4 (GLIBCXX_ENABLE_HOSTED):  #define _GLIBCXX_HOSTED
73         appropriately.
74         * config.h.in:  Add _GLIBCXX_HOSTED.
75         * libsupc++/eh_term_handler.cc:  Test it here; initialize
76         __terminate_handler to std::abort if freestanding.
77         * aclocal.m4, configure:  Regenerated.
78         * docs/html/configopts.html:  Document --disable-hosted-libstdcxx.
79
80 2003-08-29  Nathan Myers  <ncm@cantrip.org>
81         
82         PR libstdc++/11990      
83         * include/bits/locale_facets.tcc (__pad): delete dead code.
84
85 2003-08-28  Alan Modra  <amodra@bigpond.net.au>
86
87         * configure.ac: Test $with_cross_host against $build_alias, not $build.
88         * configure: Regenerate.
89
90 2003-08-27  Petur Runolfsson  <peturr02@ru.is>
91
92         * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
93         * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
94
95 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
96
97         * Makefile.am:  Remove trailing whitespace.  Remove needless
98         "foo = @foo@" assignments.  Replace direct uses of @foo@ with $(foo).
99         * include/Makefile.am:  Likewise.
100         * libmath/Makefile.am:  Likewise.
101         * libsupc++/Makefile.am:  Likewise.
102         * po/Makefile.am:  Likewise.
103         * src/Makefile.am:  Likewise.
104         * testsuite/Makefile.am:  Likewise.
105
106         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
107         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
108         testsuite/Makefile.in:  Regenerated.
109
110 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
111
112         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Change quoting of
113         includedir.
114         * aclocal.m4, configure:  Regenerate.
115
116 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
117
118         * acinclude.m4: Include no-executables.m4.
119         * configure.ac: Uncomment GCC_NO_EXECUTABLES.
120         * aclocal.m4: Regenerated.
121         * configure: Regenerated.
122
123 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
124
125         * acinclude.m4: Don't call AC_ISC_POSIX.
126         * aclocal.m4: Regenerated.
127         * configure: Regenerated.
128
129 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
130
131         * acinclude.m4 (GLIBCXX_CONDITIONAL):  New macro.  Wrap
132         AM_CONDITIONAL.  Replace all calls to AM_CONDITIONAL with this one.
133         (GLIBCXX_ENABLE_HOSTED):  New macro, sets new variable is_hosted,
134         used elsewhere in this file.
135         (GLIBCXX_EVALUATE_CONDITIONALS):  New macro...
136         * configure.ac:  ...called here to expand all conditionals.
137         * Makefile.am:  Conditionalize SUBDIRS on GLIBCXX_HOSTED.
138         * include/Makefile.am:  Remove redundant gxx_include_dir assignment.
139         (install-freestanding-headers):  New target, a subset of
140         install-headers.  Conditionalize install-data-local on GLIBCXX_HOSTED.
141
142         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
143         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
144         src/Makefile.in, testsuite/Makefile.in:  Regenerated.
145
146 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
147
148         * docs/doxygen/run_doxygen:  Shell fixes.  Remove hardcoded local
149         pathnames from generated tag file.
150
151 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
152
153         * Makefile.am:  Add comment.
154         * acinclude.m4 (GLIBCXX_CONFIGURE):  Set new glibcxx_SUBDIRS and
155         SUBDIRS variables.
156         * configure.ac:  Use them both here, instead of hardcoded lists.
157
158         * fragment.am:  Add STAMP varaible.
159         * include/Makefile.am:  Cosmetic whitespace cleanup.  Use $(LN_S)
160         instead of @LN_S@.
161         (stamp-*):  Move file creation rule outside of 'if' branches to
162         ensure the stamp-* files are actually updated.  Use $(STAMP).
163         * src/Makefile.am:  Remove now-nonexistant variable.
164         * libsupc++/Makefile.am:  Likewise.  Snap the assignment chain
165         for -prefer-pic.
166         * po/Makefile.am:  Include same fragment as all the others.
167
168         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
169         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in:  Regenerated.
170
171 2003-08-26  Loren J. Rittle  <ljrittle@acm.org>
172
173         * testsuite/data/cin_unget-1.txt: New.
174         * testsuite/27_io/objects/char/12048.cc: New.
175
176 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
177
178         * config/os/hpux/os_defines.h: Unconditionally define
179         _GLIBCXX_GTHREAD_USE_WEAK to 0.
180
181 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
182
183         * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
184         crosses to Darwin targets.
185         * configure: Regenerate.
186
187 2003-08-19  Petur Runolfsson  <peturr02@ru.is>
188
189         * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
190
191 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
192
193         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
194         in the patch from 3 minutes ago.  Boy, is my face red.
195         * configure:  At least I remembered to regenerate this.
196
197 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
198
199         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
200         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
201         things from the top level.
202         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
203         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
204         (currently unused).  Strip the fake-VPATH shell fragment from
205         automake-generated rules, if present.
206         * linkage.m4:  Add comment.
207
208         * fragment.am:  New file, containing factored-out common settings.
209         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
210         * Makefile.am:  Include fragment.am.  Remove common variables.
211         * include/Makefile.am:  Likewise.
212         * libmath/Makefile.am:  Likewise.
213         * libsupc++/Makefile.am:  Likewise.
214         * po/Makefile.am:  Likewise.  Print rules during check.
215         * src/Makefile.am:  Likewise.
216         * testsuite/Makefile.am:  Likewise.
217
218         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
219         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
220         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
221
222 2003-08-11  John Levon  <levon@movementarian.org>
223
224         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
225         remaining places for the name change from GLIBCPP_FORCE_NEW
226         to GLIBCXX_FORCE_NEW
227
228 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
229
230         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
231         typedefs to num_*.
232         * include/bits/basic_ios.tcc: Same.
233         * include/bits/istream.tcc: Same.
234         * include/bits/locale_facets.h: Same.
235         * include/bits/ostream.tcc: Same.
236         * include/std/std_istream.h: Same.
237         * include/std/std_ostream.h: Same.
238         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
239
240         * include/ext/rope: Remove build warning.
241
242 2003-08-11  Andreas Jaeger  <aj@suse.de>
243
244         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
245         to make SMP-safe.
246         * include/Makefile.in: Regenerated.
247
248 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
249
250         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
251         when calling AC_PROG_CC.
252         * aclocal.m4, configure:  Regenerate.
253
254 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
255
256         * acinclude.m4:  Properly quote variable which will be expanded
257         inside makefiles.  Use CXX instead of CC to extract compiler info.
258         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
259         correct form in PACKAGE.
260         * aclocal.m4, configure:  Regenerate.
261
262 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
263
264         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
265         (check-abi-verbose): Same.
266         * testsuite/testsuite_performance.h (report_performance): Same.
267
268 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
269
270         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
271
272 2003-08-07  Doug Gregor  <dgregor@apple.com>
273
274         * include/bits/char_traits.h (char_traits::not_eof): Match operand
275         types in ? :.
276
277 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
278
279         PR libstdc++/11784
280         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
281         Replace variants with new BSET-based version.
282
283 2003-08-07  Carlo Wood  <carlo@alinoe.com>
284
285         * include/bits/demangle.h: Do not use cctype functions that depend
286         on locale.
287
288 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
289
290         * configure.in:  Rename...
291         * configure.ac:  ...to this.
292         * docs/html/17_intro/porting.texi:  Update name.
293
294         * docs/html/17_intro/porting.html:  Regenerate.
295         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
296         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
297         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
298
299 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
300
301         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
302         pipe, open the window to let out the fumes, redo the option-handling
303         logic to properly execute the detection test.
304         * aclocal.m4, configure:  Regenerate.
305
306 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
307
308         Convert to new autotools.
309         * acconfig.h:  Update with correct names.
310         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
311         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
312         * configure.in:  Update.  Split hardcoded cross-configury settings
313         out to...
314         * crossconfig.m4:  ...here.  New file.  Contents untouched.
315         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
316         chunks out to...
317         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
318         Contents untouched.
319         * scripts/testsuite_flags.in:  Update.
320
321         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
322         variables (already generated by automake).
323         * include/Makefile.am:  Ditto.
324         * libmath/Makefile.am:  Ditto.
325         * libsupc++/Makefile.am:  Ditto.
326         * po/Makefile.am:  Ditto.
327         * src/Makefile.am:  Ditto.
328
329         * aclocal.m4:  Regenerate using new versions.
330         * config.h.in:  Ditto.
331         * configure:  Ditto.
332         * Makefile.in:  Ditto.
333         * include/Makefile.in:  Ditto.
334         * libmath/Makefile.in:  Ditto.
335         * libsupc++/Makefile.in:  Ditto.
336         * po/Makefile.in:  Ditto.
337         * src/Makefile.in:  Ditto.
338         * testsuite/Makefile.in:  Ditto.
339
340 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
341
342         * po/libstdc++.pot:  Re-extract/regenerate.
343
344 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
345
346         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
347         Remove unneeded variable assignments.  Leave them for automake.
348         * testsuite/lib/libstdc++-v3.exp:  Rename...
349         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
350         accordingly.
351         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
352         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
353         names accordingly.
354
355 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
356
357         * docs/doxygen/guide.html:  run_doxygen uses bash.
358         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
359         * docs/doxygen/run_doxygen:  Tweaks and improvements.
360         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
361         * docs/html/install.html:  Update autoconf/automake requirements.
362         * docs/html/test.html:  Add section describing DejaGNU support.
363         * docs/html/17_intro/confdeps.dot:  New file, generates...
364         * docs/html/17_intro/confdeps.png:  ...this new file.
365         * docs/html/Makefile:  Generated here.
366         * docs/html/17_intro/configury.html:  New file.
367
368 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
369
370         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
371         * testsuite/lib/libstdc++-v3.exp:  ...to this.
372         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
373
374 2003-07-31  Doug Gregor  <dgregor@apple.com>
375
376         Add user specialization tests.
377         * testsuite/23_containers/deque/1.cc: New.
378         * testsuite/23_containers/list/1.cc: New.
379         * testsuite/23_containers/map/1.cc: New.
380         * testsuite/23_containers/multimap/1.cc: New.
381         * testsuite/23_containers/multiset/1.cc: New.
382         * testsuite/23_containers/set/1.cc: New.
383         * testsuite/23_containers/vector/1.cc: New.
384
385 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
386
387         Reshuffle 23_containers testsuite.
388         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
389         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
390         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
391         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
392         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
393         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
394         vector_resize.cc: Split into...
395         * 23_containers/bitset/cons/1.cc: New.
396         * 23_containers/bitset/cons/6282.cc: New.
397         * 23_containers/bitset/count/6124.cc: New.
398         * 23_containers/bitset/operations/1.cc: New.
399         * 23_containers/bitset/operations/2.cc: New.
400         * 23_containers/bitset/test/1.cc: New.
401         * 23_containers/bitset/to_ulong/1.cc: New.
402         * 23_containers/deque/cons/1.cc: New.
403         * 23_containers/deque/cons/2.cc: New.
404         * 23_containers/deque/operators/1.cc: New.
405         * 23_containers/list/capacity/1.cc: New.
406         * 23_containers/list/cons/1.cc: New.
407         * 23_containers/list/cons/2.cc: New.
408         * 23_containers/list/cons/3.cc: New.
409         * 23_containers/list/cons/4.cc: New.
410         * 23_containers/list/cons/5.cc: New.
411         * 23_containers/list/cons/6.cc: New.
412         * 23_containers/list/cons/7.cc: New.
413         * 23_containers/list/cons/8.cc: New.
414         * 23_containers/list/cons/9.cc: New.
415         * 23_containers/list/modifiers/1.cc: New.
416         * 23_containers/list/modifiers/2.cc: New.
417         * 23_containers/list/modifiers/3.cc: New.
418         * 23_containers/list/operators/1.cc: New.
419         * 23_containers/list/operators/2.cc: New.
420         * 23_containers/list/operators/3.cc: New.
421         * 23_containers/list/operators/4.cc: New.
422         * 23_containers/map/insert/1.cc: New.
423         * 23_containers/map/operators/1.cc: New.
424         * 23_containers/map/operators/1_neg.cc: New.
425         * 23_containers/multiset/insert/1.cc: New.
426         * 23_containers/priority_queue/members/7161.cc: New.
427         * 23_containers/queue/members/7157.cc: New.
428         * 23_containers/set/operators/1_neg.cc: New.
429         * 23_containers/stack/members/7158.cc: New.
430         * 23_containers/vector/bool/1.cc: New.
431         * 23_containers/vector/bool/6886.cc: New.
432         * 23_containers/vector/capacity/1.cc: New.
433         * 23_containers/vector/capacity/2.cc: New.
434         * 23_containers/vector/capacity/8230.cc: New.
435         * 23_containers/vector/cons/1.cc: New.
436         * 23_containers/vector/cons/2.cc: New.
437         * 23_containers/vector/cons/3.cc: New.
438         * 23_containers/vector/cons/4.cc: New.
439         * 23_containers/vector/cons/6513.cc: New.
440         * 23_containers/vector/element_access/1.cc: New.
441         * 23_containers/vector/modifiers/1.cc: New.
442         * 23_containers/vector/modifiers/2.cc: New.
443         * 23_containers/vector/resize/1.cc: New.
444
445 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
446
447         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
448         dg-options.
449         * testsuite/thread/pthread2.cc: Likewise.
450         * testsuite/thread/pthread3.cc: Likewise.
451         * testsuite/thread/pthread4.cc: Likewise.
452         * testsuite/thread/pthread5.cc: Likewise.
453         * testsuite/thread/pthread6.cc: Likewise.
454         * testsuite/thread/pthread7-rope.cc: Likewise.
455
456 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
457
458         * include/bits/c++config:  Partial reversion (comment placement) of
459         previous patch.
460
461 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
462
463         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
464         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
465         (_GLIBCXX_AT_AT): Remove.
466         (__USE_MALLOC): Remove.
467         * include/std/std_fstream.h: Modify.
468         * include/bits/basic_ios.h: Same.
469         * include/bits/valarray_array.h: Same.
470         * include/c_std/std_cmath.h: Same.
471         * include/c_std/cmath.tcc: Same.
472         * include/std/std_vector.h: Same.
473         * include/std/std_string.h: Same.
474         * include/std/std_stack.h: Same.
475         * include/std/std_queue.h: Same.
476         * include/std/std_list.h: Same.
477         * include/std/std_deque.h: Same.
478         * include/std/std_streambuf.h: Same.
479         * include/std/std_sstream.h: Same.
480         * include/std/std_ostream.h: Same.
481         * include/std/std_istream.h: Same.
482         * include/bits/valarray_array.tcc: Same, format.
483
484         * include/c/std_cctype.h: Fix include guards.
485         * include/c/std_cerrno.h: Same.
486         * include/c/std_cfloat.h: Same.
487         * include/c/std_climits.h: Same.
488         * include/c/std_clocale.h: Same.
489         * include/c/std_cmath.h: Same.
490         * include/c/std_csetjmp.h: Same.
491         * include/c/std_csignal.h: Same.
492         * include/c/std_cstdarg.h: Same.
493         * include/c/std_cstddef.h: Same.
494         * include/c/std_cstdio.h: Same.
495         * include/c/std_cstdlib.h: Same.
496         * include/c/std_cstring.h: Same.
497         * include/c/std_ctime.h: Same.
498         * include/c/std_cwchar.h: Same.
499         * include/c/std_cwctype.h: Same.
500         * include/c_std/cmath.tcc: Same.
501         * include/c_std/std_cmath.h: Same.
502
503 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
504
505         PR libstdc++/11504.
506         * include/bits/stl_tree.h: Replace C-style casts with C++-style
507         casts.  Changes to avoid casting away constness.  Eliminate
508         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
509         initialization lists.  Move out implementation of __black_count()
510         to...
511         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
512         Rename_Rb_tree_base_iterator::_M_increment() to
513         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
514         _Rb_tree_decrement.
515         * config/linker-map.gnu: Add and change symbols here.
516
517 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
518
519         * docs/html/22_locale/howto.html: Use locale::classic() instead
520         of locale("C").
521
522 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
523
524         * testsuite/testsuite_hooks.h: Remove list include.
525         (func_callback): Define as unique type, not std::list.
526         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
527         * testsuite/libstdc++-v3.dg/dg.exp: Same.
528         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
529         * testsuite/23_containers/bitset_ctor.cc:
530         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
531         * testsuite/18_support/numeric_limits.cc: Same.
532         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
533         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
534         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
535         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
536         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
537         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
538         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
539         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
540         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
541         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
542         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
543         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
544         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
545         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
546         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
547         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
548         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
549         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
550         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
551         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
552         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
553         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
554         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
555         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
556         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
557         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
558         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
559         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
560         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
561         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
562         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
563         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
564         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
565         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
566         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
567         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
568         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
569         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
570         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
571         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
572         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
573         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
574         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
575         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
576         * testsuite/23_containers/bitset_ctor.cc: Same.
577         * testsuite/23_containers/bitset_shift.cc: Same.
578         * testsuite/23_containers/vector_ctor.cc: Same.
579         * testsuite/23_containers/vector_element_access.cc: Same.
580         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
581         * testsuite/24_iterators/iterator.cc: Same.
582         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
583         * testsuite/25_algorithms/lower_bound.cc: Same.
584         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
585         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
586         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
587         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
588         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
589         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
590         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
591         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
592         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
593         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
594         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
595         Same.
596
597 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
598
599         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
600         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
601         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
602         GLIBCPP to GLIBCXX (and explain as needed).
603
604 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
605
606         * README:  Update.
607
608 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
609
610         * testsuite/22_locale/messages/members/char/1.cc,
611         testsuite/22_locale/messages/members/char/2.cc,
612         testsuite/22_locale/messages/members/char/3.cc,
613         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
614         the origin of LOCALEDIR.
615         * testsuite/lib/libstdc++-v3.exp:  New file.
616
617 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
618
619         * include/bits/char_traits.h: Update copyright, tweak.
620         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
621         std types.
622
623 2003-07-24  Matt Austern  <austern@apple.com>
624
625         * /include/bits/char_traits.h (class char_traits): Put all the
626         real work into the new class template __gnu_cxx::char_traits.
627         Gave generic definitions for member functions.  Types are taken
628         from the new class template __gnu_cxx::_Char_types.
629         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
630         file.  Test of std::char_traits<short>, which serves as a test of
631         the char_traits primary template.
632
633 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
634
635         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
636
637 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
638
639         * testsuite/23_containers/map_operators.cc: Conform to
640         container requirement as value must be Assignable.
641
642 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
643
644         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
645         tests not only generation of pch files, but also their use.
646         * aclocal.m4, configure: Rebuilt.
647
648 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
649
650         * config/cpu/hppa/atomicity.h: Change
651         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
652         to match misc-inst.cc
653
654 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
655
656         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
657         * include/c_std/std_cctype.h: Ditto.
658         * include/c_std/std_cerrno.h: Ditto.
659         * include/c_std/std_cfloat.h: Ditto.
660         * include/c_std/std_climits.h: Ditto.
661         * include/c_std/std_clocale.h: Ditto.
662         * include/c_std/std_cmath.h: Ditto.
663         * include/c_std/std_csetjmp.h: Ditto.
664         * include/c_std/std_csignal.h: Ditto.
665         * include/c_std/std_cstdarg.h: Ditto.
666         * include/c_std/std_cstddef.h: Ditto.
667         * include/c_std/std_cstdio.h: Ditto.
668         * include/c_std/std_cstdlib.h: Ditto.
669         * include/c_std/std_cstring.h: Ditto.
670         * include/c_std/std_ctime.h: Ditto.
671         * include/c_std/std_cwchar.h: Ditto.
672         * include/c_std/std_cwctype.h: Ditto.
673         * include/std/std_algorithm.h: Ditto.
674         * include/std/std_bitset.h: Ditto.
675         * include/std/std_complex.h: Ditto.
676         * include/std/std_deque.h: Ditto.
677         * include/std/std_fstream.h: Ditto.
678         * include/std/std_functional.h: Ditto.
679         * include/std/std_iomanip.h: Ditto.
680         * include/std/std_ios.h: Ditto.
681         * include/std/std_iosfwd.h: Ditto.
682         * include/std/std_iostream.h: Ditto.
683         * include/std/std_istream.h: Ditto.
684         * include/std/std_iterator.h: Ditto.
685         * include/std/std_limits.h: Ditto.
686         * include/std/std_list.h: Ditto.
687         * include/std/std_locale.h: Ditto.
688         * include/std/std_map.h: Ditto.
689         * include/std/std_memory.h: Ditto.
690         * include/std/std_numeric.h: Ditto.
691         * include/std/std_ostream.h: Ditto.
692         * include/std/std_queue.h: Ditto.
693         * include/std/std_set.h: Ditto.
694         * include/std/std_sstream.h: Ditto.
695         * include/std/std_stack.h: Ditto.
696         * include/std/std_stdexcept.h: Ditto.
697         * include/std/std_streambuf.h: Ditto.
698         * include/std/std_string.h: Ditto.
699         * include/std/std_utility.h: Ditto.
700         * include/std/std_valarray.h: Ditto.
701         * include/std/std_vector.h: Ditto.
702
703 2003-07-22  Doug Gregor  <dgregor@apple.com>
704
705         * include/bits/basic_string.h (basic_string::insert): Deprecate
706         GNU extension.
707
708 2003-07-21  Benjamin Kosnik  <bkoz@redhat.com>
709
710         * scripts/testsuite_flags.in (--build-includes): Remove extraneous
711         paths for libio.
712         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
713         (test03): Include typeinfo for bad_cast.
714         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
715         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
716         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
717
718 2003-07-21  Doug Gregor  <dgregor@apple.com>
719
720         * include/bits/boost_concept_check.h:
721         (_EqualityComparableConcept::__constraints): Remove != from the
722         list of constraints; it is not listed in Table 28 of the C++98
723         standard.
724
725 2003-07-18  Andreas Jaeger  <aj@suse.de>
726
727         * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
728         * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
729         * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
730         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
731
732 2003-07-17  Benjamin Kosnik  <bkoz@redhat.com>
733
734         * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
735         * config/locale/generic/messages_members.h: Tweaks.
736         * config/locale/generic/monetary_members.cc
737         (moneypunct::_M_initialize_moneypunct): Use cache.
738         (moneypunct::~moneypunct): Delete cache.
739         * config/locale/generic/time_members.cc:
740         (__timepunct::_M_initialize_timepunct): Use cache.
741         * config/locale/generic/time_members.h:
742         (__timepunct::~__timepunct): Delete cache.
743         (__timepunct::__timepunct): Set cache.
744         * config/locale/gnu/messages_members.h: Tweaks.
745         * config/locale/gnu/monetary_members.cc:
746         (moneypunct::_M_initialize_moneypunct): Use cache.
747         (moneypunct::~moneypunct): Delete cache.
748         * config/locale/gnu/time_members.cc:
749         (__timepunct::_M_initialize_timepunct): Use cache.
750         * config/locale/gnu/time_members.h:
751         (__timepunct::~__timepunct): Delete cache.
752         (__timepunct::__timepunct): Set cache.
753         * include/bits/locale_facets.h (__timepunct_cache): New.
754         (__moneypunct_cache): New.
755         * include/bits/locale_facets.tcc: Tweak.
756         * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
757         * src/locale-inst.cc: Instantiate caches.
758         * src/globals.cc: Add "C" caches.
759         * src/localename.cc: Use external "C" caches.
760
761 2003-07-17  Phil Edwards  <pme@gcc.gnu.org>
762
763         * docs/doxygen/guide.html:  Fix typo.
764
765 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
766
767         * include/ext/pod_char_traits.h: Add state template argument.
768
769 2003-07-16  Benjamin Kosnik  <bkoz@redhat.com>
770
771         * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
772         (num_get::_M_convert_int): To _M_insert_int.
773         (num_get::_M_convert_float): To _M_insert_float.
774         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
775         Use caches for ctype, num_get.
776         (num_get::_M_extract_int): Same.
777         (num_get::get(bool)): Same.
778         (__verify_grouping): Use size_t.
779         * src/locale-inst.cc: Update.
780         * src/locale.cc: Adjust _S_atoms_in.
781
782 2003-07-16  Phil Edwards  <pme@gcc.gnu.org>
783
784         * docs/doxygen/mainpage.html:  Move building/writing instructions...
785         * docs/doxygen/guide.html:  ...to here.  New file.
786
787 2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>
788
789         * docs/html/ext/howto.html: Update URL for SGI STL docs.
790         * docs/html/faq/index.html: Same.
791         * docs/html/faq/index.txt: Regenerate.
792
793 2003-07-16  Paolo Carlini  <pcarlini@unitus.it>
794
795         PR libstdc++/11528
796         * include/bits/locale_facets.tcc (money_get::do_get):
797         Strip only _leading_ zeros.
798         * testsuite/22_locale/money_get/get/char/11528.cc: Add.
799         * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
800
801 2003-07-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
802
803         * include/ext/hash_map (class hash_multimap): Remove extra
804         semicolons from __glibcxx_class_requires3 entries.
805         * include/ext/hash_set (class hash_set): Ditto.
806         (class hash_multiset): Ditto.
807
808 2003-07-15  Petur Runolfsson  <peturr02@ru.is>
809
810         * include/bits/char_traits.h (char_traits<wchar_t>::move):
811         Change last parameter from int_type to size_t.
812
813 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
814
815         * include/bits/stl_algo.h (includes, set_union, set_intersection,
816         set_difference, set_symmetric_difference, max_element, min_element,
817         next_permutation, prev_permutation, find_first_of, find_end):
818         Document.
819         * include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
820         restrictions in docs.
821         * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
822         Document.
823         * docs/doxygen/doxygroups.cc (setoperations):  New group.
824
825 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
826
827         * include/bits/basic_string.h:  Document public functions.
828         * docs/doxygen/TODO:  Update c21 todo.
829
830 2003-07-15  Jerry Quinn  <jlquinn@optonline.net>
831
832         * include/bits/stl_list.h:  Document more functions.
833         * docs/doxygen/TODO:  Update c23 todo.
834
835 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
836
837         * config/locale/gnu/c_locale.h (__convert_from_v): One more
838         qualification.
839
840 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
841
842         * include/bits/stl_tempbuf.h: Qualify free with std::.
843         * src/locale.cc: Include <cstdlib>, qualify getenv.
844
845 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
846
847         * config/locale/gnu/c_locale.h (__convert_from_v): Include
848         <cstdio>. Qualify names.
849         * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
850
851 2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
852             Nathan C. Myers  <ncm-nospam@cantrip.org>
853
854         PR libstdc++/11378
855         * include/std/std_fstream.h (xsputn): Declare only.
856         * include/bits/fstream.tcc (xsputn): Define, optimize for the
857         always_noconv() case: when __n is sufficiently large flush
858         the buffer and issue a direct write, if possible combining the
859         two with writev in __basic_file<>::xsputn_2.
860         * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
861         New, declare.
862         * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
863         Define.
864         * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
865         the availability of writev in <sys/uio.h>.
866         * configure.in: Call here.
867         * acconfig.h: Add undef for the corresponding symbol.
868         * aclocal.m4: Regenerate.
869         * configure: Regenerate.
870         * config.h.in: Regenerate.
871         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
872
873         * include/std/std_fstream.h (sync): Constify a variable.
874
875 2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>
876
877         * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
878         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
879
880 2003-07-14  Gabriel Dos Reis  <gcc@integrable-solutions.net>
881
882         * config/locale/gnu/c_locale.h (__convert_from_v): Include
883         <cstring> and <cstdlib>. Qualify names.
884
885 2003-07-13  Mark Mitchell  <mark@codesourcery.com>
886
887         * config/locale/generic/c_locale.h: Include <cstdlib> and
888         <cstring>.
889         * include/bits/boost_concept_check.h: Add this-> to unqualified
890         method calls.
891         * include/bits/deque.tcc: Likewise.
892         * include/bits/locale_facets.h : Likewise.
893         * include/bits/ostream.tcc: Likewise.
894         * include/bits/stl_algo.h: Likewise.
895         * include/bits/stl_bvector.h: Likewise.
896         * include/bits/stl_deque.h: Likewise.
897         * include/bits/stl_list.h: Likewise.
898         * include/bits/stl_tree.h: Likewise.
899         * include/bits/stl_vector.h: Likewise.
900         * include/bits/vector.tcc: Likewise.
901         * include/ext/rope: Likewise.
902         * include/ext/ropeimpl.h: Likewise.
903         * include/ext/stdio_filebuf.h: Likewise.
904
905 2003-07-11  Jerry Quinn  <jlquinn@optonline.net>
906
907         * include/bits/basic_ios.h (copyfmt): Document.
908         * include/bits/ios_base.h (event, event_callback, register_callback,
909         xalloc, iword, pword):  Document.
910         (imbue, ~ios_base): Update docs on callbacks.
911
912 2003-07-11  Phil Edwards  <pme@gcc.gnu.org>
913
914         * acinclude.m4 (GLIBCC_ENABLE_SYMVERS):  Tweak comments.  Add
915         warning messages if the environment cannot support symbol versioning.
916         (port_specific_symbol_file):  It's plural, add an 's' on the end.
917         * configure.host:  Likewise.
918         * src/Makefile.am:  Likewise.
919         * config/linker-map.gnu:  Remove one semicolon, heh.
920         * scripts/extract_symvers:  Don't assume useful 'export' syntax.
921         Set LANG as well as LC_ALL for possibly-broken sort(1)s.
922         * aclocal.m4, configure, src/Makefile.in:  Regenerated.
923
924 2003-07-09  Benjamin Kosnik  <bkoz@redhat.com>
925
926         * include/bits/locale_facets.tcc: Use function object for
927         __use_cache instead of template function. Partially specialize for
928         __numpunct<_CharT>.
929         * include/bits/locale_classes.h: Update friend declaration for
930         __use_cache.
931         (_M_install_cache): No throw exception specs.
932         * src/locale.cc: Remove __use_cache specializations.
933         * include/ext/pod_char_traits.h (length): Tweak.
934         * include/bits/locale_facets.h (__numpunct_cache): Remove
935         char_type typedef.
936         * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
937         (pod_long): Remove.
938         * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
939         * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
940         * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
941         * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
942         * testsuite/22_locale/numpunct/members/pod/1.cc: New.
943         * testsuite/22_locale/numpunct/members/pod/2.cc: New.
944
945 2003-07-09  Jerry Quinn  <jlquinn@optonline.net>
946
947         * src/ios.cc (_M_grow_words):  Fix spelling.
948
949 2003-07-09  Gawain Bolton  <gp.bolton@computer.org>
950
951         * include/bits/stl_tree.h: Move larger member functions in
952         _Rb_tree_base_iterator and _Rb_tree_node to...
953         * src/stl_tree.cc: Here.
954         * src/Makefile.in: Add stl_tree.cc.
955         * src/Makefile.in: Regenerated.
956         * config/linker-map.gnu: Add symbols here.
957
958 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
959
960         * testsuite/ext/pod_char_traits.cc: New.
961         * include/ext/pod_char_traits.h: New.
962         * include/Makefile.am (ext_headers): Add pod_char_traits.h.
963         * include/Makefile.in: Regenerate.
964         * docs/html/21_strings/howto.html: Update.
965
966 2003-07-08  Gawain Bolton  <gp.bolton@computer.org>
967
968         * testsuite/performance/list_create_fill_sort.cc: New.
969
970 2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>
971
972         * config/locale/generic/numeric_members.cc: Correct type info.
973         * config/locale/gnu/numeric_members.cc: Same.
974         * include/bits/locale_facets.h: Same.
975
976         * include/bits/char_traits.h: Correct spacing.
977
978         * src/locale.cc: Wrap to 80 col.
979
980 2003-07-07  Paolo Carlini  <pcarlini@unitus.it>
981
982         * include/std/std_complex.h: Partially revert last
983         changes: cmath functions must not be qualified.
984
985 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
986
987         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Do not test for binutils
988         2.11 with globbing backport fix.
989         * aclocal.m4, configure:  Regenerated.
990
991 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
992
993         * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
994         if output is at all possible (!_M_reading), cannot be active.
995
996         * include/std/std_fstream.h: Tweak comments to doxygen style.
997
998 2003-07-06  Paolo Carlini  <pcarlini@unitus.it>
999
1000         * include/bits/locale_classes.h: Fully qualify standard
1001         functions with std::, thus avoiding Koenig lookup.
1002         * include/bits/locale_facets.tcc: Likewise.
1003         * src/locale.cc: Likewise.
1004         * src/localename.cc: Likewise.
1005
1006 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
1007
1008         * include/bits/allocator_traits.h:  Fix doxygen markup.
1009         * include/ext/mt_allocator.h:  Likewise.
1010
1011 2003-07-06  Phil Edwards  <pme@gcc.gnu.org>
1012
1013         * testsuite/testsuite_hooks.h:  Guard against a missing unlink().
1014
1015 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
1016
1017         * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS):  Bump minimal version
1018         requirement.  Add port_specific_symbol_file variable.
1019         * configure.host:  Add docs for port_specific_symbol_file.
1020         Clean up try_cpu block for x86.
1021         * config/linker-map.gnu:  No more "last symbol can't have a
1022         semicolon" kaka.  Add hook for port-specific symbols.
1023         * src/Makefile.am:  Remove trailing whitespace.
1024         (libstdc++-symbol.ver):  Detect the presence of port-specific
1025         symbols, and add them accordingly.
1026
1027         * docs/html/17_intro/porting.texi:  Bring up to date.
1028
1029         * src/Makefile.in, aclocal.m4, configure,
1030         docs/html/17_intro/porting.html:  Regenerated.
1031
1032 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
1033
1034         * scripts/create_testsuite_files:  New file.
1035         * testsuite/Makefile.am (all-local, check-performance):  Use it.
1036         * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests):  Remove.
1037         * testsuite/Makefile.in:  Regenerated.
1038
1039         * testsuite/performance/filebuf_sputc.cc:  Remove the temporary
1040         files at the end.
1041         * testsuite/performance/fstream_seek_write.cc:  Likewise.
1042         * testsuite/performance/ofstream_insert_float.cc:  Likewise.
1043         * testsuite/performance/ofstream_insert_int.cc:  Likewise.
1044         * testsuite/abi_check.cc (main):  Nicer spacing in usage output.
1045
1046 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
1047
1048         * include/bits/stl_list.h: Performance and memory usage
1049         improvements. In particular, the behaviour of the constructor and
1050         destructor as the list header node is no longer dynamically
1051         allocated/de-allocated.
1052         * include/bits/list.tcc: Likewise.
1053
1054 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
1055
1056         * include/std/std_complex.h: Fully qualify standard
1057         functions with std::, thus avoiding Koenig lookup.
1058         * include/std/std_memory.h: Likewise.
1059         * include/std/std_valarray.h: Likewise.
1060
1061 2003-07-05  Gawain Bolton  <gp.bolton@computer.org>
1062
1063         * include/bits/stl_tree.h: _Rb_tree_rebalance():  Add local
1064           variable for grandparent and use const
1065
1066 2003-07-05  David Billinghurst <David.Billinghurst@riotinto.com>
1067
1068         * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
1069         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
1070         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
1071         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
1072         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
1073         * testsuite/27_io/objects/char/7.cc: Ditto
1074         * testsuite/27_io/objects/char/9661-1.cc: Ditto
1075
1076 2003-07-05  Paolo Carlini  <pcarlini@unitus.it>
1077
1078         * include/std/std_bitset.h: Fully qualify standard
1079         functions with std::, thus avoiding Koenig lookup.
1080
1081         * include/std/std_fstream.h: Change comment to doxygen style.
1082
1083 2003-07-05  Phil Edwards  <pme@gcc.gnu.org>
1084
1085         * include/std/std_limits.h:  More CPP->CXX changes.
1086         * scripts/check_survey.in:  Likewise.
1087
1088 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1089
1090         Move from CPP to CXX.
1091         * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
1092         * testsuite/Makefile.am: Same.
1093         * testsuite/Makefile.in: Regenerate.
1094         * po/Makefile.am: Same.
1095         * po/Makefile.in: Regenerate.
1096         * libsupc++/Makefile.am: Same.
1097         * libsupc++/Makefile.in: Regenerate.
1098         * libmath/Makefile.am: Same.
1099         * libmath/Makefile.in: Regenerate.
1100         * include/Makefile.am: Same.
1101         * include/Makefile.in: Regenerate.
1102         * src/Makefile.am: Same.
1103         * src/Makefile.in: Regenerate.
1104         * acconfig.h: Same.
1105         * configure.host: Same.
1106         * configure.in: Same.
1107         * configure: Regenerate.
1108         * acinclude.m4: Same.
1109         * aclocal.m4: Same.
1110         * src: Change all files in this directory.
1111         * testsuite: Same.
1112         * include: Same, standardize include guards.
1113         * config: Same.
1114         * libsupc++: Same.
1115
1116 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
1117
1118         * testsuite/22_locale/collate/compare/wchar_t/2.cc
1119         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
1120         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
1121         * testsuite/22_locale/collate/hash/wchar_t/2.cc
1122         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
1123         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
1124         * testsuite/22_locale/collate/transform/wchar_t/2.cc
1125         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
1126         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1127         XFAIL on all targets.
1128
1129 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1130
1131         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
1132         * aclocal.m4: Regenerate.
1133         * configure: Regenerate.
1134
1135 2003-07-04  Jerry Quinn  <jlquinn@optonline.net>
1136
1137         * include/bits/locale_facets.tcc (__int_to_char): Move common case
1138         to the top.
1139
1140 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1141             Petur Runolfsson  <peturr02@ru.is>
1142
1143         * config/io/basic_file_stdio.cc: Revert.
1144
1145 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1146
1147         * include/bits/deque.tcc: Fully qualify standard
1148         functions with std::, thus avoiding Koenig lookup.
1149         * include/bits/gslice_array.h: Likewise.
1150         * include/bits/indirect_array.h: Likewise.
1151         * include/bits/list.tcc: Likewise.
1152         * include/bits/mask_array.h: Likewise.
1153         * include/bits/slice_array.h: Likewise.
1154
1155 2003-07-04  Gawain Bolton  <gbolton@free.fr>
1156
1157         * include/bits/stl_tree.h: Performance and memory usage
1158         improvements.
1159
1160 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
1161
1162         * Makefile.am: Replace PWD with PWD_COMMAND.
1163         * Makefile.in: Regenerated.
1164         * docs/html/Makefile: Likewise.
1165
1166 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1167
1168         * include/bits/valarray_array.h: Fully qualify standard
1169         functions with std::, thus avoiding Koenig lookup.
1170         * include/bits/vector.tcc: Likewise.
1171
1172 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1173
1174         * include/Makefile.am: Update target_ to host_.
1175         * include/Makefile.in: Regenerate.
1176         * src/Makefile.am: Same.
1177         * src/Makefile.in: Regenerate.
1178
1179         * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
1180
1181 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1182
1183         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
1184         --enable-libstdcxx-debug-flags.
1185         (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
1186         (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
1187         * aclocal.m4: Regenerate.
1188         * configure: Same.
1189         * docs/html/configopts.html: Update.
1190
1191 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1192
1193         Revert the fix for libstdc++/11378.
1194
1195 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1196
1197         PR libstdc++/11378
1198         * include/std/std_fstream.h (xsputn): In the unbuffered case,
1199         provided always_noconv(), issue directly _M_file.xsputn.
1200         * testsuite/performance/filebuf_unbuf_sputn.cc: New.
1201
1202 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1203
1204         * include/bits/stl_list.h: Fully qualify standard
1205         functions with std::, thus avoiding Koenig lookup.
1206         * include/bits/stl_queue.h: Likewise.
1207         * include/bits/stl_raw_storage_iter.h: Likewise.
1208         * include/bits/stl_tempbuf.h: Likewise.
1209         * include/bits/stl_tree.h: Likewise.
1210         * include/bits/stl_uninitialized.h: Likewise.
1211         * include/bits/stl_vector.h: Likewise.
1212         * include/ext/rope: Change includes order.
1213
1214 2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>
1215
1216         * configure.host (fpos_include_dir): Fix.
1217
1218 2003-07-04  Paolo Carlini  <pcarlini@unitus.it>
1219
1220         * include/bits/stl_heap.h: Fully qualify standard
1221         functions with std::, thus avoiding Koenig lookup.
1222         * include/bits/stl_iterator_base_funcs.h: Likewise.
1223
1224         * include/bits/stl_algo.h: Qualify __iterator_category too.
1225         * include/bits/stl_algobase.h: Likewise.
1226         * include/bits/stl_bvector.h: Likewise.
1227
1228         * include/bits/stl_algo.h: Don't qualify the pair type.
1229
1230 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
1231
1232         * include/Makefile.am (target_headers): Add fpos.h
1233         (bits_headers): Remove.
1234         * include/Makefile.in: Regenerate.
1235         * configure.in: Add FPOS_INC_SRCDIR, substitute it.
1236         * configure: Regenerate.
1237         * configure.host: Add fpos_include_dir.
1238         * config/os/gnu-linux/fpos.h: New.
1239         * config/os/generic/fpos.h: Add.
1240         * include/bits/fpos.h: Remove.
1241
1242         * config/io/c_io_stdio.h: Remove fpos_t typedef.
1243
1244         * include/bits/fstream.tcc: Tweaks.
1245         * include/std/std_fstream.h: Same.
1246
1247         * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1248         * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1249         * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1250         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1251         * testsuite/27_io/fpos/1.cc: New.
1252
1253 2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
1254             Petur Runolfsson  <peturr02@ru.is>
1255
1256         * include/std/std_streambuf.h: Remove _M_pos.
1257         * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1258         * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1259         use fread/fwrite instead of read/write.
1260         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1261         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1262         before reading again.
1263         * testsuite/27_io/objects/char/6.cc: Tweak.
1264
1265 2003-07-03  David Edelsohn  <edelsohn@gnu.org>
1266
1267         * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1268         _GLIBCPP_USE_WCHAR_T.
1269
1270 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1271
1272         * include/bits/basic_string.tcc (_M_replace_aux): Constify
1273         __n1 and __off1.
1274
1275 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1276
1277         * include/bits/stl_bvector.h: Fully qualify standard
1278         functions with std::, thus avoiding Koenig lookup.
1279         * include/bits/stl_construct.h: Likewise.
1280         * include/bits/stl_deque.h: Likewise.
1281
1282 2003-07-02  Paolo Carlini  <pcarlini@unitus.it>
1283
1284         * testsuite/22_locale/num_put/put/char/7.cc: Include
1285         <testsuite_hooks.h>, tweak.
1286         * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1287
1288 2003-07-01  Phil Edwards  <pme@gcc.gnu.org>
1289
1290         * testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
1291         check* targets, but not libs/programs).
1292         * testsuite/Makefile.in:  Regenerate.
1293
1294 2003-07-01  Roger Sayle  <roger@eyesopen.com>
1295
1296         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1297         (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1298         * aclocal.m4: Regenerate.
1299         * configure: Regenerate.
1300
1301 2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>
1302
1303         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1304         * aclocal.m4: Regenerated.
1305         * configure: Regenerated.
1306
1307 2003-07-01  Paolo Carlini  <pcarlini@unitus.it>
1308
1309         PR libstdc++/11389
1310         * include/bits/fstream.tcc (underflow): For encoding() == 0
1311         don't read more than __buflen chars.
1312         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1313         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1314         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1315         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1316
1317 2003-07-01  Jerry Quinn  <jlquinn@optonline.net>
1318
1319         * 22_locale/num_put/put/char/7.cc: New.
1320         * 22_locale/num_put/put/wchar_t/7.cc: New.
1321
1322 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
1323
1324         * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1325         * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1326
1327 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1328
1329         * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1330         * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1331         * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1332         * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1333         * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1334         * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1335         * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1336         * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1337         * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1338         * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1339         * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1340         * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1341         * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1342         * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1343         * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1344         * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1345         * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1346         * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1347         * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1348         * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1349         * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1350         * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1351         * data/seekoff-1.tst: Remove.
1352         * data/seekoff-1io.tst: New.
1353         * data/seekoff-1out.tst: New.
1354         * data/seekoff-2.tst: Remove.
1355         * data/seekoff-2io.tst: New.
1356         * data/seekoff-2out.tst: New.
1357         * data/seekoff.txt
1358         * data/seekpos-1.tst: Remove.
1359         * data/seekpos-1io.tst: New.
1360         * data/seekpos-1out.tst: New.
1361         * data/seekpos-2.tst: Remove.
1362         * data/seekpos-2io.tst: New.
1363         * data/seekpos-2out.tst: New.
1364         * data/seekpos.txt: New.
1365
1366 2003-06-30  Jerry Quinn  <jlquinn@optonline.net>
1367
1368         * src/locale.cc (__use_cache<numpunct>): Move from here ...
1369         * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1370         here.
1371
1372 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
1373
1374         * include/bits/stl_algobase.h: Fully qualify standard
1375         functions with std::, thus avoiding Koenig lookup.
1376
1377 2003-06-30  Doug Gregor <dgregor@apple.com>
1378
1379         * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1380         subscripting empty string.
1381
1382 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
1383
1384         * testsuite/Makefile.am (check-am):  Do not override.
1385         (baseline_symbols):  Declare as PHONY, so no need to 'touch' it.
1386         * testsuite/Makefile.in:  Regenerate.
1387
1388 2003-06-30  Doug Gregor <dgregor@apple.com>
1389
1390         * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1391         Don't initialize an insert_iterator with a singular iterator.
1392
1393 2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>
1394
1395         * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1396         * aclocal.m4: Regenerate.
1397         * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1398         GLIBCPP_ENABLE_PCH, default to yes.
1399         * configure: Regenerate.
1400         * docs/html/configopts.html: Add --enable-pch.
1401
1402 2003-06-30  Phil Edwards  <pme@gcc.gnu.org>
1403
1404         * testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
1405         (libstdc++-v3-init):  Also set LD_RUN_PATH.
1406
1407 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
1408
1409         * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1410         from here to filebuf and stringbuf.
1411         (~basic_streambuf()): Don't set _M_mode.
1412         (basic_streambuf()): Don't set _M_mode.
1413         * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1414         (~basic_filebuf()): Clean up.
1415         * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1416         * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1417         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1418         * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1419         * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1420         * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1421         * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1422
1423 2003-06-30  Paolo Carlini  <pcarlini@unitus.it>
1424
1425         * include/std/std_fstream.h (_M_underflow): Remove.
1426         (uflow): Remove, inherited from streambuf.
1427         (underflow): Only declare.
1428         * include/bits/fstream.tcc (_M_underflow): Rename to
1429         underflow, to which is equivalent for __bump == false,
1430         simplify.
1431         * include/std/std_sstream.h (_M_underflow): Remove.
1432         (uflow): Remove, inherited from streambuf.
1433         (underflow): Only declare.
1434         * include/bits/sstream.tcc (_M_underflow): Rename to
1435         underflow, to which is equivalent for __bump == false,
1436         simplify.
1437
1438 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
1439
1440         * include/bits/stl_algo.h: Fully qualify standard functions
1441         with std::, thus avoiding Koenig lookup.
1442
1443 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
1444
1445         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1446         Improve type correctness-wise.
1447         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1448         Likewise.
1449         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1450         Likewise.
1451         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1452         Likewise.
1453
1454 2003-06-29  Paolo Carlini  <pcarlini@unitus.it>
1455
1456         * include/std/std_streambuf.h (uflow): According to
1457         27.5.2.4.3,p16, don't check gptr() < egptr().
1458
1459 2003-06-28  Paolo Carlini  <pcarlini@unitus.it>
1460
1461         PR libstdc++/9875
1462         * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1463         (seekpos): Likewise.
1464         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1465         New test.
1466         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1467         New test.
1468
1469 2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
1470
1471         * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1472         output name to libstdc++-v3-performance.sum.
1473         * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1474         * testsuite/Makefile.in: Regenerate.
1475
1476 2003-06-27  Matthias Klose  <doko@debian.org>
1477
1478         * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1479         output of abi-check in libstdc++-v3-abi.sum.
1480         * testsuite/Makefile.in: Regenerate.
1481
1482 2003-06-27  Krister Walfridsson  <cato@df.lth.se>
1483
1484         * config/os/bsd/netbsd/ctype_noninline.h
1485         (_C_ctype_): Declare.
1486         (ctype<char>::classic_table): Return _C_ctype_ + 1.
1487         (ctype<char>::ctype): Use classic_table.
1488
1489 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
1490             Nathan C. Myers  <ncm-nospam@cantrip.org>
1491
1492         PR libstdc++/9178
1493         * include/bits/fstream.tcc (_M_underflow): Properly estimate
1494         the worst-case number of external bytes for a given get area.
1495         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1496
1497 2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
1498             Petur Runolfsson  <peturr02@ru.is>
1499
1500         PR libstdc++/11305
1501         * include/bits/fstream.tcc (overflow): Properly estimate the
1502         worst-case number of external bytes for a given put area
1503         (by using codecvt::max_length()).
1504         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1505         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1506         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1507         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1508
1509 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
1510
1511         * config/linker-map.gnu: Remove ; after __numpunct_cache.
1512
1513 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
1514
1515         * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1516         to the imbued locale.
1517         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1518         _M_getloc.
1519         (num_put::_M_convert_float): Use.
1520
1521 2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
1522             Jerry Quinn  <jlquinn@optonline.net>
1523
1524         * config/linker-map.gnu: Add __numpunct_cache.
1525         * config/locale/gnu/numeric_members.cc
1526         (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1527         all elements for "C" locale.
1528         (numpunct::~numpunct): Delete _M_data.
1529         * config/locale/generic/numeric_members.cc: Same.
1530         * include/bits/basic_ios.tcc
1531         (basic_ios::init): Remove __locale_cache bits.
1532         (basic_ios::_M_cache_locale): Same.
1533         * include/bits/ios_base.h: Same. Tweaks.
1534         * include/bits/locale_classes.h: Tweaks. Reorder classes.
1535         (__use_cache): Make friends with _Impl, locale.
1536         (_Impl::_M_caches): Add.
1537         (_Impl::_M_install_cache): Add.
1538         * include/bits/locale_facets.h (__numpunct_cache): New.
1539         (numpunct): Encapsulate data members in __numpunct_cache member,
1540         _M_data. Adjust virtuals.
1541         (numpunct::numpunct): New ctor for the same.
1542         (__locale_cache_base): Remove.
1543         (__locale_cache): Remove.
1544         * include/bits/locale_facets.tcc (__use_cache): New function,
1545         specializations.
1546         (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1547         * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1548         * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1549         * src/locale-inst.cc: Same. Add __numpunct_cache.
1550         * src/locale.cc: Tweak inlines.
1551         (__use_cache): Define specializations.
1552         * src/localename.cc: Use global bits.
1553         (_Impl::~Impl): Deal with __numpunct_cache destruction.
1554         (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1555         (_Impl::_M_init_facet): Take into account __numpunct_cache.
1556         * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1557         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1558
1559 2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
1560             Paolo Carlini  <pcarlini@unitus.it>
1561
1562         * testsuite/performance/filebuf_copy.cc: New, testing char
1563         by char file copy.
1564
1565 2003-06-26  Paolo Carlini  <pcarlini@unitus.it>
1566             Nathan C. Myers  <ncm-nospam@cantrip.org>
1567
1568         * include/bits/fstream.tcc (_M_underflow): When the actual
1569         end of file is reached, set 'uncommitted' mode to allow a
1570         next write without an intervening seek (see C++98 27.8.1.1,2
1571         and C89 7.9.5.3).
1572         * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1573
1574 2003-06-25  Nathan C. Myers  <ncm-nospam@cantrip.org>
1575
1576         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1577         sputc): Move inline, from here...
1578         * include/std/std_streambuf.h: ... to here.
1579
1580         * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1581         sputbackc, sungetc, sputc): Use __builtin_expect.
1582
1583 2003-06-24  Phil Edwards  <pme@gcc.gnu.org>
1584
1585         * docs/doxygen/mainpage.html:  Use a useful title.
1586
1587 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1588
1589         * docs/html/documentation.html: Remove assignment info.
1590         * docs/html/17_intro/contribute.html: Edits.
1591         * docs/html/17_intro/libstdc++-assign.tx: Remove.
1592
1593         * docs/html/test.html: Update.
1594
1595         * README: Update.
1596
1597 2003-06-24  Benjamin Kosnik  <bkoz@redhat.com>
1598             Ulrich Drepper  <drepper@redhat.com>
1599
1600         * testsuite/testsuite_performance.h: Tweak mallinfo.
1601
1602 2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
1603             Nathan C. Myers  <ncm-nospam@cantrip.org>
1604
1605         * include/std/std_fstream.h (_M_filepos): Remove.
1606         (_M_reading, _M_writing): New, encode the various I/O modes:
1607         'read', 'write' and 'uncommitted'.
1608         (sync): If there is something to flush, do it, then go to
1609         'uncommitted' mode.
1610         * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1611         with three different cases: __off > 0 (upon underflow),
1612         __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1613         seekoff/pos).
1614         (_M_underflow): Don't call overflow, set _M_reading to true
1615         on success, tweak.
1616         (pbackfail): Set _M_reading to true on pback creation, tweak.
1617         (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1618         set _M_writing to true on success, tweak.
1619         (seekoff): Simplify, set _M_reading, _M_writing to false, call
1620         _M_set_buffer(-1) ('uncommitted').
1621         (open, close, setbuf): Set _M_reading, _M_writing to false and
1622         call _M_set_buffer(-1), tweak.
1623         (basic_filebuf): Don't set _M_buf_unified.
1624         (_M_destroy_internal_buffer): Don't call setg and setp.
1625         * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1626         _M_writing and _M_set_buffer(-1).
1627         * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1628         _M_out_lim, _M_buf_unified): Remove.
1629         (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1630         (setp): Don't set _M_out_lim.
1631         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1632         the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1633         upon open the mode is 'uncommitted' and therefore the put area
1634         pointers are null.
1635         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1636         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1637         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1638         * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1639         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1640         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1641         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1642         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1643         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1644         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1645         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1646         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1647         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1648         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1649         * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1650         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1651         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1652         * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1653         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1654         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1655
1656         * include/bits/fstream.tcc (showmanyc): Use only the
1657         documented derivation interface to basic_streambuf (gptr(),
1658         setg(), etc.) to work right with user specializations.
1659         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1660         sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1661         * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1662         Likewise.
1663         * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1664         xsgetn): Likewise.
1665
1666 2003-06-23  Loren J. Rittle  <ljrittle@acm.org>
1667
1668         * configure.host (freebsd*): Set abi_baseline_pair.
1669         * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1670         (at or near first release) to 3.3.
1671         * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1672         * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1673         * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1674
1675         * include/ext/mt_allocator.h: Portability.
1676         * testsuite/testsuite_performance.h: Likewise.
1677
1678 2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
1679
1680         * docs/html/17_intro/libstdc++-assign.txt: Update address.
1681
1682         * testsuite/performance/ifstream_getline.cc: Fix.
1683
1684 2003-06-23  Doug Gregor <dgregor@apple.com>
1685
1686         * include/bits/boost_concept_check.h: Don't use _D or _R for type
1687         names.
1688
1689 2003-06-22  Paolo Carlini  <pcarlini@unitus.it>
1690             Nathan C. Myers  <ncm-nospam@cantrip.org>
1691
1692         * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1693         is now used only for filebuf, when _M_buf_unified is true.
1694         epgtr() plays the role of _M_out_lim but it's only updated
1695         upon overflow, underflow, uflow, seekoff/pos.
1696         * include/bits/sstream.tcc (_M_underflow): New, implements
1697         stringbuf::underflow and uflow.
1698         (seekoff, seekpos): Tweak, use  _M_update_egptr.
1699         * include/std/std_sstream.h (str): Rewrote, deal correctly
1700         with the new logic, in particular, when pptr() > egptr().
1701         (_M_sync): When __testout && !__testin set all the get area
1702         pointers to the current string end.
1703         (_M_update_egptr): New, internal function updating egptr()
1704         to the actual string end.
1705         (_M_underflow): New, declare.
1706         (underflow): Dispatch to _M_underflow(false).
1707         (uflow): Dispatch to _M_underflow(true).
1708
1709         * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1710         seekpos): Use only the documented derivation interface to
1711         basic_streambuf (gptr(), setg(), etc.) to work right with
1712         user specializations.
1713         * include/std/std_sstream.h (str, _M_sync): Likewise.
1714
1715 2003-06-20  Doug Gregor <dgregor@apple.com>
1716
1717         * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1718         * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1719         dereference end iterator.
1720         * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1721         * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1722         index equal to the length of a string.
1723         * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1724         * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1725         * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1726         * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1727         * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1728         * testsuite/23_containers/list_modifiers.cc: Don't dereference
1729         singular reverse iterator.
1730         * testsuite/23_containers/vector_bool.cc: Don't increment singular
1731         iterator.
1732         * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1733
1734 2003-06-20  Doug Gregor <dgregor@apple.com>
1735
1736         * include/bits/basic_string.h (basic_string::replace): Dispatch
1737         _InputIterator version based on _Is_integer.
1738         * include/bits/basic_string.tcc (basic_string::replace):
1739         Renamed replace(iterator, iterator, size_type, _CharT) to
1740         _M_replace_aux.
1741         * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1742         Test basic_string::assign(_InputIterator, _InputIterator),
1743         which calls basic_string::replace(iterator, iterator,
1744         _Input_iterator, _InputIterator).
1745
1746 2003-06-20  Benjamin Kosnik  <bkoz@redhat.com>
1747
1748         * testsuite/testsuite_performance.h (resource_counter): Don't use
1749         mallinfo at the moment.
1750
1751 2003-06-20  Matthias Klose  <doko@debian.org>
1752
1753         * configure.host: Set try_cpu to target_cpu for existing
1754         baseline files.
1755
1756 2003-06-19  Andreas Jaeger  <aj@suse.de>
1757
1758         * testsuite/Makefile.am (extract_symvers): Revert accidental
1759         change.
1760         * testsuite/Makefile.in: Regenerate.
1761
1762         * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1763         * configure: Regenerated.
1764
1765 2003-06-19  Paolo Carlini  <pcarlini@unitus.it>
1766
1767         * include/std/std_sstream.h (_M_sync): Make non virtual.
1768
1769 2003-06-18  Benjamin Kosnik  <bkoz@redhat.com>
1770
1771         * testsuite/testsuite_performance.h (time_counter): New.
1772         (resource_counter): New.
1773         (report_performance): New.
1774         (start_counters): New.
1775         (stop_counters): New.
1776         (clear_counters): New.
1777         * testsuite/performance/allocator.cc: Instrument.
1778         * testsuite/performance/cout_insert_int.cc: Same.
1779         * testsuite/performance/complex_norm.cc: Same.
1780         * testsuite/performance/filebuf_sputc.cc: New.
1781         * testsuite/performance/fstream_seek_write.cc: Same.
1782         * testsuite/performance/ifstream_getline.cc: Same.
1783         * testsuite/performance/map_create_fill.cc: Same.
1784         * testsuite/performance/ofstream_insert_float.cc: Same.
1785         * testsuite/performance/ofstream_insert_int.cc: Same.
1786         * testsuite/performance/string_append.cc: Convert.
1787         * scripts/check_performance: New.
1788         * testsuite/Makefile.am (check-performance): New.
1789         (CLEANFILES): Add.
1790
1791 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1792             Benjamin Kosnik  <bkoz@redhat.com>
1793
1794         * include/std/std_sstream.h (setbuf): Check __n >= 0.
1795         * include/bits/fstream.tcc (setbuf): Tweak.
1796
1797 2003-06-18  Paolo Carlini  <pcarlini@unitus.it>
1798
1799         * include/bits/sstream.tcc (seekoff): We can't seek beyond
1800         _M_out_lim, therefore _M_move_out_cur boils down to simply
1801         updating _M_out_cur.
1802         (seekpos): Likewise, clean up.
1803
1804 2003-06-18  Nathan C. Myers  <ncm-nospam@cantrip.org>
1805             Paolo Carlini  <pcarlini@unitus.it>
1806
1807         * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1808         simply equivalent to the unbuffered case (0, 0) as far as
1809         _M_buf_size is concerned.
1810
1811 2003-06-18  Andreas Jaeger  <aj@suse.de>
1812
1813         * testsuite/Makefile.am (new-abi-baseline): Create baseline
1814         directory.
1815         (baseline_file): Use baseline_dir.
1816         (baseline_dir): New.
1817         (mkinstalldirs): New.
1818
1819         * acinclude.m4: Rename baseline_file to baseline_dir, strip
1820         filename from baseline_dir.
1821
1822         * testsuite/Makefile.in: Regenerated.
1823         * Makefile.in: Regenerated.
1824         * aclocal.m4: Regenerated.
1825         * configure: Regenerated.
1826
1827 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1828
1829         * configure.in: Missed check_survey bit.
1830         * configure: Regenerated.
1831
1832 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1833
1834         * scripts: New.
1835         * config/abi/extract_symvers: Move to...
1836         * scripts/extract_symvers: ...here.
1837         * mkcheck.in: Move to..
1838         * scripts/check_survey.in: ...here.
1839         * testsuite_flags.in: Move to..
1840         * scripts/testsuite_flags.in: ...here.
1841         * configure.in: Change check and testsuite_flags locations.
1842         * configure: Regenerate.
1843         * testsuite/Makefile.am (current_symbols.txt): Change location.
1844         * testsuite/Makefile.in: Regenerate.
1845         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1846         location of testsuite_flags.
1847         * Makefile.am (check-script): Move..
1848         (check-script-install): Move...
1849         * testsuite/Makefile.am: ... here.
1850         * testsuite/Makefile.in: Regenerate.
1851         * Makefile.in: Regenerate.
1852
1853 2003-06-17  Benjamin Kosnik  <bkoz@redhat.com>
1854
1855         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1856
1857 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1858
1859         * Makefile.am (check-abi): Move...
1860         (new-abi-baseline): Move...
1861         * testsuite/Makefile.am: ...here.
1862         (new-abi-baseline): Conditionalize.
1863         (check-abi): Conditionalize.
1864         (check-abi-verbose): New.
1865         * Makefile.in: Regenerate.
1866         * testsuite/Makefile.in: Regenerate.
1867         * configure.in: Consolidate testsuite configure bits.
1868         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1869         * configure: Regenerate.
1870         * aclocal.m4: Regenerate.
1871         * testsuite/abi_check.cc: Add --check-verbose.
1872         Only output detailed information if --check-verbose.
1873
1874 2003-06-16  Andreas Jaeger  <aj@suse.de>
1875
1876         * testsuite/abi_check.cc: Create summary report.
1877
1878 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1879
1880         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1881         for systems with BUFSIZ != 8192.
1882         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1883         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1884         Minor tweaks.
1885
1886 2003-06-16  Andreas Jaeger  <aj@suse.de>
1887
1888         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1889         check-abi multilib aware.
1890         * aclocal.m4: Regenerate.
1891         * configure: Regenerate.
1892
1893 2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
1894             Andreas Jaeger  <aj@suse.de>
1895
1896         * configure.host: Set x86_64 abi_baseline pair correctly.
1897
1898 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
1899
1900         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1901         fix for missing seeks between gets and puts into...
1902         * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1903         * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1904         * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1905         * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1906         * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1907         * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1908
1909 2003-06-15  Richard Henderson  <rth@redhat.com>
1910
1911         * config/linker-map.gnu: Export virtual function thunks for
1912         64-bit systems too.
1913
1914 2003-06-13  Benjamin Kosnik  <bkoz@redhat.com>
1915
1916         * config/abi/i686-pc-linux-gnu: To..
1917         * config/abi/i486-linux-gnu: ...this.
1918         * config/abi/alphaev67-unknown-linux-gnu: To..
1919         * config/abi/alpha-linux-gnu: ...this.
1920         * config/abi/ia64-unknown-linux-gnu: To...
1921         * config/abi/ia64-linux-gnu: ...this.
1922         * config/abi/x86_64-unknown-linux-gnu: To...
1923         * config/abi/x86_64-linux-gnu: ...this.
1924         * config/abi/i386-unknown-freebsd4: To...
1925         * config/abi/i386-freebsd4: ...this.
1926         * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1927         CXXABI.
1928         * configure.host: abi_baseline_triplet to abi_baseline_pair.
1929         Simplify cpu bits so that abi_baseline_pair can use the same
1930         cpu configuration.
1931         * acinclude.m4: Same.
1932         * aclocal.m4: Regenerate.
1933         * configure.in: Can't get enable_abi_check to yes unless native.
1934         * configure: Regenerate.
1935
1936 2003-06-13  Paolo Carlini  <pcarlini@unitus.it>
1937
1938         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1939         fix for missing seeks between gets and puts into...
1940         * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1941         * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1942         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1943         * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1944         * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1945         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1946         for missing seeks between gets and puts.
1947         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1948         * testsuite/data/seekoff-1.tst: New.
1949         * testsuite/data/seekoff-2.tst: New.
1950         * testsuite/data/seekpos-1.tst: New.
1951         * testsuite/data/seekpos-2.tst: New.
1952
1953 2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>
1954
1955         Avoid multi-processor bus contention on increment/decrement-and-
1956         test of the reference count in the empty-string object, by comparing
1957         addresses first, and never touching the reference count of the empty-
1958         string object.
1959         * include/bits/basic_string.h:
1960         (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1961         members.
1962         (_Rep::_S_empty_rep()): New accessor.
1963         (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1964         a base class _Rep_base.
1965         (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1966         (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1967         since no longer must increment its refcount.
1968         * include/bits/basic_string.tcc:
1969         (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1970         return immediately.  The former might be unnecessary.  The latter
1971         prevents begin() and end() from cloning it unnecessarily.
1972         (_S_construct(_InIterator, _InIterator, const _Alloc&,
1973         input_iterator_tag), _S_construct(_InIterator, _InIterator,
1974         const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1975         const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1976         (_M_mutate): Check for the empty string and treat it as shared.
1977         This is necessary here because _M_mutate is sometimes called with
1978         all-zero arguments; in all other uses of _M_is_shared, the test comes
1979         out right anyhow.
1980
1981 2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>
1982
1983         * src/allocator-inst.cc: Explicitly instantiate.
1984         * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1985         Tweaks.
1986         * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1987
1988 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
1989
1990         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1991         * aclocal.m4: Regenerate.
1992         * Makefile.am (SUBDIRS): Remove libio.
1993         * Makefile.in: Regenerate.
1994         * configure.in: Same.
1995         * configure: Regenerate.
1996         * config/io/basic_file_libio.cc: Remove.
1997         * config/io/basic_file_libio.h: Remove.
1998         * config/io/c_io_libio_codecvt.c: Remove.
1999         * config/io/c_io_libio.h: Remove.
2000         * libio/*: Remove.
2001         * src/Makefile.am: Same.
2002         * src/Makefile.in: Regenerate.
2003         * docs/html/configopts.html: Edits.
2004         * docs/html/explanations.html: Edits.
2005
2006 2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>
2007
2008         * include/bits/stl_alloc.h (__debug_alloc): Move out.
2009         (__malloc_alloc): Same.
2010         (__pool_alloc): Same.
2011         (__new_alloc): Same.
2012         Rename to..
2013         * include/bits/allocator.h: ...this.
2014         * include/bits/stl_deque.h: Modify comment.
2015         * include/bits/stl_tree.h: Modify include.
2016         * include/std/std_memory.h: Same.
2017         * include/ext/rope: Same.
2018         * include/ext/slist: Same.
2019         * include/std/std_vector.h: Same.
2020         * include/std/std_stack.h: Same.
2021         * include/std/std_queue.h: Same.
2022         * include/std/std_list.h: Same.
2023         * include/std/std_deque.h: Same.
2024         * include/backward/alloc.h: Same.
2025         * include/ext/debug_allocator.h: New.
2026         * include/ext/malloc_allocator.h: New.
2027         * include/ext/pool_allocator.h: New.
2028         * include/ext/new_allocator.h: New.
2029         * include/bits/pthread_allocimpl.h: Remove.
2030         * include/bits/stl_pthread_alloc.h: Remove.
2031         * include/Makefile.am (ext_headers): Add.
2032         * include/Makefile.in: Regenerate.
2033         * src/stl-inst.cc: Use __gnu_cxx namespace.
2034         * src/stl-inst.cc: Move to...
2035         * src/allocator-inst.cc: Here.
2036         * src/Makefile.am (sources): Update.
2037         * src/Makefile.in: Regenerate.
2038         * config/linker-map.gnu: Remove __pool_alloc bits.
2039         * testsuite/ext/headers.cc: Add.
2040         * testsuite/ext/allocators.cc: Fixup.
2041
2042 2003-06-11  Stefan Olsson  <stefan@snon.net>
2043             Ola Rönnerup  <fnolis@home.se>
2044
2045         * include/Makefile.am (ext_headers): Add.
2046         * include/Makefile.in: Regenerate.
2047         * include/ext/mt_allocator.h: New file.
2048
2049 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
2050
2051         * include/bits/fstream.tcc (close): Clean up a bit.
2052
2053         * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
2054
2055         * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
2056         - the saved _M_in_cur, that is - cannot be null.
2057         (sync): Constify a variable.
2058
2059         * include/std/std_streambuf.h: Tweak a comment.
2060         (in_avail): Constify a variable.
2061
2062 2003-06-10  Phil Edwards  <pme@gcc.gnu.org>
2063
2064         * docs/html/17_intro/BUGS:  Update from 2.90.8 snapshot.
2065         * docs/html/17_intro/CHECKLIST:  Bring up to date with respect to
2066         correctness of container::iterator typedefs.  Fix whitespace.
2067         * docs/html/20_util/howto.html, docs/html/ext/howto.html:  Add links
2068         to allocator docs.
2069         * docs/html/documentation.html:  Regenerate.
2070
2071         * include/bits/basic_string.h, include/bits/basic_string.tcc,
2072         include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
2073         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2074         include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
2075         include/bits/stl_list.h, include/bits/stl_uninitialized.h,
2076         include/bits/stl_vector.h, include/bits/vector.tcc,
2077         include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
2078         Change _Iter names to _Iterator, and __pos to __position.
2079
2080         * include/bits/stl_relops.h, include/bits/stl_numeric.h,
2081         include/bits/stl_multiset.h, include/bits/stl_set.h:
2082         Remove emacs markers.
2083
2084         * include/bits/stl_threads.h (_STL_auto_lock):  Add __unused__.
2085
2086 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
2087
2088         * include/bits/fstream.tcc (overflow): According to
2089         27.5.2.4.5, overflow() returns not_eof(eof()).
2090         * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
2091         * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
2092
2093 2003-06-10  Paolo Carlini  <pcarlini@unitus.it>
2094
2095         * include/bits/fstream.tcc (_M_underflow): Check overflow return
2096         value; tweak slightly.
2097
2098 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
2099
2100         * include/bits/fstream.tcc (_M_underflow): Do not special
2101         case the unbuffered case, which really means simply a one char
2102         get area.
2103         (basic_filebuf): Initialize _M_buf_size.
2104         (setbuf): Unbuffered means _M_buf_size == 1, since only
2105         _M_buf_size - 1 == 0 chars are going to be used for the
2106         put area and 1 for the get area.
2107         * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
2108         (~basic_streambuf): Tweak.
2109         (basic_streambuf): Do not initialize _M_buf_size.
2110         * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
2111         (~basic_filebuf): Tweak.
2112         (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
2113         unbuffered situation (i.e., put area pointers NULL).
2114         * include/bits/streambuf.tcc (sbumpc): Clean up.
2115         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
2116         * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
2117         * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
2118         * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
2119         * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
2120         * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
2121         * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
2122
2123 2003-06-09  Phil Edwards  <pme@gcc.gnu.org>
2124
2125         * acinclude.m4:  Move all AM_CONDITIONAL calls out.
2126         (GLIBCPP_CONFIGURE):  Set defaults for variables used in AM_CONDITIONAL
2127         statements.
2128         * configure.in:  Centralize AM_CONDITIONALs so that they are always
2129         run.  Make use of GLIBCPP_IS_CROSS_COMPILING.
2130         * aclocal.m4, configure:  Regenerated.
2131
2132 2003-06-09  Paolo Carlini  <pcarlini@unitus.it>
2133
2134         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 235.
2135
2136 2003-06-06  Nathan Myers  <ncm-nospam@cantrip.org>
2137
2138         * include/bits/stl_iterator.h
2139         (reverse_iterator::reverse_iterator()): Apply DR235: default
2140         constructor default-initializes data member.  Instantiated on a
2141         pointer type, the member has to end up equal to zero.
2142
2143 2003-06-06  Benjamin Kosnik  <bkoz@redhat.com>
2144
2145         * include/bits/stl_alloc.h: Cleanups.
2146         * include/ext/functional: Same.
2147         * include/ext/hash_map: Same.
2148         * include/ext/hash_set: Same.
2149         * include/ext/iterator: Same.
2150         * include/ext/memory: Same.
2151         * include/ext/numeric: Same.
2152         * include/ext/rb_tree: Same.
2153         * include/ext/ropeimpl.h: Same.
2154         * include/ext/slist: Same.
2155         * include/ext/stdio_filebuf.h: Same.
2156         * include/ext/stdio_sync_filebuf.h: Same.
2157         * include/ext/stl_rope.h: Move to...
2158         * include/ext/rope: ...here.
2159         * include/ext/stl_hash_fun.h: Move to...
2160         * include/ext/hash_fun.h: ...here.
2161         * include/ext/stl_hashtable.h: Move to...
2162         * include/ext/hashtable.h: ...here.
2163         * include/backward/hashtable.h: Reflect new names.
2164         * include/Makefile.am: Same.
2165         * include/Makefile.in: Regenerated.
2166
2167 2003-06-05  Benjamin Kosnik  <bkoz@redhat.com>
2168
2169         PR libstdc++/9024
2170         * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
2171         * include/bits/stl_algobase.h: Tweak.
2172         * include/std/std_fstream.h: Move _M_buf_size to...
2173         * include/std/std_streambuf.h: ...here. Modify.
2174         * include/bits/streambuf.tcc: Same.
2175         * testsuite/testsuite_hooks.h: Tweak.
2176         * testsuite/testsuite_io.h (constraint_filebuf): New.
2177         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
2178         * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
2179         * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
2180         * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
2181         * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
2182         * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
2183         * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
2184         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
2185         * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
2186         * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
2187         * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
2188         * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
2189         * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
2190         * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
2191         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
2192         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
2193         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
2194         * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
2195         * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
2196         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
2197         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
2198         * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
2199         * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
2200         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
2201         * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
2202         * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
2203         * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
2204         * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
2205         * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
2206         * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
2207         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
2208         * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
2209         * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
2210         * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
2211         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
2212         * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
2213         * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
2214         * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
2215         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
2216         * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
2217         * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
2218         * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
2219         * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
2220         * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
2221         * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
2222         * testsuite/data/sgetc.txt: New.
2223         * testsuite/data/sgetn.txt: New.
2224
2225 2003-06-05  Paolo Carlini  <pcarlini@unitus.it>
2226
2227         PR libstdc++/11095
2228         * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
2229         Deal with width() smaller than zero.
2230         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
2231         operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
2232         _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
2233         char*), operator<<(basic_ostream<char, _Traits>&, const char*),
2234         operator<<(basic_ostream, const basic_string&)): Likewise.
2235
2236         * testsuite/27_io/basic_istream/extractors_character/char/
2237         (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2238         * testsuite/27_io/basic_ostream/inserters_character/char/
2239         (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2240         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
2241         (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
2242
2243 2003-06-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2244
2245         * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
2246         .gch compilation works.
2247         * aclocal.m4, configure: Regenerate.
2248         * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
2249         initialize PCHFLAGS.
2250
2251 2003-06-04  Paolo Carlini  <pcarlini@unitus.it>
2252
2253         * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2254         erase(iterator), erase(iterator, iterator), c_str,
2255         compare(const basic_string&)): Constify various variables.
2256         * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2257         const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2258         _S_create, resize, _M_replace, _M_replace_safe,
2259         append(const basic_string&), append(const basic_string&, size_type,
2260         size_type), append(const _CharT*, size_type), append(size_type,
2261         _CharT), operator+(const _CharT*, const basic_string&),
2262         operator+(_CharT, const basic_string&), replace(iterator, iterator,
2263         size_type, _CharT), find(const _CharT*, size_type, size_type),
2264         find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2265         rfind(_CharT, size_type), compare(size_type, size_type,
2266         const basic_string&), compare(size_type, size_type,
2267         const basic_string&, size_type, size_type), compare(const _CharT*),
2268         compare(size_type, size_type, const _CharT*), compare(size_type,
2269         size_type, const _CharT*, size_type)): Likewise.
2270
2271 2003-06-03  Benjamin Kosnik  <bkoz@redhat.com>
2272
2273         * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2274         'if' branch less obscure.
2275
2276 2003-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
2277
2278         PR libstdc++/9815
2279         * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2280         asm case to asm.
2281         * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2282         (__atomic_add): likewise.
2283
2284 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2285
2286         * include/bits/sstream.tcc (pbackfail): Minor clean up and
2287         reformatting, consistent with basic_filebuf::pbackfail.
2288
2289 2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
2290
2291         PR libstdc++/11062
2292         * config/cpu/mips/atomicity.h:  Change __attribute__ ((unused)) to
2293         __attribute__ ((__unused__)).
2294         * config/os/aix/atomicity.h:  Likewise.
2295
2296 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2297
2298         PR libstdc++/9761
2299         * include/bits/fstream.tcc (pbackfail): If the pback buffer
2300         is already active don't try to store in it a second char.
2301         * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2302
2303         * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2304
2305 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2306
2307         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2308         line spacing.
2309
2310 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2311
2312         * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2313         instead of unnecessarily taking the address of _M_pback.
2314         (xsgetn): Simplify slightly for a single char pback buffer.
2315
2316 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2317
2318         * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2319         variables and two 'if', clean up.
2320
2321 2003-06-02  Paolo Carlini  <pcarlini@unitus.it>
2322
2323         * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2324         not _M_out_end, since the former actually points to the string
2325         end (vs buffer end).
2326         * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2327
2328 2003-05-30  Phil Edwards  <pme@gcc.gnu.org>
2329
2330         * docs/doxygen/filter:  New file.
2331         * docs/doxygen/filter.sed:  New file.
2332         * docs/doxygen/run_doxygen:  Add g flag to sed substitutions.  Duh.
2333         * docs/doxygen/user.cfg.in (INPUT_FILTER):  Point to new filter.
2334         * docs/html/documentation.html:  Fix links to doxygen pages.
2335
2336 2003-05-30  Paolo Carlini  <pcarlini@unitus.it>
2337
2338         * include/bits/fstream.tcc (_M_convert_to_external): Don't
2339         check for __ilen > 0.
2340
2341 2003-05-29  Sylvain Pion  <Sylvain.Pion@mpi-sb.mpg.de>
2342
2343         PR libstdc++/10783
2344         * include/bits/stl_iterator.h (class __normal_iterator):
2345         Don't inherit from iterator, add missing typedefs.
2346
2347 2003-05-29  Paolo Carlini <pcarlini@unitus.it>
2348
2349         * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2350         * testsuite/24_iterators/reverse_iterator/1.cc: New.
2351         * testsuite/24_iterators/reverse_iterator/2.cc: New.
2352         * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2353         PR libstdc++/10783.
2354
2355 2003-05-27  Steve Ellcey  <sje@cup.hp.com>
2356
2357         * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2358         on IA64 HP-UX.
2359         * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2360         _LIBUNWIND_STD_ABI is set.
2361
2362 2003-05-26  Brendan Kehoe  <brendan@zen.org>
2363
2364         * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2365         make sure the number of digits required after the decimal-point
2366         (if any) is exactly the value returned by frac_digits().
2367         * testsuite/22_locale/money_get/get/char/9.cc: New.
2368         * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2369
2370 2003-05-27  Jonathan Wakely  <redi@gcc.gnu.org>
2371
2372         * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2373         comment.
2374
2375 2003-05-26  Benjamin Kosnik  <bkoz@redhat.com>
2376
2377         PR libstdc++/9339
2378         * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2379         (_M_pback): No array necessary.
2380         * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2381         unbuffered case, coalesec into ...
2382         (basic_filebuf::overflow): ...this.
2383         * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2384         * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2385
2386 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2387
2388         * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2389         libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2390         libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2391         libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2392         libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2393         libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2394         libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2395         libsupc++/eh_unex_handler.cc, libsupc++/exception,
2396         libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2397         libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2398         libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2399         libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2400         Replace "GNU CC" with "GCC".
2401
2402         * include/backward/new.h: Replace "GNU CC" with "GCC".
2403
2404 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2405
2406         PR libstdc++/3066.
2407         * configure.in: Switch target to host, don't assume newlib.
2408         (target_alias): Remove.
2409         * configure: Regenerate.
2410         * acinclude.m4: Same.
2411         * aclocal.m4: Regenerate.
2412         * configure.target: Same. Rename to...
2413         * configure.host: This.
2414
2415 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
2416
2417         * include/std/std_fstream.h (_S_pback_size): Remove definition.
2418         (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
2419         pback buffer.
2420         * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
2421         * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
2422         of _S_pback_size for systems with no COMDAT or weak support.
2423         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
2424         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
2425         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
2426         * testsuite/27_io/basic_fstream/3.cc: Likewise.
2427         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2428         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
2429         * testsuite/27_io/basic_ofstream/3.cc: Likewise.
2430         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
2431         * testsuite/27_io/basic_streambuf/3.cc: Likewise.
2432
2433 2003-05-22  Paolo Carlini  <pcarlini@unitus.it>
2434
2435         * include/bits/fstream.tcc (_M_underflow): Simplify:
2436         !__testout implies _M_filepos == _M_in_end, therefore
2437         the first _M_file.seekoff call is never issued.
2438
2439 2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2440
2441         * configure.in: Sort cross table.
2442         * configure: Regenerate.
2443
2444 2003-05-22  Brad Spencer  <spencer@infointeractive.com>
2445
2446         PR libstdc++/10106
2447         * configure.in: Add Solaris cross bits.
2448
2449 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2450
2451         * libstdc++-v3/config/os/mingw32/os_defines.h
2452         (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
2453         (NOMINMAX): Define.  Update copyright year.
2454
2455 2003-05-21  Paolo Carlini  <pcarlini@unitus.it>
2456
2457         * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2458
2459 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
2460
2461         * docs/html/faq/index.html: Fix typo.
2462         * docs/html/faq/index.txt: Regenerate.
2463
2464 2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>
2465
2466         * docs/html/test.html: Fix markup.
2467
2468 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
2469
2470         * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2471         zero.
2472         Update copyright year.
2473
2474 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
2475
2476         * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2477
2478 2003-05-20  Paolo Carlini  <pcarlini@unitus.it>
2479
2480         * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2481         further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2482
2483 2003-05-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2484
2485         * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2486         Cast via void* to avoid -Wcast-align warnings.
2487         (__default_alloc_template::_S_refill): Likewise.
2488
2489 2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>
2490
2491         * testsuite/README: Move to...
2492         * docs/html/test.html: ...here. Add documentation.
2493         * docs/html/install.html: Move testing bits out..
2494         * docs/html/documentation.html: Add separate testing link.
2495         * testsuite/performance: Add.
2496         * testsuite/performance/allocator.cc: New.
2497         * testsuite/performance/complex_norm.cc: New.
2498         * testsuite/performance/cout_insert_int.cc: New.
2499         * testsuite/performance/fstream_seek_write.cc: New.
2500         * testsuite/performance/ifstream_getline.cc: New.
2501         * testsuite/performance/map_create_fill.cc: New.
2502         * testsuite/performance/ofstream_insert_float.cc: New.
2503         * testsuite/performance/ofstream_insert_int.cc: New.
2504         * testsuite/performance/string_append.cc: New.
2505         * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2506         performance tests.
2507
2508 2003-05-20  Gabriel Dos Reis <gdr@integrable-solutions.net>
2509
2510         PR libstdc++/10689
2511         * include/std/std_complex.h (pow): Tidy.
2512
2513 2003-05-19  Paolo Carlini  <pcarlini@unitus.it>
2514
2515         * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2516         that upon filebuf::close() 27.8.1.1,3 is enforced.
2517
2518 2003-05-15  Loren J. Rittle  <ljrittle@acm.org>
2519
2520         * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2521
2522 2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
2523             Nathan Myers  <ncm@cantrip.org>
2524
2525         * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2526         _M_convert_to_external only once (_M_buf_size is now the size of
2527         the put area + 1 for the overflow char of a full area); call
2528         _M_set_buffer instead of _M_set_indeterminate.
2529         (setbuf): Don't accept a buffer smaller than 2 chars.
2530         (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2531         instead of _M_set_determinate.
2532         (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2533         (seekoff): Likewise.
2534         * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2535         std::ios_base::openmode, bool, size_t),
2536         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2537         Likewise.
2538         * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2539         (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2540         _M_buf_size - 1.
2541         * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2542         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2543         into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2544         the put area is now BUFSIZ - 1.
2545         * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2546         that now the smallest _M_buf_size is 2 (still fails, for the same
2547         reason, with 3.2.3)
2548
2549 2003-05-14  Loren J. Rittle  <ljrittle@acm.org>
2550
2551         * testsuite/thread/pthread4.cc: Tweak test.
2552
2553 2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>
2554
2555         * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2556         excess errors dg marker, use dg-errors instead.
2557         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2558         * testsuite/20_util/auto_ptr_neg.cc: Same.
2559
2560 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2561
2562         * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2563         cached member.
2564         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2565         Initialize _M_codecvt.
2566         (basic_filebuf::imbue): Same.
2567         (basic_filebuf::showmanyc): Use it.
2568         (basic_filebuf::underflow): Use it.
2569         (basic_filebuf::_M_convert_to_external): Use it.
2570         (basic_filebuf::seekoff): Use it.
2571         (basic_filebuf::imbue): Use it, tweaks.
2572         * include/bits/localefwd.h (__check_facet): New.
2573         * include/bits/locale_classes.h: Tweaks.
2574         * include/bits/locale_facets.tcc: Tweaks.
2575         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2576         _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2577         _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2578         * include/bits/basic_ios.tcc: Same.
2579         * include/bits/istream.tcc: Same.
2580         * include/bits/ostream.tcc: Same.
2581         * include/std/std_streambuf.h: Same.
2582         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2583         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2584         * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2585         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2586         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2587         * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2588
2589 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2590
2591         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2592         unnecessary includes and unused string literals.
2593         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2594         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2595         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2596         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2597
2598 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2599
2600         * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2601
2602 2003-05-12  Paolo Carlini  <pcarlini@unitus.it>
2603
2604         * include/std/std_fstream.h (_M_convert_to_external): Change
2605         to return bool, take two less streamsize parameters.
2606         * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2607         consistently definition.
2608         (_M_overflow): Adjust call points.
2609
2610 2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
2611
2612         * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2613
2614 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2615
2616         * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
2617         * testsuite/Makefile.in:  Regenerate.
2618
2619 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
2620
2621         * testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
2622         * testsuite/Makefile.in:  Regenerate.
2623
2624 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
2625
2626         PR libstdc++/3181
2627         * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2628         (acos): Handle integer argument.
2629         (asin): Likewise.
2630         (atan): Likewise.
2631         (atan2): Likewise.
2632         (ceil): Likewise.
2633         (cos): Likewise.
2634         (cosh): Likewise.
2635         (exp): Likewise.
2636         (fabs): Likewise.
2637         (floor): Likewise.
2638         (frexp): Likewise.
2639         (ldexp): Likewise.
2640         (log): Likewise.
2641         (log10): Likewise.
2642         (sin): Likewise.
2643         (sinh): Likewise.
2644         (sqrt): Likewise.
2645         (tan): Likewise.
2646         (tanh): Likewise.
2647         * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2648         (__enable_if): Likewise.
2649         * testsuite/26_numerics/cmath/overloads.C: New test.
2650
2651 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2652
2653         PR libstdc++/9027
2654         PR libstdc++/9520
2655         PR libstdc++/10096
2656         * include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
2657         implementation, based on old wchar_t specialization, add support
2658         for codecvt::in() return value of codecvt_base::noconv, remove
2659         _M_file.sys_ungetc() call.
2660         * include/std/std_fstream.h (basic_file::underflow,
2661         basic_file::uflow, basic_file::_M_underflow):  Remove
2662         specialization declarations, call _M_underflow from generic versions
2663         of underflow and uflow.
2664         * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2665         basic_file::_M_underflow):  Remove specializations.
2666         * src/Makefile.am (sources):  Remove fstream.cc.
2667         * src/Makefile.in:  Regenerated.
2668         * testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
2669         * testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
2670         * testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
2671         * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.
2672
2673 2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>
2674
2675         * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2676         buffer.
2677         * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2678         unbuffered bits.
2679         (__basic_file::xsputn): Same.
2680         (__basic_file::seekoff): Same.
2681         (__basic_file::seekpos): Same.
2682         (__basic_file::showmanyc): Same.
2683         * config/io/basic_file_stdio.cc: Same.
2684         * include/std/std_fstream.h: Same.
2685         * include/bits/fstream.tcc: Same.
2686         * src/fstream.cc: Same.
2687         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2688
2689 2003-05-10  Petur Runolfsson  <peturr02@ru.is>
2690
2691         PR libstdc++/9520
2692         PR libstdc++/9661
2693         PR libstdc++/9662
2694         * include/ext/stdio_sync_filebuf.h:  New file.
2695         (basic_stdiobuf):  New.
2696         * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2697         * include/Makefile.in: Regenerate.
2698         * include/bits/ios_base.h (Init::_S_create_buffers,
2699         Init::_S_destroy_buffers):  Remove declarations.
2700         * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2701         buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
2702         * src/ios.cc (Init::_S_create_buffers,
2703         Init::_S_destroy_buffers):  Remove.
2704         (Init::Init):  Create and use syncronized buffers.
2705         (ios_base::sync_with_stdio):  Destroy syncronized buffers,
2706         create and install unsyncronized buffers.
2707         * testsuite/27_io/objects/char/10.cc:  New test.
2708         * testsuite/27_io/objects/char/9.cc:  New test.
2709         * testsuite/27_io/objects/char/9661-1.cc:  New test.
2710         * testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
2711         * testsuite/27_io/objects/char/9661-2_xin.in:  New.
2712         * testsuite/27_io/objects/wchar_t/1.cc:  New test.
2713         * testsuite/27_io/objects/wchar_t/10.cc:  New test.
2714         * testsuite/27_io/objects/wchar_t/2.cc:  New test.
2715         * testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
2716         * testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
2717         * testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
2718         * testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
2719         * testsuite/27_io/objects/wchar_t/3045.cc:  New test.
2720         * testsuite/27_io/objects/wchar_t/3647.cc:  New test.
2721         * testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
2722         * testsuite/27_io/objects/wchar_t/3_xin.in:  New.
2723         * testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
2724         * testsuite/27_io/objects/wchar_t/4_xin.in:  New.
2725         * testsuite/27_io/objects/wchar_t/5.cc:  New test.
2726         * testsuite/27_io/objects/wchar_t/5268.cc:  New test.
2727         * testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
2728         * testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
2729         * testsuite/27_io/objects/wchar_t/6.cc:  New test.
2730         * testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
2731         * testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
2732         * testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
2733         * testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
2734         * testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
2735         * testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
2736         * testsuite/27_io/objects/wchar_t/7.cc:  New test.
2737         * testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
2738         * testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
2739         * testsuite/27_io/objects/wchar_t/8.cc:  New test.
2740         * testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
2741         * testsuite/27_io/objects/wchar_t/9_xin.in:  New.
2742         * testsuite/27_io/objects/wchar_t/9520.cc:  New test.
2743         * testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
2744         * testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
2745         * testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
2746         * testsuite/27_io/objects/wchar_t/9662.cc:  New test.
2747         * testsuite/ext/stdiobuf_char.cc:  New test.
2748         * testsuite/ext/stdiobuf_wchar_t.cc:  New test.
2749
2750 2003-05-10  Paolo Carlini  <pcarlini@unitus.it>
2751
2752         * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2753         unnecessary includes and unused string literals.
2754         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2755
2756 2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
2757
2758         * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2759
2760 2003-05-07  Richard Henderson  <rth@redhat.com>
2761
2762         PR c++/10570
2763         * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2764         (__cxa_end_catch): Likewise.
2765         * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
2766         _Unwind_Resume_or_Rethrow.
2767         * libsupc++/eh_personality.cc (empty_exception_spec): New.
2768         (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2769         for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
2770         exceptions.  Don't push terminate/unexpected to cxa functions.
2771         (__cxa_call_unexpected): Remove foreign exception fixmes.
2772
2773 2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>
2774
2775         * testsuite/27_io/ios_base/cons: New.
2776         * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2777         * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2778
2779 2003-05-07  Paolo Carlini  <pcarlini@unitus.it>
2780
2781         * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2782         * src/fstream.cc
2783         (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2784         there is no buffer or __testget == !__testinit.
2785
2786         * src/fstream.cc
2787         (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2788         automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2789
2790         * include/std/std_fstream.h (_M_destroy_pback): Don't set
2791         unnecessarily _M_pback_cur_save and _M_pback_end_save.
2792
2793         * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2794
2795         * include/std/std_sstream.h (_M_sync): Minor tweak.
2796
2797         * include/bits/fstream.tcc (close): No need to call
2798         _M_destroy_pback, setting _M_pback_init to false suffices
2799         to clean up.
2800
2801 2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>
2802
2803         * include/bits/stl_algo.h: Enums as _S_.
2804         * include/bits/stl_tree.h: Same.
2805         * include/bits/stl_bvector.h: Same.
2806         * include/bits/ios_base.h: Same.
2807         * include/bits/stl_alloc.h: Same.
2808         * include/ext/stl_hashtable.h: Same.
2809         * src/ios.cc: And here.
2810
2811         * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2812         * include/bits/sstream.tcc: Same.
2813
2814         * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2815
2816         * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2817
2818         * include/bits/locale_facets.h (__num_base): Remove protected.
2819         Use _S_[io]* names for enumerations.
2820         (_S_format_int): Remove.
2821         * include/bits/locale_facets.tcc: Same.
2822         * src/locale.cc: Same.
2823
2824         * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2825
2826 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
2827
2828         * docs/html/faq/index.html (3.10):  Add note about mips atomicity.h.
2829         * docs/html/faq/index.txt:  Regenerated.
2830
2831 2003-05-06  Michael Ritzert <Ritzert@t-online.de>
2832             Matt Kraai <kraai@alumni.cmu.edu>
2833
2834         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2835         And retweak.
2836
2837 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2838
2839         * configure.target (mips*): Use the generic atomicity.h by default.
2840
2841 2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
2842             (Inspired by an alternate patch from Danny Smith.)
2843
2844         * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2845         (_Swap_lock_struct<>): ...and the horse it rode in on.
2846         * src/globals.cc (_Swap_lock_struct<>): Likewise.
2847         * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2848         member to support...
2849         * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2850         visibility rules related to POSIX threads.
2851         * testsuite/thread/pthread7-rope.cc: New test.
2852
2853 2003-05-04  Paolo Carlini  <pcarlini@unitus.it>
2854
2855         * testsuite/21_strings/basic_string/find/char/3.cc: New
2856         file, testing basic_string<char>::find_first_not_of.
2857         * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2858         Likewise for basic_string<wchar_t>.
2859
2860 2003-05-03  Loren J. Rittle  <ljrittle@acm.org>
2861
2862         * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2863
2864 2003-05-02  Benjamin Kosnik  <bkoz@redhat.com>
2865
2866         * include/Makefile.am (CLEANFILES): Remove PCH files in target
2867         directory.
2868         * include/Makefile.in: Regenerate.
2869
2870 2003-05-02  Paolo Carlini  <pcarlini@unitus.it>
2871
2872         * include/std/std_sstream.h (str()): Tidy.
2873
2874 2003-05-02  Nathan Myers  <ncm@cantrip.org>
2875             Paolo Carlini  <pcarlini@unitus.it>
2876
2877         * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2878
2879 2003-05-02  Jonathan Wakely  <redi@gcc.gnu.org>
2880
2881         * include/bits/basic_string.h (swap): Remove redundant template
2882         parameters from declaration of non-template member function.
2883
2884 2003-05-01  Phil Edwards  <pme@gcc.gnu.org>
2885
2886         * acconfig.h (_GLIBCPP_USE_NLS):  New symbol.
2887         * configure.in:  Move libintl.h header test...
2888         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  ...to here.  Gather all
2889         the NLS-related test results into one symbol.
2890         * src/functexcept.cc:  Use it here.
2891         * aclocal.m4, config.h.in, configure:  Regenerated.
2892
2893 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2894
2895         * include/bits/sstream.tcc (overflow): Instead of calling
2896         str(), then _M_string.reserve, thus copying the contents
2897         of the current buffer two times, just copy the latter in
2898         a temporary, then use the 'swap trick'.
2899
2900 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2901
2902         * include/std/std_sstream.h (str()): Revert the best of the
2903         previous 'improvement', incorrect due to the COW nature of
2904         v3 basic_string; simplify.
2905
2906 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2907
2908         * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2909         type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2910
2911 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2912
2913         * testsuite/abi_check.cc (check_version): Update known versions.
2914         Check added symbols for version_name != base version. Add missing
2915         symbols to incompatible list.
2916
2917 2003-05-01  Benjamin Kosnik  <bkoz@redhat.com>
2918
2919         * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2920         * aclocal.m4: Regenerated.
2921         * configure: Regenerated.
2922
2923 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2924
2925         * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2926         Const-ify some variables.
2927         (basic_streambuf::xsputn): Likewise; change the type of some
2928         variables to size_t.
2929         (__copy_streambufs): Change some variables to size_t.
2930
2931 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2932
2933         * include/std/std_sstream.h (str()): Avoid constructing
2934         a basic_string temporary not only when it would turn out
2935         to be zero-sized but also when identical to the current
2936         _M_string buffer.
2937
2938 2003-05-01  Paolo Carlini  <pcarlini@unitus.it>
2939
2940         * include/ext/stdio_filebuf.h
2941         (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2942         stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2943         Shorten a bit (-10 lines) by factoring out some code.
2944
2945 2003-04-30  Phil Edwards  <pme@gcc.gnu.org>
2946
2947         * acinclude.m4:  Add bit missing from previous patch.
2948         * aclocal.m4, configure:  Regenerated.
2949
2950 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2951
2952         * docs/doxygen/mainpage.html:  Bring up to date.
2953         * docs/doxygen/run_doxygen:  Cosmetic tweaks.  Work around a bug
2954         in Doxygen.
2955         * docs/doxygen/user.cfg.in:  Scanning the precompiled headers
2956         breaks everything.  Don't scan them.
2957         * docs/html/documentation.html:  Point to "Write after approval"
2958         notes.
2959
2960 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
2961
2962         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE):  Search for gettext outside
2963         of libc if message translations are being used.  Fix info text in
2964         xieee_1003.1-2001 case.
2965         * aclocal.m4, configure:  Regenerate.
2966
2967 2003-04-29 Joel Sherrill  <joel.sherrill@OARcorp.com>
2968            Loren J. Rittle <ljrittle@acm.org>
2969            Martin v. Loewis  <martin@v.loewis.de>
2970
2971         * config/cpu/i386/atomicity.h: New file.
2972
2973 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2974
2975         * include/bits/fstream.tcc (open): Change to single return.
2976
2977 2003-04-29  Paolo Carlini  <pcarlini@unitus.it>
2978
2979         * include/std/std_sstream.h (underflow): Change to single return.
2980
2981 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
2982
2983         * include/std/std_streambuf.h (_M_buf): is currently
2984         used only for basic_filebuf, therefore move it there.
2985         (basic_streambuf(), ~basic_streambuf()): Adjust.
2986         * include/std/std_fstream.h (_M_buf): Moved here.
2987         * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2988         is actually redundant for basic_stringbuf.
2989         (_M_really_sync): Likewise.
2990         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2991         * include/bits/sstream.tcc (seekoff): Adjust.
2992
2993 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
2994
2995         * src/localename.cc: Standardize exception strings.
2996         * src/locale.cc: Same.
2997         * src/ios.cc: Same.
2998         * include/bits/basic_string.tcc: Same.
2999         * include/bits/basic_ios.tcc: Same.
3000         * include/std/std_bitset.h: Same.
3001         * include/ext/ropeimpl.h: Same.
3002         * include/bits/stl_vector.h: Same.
3003         * include/bits/stl_deque.h: Same.
3004         * include/bits/stl_bvector.h: Same.
3005         * config/locale/generic/c_locale.cc: Same.
3006         * config/locale/gnu/c_locale.cc: Same.
3007         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
3008
3009         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
3010
3011 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
3012
3013         * include/std/std_streambuf.h (_M_buf_size): is currently
3014         used only for basic_filebuf, therefore move it there.
3015         (basic_streambuf(), ~basic_streambuf()): Adjust.
3016         * include/std/std_fstream.h (_M_buf_size): Moved here.
3017         * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3018
3019 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
3020
3021         * include/bits/streambuf.tcc (__copy_streambufs): Don't use
3022         _M_buf_size (synced input is now correctly dealt with
3023         elsewhere); when the output buffer is full don't fall back
3024         to a snextc-sputc loop, call overflow instead.
3025
3026 2003-04-28  Paolo Carlini  <pcarlini@unitus.it>
3027
3028         * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
3029         the innermost 'if' by factoring out some code.
3030
3031 2003-04-28  Phil Edwards  <pme@gcc.gnu.org>
3032
3033         * configure.in:  Test for libintl.h.
3034         * include/bits/c++config:  Define __N for everybody.
3035         * include/bits/basic_string.h, include/bits/stl_bvector.h,
3036         include/bits/stl_deque.h, include/bits/stl_vector.h,
3037         include/std/std_bitset.h:  Wrap all __throw* text with __N.
3038         * po/Makefile.am (pot):  New rule, mostly working.
3039         * src/functexcept.cc:  Call gettext on all __throw* arguments when
3040         -fexceptions is in effect.
3041         * po/Makefile.in, config.h.in, configure:  Regenerate.
3042
3043 2003-04-28  Petur Runolfsson  <peturr02@ru.is>
3044
3045         PR libstdc++/9523
3046         * include/bits/ios_base.h (Init::_S_ios_create,
3047         Init::_S_ios_destroy):  Remove declarations.
3048         (Init::_S_create_buffers,
3049         Init::_S_destroy_buffers):  Declare
3050         * src/ios.cc (Init::_S_ios_create):  Remove
3051         (Init::_S_create_buffers):  Create buffers and add to streams.
3052         (Init::_S_ios_destroy):  Rename to...
3053         (Init::_S_destroy_buffers):  this.
3054         (Init::Init):  Only construct streams once.
3055         (Init::~Init):  Flush streams, don't destroy them.
3056         (ios_base::sync_with_stdio):  Don't destroy streams, only buffers.
3057         * testsuite/27_io/ios_base/sync_with_stdio/9523.cc:  New test.
3058         * testsuite/27_io/objects/char/5.cc:  New test.
3059         * testsuite/27_io/objects/char/5268.cc:  Avoid undefined behavior.
3060         * testsuite/27_io/objects/char/6.cc:  New test.
3061         * testsuite/27_io/objects/char/7.cc:  New test.
3062
3063 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
3064
3065         * testsuite/27_io/objects/char/8.cc:  New test.
3066
3067 2003-04-28  Benjamin Kosnik  <bkoz@redhat.com>
3068
3069         * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
3070         * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
3071
3072 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
3073
3074         * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
3075         _M_destroy_pback. _M_pback_create to
3076         _M_create_pback. _M_underflow_common to
3077         _M_underflow. _M_really_overflow to _M_overflow.
3078         * include/bits/fstream.tcc: Same.
3079         * src/fstream.cc: Same.
3080         * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
3081         _M_move_in_cur.  _M_out_cur_move to _M_move_out_cur.
3082         * include/bits/streambuf.tcc: Same.
3083         * include/bits/fstream.tcc: Same.
3084         * include/bits/sstream.tcc: Same.
3085
3086 2003-04-27  Benjamin Kosnik  <bkoz@redhat.com>
3087
3088         * include/bits/locale_classes.h (locale::_Impl): Change _M_names
3089         from fixed size array.
3090         (locale): Change _S_categories as well.
3091         Formatting tweaks.
3092         * include/bits/locale_facets.tcc: Tweak.
3093         * config/locale/gnu/c_locale.cc: Assign _S_categories.
3094         * config/locale/generic/c_locale.cc: Same.
3095         * src/locale.cc: Tweak.
3096         * src/globals.cc: Change facet_name to name_vec, add names_c.
3097         * src/localename.cc: Use them.
3098         (locale::_Impl::~_Impl): Destroy _M_names.
3099         (locale::_Impl::_Impl): Create _M_names.
3100
3101 2003-04-27  Andreas Schwab  <schwab@suse.de>
3102
3103         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3104         (__enc_traits): Use __ibom and __ebom instead of ignoring them.
3105
3106 2003-04-27  Nathan Myers  <ncm@cantrip.org>
3107
3108         Move some basic_string members out of line because
3109         they are too big to reasonably be inline.
3110         * include/bits/basic_string.h
3111         (assign(const basic_string&, size_type, size_type),
3112         assign(const _CharT*, size_type),
3113         insert(size_type, const basic_string&, size_type, size_type),
3114         insert(size_type, const _CharT*, size_type),
3115         replace(size_type, size_type, const _CharT*, size_type)):
3116         Move from here to...
3117         * include/bits/basic_string.tcc: ...here.
3118
3119 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
3120
3121         * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
3122         the innermost 'if' by factoring out some code.
3123
3124 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
3125
3126         * include/bits/streambuf.tcc (__copy_streambufs): Don't
3127         use in_avail(), simplify.
3128
3129 2003-04-26  Paolo Carlini  <pcarlini@unitus.it>
3130
3131         * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
3132         in basic_stringbuf it's unused.
3133
3134         * include/std/std_sstream.h (underflow): consistently use
3135         _M_in_cur, not gptr().
3136
3137 2003-04-25  Ranjit Mathew  <rmathew@hotmail.com>
3138             Phil Edwards  <pme@gcc.gnu.org>
3139
3140         * testsuite_flags.in: Guard against the possibility
3141         of having "xgcc" as a part of a folder name in the
3142         path to the GCC build folder.
3143         * testsuite/Makefile.am: Likewise.
3144         * testsuite/Makefile.in: Regenerated.
3145
3146 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
3147
3148         PR libstdc++/10132
3149         * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
3150         exception specifications.
3151         (basic_filebuf::close): Same.
3152         (basic_filebuf::_M_pback_destroy): Same.
3153         (basic_filebuf::_M_destroy_internal_buffer): Same.
3154         (basic_filebuf): Remove __res_type typedef.
3155         * src/fstream.cc: Same.
3156         * include/bits/fstream.tcc
3157         (basic_filebuf::_M_convert_to_external): Simplify.
3158         (basic_filebuf::seekoff): Use has_facet before use_facet.
3159         (basic_filebuf::close): Add exception specification of throw().
3160         * testsuite/27_io/basic_filebuf/cons: New.
3161         * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
3162         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
3163         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
3164         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
3165
3166 2003-04-25  Benjamin Kosnik  <bkoz@redhat.com>
3167
3168         * include/bits/locale_classes.h
3169         (locale::_S_extra_categories_size): Remove.
3170         * src/locale.cc: Remove _S_extra_categories_size.
3171         * src/localename.cc: Same.
3172         * config/locale/gnu/c_locale.cc: Same.
3173         * config/locale/generic/c_locale.cc: Same.
3174
3175 2003-04-24  Richard Sandiford  <rsandifo@redhat.com>
3176
3177         * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
3178
3179 2003-04-24  Phil Edwards  <pme@gcc.gnu.org>
3180
3181         * docs/html/17_intro/howto.html:  Update some links.
3182         * docs/html/18_support/howto.html:  Link doxygen numeric_limits notes.
3183         * docs/html/27_io/howto.html:  Link doxygen stdio_filebuf notes.
3184         * docs/html/ext/howto.html:  Link to demangler notes and API.
3185         * docs/html/faq/index.html:  Remove trailing whitespace.
3186         (1.4, 2.4, 3.8, 4.1):  Bring up to date.
3187         (5.6):  Change to a bulleted list.
3188
3189         * docs/html/faq/index.txt, docs/html/documentation.html,
3190         docs/html/17_intro/porting.html:  Regenerate.
3191
3192 2003-04-23  Paolo Carlini  <pcarlini@unitus.it>
3193
3194         * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
3195         belongs to basic_filebuf.
3196         * testsuite/27_io/basic_fstream/3.cc: Likewise.
3197         * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3198         * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
3199         instantiation (now belongs to basic_filebuf).
3200         * testsuite/27_io/basic_iostream/3.cc: Likewise.
3201         * testsuite/27_io/basic_istream/3.cc: Likewise.
3202         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3203         _S_pback_size now belongs to basic_filebuf.
3204         * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
3205         instantiation (now belongs to basic_filebuf).
3206         * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
3207         belongs to basic_filebuf.
3208         * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
3209         instantiation (now belongs to basic_filebuf).
3210         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
3211         _S_pback_size now belongs to basic_filebuf.
3212         * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
3213         instantiation (now belongs to basic_filebuf).
3214         * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
3215         to basic_filebuf.
3216         * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
3217         instantiation (now belongs to basic_filebuf).
3218         * testsuite/27_io/basic_stringstream/3.cc: Likewise.
3219
3220 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
3221
3222         * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
3223         * configure: Regenerated.
3224
3225 2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>
3226
3227         * config/locale/generic/c_locale.h (__convert_from_v): Use
3228         attribute unused.
3229
3230 2003-04-23  Phil Edwards  <pme@gcc.gnu.org>
3231
3232         * docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
3233         implementation only.
3234         * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
3235         Comment and change to comply with DR 60 and the effect on gcount().
3236         * include/std/std_istream.h:  Update comments.
3237         * testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
3238         comments about reasons for tests.  Test sync() against gcount().
3239         * testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
3240         for effect on gcount().
3241         * testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
3242         for effect on gcount().
3243
3244 2003-04-22  Loren J. Rittle  <ljrittle@acm.org>
3245
3246         * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
3247         Adjust timing.
3248
3249 2003-04-22  Paolo Carlini  <pcarlini@unitus.it>
3250
3251         * include/std/std_streambuf.h (_S_pback_size, _M_pback,
3252         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3253         _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3254         (basic_streambuf::basic_streambuf()): Adjust.
3255         * include/std/std_fstream.h (_S_pback_size, _M_pback,
3256         _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3257         _M_pback_create(), _M_pback_destroy()): Moved here
3258         from basic_streambuf.
3259         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3260         Adjust.
3261         (basic_filebuf::_S_pback_size): Add declaration.
3262         * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3263         Remove declaration.
3264
3265 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
3266
3267         Consistently use _M_in_beg instead of eback(), _M_in_cur
3268         instead of gptr(), and so on.
3269         * include/bits/fstream.tcc (pbackfail, imbue): Here.
3270         * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
3271         * include/bits/streambuf.tcc (sbumpc, sputbackc,
3272         __copy_streambufs): Ditto.
3273         * include/std/std_streambuf.h (sgetc): Ditto.
3274
3275 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
3276
3277         * include/bits/sstream.tcc (pbackfail, overflow):
3278         Formatting fixes.
3279
3280 2003-04-21  Paolo Carlini  <pcarlini@unitus.it>
3281
3282         * include/std/std_streambuf.h (uflow()): It's used only by
3283         basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
3284         therefore do not consider the _M_buf_unified == true case.
3285
3286         * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
3287
3288 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
3289
3290         * docs/html/ext/howto.html ('LWG Issues'):
3291         Add issues 19, 90, 171, 231, 271.
3292
3293 2003-04-20  Paolo Carlini  <pcarlini@unitus.it>
3294
3295         * include/bits/sstream.tcc (pbackfail): Remove redundant
3296         NULL pointer check from test involving _M_in_*.
3297         (overflow, seekoff, seekpos): Const qualify bool variables.
3298         * include/std/std_sstream.h (underflow): Remove redundant
3299         NULL pointer check from test involving _M_in_*.
3300         (_M_really_sync): Const qualify bool variables.
3301         * src/fstream.cc (_M_underflow_common): Remove redundant
3302         NULL pointer check from test involving _M_in_*, const qualify
3303         bool variables.
3304
3305         * include/std/std_streambuf.h (sgetc): Remove redundant
3306         variable.
3307
3308 2003-04-18  Paolo Carlini  <pcarlini@unitus.it>
3309
3310         According to 5.9 para 2 (second bullet) for pointers p, q
3311         pointing to the same type, with  p == 0 and q == 0, (p < q)
3312         is false.
3313         * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
3314         seekoff): Remove redundant NULL pointer checks from tests
3315         involving _M_out_* and _M_in_*, const qualify bool variables.
3316         (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
3317         qualify bool variables.
3318         * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
3319         Remove redundant NULL pointer checks from tests involving
3320         _M_out_* and _M_in_*, const qualify bool variables.
3321         * include/std/std_fstream.h (sync): Likewise.
3322         (_M_is_indeterminate): Const qualify bool variables.
3323         * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
3324         NULL pointer checks from tests involving _M_out_* and _M_in_*,
3325         const qualify bool variables.
3326         (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
3327         variables.
3328
3329 2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
3330
3331         * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
3332         C99 FP macros, if actually captured.
3333
3334         * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
3335         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3336         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3337         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3338         * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
3339         New macro.
3340         (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3341         (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3342         (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3343         * include/c_std/std_cstdlib.h: Use new macros.
3344         * include/c_std/std_cstdio.h: Use new macros.
3345         * include/c_std/std_cwchar.h: Use new macros.
3346
3347 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
3348
3349         PR libstdc++/9555
3350         * include/bits/ostream.tcc: Catch all exceptions for formatted
3351         output, instead of std::exception and derivatives.
3352         * include/bits/istream.tcc: Same.
3353         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
3354         * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
3355         * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
3356         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
3357         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3358         * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
3359         New.
3360
3361 2003-04-17  Phil Edwards  <pme@gcc.gnu.org>
3362
3363         * include/bits/c++config:  Minor cosmetic tweaks.
3364
3365 2003-04-17  Loren J. Rittle  <ljrittle@acm.org>
3366
3367         * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
3368         * include/Makefile.am (pch_input): Find in ${target_builddir}.
3369         (pch_output): Rename to...
3370         (pch_output_builddir): ..this.  Find in ${target_builddir}.
3371         (pch_source): Tweak.
3372         (pch_build): Key off a built file.
3373         (pch_output rule): Rename to...
3374         (pch_input rule): ...this.  Produce ${pch_output_builddir}
3375         instead of ${pch_output}.
3376         (install-pch rule): Install ${pch_output_builddir}.
3377         * include/Makefile.in: Regenerated.
3378
3379 2003-04-17  Paolo Carlini  <pcarlini@unitus.it>
3380
3381         * include/std/std_streambuf.h (setp): _M_out_lim, being
3382         the end limit of used put area, is set equal to _M_out_beg.
3383
3384 2003-04-16  Benjamin Kosnik  <bkoz@redhat.com>
3385
3386         * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
3387         * aclocal.m4: Regenerated.
3388         * configure.in: Remove old demangler bits.
3389         Call pch checks.
3390         * configure: Regenerate.
3391         * config.h.in: Regenerate.
3392         * include/Makefile.am (allstamps): Now allstamped.
3393         (allcreated): Define this.
3394         (all-local): Use 'em.
3395         Conditionally define pch_build, pch_install based on
3396         GLIBCPP_BUILD_PCH.
3397         (${pch_output}): New rule.
3398         (install-pch): New rule.
3399         (install-headers): New rule.
3400         (install-data-local): Install headers and conditionally pch.
3401         * include/Makefile.in: Regenerate.
3402         * testsuite_flags.in (--build-cxx): Use pch file.
3403
3404 2003-04-16  Jonathan Wakely  <redi@gcc.gnu.org>
3405
3406         * docs/html/ext/sgiexts.html: Fix path to stylesheet.
3407
3408 2003-04-15  Benjamin Kosnik  <bkoz at redhat dot com>
3409             Paolo Carlini  <pcarlini at unitus dot it>
3410
3411         PR libstdc++/9423
3412         * docs/html/27_io/howto.html
3413         ('The buffering is screwing up my program!'): Explain that
3414         opening counts as an I/O operation.
3415
3416 2003-04-15  Andreas Tobler  <a.tobler@schweiz.ch>
3417
3418         * testsuite/thread/pthread1.cc: Enable for darwin test.
3419         * testsuite/thread/pthread2.cc: Same.
3420         * testsuite/thread/pthread3.cc: Same.
3421         * testsuite/thread/pthread4.cc: Same.
3422         * testsuite/thread/pthread5.cc: Same.
3423         * testsuite/thread/pthread6.cc: Same.
3424
3425 2003-04-15  Loren J. Rittle  <ljrittle@acm.org>
3426
3427         libstdc++/7680
3428         * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
3429         Populate it with multiple legal ways to obtain the C99 float
3430         transcendentals.  Use them instead of direct global reference.
3431         (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
3432         * docs/html/17_intro/porting.texi
3433         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3434         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3435         (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
3436         * config/os/bsd/freebsd/os_defines.h
3437         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3438         (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3439         * testsuite/26_numerics/c_math_dynamic.cc: New file.
3440
3441 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
3442             Benjamin Kosnik  <bkoz@redhat.com>
3443
3444         * config/os/generic/ctype_inline.h: Fix.
3445
3446 2003-04-14  Benjamin Kosnik  <bkoz@redhat.com>
3447
3448         * testsuite/testsuite_hooks.h
3449         (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
3450         Change to try_named_locale.
3451         * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
3452
3453         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
3454         try_named_locale.
3455         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3456         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3457         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3458         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3459         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3460         * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3461         * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3462         * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3463         * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3464         * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3465         * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3466         * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3467         * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3468         * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3469         * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3470         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3471         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3472         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3473         * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3474         * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
3475         * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
3476         * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
3477         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
3478         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
3479         * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
3480         * testsuite/22_locale/collate/compare/char/1.cc: Same.
3481         * testsuite/22_locale/collate/compare/char/2.cc: Same.
3482         * testsuite/22_locale/collate/compare/char/3.cc: Same.
3483         * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
3484         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
3485         * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
3486         * testsuite/22_locale/collate/hash/char/2.cc: Same.
3487         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
3488         * testsuite/22_locale/collate/transform/char/2.cc: Same.
3489         * testsuite/22_locale/collate/transform/char/3.cc: Same.
3490         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
3491         * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
3492         * testsuite/22_locale/collate_byname/1.cc: Same.
3493         * testsuite/22_locale/ctype/is/char/2.cc: Same.
3494         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3495         * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
3496         * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
3497         * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
3498         * testsuite/22_locale/facet/2.cc: Same.
3499         * testsuite/22_locale/locale/cons/2.cc: Same.
3500         * testsuite/22_locale/locale/cons/4.cc: Same.
3501         * testsuite/22_locale/locale/cons/5.cc: Same.
3502         * testsuite/22_locale/locale/cons/7.cc: Same.
3503         * testsuite/22_locale/locale/cons/7222-c.cc: Same.
3504         * testsuite/22_locale/locale/cons/7222-env.cc: Same.
3505         * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
3506         * testsuite/22_locale/messages/members/char/1.cc: Same.
3507         * testsuite/22_locale/messages/members/char/2.cc: Same.
3508         * testsuite/22_locale/messages/members/char/3.cc: Same.
3509         * testsuite/22_locale/messages_byname/1.cc: Same.
3510         * testsuite/22_locale/money_get/get/char/1.cc: Same.
3511         * testsuite/22_locale/money_get/get/char/2.cc: Same.
3512         * testsuite/22_locale/money_get/get/char/3.cc: Same.
3513         * testsuite/22_locale/money_get/get/char/4.cc: Same.
3514         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
3515         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
3516         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
3517         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
3518         * testsuite/22_locale/money_put/put/char/1.cc: Same.
3519         * testsuite/22_locale/money_put/put/char/2.cc: Same.
3520         * testsuite/22_locale/money_put/put/char/3.cc: Same.
3521         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3522         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3523         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3524         * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3525         * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3526         * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3527         * testsuite/22_locale/num_get/get/char/1.cc: Same.
3528         * testsuite/22_locale/num_get/get/char/2.cc: Same.
3529         * testsuite/22_locale/num_get/get/char/3.cc: Same.
3530         * testsuite/22_locale/num_get/get/char/5.cc: Same.
3531         * testsuite/22_locale/num_get/get/char/6.cc: Same.
3532         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3533         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3534         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3535         * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3536         * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3537         * testsuite/22_locale/num_put/put/char/1.cc: Same.
3538         * testsuite/22_locale/num_put/put/char/2.cc: Same.
3539         * testsuite/22_locale/num_put/put/char/3.cc: Same.
3540         * testsuite/22_locale/num_put/put/char/5.cc: Same.
3541         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3542         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3543         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3544         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3545         * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3546         * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3547         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3548         * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3549         * testsuite/22_locale/numpunct_byname/1.cc: Same.
3550         * testsuite/22_locale/numpunct_byname/2.cc: Same.
3551         * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3552         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3553         * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3554         * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3555         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3556         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3557         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3558         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3559         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3560         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3561         * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3562         * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3563         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3564         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3565         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3566         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3567         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3568         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3569         * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3570         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3571         * testsuite/22_locale/time_put/put/char/1.cc: Same.
3572         * testsuite/22_locale/time_put/put/char/2.cc: Same.
3573         * testsuite/22_locale/time_put/put/char/3.cc: Same.
3574         * testsuite/22_locale/time_put/put/char/4.cc: Same.
3575         * testsuite/22_locale/time_put/put/char/5.cc: Same.
3576         * testsuite/22_locale/time_put/put/char/6.cc: Same.
3577         * testsuite/22_locale/time_put/put/char/7.cc: Same.
3578         * testsuite/22_locale/time_put/put/char/8.cc: Same.
3579         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3580         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3581         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3582         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3583         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3584         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3585         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3586         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3587         * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3588         * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3589         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3590         * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3591         * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3592
3593 2003-04-14  Andreas Tobler  <toa@pop.agri.ch>
3594
3595         * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3596         solaris includes, not generic.
3597
3598 2003-04-14  Loren J. Rittle  <ljrittle@acm.org>
3599
3600         * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3601
3602         * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3603         * include/bits/concept_check.h: Fix multi-line comment.
3604         * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3605         when target is *-*-freebsd*.
3606
3607 2003-04-14  Nathan Myers  <ncm@cantrip.org>
3608             Paolo Carlini  <pcarlini@unitus.it>
3609
3610         PR libstdc++/9701 (in_avail())
3611         * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3612         doesn't care if there is anything in some putback cell.
3613         * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3614
3615         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3616         unused string literals.
3617
3618 2003-04-14  Paolo Carlini  <pcarlini@unitus.it>
3619
3620         * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3621         _M_out_end, _M_set_indeterminate() does it.
3622
3623 2003-04-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3624
3625         * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3626
3627 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
3628
3629         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3630         Change basic_streambuf instantiation to "unsigned char".
3631         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3632
3633 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3634
3635         Remove _M_buf_size_opt, use directly _M_buf_size instead.
3636         * include/bits/fstream.tcc
3637         (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3638         references to _M_buf_size_opt.
3639         * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3640         * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3641         __bufsize to __in_avail and __size_opt to __buf_size.
3642         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3643         * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3644         * include/std/std_streambuf.h (~basic_streambuf(),
3645         basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3646         * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3647         * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3648         * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3649         * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3650         * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3651         * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3652         * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3653         * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3654         * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3655         * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3656         * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3657         * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3658
3659 2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>
3660
3661         * include/ext/stdio_filebuf.h
3662         (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3663         stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3664         _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3665         since a stack-based buffer is used for small values of the size_t
3666         parameter.
3667         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3668         If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3669         * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3670
3671 2003-04-12  Paolo Carlini  <pcarlini@unitus.it>
3672
3673         PR libstdc++/9533
3674         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3675         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3676
3677 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3678
3679         * testsuite/22_locale/locale/cons/3.cc: Split.
3680         * testsuite/22_locale/locale/cons/7222-c.cc: New.
3681         * testsuite/22_locale/locale/cons/7222-env.cc: New.
3682         Check before trying to create a locale from the environment.
3683         * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3684         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3685         Adjust includes.
3686
3687 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3688
3689         * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3690         locale to construct this hybrid locale, not the global locale.
3691
3692 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
3693
3694         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3695         instantiation for AIX.
3696         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3697         * testsuite/25_algorithms/min_max.cc: Same.
3698
3699 2003-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3700
3701         * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3702         twice.  Always set _M_cfile to 0 when stream was open.
3703
3704 2003-04-09  Benjamin Kosnik  <bkoz@redhat.com>
3705
3706         Reshuffle 27_io testsuite.  * testsuite/27_io/filebuf.cc,
3707         filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3708         filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3709         filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3710         filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3711         ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3712         ifstream_members.cc, instantiations.cc, ios.cc,
3713         ios_base_callbacks.cc, ios_base_members_static-1.tst,
3714         ios_base_members_static.cc, ios_base_storage.cc,
3715         ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3716         ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3717         iostream.cc, iostream_members.cc, istream.cc,
3718         istream_exception.cc, istream_extractor_char.cc,
3719         istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3720         istream_extractor_other-2.tst, istream_extractor_other.cc,
3721         istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3722         istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3723         istream_sentry.cc, istream_unformatted-1.tst,
3724         istream_unformatted-1.txt, istream_unformatted.cc,
3725         istringstream.cc, istringstream_members.cc,
3726         narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3727         ofstream_members.cc, ostream.cc, ostream_exception.cc,
3728         ostream_fail.cc, ostream_inserter_arith.cc,
3729         ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3730         ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3731         ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3732         ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3733         ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3734         ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3735         streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3736         stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3737         wide_stream_objects.cc, istream_extractor_arith/01.cc,
3738         istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3739         istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3740         istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3741         istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3742         istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3743         Split into...
3744         * 27_io/basic_filebuf/1.cc: New.
3745         * 27_io/basic_filebuf/2.cc: New.
3746         * 27_io/basic_filebuf/3.cc: New.
3747         * 27_io/basic_filebuf/4.cc: New.
3748         * 27_io/basic_filebuf/close/char/1.cc: New.
3749         * 27_io/basic_filebuf/close/char/2.cc: New.
3750         * 27_io/basic_filebuf/close/char/3.cc: New.
3751         * 27_io/basic_filebuf/close/char/4879.cc: New.
3752         * 27_io/basic_filebuf/close/char/9964.cc: New.
3753         * 27_io/basic_filebuf/imbue/char/1.cc: New.
3754         * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3755         * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3756         * 27_io/basic_filebuf/is_open/char/1.cc: New.
3757         * 27_io/basic_filebuf/open/char/1.cc: New.
3758         * 27_io/basic_filebuf/open/char/2.cc: New.
3759         * 27_io/basic_filebuf/open/char/3.cc: New.
3760         * 27_io/basic_filebuf/open/char/9507.cc: New.
3761         * 27_io/basic_filebuf/overflow/char/1.cc: New.
3762         * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3763         * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3764         * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3765         * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3766         * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3767         * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3768         * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3769         * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3770         * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3771         * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3772         * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3773         * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3774         * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3775         * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3776         * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3777         * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3778         * 27_io/basic_filebuf/snextc/char/1.cc: New.
3779         * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3780         * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3781         * 27_io/basic_filebuf/sputc/char/1.cc: New.
3782         * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3783         * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3784         * 27_io/basic_filebuf/sputn/char/1.cc: New.
3785         * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3786         * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3787         * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3788         * 27_io/basic_filebuf/sync/char/1057.cc: New.
3789         * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3790         * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3791         * 27_io/basic_fstream/1.cc: New.
3792         * 27_io/basic_fstream/2.cc: New.
3793         * 27_io/basic_fstream/3.cc: New.
3794         * 27_io/basic_fstream/4.cc: New.
3795         * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3796         * 27_io/basic_ifstream/1.cc: New.
3797         * 27_io/basic_ifstream/2.cc: New.
3798         * 27_io/basic_ifstream/3.cc: New.
3799         * 27_io/basic_ifstream/4.cc: New.
3800         * 27_io/basic_ifstream/cons/char/1.cc: New.
3801         * 27_io/basic_ifstream/open/char/1.cc: New.
3802         * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3803         * 27_io/basic_ios/1.cc: New.
3804         * 27_io/basic_ios/2.cc: New.
3805         * 27_io/basic_ios/3.cc: New.
3806         * 27_io/basic_ios/4.cc: New.
3807         * 27_io/basic_ios/clear/char/1.cc: New.
3808         * 27_io/basic_ios/cons/char/1.cc: New.
3809         * 27_io/basic_ios/cons/char/2.cc: New.
3810         * 27_io/basic_ios/cons/char/3.cc: New.
3811         * 27_io/basic_ios/copyfmt/char/1.cc: New.
3812         * 27_io/basic_ios/copyfmt/char/2.cc: New.
3813         * 27_io/basic_ios/exceptions/char/1.cc: New.
3814         * 27_io/basic_ios/locales/char/1.cc: New.
3815         * 27_io/basic_iostream/1.cc: New.
3816         * 27_io/basic_iostream/2.cc: New.
3817         * 27_io/basic_iostream/3.cc: New.
3818         * 27_io/basic_iostream/4.cc: New.
3819         * 27_io/basic_istream/1.cc: New.
3820         * 27_io/basic_istream/2.cc: New.
3821         * 27_io/basic_istream/3.cc: New.
3822