OSDN Git Service

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