OSDN Git Service

* acinclude.m4 (GLIBCPP_CONFIGURE): Split out
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2002-06-25  DJ Delorie  <dj@redhat.com>
2
3         * acinclude.m4 (GLIBCPP_CONFIGURE): Split out
4         GLIBCPP_TOPREL_CONFIGURE.
5         * aclocal.m4: Likewise.
6         * configure.in: Call it before AC_CANONICAL_SYSTEM.
7         * configure: Regenerate.
8
9 2002-06-25  Jessica Han  <jessica@cup.hp.com>
10
11         * config/os/hpux/os_defines.h Define _GLIBCPP_VTABLE_PADDING
12         * libsupc++/tinfo.cc Handle the 8 byte aligned vtable entries when
13         _GLIBCPP_VTABLE_PADDING is defined.
14
15 2002-06-25  Benjamin Kosnik  <bkoz@redhat.com>
16
17         * include/bits/stl_alloc.h: Additional formatting.
18
19 2002-06-24  Phil Edwards  <pme@gcc.gnu.org>
20
21         * include/bits/stl_alloc.h:  Reformat as per C++STYLE.
22
23 2002-06-24  Phil Edwards  <pme@gcc.gnu.org>
24
25         * config/cpu/*/bits/*:  Move header files up a level.  Remove bits.
26         * config/os/*/bits/*:  Likewise.
27         * configure.in:  Update.
28         * configure:  Regenerate.
29         * configure.target:  Update.
30         * docs/html/17_intro/porting.texi:  Update.
31
32 2002-06-21  Phil Edwards  <pme@gcc.gnu.org>
33
34         * include/bits/stl_map.h, include/bits/stl_multimap.h,
35         include/bits/stl_queue.h, include/bits/stl_stack.h:  Reformat and
36         complete doxygenation.
37         * include/bits/boost_concept_check.h:  Minor comment.
38
39 2002-06-21  Benjamin Kosnik  <bkoz@redhat.com>
40
41         * include/c_compatibility: New.
42         * include/c_compatibility/assert.h: New.
43         * include/c_compatibility/ctype.h: New.
44         * include/c_compatibility/errno.h: New.
45         * include/c_compatibility/float.h: New.
46         * include/c_compatibility/iso646.h: New.
47         * include/c_compatibility/limits.h: New.
48         * include/c_compatibility/locale.h: New.
49         * include/c_compatibility/math.h: New.
50         * include/c_compatibility/setjmp.h: New.
51         * include/c_compatibility/signal.h: New.
52         * include/c_compatibility/stdarg.h: New.
53         * include/c_compatibility/stddef.h: New.
54         * include/c_compatibility/stdio.h: New.
55         * include/c_compatibility/stdlib.h: New.
56         * include/c_compatibility/string.h: New.
57         * include/c_compatibility/time.h: New.
58         * include/c_compatibility/wchar.h: New.
59         * include/c_compatibility/wctype.h: New.
60
61         * include/c/std_cerrno.h: Get out of the way... define errno.
62         * include/c/std_cmath.h: Add abs, modf overloads.
63         Undefine C99 isms. Still not sure how to deal with this sanely.
64         * include/c/std_csetjmp.h: Tweak.
65         * include/c/std_cwchar.h: Include cstddef for size_t.
66
67         * include/c_std/std_cmath.h: Remove extra function.
68         
69         Pendantic std usage in testsuites.      
70         * testsuite/17_intro/header_cstdlib.cc (test01): Qualify ldiv_t
71         with std.
72         * testsuite/17_intro/header_cwchar.cc: Tweak.
73         * testsuite/22_locale/codecvt_members_char_char.cc (test03): Use
74         std::setlocale.
75         * testsuite/22_locale/ctype_to_wchar_t.cc (test05): Same.
76         * testsuite/22_locale/ctype_to_char.cc (test05): Same.
77         * testsuite/22_locale/ctype_is_wchar_t.cc (test05): Same.
78         * testsuite/22_locale/ctype_is_char.cc (test05): Same.
79         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Same.
80         * testsuite/22_locale/time_get_members_wchar_t.cc (test08): Same.
81         * testsuite/22_locale/time_get_members_char.cc (test08): Same.
82         * testsuite/22_locale/time_put_members_wchar_t.cc (test04): Same.
83         * testsuite/22_locale/time_put_members_char.cc (test04): Same.
84         * testsuite/22_locale/num_put_members_wchar_t.cc (test04): Same.
85         * testsuite/22_locale/num_put_members_char.cc (test04): Same.
86         * testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Same.
87         * testsuite/22_locale/numpunct_members_char.cc (test03): Same.
88         * testsuite/22_locale/num_get_members_wchar_t.cc: Same.
89         * testsuite/22_locale/num_get_members_char.cc: Same.
90         * testsuite/22_locale/money_put_members_wchar_t.cc (test07): Same.
91         * testsuite/22_locale/money_put_members_char.cc (test07): Same.
92         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Same.
93         * testsuite/22_locale/moneypunct_members_char.cc (test03): Same.
94         * testsuite/22_locale/money_get_members_wchar_t.cc (test08): Same.
95         * testsuite/22_locale/money_get_members_char.cc (test08): Same.
96         * testsuite/22_locale/messages_members_char.cc (test03): Same.
97         * testsuite/22_locale/collate_members_wchar_t.cc (test04): Same.
98         * testsuite/22_locale/collate_members_char.cc (test04): Same.
99         * testsuite/26_numerics/fabs_inline.cc: Use std::printf.
100         * testsuite/27_io/istream_seeks.cc (test02): Qualify abort.
101         * testsuite/27_io/istream_extractor_arith.cc (test11): Qualify strtol.
102         
103 2002-06-20  Benjamin Kosnik  <bkoz@redhat.com>
104
105         * libsupc++/Makefile.am (libsupc__convenience_la_SOURCES): Add
106         c_sources.
107
108 2002-06-20  Benjamin Kosnik  <bkoz@redhat.com>
109
110         * src/ext-inst.cc (__gnu_cxx): Use instead of std:: for extensions.
111         Use size_type instead of unsigned long.
112
113 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
114
115         * src/ext-inst.cc (_S_fetch): Add explicit templates for char and
116         wchar types.
117         (_S_min_len): Ditto.
118
119 2002-06-20  Benjamin Kosnik  <bkoz@redhat.com>
120
121         * include/Makefile.am: Add rules.
122         * include/Makefile.in: Regenerate.
123
124         * acinclude.m4: Define GLIBCPP_C_HEADERS_COMPATIBILITY.
125         * aclocal.m4: Regenerate.
126         * configure: Regenerate.
127         * configure.target (c_model, c_compatibility): Add.
128         
129         * libsupc++/Makefile.am (c_sources): New.
130         (libsupc___la_SOURCES): Add c_sources.
131         (LTCOMPILE): Remove INCLUDES.
132         (GCC_INCLUDES): New.
133         (C_COMPILE): New, like COMPILE but without INCLUDES.
134         (cxa_demangle.o): Use C_COMPILE.
135         (dyn-string.o): Use C_COMPILE.  
136         
137         * include/c/std_cstdarg.h: Define __need___va_list.  
138         * include/c/std_cstddef.h: Define need_size_t, need_ptrdiff_t,
139         need_NULL, need_offsetof.
140
141 2002-06-19  Steve Ellcey  <sje@cup.hp.com>
142
143         * configure.in (HAVE_FINITE*, HAVE_ISINF*, HAVE_ISNAN*):  Remove
144         definitions in hpux11 cross-build because these functions do
145         not exist on hpux11 (but some exist on hpux10); move defaults out
146         into existing sections.
147         * configure:  Regenerate.
148
149 2002-06-18  Benjamin Kosnik  <bkoz@redhat.com>
150
151         * include/c/std_cwchar.h: Guard. Add mbstate_t bits.
152         * include/c/std_cwctype.h: Guard.
153
154         * libsupc++/eh_alloc.cc: Tweak include order.
155         * libsupc++/pure.cc: Use cstdio.
156         * libsupc++/new_op.cc: Remove malloc forward declaration, as
157         cstdlib brings it in. Use std::malloc.
158
159         * src/Makefile.am (sources): Remove cmath.cc.
160         * src/Makefile.in: Regenerate.
161         * src/cmath.cc: Remove.
162         
163 2002-06-18  Phil Edwards  <pme@gcc.gnu.org>
164
165         * configure.target:  Force mips to use the generic cpu routines.
166
167 2002-06-18  Phil Edwards  <pme@gcc.gnu.org>
168
169         * configure.host:  Delete file.
170         * configure.target:  More documentation.  Factor out common parts of
171         script into "intelligent" settings about defaults.  Remove redundancy.
172
173         * acinclude.m4:  Update comments.  Do not call configure.host.
174         (GLIBCPP_ENABLE_SYMVERS):  If disabled, do not bother checking for
175         libgcc_s.
176         * configure.in:  Slight reformatting, more comments.  Factor out
177         "config/" from all the directories.
178         * docs/html/17_intro/porting.texi:  Update and expand.
179         * testsuite/Makefile.am (AM_RUNTESTFLAGS):  Move empty setting
180         from configure.host.
181
182         * aclocal.m4, configure, docs/html/17_intro/porting.html,
183         testsuite/Makefile.in:  Regenerate.
184
185 2002-06-16  Phil Edwards  <pme@gcc.gnu.org>
186
187         * docs/doxygen/TODO:  Update.
188         * docs/doxygen/tables.html:  Uncomment magical middle column.
189         * docs/doxygen/user.cfg.in:  Kludge to ignore function-like macros.
190         * include/bits/stl_queue.h:  Doxygenate and reformat.
191         * include/bits/ios_base.h, include/std/std_streambuf.h:  Add comment
192         for deprecated names required by the standard.
193
194 2002-06-14  J.T. Conklin  <jtc@acorntoolworks.com>
195
196         * configure.in (target_alias): Fix.
197         * configure: Regenerate.
198         * aclocal.m4: Regenerate.
199
200 2002-06-12  Phil Edwards  <pme@gcc.gnu.org>
201
202         * include/Makefile.am:  Add new files.
203         * include/Makefile.in:  Regenerate.
204
205         * include/bits/stl_deque.h, include/bits/stl_list.h,
206         include/bits/stl_vector.h:  Clean up, reformat.  Move definitions...
207         * include/bits/deque.tcc, include/bits/list.tcc,
208         include/bits/vector.tcc:  ...to here.  New files.
209
210         * include/ext/stl_hashtable.h:  Inclide correct full headers.
211         * include/std/std_deque.h:  Include .tcc files for now.
212         * include/std/std_list.h:  Likewise.
213         * include/std/std_vector.h:  Likewise.
214
215 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
216
217         * Makefile.am: Add FLAGS_TO_PASS.
218         * Makefile.in: Regenerated.
219
220 2002-06-11  J.T. Conklin  <jtc@acorntoolworks.com>
221             Benjamin Kosnik  <bkoz@redhat.com>
222         
223         * configure.target: Set os_include_dir to config/os/qnx/qnx6.1
224         under *-qnx6.[12]*.
225         * configure.in: Add support for *-qnx6.[12]*.
226         * configure: Regenerate.
227
228         * config/os/qnx, config/os/qnx/qnx6.1, config/os/qnx/qnx6.1/bits:
229         New directories.  
230         * config/os/qnx/qnx6.1/bits/ctype_base.h, ctype_inline.h,
231         ctype_noninline.h, os_defines.h: New files.
232
233 2002-06-10  Loren J. Rittle <ljrittle@acm.org>
234
235         * acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT_ancilliary): Reorder and
236         include all required headers for test against older POSIX standard.
237         (GLIBCPP_CHECK_SETRLIMIT): Likewise.
238         (ac_setrlimit): Likewise.
239         * aclocal.m4: Regenerate.
240         * configure: Regenerate.
241         * testsuite/testsuite_hooks.cc: Reorder and include all
242         required headers for use against older POSIX standard.
243
244 2002-06-08  Paolo Carlini  <pcarlini@unitus.it>
245
246         * testsuite/backwards/strstream_members.cc: New.
247
248 2002-06-08  Benjamin Kosnik  <bkoz@redhat.com>
249
250         * include/backwards/strstream: Format.
251         * src/strstream.cc: Format.
252         
253 2002-06-08  Andreas Schwab  <schwab@suse.de>
254
255         * src/strstream.cc (strstreambuf::overflow): Set _M_buf,
256         _M_buf_size and _M_buf_size_opt to the new buffer and size.
257
258 2002-06-08  Benjamin Kosnik  <bkoz@redhat.com>
259
260         * config/os/generic/bits/ctype_noninline.h: Tweak format.
261
262 2002-06-07  Steve Ellcey  <sje@cup.hp.com>
263
264         * src/locale-inst.cc (__codecvt_abstract_base):
265         Put inside _GLIBCPP_USE_WCHAR_T ifdef.
266         * include/bits/istream.tcc (basic_istream): Ditto.
267         (ws) Ditto.
268         (operator>>) Ditto.
269         * include/bits/ostream.tcc (basic_ostream): Ditto. 
270         (endl): Ditto.
271         (ends): Ditto.
272         (flush): Ditto.
273         (operator<<): Ditto.
274
275 2002-06-07  Phil Edwards  <pme@gcc.gnu.org>
276
277         * mkcheck.in:  Link against local testsuite library.
278         * testsuite/testsuite_hooks.h (__set_testsuite_memlimit):  Move null
279         implementation out...
280         * testsuite/testsuite_hooks.cc:  ...to here.
281
282 2002-06-06  Loren J. Rittle <ljrittle@acm.org>
283
284         * src/Makefile.am (AUTOMAKE_OPTIONS): Use cygnus-style generation.
285         * include/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
286         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
287         * src/Makefile.in: Regenerate (explicitly with --cygnus option).
288         * testsuite/Makefile.in: Likewise.
289
290 2002-06-05  David Edelsohn  <edelsohn@gnu.org>
291
292         * config/os/aix/bits/ctype_noninline.h (do_toupper,do_tolower):
293         Call external symbol.
294
295 2002-06-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
296
297         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3_target_compile):
298         Search correct multilib testsuite dir for libv3test.
299
300 2002-06-04  Paolo Carlini  <pcarlini@unitus.it>
301             Gaby Dos Reis  <gdr@codesourcery.com>
302
303         * include/bits/basic_string.tcc
304         (basic_string::_S_construct(forward_iterator_tag):
305         Fix typo in null pointer check.
306         * testsuite/21_strings/ctor_copy_dtor.cc: Add test04.
307
308 2002-06-04  Paolo Carlini  <pcarlini@unitus.it>
309
310         * testsuite/22_locale/money_get_members_char.cc
311         (test02): Add decimal point to long double constants.
312         * testsuite/22_locale/money_get_members_wchar_t.cc
313         (test02): Likewise.
314         * testsuite/22_locale/money_put_members_char.cc
315         (test02, test03, test06): Likewise.
316         * testsuite/22_locale/money_put_members_wchar_t.cc:
317         (test02, test03, test06): Likewise.
318         * testsuite/22_locale/num_get_members_char.cc:
319         (test02, test01): Likewise; suffix long long constants with LL. 
320         * testsuite/22_locale/num_get_members_wchar_t.cc:
321         (test02, test01): Likewise.
322         * testsuite/22_locale/num_put_members_char.cc:
323         (test02, test01): Likewise.
324         * testsuite/22_locale/num_put_members_wchar_t.cc:
325         (test02, test01): Likewise.
326
327 2002-06-03  Marc Espie  <espie@openbsd.org>
328
329         * config/cpu/m68k/bits/atomicity.h(__exchange_and_add): Fix inline
330         assembly for old assemblers.
331
332 2002-06-03  Phil Edwards  <pme@gcc.gnu.org>
333
334         * include/bits/stl_bvector.h (swap(_Bit_reference,_Bit_reference)):
335         Move/rename...
336         (vector<bool>::swap(reference,reference)): ...to this.
337
338 2002-06-03  Phil Edwards  <pme@gcc.gnu.org>
339
340         * docs/doxygen/TODO:  Update.
341         * docs/doxygen/user.cfg.in (SORT_MEMBER_DOCS):  Set to off, now that
342         some class members are in 14882 order.
343         * docs/html/ext/howto.html:  3.1 is in the past now, not the future.
344
345         * include/std/std_bitset.h:  Update comment.
346         * src/bitset.cc:  Update comments, clean up spacing.
347
348         * src/Makefile.am (sources):  Alphabetize for convenience.
349         * src/Makefile.in:  Regenerate.
350
351 2002-06-03  Phil Edwards  <pme@gcc.gnu.org>
352
353         * include/bits/stl_deque.h, include/bits/stl_list.h,
354         include/bits/stl_vector.h:  Reformat to (mostly) match C++STYLE.
355         Reorder to match 14882.  Doxygen blocks for all public members.
356
357 2002-05-31  Marcus Meissner  <meissner@suse.de>
358
359         PR libstdc++/6886
360         * include/bits/stl_bvector.h:  Use UL suffix for unsigned longs.
361         * testsuite/23_containers/vector_bool.cc (test02):  New test.
362
363 2002-05-30  Marc Espie  <espie@openbsd.org>
364
365         * configure.in: Always check for sys/types.h
366         * configure: Regenerate.
367
368 2002-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
369
370         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init):
371         Rebuild the wrapper file every time this proc is called.
372
373 2002-05-28  Phil Edwards  <pme@gcc.gnu.org>
374
375         * testsuite/Makefile.am (noinst_LIBRARIES):  New target.  Pull in
376         CXX/INCLUDES.
377         * testsuite/Makefile.in:  Regenerate.
378         * testsuite/testsuite_hooks.h (gnu_copy_tracker):  Move from
379         list_modifiers.cc and rename from 'T'.  Move code bodies...
380         * testsuite/testsuite_hooks.cc:  ...to here.  New file.
381         * testsuite/23_containers/list_modifiers.cc:  Move 'T' class out.
382         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3_target_compile):
383         Add libv3test.a to link options.
384
385 2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>
386
387         * src/misc-inst.cc: Define unnecessary algorithm
388         instantiations. Break apart instantiations into groupings below.
389         * src/fstream-inst.cc: New.
390         * src/io-inst.cc: New.  
391         * src/istream-inst.cc: New.     
392         * src/ostream-inst.cc: New.             
393         * src/streambuf-inst.cc: New.   
394         * src/sstream-inst.cc: New.             
395         * src/Makefile.am (sources): Add files.
396         * src/Makefile.in: Regenerate.
397
398         * acinclude.m4: Work around automake 1.4-p5 bug, change
399         AM_GNU_GETTEXT in comments to AM-GNU-GETTEXT.
400         
401 2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>
402
403         PR libstdc++/6795.
404         * config/os/solaris/solaris2.6/bits/ctype_noninline.h
405         (classic_table): Fix.
406         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
407         
408 2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>
409
410         * testsuite/22_locale/ctype_is_wchar_t.cc: Guard with
411         _GLIBCPP_USE_WCHAR_T.
412         * testsuite/22_locale/ctype_narrow_wchar_t.cc: Same.
413         * testsuite/22_locale/ctype_to_wchar_t.cc: Same.
414         * testsuite/22_locale/ctype_widen_wchar_t.cc: Same.
415         
416 2002-05-26  Carlo Wood  <carlo@alinoe.com>
417             Paolo Carlini  <pcarlini@unitus.it>
418
419         PR libstdc++/6811
420         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
421         (__enc_traits::operator=): add missing return statement.
422
423 2002-05-24  Phil Edwards  <pme@gcc.gnu.org>
424
425         PR libstdc++/6282
426         * include/std/std_bitset.h (_Base_biteset<0>):  New specialization.
427         (operator>>):  If nothing was extracted, don't fail in the
428         zero-length case.
429         * testsuite/23_containers/bitset_ctor.cc (test02):  New test.
430
431 2002-05-24  Benjamin Kosnik  <bkoz@redhat.com>
432
433         PR libstdc++/6701
434         * testsuite/22_locale/ctype_narrow_char.cc: New.
435         * testsuite/22_locale/ctype_narrow_wchar_t.cc: New.     
436         * testsuite/22_locale/ctype_widen_char.cc: New.
437         * testsuite/22_locale/ctype_widen_wchar_t.cc: New.
438         * testsuite/22_locale/ctype_members_char.cc: Move some bits into...
439         * testsuite/22_locale/ctype_is_char.cc: ...this.
440         * testsuite/22_locale/ctype_to_char.cc: ...and this.
441         * testsuite/22_locale/ctype_members_wchar_t.cc: Move some bits into...
442         * testsuite/22_locale/ctype_is_wchar_t.cc: ...this.
443         * testsuite/22_locale/ctype_to_wchar_t.cc: ...and this.
444
445         * testsuite/22_locale/ctype_scan_wchar_t.cc: Should pass.
446         
447 2002-05-24  Dale Peakall <dale@peakall.net>
448
449         PR libstdc++/6701
450         * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_narrow): Fix.
451         * config/locale/generic/ctype_members.cc: Same.
452         
453 2002-05-24  Benjamin Kosnik  <bkoz@redhat.com>
454
455         PR libstdc++/6750
456         * include/bits/ostream.tcc (ostream::operator<<(const char*)): Fix
457         for empty string literal.
458         (ostream::operator<<(const _CharT*)): Same.
459         (ostream<char>::operator<<(const char*)): Same.
460         (ostream<char>::operator<<(streambuf*)): Same.
461         * testsuite/27_io/ostream_inserter_char.cc (test08): Add tests.
462         * testsuite/27_io/ostream_inserter_other.cc (test02): Modify.
463         
464 2002-05-23  Benjamin Kosnik  <bkoz@redhat.com>
465
466         * configure.in (release_VERSION): Update to 3.1.1.
467         (libtool_VERSION): Update to 4:1:0.
468         * configure: Regenerate.
469         
470 2002-05-21  Phil Edwards  <pme@gcc.gnu.org>
471
472         * include/bits/stl_pair.h:  Tweak comment markup.
473
474 2002-05-21  Phil Edwards  <pme@gcc.gnu.org>
475
476         * include/ext/stdio_filebuf.h:  Add header guards.  Doxygenate.
477
478 2002-05-21  Phil Edwards  <pme@gcc.gnu.org>
479
480         * docs/doxygen/user.cfg.in (EXCLUDE):  Add 'CVS'.
481
482 2002-05-21  Phil Edwards  <pme@gcc.gnu.org>
483
484         * include/bits/stl_vector.h:  Reformat to follow C++STYLE.
485         Doxygenate all public members.  Reorder to follow 14882.
486         (vector::push_back(void)):  Remove previously-deprecated fn.
487         (vector::insert(iterator), vector::_M_insert_aux(iterator)):
488         Deprecate for removal in 3.3.
489
490 2002-05-20  Phil Edwards  <pme@gcc.gnu.org>
491
492         * docs/html/faq/index.html (5.4):  Recommend against -I options for
493         finding the ext headers.
494         * docs/html/faq/index.txt:  Regenerate.
495
496 2002-05-19  Paolo Carlini  <pcarlini@unitus.it>
497
498         * testsuite/23_containers/deque_operators.cc (test01):
499         Fix minor typo in last commit.
500
501 2002-05-18  Paolo Carlini  <pcarlini@unitus.it>
502
503         PR libstdc++/6503
504         * include/bits/stl_deque.h (_Deque_iterator::operator==,
505         operator!=, operator<, operator>, operator>=, operator<=):
506         Make non-member functions, to allow comparing const and
507         non-const iterators in any order.
508         * testsuite/23_containers/deque_operators.cc: New testfile.
509
510 2002-05-16  Phil Edwards  <pme@gcc.gnu.org>
511
512         * docs/html/faq/index.html:  Update not-a-bug list with basic_file.h.
513         * docs/html/faq/index.txt:  Regenerate.
514
515 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
516
517         * Makefile.am: Allow for PWDCMD to override hardcoded pwd.
518         * acinclude.m4: Likewise.
519         * docs/html/Makefile: Likewise.
520         * aclocal.m4: Regenerate.
521         * configure: Regenerate.
522         * Makefile.in: Regenerate.
523
524 2002-05-15  Loren J. Rittle <ljrittle@acm.org>
525
526         libstdc++/6641
527         * include/bits/c++config (__USE_MALLOC): Report case where
528         the user improperly defined it on the command line.
529
530 2002-05-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
531
532         * testsuite/testsuite_hooks.h (__set_testsuite_memlimit):
533         Retrieve current limits before setting.
534
535 2002-05-15  Benjamin Kosnik  <bkoz@redhat.com>
536
537         PR libstdc++/6518
538         * include/bits/ostream.tcc (ostream::operator<<(const char*)): Fix
539         for null case.
540         (ostream::operator<<(const _CharT*)): Same.
541         (ostream<char>::operator<<(const char*)): Same.
542         * testsuite/27_io/ostream_inserter_char.cc (test07): Add test.
543         
544 2002-05-15  Benjamin Kosnik  <bkoz@redhat.com>
545
546         PR libstdc++/6594
547         * src/strstream.cc (strstreambuf): Fix leak.
548
549 2002-05-15  Paolo Carlini  <pcarlini@unitus.it>
550
551         PR libstdc++/6648
552         * include/bits/istream.tcc (istream::getline, ignore):
553         Upon __idelim (__delim) call sbumpc() not snextc().
554         * testsuite/27_io/narrow_stream_objects.cc:
555         Add test08 and test09.
556
557 2002-05-13  Benjamin Kosnik  <bkoz@redhat.com>
558
559         * testsuite/22_locale/ctype_scan_char.cc: Tweak.
560         * testsuite/22_locale/ctype_scan_wchar_t.cc: New.       
561
562         * docs/html/install.html: Fix.
563         
564 2002-05-13  Benjamin Kosnik  <bkoz@redhat.com>
565
566         * include/bits/fstream.tcc
567         (basic_filebuf::_M_allocate_internal_buffer): Remove extraneous
568         try/catch blocks.
569         * src/localename.cc (locale::_Impl::_M_install_facet): Same.
570
571         * docs/html/install.html: Tweak, add bits about required locales
572         for the 22_locale tests when using the gnu model.
573
574         * testsuite/27_io/istream_sentry.cc: Tweak.
575         
576 2002-05-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
577
578         * config/os/irix/irix5.2/bits/ctype_inline.h (scan_is, scan_not):
579         Fix typo, use this->is() rather than manually (and perhaps
580         incorrectly) inlining it.
581         * config/os/irix/irix6.5/bits/ctype_inline.h (scan_is, scan_not):
582         Likewise.
583         * testsuite/22_locale/ctype_scan_char.cc: New file.
584
585 2002-05-13  Paolo Carlini  <pcarlini@unitus.it>
586             Jakub Jelinek  <jakub@redhat.com>
587
588         * testsuite/22_locale/money_get_members_char.cc
589         (test01, test02, test04): Use the de_DE@euro named locale
590         instead of de_DE to allow for an uniform behaviour with
591         both old and Euro-era localedata; tweak some tests.
592         * testsuite/22_locale/money_get_members_wchar_t.cc
593         (test01, test02, test04): Likewise.
594         * testsuite/22_locale/money_put_members_char.cc
595         (test01, test02, test04): Likewise.
596         * testsuite/22_locale/money_put_members_wchar_t.cc
597         (test01, test02, test04): Likewise.
598
599 2002-05-13  Paolo Carlini  <pcarlini@unitus.it>
600
601         * testsuite/22_locale/codecvt_members_char_char.cc
602         (test03): Robustify wrt localedata.
603         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Likewise.
604         * testsuite/22_locale/collate_members_char.cc (test04): Likewise.
605         * testsuite/22_locale/collate_members_wchar_t.cc (test04): Likewise.
606         * testsuite/22_locale/ctype_members_char.cc (test05): Likewise.
607         * testsuite/22_locale/ctype_members_wchar_t.cc (test04): Likewise.
608         * testsuite/22_locale/messages_members_char.cc (test03): Likewise.
609         * testsuite/22_locale/money_get_members_char.cc (test08): Likewise.
610         * testsuite/22_locale/money_get_members_wchar_t.cc (test08): Likewise.
611         * testsuite/22_locale/money_put_members_char.cc (test07): Likewise.
612         * testsuite/22_locale/money_put_members_wchar_t.cc (test07): Likewise.
613         * testsuite/22_locale/moneypunct_members_char.cc (test03): Likewise.
614         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Likewise.
615         * testsuite/22_locale/num_get_members_char.cc (test06): Likewise.
616         * testsuite/22_locale/num_get_members_wchar_t.cc (test06): Likewise.
617         * testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
618         * testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
619         * testsuite/22_locale/numpunct_members_char.cc (test03): Likewise.
620         * testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Likewise.
621         * testsuite/22_locale/time_get_members_char.cc (test08): Likewise.
622         * testsuite/22_locale/time_get_members_wchar_t.cc (test08): Likewise.
623         * testsuite/22_locale/time_put_members_char.cc (test04): Likewise.
624         * testsuite/22_locale/time_put_members_wchar_t.cc (test04): Likewise.
625
626 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
627
628         * config/os/irix/irix5.2/bits/os_defines.h: Revert 2002-05-06
629         change.
630
631 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
632
633         * config/os/gnu-linux/bits/os_defines.h (__glibcpp_long_bits): Define
634         to 64 for hppa 64-bit port.
635         (__glibcpp_long_double_bits): Define to 64 for all hppa ports.
636
637 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
638
639         * acinclude.m4 (enable_symvers): Quote $LD.
640         * aclocal.m4: Regenerate.
641         * configure: Likewise.
642
643 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
644
645         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Append all
646         multilib dirs containing libgcc_s*.so.1 below gcc object dir to
647         LD_LIBRARY_PATH.
648
649 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
650
651         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
652         script entry, and set LD to it when configuring multilibs.
653         * configure: Rebuilt.
654
655 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
656
657         * configure.in: Add support for WindISS.
658         * configure: Regenerated.
659         * configure.target: Add support for WindISS.
660         * config/os/windiss/bits/ctype_base.h: New file.
661         * config/os/windiss/bits/ctype_inline.h: Likewise.
662         * config/os/windiss/bits/ctype_noninline.h: Likewise.
663         * config/os/windiss/bits/os_defines.h: Likewise.
664
665 2002-05-06  Paolo Carlini  <pcarlini@unitus.it>
666
667         Test all the facets for the temporary "C" locale switch issue.
668         * testsuite/22_locale/codecvt_members_char_char.cc: Add test03.
669         * testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
670         * testsuite/22_locale/collate_members_char.cc: Add test04.
671         * testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
672         * testsuite/22_locale/ctype_members_char.cc: Add test05.
673         * testsuite/22_locale/ctype_members_wchar_t.cc: Add test04.
674         * testsuite/22_locale/messages_members_char.cc: Add test03.
675         * testsuite/22_locale/money_get_members_char.cc: Add test08.
676         * testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
677         * testsuite/22_locale/money_put_members_char.cc: Add test07. 
678         * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
679         * testsuite/22_locale/moneypunct_members_char.cc: Add test03.
680         * testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
681         * testsuite/22_locale/num_get_members_char.cc: Add test06.
682         * testsuite/22_locale/num_get_members_wchar_t.cc: Likewise. 
683         * testsuite/22_locale/numpunct_members_char.cc: Add test03.
684         * testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise. 
685         * testsuite/22_locale/time_get_members_char.cc: Add test08.
686         * testsuite/22_locale/time_get_members_wchar_t.cc: Likewise. 
687         * testsuite/22_locale/time_put_members_char.cc: Add test04.
688         * testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
689
690         * testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
691         * testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
692
693 2002-05-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
694
695         * config/os/irix/irix5.2/bits/os_defines.h (_SGI_SOURCE,
696         __EXTENSIONS__): Ensure they are always defined.
697
698 2002-05-06  Phil Edwards  <pme@gcc.gnu.org>
699
700         * docs/html/documentation.html:  Fix broken link.
701
702 2002-05-04  Benjamin Kosnik  <bkoz@redhat.com>
703             Paolo Carlini  <pcarlini@unitus.it>
704
705         * testsuite/22_locale/num_put_members_char.cc: Add test04(),
706         testing for the locale_facets.tcc entry of the previous commit.
707         * testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
708
709 2002-05-04  Takeshi Kobayakawa  <tskoba@mte.biglobe.ne.jp>
710
711         * config/locale/generic/c_locale.cc
712         (__convert_to_v(float, double, long double)):
713         Fix the temporary switch to the "C" locale, saving and
714         restoring in the proper way the current locale.
715         * config/locale/generic/time_members.cc
716         (__timepunct<char, wchar_t>::_M_put): Likewise.
717         * config/locale/gnu/messages_members.cc
718         (messages<char>::do_get): Likewise.
719         * config/locale/gnu/messages_members.h
720         (messages<_CharT>::do_get): Likewise.
721         * config/locale/gnu/time_members.cc
722         (__timepunct<char, wchar_t>::_M_put): Likewise.
723         * include/bits/locale_facets.tcc (__convert_from_v): Likewise.
724
725 2002-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
726
727         * configure.in (AC_CHECK_HEADERS): Check for string.h & stdlib.h.
728         * libsupc++/Makefile.am (LTCOMPILE): Add $(DEFS).
729
730         * Makefile.in, config.h.in, configure: Regenerate.
731
732 2002-05-03  Benjamin Kosnik  <bkoz@redhat.com>
733
734         PR libstdc++/6549.
735         * include/bits/fstream.tcc (filebuf::_M_underflow_common): Revert.
736         * testsuite/27_io/narrow_stream_objects.cc (test07): Add.
737         
738 2002-05-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
739
740         * config/os/irix/irix5.2/bits/ctype_noninline.h (classic_table):
741         Return __ctype + 1.
742         (ctype:_M_table): Initialize to classic_table(), not __ctype.
743
744 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
745
746         * configure.in: Update local install.html, configopts.html paths.
747         * configure: Regenerate.
748
749 2002-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
750
751         * config/os/irix/irix5.2/bits/os_defines.h
752         (__glibcpp_long_double_bits, __glibcpp_long_bits): Define.
753
754         * config/os/irix/irix5.2/bits/ctype_inline.h: Cast to unsigned
755         char.
756
757 2002-05-02  Phil Edwards  <pme@gcc.gnu.org>
758
759         * docs/html/faq/index.html:  Update list in #4.1.
760         * docs/html/faq/index.txt:  Regenerated.
761
762 2002-05-02  Benjamin Kosnik  <bkoz@redhat.com>
763
764         * docs/html/17_intro/RELEASE-NOTES (New): Update.
765
766 2002-05-01  Phil Edwards  <pme@gcc.gnu.org>
767
768         * include/std/std_bitset.h:  Fix doxygen comments.
769         * docs/html/documentation.html:  Minor tweaks for 3.1.
770         * docs/html/27_io/howto.html:  Likewise.
771         * docs/html/ext/howto.html:  Likewise, mention stdio_filebuf.
772         * docs/html/faq/index.html:  Likewise.
773         * docs/html/faq/index.txt:  Regenerated.
774
775 2002-05-01  Benjamin Kosnik  <bkoz@redhat.com>
776
777         PR libstdc++/6533
778         * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get): New.
779         (istreambuf_iterator::equal): Use it.
780         (istreambuf_iterator::operator*): Use it.       
781
782 2002-05-01  Paolo Carlini  <pcarlini@unitus.it>
783
784         PR libstdc++/6513
785         * include/bits/stl_uninitialized.h
786         (uninitialized_copy(_InputIter, _InputIter, _ForwardIter)):
787         Fix typo in 2001-07-17 commit: typedef _ValueType to
788         iterator_traits<_ForwardIter> not <_InputIter>.
789         * testsuite/23_containers/vector_ctor.cc: Add test04.
790
791 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
792         
793         PR libstdc++/6501
794         * include/c_std/std_cctype.h: Include bits/c++config.h.
795         * config/os/hpux/bits/os_defines.h (_SB_CTYPE_MACROS): Define.
796
797 2002-04-30  Benjamin Kosnik  <bkoz@redhat.com>
798
799         * include/ext/stdio_filebuf.h: New file.
800         * include/ext/enc_filebuf.h: New file.  
801         * config/io/basic_file_stdio.h (__basic_file::sys_open): Add fd ctor.
802         * config/io/basic_file_stdio.cc: Same.  
803         * include/bits/fstream.tcc (filebuf::_M_allocate_internal_buffer):
804         Remove _M_unbuf hacks.
805         (filebuf::_M_destroy_internal_buffer): Same.
806         (filebuf::filebuf(cfile, openmode, int_type): Remove definition.
807         (filebuf::fd): Remove.
808         * include/std/std_fstream.h (filebuf::_M_unbuf): Remove.
809         (filebuf::filebuf(__c_file*, openmode, int_type)): Remove.
810         (filebuf::fd): Remove.  
811         * src/ios.cc (ios_base::_S_ios_create): Change to use specialized
812         filebufs.
813         (ios_base::_S_ios_destroy): Same.
814         * src/misc-inst.cc (file_filebuf<char>): Add instantiation.
815         * include/Makefile.am (ext_headers): Add ext_filebuf.h,
816         stdio_filebuf.h.  * include/Makefile.in: Regenerate.
817
818 2002-04-30  Benjamin Kosnik  <bkoz@redhat.com>
819
820         PR libstdc++/6511
821         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Fix typo.
822
823 2002-04-29  Benjamin Kosnik  <bkoz@redhat.com>
824
825         PR libstdc++/5820
826         * include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
827         Check for eof.
828         * include/bits/streambuf_iterator.h: Match stream_iterator.h.
829         (istreambuf_iterator::operator++): Invalidate on eof.
830         (istreambuf_iterator::operator++(int)): Same.
831         (istreambuf_iterator::operator*): Same.
832         
833 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
834
835         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set all
836         of LD_LIBRARY_PATH, SHLIB_PATH, LD_LIBRARYN32_PATH,
837         LD_LIBRARY64_PATH. 
838
839 2002-04-28  Benjamin Kosnik  <bkoz@redhat.com>
840
841         PR libstdc++/5820
842         * config/io/basic_file_stdio.h (__basic_file::sys_getc): Return int.
843         (__basic_file::sys_ungetc): Take int.
844         * config/io/basic_file_stdio.cc (__basic_file::sys_ungetc): Same.
845         * include/bits/fstream.tcc (basic_filebuf::_M_underflow_common):
846         Use sys_getc for unbuffered input.
847         * testsuite/27_io/narrow_stream_objects.cc (test06): New.
848         
849         * src/ios.cc (_M_grow_words): Adjust error checking.
850         * testsuite/27_io/ios_base_storage.cc: Same.
851
852 2002-04-28  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
853
854         * include/ext/stl_hashtable.h: Import __iterator_category
855
856 2002-04-28  Paolo Carlini  <pcarlini@unitus.it>
857             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
858
859         * testsuite/ext/hash_set.cc: New testfile.
860
861 2002-04-27  Benjamin Kosnik  <bkoz@redhat.com>
862
863         * config/os/solaris/solaris2.5/bits/os_defines.h: Remove
864         _G_USING_THUNKS.
865         * config/os/solaris/solaris2.6/bits/os_defines.h: Same.
866         * config/os/solaris/solaris2.7/bits/os_defines.h: Same.
867
868 2002-04-26  Paolo Carlini  <pcarlini@unitus.it>
869
870         * include/bits/basic_string.h (replace(__pos, __n1, __s, __n2):
871         Fix and tighten __throw_length_error check.
872         * testsuite/21_strings/replace.cc (test05): New.
873         * testsuite/21_strings/replace.cc (test02, test03, test04): Tweak.
874
875 2002-04-23  Loren J. Rittle <ljrittle@acm.org>
876
877         * include/std/std_fstream.h (basic_filebuf::sync): Hoist
878         unconditional flush on lower-layer handle to here...
879         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow):
880         ...from here.  Optimize remaining _M_file.sync() call pattern.
881         * testsuite/27_io/narrow_stream_objects.cc (test04): New test.
882         (test05): Likewise.
883
884 2002-04-23  Jason Merrill  <jason@redhat.com>
885
886         * include/bits/fstream.tcc (basic_filebuf::seekoff): Fix for
887         output-only filebufs.
888         * include/std/std_fstream.h (basic_filebuf::_M_set_indeterminate):
889         Likewise.
890         (basic_filebuf::_M_set_determinate): Likewise.
891
892         PR libstdc++/6414
893         * include/bits/fstream.tcc (basic_filebuf::seekoff): Adjust return
894         value properly in the trivial case.
895         * testsuite/27_io/istream_seeks.cc (test04): Make sure that
896         tellg() returns the right value after a read.
897
898 2002-04-23  Hans-Peter Nilsson  <hp@bitrange.com>
899
900         * config/cpu/mmix/bits/cpu_limits.h: New file.
901         * configure.target (CPULIMITSH): Use it.
902
903 2002-04-22  Loren J. Rittle <ljrittle@acm.org>
904
905         * docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.
906         * docs/html/17_intro/porting.html: Rebuilt.
907
908 2002-04-20  Jason Merrill  <jason@redhat.com>
909
910         PR libstdc++/4150
911         * include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate): 
912         Move to filebuf.
913         (basic_streambuf::_M_set_determinate): Likewise.
914         (basic_streambuf::_M_is_indeterminate): Likewise.
915         * include/bits/std_fstream.h (basic_filebuf::_M_filepos): New 
916         non-static data member.
917         (basic_filebuf::_M_underflow_common): New non-static member function.
918         (basic_filebuf::_M_underflow, _M_uflow): Call it.
919         (basic_filebuf::sync): Avoid useless seeking.
920         (basic_filebuf::_M_set_indeterminate): Move here from streambuf.
921         Set _M_filepos.
922         (basic_filebuf::_M_set_determinate): Likewise.
923         (basic_filebuf::_M_is_indeterminate): Likewise.
924         * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek
925         back to _M_out_beg if necessary.
926         (basic_filebuf::seekoff): Likewise.
927         (basic_filebuf::_M_underflow_common): Generalization of old 
928         underflow().  Don't seek back to _M_in_beg.
929         * src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff.
930         * config/os/solaris/solaris2.?/bits/os_defines.h: Likewise.
931         * config/os/bsd/freebsd/bits/os_defines.h: Likewise.
932         * config/os/mingw32/bits/os_defines.h: Likewise.
933         * testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify 
934         ungetc test.
935
936 2002-04-22  Benjamin Kosnik  <bkoz@redhat.com>
937
938         * include/bits/istream.tcc (istream::read): Fix.
939         * testsuite/27_io/istream_unformatted.cc (main): Add.
940
941 2002-04-20  Benjamin Kosnik  <bkoz@redhat.com>
942
943         PR libstdc++/6360
944         * include/bits/istream.tcc (istream::ignore): Streamline, use
945         delimiter as is.
946         * include/bits/streambuf.tcc: Use this->gptr.
947         * testsuite/27_io/istream_unformatted.cc (test08): Add test.
948         
949 2002-04-18  Benjamin Kosnik  <bkoz@redhat.com>
950
951         * include/bits/localefwd.h (locale::id::_M_id): Do this correctly,
952         as type safety is important, especially on solaris.
953         * include/bits/istream.tcc (istream::read): Clean.
954         (istream::readsome): Same.
955         * locale.cc: Wrap lines.
956
957         * testsuite/21_strings/inserters_extractors.cc: Tweaks.
958         * testsuite/27_io/instantiations.cc (test): Add bool variable...
959         * testsuite/21_strings/capacity.cc: Clean.
960                 
961 2002-04-17  Phil Edwards  <pme@gcc.gnu.org>
962
963         * docs/doxygen/doxygroups.cc:  New group on binary searching.
964         * include/bits/stl_algo.h:  Document binary searches and merges.
965         * include/bits/stl_deque.h:  The 'map' member is not the 'map' class.
966
967 2002-04-17  Phil Edwards  <pme@gcc.gnu.org>
968
969         * docs/doxygen/mainpage.html:  Doxygen logo is now a PNG file.
970         * docs/doxygen/run_doxygen:  Bump required version.
971         * docs/doxygen/user.cfg.in:  Revert accidental change.
972         * docs/html/faq/index.html:  Reindent a block of links.
973         (4.4):  New note on using dlsym.
974         * docs/html/faq/index.txt:  Regenerated.
975
976 2002-04-17  Phil Edwards  <pme@gcc.gnu.org>
977
978         * testsuite_flags.in (cxxflags):  Also pass @EXTRA_CXX_FLAGS@.
979
980 2002-04-17  Benjamin Kosnik  <bkoz@redhat.com>
981
982         * config/linker-map.gnu (__malloc_alloc_template): Add.
983         (__default_alloc_template): Same.       
984         * include/bits/stl_alloc.h (__malloc_alloc_template): Add extern
985         template.
986         (__default_alloc_template): Same.
987         
988 2002-04-17  Benjamin Kosnik  <bkoz@redhat.com>
989
990         * testsuite/27_io/filebuf_virtuals.cc: Add _S_pback_size instantiation.
991
992 2002-04-16  Benjamin Kosnik  <bkoz@redhat.com>
993
994         * src/concept-inst.cc (vector<locale::facet*>): Remove instantiations.
995         * src/stl-inst.cc (vector::_M_insert_aux): Remove instantiation.
996         (__malloc_alloc_template): Conditionalize.
997
998         * include/bits/istream.tcc: Remove sputbackc calls.
999
1000         * testsuite/19_diagnostics/stdexceptions.cc: Fix comment.
1001         
1002 2002-04-16  Paolo Carlini <pcarlini@unitus.it>
1003
1004         * testsuite/24_iterators/rel_ops.cc: New test.
1005         
1006 2002-04-16  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1007
1008         * include/bits/type_traits.h (__normal_iterator): Declare in
1009         __gnu_cxx.  Adjust use at global namespace.
1010         * include/bits/stl_iterator.h (__normal_iterator): Move definition
1011         into __gnu_cxx::. Add more operator overloads.  Tidy existing ones.
1012         * include/bits/basic_string.h (basic_string): Adjust use of
1013         __normal_iterator.
1014         * include/bits/stl_vector.h (_Alloc>): Likewise.
1015         * src/concept-inst.cc (__gnu_cxx): __normal_iterator<> is now here.
1016         * src/string-inst.cc (operator==): Instantiate in __gnu_cxx.
1017
1018 2002-04-15  Benjamin Kosnik  <bkoz@redhat.com>
1019
1020         PR libstdc++/4164
1021         Valgrind fixes.
1022         * config/io/basic_file_stdio.cc (__basic_file::~__basic_file):
1023         Call close.
1024         (__basic_file::close): Call fflush. Correct return if fclose ok. 
1025         (__basic_file::is_open): Make const.
1026         Change __c_file_type to __c_file.
1027         * config/io/basic_file_stdio.h: Change __c_file_type to __c_file.
1028         (__basic_file::is_open): Make const.    
1029         * config/io/c_io_stdio.h: Change __c_file_type to __c_file.
1030         * include/std/std_fstream.h (filebuf::_M_allocate_file): Remove.
1031         (filebuf::_M_unbuf): Add.
1032         (filebuf::_M_file): Change to non-pointer.
1033         (filebuf::_M_allocate_pback_buffer): Remove.
1034         * include/bits/fstream.tcc (filebuf::_M_allocate_file): Remove.
1035         (filebuf::_M_allocate_internal_buffer): Use _M_unbuf.
1036         Change initialization list for _M_file change.
1037         (filebuf::_M_allocate_pback_buffer): Remove.
1038         Change _M_file usage to reflect non-pointer data member.
1039         
1040         * config/locale/generic/c_locale.cc
1041         (locale::facet::_S_create_c_locale): Add parameter.
1042         * config/locale/generic/collate_members.cc: Change
1043         _M_compare_helper to _M_compare.
1044         Change _M_transform_helper to _M_transform.
1045         * config/locale/generic/monetary_members.cc: Changeup data types.
1046         Add dtors.
1047         * config/locale/generic/numeric_members.cc: Add dtors.
1048         * config/locale/generic/time_members.cc: Add dtors.
1049         * config/locale/gnu/c_locale.cc: Add parameter.
1050         * config/locale/gnu/collate_members.cc:Change
1051         _M_compare_helper to _M_compare.
1052         Change _M_transform_helper to _M_transform.
1053         * config/locale/gnu/ctype_members.cc: Better error checking.
1054         * config/os/gnu-linux/bits/ctype_noninline.h: Better error checking.
1055         * config/locale/gnu/messages_members.cc: Tweak comment.
1056         * config/locale/gnu/monetary_members.cc: Change data types.
1057         Add dtors.
1058         * config/locale/gnu/numeric_members.cc: Add dtors, better error
1059         checking.
1060         * config/locale/gnu/time_members.cc: Same.
1061         * config/locale/ieee_1003.1-2001/c_locale.cc
1062         (locale::facet::_S_create_c_locale): Add parameter.
1063         * config/locale/ieee_1003.1-2001/c_locale.h: Correct typedef.
1064         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Remove
1065         bogus ctor.
1066         
1067         * include/bits/locale_facets.h (moneypunct): Use string literals.
1068         Don't define dtor.
1069         (numpunct): Same.
1070         (__timepunct): Same.
1071         (locale::_Impl::_M_facets): Change from vector to array.
1072         (locale::_Impl::_M_names): Change from array of strings to array
1073         of string literals.
1074         (locale::facet::_S_create_c_locale): Add parameter.
1075         (locale::locale::_S_num_facets): Move to...
1076         (locale::_Impl::_M_facets_size): Here.
1077         * include/bits/locale_facets.tcc: Fixups for _M_facets, _M_name
1078         changes.
1079         * include/bits/localefwd.h: (locale::id::_M_id): Add member function.
1080         (locale::_Impl::_Impl(facet**, size_t, bool)): Add.
1081         (locale::_Impl::_Impl(string, size_t)): Change to
1082         (locale::_Impl::_Impl(const char*, size_t)): This.
1083         
1084         * include/bits/streambuf.tcc (streambuf::_S_pback_size): Define.
1085         * include/std/std_streambuf.h (streambuf::_M_pback_size): Change to
1086         (streambuf::_S_pback_size): This.
1087
1088         * src/globals.cc: Add pre-allocations for "C" facets.
1089         * src/locale-inst.cc: Remove vector instantiations.
1090         * src/locale.cc: Remove vector include. Fixups for _M_names,
1091         _M_facets changes.
1092         * src/localename.cc: Same.
1093
1094         * include/bits/stl_vector.h: Fix odd formatting.
1095         
1096         * include/bits/basic_string.tcc: Tweak comment.
1097
1098         * libsupc++/new: Make sure parameters are uglified.
1099         * libsupc++/typeinfo: Same.
1100                 
1101         * testsuite/22_locale/num_get_members_char.cc: Fixup.
1102         * testsuite/22_locale/num_get_members_wchar_t.cc: Same.
1103         * testsuite/27_io/filebuf_members.cc: Same.
1104
1105 2002-04-12  Steve Ellcey  <sje@cup.hp.com>
1106
1107         * gcc/libstdc++-v3/config/os/hpux/bits/os_defines.h
1108         (strtoll, strtoull): In 64 bit mode HP-UX (IA64 and HPPA)
1109         does not define strtoll or strtoull, but does define strtol
1110         and strtoul which are the same since in 64 bit mode
1111         sizeof(long) == sizeof(long long).
1112
1113 2002-04-12  Phil Edwards  <pme@gcc.gnu.org>
1114
1115         * include/std/std_bitset.h:  Doxygenate std::bitset<>.  Clean up
1116         trailing spaces, indentation, and macro names.  Make exception
1117         messages more informative.
1118
1119 2002-04-11  Richard Henderson  <rth@redhat.com>
1120
1121         * include/bits/fstream.tcc (basic_filebuf<>::open): Fix & ordering.
1122         * include/bits/ostream.tcc (basic_ostream<>::operator<<(long)): Same.
1123         (basic_ostream<>::operator<<(long long)): Same.
1124
1125 2002-04-11  Richard Henderson  <rth@redhat.com>
1126
1127         * config/linker-map.gnu: Add __gxx_personality_sj0.
1128
1129 2002-04-09  Benjamin Kosnik  <bkoz@redhat.com>
1130
1131         libstdc++/1072
1132         * include/bits/localefwd.h (locale::_Impl::_M_facets): Change from
1133         pointer to vector.
1134         Remove forward declaration of vector.
1135         Include vector.
1136         * include/bits/locale_facets.tcc: Remove vector include.
1137         (use_locale): Adjust.
1138         (has_locale): Adjust.
1139         * src/locale.cc: Adjust.
1140         * src/localename.cc: Same.
1141         
1142 2002-04-09  Benjamin Kosnik  <bkoz@redhat.com>
1143             Richard Henderson  <rth@redhat.com>
1144
1145         * include/bits/sstream.tcc: Clean up bit ops.
1146         * include/bits/fstream.tcc: Same.
1147         
1148 2002-04-09  Jakub Jelinek  <jakub@redhat.com>
1149
1150         * include/bits/locale_facets.h (__num_base::_S_scale_hex): Remove.
1151         (__num_base::_S_scale_oct): Remove.
1152         * src/locale.cc (__num_base::_S_scale_hex): Remove.
1153         (__num_base::_S_scale_oct): Remove.
1154
1155 2002-04-09  Benjamin Kosnik  <bkoz@redhat.com>
1156
1157         libstdc++/6124
1158         * testsuite/23_containers/bitset_members.cc: New test.
1159         * include/std/std_bitset.h (_Bit_count::_S_bit_count): Move..
1160         (_S_bit_count): Here.
1161         (_First_one::_S_first_one): Move...
1162         (_S_first_one): Here.
1163         Format.
1164         * src/bitset.cc: Adjust.
1165         * config/linker-map.gnu: Export.
1166         
1167 2002-04-08  Benjamin Kosnik  <bkoz@redhat.com>
1168
1169         libstdc++/5180
1170         * include/bits/fstream.tcc (filebuf::seekpos): Fix.
1171         * include/std/std_fstream.h: Clean.
1172         * include/bits/ostream.tcc: Remove extraneous variables.
1173         * include/bits/sstream.tcc (stringbuf::seekoff): Be strict about
1174         open modes and which modes.
1175         (stringbuf::seekpos): Same.
1176         * testsuite/27_io/stringbuf_virtuals.cc: New tests.
1177         
1178 2002-04-05  Jonathan Wakely <jw@kayari.org>
1179
1180         * include/bits/stl_algo.h (unique_copy, __gcd, rotate, rotate_copy,
1181         random_shuffle, partition, stable_partition, sort, stable_sort,
1182         partial_sort, partial_sort_copy, nth_element):  Doxygenate.
1183
1184 2002-04-05  David S. Miller  <davem@redhat.com>
1185
1186         * config/os/gnu-linux/bits/os_defines.h
1187         (__glibcpp_long_double_bits): Set to 64 on 32-bit Sparc.
1188
1189 2002-04-04  Benjamin Kosnik  <bkoz@redhat.com>
1190
1191         libstdc++/3457 
1192         via gawrilow@math.tu-berlin.de
1193         * acinclude.m4 (version_specific_libs): Fix combo usage with
1194         --with-gxx-include-dir.
1195         * aclocal.m4: Regenerate.
1196         * configure: Same.
1197         
1198 2002-04-03  Benjamin Kosnik  <bkoz@redhat.com>
1199
1200         As per DR 184, libstdc++/3139
1201         * include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
1202         (numeric_limits<bool>::is_iec559): False.
1203         (numeric_limits<bool>::is_modulo): False.       
1204
1205         * testsuite/27_io/ios_init.cc: Add instantiations.
1206
1207 2002-04-02  Benjamin Kosnik  <bkoz@redhat.com>
1208         
1209         libstdc++/5268
1210         * src/ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls.
1211         * testsuite/27_io/ios_init.cc (tests04): Add test.
1212
1213         libstdc++/3983
1214         * include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove.
1215         (basic_ios::_M_ios_fctype): Consistently name to _M_fctype.
1216         * include/bits/basic_ios.tcc: Same. Remove outdated comments.
1217         * include/bits/istream.tcc: Use _M_fctype, make consistent with
1218         ostream.
1219         * testsuite/27_io/ios_init.cc (tests03): Add test.
1220         
1221 2002-04-02  Phil Edwards  <pme@gcc.gnu.org>
1222
1223         * include/Makefile.am (install-data-local):  Use mkinstalldirs.
1224         * include/Makefile.in:  Regenerate.
1225
1226 2002-04-02  Paolo Carlini  <pcarlini@unitus.it>
1227             Nathan Myers  <ncm@cantrip.org>
1228             Philip Martin  <philip@codematters.co.uk>
1229
1230         * include/bits/basic_string.h
1231         (replace(i1, i2, _CharT* k1, _CharT* k2),
1232         replace(i2, i2, const _CharT* k1, const _CharT* k2),
1233         replace(i1, i2, iterator k1, iterator k2,
1234         replace(i1, i2, const_iterator k1, const_iterator k2):
1235         New specializations to optimize for the common cases of
1236         pointers and iterators.
1237         (replace(pos, n1, s, n2)): Tweak.
1238         * include/bits/basic_string.tcc: Tweak comments.
1239         * testsuite/21_strings/replace.cc (test04): New tests.
1240
1241 2002-04-01  Benjamin Kosnik  <bkoz@redhat.com>
1242
1243         libstdc++/5542
1244         * acinclude: More extensive checks for msgfmt, --enable-nls.
1245         * aclocal.m4: Regenerate.
1246         * configure: Regenerate.
1247
1248 2002-04-01  Phil Edwards  <pme@gcc.gnu.org>
1249
1250         * libsupc++/exception (__verbose_terminate_handler):  Point to docs.
1251         * docs/doxygen/doxygroups.cc:  Doxygen hooks for abi::__cxa_demangle.
1252         * docs/html/18_support/howto.html:  Document the demangler.
1253         * docs/html/17_intro/howto.html:  And link to it.
1254
1255         * docs/doxygen/mainpage.html:  Describe user-vs-maintainer docs.
1256         * docs/doxygen/run_doxygen:  Print user-vs-maintainer.
1257
1258 2002-04-01  Phil Edwards  <pme@gcc.gnu.org>
1259
1260         * config/linker-map.gnu:  Export __verbose_terminate_handler.
1261         * libsupc++/Makefile.am (sources):  Add cxa_demangle.c, dyn-string.c.
1262         Make new LTCOMPILE variable, use it in new special build rules.
1263         * libsupc++/Makefile.in:  Rebuild.
1264         * src/vterminate.cc (__verbose_terminate_handler):  Enable use of
1265         runtime __cxa_demangle.
1266
1267         * docs/html/install.html:  Update prereqs and instructions.
1268         * docs/html/19_diagnostics/howto.html:  Bring naming for
1269         verbose_terminate_handler into line with reality.
1270
1271 2002-04-01  Benjamin Kosnik  <bkoz@redhat.com>
1272         
1273         libstdc++/3129
1274         * include/bits/basic_ios.h (basic_ios::_M_exception): Move.
1275         (basic_ios::_M_streambuf_state): Move.  
1276         * include/bits/ios_base (ios_base): To here.
1277         * include/bits/ios_base.h (ios_base::_S_local_words): To
1278         _S_local_word_size.
1279         (ios_base::_M_word_array): To _M_local_word.
1280         (ios_base::_M_words_limit): To _M_word_size.    
1281         (ios_base::_M_words): To _M_word.               
1282         Comment.
1283         * include/bits/basic_ios.tcc: Adjust.   
1284         * src/ios.cc (ios_base::_M_grow_words): Tweak.
1285         * testsuite/27_io/ios_base_storage.cc: Add tests.
1286
1287         libstdc++/5207
1288         Kenny Simpson <theonetruekenny@yahoo.com>
1289         * include/bits/ios_base.h: Fix.
1290         
1291         Richard Henderson  <rth@redhat.com>
1292         * include/bits/ostream.tcc (ostream::operator<<(_CharT)): Correct
1293         last change.
1294
1295         * include/bits/basic_string.h: Tweak formatting.
1296         
1297 2002-04-01  Paolo Carlini  <pcarlini@unitus.it>
1298
1299         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
1300         (codecvt::do_out, codecvt::do_unshift, codecvt::do_in):
1301         By definition, sizeof(char) == 1.
1302         * include/bits/locale_facets.tcc (money_get::do_get,
1303         money_put::do_put): Ditto.
1304         * testsuite/21_strings/inserters_extractors.cc
1305         (test04): Ditto.
1306
1307 2002-03-30  Richard Henderson  <rth@redhat.com>
1308
1309         PR c++/3719
1310         * libsupc++/eh_personality.cc (__cxa_call_unexpected): Copy handler
1311         data out of the exception struct before calling unexpectedHandler.
1312
1313 2002-03-28  Roger Sayle  <roger@eyesopen.com>
1314
1315         * include/c_std/std_cmath.h:  To prevent problems overloading
1316         g++ builtins, use the double variants from the global namespace
1317         before defining float and long double variants in std::.
1318
1319 2002-03-28  Loren J. Rittle <ljrittle@acm.org>
1320
1321         * testsuite/18_support/numeric_limits.cc (test_extrema): Fix typo.
1322
1323 2002-03-28  Paolo Carlini  <pcarlini@unitus.it>
1324
1325         * testsuite/24_iterators/istream_iterator.cc
1326         (test02): New tests.
1327
1328 2002-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1329             Paolo Carlini  <pcarlini@unitus.it>
1330
1331         * testsuite/22_locale/codecvt_members_unicode_wchar_t.cc
1332         (test01): Protect the test with _GLIBCPP_USE_WCHAR_T;
1333         fix i_lit_base e_lit_base arrays, making them independent
1334         from the endianness of the platform; tweak UCS4 to UCS-4BE.
1335
1336 2002-03-27  Benjamin Kosnik  <bkoz@redhat.com>
1337
1338         * include/bits/ostream.tcc (ostream::operator<<(_CharT)): Always
1339         allocate at least a byte.
1340
1341         * testsuite/18_support/numeric_limits.cc (test_extrema): Make
1342         debugger-friendly.
1343         * testsuite/27_io/streambuf.cc (test07): Fix.
1344         (test06): Enable.
1345
1346 2002-03-27  Phil Edwards  <pme@gcc.gnu.org>
1347
1348         * docs/doxygen/Intro.3:  Date tweak.
1349         * docs/doxygen/TODO:  Update.
1350         * docs/doxygen/doxygroups.cc:  Point to tables.html.
1351         * docs/doxygen/mainpage.html:  Date tweak.
1352         * docs/doxygen/run_doxygen:  Version tweak.  Copy tables.html over.
1353         * docs/doxygen/tables.html:  Fill in the blanks.
1354
1355         * docs/doxygen/user.cfg.in (ALIASES):  Remove maint and endmaint.
1356         * include/bits/stl_algo.h:  Likewise; use expanded form.
1357         * include/bits/stl_alloc.h:  Likewise.
1358         * include/bits/stl_construct.h:  Likewise.
1359         * include/bits/stl_deque.h:  Likewise.
1360         * include/bits/stl_iterator_base_types.h:  Likewise.
1361         * include/bits/stl_list.h:  Likewise.
1362         * include/bits/stl_relops.h:  Likewise.
1363         * include/bits/stl_tempbuf.h:  Likewise.
1364         * include/bits/stl_vector.h:  Likewise.
1365         * include/std/std_memory.h:  Likewise.
1366
1367         * include/bits/stl_deque.h:  Point into tables.html and add @ingroup.
1368         * include/bits/stl_list.h:  Likewise.
1369         * include/bits/stl_vector.h:  Likewise.
1370
1371 2002-03-26  Benjamin Kosnik  <bkoz@redhat.com>
1372
1373         * include/c/: Guard with _CPP_.
1374         * include/c_std/: Same.
1375         * include/Makefile.am: Fixup install, link routines for null
1376         c_base_headers_extra scenarios.
1377         * include/Makefile.in: Regerate.
1378
1379 2002-03-25  Paolo Carlini <pcarlini@unitus.it>
1380             Richard Henderson  <rth@redhat.com>
1381
1382         * testsuite/22_locale/codecvt_members_unicode_char.cc
1383         (test01, test02): make sure that the i_lit_base array
1384         is sufficiently aligned.
1385
1386 2002-03-25  Benjamin Kosnik  <bkoz@redhat.com>
1387
1388         * config/os/newlib/bits/ctype_noninline.h (ctype::classic): Set to
1389         _ctype_.
1390
1391 2002-03-25  Paolo Carlini  <pcarlini@unitus.it>
1392
1393         * testsuite/22_locale/collate_byname.cc
1394         (test01): compare the result of collate::compare with
1395         that of collate::transform + string::compare, not with
1396         that of collate::transform + collate::compare; values
1397         returned by collate::compare are normalized, therefore
1398         test against +-1.
1399
1400 2002-03-25  Benjamin Kosnik  <bkoz@redhat.com>
1401             Jakub Jelinek  <jakub@redhat.com>
1402
1403         * config/locale/gnu/messages_members.h: Correct conditional.
1404         * config/locale/gnu/messages_members.cc: Same.
1405         * config/locale/gnu/time_members.cc: Same.
1406
1407 2002-03-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1408             Paolo Carlini  <pcarlini@unitus.it>
1409
1410         * testsuite/22_locale/codecvt_members_unicode_char.cc
1411         (test01, test02): Fix i_lit_base arrays, making them
1412         independent from the endianness of the platform.
1413
1414 2002-03-22  Benjamin Kosnik  <bkoz@redhat.com>
1415
1416         * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_SUPP): Just test for
1417         signbit and __signbit directly.
1418         * aclocal.m4: Regenerate.
1419         * configure: Regenerate.
1420         * config.h.in: Regenerate.
1421         * libmath/Makefile.am: Simplify.
1422         * libmath/Makefile.in: Regenerate.
1423         * include/c_std/std_cmath.h: Update paths for include of cmath.tcc.
1424
1425         * include/Makefile.am: Clean up handling of extra "C" header files.
1426         Add hooks for "C" compatibility headers.
1427         * include/Makefile.in: Regenerate.
1428
1429         * include/c/*: Formatting tweaks, cleanups.
1430         * include/c_std/*: Same.
1431
1432 2002-03-22  Benjamin Kosnik  <bkoz@redhat.com>
1433
1434         * config/locale/gnu/messages_members.h: Add __uselocale bits.
1435         * config/locale/gnu/messages_members.cc: Same.
1436         * config/locale/gnu/time_members.cc: Same.
1437
1438 2002-03-22  Benjamin Kosnik  <bkoz@redhat.com>
1439
1440         * src/vterminate.cc: Format, -fno-exceptions cleanup.
1441
1442 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1443
1444         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_DECL_AND_LINKAGE_3): New.
1445         (GLIBCPP_CONFIGURE_TESTSUITE): Use it to check for setenv.
1446         * aclocal.m4: Regenerate.
1447         * configure: Likewise.
1448
1449 2002-03-19  Paolo Carlini  <pcarlini@unitus.it>
1450             Ulrich Drepper  <drepper@redhat.com>
1451
1452         * src/locale-inst.cc (__convert_from_v): Add an additional
1453         __size parameter in the declarations.
1454         * include/bits/locale_facets.tcc
1455         (__convert_from_v): When available (that is,
1456         _GLIBCPP_USE_C99 defined) use snprintf instead of sprintf.
1457         (num_put::_M_convert_float): Depending on _GLIBCPP_USE_C99
1458         being defined or not, call and use __convert_from_v in the
1459         appropriate way.
1460         (num_put::_M_convert_int): Same here.
1461         (money_put::do_put(long double)): Same here.
1462
1463 2002-03-19  Phil Edwards  <pme@gcc.gnu.org>
1464
1465         * docs/html/faq/index.html (#3.6):  Rewrap and close <a href> tags.
1466         * docs/html/faq/index.txt:  Regenerate.
1467
1468 2002-03-19  Steve Ellcey  <sje@cup.hp.com>
1469
1470         * acinclude.m4 (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Define
1471         GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS to set LIBUNWIND_FLAG if
1472         --enable-libunwind-exceptions is set.
1473         * configure.in (GLIBCPP_ENABLE_LIBUNWIND_EXCEPTIONS): Call new
1474         macro to check for libunwind.
1475         * configure: Regenerate.
1476         * src/Makefile.am (libstdc___la_LDFLAGS): Add
1477         LIBUNWIND_FLAG to libstdc link line.
1478         * src/Makefile.in: Regenerate.
1479
1480 2002-03-19  Benjamin Kosnik  <bkoz@redhat.com>
1481
1482         * docs/html/faq/index.html: Add OS X workaround.
1483         * docs/html/17_intro/TODO: Update.
1484
1485 2002-03-18  Paolo Carlini  <pcarlini@unitus.it>
1486
1487         * include/bits/locale_facets.tcc
1488         (money_put::do_put(long double)): Fix dimensioning of
1489         temporary buffers to avoid risk of overruns.
1490         (money_put::do_put(string)): Same for the buffer used to
1491         add the grouping chars.
1492         * testsuite/22_locale/money_put_members_char.cc: Add test06.
1493         * testsuite/22_locale/money_put_members_wchar_t.cc: Ditto.
1494
1495         * include/bits/locale_facets.tcc
1496         (collate::do_transform): Simplify.
1497
1498 2002-03-18  Phil Edwards  <pme@gcc.gnu.org>
1499
1500         * acinclude.m4 (GLIBCPP_CONFIGURE):  Make indentation/spacing uniform.
1501         * configure.in:  Add comments pointing the way for autoconf 2.5x.
1502         * aclocal.m4, config.h.in, configure:  Regenerate.
1503
1504 2002-03-18  Philipp Thomas  <pthomas@suse.de>
1505
1506         * include/backward/hash_map.h: hash, hashtable, hash_map and
1507         hash_multimap are in namespace __gnu_cxx.
1508         include/backward/hash_set.h: hash, hashtable, hash_set and
1509         hash_multiset are in namespace __gnu_cxx.
1510         include/backward/hashtable.h: hash and hashtable are in
1511         namespace __gnu_cxx.
1512         include/backward/rope.h: char_producer, sequence_buffer,
1513         rope, crope and wrope are in namespace __gnu_cxx.
1514         include/backward/slist.h: slist is in namespace __gnu_cxx.
1515         * testsuite/backward/header_hash_map_h.cc
1516         testsuite/backward/header_hash_set_h.cc
1517         testsuite/backward/header_hashtable_h.cc
1518         testsuite/backward/header_rope_h.cc
1519         testsuite/backward/header_slist_h.cc
1520         testsuite/backward/header_tempbuf_h.cc: New tests for
1521         checking that we're using the correct namespace.
1522
1523 2002-03-17  Jason Merrill  <jason@redhat.com>
1524
1525         PR c++/4381
1526         * libsupc++/eh_personality.cc (get_adjusted_ptr): New static fn.
1527         (check_exception_spec): Call it.  Take the thrown pointer.
1528         (__cxa_call_unexpected): Pass it.
1529         (PERSONALITY_FUNCTION): Likewise.  Use get_adjusted_ptr.
1530
1531 2002-03-15  Anthony Green  <green@redhat.com>
1532
1533         * configure.in: Remove useless is_mingw32.
1534         * configure: Rebuilt.
1535
1536 2002-03-15  Paolo Carlini  <pcarlini@unitus.it>
1537
1538         * testsuite/22_locale/collate_members_char.cc
1539         (test01): compare the result of collate::compare with
1540         that of collate::transform + string::compare, not with
1541         that of collate::transform + collate::compare.
1542         (test01): values returned by collate::compare are
1543         normalized, therefore test against +-1.
1544         * testsuite/22_locale/collate_members_wchar_t.cc: Ditto.
1545
1546 2002-03-12  Loren Rittle  <ljrittle@acm.org>
1547
1548         reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1549         * testsuite/thread/pthread4.cc: Lower nominal iteration counter.
1550
1551 2002-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1552             Per Liboriussen  <liborius@stofanet.dk>
1553
1554         * config/os/gnu-linux/bits/ctype_noninline.h: Cast to
1555         unsigned char.
1556         * config/os/gnu-linux/bits/ctype_inline.h: Same.
1557
1558         * config/os/irix/irix6.5/bits/ctype_inline.h: Same.
1559
1560         * config/os/solaris/solaris2.5/bits/ctype_inline.h: Same.
1561         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
1562
1563         * config/os/solaris/solaris2.6/bits/ctype_inline.h: Same.
1564         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
1565
1566         * config/os/solaris/solaris2.7/bits/ctype_inline.h: Same.
1567         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
1568
1569         * testsuite/22_locale/ctype_members_char.cc (main): Add tests.
1570
1571 2002-03-12  Benjamin Kosnik  <bkoz@redhat.com>
1572
1573         * include/bits/basic_string.tcc (string::_S_construct(_InIter,
1574         _InIter, const _Alloc&, forward_iterator_tag): Check for null.
1575         (string::basic_string(const _CharT* __s, const _Alloc& __a)): Same.
1576         * testsuite/21_strings/ctor_copy_dtor.cc (test01): Re-enable, now
1577         that memory limits are in place.
1578         (test03): Add tests.
1579
1580 2002-03-11  Benjamin Kosnik  <bkoz@redhat.com>
1581
1582         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
1583         * aclocal.m4: Regenerate.
1584         * config.h.in: Regenerate.
1585         * configure: Regenerate.
1586         * include/c_std/std_cwctype.h: Guard.
1587
1588 2002-03-11  Chris Demetriou  <cgd@broadcom.com>
1589
1590         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Enhance check for
1591         whether GLIBCPP_CHECK_LINKER_FEATURES has been used.
1592         * aclocal.m4: Regenerate.
1593         * configure: Regenerate.
1594
1595 2002-03-11  Benjamin Kosnik  <bkoz@redhat.com>
1596
1597         * include/bits/stl_bvector.h: Fix warning.
1598
1599 2002-03-11  Richard Henderson  <rth@redhat.com>
1600
1601         * include/bits/stl_bvector.h (_Bit_type): New.  Use throughout.
1602
1603 2002-03-11  Phil Edwards  <pme@gcc.gnu.org>
1604
1605         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-list-sourcefiles):
1606         New function.  Build the list of tests to run in testsuite_files.
1607         * testsuite/libstdc++-v3.dg/dg.exp:  Use it.
1608
1609 2002-03-11  Phil Edwards  <pme@gcc.gnu.org>
1610
1611         * testsuite/21_strings/capacity.cc:  Only explicitly instantiate on
1612         platforms with no weak support.
1613         * testsuite/27_io/ios_init.cc:  Likewise.
1614
1615 2002-03-10  Paolo Carlini  <pcarlini@unitus.it>
1616
1617         * include/bits/locale_facets.tcc (time_put::do_put):
1618         Consider sizeof(char_type) in allocating the buffer.
1619
1620         * include/bits/locale_facets.tcc (collate::do_tranform):
1621         Remove redundant variable.
1622
1623 2002-03-10  Ulrich Drepper  <drepper@redhat.com>
1624             Paolo Carlini  <pcarlini@unitus.it>
1625
1626         * config/locale/generic/collate_members.cc
1627         (collate<char,wchar_t>::_M_compare_helper): normalize
1628         values returned by strcoll and wcscoll.
1629         * config/locale/gnu/collate_members.cc
1630         (collate<char,wchar_t>::_M_compare_helper): ditto
1631         for __strcoll_l and __wcscoll_l.
1632
1633 2002-03-10  Anthony Green  <green@redhat.com>
1634
1635         * configure.in: Support cross builds to mingw32 target.
1636         * configure: Rebuilt.
1637
1638 2002-03-09  Paolo Carlini  <pcarlini@unitus.it>
1639
1640         * include/bits/locale_facets.tcc (collate::do_transform):
1641         Rewrite to fix problems with long transformed strings.
1642
1643 2002-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1644
1645         * c_locale_generic.cc: Move to...
1646         * generic/c_locale.cc
1647         * c_locale_generic.h: Move to...
1648         * generic/c_locale.h
1649         * codecvt_specializations_generic.h: Move to...
1650         * generic/codecvt_specializations.h
1651         * collate_members_generic.cc: Move to...
1652         * generic/collate_members.cc
1653         * ctype_members_generic.cc: Move to...
1654         * generic/ctype_members.cc
1655         * messages_members_generic.cc: Move to...
1656         * generic/messages_members.cc
1657         * messages_members_generic.h: Move to...
1658         * generic/messages_members.h
1659         * moneypunct_members_generic.cc: Move to...
1660         * generic/monetary_members.cc
1661         * numpunct_members_generic.cc: Move to...
1662         * generic/numeric_members.cc
1663         * time_members_generic.cc: Move to...
1664         * generic/time_members.cc
1665         * c_locale_gnu.cc: Move to...
1666         * gnu/c_locale.cc
1667         * c_locale_gnu.h: Move to...
1668         * gnu/c_locale.h
1669         * collate_members_gnu.cc: Move to...
1670         * gnu/collate_members.cc
1671         * ctype_members_gnu.cc: Move to...
1672         * gnu/ctype_members.cc
1673         * messages_members_gnu.cc: Move to...
1674         * gnu/messages_members.cc
1675         * messages_members_gnu.h: Move to...
1676         * gnu/messages_members.h
1677         * moneypunct_members_gnu.cc: Move to...
1678         * gnu/monetary_members.cc
1679         * numpunct_members_gnu.cc: Move to...
1680         * gnu/numeric_members.cc
1681         * time_members_gnu.cc: Move to...
1682         * gnu/time_members.cc
1683         * c_locale_ieee_1003.1-200x.cc: Move to...
1684         * ieee_1003.1-2001/c_locale.cc
1685         * c_locale_ieee_1003.1-200x.h: Move to...
1686         * ieee_1003.1-2001/c_locale.h
1687         * codecvt_specializations_ieee_1003.1-200x.h: Move to...
1688         * ieee_1003.1-2001/codecvt_specializations.h
1689         * messages_members_ieee_1003.1-200x.cc: Move to...
1690         * ieee_1003.1-2001/messages_members.cc
1691         * messages_members_ieee_1003.1-200x.h: Move to...
1692         * ieee_1003.1-2001/messages_members.h
1693
1694         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Make consistent.
1695         * aclocal.m4: Regenerate.
1696         * configure: Regenerate.
1697         * src/Makefile.am (sources): Change to monetary and numeric.
1698         * src/Makefile.in: Regenerate.
1699         * docs/html/configopts.html: Update to ieee_1003.1-2001.
1700
1701 2002-03-08  scott snyder  <snyder@fnal.gov>
1702
1703         libstdc++/5875
1704         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
1705         Allow one more digit of precision.
1706         * testsuite/27_io/ostream_inserter_arith.cc: Test that we can
1707         write a double and read back in the same value.
1708
1709 2002-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1710
1711         * include/std/std_limits.h: Move static const data members out of
1712         generic template, into base class __numeric_limits_base.
1713         * src/limits.cc: Add definitions.
1714         * config/linker-map.gnu: Add __numeric_limits_base.
1715         * testsuite/18_support/numeric_limits.cc: Declare test in scope.
1716
1717 2002-03-07  Benjamin Kosnik  <bkoz@redhat.com>
1718
1719         * include/bits/stl_alloc.h: Add extern implicit allocator
1720         instantiations.
1721         * include/bits/basic_string.tcc: Tweak.
1722         * include/bits/locale_facets.tcc: Remove default args. Add
1723         has_facet, use_facet extern instantiations.
1724         * src/stl-inst.cc: Add explicit instantiation.
1725         * src/locale-inst.cc: Clean. Remove locale member template
1726         instantiations.
1727
1728         * testsuite/22_locale/operators.cc (test02): Enable.
1729
1730 2002-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1731             Stephen M. Webb  <stephen.webb@bregmasoft.com>
1732
1733         * include/bits/stl_tree.h (_S_rb_tree_red): Make enum.
1734         (_S_rb_tree_black): Make enum.
1735         Clean. Format.
1736         * include/bits/stl_bvector.h (__WORD_BIT): To _M_word_bit, enum.
1737         * include/bits/stl_algo.h (__stl_chunk_size): _M_chunk_size, enum.
1738         (__stl_threshold): _M_threshold, enum.
1739         * src/stl-inst.cc: Same.
1740         * config/linker-map.gnu: Remove.
1741
1742         * testsuite/23_containers/vector_bool.cc: New.
1743
1744 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
1745
1746         * docs/doxygen/user.cfg.in:  Also document deprecated entries.
1747         * docs/html/Makefile:  Example rule to rebuild porting-howto.html.
1748         * docs/html/17_intro/howto.html:  "gcc"->"GCC" changes, when
1749         referring to the collection as a whole.  New section on which macros
1750         can be redefined by the user.
1751         * docs/html/19_diagnostics/howto.html:  Update note for concepts.
1752         * docs/html/20_util/howto.html:  Update link to SGI.
1753         * docs/html/faq/index.html:  Update snapshot versions.  New entry
1754         on why g++ (but not gcc) must currently predefine certain macros.
1755         * docs/html/faq/index.txt:  Regenerated.
1756
1757         * include/bits/basic_string.h (basic_string::_S_construct):  Fix
1758         names in declaration.
1759         (basic_string::compare):  These are no longer optional.
1760         * include/bits/ostream.tcc:  Tweak closing brace placement.
1761         * include/bits/stl_algo.h:  Lots of initial doxygen comment hooks.
1762         * include/std/std_sstream.h:  Fix typo in comment.
1763         * include/bits/locale_facets.tcc:  Remove unneeded header inclusion.
1764         * src/locale.cc:  Likewise.
1765
1766 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
1767
1768         PR libstdc++/5734
1769         * include/bits/stl_vector.h (vector::push_back()):  Guard with
1770         _GLIBCPP_DEPRECATED.
1771
1772 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
1773
1774         * include/bits/c++config:  Fix misplaced leading blanks on first line.
1775
1776 2002-03-05  Benjamin Kosnik  <bkoz@redhat.com>
1777
1778         * docs/html/17_intro/RELEASE-NOTES: Fix usage.
1779         * README (libmath): Make clear.
1780
1781 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1782
1783         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Check for version
1784         script globbing in ld.
1785         * aclocal.m4: Rebuilt.
1786         * configure: Rebuilt.
1787
1788 2002-03-05  Benjamin Kosnik  <bkoz@redhat.com>
1789
1790         * docs/html/17_intro/RELEASE-NOTES: Update.
1791         * README: Format subdirectories.
1792
1793 2002-03-05  Paolo Carlini  <pcarlini@unitus.it>
1794
1795         libstdc++/5816
1796         * include/bits/locale_facets.tcc
1797         (num_get::_M_extract_float): Fix the parsing of __dec, since
1798         the standard prescribes that if no grouping characters are
1799         seen, no grouping check is applied.
1800         * testsuite/22_locale/num_get_members_char.cc: Add test05
1801         distilled from the PR.
1802         * testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
1803
1804 2002-03-04  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1805
1806         * docs/html/17_intro/porting-howto.xml: Refer to
1807         http://www.oasis-open.org for docbookx.dtd.
1808         * docs/html/17_intro/porting-howto.html: Regenerated.
1809
1810 2002-03-03  Phil Edwards  <pme@gcc.gnu.org>
1811
1812         PR libstdc++/3955
1813         * include/std/std_sstream.h:  Remove trailing spaces.
1814         (basic_stringbuf::_M_stringbuf_init):  Also check for ios_base::app.
1815         * testsuite/27_io/stringbuf.cc (test05, test06):  New tests.
1816
1817 2002-03-02  Paolo Carlini  <pcarlini@unitus.it>
1818
1819         * testsuite/22_locale/num_get_members_char.cc (test04):
1820         Use a named locale expecting grouping (de_DE).
1821         * testsuite/22_locale/num_get_members_wchar_t.cc (test04):
1822         Ditto.
1823         * testsuite/27_io/ios_manip_basefield.cc (test01):
1824         Extend coverage, uniform treatment of hexs and octs.
1825
1826 2002-02-28  Richard Henderson  <rth@redhat.com>
1827
1828         * config/linker-map.gnu: Export operator new with unsigned long,
1829         and with std::nothrow_t.  Likewise operator delete.
1830
1831 2002-02-28  Paolo Carlini  <pcarlini@unitus.it>
1832
1833         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1834         Admit grouping for octals and hexadecimals too.
1835         * testsuite/22_locale/num_get_members_char.cc: Add test04.
1836         (test01): Tweak "." -> "," in void* test.
1837         * testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
1838
1839         * testsuite/27_io/ios_manip_basefield.cc: Remove static keyword.
1840         * testsuite/27_io/ios_manip_fmtflags.cc: Remove two of them.
1841
1842 2002-02-27  Paolo Carlini  <pcarlini@unitus.it>
1843
1844         * testsuite/27_io/ios_manip_basefield.cc (test01):
1845         Fix for 64 bit machines.
1846
1847 2002-02-26  Benjamin Kosnik  <bkoz@redhat.com>
1848
1849         libstdc++/3983
1850         * include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
1851         Adjust comment.
1852         * include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
1853         (basic_ios::_M_fill_init): New.
1854         (basic_ios::fill()): Delay dealing with _M_fill.
1855         Adjust comment.
1856         * ios.cc (ios_base::ios_base()): Initialize _M_callbacks, _M_words.
1857         (ios_base::_M_call_callbacks): Adjust.
1858         * testsuite/27_io/ios_init.cc (test02): Adjust testcase.
1859
1860 2002-02-26  Loren Rittle  <ljrittle@acm.org>
1861
1862         * include/Makefile.am (thread_target_headers): Unconditionally
1863         stage and install gthr-posix.h.
1864         (${target_builddir}/gthr-posix.h): New rule cloned off
1865         ${target_builddir}/gthr-default.h.
1866         (${target_builddir}/gthr-default.h): Support chained inclusion
1867         of gthr support headers.
1868         * include/Makefile.in: Rebuilt.
1869
1870 2002-02-26  Paolo Carlini  <pcarlini@unitus.it>
1871
1872         * include/bits/locale_facets.tcc (num_put::_M_widen_int):
1873         Group all the integral types, not only decs.
1874         * testsuite/27_io/ios_manip_basefield.cc (test01): Tweak existing
1875         tests, add a few more.
1876
1877 2002-02-25  Benjamin Kosnik  <bkoz@redhat.com>
1878
1879         * src/ios.cc (ios_base::~ios_base): Tweak.
1880         (ios_base::_M_call_callbacks): Deal with null __p.
1881         (ios_base::ios_base): Set _M_callbacks.
1882         * include/bits/basic_ios.tcc (basic_ios::init): Adjust comment.
1883         * testsuite/27_io/ios_init.cc (test02): Fix.
1884
1885         * mkcheck.in (static_fail): Failed links go to output file.
1886
1887 2002-02-25  Phil Edwards  <pme@gcc.gnu.org>
1888
1889         * docs/html/faq/index.html:  Update.
1890         * docs/html/faq/index.txt:  Regenerate.
1891
1892 2002-02-22  Phil Edwards  <pme@gcc.gnu.org>
1893
1894         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS):  Fix comment.
1895         * aclocal.m4:  Regenerate.
1896         * docs/html/configopts.html:  Document --enable-symvers.
1897         * config/linker-map.gnu:  Break libsupc++ symbols out to their own tag.
1898
1899 2002-02-22  Philipp Thomas  <pthomas@suse.de>
1900
1901         * include/backward/tempbuf.h: get_temporary_buffer and
1902         return_temporary_buffer are in namespace std, not in __gnu_cxx.
1903
1904 2002-02-21  Benjamin Kosnik  <bkoz@redhat.com>
1905
1906         * configure.in (target_alias): Default to yes.
1907         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared
1908         libgcc to default case.
1909
1910 2002-02-20  Phil Edwards  <pme@gcc.gnu.org>
1911
1912         * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES):  Also check version.
1913         (GLIBCPP_ENABLE_SYMVERS):  Redo logic, use linker version.
1914         * configure.in (GLIBCPP_ENABLE_SYMVERS):  Move later in the script.
1915         * aclocal.m4:  Regenerate.
1916         * configure:  Regenerate.
1917         * config/linker-map.dummy:  New file.  Contains nothing useful.
1918
1919 2002-02-20  Benjamin Kosnik  <bkoz@redhat.com>
1920
1921         * testsuite/22_locale/money_put_members_char.cc: Fix.
1922         * testsuite/22_locale/money_put_members_wchar_t.cc: Fix.
1923
1924         * testsuite/27_io/standard_manipulators.cc: New file.
1925
1926         * testsuite/27_io/ios_manip_basefield.cc: Check results, now failing.
1927         * testsuite/27_io/ios_manip_fmtflags.cc: Use locale::classic().
1928
1929 2002-02-20  Danny Smith  <dannysmith@users.sourceforge.net>
1930
1931         * config/os/mingw32/bits/ctype_noninline.h
1932         (ctype<char>::ctype): Remove default args from parm list.
1933         * config/os/djgpp/bits/ctype_noninline.h: Same.
1934
1935 2002-02-19  Benjamin Kosnik  <bkoz@redhat.com>
1936
1937         * include/std/std_iomanip.h: Inline, tweaks.
1938         * config/linker-map.gnu: Remove hacks.
1939
1940         * testsuite/21_strings/capacity.cc: Add explicit instantiations.
1941         * testsuite/27_io/ios_init.cc: Same.
1942         * testsuite/22_locale/money_get_members_char.cc (test07): Fix.
1943         * testsuite/22_locale/money_get_members_wchar_t.cc (test07): Same.
1944
1945 2002-02-19  Benjamin Kosnik  <bkoz@redhat.com>
1946
1947         * config/linker-map.gnu: Export global vtable, typeinfo, guard
1948         variable, and thunk info as per CXXABI docs.
1949
1950 2002-02-19  Loren Rittle <ljrittle@acm.org>
1951
1952         * include/Makefile.am: Use CONFIG_HEADER instead of ad hoc names.
1953         * include/Makefile.in: Rebuilt.
1954
1955 2002-02-18  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1956
1957         * testsuite/22_locale/collate_byname.cc (test01): Replace size4
1958           with size3 for the string collations of str5.
1959
1960 2002-02-18  Paolo Carlini  <pcarlini@unitus.it>
1961
1962         libstdc++/5708
1963         * include/bits/locale_facets.tcc (money_put::do_put):
1964         For the space field use __fill instead of ' ', uniformly.
1965         * testsuite/22_locale/money_put_members_char.cc:
1966         Add test05 distilled from PR.
1967         (test01-02-03): Trim some '*' to ' '.
1968         * testsuite/22_locale/money_put_members_wchar_t.cc: Ditto.
1969
1970 2002-02-18  Loren Rittle <ljrittle@acm.org>
1971
1972         libstdc++/5697
1973         * include/Makefile.am (thread_builddir): Remove (map all
1974         existing uses to target_builddir).
1975         (thread_headers): Rename to...
1976         (thread_target_headers): ...this.
1977         (stamp-thread): Remove.
1978         (stamp-target): Correctly state the position as built.
1979         Update all dependencies to match the new reality.  Remove all
1980         dependency calculations on directories.
1981         * include/Makefile.in: Rebuilt.
1982
1983 2002-02-16   Benjamin Kosnik  <bkoz@redhat.com>
1984
1985         * include/bits/locale_facets.tcc: Add pragma GCC system_header.
1986         * include/bits/fstream.tcc: Same.
1987         * include/bits/sstream.tcc: Same.
1988         * include/bits/ostream.tcc: Same.
1989         * include/bits/istream.tcc: Same.
1990         * include/bits/streambuf.tcc: Same.
1991         * include/bits/basic_ios.tcc: Same.
1992         * include/bits/basic_string.tcc: Same.
1993
1994 2002-02-15  Benjamin Kosnik  <bkoz@redhat.com>
1995
1996         * include/std/std_iosfwd.h: Don't guard typedefs with
1997         _GLIBCPP_USE_WCHAR_T
1998         * include/bits/stringfwd.h: Same.
1999
2000 2002-02-15  Benjamin Kosnik  <bkoz@redhat.com>
2001
2002         * src/locale.cc (moneypunct_byname): Remove definitions.
2003         * include/std/std_streambuf.h (streambuf::operator=): Return.
2004
2005 2002-02-15  Benjamin Kosnik  <bkoz@redhat.com>
2006
2007         Tune for size.
2008         * src/string-inst.cc (string::_Rep::_S_terminal): Remove redundant
2009         explicit instantiation.
2010         (string::_Rep::_S_max_size): Same.
2011         * include/bits/basic_string.tcc: Add extern explicit
2012         instantiations for string, wstring.
2013         * include/bits/basic_ios.tcc: Add extern explicit instantiations
2014         for ios, wios.
2015         * include/bits/streambuf.tcc: Same, for streambuf, wstreambuf.
2016         * include/bits/istream.tcc: Same, for istream, wistream.
2017         * include/bits/ostream.tcc: Same for ostream, wostream, iostream,
2018         wiostream.
2019         * include/bits/sstream.tcc: Same, for stringbuf, wstringbuf,
2020         istringstream, wistringstream, ostringstream, wostringstream,
2021         stringstream, wstringstream.
2022         * include/bits/fstream.tcc: Same, for filebuf, wfilebuf, ifstream,
2023         wifstream, ofstream, wofstream, fstream, wfstream.
2024         * src/misc-inst.cc: Correct comments.
2025         Add iomanip instantiations for wide streams.
2026         * include/std/std_iomanip.h: Same.
2027         * include/bits/locale_facets.tcc: Same.
2028
2029         * include/std/std_streambuf.h: Correct
2030         _GLIBCPP_FULLY_COMPLIANT_HEADERS guard.
2031         * include/std/std_sstream.h: Same.
2032         * include/std/std_ostream.h: Same.
2033         * include/std/std_istream.h: Same.
2034         * include/std/std_fstream.h: Same.
2035
2036         * include/std/std_streambuf.h: Add definitions for private copy
2037         ctor and assignment operator.
2038         * include/std/std_istream.h: Remove declared but undefined copy
2039         ctor and assignment operator. This is taken care of in ios_base,
2040         so adding it in the derived class as well is superfluous.
2041         * include/std/std_ostream.h: Same.
2042
2043         * include/bits/basic_ios.h (basic_ios::clear): Don't inline.
2044         * include/bits/basic_ios.tcc (basic_ios::clear): Move definition here.
2045
2046 2002-02-14  Benjamin Kosnik  <bkoz@redhat.com>
2047
2048         * config/linker-map.gnu: Change tag from GCC_3.1 to GLIBCPP_3.1.
2049         Add typeinfo bits. Smooth.
2050         * aclocal.m4: Regenerate.
2051         * configure: Same.
2052         * src/Makefile.in: Same.
2053
2054 2001-02-14  Joel Sherrill  <joel@OARcorp.com>
2055
2056         * config/cpu/m68k/bits/atomicity.h: Corrected for RTEMS targets
2057         which do not have a CAS instruction.
2058
2059 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
2060
2061         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS):  New macro, initial revision.
2062         * configure.in:  Call it.
2063         * config/linker-map.gnu:  New file, initial incomplete revision.
2064         * src/Makefile.am:  Optionally pass version script to the linker.
2065         * aclocal.m4:  Regenerate.
2066         * configure:  Regenerate.
2067         * src/Makefile.in:  Regenerate.
2068
2069 2002-02-13  Benjamin Kosnik  <bkoz@redhat.com>
2070
2071         * src/localename.cc: Remove stdexcept include.
2072         * src/locale-inst.cc: Same.
2073         * src/locale.cc: Same.
2074         * src/functexcept.cc: Remove string includes.
2075         * include/std/std_bitset.h: Remove stdexcept include.
2076         * testsuite/23_containers/bitset_members.cc: Add stdexcept.
2077         * testsuite/23_containers/bitset_ctor.cc: Same.
2078
2079 2002-02-11  Benjamin Kosnik  <bkoz@redhat.com>
2080
2081         * include/bits/stl_algo (__stl_threshold): Declare external.
2082         (__stl_chunk_size): Same.
2083         * include/bits/stl_bvector.h (__WORD_BIT): Same.
2084         * include/bits/stl_tree.h (_S_rb_tree_red): Same.
2085         (_S_rb_tree_black): Same.
2086         * src/stl-inst.cc (__stl_threshold): Define.
2087         (__stl_chunk_size): Same.
2088         (__WORD_BIT): Same.
2089         (_S_rb_tree_red): Same.
2090         (_S_rb_tree_black): Same.
2091
2092         * config/io/basic_file_libio.h (__basic_file): Add declarations.
2093         * include/bits/basic_file.h: Remove.
2094         * config/io/c_io_stdio.h: Remove _GLIBCPP_BASIC_FILE_ENCAPSULATION
2095         Declare generic types, specialization.
2096         * config/io/basic_file_stdio.cc: Definitions.
2097         * config/io/c_io_libio.h: Remove _GLIBCPP_BASIC_FILE_INHERITANCE.
2098         Declare generic types.
2099         * include/Makefile.am (bits_headers): Remove basic_file.h.
2100         (extra_target_headers): Change basic_file_model.h to basic_file.h.
2101         (stamp-target): Same.
2102
2103         * include/bits/stl_alloc.h: Tweaks.
2104         * include/bits/localefwd.h: Same.
2105
2106 2002-02-11  Aaron W LaFramboise  <AWLaFramboise@aol.com>
2107
2108         * include/bits/locale_facets.tcc (collate::do_hash): Fix.
2109         * testsuite/22_locale/collate_members_char.cc (test03): New test.
2110         * testsuite/22_locale/collate_members_wchar_t.cc (test03): Same.
2111
2112 2002-02-10  Phil Edwards  <pme@gcc.gnu.org>
2113
2114         * include/bits/stl_algo.h (transform (both signatures), generate_n):
2115         Use __typeof__ in concept checks.
2116
2117 2002-02-10  Jonathan Wakely  <cow@compsoc.man.ac.uk>
2118
2119         * include/bits/stl_algo.h (__median, for_each, find, find_if,
2120         adjacent_find, count, count_if, search, search_n, swap_ranges,
2121         transform, replace, replace_if, replace_copy, replace_copy_if,
2122         generate, generate_n, remove_copy, remove_copy_if, remove, remove_if,
2123         unique, unique_copy, reverse, reverse_copy):  Doxygenate.
2124
2125 2002-02-08  Benjamin Kosnik  <bkoz@redhat.com>
2126
2127         * include/bits/locale_facets.h
2128         (numpunct<_CharT>::_M_initialize_numpunct): Remove definition.
2129         (__timepunct<_CharT>::_M_initialize_timepunct): Same.
2130         (__timepunct<_CharT>::_M_put_helper): Same.
2131         (moneypunct<_CharT, _Intl>::_M_initialize_moneypunct): Same.
2132
2133         * include/bits/fstream.tcc (filebuf::underflow): Remove
2134         __codecvt_type typedef.
2135         (filebuf::_M_convert_to_external): Same.
2136
2137 2002-02-08  Phil Edwards  <pme@gcc.gnu.org>
2138
2139         * docs/doxygen/TODO:  Update.
2140         * docs/doxygen/doxygroups.cc:  Tweak __gnu_cxx description.
2141         * docs/doxygen/mainpage.html:  Add TODO list link.
2142         * docs/doxygen/user.cfg.in:  Add @doctodo hook.
2143         * docs/doxygen/tables.html:  New file, emoty structure only.
2144
2145         * include/bits/stl_iterator.h:  Doxygenate just about everything.
2146         * include/bits/stl_iterator_base_funcs.h:  Ditto, clean up spaces.
2147         * include/bits/stl_iterator_base_types.h:  Add notes.
2148
2149 2002-02-07  Stephan Buys  <sbproxy@icon.co.za>
2150
2151         * include/bits/stl_map.h:  Tweak doxygen markup.
2152         * include/bits/stl_multimap.h:  Doxygenate and remove extra spaces.
2153         * include/bits/stl_vector.h:  Likewise.
2154
2155 2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>
2156
2157         libstdc++/5286
2158         libstdc++/3860
2159         * include/std/std_fstream.h (filebuf::__file_type): Change to
2160         __basic_file<char>.
2161         (filebuf::_M_convert_to_external): Declare.
2162         * include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
2163         codecvt bits for wide streams.
2164         (filebuf::_M_really_overflow): Use it.
2165         (filebuf::underflow): Use codecvt.
2166         * config/locale/codecvt_specializations_ieee_1003.1-200x.h:
2167         (codecvt<__enc_traits>::do_out): Deal with partial.
2168         (codecvt<__enc_traits>::do_encoding): Return something useful.
2169         * src/codecvt.cc (codecvt<wchar_t>::do_encoding): Return sizeof
2170         wchar_t.
2171         * testsuite/22_locale/codecvt_members_unicode_char.cc (test01):
2172         Change expected encoding output.
2173         (test02): Same.
2174         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test01): Same.
2175         (test02): Same.
2176
2177 2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>
2178             Wolfgang Bangerth  <wolfgang.bangerth@iwr.uni-heidelberg.de>
2179
2180         * include/bits/basic_ios.tcc (basic_ios::narrow): Add default value.
2181         (basic_ios::widen): Same.
2182
2183 2002-02-07  Paolo Carlini  <pcarlini@unitus.it>
2184
2185         * testsuite/22_locale/money_get_members_char.cc:
2186         Add comment, tidy up.
2187         (test01): more "en_HK" tests (without showbase).
2188         * testsuite/22_locale/money_get_members_wchar_t.cc: Ditto.
2189
2190 2002-02-06  Loren Rittle <ljrittle@acm.org>
2191
2192         * config/locale/c_locale_generic.cc: Do not trust
2193         _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as
2194         set by configure.
2195
2196 2002-02-06  Loren Rittle <ljrittle@acm.org>
2197
2198         * acinclude.m4: Add C++ linkage check for strtof.
2199         * aclocal.m4: Rebuilt.
2200         * config.h.in: Rebuilt.
2201         * configure: Rebuilt.
2202         * config/locale/c_locale_generic.cc: Conditionally include
2203         <ieeefp.h>.  Improve handling and error checking of float
2204         and long double input for non-C99 configurations.
2205
2206 2002-02-06  Paolo Carlini  <pcarlini@unitus.it>
2207
2208         * include/bits/locale_facets.tcc (money_get::do_get(string)):
2209         In case money_base::symbol deal properly with multi-char sign
2210         for patterns {X,Y,Z,symbol} and {X,Y,symbol,none}.
2211         * testsuite/22_locale/money_get_members_char.cc: Add test07.
2212         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test07.
2213
2214 2002-02-05  Paolo Carlini  <pcarlini@unitus.it>
2215
2216         * include/bits/locale_facets.tcc (money_get::do_get(string)):
2217         First construct a tentative returned string, then, only if the
2218         parsing succeeds, copy it into the string passed by reference.
2219         * testsuite/22_locale/money_get_members_char.cc: Add test06.
2220         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test06.
2221
2222 2002-02-04  Phil Edwards  <pme@gcc.gnu.org>
2223
2224         * docs/doxygen/TODO:  Impl-defined behavior now documented...
2225         * docs/html/17_intro/howto.html:  ...here.
2226         * docs/doxygen/mainpage.doxy:  Remove, rename...
2227         * docs/doxygen/mainpage.html:  ...to this.  Tweak HTML, add license.
2228         * docs/doxygen/style.css:  Add small text.
2229         * docs/doxygen/run_doxygen:  Adjust for new mainpage.
2230         * docs/doxygen/user.cfg.in:  Likewise.
2231
2232 2002-02-04  Stephan Buys  <sbproxy@icon.co.za>
2233
2234         * include/bits/stl_map.h:  Initial doxygen markup.
2235         * include/std/std_fstream.h:  Initial doxygen markup.
2236
2237 2002-02-04  Paolo Carlini  <pcarlini@unitus.it>
2238
2239         libstdc++/5579
2240         * include/bits/locale_facets.tcc (money_get::do_get(string)):
2241         Deal correctly with !(__io.flags() & ios_base::showbase)
2242         for case money_base::symbol.
2243         * testsuite/22_locale/money_get_members_char.cc: Add test05.
2244         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test05.
2245
2246 2002-02-02  Paolo Carlini  <pcarlini@unitus.it>
2247
2248         * testsuite/22_locale/operators.cc
2249         (gnu_collate::do_compare()): Add return statement to
2250         suppress "no return statement" warning.
2251
2252 2002-02-01  Paolo Carlini  <pcarlini@unitus.it>
2253
2254         * testsuite/27_io/ostream_manip.cc: Enable test02.
2255
2256 2002-02-01  Phil Edwards  <pme@gcc.gnu.org>
2257
2258         * docs/html/documentation.html:  Update for 3.0.96.
2259         * docs/html/faq/index.html:  Update for 3.0.96.
2260         * docs/html/faq/index.txt:  Regenerated.
2261         * docs/doxygen/TODO:  Update notes.
2262         * docs/html/17_intro/howto.html:  Initial impl-specific listing.
2263
2264 2002-01-31  Benjamin Kosnik  <bkoz@redhat.com>
2265
2266         * config/locale/codecvt_specializations_ieee_1003.1-200x.h:
2267         Initialize all data members in copy ctor. Make ctors explicit.
2268         (__enc_traits::__enc_traits()): Default ctor does nothing.
2269         (__enc_traits::_M_init): Guard against multiple iconv_opens.
2270         * include/std/std_sstream.h (basic_stringbuf): Make data members
2271         protected.
2272         * include/std/std_fstream.h (basic_filebuf): Same.
2273         * include/std/std_streambuf.h: Tweak.
2274         * include/bits/streambuf.tcc: Same.
2275         * include/bits/sstream.tcc: Same.
2276         * include/bits/fstream.tcc: Same.
2277
2278 2002-01-31  Loren Rittle <ljrittle@acm.org>
2279
2280         * testsuite/22_locale/codecvt_members_char_char.cc: Do not
2281         allow NULL argument to be passed to setenv().
2282         * testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
2283         * testsuite/22_locale/collate_members_char.cc: Likewise.
2284         * testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
2285         * testsuite/22_locale/ctype_members_char.cc: Likewise.
2286         * testsuite/22_locale/ctype_members_wchar_t.cc: Likewise.
2287         * testsuite/22_locale/messages_members_char.cc: Likewise.
2288         * testsuite/22_locale/money_get_members_char.cc: Likewise.
2289         * testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
2290         * testsuite/22_locale/money_put_members_char.cc: Likewise.
2291         * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
2292         * testsuite/22_locale/moneypunct_members_char.cc: Likewise.
2293         * testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
2294         * testsuite/22_locale/num_get_members_char.cc: Likewise.
2295         * testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
2296         * testsuite/22_locale/num_put_members_char.cc: Likewise.
2297         * testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
2298         * testsuite/22_locale/numpunct_members_char.cc: Likewise.
2299         * testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
2300         * testsuite/22_locale/time_get_members_char.cc: Likewise.
2301         * testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
2302         * testsuite/22_locale/time_put_members_char.cc: Likewise.
2303         * testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
2304
2305 2002-01-30  Benjamin Kosnik  <bkoz@redhat.com>
2306
2307         * config/locale/c_locale_gnu.cc: Same errno fixes as generic.
2308
2309         * ChangeLog-2001: Fix spelling errors...
2310         * docs/html/17_intro/RELEASE-NOTES: Update.
2311         * docs/html/17_intro/TODO: Update.
2312         * README (file): Update.
2313
2314 2002-01-30  Loren Rittle <ljrittle@acm.org>
2315
2316         * config/locale/c_locale_generic.cc: Check errno for ERANGE
2317         instead of non-zero to aid portability.
2318
2319 2002-01-30  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2320
2321         * docs/html/22_locale/messages.html: Fix example code.
2322
2323 2002-01-30  Richard Henderson  <rth@redhat.com>
2324
2325         * testsuite/27_io/ostream_inserter_arith.cc (test03_check): Break
2326         out from test03 and templatize.
2327         (test03): Use it.
2328
2329 2002-01-30  Paolo Carlini  <pcarlini@unitus.it>
2330
2331         * config/locale/numpunct_members_gnu.cc
2332         (numpunct<char, wchar_t>::_M_initialize_numpunct()):
2333         Fix initialization of _M_grouping for locales which have
2334         _M_thousands_sep == '\0'(L'\0', respectively).
2335         * testsuite/22_locale/numpunct_byname.cc (test02): Add test.
2336
2337 2002-01-30  Paolo Carlini  <pcarlini@unitus.it>
2338
2339         * testsuite/27_io/ostream_inserter_arith.cc (test03):
2340         Better fix for 32/64 bit architectures, avoiding the
2341         implicit assumption that CHAR_BIT == 8.
2342
2343 2002-01-28  Phil Edwards  <pme@gcc.gnu.org>
2344
2345         * Makefile.am (doxygen, doxygen-maint, doxygen-man):  Tweak targets.
2346         * Makefile.in:  Regenerate.
2347
2348         * docs/doxygen/run_doxygen:  Update, mostly for man pages.
2349         * docs/doxygen/Intro.3:  Update.
2350         * docs/doxygen/TODO:  Update.
2351         * docs/doxygen/doxygroups.cc:  Add namespace hook for __gnu_cxx.
2352         * docs/doxygen/mainpage.doxy:  Update.
2353         * docs/doxygen/user.cfg.in:  Update for header rename.  Also
2354         regenerate comments and variables with 1.2.12.
2355         * docs/doxygen/maint.cfg.in:  Remove file.
2356
2357         * include/bits/stl_relops.h:  Doxygenate.
2358         * include/bits/stl_tempbuf.h (std::_Temporary_buffer):  Likewise.
2359
2360         * include/c_std/std_cassert.h, include/c_std/std_cctype.h,
2361         include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
2362         include/c_std/std_ciso646.h, include/c_std/std_climits.h,
2363         include/c_std/std_clocale.h, include/c_std/std_cmath.h,
2364         include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
2365         include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
2366         include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
2367         include/c_std/std_cstring.h, include/c_std/std_ctime.h,
2368         include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
2369         include/ext/algorithm, include/ext/functional, include/ext/hash_map,
2370         include/ext/hash_set, include/ext/iterator, include/ext/memory,
2371         include/ext/numeric, include/ext/rb_tree, include/ext/rope,
2372         include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
2373         include/ext/stl_hashtable.h, include/ext/stl_rope.h,
2374         include/std/std_algorithm.h, include/std/std_bitset.h,
2375         include/std/std_complex.h, include/std/std_deque.h,
2376         include/std/std_fstream.h, include/std/std_functional.h,
2377         include/std/std_iomanip.h, include/std/std_ios.h,
2378         include/std/std_iosfwd.h, include/std/std_iostream.h,
2379         include/std/std_istream.h, include/std/std_iterator.h,
2380         include/std/std_limits.h, include/std/std_list.h,
2381         include/std/std_locale.h, include/std/std_map.h,
2382         include/std/std_memory.h, include/std/std_numeric.h,
2383         include/std/std_ostream.h, include/std/std_queue.h,
2384         include/std/std_set.h, include/std/std_sstream.h,
2385         include/std/std_stack.h, include/std/std_stdexcept.h,
2386         include/std/std_streambuf.h, include/std/std_string.h,
2387         include/std/std_utility.h, include/std/std_valarray.h,
2388         include/std/std_vector.h:  Add/correct @file doxygen hook.
2389
2390         * include/ext/memory:  Doxygenate most of rest of file.
2391         * libsupc++/exception:  Doxygen output formatting.
2392         * libsupc++/new:  Say which header it is.
2393
2394         * testsuite/lib/libstdc++-v3-dg.exp:  Fix spacing.
2395         * docs/html/19_diagnostics/howto.html:  Describe concept-checks switch.
2396         * docs/html/23_containers/howto.html:  Describe O(n) list::size().
2397         * docs/html/27_io/howto.html:  Also link to Langer and Kreft text.
2398
2399 2002-01-28  Paolo Carlini  <pcarlini@unitus.it>
2400             Charles Leggett <CGLeggett@lbl.gov>
2401
2402         * testsuite/27_io/filebuf_members.cc (test_05): Add test.
2403
2404 2002-01-28  Paolo Carlini  <pcarlini@unitus.it>
2405
2406         * testsuite/27_io/ostream_inserter_arith.cc (test03):
2407         Fix to deal correctly with both 32 bit and 64 bit architectures
2408
2409 2002-01-25  Loren Rittle <ljrittle@acm.org>
2410
2411         * testsuite/thread/pthread1.cc: Use one condition variable
2412         per predicate instead of tricky use of one condition variable.
2413
2414 2002-01-25  Benjamin Kosnik  <bkoz@redhat.com>
2415
2416         * include/bits/fstream.tcc (filebuf::close()): Fix close for input
2417         streams.
2418         (filebuf::_M_really_overflow): Match indeterminate and sync calls.
2419         * testsuite/27_io/filebuf.cc: Compile only.
2420         * testsuite/27_io/filebuf_members.cc: Move tests to here.
2421         * testsuite/27_io/filebuf_virtuals.cc: And here.
2422         Revert sungetc, sync changes for expected values.
2423         * testsuite/27_io/filebuf-*: Move to...
2424         * testsuite/27_io/filebuf_virtuals-*: ...here.
2425         * testsuite/27_io/istream.cc: Compile only, activate.
2426         * testsuite/27_io/ostream.cc: Same.
2427         * testsuite/27_io/iostream.cc: New.
2428         * testsuite/27_io/iostream_members.cc: New.
2429
2430 2002-01-25  David Billinghurst <David.Billinghurst@riotinto.com>
2431
2432         * testsuite/thread/pthread1.cc: Enable on cygwin.
2433         * testsuite/thread/pthread2.cc: Likewise.
2434         * testsuite/thread/pthread3.cc: Likewise.
2435         * testsuite/thread/pthread4.cc: Likewise.
2436         * testsuite/thread/pthread5.cc: Likewise.
2437         * testsuite/thread/pthread6.cc: Likewise.
2438
2439 2002-01-24  Benjamin Kosnik  <bkoz@redhat.com>
2440
2441         * testsuite/27_io/ostream_inserter_char.cc (test07): New.
2442
2443 2002-01-24  Benjamin Kosnik  <bkoz@redhat.com>
2444
2445         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Make
2446         const, tweak.
2447         (basic_ios::fill(char_type)): Use fill().
2448         * include/bits/basic_ios.tcc (basic_ios::widen): Use _M_check_facet.
2449         (basic_ios::narrow): Same.
2450         (basic_ios::_M_cache_facets): Explicitly set cached facets to zero
2451         if they are invalid.
2452         (basic_ios::init): Comment.
2453         * testsuite/27_io/ios_init.cc (test02): New.
2454
2455 2002-01-24  Phil Edwards  <pme@gcc.gnu.org>
2456
2457         * include/bits/stl_tempbuf.h (_Temporary_buffer):  Add doxygen hook.
2458         * include/bits/stl_algo.h:  Include stl_tempbuf.h.
2459         * include/ext/memory:  Do not include stl_tempbuf.h.
2460         (temporary_buffer):  Add doxygen hook.
2461         (__get_temporary_buffer, get_temporary_buffer,
2462         return_temporary_buffer):  Move back to std:: header...
2463         * include/std/std_memory.h:  ...here.  Do not include stl_tempbuf.h.
2464         * include/ext/rope:  Do not include stl_tempbuf.h.
2465         * include/ext/stl_hashtable.h:  Likewise.
2466         * include/std/std_algorithm.h:  Likewise.
2467         * testsuite/20_util/temporary_buffer.cc:  New file.
2468
2469 2002-01-24  andrew@andypo.net
2470             (tweaks, test and commit by Loren J. Rittle  <ljrittle@acm.org>)
2471
2472         libstdc++/5432
2473         * include/bits/ios_base.h: Use _Atomic_word for reference counts.
2474         * include/bits/localefwd.h: Likewise.
2475         Also use for std::locale::id::_S_highwater.
2476         * src/ios.cc (ios_base::xalloc): Use _Atomic_word.
2477         * src/locale.cc: Support new usage of _Atomic_word.
2478         (std::locale::classic): Guard entire function against reentry.
2479         * src/localename.cc: Support new usage of _Atomic_word.
2480
2481 2002-01-24   Benjamin Kosnik  <bkoz@redhat.com>
2482
2483         * testsuite/22_locale/num_put_members_wchar_t.cc (test03): Use
2484         _GLIBCPP_HAVE_SETENV.
2485         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): Same.
2486         * testsuite/22_locale/collate_members_char.cc (test02): Same.
2487         * testsuite/22_locale/ctype_members_char.cc (test03): Same.
2488         * testsuite/22_locale/ctype_members_wchar_t.cc (test03): Same.
2489         * testsuite/22_locale/messages_members_char.cc (test02): Same.
2490         * testsuite/22_locale/moneypunct_members_char.cc (test02): Same.
2491         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): Same.
2492         * testsuite/22_locale/money_put_members_char.cc (test04): Same.
2493         * testsuite/22_locale/money_put_members_wchar_t.cc (test04): Same.
2494         * testsuite/22_locale/num_get_members_char.cc (test03): Same.
2495         * testsuite/22_locale/num_get_members_wchar_t.cc (test03): Same.
2496         * testsuite/22_locale/numpunct_members_char.cc (test02): Same.
2497         * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): Same.
2498         * testsuite/22_locale/time_get_members_char.cc (test07): Same.
2499         * testsuite/22_locale/time_get_members_wchar_t.cc (test07): Same.
2500         * testsuite/22_locale/time_put_members_char.cc (test03): Same.
2501         * testsuite/22_locale/time_put_members_wchar_t.cc (test03): Same.
2502         * testsuite/22_locale/num_put_members_char.cc (test03): Same.
2503         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Check for setenv.
2504         * aclocal.m4: Regenerate.
2505         * configure: Regenerate.
2506         * config.h.in: Regenerate.
2507
2508 2002-01-23  Loren Rittle <ljrittle@acm.org>
2509
2510         * testsuite/thread/pthread1.cc: New test.
2511         * testsuite/thread/pthread2.cc: New test adapted from libstdc++/5347.
2512         * testsuite/thread/pthread3.cc: Likewise.
2513         * testsuite/thread/pthread4.cc: New test adapted from
2514         http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00679.html
2515         * testsuite/thread/pthread5.cc: New test adapted from libstdc++/5464.
2516         * testsuite/thread/pthread6.cc: New test adapted from libstdc++/5444.
2517
2518 2002-01-23  Richard Henderson  <rth@redhat.com>
2519
2520         PR libstdc++/5198
2521         * config/cpu/m68k/bits/atomicity.h (__exchange_and_add): Only use
2522         CAS on the cpu variants that support it.  Add versions that use
2523         TAS and that disable interrupts.
2524         (__atomic_add): Use __exchange_and_add to guarantee atomicity.
2525
2526 2002-01-23  Matt Kraai  <kraai@alumni.cmu.edu>
2527
2528         * include/bits/locale_facets.tcc: Remove old comments.
2529
2530 2002-01-23  Andreas Tobler  <toa@pop.agri.ch>
2531
2532         * include/bits/locale_facets.tcc (__convert_to_v): Change template
2533         parameter to _Tv.
2534         (__convert_from_v): Same.
2535
2536 2002-01-23  Benjamin Kosnik  <bkoz@redhat.com>
2537
2538         * include/bits/locale_facets.h (num_get::_M_extract_int): Change
2539         prototype.
2540         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Remove
2541         __max_digits checks, adjust arguments.
2542         (num_get::do_get(*)): Changeup.
2543
2544 2002-01-23  Loren Rittle <ljrittle@acm.org>
2545
2546         * config/locale/c_locale_generic.cc: Fix typename usage.
2547
2548 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
2549
2550         * config/locale/c_locale_generic.cc: Fix.
2551
2552 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
2553
2554         * docs/html/22_locale/messages.html: Remove angle brackets.
2555         * docs/html/17_intro/TODO: Add.
2556
2557 2002-01-22  Paolo Carlini  <pcarlini@unitus.it>
2558
2559         * testsuite/27_io/ios_manip_basefield.cc: Enable test02.
2560         * testsuite/27_io/ostream_inserter_arith.cc: Enable test03.
2561         * testsuite/27_io/ostream_inserter_char.cc: Enable test01.
2562         * testsuite/27_io/ostream_inserter_other.cc: Enable test04.
2563
2564 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
2565
2566         Audit for LANG independence.
2567         * include/bits/localefwd.h: Tweaks.
2568         * include/bits/locale_facets.tcc (money_get::do_get(long double)):
2569         Use __convert_to_v.
2570         (time_get::do_get_year): Same.
2571         (__convert_from_v): Add.
2572         (num_put::_M_convert_float): Use.
2573         (num_put::_M_convert_int): Same.
2574         (money_put::do_put): Same.
2575
2576         * src/locale-inst.cc: Add instantiations for __convert_from_v.
2577         * config/locale/time_members_gnu.cc: Cleanup setlocale usage.
2578         * config/locale/time_members_generic.cc:
2579         * config/locale/messages_members_gnu.cc: Same.
2580         * config/locale/messages_members_gnu.h: Same.
2581
2582         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): New.
2583         * testsuite/22_locale/codecvt_members_char_char.cc (test02): New.
2584         * testsuite/22_locale/collate_members_wchar_t.cc (test02): New.
2585         * testsuite/22_locale/collate_members_char.cc (test02): New.
2586         * testsuite/22_locale/ctype_members_wchar_t.cc (test03): New.
2587         * testsuite/22_locale/ctype_members_char.cc (test03): New.
2588         * testsuite/22_locale/messages_members_char.cc (test02): New.
2589         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): New.
2590         * testsuite/22_locale/moneypunct_members_char.cc (test02): New.
2591         * testsuite/22_locale/money_get_members_wchar_t.cc (test04): New.
2592         * testsuite/22_locale/money_get_members_char.cc (test04): New.
2593         * testsuite/22_locale/money_put_members_wchar_t.cc (test04): New.
2594         * testsuite/22_locale/money_put_members_char.cc (test04): New.
2595         * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): New.
2596         * testsuite/22_locale/numpunct_members_char.cc (test02): New.
2597         * testsuite/22_locale/time_put_members_wchar_t.cc (test03): New.
2598         * testsuite/22_locale/time_put_members_char.cc (test03): New.
2599         * testsuite/22_locale/time_get_members_wchar_t.cc (test07): New.
2600         * testsuite/22_locale/time_get_members_char.cc (test07): New.
2601         * testsuite/22_locale/num_get_members_wchar_t.cc (test03): New.
2602         * testsuite/22_locale/num_get_members_char.cc (test03): New.
2603         * testsuite/22_locale/num_put_members_wchar_t.cc (test03): New.
2604         * testsuite/22_locale/num_put_members_char.cc (test03): New.
2605
2606         * testsuite/22_locale/time_get_members_char.cc: Fixups for global
2607         locale issues.
2608         * testsuite/22_locale/time_get_members_char.cc: Same.
2609
2610 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
2611
2612         libstdc++/5280
2613         * include/bits/localefwd.h: Tweak comments.
2614         * include/bits/locale_facets.h (__convert_to_v): Add.
2615         * include/bits/locale_facets.tcc (num_get::do_get(double)): Use it.
2616         (num_get::do_get(float)): Same.
2617         (num_get::do_get(long double)): Same.
2618         (num_get::do_get(bool)): Same.
2619         (num_get::do_get(long)): Same.
2620         (num_get::do_get(long long)): Same.
2621         (num_get::do_get(unsigned int)): Same.
2622         (num_get::do_get(unsigned short)): Same.
2623         (num_get::do_get(unsigned long)): Same.
2624         (num_get::do_get(unsigned long long)): Same.
2625         * config/locale/c_locale_gnu.cc (__convert_to_v): Specialize.
2626         * config/locale/c_locale_generic.cc: Same.
2627
2628 2002-01-22  Loren Rittle <ljrittle@acm.org>
2629
2630         * include/Makefile.am (c_base_builddir): Remove redundant slash.
2631         (std_builddir): Likewise.
2632         (std_headers_rename): Fix cut-n-paste typo.
2633         (install-data-local): Concat path per element instead of once to
2634         first element of list.
2635         * include/Makefile.in: Rebuilt.
2636
2637 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
2638
2639         * config/os/aix/bits/ctype_noninline.h: Fix formatting.
2640         * config/os/bsd/netbsd/bits/ctype_noninline.h: Fix typo.
2641         * config/os/bsd/freebsd/bits/ctype_noninline.h: Fix formatting.
2642
2643 2002-01-20  Benjamin Kosnik  <bkoz@redhat.com>
2644
2645         * include/bits/locale_facets.h (ctype<char>::classic_table):
2646         Remove definition.
2647         (ctype<char>::_S_ctable): Remove.
2648         * config/os/gnu-linux/bits/ctype_noninline.h
2649         (ctype<char>::_S_table): Remove definition.
2650         (ctype<char>::classic_table): Define.
2651         (ctype<char>::ctype): Replace _S_ctable with classic_table().
2652         * config/os/aix/bits/ctype_noninline.h: Same.
2653         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
2654         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
2655         * config/os/djgpp/bits/ctype_noninline.h: Same.
2656         * config/os/generic/bits/ctype_noninline.h: Same.
2657         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
2658         * config/os/hpux/bits/ctype_noninline.h: Same.
2659         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
2660         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
2661         * config/os/mingw32/bits/ctype_noninline.h: Same.
2662         * config/os/newlib/bits/ctype_noninline.h: Same.
2663         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
2664         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
2665         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
2666
2667 2002-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
2668
2669         * config/os/mingw32/bits/ctype_noninline.h: Declare _ctype instead
2670         of _pctype. Use to define _S_ctable.  Add definition for alternate
2671         ctor.  Initialise _M_ctable to _S_ctable in ctors.
2672         (do_toupper, do_tolower): Use inline code appropriate for C-locale
2673         rather than ::toupper, ::tolower.
2674
2675 2002-01-18  Loren Rittle <ljrittle@acm.org>
2676
2677         * testsuite/18_support/numeric_limits.cc (test_extrema<long double>):
2678         Add specialization for FreeBSD systems only to avoid losing test
2679         only due to extra precision unmentioned in system headers.
2680
2681 2002-01-18  David Billinghurst <David.Billinghurst@riotinto.com>
2682
2683         * config/os/irix/irix6.5/bits/ctype_noninline.h: Fix typo
2684
2685 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
2686
2687         * testsuite/testsuite_hooks.h: Fix comment typo.  Memory
2688         limiting is only attempted if _GLIBCPP_MEM_LIMIT is defined.
2689
2690 2002-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2691
2692         * testsuite/22_locale/ctor_copy_dtor.cc: Remove check.
2693
2694 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
2695
2696         * configure.target: Define OPT_LDFLAGS for AIX case.
2697
2698 2002-01-17  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2699
2700         * include/std/std_limits.h (__glibcpp_float_has_quiet_NaN,
2701         __glibcpp_double_has_quiet_NaN): Correct mispelling.
2702
2703 2002-01-17  Andreas Tobler  <toa@pop.agri.ch>
2704
2705         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Fix.
2706
2707 2002-01-16  David Edelsohn  <dje@watson.ibm.com>
2708
2709         * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Do not clear
2710         SECTION_LDFLAGS and OPT_LDFLAGS.  Fix ac_sectionLDflags type.
2711         * aclocal.m4: Regenerate.
2712         * configure: Regenerate.
2713
2714 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
2715
2716         * include/Makefile.am (c_base_headers_rename): New.
2717         (c_base_headers_extra): New.
2718         (stamp-c_base): Modify.
2719         (install-data-local): Use both.
2720         * include/Makefile.in: Regenerate.
2721         * include/c/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
2722         csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
2723         cstdio ctime cwctype]: Move to..
2724         * include/c/std_*: Here.
2725         * include/c_std/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
2726         csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
2727         cstdio ctime cwctype]: Move to..
2728         * include/c_std/std_*: Here.
2729
2730         Alexandre Oliva  <aoliva@redhat.com>
2731         * include/Makefile.am (.PRECIOUS): Add rule.
2732         * include/Makefile.in: Regenerate.
2733
2734 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
2735             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2736
2737         * include/bits/stl_iterator.h (reverse_iterator::_M_current):
2738         Deuglify, should be current.
2739         (back_insert_iterator::_M_container): Deuglify, should be container.
2740         (front_insert_iterator::_M_container): Same.
2741         (insert_iterator::_M_container): Same.
2742         * testsuite/24_iterators/reverse_iterator.cc: Add check.
2743         * testsuite/24_iterators/back_insert_iterator.cc: Add check.
2744         * testsuite/24_iterators/front_insert_iterator.cc: Same.
2745         * testsuite/24_iterators/insert_iterator.cc: Same.
2746
2747 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
2748
2749         * include/bits/locale_facets.h (ctype<char>::classic_table): Make
2750         static.
2751         (ctype<char>::_M_ctable): Make static, change name to _S_ctable.
2752         * config/os/gnu-linux/bits/ctype_noninline.h: Define _S_ctable.
2753         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
2754         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
2755         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
2756         * config/os/newlib/bits/ctype_noninline.h: Same.
2757         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
2758         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
2759         * config/os/hpux/bits/ctype_noninline.h: Same.
2760         * config/os/djgpp/bits/ctype_noninline.h: Same.
2761         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
2762         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
2763         * config/os/aix/bits/ctype_noninline.h: Same.
2764
2765         Testcase by Dietmar Kühl via Peter Schmid
2766         * testsuite/22_locale/ctype_members_char.cc (char>): Add test for
2767         classic_table().
2768
2769 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
2770
2771         * libmath/signbitl.c: Copyright years as list, not range.
2772         * libmath/Makefile.am: Same.
2773         * libmath/Makefie.in: Regenerate.
2774         * libmath/signbit.c: Same.
2775         * libmath/nan.c: Same.
2776         * libmath/copysignf.c: Same.
2777         * libmath/signbitf.c: Same.
2778         * testsuite/22_locale/money_get_members_char.cc: Same.
2779         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
2780         * testsuite/22_locale/money_put_members_char.cc: Same.
2781         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
2782         * testsuite/22_locale/time_get_members_char.cc: Same.
2783         * testsuite/22_locale/time_get_members_wchar_t.cc: Same.
2784         * testsuite/22_locale/time_put_members_char.cc: Same.
2785         * testsuite/22_locale/time_put_members_wchar_t.cc: Same.
2786         * testsuite/21_strings/nonmember.cc: Same.
2787         * testsuite/21_strings/compare.cc: Same.
2788         * testsuite/27_io/stringstream.cc: Same.
2789         * testsuite/27_io/stringbuf.cc: Same.
2790         * testsuite/27_io/filebuf.cc: Same.
2791         * testsuite/27_io/ios_manip_basefield.cc: Same.
2792         * testsuite/27_io/ios_manip_fmtflags.cc: Same.
2793         * include/bits/cpp_type_traits.h: Same.
2794         * include/bits/generic_shadow.h: Same.
2795         * include/bits/gslice_array.h: Same.
2796         * include/bits/gslice.h: Same.
2797         * include/bits/indirect_array.h: Same.
2798         * include/bits/slice_array.h: Same.
2799         * include/bits/sstream.tcc: Same.
2800         * include/bits/streambuf_iterator.h: Same.
2801         * include/bits/valarray_array.tcc: Same.
2802         * include/bits/valarray_meta.h: Same.
2803         * include/bits/valarray_array.h: Same.
2804         * config/os/mingw32/bits/ctype_noninline.h: Same.
2805         * config/os/mingw32/bits/ctype_base.h: Same.
2806         * config/os/hpux/bits/ctype_noninline.h: Same.
2807         * config/os/hpux/bits/ctype_base.h: Same.
2808         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
2809         * config/os/gnu-linux/bits/ctype_base.h: Same.
2810         * config/os/generic/bits/ctype_noninline.h: Same.
2811         * config/os/generic/bits/ctype_base.h: Same.
2812
2813         * libsupc++/tinfo.h: Tweaks.
2814
2815 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
2816
2817         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
2818         * testsuite/22_locale/num_put_members_char.cc (test01): Tweak.
2819         * testsuite/22_locale/ctype_members_char.cc: Tweak.
2820
2821 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
2822
2823         * include/bits/locale_facets.tcc (num_put::do_put(bool): Fix.
2824         (num_put::do_put(void*)): Fix.
2825         * testsuite/22_locale/num_put_members_char.cc (test02): Add.
2826         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Add.
2827         * testsuite/22_locale/num_get_members_char.cc (test02): Add
2828         long double, void, bool types.
2829         * testsuite/22_locale/num_get_members_wchar_t.cc (test02): Add.
2830
2831 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
2832             Alexandre Oliva  <aoliva@redhat.com>
2833
2834         * libmath/Makefile.am (LINK): Add --tag CC.
2835         * libmath/Makefile.in: Regenerate.
2836
2837 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2838
2839         * config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
2840         of character to attribute mapping table.
2841
2842 2002-01-15  David Billinghurst <David.Billinghurst@riotinto.com>
2843
2844         * testsuite/26_numerics/c99_classification_macros_c.cc
2845         Remove dg-error and dg-excess-errors comments.
2846
2847 2002-01-14  Benjamin Kosnik  <bkoz@redhat.com>
2848
2849         * include/bits/locale_facets.tcc (time_put::put): Correct output
2850         iterator positions.
2851         * testsuite/22_locale/time_put_members_char.cc (test02): Add.
2852         * testsuite/22_locale/time_put_members_wchar_t.cc (test02): Add.
2853         * testsuite/22_locale/time_get_members_wchar_t.cc (test06): Add.
2854         * testsuite/22_locale/time_get_members_char.cc (test06): Add.
2855
2856 2002-01-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2857
2858         * docs/html/17_intro/porting-howto.xml: Update filebuf section.
2859
2860 2002-01-14  Paolo Carlini  <pcarlini@unitus.it>
2861             Nathan Myers  <ncm@cantrip.org>
2862
2863         * include/bits/basic_string.h
2864         (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
2865         temporaries (i.e., call _M_replace_safe) when possible.
2866         (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
2867         (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
2868         (replace(__i1, __i2, __str)): Call replace(__i1, __i2, __s, __n).
2869         (replace(__i1, __i2, __s)): Call replace(__i1, __i2, __s, __n).
2870         (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
2871         * include/bits/basic_string.tcc
2872         (replace(__pos1, __n1, __str, __pos2, __n2)): Call
2873         replace(__pos, __n1, __s, __n2).
2874         * testsuite/21_strings/replace.cc (test03): New testcases.
2875
2876         * include/bits/basic_string.h (insert(__pos, __s, __n)):
2877         Adjust comparison wrt overflow.
2878
2879 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
2880
2881         * include/Makefile.am (std_headers_rename): New variable.
2882         (install-data-local): Use it.
2883         * include/Makefile.in: Regenerate.
2884
2885 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
2886
2887         * include/bits/locale_facets.tcc (money_put::do_put(string):
2888         Correct output iterator value.
2889         * testsuite/22_locale/money_put_members_char.cc (test03): Add.
2890         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
2891
2892 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
2893
2894         * include/Makefile.am, include/Makefile.in (stamp-std):  Fix typo from
2895         previous commit.
2896
2897 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
2898
2899         * include/Makefile.am (std_headers):  Update list with new names.
2900         (stamp-std):  Link to standardized name.
2901         * include/Makefile.in:  Regenerate.
2902
2903         * include/std/algorithm, include/std/bitset, include/std/complex,
2904         include/std/deque, include/std/fstream, include/std/functional,
2905         include/std/iomanip, include/std/ios, include/std/iosfwd,
2906         include/std/iostream, include/std/istream, include/std/iterator,
2907         include/std/limits, include/std/list, include/std/locale,
2908         include/std/map, include/std/memory, include/std/numeric,
2909         include/std/ostream, include/std/queue, include/std/set,
2910         include/std/sstream, include/std/stack, include/std/stdexcept,
2911         include/std/streambuf, include/std/string, include/std/utility,
2912         include/std/valarray, include/std/vector:  Rename to...
2913
2914         * include/std/std_algorithm.h, include/std/std_bitset.h,
2915         include/std/std_complex.h, include/std/std_deque.h,
2916         include/std/std_fstream.h, include/std/std_functional.h,
2917         include/std/std_iomanip.h, include/std/std_ios.h,
2918         include/std/std_iosfwd.h, include/std/std_iostream.h,
2919         include/std/std_istream.h, include/std/std_iterator.h,
2920         include/std/std_limits.h, include/std/std_list.h,
2921         include/std/std_locale.h, include/std/std_map.h,
2922         include/std/std_memory.h, include/std/std_numeric.h,
2923         include/std/std_ostream.h, include/std/std_queue.h,
2924         include/std/std_set.h, include/std/std_sstream.h,
2925         include/std/std_stack.h, include/std/std_stdexcept.h,
2926         include/std/std_streambuf.h, include/std/std_string.h,
2927         include/std/std_utility.h, include/std/std_valarray.h,
2928         include/std/std_vector.h:  ...this.
2929
2930 2002-01-11  Loren Rittle <ljrittle@acm.org>
2931
2932         * include/Makefile.am (extra_target_headers): New list of all
2933         target files built with ad hoc naming rules.
2934         (stamp-*): Handle LN_S failure in manner portable across make
2935         implementations.
2936         (install-data-local): Install header files from human-maintained
2937         file lists and directory components instead of non-robust find.
2938         * include/Makefile.in: Rebuilt.
2939
2940 2002-01-11  Benjamin Kosnik  <bkoz@redhat.com>
2941
2942         * include/bits/locale_facets.tcc (money_get::do_get(string)):
2943         Check for zero-length negative sign before adding it to output
2944         string.
2945         (money_get::do_get(long double)): Return beg.
2946         * testsuite/22_locale/money_get_members_char.cc (test02): Add
2947         iterator checks.
2948         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
2949
2950 2002-01-10  David Seymour  <seymour_dj@yahoo.com>
2951
2952         libstdc++/5331
2953         * include/bits/locale_facets.h (num_get<>): Return advanced iterator
2954         for _M_extract_float and _M_extract_int
2955         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
2956         (num_get<>::_M_extract_int): Likewise, all callers changed
2957         * testsuite/22_locale/num_get_members_char.cc: Testcase
2958
2959 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
2960
2961         * libsupc++/exception (bad_exception): Add comment.
2962         * libsupc++/new (bad_alloc): Same.
2963         * libsupc++/typeinfo (bad_cast, bad_typeid): Same.
2964
2965 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
2966
2967         libstdc++/3150: revert 2001-11-30 commit. DR266 only means
2968         that the destructors should be removed from the descriptions
2969         in the standard: writing them explicitly allows the vtable
2970         heuristic to work. For additional information see:
2971         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00090.html
2972         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00110.html
2973         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00155.html
2974         * libsupc++/exception (bad_exception::~bad_exception()):
2975         Reintroduce declaration.
2976         * libsupc++/new (bad_alloc::~bad_alloc()): Same.
2977         * libsupc++/typeinfo (bad_cast::~bad_cast()): Same.
2978         (bad_typeid::~bad_typeid()): Same.
2979         * libsupc++/eh_exception.cc (bad_exception::~bad_exception()):
2980         Reintroduce definition.
2981         * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
2982         * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Same.
2983         (bad_typeid::~bad_typeid()): Same.
2984
2985 2002-01-09  Benjamin Kosnik  <bkoz@redhat.com>
2986
2987         * include/Makefile.am (c_base_srcdir): Remove duplicate '/'.
2988         * include/Makefile.in: Regenerate.
2989
2990 2002-01-09  Bo Thorsen  <bo@suse.co.uk>
2991
2992         * config/cpu/x86-64/bits/cpu_limits.h (__glibcpp_long_bits): Add
2993         definition.
2994
2995 2002-01-08  Benjamin Kosnik  <bkoz@redhat.com>
2996
2997         libstdc++/2913
2998         libstdc++/4879
2999         * include/bits/fstream.tcc (filebuf::_M_really_overflow): Test
3000         return value of _M_file->sync().
3001         (filebuf::showmanyc): Check for is_open.
3002         * include/std/fstream (filebuf::sync): Tweak.
3003         * testsuite/27_io/filebuf.cc: Tweak.
3004
3005 2002-01-08  John Fardo  <jfardo@laurelnetworks.com>
3006             Brad Garcia  <garsh@attbi.com>
3007
3008         * testsuite/27_io/filebuf_members.cc: Add test.
3009
3010 2002-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3011             Craig Rodrigues  <rodrigc@mediaone.net>
3012
3013         libstdc++/5174
3014         * po/Makefile.am (mkinstalldirs): Add.
3015         * po/Makefile.in: Regenerate.
3016
3017 2002-01-07  David Billinghurst  <David.Billinghurst@riotinto.com>
3018
3019         * testsuite_flags.in: Add -fmessage-length=0 to CXXFLAGS *
3020         testsuite/lib/prune.exp: Delete lines ":In function ..."  from
3021         compiler output.
3022         * testsuite/23_containers/map_operators.cc: Remove
3023         dg-excess-errors comment.
3024         * testsuite/23_containers/set_operators.cc: Likewise.
3025
3026 2002-01-06  Paolo Carlini  <pcarlini@unitus.it>
3027
3028         * include/bits/stl_function.h:  Remove two lines of comments;
3029         adjust copyright years.
3030
3031 2002-01-04  Benjamin  Kosnik  <bkoz@redhat.com>
3032
3033         * include/Makefile.am (std_headers): Remove cXXX from list.
3034         (c_base_srcdir): No bits subdirectory.
3035         (c_base_builddir): Same.
3036         (c_base_headers): Adjust names, add ciso646.
3037         (bits_headers): Remove std_xxx.h headers.
3038         * include/Makefile.in: Regenerate.
3039
3040         * include/ext/iterator: Adjust includes.
3041         * include/ext/ropeimpl.h: Same.
3042         * include/ext/stl_hash_fun.h: Same.
3043         * include/ext/algorithm: Same.
3044
3045         * include/backward/bvector.h: Adjust includes.
3046         * include/backward/vector.h: Same.
3047         * include/backward/strstream: Same.
3048         * include/backward/streambuf.h: Same.
3049         * include/backward/stack.h: Same.
3050         * include/backward/set.h: Same.
3051         * include/backward/queue.h: Same.
3052         * include/backward/multiset.h: Same.
3053         * include/backward/multimap.h: Same.
3054         * include/backward/map.h: Same.
3055         * include/backward/list.h: Same.
3056         * include/backward/iterator.h: Same.
3057         * include/backward/iostream.h: Same.
3058         * include/backward/iomanip.h: Same.
3059         * include/backward/fstream.h: Same.
3060         * include/backward/deque.h: Same.
3061         * include/backward/complex.h: Same.
3062
3063         * include/bits/std_algorithm.h: Move to...
3064         * include/std/algorithm: ...here.
3065         * include/bits/std_iosfwd.h, std_locale.h, std_stack.h,
3066         std_bitset.h, std_ios.h, std_map.h, std_stdexcept.h,
3067         std_complex.h, std_iostream.h, std_memory.h, std_streambuf.h,
3068         std_deque.h, std_istream.h, std_numeric.h, std_string.h,
3069         std_fstream.h, std_ostream.h, std_utility.h, std_iterator.h,
3070         std_queue.h, std_valarray.h, std_functional.h, std_limits.h,
3071         std_set.h, std_vector.h, std_iomanip.h, std_list.h, std_sstream.h:
3072         Same.
3073
3074         * include/c_std/bits/std_cassert.h: Move to...
3075         * include/c_std/cassert: Here.
3076         * include/c_std/std_cctype.h, std_cerrno.h, std_cfloat.h,
3077         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
3078         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
3079         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
3080         std_cwctype.h: Same.
3081         * include/c_std/cmath: Adjust cmath.tcc include.
3082         * include/c_std/cstdlib: Adjust includes.
3083         * include/c_std/cwchar: Same.
3084         * include/c_std/ctime: Same.
3085         * include/c_std/cstring: Same.
3086         * include/c_std/cstdio: Same.
3087         * include/c_std/bits: Remove directory.
3088
3089         * include/c/bits/std_cassert.h: Move to...
3090         * include/c/cassert: Here.
3091         * include/c/std_cctype.h, std_cerrno.h, std_cfloat.h,
3092         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
3093         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
3094         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
3095         std_cwctype.h: Same.
3096         * include/c/bits: Remove directory.
3097
3098         * include/std/cwctype: Remove.
3099         * include/std/cwchar: Remove.
3100         * include/std/ctime: Remove.
3101         * include/std/cstring: Remove.
3102         * include/std/cstdlib: Remove.
3103         * include/std/cstdio: Remove.
3104         * include/std/cstddef: Remove.
3105         * include/std/cstdarg: Remove.
3106         * include/std/csignal: Remove.
3107         * include/std/csetjmp: Remove.
3108         * include/std/cmath: Remove.
3109         * include/std/clocale: Remove.
3110         * include/std/climits: Remove.
3111         * include/std/ciso646: Remove.
3112         * include/std/cfloat: Remove.
3113         * include/std/cerrno: Remove.
3114         * include/std/cctype: Remove.
3115         * include/std/cassert: Remove.
3116
3117         * include/bits/fpos.h: Adjust includes, removing <bits/std_xxx.h>
3118         files and subsituting <xxx>.
3119         * include/bits/valarray_array.h: Same.
3120         * include/bits/stl_uninitialized.h: Same.
3121         * include/bits/stl_alloc.h: Same.
3122         * include/bits/stl_algobase.h: Same.
3123         * include/bits/sstream.tcc: Same.
3124         * include/bits/pthread_allocimpl.h: Same.
3125         * include/bits/ostream.tcc: Same.
3126         * include/bits/localefwd.h: Same.
3127         * include/bits/locale_facets.tcc: Same.
3128         * include/bits/locale_facets.h: Same.
3129         * include/bits/istream.tcc: Same.
3130         * include/bits/char_traits.h: Same.
3131         * include/bits/boost_concept_check.h: Same.
3132         * include/bits/basic_file.h: Same.
3133         * include/std/bitset: Same.
3134         * include/std/complex: Same.
3135         * include/std/fstream: Same.
3136         * include/std/functional: Same.
3137         * include/std/ios: Same.
3138         * include/std/iostream: Same.
3139         * include/std/ostream: Same.
3140         * include/std/sstream: Same.
3141         * include/std/streambuf: Same.
3142         * include/std/string: Same.
3143         * include/std/iterator: Same.
3144         * include/std/valarray: Same.
3145
3146         * src/ios.cc: Adjust includes.
3147         * src/valarray-inst.cc: Same.
3148         * src/string-inst.cc: Same.
3149         * src/stl-inst.cc: Same.
3150         * src/stdexcept.cc: Same.
3151         * src/misc-inst.cc: Same.
3152         * src/localename.cc: Same.
3153         * src/locale-inst.cc: Same.
3154         * src/locale.cc: Same.
3155         * src/limits.cc: Same.
3156         * src/concept-inst.cc: Same.
3157         * src/complex_io.cc: Same.
3158         * src/codecvt.cc: Same.
3159         * src/bitset.cc: Same.
3160         * src/cmath.cc: Same.
3161
3162 2002-01-04  Paolo Carlini  <pcarlini@unitus.it>
3163
3164         * include/bits/stl_tree.h (rb_tree):  Move to...
3165         * include/ext/rb_tree:  ...here, new file.
3166         * include/Makefile.am (ext_headers):  Add new file.
3167         * include/Makefile.in:  Regenerate.
3168         * include/bits/stl_tempbuf.h (get_temporary_buffer + helper,
3169         return_temporary_buffer, struct temporary_buffer):  Move to...
3170         * include/ext/memory:  ...here.
3171         * testsuite/ext/headers.cc:  Include <ext/rb_tree>.
3172         * include/backward/tempbuf.h:  Include <ext/memory>, tweak.
3173         * include/backward/tree.h:  Include <ext/rb_tree), tweak.
3174
3175 2002-01-03  Paolo Carlini  <pcarlini@unitus.it>
3176
3177         * include/bits/stl_numeric.h (power + helpers, iota):  Move to...
3178         * include/ext/numeric:  ...here, new file.
3179         * include/bits/stl_function.h (identity_element, unary_compose,
3180         binary_compose, compose1, compose2, identity, select1st,
3181         select2nd, project1st + helper, project2nd + helper,
3182         constant_void_fun + helper, constant_unary_fun + helper,
3183         costant_binary_fun + helper, constant0, constant1, constant2,
3184         subtractive_rng, mem_fun1, mem_fun1_ref):  Move to...
3185         * include/ext/functional:  ...here, new file.
3186         * include/Makefile.am (ext_headers):  Add new files.
3187         * include/Makefile.in:  Regenerate.
3188         * testsuite/ext/headers.cc:  Include <ext/numeric> and
3189         <ext/functional>.
3190         * include/backward/algo.h:  Include <ext/numeric>, tweak.
3191         * include/backward/function.h:  Include <ext/functional>, tweak.
3192         * include/ext/ropeimpl.h:  Include <ext/numeric>.
3193
3194 2002-01-03  Jeffrey A Law  <law@redhat.com>
3195
3196         * config/os/hpux/bits/os_defines.h: Prefix __strtoll and
3197         __strtoull declarations with __extension__.
3198
3199 2002-01-03  David Billinghurst <David.Billinghurst@riotinto.com>
3200
3201         * testsuite/lib/prune.exp: Correct regular expression for
3202         -ffunction-sections
3203
3204 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
3205
3206         * include/bits/stl_algo.h (upper_bound, equal_range, binary_search):
3207         Change concept checks, as with lower_bound and PR 2054.
3208         * testsuite/ext/concept_checks.cc:  Expand test to include those.
3209
3210 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
3211
3212         * include/bits/boost_concept_check.h:  Import some changes from
3213         upsteam (Boost) version.
3214
3215 2002-01-02  Paolo Carlini  <pcarlini@unitus.it>
3216
3217         * include/bits/stl_algobase.h (copy_n + helpers,
3218         lexicographical_compare_3way + helpers):  Move to...
3219         * include/ext/algorithm:  ...here.
3220         * include/bits/stl_uninitialized.h (uninitialized_copy_n +
3221         helpers):  Move to...
3222         * include/ext/memory:  ...here, new file.
3223         * include/Makefile.am (ext_headers):  Add new file.
3224         * include/Makefile.in:  Regenerate.
3225         * testsuite/ext/headers.cc:  Include <ext/memory>.
3226         * include/backward/algobase.h:  Include <ext/memory> and
3227         <ext/algorithm>, tweak.
3228         * include/ext/ropeimpl.h:  Include <ext/memory>, tweak.
3229         * include/ext/stl_rope.h:  Include <ext/memory>, tweak.
3230
3231 2002-01-01  Roger Sayle <roger@eyesopen.com>
3232
3233         * libmath/stubs.c (sinf,cosf): Implement stubs to enable the
3234         equivalent ___builtin__ versions.
3235
3236         * include/c_shadow/bits/std_cmath.h: All __builtin math functions
3237         are available in libstdc++ as the necessary stub implementations
3238         are provided by libmath/stubs.c.
3239
3240 2002-01-01  Jason Thorpe  <thorpej@wasabisystems.com>
3241
3242         * configure.in: Add support for NetBSD cross compiles.
3243         * configure: Regenerate.