OSDN Git Service

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