OSDN Git Service

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