OSDN Git Service

PR 43839
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog-2003
1 2003-12-31  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 thousands_sep, then for decimal_point and
6         finally for digits.
7         (num_get::_M_extract_float): After the decimal_point or
8         'e'/'E', decimal_point and thousands_sep just break out the
9         parsing loop.
10         * testsuite/22_locale/num_get/get/char/11.cc: Add tests.
11         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
12
13 2003-12-30  Paolo Carlini  <pcarlini@suse.de>
14
15         PR libstdc++/13369
16         * include/bits/locale_facets.tcc (__verify_grouping):
17         Fix to deal properly with __grouping_tmp.size() >
18         __grouping.size().
19         * testsuite/22_locale/num_get/get/char/13.cc: New.
20         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Ditto.
21
22 2003-12-29  Jerry Quinn  <jlquinn@optonline.net>
23
24         * include/bits/locale_facets.h (ctype.narrow,widen): Add cast.
25
26 2003-12-29  Paolo Carlini  <pcarlini@suse.de>
27
28         * acinclude.m4 (GLIBCXX_CHECK_LFS): Add -fno-exceptions
29         to CXXFLAGS.
30         * aclocal.m4: Regenerate.
31         * configure: Likewise.
32
33 2003-12-29  Mark Mitchell  <mark@codesourcery.com>
34
35         * acconfig.h: Add _GLIBCXX_USE_C99_MATH.
36         * acinclude.m4 (GLIBCXX_ENABLE_C99): Define GLIBCXX_USE_C99_MATH.
37         * configure.ac: Define HAVE_S_ISREG and HAVE_S_IFREG when
38         targeting newlib.
39         * aclocal.m4: Regenerated.
40         * config.h.in: Likewise.
41         * configure: Likewise.
42         * Makefile.in: Likewise.
43         * include/Makefile.in: Likewise.
44         * libmath/Makefile.in: Likewise.
45         * libsupc++/Makefile.in: Likewise.
46         * testsuite/Makefile.in: Likewise.
47         * src/Makefile.in: Likewise.
48         * po/Makefile.in: Likewise.
49         * include/c_std/std_cmath.h (_GLIBCXX_USE_C99): Replace with ...
50         (_GLIBCXX_USE_C99_MATH): ... this.
51
52         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL for
53         arm-none-elf.
54         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Likewise.
55         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Likewise.
56         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Likewise.
57         * testsuite/27_io/basic_istream/readsome/char/6476-2.cc: Likewise.
58         * testsuite/27_io/objects/char/9.cc: Likewise.
59         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Likewise.
60
61 2003-12-28  Paolo Carlini  <pcarlini@suse.de>
62
63         * include/ext/pool_allocator.h (class __pool_alloc): Use
64         operator new and operator delete.
65
66 2003-12-24  Andrew Pinski  <pinskia@physics.uc.edu>
67
68         * config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
69         constraint.
70
71         PR libstdc++/13480
72         * config/cpu/i386/atomicity.h: Split up read-write memory operand.
73
74 2003-12-23  Benjamin Kosnik  <bkoz@redhat.com>
75
76         * include/ext/new_allocator.h (new_allocator): Proper allocator class.
77         (__new_alloc): Delete.
78         * include/ext/malloc_allocator.h (malloc_allocator): Same.
79         (__malloc_alloc): Delete.
80         * include/ext/mt_allocator.h: Same, but weakly.
81         * include/ext/debug_allocator.h: Convert to the new style.
82         * include/ext/pool_allocator.h: Use global new and delete directly.
83         * include/backward/alloc.h: Don't inject malloc_allocator, or
84         debug_allocator.
85         * testsuite/ext/allocators.cc: Minimal fixups for usage of new
86         classes.  Comment out tests with __pool_alloc for now.
87         * testsuite/performance/allocator.cc: Same.
88
89 2003-12-22  Matt Austern  <austern@apple.com>
90
91         * include/bits/stl_bvector.h (_Bvector_alloc_base): Eliminate.
92         (_Bvector_base): Inherit directly from word allocator.
93         * include/bits/stl_tree.h (_Rb_tree_alloc_base): Eliminate.
94         (_Rb_tree_base): Eliminate.
95         (_Rb_tree): Inherit directly from node allocator.
96         * include/ext/slist (_Alist_alloc_base): Eliminate.
97         (_Slist_base): Inherit direcly from node allocator.
98
99 2003-12-22  Benjamin Kosnik  <bkoz@redhat.com>
100
101         * testsuite/18_support/numeric_limits.cc: Add _GLIBCXX_ASSERT to
102         dg-options in testcases that use VERIFY.
103         * testsuite/23_containers/vector/invalidation/1.cc: Same.
104         * testsuite/23_containers/vector/invalidation/2.cc: Same.
105         * testsuite/23_containers/vector/invalidation/3.cc: Same.
106         * testsuite/23_containers/vector/invalidation/4.cc: Same.
107         * testsuite/23_containers/vector/resize/1.cc: Same.
108         * testsuite/26_numerics/complex_value.cc: Same.
109         * testsuite/27_io/ios_base/storage/1.cc: Same.
110         * testsuite/27_io/ios_base/storage/2.cc: Same.
111         * testsuite/27_io/ios_base/storage/3.cc: Same.
112         * testsuite/27_io/manipulators/standard/char/2.cc: Same.
113         * testsuite/backward/11460.cc: Same.
114         * testsuite/backward/strstream_members.cc: Same.
115
116         * include/ext/hash_set (class hash_multiset): Fix typo.
117
118 2003-12-22  Benjamin Kosnik  <bkoz@redhat.com>
119
120         * testsuite/27_io/objects/char/5.cc: Don't use stdc++.h.gch.
121         * testsuite/27_io/objects/wchar_t/5.cc: Same.
122         * docs/html/test.html: Add docs for constructing test files that
123         don't use stdc++.h.gch.
124         * scripts/testsuite_flags.in (PCHFLAGS): Move to --cxxpchflags.
125         * testsuite/libstdc++-dg/normal.exp: Compute DEFAULT_CXXFLAGS
126         differently.
127
128         * include/bits/ios_base.h (ios_base::Init::_S_initialized): Remove.
129         * src/ios_init.cc: Same.
130         * config/linker-map.gnu: Same.
131         * testsuite/27_io/ios_base/cons/copy_neg.cc: Adjust line numbers.
132         * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
133
134 2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
135
136         PR libstdc++/13462
137         * include/bits/stl_multiset.h (__gnu_norm::multiset): Define pointer
138         as allocator's pointer, likewise for reference, const_pointer, and
139         const_reference.
140         * include/bits/stl_set.h (__gnu_norm::set): Likewise.
141         * include/ext/hash_set (__gnu_ext::hash_set): Likewise.
142         (__gnu_ext::hash_multiset): Likewise.
143
144 2003-12-22  Paolo Carlini  <pcarlini@suse.de>
145
146         * include/bits/locale_facets.tcc (num_get::_M_extract_int,
147         num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
148         first look for decimal_point and thousands_sep, when parsing
149         sign, leading zeros (and 0, Ox, 0X for integer types) too.
150         * testsuite/22_locale/num_get/get/char/12.cc: New.
151         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
152
153         * testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
154         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
155
156 2003-12-20  Jason Merrill  <jason@redhat.com>
157
158         * config/cpu/powerpc/atomicity.h: Fix oversight in previous
159         change.
160
161 2003-12-20  Jerry Quinn  <jlquinn@optonline.net>
162
163         * docs/doxygen/TODO: Update.
164         * include/bits/locale_classes.h (locale, facet, id): Document.
165         * include/bits/locale_facets.tcc (has_facet, use_facet): Document.
166
167 2003-12-19  Jason Merrill  <jason@redhat.com>
168
169         * config/cpu/cris/atomicity.h: Remove memory clobbers.
170         * config/cpu/mips/atomicity.h: Likewise.
171         * config/cpu/i486/atomicity.h: Remove memory clobbers.
172         Split up read-write memory operand.
173         * config/cpu/m68k/atomicity.h: Likewise.
174         * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
175         * config/cpu/s390/atomicity.h: Likewise.
176         * config/cpu/sparc/atomicity.h: Likewise.
177
178 2003-12-20  Carlo Wood  <carlo@alinoe.com>
179
180         * bits/demangle.h
181         namespace __gnu_cxx::demangler
182         (session<Allocator>::decode_encoding): Put the postfix
183         of the return type of (member) functions after the function
184         instead of after the return type.
185
186 2003-12-19  Jerry Quinn  <jlquinn@optonline.net>
187
188         * include/bits/locale_facet.h
189         (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
190         Document.
191
192 2003-12-19  Paolo Carlini  <pcarlini@suse.de>
193
194         * include/bits/locale_facets.tcc (num_get::_M_extract_int,
195         num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
196         first look for decimal_point and thousands_sep.
197         * testsuite/22_locale/num_get/get/char/11.cc: New.
198         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
199
200 2003-12-19  Paolo Carlini  <pcarlini@suse.de>
201
202         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
203         When __found_sci becomes true stop eating thousands separators
204         and the decimal radix separator.
205         * testsuite/22_locale/num_get/get/char/9.cc: New.
206         * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
207
208         * config/locale/generic/c_locale.cc (__convert_to_v): Don't
209         check that *__sanity == '\0': parsing may stop earlier, still
210         be successful.
211         * config/locale/gnu/c_locale.cc: Likewise.
212         * testsuite/22_locale/num_get/get/char/10.cc: New.
213         * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
214         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
215         Tweak in one place accordingly.
216
217         * testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
218         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
219
220 2003-12-18  Benjamin Kosnik  <bkoz@redhat.com>
221
222         * include/bits/stl_list.h: Formatting tweaks.
223         * include/bits/list.tcc: Same.
224
225 2003-12-18  Matt Austern  <austern@apple.com>
226
227         * include/bits/demangle.h: Fix allocator type correctness,
228         i.e. make sure that when we instantiate a container with a value
229         type and an allocator, the allocator's value type matches the
230         container's.
231         * include/bits/stl_deque.h (_Deque_alloc_base): Eliminate.
232         (_Deque_base): inherit directly from the deque's allocator.  Use
233         rebinding instead of _Alloc_traits.  Pick up data members from
234         _Deque_alloc_base.
235         * include/bits/stl_list.h (_List_alloc_base): Eliminate.
236         (_List_base): Inherit directly from the list's allocator.  Use
237         rebinding instead of _Alloc_traits.  Pick up data members from
238         _List_alloc_base.
239         * include/bits/stl_vector.h (_Vector_alloc_base): Eliminate
240         (_Vector_base): Inherit directly from the vector's allocator.  Use
241         rebinding instead of _Alloc_traits.  Pick up data members from
242         _Vector_alloc_base.
243         * include/ext/hashtable.h: Fix allocator type correctness (the
244         vector of buckets must be passed an allocator for objects of
245         type _Node*).  Use rebinding instead of _Alloc_traits.
246
247 2003-12-17  Paolo Carlini  <pcarlini@suse.de>
248
249         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
250         Use narrow to get from __format[__i] a char __c representing a
251         formatting code, don't use it to compare *__beg to __format[__i].
252         * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: New.
253
254 2003-12-17  Paolo Carlini  <pcarlini@suse.de>
255
256         * testsuite/performance/container_benchmark.cc: Tweak outputs.
257
258         * testsuite/performance/list_create_fill_sort.cc: Shrink a
259         bit some outputs.
260
261         * testsuite/testsuite_performance.h: Widen a few output fields.
262
263         * testsuite/performance/ifstream_extract_int.cc: New.
264
265 2003-12-16  Phil Edwards  <phil@codesourcery.com>
266
267         * configure.ac (AM_INIT_AUTOMAKE):  Don't warn about GNU Make.
268         * configure:  Regenerated.
269         * Makefile.am (check-%):  New catch-all forwarding target.
270         * Makefile.in:  Regenerated.
271
272 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
273
274         * testsuite/performance/container_benchmark.cc: New, a
275         benchmark developed by Bjarne Stroustrup and Alexander
276         Stepanov and made available with no restrictions.
277
278         * testsuite/testsuite_performance.h (report_header): New,
279         useful to produce header lines in the reports.
280
281 2003-12-16  Jonathan Wakely  <redi@gcc.gnu.org>
282
283         * docs/html/21_strings/howto.html: Document shrink-to-fit reserve().
284         * docs/html/faq/index.html: Reducing vector's capacity() to size().
285         * docs/html/documentation.html, docs/html/faq/index.txt: Regenerate.
286
287 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
288
289         * testsuite/performance/narrow_widen_char.cc: Tweak the
290         number of iterations for each test.
291         * testsuite/performance/narrow_widen_wchar_t.cc: Add a
292         missing clear_counters.
293
294 2003-12-16  Paolo Carlini  <pcarlini@suse.de>
295
296         PR libstdc++/11723
297         * include/bits/locale_facets.h: Add _M_bit and _M_wmask,
298         used to speed up the computation of ctype::do_is.
299         * config/locale/generic/ctype_members.cc
300         (_M_initialize_ctype): Fill _M_bit and _M_wmask.
301         (ctype::do_is): Use _M_bit and _M_wmask.
302         * config/locale/gnu/ctype_members.cc: Likewise.
303         * testsuite/performance/is_wchar_t.cc: New.
304
305         * testsuite/performance/narrow_widen_wchar_t.cc: Tweak
306         string literal (incorrect citation ;)
307
308         * include/bits/locale_facets.h: Minor tweaks, const
309         correctness, unsigned -> size_t.
310
311 2003-12-16  Jerry Quinn  <jlquinn@optonline.net>
312
313         * include/bits/locale_facets.h (widen, narrow):  Uncomment the
314         intended code.
315
316 2003-12-15  Jerry Quinn  <jlquinn@optonline.net>
317
318         * config/os/aix/ctype_noninline.h,
319         config/os/bsd/freebsd/ctype_noninline.h,
320         config/os/bsd/netbsd/ctype_noninline.h,
321         config/os/djgpp/ctype_noninline.h,
322         config/os/generic/ctype_noninline.h,
323         config/os/gnu-linux/ctype_noninline.h,
324         config/os/hpux/ctype_noninline.h,
325         config/os/irix/irix5.2/ctype_noninline.h,
326         config/os/irix/irix6.5/ctype_noninline.h,
327         config/os/mingw32/ctype_noninline.h,
328         config/os/newlib/ctype_noninline.h,
329         config/os/qnx/qnx6.1/ctype_noninline.h,
330         config/os/solaris/solaris2.5/ctype_noninline.h,
331         config/os/solaris/solaris2.6/ctype_noninline.h,
332         config/os/solaris/solaris2.7/ctype_noninline.h,
333         config/os/vxworks/ctype_noninline.h,
334         config/os/windiss/ctype_noninline.h (ctype):  Initialize
335         _M_narrow, _M_widen.
336         * include/bits/locale_facets.h (_M_widen, _M_widen_ok,
337         _M_narrow, _M_narrow_ok): New.
338         (widen, narrow): Use tables to bypass virtual functions.
339         (_M_widen_init, _M_narrow_init): New.
340
341 2003-12-15  Carlo Wood  <carlo@alinoe.com>
342
343         * include/bits/ios_base.h (Init::_S_initialized): Change into
344         declaration.
345         * src/ios_init.cc (Init::_S_initialized): Add definition.
346
347 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
348
349         PR libstdc++/12658
350         * include/Makefile.am (bits_headers): Add concurrence.h.
351         * include/Makefile.in: Regenerated.
352         * include/bits/concurrence.h: New.
353         * src/locale_init.cc: Use it.
354         (locale::locale): Lock critical regions.
355         (locale::global): Same.
356
357 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
358
359         * include/bits/basic_string.h: Change _*_references to _*_refcount.
360         * include/bits/locale_classes.h: Same.
361         * src/locale.cc: Same.
362         * src/locale_name.cc: Same.
363         * src/locale_init.cc: Same.
364
365 2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
366
367         PR libstdc++/12855
368         * include/bits/ios_base.h (Init::_S_ios_base_init): Change to
369         _S_refcount, make atomic.
370         * src/ios.cc: Adjust definition.
371         * src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
372         and __atomic_add.
373         (ios_base::Init::~Init): Same.
374         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
375         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
376
377 2003-12-15  Paolo Carlini  <pcarlini@suse.de>
378
379         * include/bits/locale_facets.tcc (num_get::do_get(bool&)):
380         Fail as soon as the begins of both truename and falsename
381         stop to match; always leave __beg one position beyond the
382         last char successfully matched.
383         * testsuite/22_locale/num_get/get/char/8.cc: New.
384         * testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
385
386 2003-12-15  Paolo Carlini  <pcarlini@suse.de>
387
388         * include/bits/locale_facets.h (_M_widen): Reserve space
389         for all the possible widened chars.
390         * config/locale/generic/ctype_members.cc (_M_initialize_ctype):
391         Compute at construction time all the possible widened chars.
392         (do_widen): Tweak, simplify.
393         * config/locale/gnu/ctype_members.cc: Likewise.
394         * testsuite/performance/narrow_widen_wchar_t.cc: Add tests
395         for the array versions.
396
397 2003-12-12  Paolo Carlini  <pcarlini@suse.de>
398             Benjamin Kosnik  <bkoz@redhat.com>
399
400         PR libstdc++/13341
401         * include/bits/locale_facets.h (ctype<wchar_t>): Declare
402         _M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
403         * src/ctype.cc (ctype<wchar_t>::ctype(size_t),
404         ctype<wchar_t>::ctype(__c_locale, size_t)): Use
405         _M_initialize_ctype to fill _M_narrow and _M_widen.
406         (ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
407         Likewise.
408         * config/locale/generic/ctype_members.cc (do_narrow, do_widen)
409         Use _M_narrow and _M_widen when possible, instead of calling
410         wctob and btowc, respectively.
411         (_M_initialize_ctype): Define, it fills at construction time
412         _M_narrow and _M_widen.
413         * config/locale/gnu/ctype_members.cc: Likewise.
414         * testsuite/performance/narrow_widen_wchar_t.cc: New.
415
416 2003-12-12  Jonathan Wakely  <redi@gcc.gnu.org>
417
418         * docs/html/faq/index.txt: Regenerate after adding <link> tags.
419
420 2003-12-11  Neil Ferguson  <nferguso@eso.org>
421             Paolo Carlini  <pcarlini@suse.de>
422
423         * include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
424         * testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
425         * testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
426         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
427
428 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
429
430         PR libstdc++/6243
431         * testsuite/lib/libstdc++.exp (v3-init): Add
432         original_ld_library_path, calculate ld_library path, set
433         LD_LIBRARY_PATH to both. Based on libjava.exp.
434
435 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
436             Alexandre Oliva  <aoliva@redhat.com>
437
438         PR libstdc++/11612
439         * testsuite/Makefile.am (GLIBCXX_DIR): New.
440         (GLIBGCC_DIR): New.
441         (CXXLINK): Use both with -R so libtool links the correct libs.
442
443 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
444
445         PR libstdc++/13217
446         * include/bits/fstream.tcc (underflow): Deal gracefully with
447         read errors: throw ios_base::failure.
448
449 2003-12-10  Benjamin Kosnik  <bkoz@redhat.com>
450
451         PR libstdc++/10063
452         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Sync.
453         * testsuite/ext/stdio_filebuf/char/10063-1.cc: New.
454         * testsuite/ext/stdio_filebuf/char/10063-2.cc: New.
455
456 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
457
458         * include/bits/locale_facets.tcc (num_put::do_put(void*)):
459         Remove the try/catch, not necessary.
460
461 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
462
463         * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
464         limit and iterations to avoid spurious failures on some
465         64 bit machines.
466
467 2003-12-09  Benjamin Kosnik  <bkoz@redhat.com>
468
469         * config/linker-map.gnu: Remove private ios_base members from
470         export list.
471
472         * config/cpu/alpha/atomicity.h: Consistently format.
473         * config/cpu/cris/atomicity.h: Same.
474         * config/cpu/generic/atomicity.h: Same.
475         * config/cpu/hppa/atomicity.h: Same.
476         * config/cpu/i386/atomicity.h: Same.
477         * config/cpu/i486/atomicity.h: Same.
478         * config/cpu/ia64/atomicity.h: Same.
479         * config/cpu/m68k/atomicity.h: Same.
480         * config/cpu/mips/atomicity.h: Same.
481         * config/cpu/powerpc/atomicity.h: Same.
482         * config/cpu/s390/atomicity.h: Same.
483         * config/cpu/sparc/atomicity.h: Same.
484
485 2003-12-09  Benjamin Kosnik  <bkoz@redhat.com>
486
487         PR libstdc++/13296
488         * acinclude.m4 (GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS): Remove.
489         * aclocal.m4: Regenerate.
490         * configure.ac: Remove call to GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS.
491         * conigure: Regenerate.
492         * src/Makefile.am (libstdc___la_LDFLAGS): Remove LIBUNWIND_FLAGS.
493         * src/Makefile.in: Regenerate.
494         * docs/html/17_intro/configury.html: Modify.
495
496 2003-12-09  Paolo Carlini  <pcaelini@suse.de>
497
498         * include/bits/demangle.h (struct implementation_details):
499         Keep in comments the names of the unused parameters.
500
501 2003-12-09  Paolo Carlini  <pcaelini@suse.de>
502
503         * include/bits/demangle.h (struct implementation_details):
504         Fix unused parameters warning.
505
506 2003-12-09  Paolo Carlini  <pcarlini@suse.de>
507
508         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
509         Slightly streamline the code dealing with overflows and the
510         parsing of the sign.
511
512 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
513
514         * include/ext/algorithm, include/ext/debug_allocator.h,
515         include/ext/enc_filebuf.h, include/ext/functional,
516         include/ext/hash_fun.h, include/ext/hash_map, include/ext/hash_set,
517         include/ext/hashtable.h, include/ext/iterator,
518         include/ext/malloc_allocator.h, include/ext/memory,
519         include/ext/mt_allocator.h, include/ext/numeric,
520         include/ext/pod_char_traits.h, include/ext/pool_allocator.h,
521         include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h,
522         include/ext/slist, include/ext/stdio_filebuf.h,
523         include/ext/stdio_sync_filebuf.h: Remove trailing whitespace.
524
525 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
526
527         * include/debug/bitset, include/debug/debug.h, include/debug/deque,
528         include/debug/formatter.h, include/debug/hash_map.h,
529         include/debug/hash_multimap.h, include/debug/hash_multiset.h,
530         include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
531         include/debug/map.h, include/debug/multimap.h,
532         include/debug/multiset.h, include/debug/safe_base.h,
533         include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
534         include/debug/safe_sequence.h, include/debug/set.h,
535         include/debug/string, include/debug/vector: Remove trailing whitespace.
536
537 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
538
539         * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
540         include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
541         include/c_compatibility/string.h, include/c_compatibility/time.h,
542         include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
543         Remove trailing whitespace.
544
545 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
546
547         * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
548         include/c_std/std_cctype.h, include/c_std/std_cmath.h,
549         include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
550         include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
551         include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
552         Remove trailing whitespace.
553
554 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
555
556         * include/c/std_cctype.h, include/c/std_cmath.h,
557         include/c/std_cstdlib.h include/c/std_cwchar.h,
558         include/c/std_cwctype.h: Remove trailing whitespace.
559
560 2003-12-09  Bernardo Innocenti  <bernie@develer.com>
561
562         * include/backward/algo.h, include/backward/algobase.h,
563         include/backward/alloc.h, include/backward/complex.h,
564         include/backward/defalloc.h, include/backward/function.h,
565         include/backward/iterator.h, include/backward/new.h,
566         include/backward/ostream.h, include/backward/queue.h,
567         include/backward/rope.h, include/backward/stream.h,
568         include/backward/streambuf.h, include/backward/strstream,
569         include/backward/tempbuf.h, include/backward/tree.h,
570         include/backward/vector.h: Remove trailing whitespace.
571
572 2003-12-08  Paolo Carlini  <pcarlini@suse.de>
573
574         * config/locale/generic/c_locale.cc (__convert_to_v(long&),
575         __convert_to_v(unsigned long&), __convert_to_v(long long&),
576         __convert_to_v(unsigned long long&): Remove.
577         (__convert_to_v(float&), __convert_to_v(double&),
578         __convert_to_v(long double&)): Remove last unused parameter.
579         * config/locale/gnu/c_locale.cc: Likewise.
580         * include/bits/locale_facets.h: Likewise.
581         (num_get::_M_extract_int): Update declaration.
582         (class __num_base): Tweak _S_ie and _S_iE according to the
583         _S_atoms_in changes.
584         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
585         Provide directly the final _ValueT, not a string: accumulate
586         the result checking for overflow at each digit.
587         (num_get::do_get(bool&), num_get::do_get(long&),
588         num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
589         num_get::do_get(unsigned long&), num_get::do_get(long long&),
590         num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
591         Use the new _M_extract_int, simplify.
592         * src/locale-inst.cc (num_get::_M_extract_int(long&),
593         num_get::_M_extract_int(unsigned short&),
594         num_get::_M_extract_int(unsigned int&),
595         num_get::_M_extract_int(unsigned long&),
596         num_get::_M_extract_int(long long&),
597         num_get::_M_extract_int(unsigned long long&): Instantiate.
598         * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
599         the chars in the natural order: abcdefABCDEF.
600
601 2003-12-08  David S. Miller  <davem@redhat.com>
602
603         PR libstdc++/12496
604         * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
605         Extend increment to _Atomic_word before giving to assembler.
606
607 2003-12-06  Benjamin Kosnik  <bkoz@redhat.com>
608
609         * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
610         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
611
612 2003-12-06  Benjamin Kosnik  <bkoz@redhat.com>
613
614         PR libstdc++/11691
615         * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
616         Remove __del argument to file descriptor constructor.
617         * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
618         bool argument.
619         * config/io/basic_file_stdio.cc: Same.
620
621 2003-12-05  Benjamin Kosnik  <bkoz@redhat.com>
622
623         PR libstdc++/13189
624         * include/ext/enc_filebuf.h: Fix.
625         * include/bits/fstream.tcc: Tweak formatting.
626         * include/bits/postypes.h: Same.
627         * include/bits/sstream.tcc: Same.
628         * include/bits/streambuf.tcc: Same.
629         * testsuite/ext/stdio_filebuf.cc: Split.
630         * testsuite/ext/stdio_filebuf_2.cc: Split.
631         * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
632         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
633         * testsuite/ext/enc_filebuf/char/13189.cc: New.
634         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
635         * testsuite/ext/stdio_filebuf/char/1.cc: New.
636         * testsuite/ext/stdio_filebuf/char/2.cc: New.
637         * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
638         * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
639         * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
640         * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
641         * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
642         * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
643         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
644         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
645         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
646         * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
647
648 2003-12-05  Carlo Wood  <carlo@alinoe.com>
649
650         PR libstdc++/13045
651         * bits/demangle.h
652         namespace __gnu_cxx::demangler
653         (enum substitution_nt): Removed trailing comma.
654         (implementation_details): Added.
655         (session<Allocator>::M_implementation_details): Added.
656         (session<Allocator>::session): Pass implementation_details.
657         (session<Allocator>::decode_encoding): Same.
658         (session<Allocator>::decode_real): Added.
659         (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
660         _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
661         _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
662         _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
663         implementation_details equivalent.
664         (session<Allocator>::decode_expression):
665         Use M_implementation_details instead of macros. Add extra parentheses
666         around 'larger than' operator in expressions in template arguments.
667         (session<Allocator>::decode_bare_function_type): Idem.
668         (session<Allocator>::decode_literal):
669         Idem, and call decode_real for floating literals.
670         (session<Allocator>::decode_type_with_postfix): Put the postfix
671         of the return type of (member) functions after the function
672         instead of after the return type.  Also, put a space after the
673         prefix of qualified function pointers: "int (* const<space>".
674         * src/demangle.cc: include most dependent header file first.
675         * testsuite/demangle/regression/cw-16.cc: Updated two
676         and added three tests.
677
678 2003-12-04  Benjamin Kosnik  <bkoz@redhat.com>
679
680         PR libstdc++/13284
681         * include/bits/stl_algo.h (__random_number): Remove.
682         (random_shuffle): Use rand, as permitted by DR 395.
683         * include/ext/algorithm: Same.
684         * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
685         * acconfig.h: Same.
686         * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
687         * config.h.in: Regenerated.
688         * configure: Same.
689         * aclocal.m4: Same.
690
691 2003-12-04  Paolo Carlini  <pcarlini@suse.de>
692
693         PR libstdc++/12653
694         * include/std/std_bitset.h (operator>>): Implement resolution
695         of DR 303 [WP]: use widen('0') and widen('1').
696         * docs/html/ext/howto.html: Add an entry for DR 303.
697
698         * include/std/std_bitset.h (operator>>): Implement the common
699         requirements of formatted input functions (27.6.1.2.1).
700
701         * include/std/std_bitset.h (operator>>): Set the failbit when
702         nothing was extracted and _Nb != 0.
703         * testsuite/23_containers/bitset/input/1.cc: New.
704
705 2003-12-03  Paolo Carlini  <pcarlini@suse.de>
706
707         PR libstdc++/12791
708         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
709         Rewrite, stop the parsing as soon as a digit cannot possibly
710         lead to a final number within the bounds; otherwise, simplify,
711         avoiding __ctype.is() and atoi().
712         * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
713         * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
714
715         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
716         Minor tweak: a 4-digit integer cannot be bigger than 9999.
717
718         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
719         type-correct wchar_t string literals.
720         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
721         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
722         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
723         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
724
725 2003-12-02  Paolo Carlini  <pcarlini@suse.de>
726
727         * include/bits/locale_facets.tcc (time_get::do_get_year):
728         Avoid using a basic_string and calling a full blown strtol
729         (via __convert_to_v) for simple 2 or 4 digits, base 10,
730         positive integers; simplify.
731
732 2003-12-02  Paolo Carlini  <pcarlini@suse.de>
733
734         * config/locale/gnu/monetary_members.cc
735         (money_base::_S_construct_pattern): For case 3: and 4:
736         exchanging 'if (__precedes)' and 'if (__space)' allows
737         to factor out a few more assignments.
738
739 2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>
740
741         * include/bits/basic_ios.h (basic_ios::setstate): Revert.
742         * include/bits/istream.tcc: Only call setstate if __err != goodbit.
743         * include/bits/ostream.tcc: Same.
744         * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
745
746         * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
747         internal buffer non-static.
748
749 2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>
750
751         * docs/html/17_intro/C++STYLE: Add exception bits.
752         * include/bits/fstream.tcc: Add location info to exception strings.
753
754         * include/bits/stl_construct.h: Formatting tweaks.
755
756 2003-12-01  Paolo Carlini  <pcarlini@suse.de>
757
758         PR libstdc++/10378
759         * include/bits/allocator.h (allocator::construct): Implement
760         resolution of DR 402 [Ready] (in Revision 28).
761         * include/bits/allocator_traits.h (__allocator::construct):
762         Likewise.
763         * include/bits/stl_construct.h (_Construct): Likewise.
764         * testsuite/20_util/allocator_members.cc: Move to...
765         * testsuite/20_util/allocator/1.cc: ... here.
766         * testsuite/20_util/allocator/10378.cc: New.
767         * docs/html/ext/howto.html: Add an entry for DR 402.
768
769 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
770
771         * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
772         codecvt::do_length): More minor tweaks.
773
774 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
775
776         * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
777         Minor stylistic tweak.
778
779 2003-11-30  Paolo Carlini  <pcarlini@suse.de>
780
781         * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
782         Minor tweaks, consistent with the style used in other facets.
783
784 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
785
786         * include/bits/fstream.tcc (underflow): Minor tweaks in
787         preparation for libstdc++/13217.
788
789 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
790
791         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
792         Tweak for a few small problems (fix timings, use VERIFY..)
793
794 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
795
796         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
797         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
798         the original third testcase for libstdc++/13171 belong here.
799
800 2003-11-28  Paolo Carlini  <pcarlini@suse.de>
801
802         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
803         Remove extraneous wchar_t lines.
804
805 2003-11-27  Paolo Carlini  <pcarlini@suse.de>
806
807         PR libstdc++/11544
808         PR libstdc++/11603
809         * include/bits/fstream.tcc (underflow): Throw ios_base::failure
810         upon incomplete or invalid byte sequences in the file.
811         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
812         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
813         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
814
815 2003-11-27  Paolo Carlini  <pcarlini@suse.de>
816
817         * include/std/std_streambuf.h (__copy_streambufs): Remove
818         the first, unused, basic_ios<> parameter.
819         * src/streambuf-inst.cc: Likewise.
820         * include/bits/streambuf.tcc: Likewise.
821         * include/bits/istream.tcc (operator>>(__streambuf_type*)):
822         Tweak accordingly the call.
823         * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
824         Likewise.
825
826         * include/bits/streambuf.tcc (__copy_streambufs): Remove
827         redundant try/catch.
828
829 2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>
830
831         PR libstdc++/9371
832         PR libstdc++/9546
833         PR libstdc++/10093
834         PR libstdc++/10095
835         * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
836         (basic_ios::_M_setstate): Consolidate common error handling code.
837         * include/bits/basic_ios.tcc: Tweak.
838         * include/bits/fstream.tcc: Tweak.
839         * include/bits/istream.tcc: Use _M_setstate for common exception
840         handling. Move setstate calls after catch.
841         (basic_istream::tellg): Check for exceptions thrown by streambuf
842         virtual functions.
843         (basic_istream::seekg): Same.
844         * include/bits/ostream.tcc: Same, but for ostream.
845         (basic_ostream::flush): Check for exceptions thrown by streambuf
846         virtual functions.
847         (basic_istream::tellp): Same.
848         (basic_istream::seekp): Same.
849         * include/bits/locale_facets.tcc: Tweak.
850         * include/bits/streambuf.tcc: Tweak.
851         (__copy_streambufs): Propagate exceptions.
852         * testsuite/testsuite_io.h (fail_streambuf): New.
853         (fail_num_get): New.
854         (fail_num_put): New.
855         (facet_error): New.
856         (underflow_error): New.
857         (overflow_error): New.
858         (positioning_error): New.
859         * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
860         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
861         exceptions_badbit_throw.cc, exceptions_failbit.cc,
862         exceptions_failbit_throw.cc: New.
863         * testsuite/27_io/basic_istream/extractors_other/char/
864         error_failbit.cc, exceptions_badbit_throw.cc,
865         exceptions_failbit_throw.cc, exceptions_null.cc: New.
866         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
867         New.
868         * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
869         New.
870         * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
871         New.
872         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
873         exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
874         * testsuite/27_io/basic_ostream/inserters_other/char/
875         error_failbit.cc, exceptions_badbit_throw.cc,
876         exceptions_failbit_throw.cc, exceptions_null.cc: New.
877         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
878         New.
879         * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
880         New.
881
882 2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>
883
884         PR libstdc++/12297
885         * include/bits/istream.tcc
886         (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
887         * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
888
889 2003-11-26  Paolo Carlini  <pcarlini@suse.de>
890             Petur Runolfsson  <peturr02@ru.is>
891
892         PR libstdc++/13171
893         * include/bits/fstream.tcc (imbue): Relax the conditions under
894         which the function succeeds: allow for two consecutive calls with
895         the same name; state dependent encodings are ok even after open
896         if at the beginning of the file; don't check seekoff return value
897         (pipes, cin, cout, etc...)
898         * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
899         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
900         * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
901         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
902         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
903         * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
904         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
905         * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
906
907         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
908         correctly use the UTF-8 locale appearing in the PR.
909
910 2003-11-26  Paolo Carlini  <pcarlini@suse.de>
911
912         * include/bits/locale_facets.h
913         (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
914         _M_truename and _M_falsename: the constructor always does
915         it immediately before the _M_cache call.
916
917 2003-11-25  Paolo Carlini  <pcarlini@suse.de>
918
919         * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
920         Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
921         former is very fast, but stops if encounters a NUL.
922         (codecvt::do_out): Tweaks.
923         (codecvt::do_in): Tweaks, improve the code dealing with errors.
924         * testsuite/performance/wchar_t_length.cc: New.
925
926 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
927
928         * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
929         Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
930         former is very fast, but stops if encounters a NUL.
931         (codecvt::do_out): Tweak.
932         * testsuite/performance/wchar_t_in.cc: New.
933
934 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
935
936         * include/bits/locale_facets.h
937         (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
938         in order to avoid memory leaks; simplify a bit.
939
940 2003-11-24  Benjamin Kosnik  <bkoz@redhat.com>
941
942         * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
943         non-standard throw specs.
944         * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
945         * testsuite/24_iterators/istreambuf_iterator/1.cc
946         * testsuite/24_iterators/istreambuf_iterator/2.cc
947         * testsuite/24_iterators/istreambuf_iterator/2627.cc
948         * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
949         * testsuite/24_iterators/ostreambuf_iterator/1.cc
950         * testsuite/24_iterators/ostreambuf_iterator/2.cc
951
952         * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
953         don't link.
954
955         * include/bits/allocator.h: Formatting tweak.
956
957 2003-11-24  Paolo Carlini  <pcarlini@suse.de>
958
959         * src/locale_init.cc: Cosmetic reformatting.
960
961 2003-11-23  Paolo Carlini  <pcarlini@suse.de>
962
963         * include/bits/locale_facets.tcc (__add_grouping):
964         Cosmetic reformatting.
965
966 2003-11-23  Paolo Carlini  <pcarlini@suse.de>
967
968         * include/bits/locale_facets.tcc (_M_extract_float,
969         _M_extract_int): Remove a wrong comment and simplify
970         the corresponding code using char_traits::find().
971
972 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
973
974         * config/locale/gnu/monetary_members.cc
975         (money_base::_S_construct_pattern): Factor out two assignments.
976
977 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
978
979         * include/bits/istream.tcc (getline(basic_string<>&)):
980         Fix error in comment of the previous commit.
981
982 2003-11-22  Paolo Carlini  <pcarlini@suse.de>
983
984         PR libstdc++/12593
985         * include/bits/istream.tcc (operator>>(basic_string<>&),
986         getline(basic_string<>&)): Implement resolution of DR 91 [WP];
987         fix some minor issues with the exit conditions.
988         * docs/html/ext/howto.html: Add an entry for DR 91.
989
990 2003-11-21  Paolo Carlini  <pcarlini@suse.de>
991
992         * config/locale/gnu/monetary_members.cc
993         (money_base::_S_construct_pattern): Factor out an assignment.
994
995 2003-11-21  Paolo Carlini  <pcarlini@suse.de>
996
997         PR libstdc++/12882 (partial)
998         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
999         and ftello64 too.
1000         * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
1001         and ftello64 if available.
1002         * aclocal.m4: Regenerate.
1003         * configure: Ditto.
1004
1005 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
1006
1007         * include/debug/formatter.h: Use _Tp as template argument.
1008         * src/debug.cc: Same, instantiate std::size_t.
1009
1010 2003-11-20  Benjamin Kosnik  <bkoz@redhat.com>
1011
1012         PR libstdc++/13109
1013         * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
1014         * src/debug.cc (__gnu_debug): Format.
1015         (_Error_formatter::_M_format_word): Define, use, instantiate.
1016
1017 2003-11-20  Paolo Carlini  <pcarlini@suse.de>
1018
1019         PR libstdc++/11602
1020         * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
1021         Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
1022         former is very fast, but stops if encounters a NUL.
1023         * testsuite/performance/wchar_t_out.cc: New, from the PR.
1024
1025 2003-11-19  Paolo Carlini  <pcarlini@suse.de>
1026
1027         * config/locale/gnu/codecvt_members.cc (do_out): If
1028         we can upper bound the total number of external chars
1029         to something smaller than __to_end - __to, avoid the
1030         temporary buffer, the memcopy and simplify the loop.
1031         * config/locale/generic/codecvt_members.cc (do_out):
1032         Likewise.
1033
1034 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
1035
1036         * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
1037         * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
1038         flag.
1039
1040 2003-11-18  Jonathan Wakely  <redi@gcc.gnu.org>
1041
1042         * docs/html/configopts.html, docs/html/debug.html,
1043         docs/html/documentation.html, docs/html/explanations.html,
1044         docs/html/install.html, docs/html/17_intro/contribute.html,
1045         docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
1046         docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
1047         docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
1048         docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
1049         docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
1050         docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
1051         docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
1052         docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
1053         docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
1054
1055 2003-11-18  Paolo Carlini  <pcarlini@suse.de>
1056
1057         PR libstdc++/12868
1058         * include/bits/fstream.tcc (imbue): For encodings != -1 it's
1059         always ok to imbue a new locale, provided seekoff(0, cur, ...)
1060         doesn't fail, of course.
1061         (underflow): In order for the above to work, deal gracefully
1062         with _M_codecvt->in returning codecvt_base::error while
1063         (__ilen = __iend - this->eback()) > 0: it just means __ilen
1064         correctly converted internal characters before an error.
1065         * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
1066
1067 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
1068
1069         * include/bits/locale_facets.tcc: Fix typo in comment.
1070
1071 2003-11-17  Paolo Carlini  <pcarlini@suse.de>
1072
1073         * testsuite/22_locale/num_put/put/char/8.cc: New test,
1074         summarizing the discussion ensuing libstdc++/12988.
1075         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
1076
1077 2003-11-15  Paolo Carlini  <pcarlini@suse.de>
1078
1079         * include/std/std_fstream.h: Tweak a comment.
1080
1081 2003-11-15  Roger Sayle  <roger@eyesopen.com>
1082
1083         * include/c_std/std_cmath.h: Don't import C99's float transcendentals
1084         into the __gnu_cxx::__c99_binding namespace.
1085         (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
1086         ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
1087         GCC's math builtins, i.e. __builtin_foo.
1088         * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
1089         ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
1090         ldexpf, ldexpl, modff, modfl): Provide stub implementations.
1091
1092 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
1093
1094         * testsuite/22_locale/locale/cons/12352.cc: Use
1095         __gnu_test::try_named_locale.
1096
1097 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
1098
1099         * docs/html/ext/howto.html: Add entries for DR 63, 75
1100         and 305; tweak entries for DR 60 and 328.
1101
1102 2003-11-13  Douglas Gregor  <gregod@cs.rpi.edu>
1103
1104         * docs/html/debug.html: Users are allowed to specialize in
1105         namespace __gnu_debug, unlike in the Apple version of the debug
1106         mode. Clear up a confusing double-negative. Note that
1107         std::basic_string does provide extra debugging capabilities, but
1108         not safe iterators.
1109         * include/bits/basic_string.tcc: Make sure there's never an
1110         ambiguity when calling __is_null_pointer.
1111         * include/debug/deque: (deque::erase) Properly handle invalidation
1112         when erasing at the end of the deque.
1113         * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
1114         (vector::clear): Set the guaranteed capacity to 0.
1115         * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
1116         iterator invalidation when erasing at the end of the deque.
1117
1118 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
1119             Petur Runolfsson  <peturr02@ru.is>
1120
1121         PR libstdc++/13007
1122         * include/bits/fstream.tcc (imbue): Don't touch the stored
1123         locale.
1124         * include/std/std_streambuf.h (imbue): According to the
1125         standard, base class version does nothing.
1126         (pubimbue): Store the locale.
1127         * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
1128         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
1129         * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
1130         * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
1131         * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
1132         * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
1133         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
1134         * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
1135
1136 2003-11-13  Petur Runolfsson  <peturr02@ru.is>
1137
1138         PR libstdc++/12594
1139         * include/bits/ostream.tcc
1140         (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
1141         basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
1142         basic_ostream::operator<<(ios_base& (*)(ios_base&))):
1143         Implement the resolution of DR 60 (TC): These are not formatted
1144         output functions so don't construct sentry objects and don't
1145         catch exceptions.
1146         (basic_ostream::put, basic_ostream::write): Implement the
1147         resolution of DR 63 (TC) by catching exceptions and setting
1148         badbit.
1149         (basic_ostream::flush): Implement the resolution of DR 60 (TC):
1150         This is not an unformatted output function so don't construct
1151         a sentry object.
1152         * testsuite/testsuite_io.h (sync_streambuf): Define.
1153         * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
1154         * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
1155         * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
1156         * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
1157
1158 2003-11-13  Paolo Carlini  <pcarlini@suse.de>
1159
1160         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
1161         Fix, closely following the testcase included in the PR.
1162         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
1163         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
1164         * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
1165
1166 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
1167
1168         * docs/html/17_intro/configury.html: XHTML tweak.
1169
1170 2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>
1171
1172         * docs/html/debug_mode.html: XHTML fixes.
1173
1174 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
1175
1176         * docs/html/debug_mode.html: Update.
1177         * docs/html/17_intro/TODO: Update.
1178
1179 2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>
1180
1181         * include/bits/c++config: Move using directive...
1182         * include/debug/formatter.h: ...here.
1183
1184 2003-11-12  Carlo Wood  <carlo@alinoe.com>
1185
1186         PR libstdc++/12947
1187         * bits/demangle.h
1188         (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
1189         (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
1190         (session<Allocator>::next_peek() const): Added.
1191         (decode_non_negative_decimal_integer(string_type&)):
1192         Renamed from decode_decimal_integer(string_type&).
1193         (session<Allocator>::decode_nested_name):
1194         Decode <template_param> as well.
1195         (session<Allocator>::add_substitution):
1196         Handle <template-param> for <nested-name>'s.
1197         (enum xary_nt): Added.
1198         (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
1199         (symbol_name_table_c): Updated for `entry_st::type' and additional
1200         operators (unary `operator+' and `sizeof(type)').
1201         (offset_table_c): Updated for new operators (causing a new hash map).
1202         (decode_operator_name): Match the updated hash map.
1203         (session<Allocator>::decode_expression):
1204         Support for `sizeof ([typename] type)' (st),
1205         dependent names (sr) and casting operator (cv).  Handle
1206         `entry_st::type'.  Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
1207         and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
1208         (session<Allocator>::decode_type_with_postfix):
1209         Support `extern "C"' function types (FY).
1210         * testsuite/demangle/regression/cw-16.cc: Added tests for the
1211         added functionality.
1212         * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
1213         appended.
1214
1215 2003-11-11  Paolo Carlini  <pcarlini@suse.de>
1216
1217         PR libstdc++/12875
1218         * include/bits/fstream.tcc (setbuf): Don't do anything
1219         after open(), in particular don't discard data.
1220         (_M_allocate_internal_buffer): Tweak to not allocate memory
1221         in case the buffer is provided by the user via setbuf.
1222         * include/ext/stdio_filebuf.h: Tweak comment.
1223         * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
1224         * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
1225         * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
1226         setbuf does nothing after open().
1227         * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
1228
1229 2003-11-11  Doug Gregor  <gregod@cs.rpi.edu>
1230
1231         * docs/html/debug.html: Document libstdc++ debug mode.
1232         * docs/html/debug_mode.html: Document libstdc++ debug mode design.
1233         * docs/html/test.html: Document how to test under debug mode.
1234         * docs/html/17_intro/howto.html: Document debug-mode macros.
1235         * include/Makefile.am: Install debug-mode headers.
1236         * src/Makefile.am: Include debug.cc.
1237         * include/bits/basic_string.tcc:
1238         (basic_string::_S_construct): Fix NULL pointer check.
1239         (__is_null_pointer): New.
1240         Add precondition annotations.
1241         * include/bits/stream_iterator.h (istream_iterator,
1242         ostream_iterator): Added precondition annotations.
1243         * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
1244         * include/bits/stl_queue.h (queue, priority_queue): Ditto.
1245         * include/bits/stl_stack.h (stack): Ditto.
1246         * include/bits/basic_string.h (basic_string): Ditto.
1247         * include/bits/basic_string.tcc (basic_string): Ditto.
1248         * include/std/std_memory.h (auto_ptr): Ditto.
1249         * include/std/std_valarray.h (valarray): Ditto.
1250         * include/bits/stl_algo.h: Added algorithm precondition
1251         annotations.
1252         * include/bits/stl_algobase.h: Added algorithm precondition
1253         annotations.
1254         * include/bits/stl_numeric.h: Ditto.
1255         * include/ext/algorithm: Added algorithm precondition
1256         annotations.
1257         (__is_heap): Moved away from here.
1258         * include/bits/stl_heap.h: Added algorithm precondition
1259         annotations.
1260         (__is_heap): Moved to the top of this file.
1261         (__is_heap): Added iterator range overloads.
1262         * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
1263         with changes in std_memory.h.
1264         * testsuite/23_containers/list/operators/4.cc: Don't verify
1265         performance guarantees when in debug mode.
1266         * testsuite/23_containers/bitset/invalidation/1.cc: New.
1267         * testsuite/23_containers/deque/invalidation/1.cc: New.
1268         * testsuite/23_containers/deque/invalidation/2.cc: New.
1269         * testsuite/23_containers/deque/invalidation/3.cc: New.
1270         * testsuite/23_containers/deque/invalidation/4.cc: New.
1271         * testsuite/23_containers/list/invalidation/1.cc: New.
1272         * testsuite/23_containers/list/invalidation/2.cc: New.
1273         * testsuite/23_containers/list/invalidation/3.cc: New.
1274         * testsuite/23_containers/list/invalidation/4.cc: New.
1275         * testsuite/23_containers/map/invalidation/1.cc: New.
1276         * testsuite/23_containers/map/invalidation/2.cc: New.
1277         * testsuite/23_containers/multimap/invalidation/1.cc: New.
1278         * testsuite/23_containers/multimap/invalidation/2.cc: New.
1279         * testsuite/23_containers/multiset/invalidation/1.cc: New.
1280         * testsuite/23_containers/multiset/invalidation/2.cc: New.
1281         * testsuite/23_containers/set/invalidation/1.cc: New.
1282         * testsuite/23_containers/set/invalidation/2.cc: New.
1283         * testsuite/23_containers/vector/invalidation/1.cc: New.
1284         * testsuite/23_containers/vector/invalidation/2.cc: New.
1285         * testsuite/23_containers/vector/invalidation/3.cc: New.
1286         * testsuite/23_containers/vector/invalidation/4.cc: New.
1287         * testsuite/25_algorithms/heap.cc: Don't verify
1288         performance guarantees when in debug mode.
1289         * include/debug/bitset: New.
1290         * include/debug/debug.h: New.
1291         * include/debug/deque: New.
1292         * include/debug/formatter.h: New.
1293         * include/debug/hash_map: New.
1294         * include/debug/hash_map.h: New.
1295         * include/debug/hash_multimap.h: New.
1296         * include/debug/hash_set: New.
1297         * include/debug/hash_set.h: New.
1298         * include/debug/hash_multiset.h: New.
1299         * include/debug/list: New.
1300         * include/debug/map: New.
1301         * include/debug/map.h: New.
1302         * include/debug/multimap.h: New.
1303         * include/debug/multiset.h: New.
1304         * include/debug/safe_base.h: New.
1305         * include/debug/safe_iterator.h: New.
1306         * include/debug/safe_iterator.tcc: New.
1307         * include/debug/safe_sequence.h: New.
1308         * include/debug/set: New.
1309         * include/debug/set.h: New.
1310         * include/debug/string: New.
1311         * include/debug/vector: New.
1312         * src/debug.cc: New.
1313         * config/linker-map.gnu: Add debug mode symbols.
1314
1315 2003-11-11  Benjamin Kosnik  <bkoz@redhat.com>
1316
1317         * src/string-inst.cc: Tweak namespaces.
1318         * src/misc-inst.cc: Same.
1319         * docs/html/debug.html: Edits.
1320         * config/link-map.gnu: Remove cruft.
1321
1322         * include/bits/c++config: Add in namespace associations.
1323         * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
1324         comment tweaks.
1325         * include/bits/deque.tcc: Same.
1326         * include/bits/list.tcc: Same.
1327         * include/bits/stl_bvector.h: Same.
1328         * include/bits/stl_deque.h: Same.
1329         * include/bits/stl_list.h: Same.
1330         * include/bits/stl_map.h: Same.
1331         * include/bits/stl_multimap.h: Same.
1332         * include/bits/stl_multiset.h: Same.
1333         * include/bits/stl_set.h: Same.
1334         * include/bits/stl_vector.h: Same.
1335         * include/bits/vector.tcc: Same.
1336
1337         * include/std/std_algorithm.h: Remove markup comments.
1338         * include/std/std_functional.h: Same.
1339         * include/std/std_iterator.h: Same.
1340         * include/std/std_numeric.h: Same.
1341         * include/std/std_utility.h: Same.
1342         * include/bits/stl_queue.h: Formatting tweaks.
1343         * include/bits/stl_stack.h: Same.
1344         * include/std/std_deque.h: Include debugging version in debug mode.
1345         * include/std/std_list.h: Same.
1346         * include/std/std_map.h: Same.
1347         * include/std/std_set.h: Same.
1348         * include/std/std_vector.h: Same.
1349         * include/std/std_queue.h: Use deque, vector.
1350         * include/std/std_stack.h: Same.
1351
1352 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
1353
1354         * include/bits/locale_facets.tcc (_M_insert_int,
1355         _M_insert_float): Move a couple of vars inside an if block.
1356
1357 2003-11-09  Paolo Carlini  <pcarlini@suse.de>
1358
1359         PR libstdc++/12971
1360         * include/bits/locale_facets.tcc
1361         (money_put::do_put(..., long double)): Fix conversion
1362         specification as per DR 328 [WP].
1363         * testsuite/22_locale/money_put/put/char/12971.cc: Add.
1364         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
1365         * docs/html/ext/howto.html: Add entry for DR 328.
1366
1367 2003-11-08  Paolo Carlini  <pcarlini@suse.de>
1368
1369         PR libstdc++/12967
1370         * include/bits/list.tcc (merge): Implement resolution of
1371         DR 300 [WP].
1372         * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
1373         for DR 231.
1374
1375         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1376         Import R27.
1377
1378 2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>
1379
1380         * libsupc++/vec.cc: Conform to C++STYLE.
1381
1382 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1383
1384         PR libstdc++/12736
1385         * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
1386         (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
1387         K, V, r and A qualifiers before processing them as a group.
1388         * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
1389         * testsuite/demangle/regression/cw-16.cc: New.
1390
1391 2003-11-07  Robert Millan  <robertmh@gnu.org>
1392
1393         * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
1394         * crossconfig.m4: Likewise.
1395         * configure: Regenerate.
1396
1397 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1398
1399         * include/bits/demangle.h
1400         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1401         string_type&, bool member_function_pointer_qualifiers):
1402         Always separate the '[' of an array type with a space from
1403         what is left of it, except when that is the closing bracket
1404         of another array dimension.
1405
1406 2003-11-07  Carlo Wood  <carlo@alinoe.com>
1407
1408         * include/bits/demangle.h
1409         (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1410         string_type&, bool) const): Made const.
1411         (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
1412         (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
1413         std::ostream& operator<<(std::ostream&, qualifier const&),
1414         std::ostream& operator<<(std::ostream&, qualifier_list const&),
1415         qualifier_list<Allocator>::decode_qualifiers(string_type&,
1416         string_type&, bool) const,
1417         session<Allocator>::decode_type_with_postfix(string_type&,
1418         string_type&, qualifier_list<Allocator>*))
1419         Added and/or changed debug-only hooks and code.
1420
1421 2003-11-04  Jeffrey D. Oldham  <oldham@codesourcery.com>
1422
1423         * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
1424         immediately return.  This reflects a C++ ABI change 2003 Nov 03.
1425         (__cxa_vec_delete3): Likewise.
1426
1427 2003-11-03  Petur Runolfsson  <peturr02@ru.is>
1428
1429         PR libstdc++/12790
1430         * include/bits/fstream.tcc: Delete _M_last_overflowed.
1431         (basic_filebuf::basic_filebuf): Initialize _M_state_last.
1432         (basic_filebuf::open, basic_filebuf::close): Assign
1433         _M_state_beg to _M_state_cur and _M_state_last.
1434         (basic_filebuf::close): Call _M_terminate_output to handle
1435         unshift and flushing.
1436         (basic_filebuf::underflow): Assign _M_state_last, throw
1437         exception instead of calling abort when codecvt::max_length()
1438         is bad.
1439         (basic_filebuf::seekoff): Use _M_state_last when calling
1440         codecvt::length(), pass correct state to _M_seek.
1441         (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
1442         (basic_filebuf::_M_seek): Add __state_type parameter,
1443         set _M_state_cur correctly, store the resulting state in
1444         the return value and use _M_terminate_output to handle
1445         flushing and unshift.
1446         (basic_filebuf::_M_terminate_output): Flush contents of
1447         output buffer, if any, then call codecvt::unshift as
1448         needed and output the result.
1449         (basic_filebuf::sync): Move here, don't modify _M_writing
1450         or _M_reading.
1451
1452         * include/std/std_fstream.h
1453         (basic_filebuf::_M_state_last): Declare it.
1454         (basic_filebuf::_M_last_overflowed): Delete.
1455         (basic_filebuf::_M_seek): Add __state_type parameter.
1456         (basic_filebuf::sync): Declare only.
1457         (basic_filebuf::_M_output_unshift): Delete.
1458         (basic_filebuf::_M_terminate_output): Declare it.
1459
1460         * testsuite/testsuite_character.h:
1461         Define character class and state class plus char_traits and
1462         codecvt specializations for same for testing support for
1463         stateful encodings.
1464
1465         * testsuite/27_io/basic_filebuf/close/12790-1.cc,
1466         * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
1467         * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
1468         * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
1469         * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
1470         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
1471         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
1472         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
1473         * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
1474         * testsuite/27_io/basic_filebuf/open/12790-1.cc,
1475         * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
1476         * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
1477         * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
1478         * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
1479         * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
1480         * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
1481         * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
1482         * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
1483         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
1484         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
1485         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
1486         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
1487         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
1488         * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
1489         * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
1490         * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
1491         * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
1492         * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
1493         * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
1494         * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
1495         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
1496         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
1497         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
1498         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
1499         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
1500         * testsuite/27_io/basic_filebuf/sync/char/1.cc,
1501         * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
1502         New tests.
1503
1504         * testsuite/27_io/basic_filebuf/3.cc,
1505         * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
1506         * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
1507         * testsuite/27_io/basic_fstream/3.cc,
1508         * testsuite/27_io/basic_ifstream/3.cc,
1509         * testsuite/27_io/basic_ofstream/3.cc:
1510         Use streamoff as off_type and fpos<state_type> as pos_type.
1511
1512         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
1513         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
1514         Check that sync does *not* set _M_writing to false.
1515
1516 2003-11-03  Anthony Green  <green@redhat.com>
1517
1518         * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
1519         they're used.
1520
1521 2003-11-03  Benjamin Kosnik  <bkoz@redhat.com>
1522
1523         * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1524         ctype argument.
1525         * include/bits/locale_facets.tcc: Same, use it to allow
1526         capitalized names.
1527
1528         * include/bits/fstream.tcc: Spacing tweak.
1529         * include/bits/istream.tcc: Same.
1530         * include/bits/ostream.tcc: Same.
1531
1532 2003-10-30  Paolo Carlini  <pcarlini@suse.de>
1533
1534         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1535         __mod is only assigned, never used its value, remove it.
1536
1537 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1538
1539         * include/bits/locale_facets.tcc (time_get::do_get_year):
1540         Absolutely avoid dereferencing end iterators.
1541         (time_put::put): Minor clean up.
1542
1543         * include/bits/locale_facets.tcc: Cosmetic reformattings.
1544
1545 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1546
1547         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1548         Revert the last commit, is not correct, sorry.
1549
1550 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1551
1552         * config/locale/generic/c_locale.cc: Add back <cmath> and
1553         <cstdlib>.
1554
1555         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1556         Clean up.
1557
1558 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1559
1560         * include/bits/locale_facets.tcc (time_put::put): Absolutely
1561         avoid dereferencing end iterators; clean up.
1562
1563         * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1564         num_get::_M_extract_int): Minor tweak.
1565
1566 2003-10-29  Paolo Carlini  <pcarlini@suse.de>
1567
1568         * include/bits/locale_facets.tcc: Remove some unnecessary
1569         includes.
1570         * config/locale/generic/c_locale.cc: Include <cerrno> here.
1571         * config/locale/gnu/c_locale.cc: Likewise.
1572
1573 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
1574
1575         * include/bits/locale_facets.tcc
1576         (money_get<>::do_get(..., string_type&)): Absolutely avoid
1577         dereferencing end iterators; general clean up.
1578
1579 2003-10-28  Paolo Carlini  <pcarlini@suse.de>
1580
1581         * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1582         Absolutely avoid dereferencing end iterators.
1583         (time_get::_M_extract_name): Likewise.
1584
1585         * include/bits/locale_facets.tcc
1586         (time_get::_M_extract_via_format, case 'e'): Don't try to
1587         be smart wrt returning the right __beg in case of parse
1588         error, time_get::_M_extract_num must be fixed instead.
1589
1590 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1591
1592         PR libstdc++/12778
1593         * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1594         * aclocal.m4: Regenerate.
1595         * configure: Regenerate.
1596
1597 2003-10-27  Benjamin Kosnik  <bkoz@redhat.com>
1598
1599         * docs/html/17_intro/TODO: Add links.
1600         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1601         Uncomment.
1602
1603 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1604
1605         PR libstdc++/12750
1606         * include/bits/locale_facets.tcc
1607         (time_get::_M_extract_via_format): Deal with code 'e'.
1608         * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1609         * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1610
1611         * include/bits/locale_facets.tcc
1612         (time_get::_M_extract_via_format): Tweak to absolutely avoid
1613         dereferencing end iterators.
1614
1615         * include/bits/locale_facets.h (__verify_grouping):
1616         Const-ify second parameter.
1617         * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1618         * src/locale-inst.cc (__verify_grouping): Ditto.
1619
1620 2003-10-27  Paolo Carlini  <pcarlini@suse.de>
1621
1622         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1623         Various things: 1- Avoid absolutely end iterator dereferences;
1624         2- Improve performance-wise the code skipping leading zeros;
1625         3- Fix two bugs wrt early bail out in case of parsing errors
1626         (see testcases); 4- General clean up.
1627         (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1628         use __builtin_expect to favor base 10 inputs.
1629         * testsuite/22_locale/num_get/get/char/7.cc: New.
1630         * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1631
1632 2003-10-26  Paolo Carlini  <pcarlini@suse.de>
1633
1634         * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1635         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1636
1637 2003-10-25  Paolo Carlini  <pcarlini@suse.de>
1638
1639         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1640         __pos in only incremented, never used its value, remove it.
1641
1642 2003-10-24  Robert Millan  <robertmh@gnu.org>
1643
1644         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1645         and knetbsd*-gnu.
1646         * aclocal.m4:  Regenerated.
1647         * configure:  Regenerated.
1648
1649 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1650
1651         * include/bits/locale_facets.tcc (money_get::do_get(...,
1652         long double&): Properly size the temporary buffer.
1653         * testsuite/22_locale/money_get/get/char/11.cc: New.
1654         * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1655
1656         * include/bits/locale_facets.tcc (num_put::_M_group_int,
1657         num_put::_M_group_float, money_put::do_put(..., const
1658         string_type&), collate::do_compare, collate::do_transform):
1659         Prefer basic_string::data() to c_str() when the '\0'
1660         terminator is not really needed.
1661
1662 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1663
1664         * include/bits/locale_facets.tcc (__verify_grouping):
1665         Prefer '=' to an unnecessary '&='.
1666
1667 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1668
1669         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1670         Tweak my fix for libstdc++/12657.
1671
1672 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1673
1674         * include/bits/locale_facets.tcc (money_get::do_get(...,
1675         string_type&): Minor tweak to the previous commit.
1676
1677 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1678
1679         * include/bits/locale_facets.tcc (money_get::do_get(...,
1680         string_type&): Disregard the previous commit: doesn't hurt but
1681         doesn't accomplish anything useful either. This is the right
1682         one, speeding up greatly the function in case of early fail.
1683
1684 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1685
1686         * include/bits/locale_facets.tcc (money_get::do_get(...,
1687         string_type&): Move an if block, thus minimizing the amount
1688         of code processed anyway when __tmp_units.size() == 0.
1689
1690 2003-10-24  Paolo Carlini  <pcarlini@suse.de>
1691
1692         * include/bits/locale_facets.tcc
1693         (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1694         equivalent to 'y'.
1695
1696 2003-10-23  Benjamin Kosnik  <bkoz@redhat.com>
1697
1698         * docs/html/documentation.html: Add a pointer to the doxygen style
1699         guide.
1700         * docs/html/17_intro/TODO: Update.
1701         * docs/html/test.html: Add instructions for running a subset of
1702         tests, update.
1703
1704 2003-10-23  Paolo Carlini  <pcarlini@suse.de>
1705
1706         * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1707         string_type&)): Use find_first_not_of to strip leading
1708         zeros; if __tmp_units == "0" never prefix it with '-';
1709         always fail if __tmp_units is empty.
1710         * testsuite/22_locale/money_get/get/char/10.cc: New.
1711         * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1712
1713 2003-10-23  Phil Edwards  <phil@codesourcery.com>
1714
1715         * config/os/vxworks/ctype_noninline.h:  Adjust ctor to match
1716         2003-10-21 change.
1717
1718 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1719
1720         * include/bits/locale_facets.tcc (__int_to_char): Remove
1721         the const int parameter.
1722         (_M_insert_int): Update caller.
1723         * src/locale-inst.cc (__int_to_char): Update instantiations.
1724
1725 2003-10-22  Benjamin Kosnik  <bkoz@redhat.com>
1726
1727         * include/bits/locale_facets.h: Correct byname facets for "C"
1728         locale.
1729         * config/locale/generic/ctype_members.cc: Same.
1730         * config/locale/generic/messages_members.h: Same.
1731         * config/locale/gnu/ctype_members.cc: Same.
1732         * config/locale/gnu/messages_members.h: Same.
1733         * include/bits/codecvt.h: Same.
1734         * src/ctype.cc: Same.
1735         * testsuite/22_locale/codecvt_byname/1.cc: New.
1736         * testsuite/22_locale/collate/1.cc: Edit.
1737         * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1738         * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1739         * testsuite/22_locale/ctype/1.cc: Derivation tests.
1740         * testsuite/22_locale/ctype/11844.cc: Move...
1741         * testsuite/22_locale/ctype_base/11844.cc: ...here.
1742         * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1743         * testsuite/22_locale/ctype_byname/1.cc: Name.
1744         * testsuite/22_locale/messages_byname/1.cc: New.
1745         * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1746         * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1747         * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1748         * testsuite/22_locale/numpunct/1.cc: Edit.
1749         * testsuite/22_locale/numpunct_byname/2.cc: Move...
1750         * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1751         * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1752         * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1753
1754 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1755
1756         PR libstdc++/8610
1757         * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1758         checking for the availability of int64_t.
1759         (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1760         * configure.ac: Call here.
1761         * acconfig.h: Add undef for the corresponding symbols.
1762         * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1763         Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1764         (__basic_file<char>::seekoff): Likewise, call lseek64 when
1765         available, otherwise lseek, checking the __off parameter.
1766         * include/bits/postypes.h: Typedef __streamoff_base_type
1767         to int64_t if available, otherwise long long.
1768         * aclocal.m4: Regenerate.
1769         * config.h.in: Likewise.
1770         * configure: Likewise.
1771
1772         * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1773         Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1774
1775 2003-10-22  Paolo Carlini  <pcarlini@suse.de>
1776
1777         PR libstdc++/12657
1778         * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1779         Implement resolution of DR 292 (WP).
1780         * docs/html/ext/howto.html: Add entry for DR 292.
1781
1782 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1783
1784         * include/ext/mt_allocator.h: Change include to gthr.h.
1785         * include/ext/rope: Same. Add _Refcount_base definitions.
1786         * include/ext/pool_allocator.h: Adjust namespaces.
1787         * include/bits/stl_threads.h (_Refcount_base): Move.
1788         Put remaining into namespace __gnu_cxx.
1789
1790 2003-10-21  Benjamin Kosnik  <bkoz@redhat.com>
1791
1792         PR libstdc++/9858
1793         * include/bits/locale_facets.h (ctype<char>): Remove
1794         __ctype_abstract_base.
1795         (ctype<char>::do_is): Remove.
1796         (ctype<char>::do_scan_is): Remove.
1797         * src/ctype.cc: Same. Inline the rest.
1798         * testsuite/22_locale/ctype/is/char/9858.cc: New.
1799         * config/os/aix/ctype_noninline.h: Adjust ctor.
1800         * config/os/bsd/freebsd/ctype_noninline.h: Same.
1801         * config/os/bsd/netbsd/ctype_noninline.h: Same.
1802         * config/os/djgpp/ctype_noninline.h: Same.
1803         * config/os/generic/ctype_noninline.h: Same.
1804         * config/os/gnu-linux/ctype_noninline.h: Same.
1805         * config/os/hpux/ctype_noninline.h: Same.
1806         * config/os/irix/irix5.2/ctype_noninline.h: Same.
1807         * config/os/irix/irix6.5/ctype_noninline.h: Same.
1808         * config/os/mingw32/ctype_noninline.h: Same.
1809         * config/os/newlib/ctype_noninline.h: Same.
1810         * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1811         * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1812         * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1813         * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1814         * config/os/windiss/ctype_noninline.h: Same.
1815
1816 2003-10-21  Paolo Carlini  <pcarlini@suse.de>
1817
1818         * src/locale.cc: Tweak a comment.
1819         * src/localename.cc: Move a comment.
1820
1821 2003-10-20  Benjamin Kosnik  <bkoz@redhat.com>
1822
1823         PR libstdc++/10081
1824         * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1825         * testsuite_hooks.cc: Same.
1826         * 22_locale/numpunct/members/pod/1.cc: Edit.
1827         * 22_locale/numpunct/members/pod/2.cc: Same.
1828         * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1829         * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1830         * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1831         * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1832         * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1833         * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1834         * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1835         * 27_io/basic_istream/sentry/pod/1.cc: New.
1836         * 27_io/basic_ostream/sentry/pod/1.cc: New.
1837         * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1838         * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1839
1840 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1841
1842         * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1843         of external _MIPS_SIM_ABI32.
1844
1845 2003-10-20  Phil Edwards  <phil@codesourcery.com>
1846
1847         * configure.ac:  Fix comment typo.
1848         * configure.host:  Add vxworks to host_os switch.
1849         * crossconfig.m4:  Remove old commented os_include_dir variables
1850         left over from autotools transition.
1851         (*-vxworks):  New stanza.
1852         (*-windiss):  Add missing symbols.
1853         * configure:  Regenerate.
1854         * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1855         config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1856         New files.
1857         * config/os/windiss/os_defines.h:  Define __C9X__.
1858
1859 2003-10-19  David Edelsohn  <edelsohn@gnu.org>
1860
1861         PR other/12506
1862         * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1863
1864 2003-10-18  Andreas Tobler  <a.tobler@schweiz.ch>
1865
1866         * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1867         confusion of the use of the gthr API when __gthread_active_p()
1868         returns true.
1869
1870 2003-10-17  Benjamin Kosnik  <bkoz@redhat.com>
1871
1872         * src/Makefile.am: Add new files.
1873         * src/Makefile.in: Regenerate.
1874         * src/globals.cc: Split into..
1875         * src/globals_io.cc: New.
1876         * src/globals_locale.cc: New.
1877         * src/ios.cc: Split into...
1878         * src/ios_init.cc: New.
1879         * src/ios_locale.cc: New.
1880         * src/locale-inst.cc: Split into..
1881         * src/wlocale-inst.cc: New.
1882         * src/locale-misc-inst.cc: New.
1883         * src/locale.cc, src/localename: Split into...
1884         * src/locale_facets.cc: New.
1885         * src/locale_init.cc: New.
1886         * src/wstring-inst.cc: Add copyright info.
1887
1888 2003-10-16  Petur Runolfsson  <peturr02@ru.is>
1889
1890         PR libstdc++/11450
1891         PR libstdc++/11543
1892         PR libstdc++/12065
1893         * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1894         Change return value from streampos to streamoff.
1895         (__basic_file::seekpos): Delete.
1896         * config/io/basic_file_stdio.h: Same.
1897         * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1898         * include/Makefile.am (bits_headers): Add bits/postypes.h.
1899         * include/bits/char_traits.h: Include bits/postypes.h instead of
1900         bits/fpos.h.
1901         * include/bits/fstream.tcc (basic_filebuf::open,
1902         basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1903         values, use == and != instead.
1904         (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1905         to pos_type.
1906         (basic_filebuf::imbue):  Don't use ! on pos_type values, use
1907         == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1908         * include/bits/postypes.h: New file.
1909         Add __streamoff_base_type typedef, streamsize.
1910         (streamoff, streampos, wstreampos): Define typedefs, with
1911         streamoff defined as...
1912         (streamoff): New class. Document implementation defined
1913         aspects.
1914         (fpos): New implementation. Document implementation defined
1915         aspects.
1916         * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1917         explicit conversion from pos_type to off_type.
1918         * include/std/std_iosfwd.h: Include bits/postypes.h instead
1919         of bits/fpos.h.
1920         * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1921         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1922         * testsuite/27_io/fpos/11450.cc: New test.
1923         * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1924         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1925         * testsuite/27_io/types/3.cc: New test.
1926
1927 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1928
1929         * configure.host: Remove fpos_include_dir.
1930         * configure.ac: Remove FPOS_INC_SRCDIR.
1931         * configure: Regenerate.
1932         * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1933         * aclocal.m4: Regenerate.
1934         * include/Makefile.am (host_headers): Remove fpos.h.
1935         (bits_headers): Add postypes.h.
1936         * include/Makefile.in: Regenerate.
1937         * config/os/gnu-linux/fposh: Remove.
1938         * config/os/generic/fpos.h: Remove.
1939
1940         * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1941         * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1942         * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1943         * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1944         * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1945         * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1946         * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1947         * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1948         * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1949         * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1950         * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1951         * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1952         * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1953         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1954         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1955         * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1956         * testsuite/27_io/objects/char/10.cc: Same.
1957
1958 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1959
1960         * src/locale.cc (locale::locale(const char*)): ... one
1961         more comparison missed in the previous commit.
1962
1963 2003-10-16  Benjamin Kosnik  <bkoz@redhat.com>
1964
1965         * acconfig.h: Add HAVE_DRAND48.
1966         * crossconfig.m4: Remove ISATTY.
1967         * aclocal.m4: Regenerated.
1968         * config.h.in: Regenerated.
1969         * configure: Regenerated.
1970
1971 2003-10-16  Bernardo Innocenti  <bernie@develer.com>
1972
1973         * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1974         __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1975         Document SMP safeness of asm macros.
1976
1977 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1978
1979         * src/locale.cc (locale::locale(const char*)): Tweak
1980         a couple of comparisons to use basic_string operators.
1981
1982 2003-10-16  Paolo Carlini  <pcarlini@suse.de>
1983
1984         PR libstdc++/12540
1985         * config/locale/gnu/monetary_members.cc
1986         (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1987         Don't leak memory if new throws.
1988         * src/locale.cc (locale::locale(const char*)): In order not
1989         to leak memory in case new throws, use a basic_string type
1990         for __res too and avoid strdup.
1991
1992 2003-10-14  Jeff Bailey  <jbailey@nisa.net>
1993
1994         PR libstdc++/12562
1995         * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1996         * configure: Regenerate.
1997
1998 2003-10-14  Carlo Wood  <carlo@alinoe.com>
1999
2000         PR libstdc++/12600
2001         * include/bits/demangle.h (session<Allocator>::
2002           decode_unqualified_name(string_type& output)): Fail on a
2003           <operator-name> when decoding <template-argument>.
2004         * testsuite/demangle/regression/cw-15.cc: New.
2005
2006 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
2007
2008         PR libstdc++/11480
2009         * include/bits/stl_algo.h (unique): Fix.
2010         * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
2011         * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
2012         * testsuite/25_algorithms/unique/2.cc: New.
2013
2014 2003-10-14  Paolo Carlini  <pcarlini@unitus.it>
2015
2016         * src/localename.cc (_M_replace_categories, M_replace_facet):
2017         Const-ify a couple of variables.
2018
2019 2003-10-14  Petur Runolfsson  <peturr02@ru.is>
2020             Andreas Tobler  <a.tobler@schweiz.ch>
2021
2022         * src/locale.cc (locale::_S_initialize): Workaround a confusion
2023         of the use of the gthr API when __gthread_active_p() returns true.
2024
2025 2003-10-12  Petur Runolfsson  <peturr02@ru.is>
2026             Paolo Carlini  <pcarlini@unitus.it>
2027
2028         PR libstdc++/11460
2029         * src/strstream.cc (pbackfail): Fix to use to_int_type.
2030         * testsuite/backward/11460.cc: New, from the PR.
2031
2032 2003-10-12  Paolo Carlini  <pcarlini@unitus.it>
2033
2034         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2035         Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
2036         * include/bits/basic_string.tcc: Likewise.
2037         * include/bits/ios_base.h: Likewise.
2038         * include/bits/istream.tcc: Likewise.
2039         * include/bits/locale_facets.tcc: Likewise.
2040         * include/bits/ostream.tcc: Likewise.
2041         * include/bits/stl_function.h: Likewise.
2042         * include/bits/stl_multiset.h: Likewise.
2043         * include/bits/stl_pair.h: Likewise.
2044         * include/bits/stl_set.h: Likewise.
2045         * include/bits/streambuf_iterator.h
2046         * include/std/std_iosfwd.h: Likewise.
2047         * include/std/std_istream.h: Likewise.
2048         * include/std/std_sstream.h: Likewise.
2049         * include/std/std_streambuf.h: Likewise.
2050         * src/ios.cc: Likewise.
2051         * include/bits/c++config:
2052         Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
2053         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
2054         dg-error directive due to removal of a blank line.
2055         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
2056
2057 2003-10-12  Andreas Tobler  <a.tobler@schweiz.ch>
2058             Paolo Carlini  <pcarlini@unitus.it>
2059
2060         PR libstdc++/11844/11740 (cont)
2061         * config/os/generic/ctype_inline.h (ctype<char>::is):
2062         Generically, use a bitmasksize of 15 (instead of 10);
2063         Fix the logic to actually return (M & m) != 0 as per
2064         22.2.1.1.2.
2065
2066 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
2067
2068         * crossconfig.m4 (*-uclinux*): New target.
2069         * configure: Regenerate.
2070
2071 2003-10-10  Paolo Carlini  <pcarlini@unitus.it>
2072
2073         * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
2074         Avoid unnecessarily calling __builtin_alloca and dealing
2075         explicitly with width() smaller than zero.
2076         (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
2077         const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
2078         const char*), operator<<(basic_ostream<char, _Traits>&,
2079         const char*), operator<<(basic_ostream, const basic_string&)):
2080         Likewise.
2081
2082 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
2083
2084         * config/linker-map.gnu: Make more *_type_info bits visible.
2085         Move new/delete bits back into GLIBCXX space.
2086
2087         * include/bits/locale_classes.h: Move _M_id out of line, so that
2088         locale::id::_S_highwater can be removed from the export list.
2089         * src/locale.cc (locale::id::_M_id): Define.
2090
2091 2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>
2092
2093         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
2094         SPARC64.
2095
2096 2003-10-09  Paolo Carlini  <pcarlini@unitus.it>
2097
2098         PR libstdc++/11844
2099         * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
2100         to conform to the requirements of 22.2.1.
2101         * config/os/bsd/freebsd/ctype_base.h: Likewise.
2102         * config/os/djgpp/ctype_base.h: Likewise.
2103         * config/os/generic/ctype_base.h: Likewise.
2104         * config/os/gnu-linux/ctype_base.h: Likewise.
2105         * config/os/hpux/ctype_base.h: Likewise.
2106         * config/os/irix/irix6.5/ctype_base.h: Likewise.
2107         * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
2108         * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
2109         * testsuite/22_locale/ctype/11844.cc: New.
2110
2111         * config/locale/generic/ctype_members.cc (do_is):
2112         Generically, use a bitmasksize of 15 (instead of 10), since
2113         we don't know the numerical encoding of the various categories
2114         in the underlying /usr/include/ctype.h.
2115
2116 2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
2117
2118         * src/string-inst.cc: Prune.
2119         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2120         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2121
2122 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
2123
2124         * src/io-inst.cc: Don't include iostream.
2125         * include/bits/ios_base.h (ios_base::failure): Use string.
2126         * src/Makefile.am: Add ios_failure.cc.
2127         * src/Makefile.in: Regenerate.
2128         * src/ios.cc: Move ios_base::failure definitions to...
2129         * src/ios_failure.cc: ...here. New.
2130
2131 2003-10-09  Petur Runolfsson  <peturr02@ru.is>
2132
2133         PR libstdc++/9874
2134         * include/bits/fstream.tcc (basic_filebuf::seekoff):
2135         Move code needed for both seekoff and seekpos...
2136         (basic_filebuf::_M_seek): ...here. New function.
2137         (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
2138         * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
2139         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
2140
2141         * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
2142
2143 2003-10-08  Paolo Carlini  <pcarlini@unitus.it>
2144
2145         * include/bits/locale_facets.tcc: More minor cosmetic
2146         changes and const-ifications of some variables.
2147
2148 2003-10-07  Paolo Carlini  <pcarlini@unitus.it>
2149
2150         * include/bits/locale_facets.tcc: Minor cosmetic changes
2151         and const-ifications of some variables.
2152
2153         * include/bits/locale_facets.tcc
2154         (money_get::do_get(..., string_type&)): Simplify an if-else.
2155
2156 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
2157
2158         PR libstdc++/11740
2159         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
2160         Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
2161         * config/locale/generic/ctype_members.cc: Same.
2162         * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
2163
2164 2003-10-06  Paolo Carlini  <pcarlini@unitus.it>
2165
2166         * include/bits/locale_facets.tcc (__pad<>::_S_pad):
2167         Improve performance-wise: avoid one traits::copy, avoid
2168         the __builtin_alloca, streamline.
2169
2170 2003-10-05  Paolo Carlini  <pcarlini@unitus.it>
2171
2172         * include/bits/locale_facets.tcc
2173         (num_put::do_put(..., bool)): Prefer ?: to if-else.
2174         (time_get::_M_extract_name): Qualify min with std::.
2175         (__pad<>::_S_pad): Constify two variables; simplify an
2176         if-else statement factoring out some code.
2177
2178         * include/bits/locale_facets.tcc: Minor cosmetic changes.
2179
2180 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2181
2182         * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2183         Constify a couple of variables.
2184         (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
2185         ++__beg to *__beg++.
2186
2187 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2188             Petur Runolfsson  <peturr02@ru.is>
2189
2190         * include/ext/stdio_sync_filebuf.h: Don't include the whole
2191         <fstream>, only <streambuf> and <cstdio>.
2192
2193 2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
2194
2195         PR libstdc++/12206
2196         * include/bits/fstream.tcc (imbue): In case a codecvt facet
2197         is not available, set _M_codecvt = 0.
2198         * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
2199
2200 2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>
2201
2202         PR libstdc++/12451
2203         * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
2204
2205 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2206
2207         * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
2208         * src/locale.cc: Define.
2209         * src/localename.cc: Use it.
2210         * config/locale/generic/time_members.h: Same.
2211         * config/locale/gnu/messages_members.h: Same.
2212         * config/locale/gnu/time_members.h: Same.
2213
2214 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
2215
2216         PR libstdc++/12232
2217         * include/bits/fstream.tcc (seekoff): Ignore the openmode
2218         argument; simplify.
2219         * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
2220         seekpos): Remove the openmode argument.
2221         * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
2222         seekpos): Remove redundant placeholder for the openmode argument.
2223         * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
2224         * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
2225         * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
2226         * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
2227         * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
2228
2229 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2230
2231         * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
2232         (locale::facet::_S_get_c_locale): Same.
2233
2234 2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2235
2236         * config/linker-map.gnu: Export _S_get_c_locale instead of
2237         _S_c_locale object.
2238
2239 2003-10-02  Petur Runolfsson  <peturr02@ru.is>
2240
2241         * config/locale/generic/c_locale.cc
2242         (category_names, locale::_S_categories): Const qualify.
2243         * config/locale/gnu/c_locale.cc: Same.
2244         * config/locale/generic/time_members.h (__timepunct::__timepunct):
2245         Copy string contents before assigning to _M_name_timepunct,
2246         qualify strcpy and strlen with std::.
2247         * config/locale/gnu/time_members.h: Same.
2248         * config/locale/gnu/messages_members.h (messages::messages):
2249         Copy string contents before assigning to _M_name_messages,
2250         qualify strcpy and strlen with std::.
2251         * config/os/gnu-linux/ctype_noninline.h
2252         (ctype<char>::classic_table()): Don't call locale::classic().
2253         * include/bits/locale_classes.h
2254         (locale::_S_categories): Const qualify.
2255         (locale::_S_once, locale::_S_initialize_once,
2256         locale::facet::_S_once, locale::facet::_S_initialize_once,
2257         locale::facet::_S_get_c_locale): Declare.
2258         (locale::_S_initialize): Don't define.
2259         (locale::facet::_S_c_locale): Make private.
2260         (locale::facet::_S_c_name): Same, const qualify.
2261         (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
2262         parameters, add throw() specifier.
2263         * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
2264         messages::_M_name_messages): Const qualify.
2265         * src/locale.cc
2266         (locale::_S_once, locale::facet::_S_once): Define.
2267         (locale::classic): Move initialization code...
2268         (locale::_S_initialize_once): ...here.
2269         (locale::_S_initialize): Call _S_initialize_once through
2270         __gthread_once.
2271         (locale::facet::_S_initialize_once): Initialize _S_c_locale.
2272         (locale::facet::_S_get_c_locale): Call _S_initialize_once through
2273         __gthread_once before returning _S_c_locale.
2274         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
2275         Drop unused parameters, add throw() specifier, don't initialize
2276         locale::facet::_S_c_locale and _S_c_name.
2277
2278         * config/locale/generic/messages_members.h:
2279         Replace _S_c_locale with _S_get_c_locale().
2280         * config/locale/gnu/c_locale.cc: Same.
2281         * config/locale/gnu/messages_members.h: Same.
2282         * config/locale/gnu/numeric_members.cc: Same.
2283         * config/locale/gnu/time_members.cc: Same.
2284         * config/os/gnu-linux/ctype_noninline.h: Same.
2285         * include/bits/locale_facets.h: Same.
2286         * include/bits/locale_facets.tcc: Same.
2287         * src/codecvt.cc: Same.
2288         * src/ctype.cc: Same.
2289
2290 2003-10-02  Carlo Wood  <carlo@alinoe.com>
2291
2292         * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
2293         Decode symbols that start with _GLOBAL_[ID]_ differently: the
2294         trailing part ends with a terminating zero and is not necessarily an
2295         encoding.
2296         * src/demangle.cc (): Same.
2297         * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
2298
2299 2003-10-02  Paolo Carlini  <pcarlini@unitus.it>
2300
2301         * testsuite/22_locale/locale/cons/12438.cc: Use
2302         __gnu_test::try_named_locale("").
2303
2304 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2305
2306         * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
2307         (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
2308         instead of drand48.
2309         * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
2310         * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
2311         HAVE_DRAND48.
2312         * config.h.in, configure: Regenerate.
2313         * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
2314         lrand48 use.
2315
2316 2003-10-01  Nathan Myers  <ncm@cantrip.org>
2317
2318         * include/bits/locale_facets.tcc (time_put::put): Avoid
2319         expensive *__s++, in favor of *__s, ++__s.
2320
2321 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
2322
2323         * include/bits/locale_facets.tcc (time_put::put): Minor
2324         tweak to the previous commit.
2325
2326 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
2327
2328         PR libstdc++/12439
2329         * include/bits/locale_facets.tcc (time_put::put): Deal
2330         with the three issues pointed out by the PR.
2331         * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
2332         * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
2333         * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
2334         * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
2335         * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
2336
2337 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2338
2339         * include/bits/stl_algo.h: Minor cosmetic reformattings.
2340
2341 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2342
2343         * include/bits/stl_algo.h (search_n): Tweak, to spare the
2344         first --__n.
2345
2346 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2347
2348         * testsuite/22_locale/locale/cons/12352.cc: Explicitly
2349         qualify exception name.
2350
2351 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2352
2353         PR libstdc++/12438
2354         * include/bits/locale_facets.tcc (locale::combine): Don't
2355         leak memory if _M_replace_facet throws.
2356         * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
2357
2358         * include/bits/locale_classes.h (locale::locale(const locale&,
2359         _Facet*)): Tweak, use consistently _M_remove_reference.
2360
2361 2003-09-30  Paolo Carlini  <pcarlini@unitus.it>
2362
2363         PR libstdc++/12352 (cont)
2364         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
2365         Don't leak __cloc; don't leak if any of the _M_init_facet(...)
2366         calls fail.
2367         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
2368         (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
2369         !_M_caches, !_M_names.
2370
2371 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2372
2373         * configure.host: Handle Solaris 2.5 micro releases explicitly.
2374         Remove wildcards from Solaris 2.6, 7-9: there were no
2375         micro releases.
2376         Treat Solaris 10 and up like 7-9.
2377
2378 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2379
2380         * include/bits/stl_algo.h (search_n): Improve the previous
2381         fix as suggested by Martin.
2382
2383 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2384
2385         PR libstdc++/12296
2386         * include/bits/istream.tcc (peek): Set eofbit if sgetc
2387         returns eof.
2388         * testsuite/27_io/basic_istream/peek/char/12296.cc:
2389         New, from the PR.
2390
2391 2003-09-29  Nathan Myers  <ncm@cantrip.org>
2392             Paolo Carlini  <pcarlini@unitus.it>
2393
2394         PR libstdc++/11400
2395         * include/bits/stl_algo.h (search_n):
2396         Use iterator_traits<>::difference_type for __n.
2397         * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
2398
2399 2003-09-29  Paolo Carlini  <pcarlini@unitus.it>
2400
2401         * testsuite/22_locale/locale/cons/12352.cc:
2402         Use __attribute__((unused)) for test.
2403
2404 2003-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2405
2406         * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
2407         "Son" or "So" as abbreviated name for Sunday in de_DE locale.
2408         * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
2409
2410 2003-09-26  Brad Spencer  <spencer@infointeractive.com>
2411
2412         * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
2413         Explicitly qualify exceptions.
2414         * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
2415         * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2416         * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2417         * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2418
2419 2003-09-25  Paolo Carlini  <pcarlini@unitus.it>
2420
2421         PR libstdc++/12352
2422         * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
2423         size_t)): Don't leak if memory allocations for _M_facets,
2424         _M_caches, and _M_names fail.
2425         (locale::_Impl::_Impl(const char*, size_t)): Ditto.
2426         (locale::_Impl::_M_replace_categories(const _Impl*,
2427         category)): Ditto.
2428         (locale::_Impl::_M_install_facet(const locale::id*,
2429         const facet*)): Ditto.
2430         * include/bits/locale_classes.h (locale::locale(const locale&,
2431         _Facet*)): Don't leak memory.
2432         * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
2433
2434         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
2435         bool)): Qualify with std:: strcpy, tweak.
2436         * include/bits/locale_classes.h
2437         (locale::_Impl::_M_check_same_name): Qualify strcmp.
2438
2439 2003-09-25  Brad Spencer  <spencer@infointeractive.com>
2440
2441         PR libstdc++/6072
2442         * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
2443         wcstof, iswblank.
2444         * aclocal.m4: Regenerate.
2445         * config.h.in: Regenerate.
2446         * configure: Regenerate.
2447         * crossconfig.m4: Add in wchar_t bits for solaris crosses.
2448         * config/io/basic_file_stdio.cc: Guard unistd.h.
2449         * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
2450         * include/c_std/std_cwchar.h: Same.
2451         * include/c_std/std_cwctype.h: Same.
2452
2453 2003-09-25  Benjamin Kosnik  <bkoz@redhat.com>
2454
2455         PR libstdc++/11065
2456         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
2457         * config/locale/generic/ctype_members.cc: Same.
2458         * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
2459         * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
2460
2461         * config/os/generic/ctype_inline.h: Update.
2462
2463 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2464
2465         * src/Makefile.am (version_dep): New variable.
2466         (libstdc___la_DEPENDENCIES): Use it to add dependency on
2467         libstdc++-symbol.ver only when using symbol versioning.
2468         * src/Makefile.in: Regenerate.
2469
2470 2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>
2471
2472         * include/bits/locale_facets.tcc: Tweak to avoid warnings.
2473         * testsuite/testsuite_hooks.h: Same.
2474         * testsuite/*/*.cc: Same.
2475
2476 2003-09-22  Petur Runolfsson  <peturr02@ru.is>
2477
2478         * include/bits/istream.tcc (basic_istream::read,
2479         basic_istream::readsome, basic_istream::putback,
2480         basic_istream::unget, operator>>(basic_istream, CharT)):
2481         Avoid redundant setstate(failbit) calls when sentry::operator bool()
2482         returns false.
2483
2484 2003-09-22  Carlo Wood  <carlo@alinoe.com>
2485
2486         PR libstdc++/12365
2487         * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
2488         char const*, int, int)):  Remove unused identifier
2489         cv_qualifier for overloaded constructor.
2490
2491 2003-09-18  Benjamin Kosnik  <bkoz@redhat.com>
2492
2493         PR libstdc++/11504
2494         * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
2495         WARN_FLAGS, remove -Wno-format.
2496         * aclocal.m4: Regenerate.
2497         * configure: Regenerate.
2498
2499 2003-09-18  Petur Runolfsson  <peturr02@ru.is>
2500
2501         * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
2502         * config/io/basic_file_stdio.h: Same.
2503         * include/std/std_fstream.h (__ctype_type): Delete.
2504         * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
2505
2506 2003-09-17  Benjamin Kosnik  <bkoz@redhat.com>
2507
2508         PR libstdc++/12239
2509         * configure.host (abi_baseline_pair): Error out on solaris2
2510         configurations without a minor version number.
2511
2512 2003-09-13  Phil Edwards  <phil@codesourcery.com>
2513
2514         * docs/doxygen/run_doxygen:  Clear GENERATE_TAGFILE entirely
2515         if man pages are on.
2516         * docs/doxygen/user.cfg.in:  And here.
2517
2518 2003-09-10  Daniel Jacobowitz  <drow@mvista.com>
2519             Andreas Jaeger <aj@suse.de>
2520
2521         PR libstdc++/12189
2522         * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
2523         abi_check if cross compiling.
2524         * aclocal.m4: Regenerated.
2525         * configure: Regenerated.
2526
2527 2003-09-10  Jeffrey D. Oldham  <oldham@codesourcery.com>
2528
2529         * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2530         NULL, return NULL.  This reflects a C++ ABI change 2003 Sep 05.
2531         (__cxa_vec_new3): Likewise.
2532
2533 2003-09-10  Petur Runolfsson  <peturr02@ru.is>
2534
2535         * include/bits/fstream.tcc (basic_filebuf::seekoff):
2536         Use codecvt::length to handle variable-width stateless encodings
2537         correctly.
2538         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2539         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2540
2541 2003-09-10  Alan Modra  <amodra@bigpond.net.au>
2542
2543         * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2544         rather than or'ing.
2545
2546 2003-09-09  Alan Modra  <amodra@bigpond.net.au>
2547
2548         * configure: Regenerate.
2549
2550 2003-09-09  David Edelsohn  <edelsohn@gnu.org>
2551
2552         * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2553         qualifier from _S_synced_with_stdio.
2554
2555 2003-09-09  Bernardo Innocenti  <bernie@develer.com>
2556
2557         * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2558
2559 2003-09-04  Petur Runolfsson  <peturr02@ru.is>
2560
2561         PR libstdc++/9028
2562         * include/bits/fstream.tcc
2563         (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2564         (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2565         _M_ext_buf_size, _M_ext_next and _M_ext_end.
2566         (basic_filebuf::underflow): Handle variable-width stateless
2567         encodings (codecvt::encoding() == 0), including UTF-8.
2568         * include/std/std_fstream.h (basic_filebuf):
2569         Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2570         * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2571         * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2572         * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2573         * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2574         * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2575         * testsuite/27_io/objects/wchar_t/12.cc: New test.
2576         * testsuite/27_io/objects/wchar_t/13.cc: New test.
2577
2578 2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>
2579
2580         * docs/html/faq/index.html: Note that a namespace alias can't be
2581         used when specialising templates in extension namespace.
2582         * docs/html/faq/index.txt: Regenerate.
2583
2584 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
2585
2586         PR libstdc++/12048
2587         * include/ext/stdio_sync_filebuf.h
2588         (stdio_sync_filebuf::_M_unget_buf): Declare it.
2589         (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2590         (stdio_sync_filebuf::uflow): Store the returned character in
2591         _M_unget_buf.
2592         (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2593         _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2594         (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2595         _M_unget_buf, if any, else eof().
2596         (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2597         _M_unget_buf, if any, else eof().
2598         * testsuite/27_io/objects/char/12048.cc: Rename to...
2599         * testsuite/27_io/objects/char/12048-1.cc: ...this.
2600         * testsuite/27_io/objects/char/12048-2.cc: New test.
2601         * testsuite/27_io/objects/char/12048-3.cc: New test.
2602         * testsuite/27_io/objects/char/12048-4.cc: New test.
2603         * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2604         * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2605         * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2606         * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2607         * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2608         * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2609         * testsuite/ext/stdio_sync_filebuf_char.cc
2610         (test02, test03, test04, test05): New tests.
2611         * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2612         (test02, test03, test04, test05): New tests.
2613
2614 2003-09-03  Petur Runolfsson  <peturr02@ru.is>
2615
2616         * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2617         stringbuf or strstreambuf. Fix typos.
2618
2619 2003-09-02  Phil Edwards  <phil@codesourcery.com>
2620
2621         * acinclude.m4 (GLIBCXX_ENABLE_HOSTED):  #define _GLIBCXX_HOSTED
2622         appropriately.
2623         * config.h.in:  Add _GLIBCXX_HOSTED.
2624         * libsupc++/eh_term_handler.cc:  Test it here; initialize
2625         __terminate_handler to std::abort if freestanding.
2626         * aclocal.m4, configure:  Regenerated.
2627         * docs/html/configopts.html:  Document --disable-hosted-libstdcxx.
2628
2629 2003-08-29  Nathan Myers  <ncm@cantrip.org>
2630
2631         PR libstdc++/11990
2632         * include/bits/locale_facets.tcc (__pad): delete dead code.
2633
2634 2003-08-28  Alan Modra  <amodra@bigpond.net.au>
2635
2636         * configure.ac: Test $with_cross_host against $build_alias, not $build.
2637         * configure: Regenerate.
2638
2639 2003-08-27  Petur Runolfsson  <peturr02@ru.is>
2640
2641         * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2642         * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2643
2644 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2645
2646         * Makefile.am:  Remove trailing whitespace.  Remove needless
2647         "foo = @foo@" assignments.  Replace direct uses of @foo@ with $(foo).
2648         * include/Makefile.am:  Likewise.
2649         * libmath/Makefile.am:  Likewise.
2650         * libsupc++/Makefile.am:  Likewise.
2651         * po/Makefile.am:  Likewise.
2652         * src/Makefile.am:  Likewise.
2653         * testsuite/Makefile.am:  Likewise.
2654
2655         * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2656         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2657         testsuite/Makefile.in:  Regenerated.
2658
2659 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2660
2661         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Change quoting of
2662         includedir.
2663         * aclocal.m4, configure:  Regenerate.
2664
2665 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
2666
2667         * acinclude.m4: Include no-executables.m4.
2668         * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2669         * aclocal.m4: Regenerated.
2670         * configure: Regenerated.
2671
2672 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
2673
2674         * acinclude.m4: Don't call AC_ISC_POSIX.
2675         * aclocal.m4: Regenerated.
2676         * configure: Regenerated.
2677
2678 2003-08-27  Phil Edwards  <pme@gcc.gnu.org>
2679
2680         * acinclude.m4 (GLIBCXX_CONDITIONAL):  New macro.  Wrap
2681         AM_CONDITIONAL.  Replace all calls to AM_CONDITIONAL with this one.
2682         (GLIBCXX_ENABLE_HOSTED):  New macro, sets new variable is_hosted,
2683         used elsewhere in this file.
2684         (GLIBCXX_EVALUATE_CONDITIONALS):  New macro...
2685         * configure.ac:  ...called here to expand all conditionals.
2686         * Makefile.am:  Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2687         * include/Makefile.am:  Remove redundant gxx_include_dir assignment.
2688         (install-freestanding-headers):  New target, a subset of
2689         install-headers.  Conditionalize install-data-local on GLIBCXX_HOSTED.
2690
2691         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2692         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2693         src/Makefile.in, testsuite/Makefile.in:  Regenerated.
2694
2695 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
2696
2697         * docs/doxygen/run_doxygen:  Shell fixes.  Remove hardcoded local
2698         pathnames from generated tag file.
2699
2700 2003-08-26  Phil Edwards  <pme@gcc.gnu.org>
2701
2702         * Makefile.am:  Add comment.
2703         * acinclude.m4 (GLIBCXX_CONFIGURE):  Set new glibcxx_SUBDIRS and
2704         SUBDIRS variables.
2705         * configure.ac:  Use them both here, instead of hardcoded lists.
2706
2707         * fragment.am:  Add STAMP varaible.
2708         * include/Makefile.am:  Cosmetic whitespace cleanup.  Use $(LN_S)
2709         instead of @LN_S@.
2710         (stamp-*):  Move file creation rule outside of 'if' branches to
2711         ensure the stamp-* files are actually updated.  Use $(STAMP).
2712         * src/Makefile.am:  Remove now-nonexistant variable.
2713         * libsupc++/Makefile.am:  Likewise.  Snap the assignment chain
2714         for -prefer-pic.
2715         * po/Makefile.am:  Include same fragment as all the others.
2716
2717         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2718         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in:  Regenerated.
2719
2720 2003-08-26  Loren J. Rittle  <ljrittle@acm.org>
2721
2722         * testsuite/data/cin_unget-1.txt: New.
2723         * testsuite/27_io/objects/char/12048.cc: New.
2724
2725 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
2726
2727         * config/os/hpux/os_defines.h: Unconditionally define
2728         _GLIBCXX_GTHREAD_USE_WEAK to 0.
2729
2730 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
2731
2732         * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2733         crosses to Darwin targets.
2734         * configure: Regenerate.
2735
2736 2003-08-19  Petur Runolfsson  <peturr02@ru.is>
2737
2738         * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2739
2740 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
2741
2742         * configure.ac:  GCC_NO_EXECUTABLES was supposed to be commented
2743         in the patch from 3 minutes ago.  Boy, is my face red.
2744         * configure:  At least I remembered to regenerate this.
2745
2746 2003-08-17  Phil Edwards  <pme@gcc.gnu.org>
2747
2748         * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES):  Remove LIBMATH_INCLUDES
2749         and LIBSUPCXX_INCLUDES.  Re-purpose TOPLEVEL_INCLUDES to refer to
2750         things from the top level.
2751         * configure.ac (GLIBCXX_IS_NATIVE):  Determine earlier and re-order.
2752         Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2753         (currently unused).  Strip the fake-VPATH shell fragment from
2754         automake-generated rules, if present.
2755         * linkage.m4:  Add comment.
2756
2757         * fragment.am:  New file, containing factored-out common settings.
2758         (AM_CPPFLAGS):  Absorb the deprecated INCLUDES variable contents.
2759         * Makefile.am:  Include fragment.am.  Remove common variables.
2760         * include/Makefile.am:  Likewise.
2761         * libmath/Makefile.am:  Likewise.
2762         * libsupc++/Makefile.am:  Likewise.
2763         * po/Makefile.am:  Likewise.  Print rules during check.
2764         * src/Makefile.am:  Likewise.
2765         * testsuite/Makefile.am:  Likewise.
2766
2767         * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2768         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2769         src/Makefile.in, testsuite/Makefile.in:  Regenerate.
2770
2771 2003-08-11  John Levon  <levon@movementarian.org>
2772
2773         * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2774         remaining places for the name change from GLIBCPP_FORCE_NEW
2775         to GLIBCXX_FORCE_NEW
2776
2777 2003-08-11  Benjamin Kosnik  <bkoz@redhat.com>
2778
2779         * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
2780         typedefs to num_*.
2781         * include/bits/basic_ios.tcc: Same.
2782         * include/bits/istream.tcc: Same.
2783         * include/bits/locale_facets.h: Same.
2784         * include/bits/ostream.tcc: Same.
2785         * include/std/std_istream.h: Same.
2786         * include/std/std_ostream.h: Same.
2787         * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2788
2789         * include/ext/rope: Remove build warning.
2790
2791 2003-08-11  Andreas Jaeger  <aj@suse.de>
2792
2793         * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2794         to make SMP-safe.
2795         * include/Makefile.in: Regenerated.
2796
2797 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
2798
2799         * acinclude.m4 (GLIBCXX_CONFIGURE):  Unprecious CC and CFLAGS
2800         when calling AC_PROG_CC.
2801         * aclocal.m4, configure:  Regenerate.
2802
2803 2003-08-11  Phil Edwards  <pme@gcc.gnu.org>
2804
2805         * acinclude.m4:  Properly quote variable which will be expanded
2806         inside makefiles.  Use CXX instead of CC to extract compiler info.
2807         * configure.ac (AC_INIT):  Use the new 4-arg form to finally get the
2808         correct form in PACKAGE.
2809         * aclocal.m4, configure:  Regenerate.
2810
2811 2003-08-08  Benjamin Kosnik  <bkoz@redhat.com>
2812
2813         * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2814         (check-abi-verbose): Same.
2815         * testsuite/testsuite_performance.h (report_performance): Same.
2816
2817 2003-08-08  Loren J. Rittle  <ljrittle@acm.org>
2818
2819         * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2820
2821 2003-08-07  Doug Gregor  <dgregor@apple.com>
2822
2823         * include/bits/char_traits.h (char_traits::not_eof): Match operand
2824         types in ? :.
2825
2826 2003-08-07  Bernardo Innocenti  <bernie@develer.com>
2827
2828         PR libstdc++/11784
2829         * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2830         Replace variants with new BSET-based version.
2831
2832 2003-08-07  Carlo Wood  <carlo@alinoe.com>
2833
2834         * include/bits/demangle.h: Do not use cctype functions that depend
2835         on locale.
2836
2837 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
2838
2839         * configure.in:  Rename...
2840         * configure.ac:  ...to this.
2841         * docs/html/17_intro/porting.texi:  Update name.
2842
2843         * docs/html/17_intro/porting.html:  Regenerate.
2844         * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2845         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2846         testsuite/Makefile.in:  Regenerate (picks up new dependancy).
2847
2848 2003-08-05  Phil Edwards  <pme@gcc.gnu.org>
2849
2850         * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS):  Put down the crack
2851         pipe, open the window to let out the fumes, redo the option-handling
2852         logic to properly execute the detection test.
2853         * aclocal.m4, configure:  Regenerate.
2854
2855 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2856
2857         Convert to new autotools.
2858         * acconfig.h:  Update with correct names.
2859         * configure.host (ATOMICITYH):  Rename to atomicity_include_dir.
2860         (qnx6.[12]*):  'q' comes before 's', not after 'w'.
2861         * configure.in:  Update.  Split hardcoded cross-configury settings
2862         out to...
2863         * crossconfig.m4:  ...here.  New file.  Contents untouched.
2864         * acinclude.m4:  Reorganize and rewrite as needed.  Split large
2865         chunks out to...
2866         * linkage.m4:  ...here.  New file.  Math and stdlib linkage tests.
2867         Contents untouched.
2868         * scripts/testsuite_flags.in:  Update.
2869
2870         * Makefile.am:  Remove unneeded AUTOMAKE_OPTIONS settings and other
2871         variables (already generated by automake).
2872         * include/Makefile.am:  Ditto.
2873         * libmath/Makefile.am:  Ditto.
2874         * libsupc++/Makefile.am:  Ditto.
2875         * po/Makefile.am:  Ditto.
2876         * src/Makefile.am:  Ditto.
2877
2878         * aclocal.m4:  Regenerate using new versions.
2879         * config.h.in:  Ditto.
2880         * configure:  Ditto.
2881         * Makefile.in:  Ditto.
2882         * include/Makefile.in:  Ditto.
2883         * libmath/Makefile.in:  Ditto.
2884         * libsupc++/Makefile.in:  Ditto.
2885         * po/Makefile.in:  Ditto.
2886         * src/Makefile.in:  Ditto.
2887         * testsuite/Makefile.in:  Ditto.
2888
2889 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2890
2891         * po/libstdc++.pot:  Re-extract/regenerate.
2892
2893 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2894
2895         * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2896         Remove unneeded variable assignments.  Leave them for automake.
2897         * testsuite/lib/libstdc++-v3.exp:  Rename...
2898         * testsuite/lib/libstdc++.exp:  ...to this.  Adjust function names
2899         accordingly.
2900         * testsuite/libstdc++-v3.dg/dg.exp:  Rename...
2901         * testsuite/libstdc++-dg/normal.exp:  ...to this.  Adjust function
2902         names accordingly.
2903
2904 2003-08-04  Phil Edwards  <pme@gcc.gnu.org>
2905
2906         * docs/doxygen/guide.html:  run_doxygen uses bash.
2907         * docs/doxygen/mainpage.html:  We'll be shipping tag files.
2908         * docs/doxygen/run_doxygen:  Tweaks and improvements.
2909         * docs/doxygen/user.cfg.in:  Set GENERATE_TAGFILE.
2910         * docs/html/install.html:  Update autoconf/automake requirements.
2911         * docs/html/test.html:  Add section describing DejaGNU support.
2912         * docs/html/17_intro/confdeps.dot:  New file, generates...
2913         * docs/html/17_intro/confdeps.png:  ...this new file.
2914         * docs/html/Makefile:  Generated here.
2915         * docs/html/17_intro/configury.html:  New file.
2916
2917 2003-07-31  Phil Edwards  <pme@gcc.gnu.org>
2918
2919         * testsuite/lib/libstdc++-v3-dg.exp:  Rename...
2920         * testsuite/lib/libstdc++-v3.exp:  ...to this.
2921         * testsuite/libstdc++-v3.dg/dg.exp:  No special case needed now.
2922
2923 2003-07-31  Doug Gregor  <dgregor@apple.com>
2924
2925         Add user specialization tests.
2926         * testsuite/23_containers/deque/1.cc: New.
2927         * testsuite/23_containers/list/1.cc: New.
2928         * testsuite/23_containers/map/1.cc: New.
2929         * testsuite/23_containers/multimap/1.cc: New.
2930         * testsuite/23_containers/multiset/1.cc: New.
2931         * testsuite/23_containers/set/1.cc: New.
2932         * testsuite/23_containers/vector/1.cc: New.
2933
2934 2003-07-31  Benjamin Kosnik  <bkoz@redhat.com>
2935
2936         Reshuffle 23_containers testsuite.
2937         * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
2938         bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2939         list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2940         map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2941         set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2942         vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2943         vector_resize.cc: Split into...
2944         * 23_containers/bitset/cons/1.cc: New.
2945         * 23_containers/bitset/cons/6282.cc: New.
2946         * 23_containers/bitset/count/6124.cc: New.
2947         * 23_containers/bitset/operations/1.cc: New.
2948         * 23_containers/bitset/operations/2.cc: New.
2949         * 23_containers/bitset/test/1.cc: New.
2950         * 23_containers/bitset/to_ulong/1.cc: New.
2951         * 23_containers/deque/cons/1.cc: New.
2952         * 23_containers/deque/cons/2.cc: New.
2953         * 23_containers/deque/operators/1.cc: New.
2954         * 23_containers/list/capacity/1.cc: New.
2955         * 23_containers/list/cons/1.cc: New.
2956         * 23_containers/list/cons/2.cc: New.
2957         * 23_containers/list/cons/3.cc: New.
2958         * 23_containers/list/cons/4.cc: New.
2959         * 23_containers/list/cons/5.cc: New.
2960         * 23_containers/list/cons/6.cc: New.
2961         * 23_containers/list/cons/7.cc: New.
2962         * 23_containers/list/cons/8.cc: New.
2963         * 23_containers/list/cons/9.cc: New.
2964         * 23_containers/list/modifiers/1.cc: New.
2965         * 23_containers/list/modifiers/2.cc: New.
2966         * 23_containers/list/modifiers/3.cc: New.
2967         * 23_containers/list/operators/1.cc: New.
2968         * 23_containers/list/operators/2.cc: New.
2969         * 23_containers/list/operators/3.cc: New.
2970         * 23_containers/list/operators/4.cc: New.
2971         * 23_containers/map/insert/1.cc: New.
2972         * 23_containers/map/operators/1.cc: New.
2973         * 23_containers/map/operators/1_neg.cc: New.
2974         * 23_containers/multiset/insert/1.cc: New.
2975         * 23_containers/priority_queue/members/7161.cc: New.
2976         * 23_containers/queue/members/7157.cc: New.
2977         * 23_containers/set/operators/1_neg.cc: New.
2978         * 23_containers/stack/members/7158.cc: New.
2979         * 23_containers/vector/bool/1.cc: New.
2980         * 23_containers/vector/bool/6886.cc: New.
2981         * 23_containers/vector/capacity/1.cc: New.
2982         * 23_containers/vector/capacity/2.cc: New.
2983         * 23_containers/vector/capacity/8230.cc: New.
2984         * 23_containers/vector/cons/1.cc: New.
2985         * 23_containers/vector/cons/2.cc: New.
2986         * 23_containers/vector/cons/3.cc: New.
2987         * 23_containers/vector/cons/4.cc: New.
2988         * 23_containers/vector/cons/6513.cc: New.
2989         * 23_containers/vector/element_access/1.cc: New.
2990         * 23_containers/vector/modifiers/1.cc: New.
2991         * 23_containers/vector/modifiers/2.cc: New.
2992         * 23_containers/vector/resize/1.cc: New.
2993
2994 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2995
2996         * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2997         dg-options.
2998         * testsuite/thread/pthread2.cc: Likewise.
2999         * testsuite/thread/pthread3.cc: Likewise.
3000         * testsuite/thread/pthread4.cc: Likewise.
3001         * testsuite/thread/pthread5.cc: Likewise.
3002         * testsuite/thread/pthread6.cc: Likewise.
3003         * testsuite/thread/pthread7-rope.cc: Likewise.
3004
3005 2003-07-30  Phil Edwards  <pme@gcc.gnu.org>
3006
3007         * include/bits/c++config:  Partial reversion (comment placement) of
3008         previous patch.
3009
3010 2003-07-30  Benjamin Kosnik  <bkoz@redhat.com>
3011
3012         * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
3013         (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
3014         (_GLIBCXX_AT_AT): Remove.
3015         (__USE_MALLOC): Remove.
3016         * include/std/std_fstream.h: Modify.
3017         * include/bits/basic_ios.h: Same.
3018         * include/bits/valarray_array.h: Same.
3019         * include/c_std/std_cmath.h: Same.
3020         * include/c_std/cmath.tcc: Same.
3021         * include/std/std_vector.h: Same.
3022         * include/std/std_string.h: Same.
3023         * include/std/std_stack.h: Same.
3024         * include/std/std_queue.h: Same.
3025         * include/std/std_list.h: Same.
3026         * include/std/std_deque.h: Same.
3027         * include/std/std_streambuf.h: Same.
3028         * include/std/std_sstream.h: Same.
3029         * include/std/std_ostream.h: Same.
3030         * include/std/std_istream.h: Same.
3031         * include/bits/valarray_array.tcc: Same, format.
3032
3033         * include/c/std_cctype.h: Fix include guards.
3034         * include/c/std_cerrno.h: Same.
3035         * include/c/std_cfloat.h: Same.
3036         * include/c/std_climits.h: Same.
3037         * include/c/std_clocale.h: Same.
3038         * include/c/std_cmath.h: Same.
3039         * include/c/std_csetjmp.h: Same.
3040         * include/c/std_csignal.h: Same.
3041         * include/c/std_cstdarg.h: Same.
3042         * include/c/std_cstddef.h: Same.
3043         * include/c/std_cstdio.h: Same.
3044         * include/c/std_cstdlib.h: Same.
3045         * include/c/std_cstring.h: Same.
3046         * include/c/std_ctime.h: Same.
3047         * include/c/std_cwchar.h: Same.
3048         * include/c/std_cwctype.h: Same.
3049         * include/c_std/cmath.tcc: Same.
3050         * include/c_std/std_cmath.h: Same.
3051
3052 2003-07-30  Gawain Bolton  <gp.bolton@computer.org>
3053
3054         PR libstdc++/11504.
3055         * include/bits/stl_tree.h: Replace C-style casts with C++-style
3056         casts.  Changes to avoid casting away constness.  Eliminate
3057         _Rb_tree_base_iterator class.  Change _Rb_tree_iterator to use
3058         initialization lists.  Move out implementation of __black_count()
3059         to...
3060         * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
3061         Rename_Rb_tree_base_iterator::_M_increment() to
3062         _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
3063         _Rb_tree_decrement.
3064         * config/linker-map.gnu: Add and change symbols here.
3065
3066 2003-07-30  Jonathan Wakely  <redi@gcc.gnu.org>
3067
3068         * docs/html/22_locale/howto.html: Use locale::classic() instead
3069         of locale("C").
3070
3071 2003-07-28  Benjamin Kosnik  <bkoz@redhat.com>
3072
3073         * testsuite/testsuite_hooks.h: Remove list include.
3074         (func_callback): Define as unique type, not std::list.
3075         Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
3076         * testsuite/libstdc++-v3.dg/dg.exp: Same.
3077         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
3078         * testsuite/23_containers/bitset_ctor.cc:
3079         * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
3080         * testsuite/18_support/numeric_limits.cc: Same.
3081         * testsuite/21_strings/basic_string/append/char/1.cc: Same.
3082         * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
3083         * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
3084         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
3085         * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
3086         * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
3087         * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
3088         * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
3089         * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
3090         * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
3091         * testsuite/21_strings/basic_string/find/char/1.cc: Same.
3092         * testsuite/21_strings/basic_string/find/char/2.cc: Same.
3093         * testsuite/21_strings/basic_string/find/char/3.cc: Same.
3094         * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
3095         * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
3096         * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
3097         * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
3098         * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
3099         * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
3100         * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
3101         * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
3102         * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
3103         * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
3104         * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
3105         * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
3106         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
3107         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
3108         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
3109         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
3110         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
3111         * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
3112         * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
3113         * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
3114         * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
3115         * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
3116         * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
3117         * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
3118         * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
3119         * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
3120         * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
3121         * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
3122         * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
3123         * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
3124         * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
3125         * testsuite/23_containers/bitset_ctor.cc: Same.
3126         * testsuite/23_containers/bitset_shift.cc: Same.
3127         * testsuite/23_containers/vector_ctor.cc: Same.
3128         * testsuite/23_containers/vector_element_access.cc: Same.
3129         * testsuite/24_iterators/istreambuf_iterator.cc: Same.
3130         * testsuite/24_iterators/iterator.cc: Same.
3131         * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
3132         * testsuite/25_algorithms/lower_bound.cc: Same.
3133         * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
3134         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
3135         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
3136         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
3137         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
3138         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
3139         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
3140         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
3141         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
3142         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
3143         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3144         Same.
3145
3146 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3147
3148         * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
3149         docs/html/test.html, docs/html/17_intro/headers_cc.txt,
3150         docs/html/17_intro/howto.html, docs/html/ext/howto.html:  Change
3151         GLIBCPP to GLIBCXX (and explain as needed).
3152
3153 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3154
3155         * README:  Update.
3156
3157 2003-07-28  Phil Edwards  <pme@gcc.gnu.org>
3158
3159         * testsuite/22_locale/messages/members/char/1.cc,
3160         testsuite/22_locale/messages/members/char/2.cc,
3161         testsuite/22_locale/messages/members/char/3.cc,
3162         testsuite/22_locale/messages_byname/1.cc:  Update comment regarding
3163         the origin of LOCALEDIR.
3164         * testsuite/lib/libstdc++-v3.exp:  New file.
3165
3166 2003-07-25  Benjamin Kosnik  <bkoz@redhat.com>
3167
3168         * include/bits/char_traits.h: Update copyright, tweak.
3169         * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
3170         std types.
3171
3172 2003-07-24  Matt Austern  <austern@apple.com>
3173
3174         * /include/bits/char_traits.h (class char_traits): Put all the
3175         real work into the new class template __gnu_cxx::char_traits.
3176         Gave generic definitions for member functions.  Types are taken
3177         from the new class template __gnu_cxx::_Char_types.
3178         * testsuite/21_strings/char_traits/requirements/short/1.cc: New
3179         file.  Test of std::char_traits<short>, which serves as a test of
3180         the char_traits primary template.
3181
3182 2003-07-24  Benjamin Kosnik  <bkoz@redhat.com>
3183
3184         * testsuite/*: Change __gnu_cxx_test to __gnu_test.
3185
3186 2003-07-24  Nathan Myers  <ncm-nospam@cantrip.org>
3187
3188         * testsuite/23_containers/map_operators.cc: Conform to
3189         container requirement as value must be Assignable.
3190
3191 2003-07-23  Alexandre Oliva  <aoliva@redhat.com>
3192
3193         * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
3194         tests not only generation of pch files, but also their use.
3195         * aclocal.m4, configure: Rebuilt.
3196
3197 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
3198
3199         * config/cpu/hppa/atomicity.h: Change
3200         _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
3201         to match misc-inst.cc
3202
3203 2003-07-23  Steve Ellcey  <sje@cup.hp.com>
3204
3205         * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
3206         * include/c_std/std_cctype.h: Ditto.
3207         * include/c_std/std_cerrno.h: Ditto.
3208         * include/c_std/std_cfloat.h: Ditto.
3209         * include/c_std/std_climits.h: Ditto.
3210         * include/c_std/std_clocale.h: Ditto.
3211         * include/c_std/std_cmath.h: Ditto.
3212         * include/c_std/std_csetjmp.h: Ditto.
3213         * include/c_std/std_csignal.h: Ditto.
3214         * include/c_std/std_cstdarg.h: Ditto.
3215         * include/c_std/std_cstddef.h: Ditto.
3216         * include/c_std/std_cstdio.h: Ditto.
3217         * include/c_std/std_cstdlib.h: Ditto.
3218         * include/c_std/std_cstring.h: Ditto.
3219         * include/c_std/std_ctime.h: Ditto.
3220         * include/c_std/std_cwchar.h: Ditto.
3221         * include/c_std/std_cwctype.h: Ditto.
3222         * include/std/std_algorithm.h: Ditto.
3223         * include/std/std_bitset.h: Ditto.
3224         * include/std/std_complex.h: Ditto.
3225         * include/std/std_deque.h: Ditto.
3226         * include/std/std_fstream.h: Ditto.
3227         * include/std/std_functional.h: Ditto.
3228         * include/std/std_iomanip.h: Ditto.
3229         * include/std/std_ios.h: Ditto.
3230         * include/std/std_iosfwd.h: Ditto.
3231         * include/std/std_iostream.h: Ditto.
3232         * include/std/std_istream.h: Ditto.
3233         * include/std/std_iterator.h: Ditto.
3234         * include/std/std_limits.h: Ditto.
3235         * include/std/std_list.h: Ditto.
3236         * include/std/std_locale.h: Ditto.
3237         * include/std/std_map.h: Ditto.
3238         * include/std/std_memory.h: Ditto.
3239         * include/std/std_numeric.h: Ditto.
3240         * include/std/std_ostream.h: Ditto.
3241         * include/std/std_queue.h: Ditto.
3242         * include/std/std_set.h: Ditto.
3243         * include/std/std_sstream.h: Ditto.
3244         * include/std/std_stack.h: Ditto.
3245         * include/std/std_stdexcept.h: Ditto.
3246         * include/std/std_streambuf.h: Ditto.
3247         * include/std/std_string.h: Ditto.
3248         * include/std/std_utility.h: Ditto.
3249         * include/std/std_valarray.h: Ditto.
3250         * include/std/std_vector.h: Ditto.