OSDN Git Service

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