OSDN Git Service

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