OSDN Git Service

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