OSDN Git Service

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