OSDN Git Service

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