OSDN Git Service

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