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