OSDN Git Service

2002-03-15 Philipp Thomas <pthomas@suse.de>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2002-03-15  Philipp Thomas  <pthomas@suse.de>
2
3         * include/backward/hash_map.h: hash, hashtable, hash_map and
4         hash_multimap are in namespace __gnu_cxx.
5         include/backward/hash_set.h: hash, hashtable, hash_set and
6         hash_multiset are in namespace __gnu_cxx.
7         include/backward/hashtable.h: hash and hashtable are in 
8         namespace __gnu_cxx.
9         include/backward/rope.h: char_producer, sequence_buffer,
10         rope, crope and wrope are in namespace __gnu_cxx.
11         include/backward/slist.h: slist is in namespace __gnu_cxx.
12         * testsuite/backward/header_hash_map_h.cc
13         testsuite/backward/header_hash_set_h.cc
14         testsuite/backward/header_hashtable_h.cc
15         testsuite/backward/header_rope_h.cc
16         testsuite/backward/header_slist_h.cc
17         testsuite/backward/header_tempbuf_h.cc: New tests for
18         checking that we're using the correct namespace.
19
20 2002-03-17  Jason Merrill  <jason@redhat.com>
21
22         PR c++/4381
23         * libsupc++/eh_personality.cc (get_adjusted_ptr): New static fn.
24         (check_exception_spec): Call it.  Take the thrown pointer.
25         (__cxa_call_unexpected): Pass it.
26         (PERSONALITY_FUNCTION): Likewise.  Use get_adjusted_ptr.
27
28 Fri Mar 15 09:55:49 2002  Anthony Green  <green@redhat.com>
29
30         * configure.in: Remove useless is_mingw32.
31         * configure: Rebuilt.
32
33 2002-03-15  Paolo Carlini  <pcarlini@unitus.it>
34
35         * testsuite/22_locale/collate_members_char.cc
36         (test01): compare the result of collate::compare with
37         that of collate::transform + string::compare, not with
38         that of collate::transform + collate::compare.
39         (test01): values returned by collate::compare are
40         normalized, therefore test against +-1.
41         * testsuite/22_locale/collate_members_wchar_t.cc: Ditto.
42
43 2002-03-12  Loren Rittle  <ljrittle@acm.org>
44
45         reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
46         * testsuite/thread/pthread4.cc: Lower nominal iteration counter.
47
48 2002-03-12  Benjamin Kosnik  <bkoz@redhat.com>
49             Per Liboriussen  <liborius@stofanet.dk>
50         
51         * config/os/gnu-linux/bits/ctype_noninline.h: Cast to
52         unsigned char.
53         * config/os/gnu-linux/bits/ctype_inline.h: Same.
54
55         * config/os/irix/irix6.5/bits/ctype_inline.h: Same.
56
57         * config/os/solaris/solaris2.5/bits/ctype_inline.h: Same.
58         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
59
60         * config/os/solaris/solaris2.6/bits/ctype_inline.h: Same.
61         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
62
63         * config/os/solaris/solaris2.7/bits/ctype_inline.h: Same.
64         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
65
66         * testsuite/22_locale/ctype_members_char.cc (main): Add tests.
67         
68 2002-03-12  Benjamin Kosnik  <bkoz@redhat.com>
69
70         * include/bits/basic_string.tcc (string::_S_construct(_InIter,
71         _InIter, const _Alloc&, forward_iterator_tag): Check for null.
72         (string::basic_string(const _CharT* __s, const _Alloc& __a)): Same.
73         * testsuite/21_strings/ctor_copy_dtor.cc (test01): Re-enable, now
74         that memory limits are in place.
75         (test03): Add tests.
76         
77 2002-03-11  Benjamin Kosnik  <bkoz@redhat.com>
78
79         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for wctype.h.
80         * aclocal.m4: Regenerate.
81         * config.h.in: Regenerate.
82         * configure: Regenerate.
83         * include/c_std/std_cwctype.h: Guard.
84
85 2002-03-11  Chris Demetriou  <cgd@broadcom.com>
86
87         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Enhance check for
88         whether GLIBCPP_CHECK_LINKER_FEATURES has been used.
89         * aclocal.m4: Regenerate.
90         * configure: Regenerate.
91
92 2002-03-11  Benjamin Kosnik  <bkoz@redhat.com>
93
94         * include/bits/stl_bvector.h: Fix warning.
95
96 2002-03-11  Richard Henderson  <rth@redhat.com>
97
98         * include/bits/stl_bvector.h (_Bit_type): New.  Use throughout.
99
100 2002-03-11  Phil Edwards  <pme@gcc.gnu.org>
101
102         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-list-sourcefiles):
103         New function.  Build the list of tests to run in testsuite_files.
104         * testsuite/libstdc++-v3.dg/dg.exp:  Use it.
105
106 2002-03-11  Phil Edwards  <pme@gcc.gnu.org>
107
108         * testsuite/21_strings/capacity.cc:  Only explicitly instantiate on
109         platforms with no weak support.
110         * testsuite/27_io/ios_init.cc:  Likewise.
111
112 2002-03-10  Paolo Carlini  <pcarlini@unitus.it>
113
114         * include/bits/locale_facets.tcc (time_put::do_put):
115         Consider sizeof(char_type) in allocating the buffer.
116
117         * include/bits/locale_facets.tcc (collate::do_tranform):
118         Remove redundant variable.
119
120 2002-03-10  Ulrich Drepper  <drepper@redhat.com>
121             Paolo Carlini  <pcarlini@unitus.it>
122
123         * config/locale/generic/collate_members.cc
124         (collate<char,wchar_t>::_M_compare_helper): normalize
125         values returned by strcoll and wcscoll.
126         * config/locale/gnu/collate_members.cc
127         (collate<char,wchar_t>::_M_compare_helper): ditto
128         for __strcoll_l and __wcscoll_l.
129
130 2002-03-10  Anthony Green  <green@redhat.com>
131
132         * configure.in: Support cross builds to mingw32 target.
133         * configure: Rebuilt.
134
135 2002-03-09  Paolo Carlini  <pcarlini@unitus.it>
136
137         * include/bits/locale_facets.tcc (collate::do_transform):
138         Rewrite to fix problems with long transformed strings.
139
140 2002-03-08  Benjamin Kosnik  <bkoz@redhat.com>
141
142         * c_locale_generic.cc: Move to...
143         * generic/c_locale.cc
144         * c_locale_generic.h: Move to...
145         * generic/c_locale.h
146         * codecvt_specializations_generic.h: Move to...
147         * generic/codecvt_specializations.h
148         * collate_members_generic.cc: Move to...
149         * generic/collate_members.cc
150         * ctype_members_generic.cc: Move to...
151         * generic/ctype_members.cc
152         * messages_members_generic.cc: Move to...
153         * generic/messages_members.cc
154         * messages_members_generic.h: Move to...
155         * generic/messages_members.h
156         * moneypunct_members_generic.cc: Move to...
157         * generic/monetary_members.cc
158         * numpunct_members_generic.cc: Move to...
159         * generic/numeric_members.cc
160         * time_members_generic.cc: Move to...
161         * generic/time_members.cc
162         * c_locale_gnu.cc: Move to...
163         * gnu/c_locale.cc
164         * c_locale_gnu.h: Move to...
165         * gnu/c_locale.h
166         * collate_members_gnu.cc: Move to...
167         * gnu/collate_members.cc
168         * ctype_members_gnu.cc: Move to...
169         * gnu/ctype_members.cc
170         * messages_members_gnu.cc: Move to...
171         * gnu/messages_members.cc
172         * messages_members_gnu.h: Move to...
173         * gnu/messages_members.h
174         * moneypunct_members_gnu.cc: Move to...
175         * gnu/monetary_members.cc
176         * numpunct_members_gnu.cc: Move to...
177         * gnu/numeric_members.cc
178         * time_members_gnu.cc: Move to...
179         * gnu/time_members.cc
180         * c_locale_ieee_1003.1-200x.cc: Move to...
181         * ieee_1003.1-2001/c_locale.cc
182         * c_locale_ieee_1003.1-200x.h: Move to...
183         * ieee_1003.1-2001/c_locale.h
184         * codecvt_specializations_ieee_1003.1-200x.h: Move to...
185         * ieee_1003.1-2001/codecvt_specializations.h
186         * messages_members_ieee_1003.1-200x.cc: Move to...
187         * ieee_1003.1-2001/messages_members.cc
188         * messages_members_ieee_1003.1-200x.h: Move to...
189         * ieee_1003.1-2001/messages_members.h   
190
191         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Make consistent.
192         * aclocal.m4: Regenerate.
193         * configure: Regenerate.
194         * src/Makefile.am (sources): Change to monetary and numeric.
195         * src/Makefile.in: Regenerate.
196         * docs/html/configopts.html: Update to ieee_1003.1-2001.
197
198 2002-03-08  scott snyder  <snyder@fnal.gov>
199
200         libstdc++/5875
201         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
202         Allow one more digit of precision.
203         * testsuite/27_io/ostream_inserter_arith.cc: Test that we can
204         write a double and read back in the same value.
205
206 2002-03-08  Benjamin Kosnik  <bkoz@redhat.com>
207
208         * include/std/std_limits.h: Move static const data members out of
209         generic template, into base class __numeric_limits_base.
210         * src/limits.cc: Add definitions.
211         * config/linker-map.gnu: Add __numeric_limits_base.
212         * testsuite/18_support/numeric_limits.cc: Declare test in scope.
213         
214 2002-03-07  Benjamin Kosnik  <bkoz@redhat.com>
215
216         * include/bits/stl_alloc.h: Add extern implicit allocator
217         instantiations.
218         * include/bits/basic_string.tcc: Tweak.
219         * include/bits/locale_facets.tcc: Remove default args. Add
220         has_facet, use_facet extern instantiations.
221         * src/stl-inst.cc: Add explicit instantiation.
222         * src/locale-inst.cc: Clean. Remove locale member template
223         instantiations.
224
225         * testsuite/22_locale/operators.cc (test02): Enable.
226
227 2002-03-06  Benjamin Kosnik  <bkoz@redhat.com>
228             Stephen M. Webb  <stephen.webb@bregmasoft.com>
229
230         * include/bits/stl_tree.h (_S_rb_tree_red): Make enum.
231         (_S_rb_tree_black): Make enum.
232         Clean. Format.
233         * include/bits/stl_bvector.h (__WORD_BIT): To _M_word_bit, enum.
234         * include/bits/stl_algo.h (__stl_chunk_size): _M_chunk_size, enum.
235         (__stl_threshold): _M_threshold, enum.
236         * src/stl-inst.cc: Same.
237         * config/linker-map.gnu: Remove.
238         
239         * testsuite/23_containers/vector_bool.cc: New.
240         
241 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
242
243         * docs/doxygen/user.cfg.in:  Also document deprecated entries.
244         * docs/html/Makefile:  Example rule to rebuild porting-howto.html.
245         * docs/html/17_intro/howto.html:  "gcc"->"GCC" changes, when
246         referring to the collection as a whole.  New section on which macros
247         can be redefined by the user.
248         * docs/html/19_diagnostics/howto.html:  Update note for concepts.
249         * docs/html/20_util/howto.html:  Update link to SGI.
250         * docs/html/faq/index.html:  Update snapshot versions.  New entry
251         on why g++ (but not gcc) must currently predefine certain macros.
252         * docs/html/faq/index.txt:  Regenerated.
253
254         * include/bits/basic_string.h (basic_string::_S_construct):  Fix
255         names in declaration.
256         (basic_string::compare):  These are no longer optional.
257         * include/bits/ostream.tcc:  Tweak closing brace placement.
258         * include/bits/stl_algo.h:  Lots of initial doxygen comment hooks.
259         * include/std/std_sstream.h:  Fix typo in comment.
260         * include/bits/locale_facets.tcc:  Remove unneeded header inclusion.
261         * src/locale.cc:  Likewise.
262
263 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
264
265         PR libstdc++/5734
266         * include/bits/stl_vector.h (vector::push_back()):  Guard with
267         _GLIBCPP_DEPRECATED.
268
269 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
270
271         * include/bits/c++config:  Fix misplaced leading blanks on first line.
272
273 2002-03-05  Benjamin Kosnik  <bkoz@redhat.com>
274
275         * docs/html/17_intro/RELEASE-NOTES: Fix usage.
276         * README (libmath): Make clear.
277
278 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
279
280         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Check for version
281         script globbing in ld.
282         * aclocal.m4: Rebuilt.
283         * configure: Rebuilt.
284
285 2002-03-05  Benjamin Kosnik  <bkoz@redhat.com>
286
287         * docs/html/17_intro/RELEASE-NOTES: Update.
288         * README: Format subdirectories.
289
290 2002-03-05  Paolo Carlini  <pcarlini@unitus.it>
291
292         libstdc++/5816
293         * include/bits/locale_facets.tcc
294         (num_get::_M_extract_float): Fix the parsing of __dec, since
295         the standard prescribes that if no grouping characters are
296         seen, no grouping check is applied.
297         * testsuite/22_locale/num_get_members_char.cc: Add test05
298         distilled from the PR.
299         * testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
300
301 2002-03-04  Craig Rodrigues  <rodrigc@gcc.gnu.org>
302
303         * docs/html/17_intro/porting-howto.xml: Refer to 
304         http://www.oasis-open.org for docbookx.dtd.
305         * docs/html/17_intro/porting-howto.html: Regenerated.
306
307 2002-03-03  Phil Edwards  <pme@gcc.gnu.org>
308
309         PR libstdc++/3955
310         * include/std/std_sstream.h:  Remove trailing spaces.
311         (basic_stringbuf::_M_stringbuf_init):  Also check for ios_base::app.
312         * testsuite/27_io/stringbuf.cc (test05, test06):  New tests.
313
314 2002-03-02  Paolo Carlini  <pcarlini@unitus.it>
315
316         * testsuite/22_locale/num_get_members_char.cc (test04):
317         Use a named locale expecting grouping (de_DE).
318         * testsuite/22_locale/num_get_members_wchar_t.cc (test04):
319         Ditto.
320         * testsuite/27_io/ios_manip_basefield.cc (test01):
321         Extend coverage, uniform treatment of hexs and octs.
322
323 2002-02-28  Richard Henderson  <rth@redhat.com>
324
325         * config/linker-map.gnu: Export operator new with unsigned long,
326         and with std::nothrow_t.  Likewise operator delete.
327
328 2002-02-28  Paolo Carlini  <pcarlini@unitus.it>
329
330         * include/bits/locale_facets.tcc (num_get::_M_extract_int):
331         Admit grouping for octals and hexadecimals too.
332         * testsuite/22_locale/num_get_members_char.cc: Add test04.
333         (test01): Tweak "." -> "," in void* test.
334         * testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
335
336         * testsuite/27_io/ios_manip_basefield.cc: Remove static keyword.
337         * testsuite/27_io/ios_manip_fmtflags.cc: Remove two of them.
338
339 2002-02-27  Paolo Carlini  <pcarlini@unitus.it>
340
341         * testsuite/27_io/ios_manip_basefield.cc (test01):
342         Fix for 64 bit machines.
343
344 2002-02-26  Benjamin Kosnik  <bkoz@redhat.com>
345
346         libstdc++/3983
347         * include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
348         Adjust comment.
349         * include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
350         (basic_ios::_M_fill_init): New.
351         (basic_ios::fill()): Delay dealing with _M_fill.
352         Adjust comment. 
353         * ios.cc (ios_base::ios_base()): Initialize _M_callbacks, _M_words.
354         (ios_base::_M_call_callbacks): Adjust.
355         * testsuite/27_io/ios_init.cc (test02): Adjust testcase.
356
357 2002-02-26  Loren Rittle  <ljrittle@acm.org>
358
359         * include/Makefile.am (thread_target_headers): Unconditionally
360         stage and install gthr-posix.h.
361         (${target_builddir}/gthr-posix.h): New rule cloned off
362         ${target_builddir}/gthr-default.h.
363         (${target_builddir}/gthr-default.h): Support chained inclusion
364         of gthr support headers.
365         * include/Makefile.in: Rebuilt.
366
367 2002-02-26  Paolo Carlini  <pcarlini@unitus.it>
368
369         * include/bits/locale_facets.tcc (num_put::_M_widen_int):
370         Group all the integral types, not only decs.
371         * testsuite/27_io/ios_manip_basefield.cc (test01): Tweak existing
372         tests, add a few more.
373
374 2002-02-25  Benjamin Kosnik  <bkoz@redhat.com>
375
376         * src/ios.cc (ios_base::~ios_base): Tweak.
377         (ios_base::_M_call_callbacks): Deal with null __p.
378         (ios_base::ios_base): Set _M_callbacks.
379         * include/bits/basic_ios.tcc (basic_ios::init): Adjust comment.
380         * testsuite/27_io/ios_init.cc (test02): Fix.
381
382         * mkcheck.in (static_fail): Failed links go to output file.
383
384 2002-02-25  Phil Edwards  <pme@gcc.gnu.org>
385
386         * docs/html/faq/index.html:  Update.
387         * docs/html/faq/index.txt:  Regenerate.
388
389 2002-02-22  Phil Edwards  <pme@gcc.gnu.org>
390
391         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS):  Fix comment.
392         * aclocal.m4:  Regenerate.
393         * docs/html/configopts.html:  Document --enable-symvers.
394         * config/linker-map.gnu:  Break libsupc++ symbols out to their own tag.
395
396 2002-02-22  Philipp Thomas  <pthomas@suse.de>
397
398         * include/backward/tempbuf.h: get_temporary_buffer and
399         return_temporary_buffer are in namespace std, not in __gnu_cxx.
400
401 2002-02-21  Benjamin Kosnik  <bkoz@redhat.com>
402
403         * configure.in (target_alias): Default to yes.
404         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared
405         libgcc to default case. 
406
407 2002-02-20  Phil Edwards  <pme@gcc.gnu.org>
408
409         * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES):  Also check version.
410         (GLIBCPP_ENABLE_SYMVERS):  Redo logic, use linker version.
411         * configure.in (GLIBCPP_ENABLE_SYMVERS):  Move later in the script.
412         * aclocal.m4:  Regenerate.
413         * configure:  Regenerate.
414         * config/linker-map.dummy:  New file.  Contains nothing useful.
415
416 2002-02-20  Benjamin Kosnik  <bkoz@redhat.com>
417
418         * testsuite/22_locale/money_put_members_char.cc: Fix.   
419         * testsuite/22_locale/money_put_members_wchar_t.cc: Fix.
420
421         * testsuite/27_io/standard_manipulators.cc: New file.
422
423         * testsuite/27_io/ios_manip_basefield.cc: Check results, now failing.
424         * testsuite/27_io/ios_manip_fmtflags.cc: Use locale::classic().
425         
426 2002-02-20  Danny Smith  <dannysmith@users.sourceforge.net>
427
428         * config/os/mingw32/bits/ctype_noninline.h
429         (ctype<char>::ctype): Remove default args from parm list.
430         * config/os/djgpp/bits/ctype_noninline.h: Same. 
431
432 2002-02-19  Benjamin Kosnik  <bkoz@redhat.com>
433
434         * include/std/std_iomanip.h: Inline, tweaks.
435         * config/linker-map.gnu: Remove hacks.
436
437         * testsuite/21_strings/capacity.cc: Add explicit instantiations.
438         * testsuite/27_io/ios_init.cc: Same.
439         * testsuite/22_locale/money_get_members_char.cc (test07): Fix.
440         * testsuite/22_locale/money_get_members_wchar_t.cc (test07): Same.
441
442 2002-02-19  Benjamin Kosnik  <bkoz@redhat.com>
443         
444         * config/linker-map.gnu: Export global vtable, typeinfo, guard
445         variable, and thunk info as per CXXABI docs.
446
447 2002-02-19  Loren Rittle <ljrittle@acm.org>
448
449         * include/Makefile.am: Use CONFIG_HEADER instead of ad hoc names.
450         * include/Makefile.in: Rebuilt.
451
452 2002-02-18  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
453
454         * testsuite/22_locale/collate_byname.cc (test01): Replace size4
455           with size3 for the string collations of str5.
456
457 2002-02-18  Paolo Carlini  <pcarlini@unitus.it>
458
459         libstdc++/5708
460         * include/bits/locale_facets.tcc (money_put::do_put):
461         For the space field use __fill instead of ' ', uniformly.
462         * testsuite/22_locale/money_put_members_char.cc:
463         Add test05 distilled from PR.
464         (test01-02-03): Trim some '*' to ' '.
465         * testsuite/22_locale/money_put_members_wchar_t.cc: Ditto.
466
467 2002-02-18  Loren Rittle <ljrittle@acm.org>
468
469         libstdc++/5697
470         * include/Makefile.am (thread_builddir): Remove (map all
471         existing uses to target_builddir).
472         (thread_headers): Rename to...
473         (thread_target_headers): ...this.
474         (stamp-thread): Remove.
475         (stamp-target): Correctly state the position as built.
476         Update all dependencies to match the new reality.  Remove all
477         dependency calculations on directories.
478         * include/Makefile.in: Rebuilt.
479
480 2002-02-16   Benjamin Kosnik  <bkoz@redhat.com>
481
482         * include/bits/locale_facets.tcc: Add pragma GCC system_header. 
483         * include/bits/fstream.tcc: Same.
484         * include/bits/sstream.tcc: Same.
485         * include/bits/ostream.tcc: Same.
486         * include/bits/istream.tcc: Same.
487         * include/bits/streambuf.tcc: Same.
488         * include/bits/basic_ios.tcc: Same.
489         * include/bits/basic_string.tcc: Same.
490
491 2002-02-15  Benjamin Kosnik  <bkoz@redhat.com>
492
493         * include/std/std_iosfwd.h: Don't guard typedefs with
494         _GLIBCPP_USE_WCHAR_T
495         * include/bits/stringfwd.h: Same.
496
497 2002-02-15  Benjamin Kosnik  <bkoz@redhat.com>
498
499         * src/locale.cc (moneypunct_byname): Remove definitions.
500         * include/std/std_streambuf.h (streambuf::operator=): Return.
501         
502 2002-02-15  Benjamin Kosnik  <bkoz@redhat.com>
503
504         Tune for size.
505         * src/string-inst.cc (string::_Rep::_S_terminal): Remove redundant
506         explicit instantiation.
507         (string::_Rep::_S_max_size): Same.
508         * include/bits/basic_string.tcc: Add extern explicit
509         instantiations for string, wstring.
510         * include/bits/basic_ios.tcc: Add extern explicit instantiations
511         for ios, wios.
512         * include/bits/streambuf.tcc: Same, for streambuf, wstreambuf.
513         * include/bits/istream.tcc: Same, for istream, wistream.
514         * include/bits/ostream.tcc: Same for ostream, wostream, iostream,
515         wiostream.
516         * include/bits/sstream.tcc: Same, for stringbuf, wstringbuf,
517         istringstream, wistringstream, ostringstream, wostringstream,
518         stringstream, wstringstream.
519         * include/bits/fstream.tcc: Same, for filebuf, wfilebuf, ifstream,
520         wifstream, ofstream, wofstream, fstream, wfstream.
521         * src/misc-inst.cc: Correct comments.
522         Add iomanip instantiations for wide streams.
523         * include/std/std_iomanip.h: Same.
524         * include/bits/locale_facets.tcc: Same.
525         
526         * include/std/std_streambuf.h: Correct
527         _GLIBCPP_FULLY_COMPLIANT_HEADERS guard.
528         * include/std/std_sstream.h: Same.
529         * include/std/std_ostream.h: Same.
530         * include/std/std_istream.h: Same.
531         * include/std/std_fstream.h: Same.
532
533         * include/std/std_streambuf.h: Add definitions for private copy
534         ctor and assignment operator.
535         * include/std/std_istream.h: Remove declared but undefined copy
536         ctor and assignment operator. This is taken care of in ios_base,
537         so adding it in the derived class as well is superfluous.
538         * include/std/std_ostream.h: Same.
539
540         * include/bits/basic_ios.h (basic_ios::clear): Don't inline.
541         * include/bits/basic_ios.tcc (basic_ios::clear): Move definition here.
542         
543 2002-02-14  Benjamin Kosnik  <bkoz@redhat.com>
544
545         * config/linker-map.gnu: Change tag from GCC_3.1 to GLIBCPP_3.1.
546         Add typeinfo bits. Smooth.
547         * aclocal.m4: Regenerate.
548         * configure: Same.
549         * src/Makefile.in: Same.
550
551 2001-02-14  Joel Sherrill  <joel@OARcorp.com>
552
553         * config/cpu/m68k/bits/atomicity.h: Corrected for RTEMS targets
554         which do not have a CAS instruction.
555
556 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
557
558         * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS):  New macro, initial revision.
559         * configure.in:  Call it.
560         * config/linker-map.gnu:  New file, initial incomplete revision.
561         * src/Makefile.am:  Optionally pass version script to the linker.
562         * aclocal.m4:  Regenerate.
563         * configure:  Regenerate.
564         * src/Makefile.in:  Regenerate.
565
566 2002-02-13  Benjamin Kosnik  <bkoz@redhat.com>
567
568         * src/localename.cc: Remove stdexcept include.
569         * src/locale-inst.cc: Same.
570         * src/locale.cc: Same.
571         * src/functexcept.cc: Remove string includes.
572         * include/std/std_bitset.h: Remove stdexcept include.
573         * testsuite/23_containers/bitset_members.cc: Add stdexcept.
574         * testsuite/23_containers/bitset_ctor.cc: Same.
575
576 2002-02-11  Benjamin Kosnik  <bkoz@redhat.com>
577
578         * include/bits/stl_algo (__stl_threshold): Declare external.    
579         (__stl_chunk_size): Same.
580         * include/bits/stl_bvector.h (__WORD_BIT): Same.
581         * include/bits/stl_tree.h (_S_rb_tree_red): Same.
582         (_S_rb_tree_black): Same.
583         * src/stl-inst.cc (__stl_threshold): Define.
584         (__stl_chunk_size): Same.
585         (__WORD_BIT): Same.
586         (_S_rb_tree_red): Same.
587         (_S_rb_tree_black): Same.
588         
589         * config/io/basic_file_libio.h (__basic_file): Add declarations.
590         * include/bits/basic_file.h: Remove.
591         * config/io/c_io_stdio.h: Remove _GLIBCPP_BASIC_FILE_ENCAPSULATION
592         Declare generic types, specialization.
593         * config/io/basic_file_stdio.cc: Definitions.   
594         * config/io/c_io_libio.h: Remove _GLIBCPP_BASIC_FILE_INHERITANCE.
595         Declare generic types.
596         * include/Makefile.am (bits_headers): Remove basic_file.h.
597         (extra_target_headers): Change basic_file_model.h to basic_file.h.
598         (stamp-target): Same.
599
600         * include/bits/stl_alloc.h: Tweaks.
601         * include/bits/localefwd.h: Same.       
602
603 2002-02-11  Aaron W LaFramboise  <AWLaFramboise@aol.com>
604
605         * include/bits/locale_facets.tcc (collate::do_hash): Fix.
606         * testsuite/22_locale/collate_members_char.cc (test03): New test.
607         * testsuite/22_locale/collate_members_wchar_t.cc (test03): Same.
608         
609 2002-02-10  Phil Edwards  <pme@gcc.gnu.org>
610
611         * include/bits/stl_algo.h (transform (both signatures), generate_n):
612         Use __typeof__ in concept checks.
613
614 2002-02-10  Jonathan Wakely  <cow@compsoc.man.ac.uk>
615
616         * include/bits/stl_algo.h (__median, for_each, find, find_if,
617         adjacent_find, count, count_if, search, search_n, swap_ranges,
618         transform, replace, replace_if, replace_copy, replace_copy_if,
619         generate, generate_n, remove_copy, remove_copy_if, remove, remove_if,
620         unique, unique_copy, reverse, reverse_copy):  Doxygenate.
621
622 2002-02-08  Benjamin Kosnik  <bkoz@redhat.com>
623
624         * include/bits/locale_facets.h
625         (numpunct<_CharT>::_M_initialize_numpunct): Remove definition.
626         (__timepunct<_CharT>::_M_initialize_timepunct): Same.
627         (__timepunct<_CharT>::_M_put_helper): Same.
628         (moneypunct<_CharT, _Intl>::_M_initialize_moneypunct): Same.
629
630         * include/bits/fstream.tcc (filebuf::underflow): Remove
631         __codecvt_type typedef.
632         (filebuf::_M_convert_to_external): Same.
633         
634 2002-02-08  Phil Edwards  <pme@gcc.gnu.org>
635
636         * docs/doxygen/TODO:  Update.
637         * docs/doxygen/doxygroups.cc:  Tweak __gnu_cxx description.
638         * docs/doxygen/mainpage.html:  Add TODO list link.
639         * docs/doxygen/user.cfg.in:  Add @doctodo hook.
640         * docs/doxygen/tables.html:  New file, emoty structure only.
641
642         * include/bits/stl_iterator.h:  Doxygenate just about everything.
643         * include/bits/stl_iterator_base_funcs.h:  Ditto, clean up spaces.
644         * include/bits/stl_iterator_base_types.h:  Add notes.
645
646 2002-02-07  Stephan Buys  <sbproxy@icon.co.za>
647
648         * include/bits/stl_map.h:  Tweak doxygen markup.
649         * include/bits/stl_multimap.h:  Doxygenate and remove extra spaces.
650         * include/bits/stl_vector.h:  Likewise.
651
652 2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>
653
654         libstdc++/5286
655         libstdc++/3860
656         * include/std/std_fstream.h (filebuf::__file_type): Change to
657         __basic_file<char>.
658         (filebuf::_M_convert_to_external): Declare.
659         * include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
660         codecvt bits for wide streams.
661         (filebuf::_M_really_overflow): Use it.
662         (filebuf::underflow): Use codecvt.
663         * config/locale/codecvt_specializations_ieee_1003.1-200x.h: 
664         (codecvt<__enc_traits>::do_out): Deal with partial.
665         (codecvt<__enc_traits>::do_encoding): Return something useful.
666         * src/codecvt.cc (codecvt<wchar_t>::do_encoding): Return sizeof
667         wchar_t.
668         * testsuite/22_locale/codecvt_members_unicode_char.cc (test01):
669         Change expected encoding output.
670         (test02): Same.
671         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test01): Same.
672         (test02): Same.
673
674 2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>
675             Wolfgang Bangerth  <wolfgang.bangerth@iwr.uni-heidelberg.de>
676         
677         * include/bits/basic_ios.tcc (basic_ios::narrow): Add default value.
678         (basic_ios::widen): Same.
679
680 2002-02-07  Paolo Carlini  <pcarlini@unitus.it>
681
682         * testsuite/22_locale/money_get_members_char.cc:
683         Add comment, tidy up.
684         (test01): more "en_HK" tests (without showbase).
685         * testsuite/22_locale/money_get_members_wchar_t.cc: Ditto.
686
687 2002-02-06  Loren Rittle <ljrittle@acm.org>
688
689         * config/locale/c_locale_generic.cc: Do not trust
690         _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as
691         set by configure.
692
693 2002-02-06  Loren Rittle <ljrittle@acm.org>
694
695         * acinclude.m4: Add C++ linkage check for strtof.
696         * aclocal.m4: Rebuilt.
697         * config.h.in: Rebuilt.
698         * configure: Rebuilt.
699         * config/locale/c_locale_generic.cc: Conditionally include
700         <ieeefp.h>.  Improve handling and error checking of float
701         and long double input for non-C99 configurations.
702
703 2002-02-06  Paolo Carlini  <pcarlini@unitus.it>
704
705         * include/bits/locale_facets.tcc (money_get::do_get(string)):
706         In case money_base::symbol deal properly with multi-char sign
707         for patterns {X,Y,Z,symbol} and {X,Y,symbol,none}.
708         * testsuite/22_locale/money_get_members_char.cc: Add test07.
709         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test07.
710
711 2002-02-05  Paolo Carlini  <pcarlini@unitus.it>
712
713         * include/bits/locale_facets.tcc (money_get::do_get(string)):
714         First construct a tentative returned string, then, only if the
715         parsing succeeds, copy it into the string passed by reference.
716         * testsuite/22_locale/money_get_members_char.cc: Add test06.
717         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test06.
718
719 2002-02-04  Phil Edwards  <pme@gcc.gnu.org>
720
721         * docs/doxygen/TODO:  Impl-defined behavior now documented...
722         * docs/html/17_intro/howto.html:  ...here.
723         * docs/doxygen/mainpage.doxy:  Remove, rename...
724         * docs/doxygen/mainpage.html:  ...to this.  Tweak HTML, add license.
725         * docs/doxygen/style.css:  Add small text.
726         * docs/doxygen/run_doxygen:  Adjust for new mainpage.
727         * docs/doxygen/user.cfg.in:  Likewise.
728
729 2002-02-04  Stephan Buys  <sbproxy@icon.co.za>
730
731         * include/bits/stl_map.h:  Initial doxygen markup.
732         * include/std/std_fstream.h:  Initial doxygen markup.
733
734 2002-02-04  Paolo Carlini  <pcarlini@unitus.it>
735
736         libstdc++/5579
737         * include/bits/locale_facets.tcc (money_get::do_get(string)):
738         Deal correctly with !(__io.flags() & ios_base::showbase)
739         for case money_base::symbol.
740         * testsuite/22_locale/money_get_members_char.cc: Add test05.
741         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test05.
742
743 2002-02-02  Paolo Carlini  <pcarlini@unitus.it>
744
745         * testsuite/22_locale/operators.cc
746         (gnu_collate::do_compare()): Add return statement to
747         suppress "no return statement" warning.
748
749 2002-02-01  Paolo Carlini  <pcarlini@unitus.it>
750
751         * testsuite/27_io/ostream_manip.cc: Enable test02.
752
753 2002-02-01  Phil Edwards  <pme@gcc.gnu.org>
754
755         * docs/html/documentation.html:  Update for 3.0.96.
756         * docs/html/faq/index.html:  Update for 3.0.96.
757         * docs/html/faq/index.txt:  Regenerated.
758         * docs/doxygen/TODO:  Update notes.
759         * docs/html/17_intro/howto.html:  Initial impl-specific listing.
760
761 2002-01-31  Benjamin Kosnik  <bkoz@redhat.com>
762
763         * config/locale/codecvt_specializations_ieee_1003.1-200x.h:
764         Initialize all data members in copy ctor. Make ctors explicit.
765         (__enc_traits::__enc_traits()): Default ctor does nothing.
766         (__enc_traits::_M_init): Guard against multiple iconv_opens.
767         * include/std/std_sstream.h (basic_stringbuf): Make data members
768         protected.
769         * include/std/std_fstream.h (basic_filebuf): Same.
770         * include/std/std_streambuf.h: Tweak.
771         * include/bits/streambuf.tcc: Same.
772         * include/bits/sstream.tcc: Same.
773         * include/bits/fstream.tcc: Same.       
774
775 2002-01-31  Loren Rittle <ljrittle@acm.org>
776
777         * testsuite/22_locale/codecvt_members_char_char.cc: Do not
778         allow NULL argument to be passed to setenv().
779         * testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
780         * testsuite/22_locale/collate_members_char.cc: Likewise.
781         * testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
782         * testsuite/22_locale/ctype_members_char.cc: Likewise.
783         * testsuite/22_locale/ctype_members_wchar_t.cc: Likewise.
784         * testsuite/22_locale/messages_members_char.cc: Likewise.
785         * testsuite/22_locale/money_get_members_char.cc: Likewise.
786         * testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
787         * testsuite/22_locale/money_put_members_char.cc: Likewise.
788         * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
789         * testsuite/22_locale/moneypunct_members_char.cc: Likewise.
790         * testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
791         * testsuite/22_locale/num_get_members_char.cc: Likewise.
792         * testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
793         * testsuite/22_locale/num_put_members_char.cc: Likewise.
794         * testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
795         * testsuite/22_locale/numpunct_members_char.cc: Likewise.
796         * testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
797         * testsuite/22_locale/time_get_members_char.cc: Likewise.
798         * testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
799         * testsuite/22_locale/time_put_members_char.cc: Likewise.
800         * testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
801
802 2002-01-30  Benjamin Kosnik  <bkoz@redhat.com>
803
804         * config/locale/c_locale_gnu.cc: Same errno fixes as generic.
805
806         * ChangeLog-2001: Fix spelling errors...
807         * docs/html/17_intro/RELEASE-NOTES: Update.
808         * docs/html/17_intro/TODO: Update.
809         * README (file): Update.
810         
811 2002-01-30  Loren Rittle <ljrittle@acm.org>
812
813         * config/locale/c_locale_generic.cc: Check errno for ERANGE
814         instead of non-zero to aid portability.
815
816 2002-01-30  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
817
818         * docs/html/22_locale/messages.html: Fix example code.
819
820 2002-01-30  Richard Henderson  <rth@redhat.com>
821
822         * testsuite/27_io/ostream_inserter_arith.cc (test03_check): Break
823         out from test03 and templatize.
824         (test03): Use it.
825
826 2002-01-30  Paolo Carlini  <pcarlini@unitus.it>
827
828         * config/locale/numpunct_members_gnu.cc
829         (numpunct<char, wchar_t>::_M_initialize_numpunct()):
830         Fix initialization of _M_grouping for locales which have
831         _M_thousands_sep == '\0'(L'\0', respectively).
832         * testsuite/22_locale/numpunct_byname.cc (test02): Add test.
833
834 2002-01-30  Paolo Carlini  <pcarlini@unitus.it>
835
836         * testsuite/27_io/ostream_inserter_arith.cc (test03):
837         Better fix for 32/64 bit architectures, avoiding the
838         implicit assumption that CHAR_BIT == 8.
839
840 2002-01-28  Phil Edwards  <pme@gcc.gnu.org>
841
842         * Makefile.am (doxygen, doxygen-maint, doxygen-man):  Tweak targets.
843         * Makefile.in:  Regenerate.
844
845         * docs/doxygen/run_doxygen:  Update, mostly for man pages.
846         * docs/doxygen/Intro.3:  Update.
847         * docs/doxygen/TODO:  Update.
848         * docs/doxygen/doxygroups.cc:  Add namespace hook for __gnu_cxx.
849         * docs/doxygen/mainpage.doxy:  Update.
850         * docs/doxygen/user.cfg.in:  Update for header rename.  Also
851         regenerate comments and variables with 1.2.12.
852         * docs/doxygen/maint.cfg.in:  Remove file.
853
854         * include/bits/stl_relops.h:  Doxygenate.
855         * include/bits/stl_tempbuf.h (std::_Temporary_buffer):  Likewise.
856
857         * include/c_std/std_cassert.h, include/c_std/std_cctype.h,
858         include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
859         include/c_std/std_ciso646.h, include/c_std/std_climits.h,
860         include/c_std/std_clocale.h, include/c_std/std_cmath.h,
861         include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
862         include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
863         include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
864         include/c_std/std_cstring.h, include/c_std/std_ctime.h,
865         include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
866         include/ext/algorithm, include/ext/functional, include/ext/hash_map,
867         include/ext/hash_set, include/ext/iterator, include/ext/memory,
868         include/ext/numeric, include/ext/rb_tree, include/ext/rope,
869         include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
870         include/ext/stl_hashtable.h, include/ext/stl_rope.h,
871         include/std/std_algorithm.h, include/std/std_bitset.h,
872         include/std/std_complex.h, include/std/std_deque.h,
873         include/std/std_fstream.h, include/std/std_functional.h,
874         include/std/std_iomanip.h, include/std/std_ios.h,
875         include/std/std_iosfwd.h, include/std/std_iostream.h,
876         include/std/std_istream.h, include/std/std_iterator.h,
877         include/std/std_limits.h, include/std/std_list.h,
878         include/std/std_locale.h, include/std/std_map.h,
879         include/std/std_memory.h, include/std/std_numeric.h,
880         include/std/std_ostream.h, include/std/std_queue.h,
881         include/std/std_set.h, include/std/std_sstream.h,
882         include/std/std_stack.h, include/std/std_stdexcept.h,
883         include/std/std_streambuf.h, include/std/std_string.h,
884         include/std/std_utility.h, include/std/std_valarray.h,
885         include/std/std_vector.h:  Add/correct @file doxygen hook.
886
887         * include/ext/memory:  Doxygenate most of rest of file.
888         * libsupc++/exception:  Doxygen output formatting.
889         * libsupc++/new:  Say which header it is.
890
891         * testsuite/lib/libstdc++-v3-dg.exp:  Fix spacing.
892         * docs/html/19_diagnostics/howto.html:  Describe concept-checks switch.
893         * docs/html/23_containers/howto.html:  Describe O(n) list::size().
894         * docs/html/27_io/howto.html:  Also link to Langer and Kreft text.
895
896 2002-01-28  Paolo Carlini  <pcarlini@unitus.it>
897             Charles Leggett <CGLeggett@lbl.gov>
898
899         * testsuite/27_io/filebuf_members.cc (test_05): Add test.
900
901 2002-01-28  Paolo Carlini  <pcarlini@unitus.it>
902
903         * testsuite/27_io/ostream_inserter_arith.cc (test03):
904         Fix to deal correctly with both 32 bit and 64 bit architectures
905
906 2002-01-25  Loren Rittle <ljrittle@acm.org>
907
908         * testsuite/thread/pthread1.cc: Use one condition variable
909         per predicate instead of tricky use of one condition variable.
910
911 2002-01-25  Benjamin Kosnik  <bkoz@redhat.com>
912
913         * include/bits/fstream.tcc (filebuf::close()): Fix close for input
914         streams.
915         (filebuf::_M_really_overflow): Match indeterminate and sync calls.
916         * testsuite/27_io/filebuf.cc: Compile only.
917         * testsuite/27_io/filebuf_members.cc: Move tests to here.
918         * testsuite/27_io/filebuf_virtuals.cc: And here.
919         Revert sungetc, sync changes for expected values.
920         * testsuite/27_io/filebuf-*: Move to...
921         * testsuite/27_io/filebuf_virtuals-*: ...here.
922         * testsuite/27_io/istream.cc: Compile only, activate.
923         * testsuite/27_io/ostream.cc: Same.
924         * testsuite/27_io/iostream.cc: New.
925         * testsuite/27_io/iostream_members.cc: New.
926
927 2002-01-25  David Billinghurst <David.Billinghurst@riotinto.com>
928
929         * testsuite/thread/pthread1.cc: Enable on cygwin.
930         * testsuite/thread/pthread2.cc: Likewise.
931         * testsuite/thread/pthread3.cc: Likewise.
932         * testsuite/thread/pthread4.cc: Likewise.
933         * testsuite/thread/pthread5.cc: Likewise.
934         * testsuite/thread/pthread6.cc: Likewise.
935
936 2002-01-24  Benjamin Kosnik  <bkoz@redhat.com>
937
938         * testsuite/27_io/ostream_inserter_char.cc (test07): New. 
939         
940 2002-01-24  Benjamin Kosnik  <bkoz@redhat.com>
941
942         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Make
943         const, tweak.
944         (basic_ios::fill(char_type)): Use fill().       
945         * include/bits/basic_ios.tcc (basic_ios::widen): Use _M_check_facet.
946         (basic_ios::narrow): Same.
947         (basic_ios::_M_cache_facets): Explicitly set cached facets to zero
948         if they are invalid.
949         (basic_ios::init): Comment.
950         * testsuite/27_io/ios_init.cc (test02): New.
951         
952 2002-01-24  Phil Edwards  <pme@gcc.gnu.org>
953
954         * include/bits/stl_tempbuf.h (_Temporary_buffer):  Add doxygen hook.
955         * include/bits/stl_algo.h:  Include stl_tempbuf.h.
956         * include/ext/memory:  Do not include stl_tempbuf.h.
957         (temporary_buffer):  Add doxygen hook.
958         (__get_temporary_buffer, get_temporary_buffer,
959         return_temporary_buffer):  Move back to std:: header...
960         * include/std/std_memory.h:  ...here.  Do not include stl_tempbuf.h.
961         * include/ext/rope:  Do not include stl_tempbuf.h.
962         * include/ext/stl_hashtable.h:  Likewise.
963         * include/std/std_algorithm.h:  Likewise.
964         * testsuite/20_util/temporary_buffer.cc:  New file.
965
966 2002-01-24  andrew@andypo.net
967             (tweaks, test and commit by Loren J. Rittle  <ljrittle@acm.org>)
968
969         libstdc++/5432
970         * include/bits/ios_base.h: Use _Atomic_word for reference counts.
971         * include/bits/localefwd.h: Likewise.
972         Also use for std::locale::id::_S_highwater.
973         * src/ios.cc (ios_base::xalloc): Use _Atomic_word.
974         * src/locale.cc: Support new usage of _Atomic_word.
975         (std::locale::classic): Guard entire function against reentry.
976         * src/localename.cc: Support new usage of _Atomic_word.
977
978 2002-01-24   Benjamin Kosnik  <bkoz@redhat.com>
979
980         * testsuite/22_locale/num_put_members_wchar_t.cc (test03): Use
981         _GLIBCPP_HAVE_SETENV.
982         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): Same.
983         * testsuite/22_locale/collate_members_char.cc (test02): Same.
984         * testsuite/22_locale/ctype_members_char.cc (test03): Same.
985         * testsuite/22_locale/ctype_members_wchar_t.cc (test03): Same.
986         * testsuite/22_locale/messages_members_char.cc (test02): Same.
987         * testsuite/22_locale/moneypunct_members_char.cc (test02): Same.
988         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): Same.
989         * testsuite/22_locale/money_put_members_char.cc (test04): Same.
990         * testsuite/22_locale/money_put_members_wchar_t.cc (test04): Same.
991         * testsuite/22_locale/num_get_members_char.cc (test03): Same.
992         * testsuite/22_locale/num_get_members_wchar_t.cc (test03): Same.
993         * testsuite/22_locale/numpunct_members_char.cc (test02): Same.
994         * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): Same.
995         * testsuite/22_locale/time_get_members_char.cc (test07): Same.
996         * testsuite/22_locale/time_get_members_wchar_t.cc (test07): Same.
997         * testsuite/22_locale/time_put_members_char.cc (test03): Same.
998         * testsuite/22_locale/time_put_members_wchar_t.cc (test03): Same.
999         * testsuite/22_locale/num_put_members_char.cc (test03): Same.
1000         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Check for setenv.
1001         * aclocal.m4: Regenerate.
1002         * configure: Regenerate.
1003         * config.h.in: Regenerate.
1004         
1005 2002-01-23  Loren Rittle <ljrittle@acm.org>
1006
1007         * testsuite/thread/pthread1.cc: New test.
1008         * testsuite/thread/pthread2.cc: New test adapted from libstdc++/5347.
1009         * testsuite/thread/pthread3.cc: Likewise.
1010         * testsuite/thread/pthread4.cc: New test adapted from
1011         http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00679.html
1012         * testsuite/thread/pthread5.cc: New test adapted from libstdc++/5464.
1013         * testsuite/thread/pthread6.cc: New test adapted from libstdc++/5444.
1014
1015 2002-01-23  Richard Henderson  <rth@redhat.com>
1016
1017         PR libstdc++/5198
1018         * config/cpu/m68k/bits/atomicity.h (__exchange_and_add): Only use
1019         CAS on the cpu variants that support it.  Add versions that use
1020         TAS and that disable interrupts.
1021         (__atomic_add): Use __exchange_and_add to guarantee atomicity.
1022
1023 2002-01-23  Matt Kraai  <kraai@alumni.cmu.edu>
1024
1025         * include/bits/locale_facets.tcc: Remove old comments.
1026
1027 2002-01-23  Andreas Tobler  <toa@pop.agri.ch>
1028
1029         * include/bits/locale_facets.tcc (__convert_to_v): Change template
1030         parameter to _Tv.
1031         (__convert_from_v): Same.
1032         
1033 2002-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1034
1035         * include/bits/locale_facets.h (num_get::_M_extract_int): Change
1036         prototype.
1037         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Remove
1038         __max_digits checks, adjust arguments.
1039         (num_get::do_get(*)): Changeup.
1040
1041 2002-01-23  Loren Rittle <ljrittle@acm.org>
1042
1043         * config/locale/c_locale_generic.cc: Fix typename usage.
1044
1045 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
1046
1047         * config/locale/c_locale_generic.cc: Fix.
1048
1049 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
1050
1051         * docs/html/22_locale/messages.html: Remove angle brackets.
1052         * docs/html/17_intro/TODO: Add.
1053         
1054 2002-01-22  Paolo Carlini  <pcarlini@unitus.it>
1055
1056         * testsuite/27_io/ios_manip_basefield.cc: Enable test02.
1057         * testsuite/27_io/ostream_inserter_arith.cc: Enable test03.
1058         * testsuite/27_io/ostream_inserter_char.cc: Enable test01.
1059         * testsuite/27_io/ostream_inserter_other.cc: Enable test04.
1060
1061 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
1062
1063         Audit for LANG independence.
1064         * include/bits/localefwd.h: Tweaks.
1065         * include/bits/locale_facets.tcc (money_get::do_get(long double)):
1066         Use __convert_to_v.
1067         (time_get::do_get_year): Same.
1068         (__convert_from_v): Add.
1069         (num_put::_M_convert_float): Use.
1070         (num_put::_M_convert_int): Same.
1071         (money_put::do_put): Same.
1072         
1073         * src/locale-inst.cc: Add instantiations for __convert_from_v.
1074         * config/locale/time_members_gnu.cc: Cleanup setlocale usage.
1075         * config/locale/time_members_generic.cc: 
1076         * config/locale/messages_members_gnu.cc: Same.
1077         * config/locale/messages_members_gnu.h: Same.
1078         
1079         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): New.
1080         * testsuite/22_locale/codecvt_members_char_char.cc (test02): New.
1081         * testsuite/22_locale/collate_members_wchar_t.cc (test02): New.
1082         * testsuite/22_locale/collate_members_char.cc (test02): New.
1083         * testsuite/22_locale/ctype_members_wchar_t.cc (test03): New.
1084         * testsuite/22_locale/ctype_members_char.cc (test03): New.
1085         * testsuite/22_locale/messages_members_char.cc (test02): New.
1086         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): New.
1087         * testsuite/22_locale/moneypunct_members_char.cc (test02): New.
1088         * testsuite/22_locale/money_get_members_wchar_t.cc (test04): New.
1089         * testsuite/22_locale/money_get_members_char.cc (test04): New.
1090         * testsuite/22_locale/money_put_members_wchar_t.cc (test04): New.
1091         * testsuite/22_locale/money_put_members_char.cc (test04): New.
1092         * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): New.
1093         * testsuite/22_locale/numpunct_members_char.cc (test02): New.
1094         * testsuite/22_locale/time_put_members_wchar_t.cc (test03): New.
1095         * testsuite/22_locale/time_put_members_char.cc (test03): New.
1096         * testsuite/22_locale/time_get_members_wchar_t.cc (test07): New.
1097         * testsuite/22_locale/time_get_members_char.cc (test07): New.
1098         * testsuite/22_locale/num_get_members_wchar_t.cc (test03): New.
1099         * testsuite/22_locale/num_get_members_char.cc (test03): New.
1100         * testsuite/22_locale/num_put_members_wchar_t.cc (test03): New.
1101         * testsuite/22_locale/num_put_members_char.cc (test03): New.
1102
1103         * testsuite/22_locale/time_get_members_char.cc: Fixups for global
1104         locale issues.
1105         * testsuite/22_locale/time_get_members_char.cc: Same.
1106         
1107 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
1108
1109         libstdc++/5280
1110         * include/bits/localefwd.h: Tweak comments.
1111         * include/bits/locale_facets.h (__convert_to_v): Add.
1112         * include/bits/locale_facets.tcc (num_get::do_get(double)): Use it.
1113         (num_get::do_get(float)): Same.
1114         (num_get::do_get(long double)): Same.
1115         (num_get::do_get(bool)): Same.
1116         (num_get::do_get(long)): Same.
1117         (num_get::do_get(long long)): Same.
1118         (num_get::do_get(unsigned int)): Same.
1119         (num_get::do_get(unsigned short)): Same.
1120         (num_get::do_get(unsigned long)): Same.
1121         (num_get::do_get(unsigned long long)): Same.
1122         * config/locale/c_locale_gnu.cc (__convert_to_v): Specialize.
1123         * config/locale/c_locale_generic.cc: Same.
1124         
1125 2002-01-22  Loren Rittle <ljrittle@acm.org>
1126
1127         * include/Makefile.am (c_base_builddir): Remove redundant slash.
1128         (std_builddir): Likewise.
1129         (std_headers_rename): Fix cut-n-paste typo.
1130         (install-data-local): Concat path per element instead of once to
1131         first element of list.
1132         * include/Makefile.in: Rebuilt.
1133
1134 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
1135
1136         * config/os/aix/bits/ctype_noninline.h: Fix formatting.
1137         * config/os/bsd/netbsd/bits/ctype_noninline.h: Fix typo.
1138         * config/os/bsd/freebsd/bits/ctype_noninline.h: Fix formatting.
1139
1140 2002-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1141
1142         * include/bits/locale_facets.h (ctype<char>::classic_table):
1143         Remove definition.
1144         (ctype<char>::_S_ctable): Remove.
1145         * config/os/gnu-linux/bits/ctype_noninline.h
1146         (ctype<char>::_S_table): Remove definition.
1147         (ctype<char>::classic_table): Define.
1148         (ctype<char>::ctype): Replace _S_ctable with classic_table().
1149         * config/os/aix/bits/ctype_noninline.h: Same.
1150         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
1151         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
1152         * config/os/djgpp/bits/ctype_noninline.h: Same.
1153         * config/os/generic/bits/ctype_noninline.h: Same.
1154         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
1155         * config/os/hpux/bits/ctype_noninline.h: Same.
1156         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
1157         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
1158         * config/os/mingw32/bits/ctype_noninline.h: Same.
1159         * config/os/newlib/bits/ctype_noninline.h: Same.
1160         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
1161         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
1162         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
1163
1164 2002-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1165
1166         * config/os/mingw32/bits/ctype_noninline.h: Declare _ctype instead
1167         of _pctype. Use to define _S_ctable.  Add definition for alternate
1168         ctor.  Initialise _M_ctable to _S_ctable in ctors.
1169         (do_toupper, do_tolower): Use inline code appropriate for C-locale
1170         rather than ::toupper, ::tolower.
1171
1172 2002-01-18  Loren Rittle <ljrittle@acm.org>
1173
1174         * testsuite/18_support/numeric_limits.cc (test_extrema<long double>):
1175         Add specialization for FreeBSD systems only to avoid losing test
1176         only due to extra precision unmentioned in system headers.
1177
1178 2002-01-18  David Billinghurst <David.Billinghurst@riotinto.com>
1179
1180         * config/os/irix/irix6.5/bits/ctype_noninline.h: Fix typo
1181
1182 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1183
1184         * testsuite/testsuite_hooks.h: Fix comment typo.  Memory
1185         limiting is only attempted if _GLIBCPP_MEM_LIMIT is defined.
1186
1187 2002-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1188         
1189         * testsuite/22_locale/ctor_copy_dtor.cc: Remove check.
1190
1191 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
1192
1193         * configure.target: Define OPT_LDFLAGS for AIX case.
1194
1195 2002-01-17  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1196
1197         * include/std/std_limits.h (__glibcpp_float_has_quiet_NaN,
1198         __glibcpp_double_has_quiet_NaN): Correct mispelling.
1199
1200 2002-01-17  Andreas Tobler  <toa@pop.agri.ch>
1201
1202         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Fix.
1203
1204 2002-01-16  David Edelsohn  <dje@watson.ibm.com>
1205
1206         * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Do not clear
1207         SECTION_LDFLAGS and OPT_LDFLAGS.  Fix ac_sectionLDflags type.
1208         * aclocal.m4: Regenerate.
1209         * configure: Regenerate.
1210         
1211 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
1212
1213         * include/Makefile.am (c_base_headers_rename): New.
1214         (c_base_headers_extra): New.
1215         (stamp-c_base): Modify.
1216         (install-data-local): Use both.
1217         * include/Makefile.in: Regenerate.
1218         * include/c/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
1219         csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
1220         cstdio ctime cwctype]: Move to..
1221         * include/c/std_*: Here.
1222         * include/c_std/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
1223         csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
1224         cstdio ctime cwctype]: Move to..
1225         * include/c_std/std_*: Here.
1226
1227         Alexandre Oliva  <aoliva@redhat.com>    
1228         * include/Makefile.am (.PRECIOUS): Add rule.
1229         * include/Makefile.in: Regenerate.
1230         
1231 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
1232             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1233         
1234         * include/bits/stl_iterator.h (reverse_iterator::_M_current):
1235         Deuglify, should be current.
1236         (back_insert_iterator::_M_container): Deuglify, should be container.
1237         (front_insert_iterator::_M_container): Same.    
1238         (insert_iterator::_M_container): Same.
1239         * testsuite/24_iterators/reverse_iterator.cc: Add check.
1240         * testsuite/24_iterators/back_insert_iterator.cc: Add check.    
1241         * testsuite/24_iterators/front_insert_iterator.cc: Same.
1242         * testsuite/24_iterators/insert_iterator.cc: Same.
1243         
1244 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
1245
1246         * include/bits/locale_facets.h (ctype<char>::classic_table): Make
1247         static.
1248         (ctype<char>::_M_ctable): Make static, change name to _S_ctable.
1249         * config/os/gnu-linux/bits/ctype_noninline.h: Define _S_ctable.
1250         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
1251         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
1252         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
1253         * config/os/newlib/bits/ctype_noninline.h: Same.
1254         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
1255         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
1256         * config/os/hpux/bits/ctype_noninline.h: Same.
1257         * config/os/djgpp/bits/ctype_noninline.h: Same.
1258         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
1259         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
1260         * config/os/aix/bits/ctype_noninline.h: Same.
1261         
1262         Testcase by Dietmar Kühl via Peter Schmid 
1263         * testsuite/22_locale/ctype_members_char.cc (char>): Add test for
1264         classic_table().
1265
1266 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
1267
1268         * libmath/signbitl.c: Copyright years as list, not range.       
1269         * libmath/Makefile.am: Same.
1270         * libmath/Makefie.in: Regenerate.
1271         * libmath/signbit.c: Same.
1272         * libmath/nan.c: Same.
1273         * libmath/copysignf.c: Same.
1274         * libmath/signbitf.c: Same.
1275         * testsuite/22_locale/money_get_members_char.cc: Same.
1276         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
1277         * testsuite/22_locale/money_put_members_char.cc: Same.
1278         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
1279         * testsuite/22_locale/time_get_members_char.cc: Same.
1280         * testsuite/22_locale/time_get_members_wchar_t.cc: Same.
1281         * testsuite/22_locale/time_put_members_char.cc: Same.
1282         * testsuite/22_locale/time_put_members_wchar_t.cc: Same.
1283         * testsuite/21_strings/nonmember.cc: Same.
1284         * testsuite/21_strings/compare.cc: Same.
1285         * testsuite/27_io/stringstream.cc: Same.
1286         * testsuite/27_io/stringbuf.cc: Same.
1287         * testsuite/27_io/filebuf.cc: Same.
1288         * testsuite/27_io/ios_manip_basefield.cc: Same.
1289         * testsuite/27_io/ios_manip_fmtflags.cc: Same.
1290         * include/bits/cpp_type_traits.h: Same.
1291         * include/bits/generic_shadow.h: Same.
1292         * include/bits/gslice_array.h: Same.
1293         * include/bits/gslice.h: Same.
1294         * include/bits/indirect_array.h: Same.
1295         * include/bits/slice_array.h: Same.
1296         * include/bits/sstream.tcc: Same.
1297         * include/bits/streambuf_iterator.h: Same.
1298         * include/bits/valarray_array.tcc: Same.
1299         * include/bits/valarray_meta.h: Same.
1300         * include/bits/valarray_array.h: Same.
1301         * config/os/mingw32/bits/ctype_noninline.h: Same.
1302         * config/os/mingw32/bits/ctype_base.h: Same.
1303         * config/os/hpux/bits/ctype_noninline.h: Same.
1304         * config/os/hpux/bits/ctype_base.h: Same.
1305         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
1306         * config/os/gnu-linux/bits/ctype_base.h: Same.
1307         * config/os/generic/bits/ctype_noninline.h: Same.
1308         * config/os/generic/bits/ctype_base.h: Same.
1309
1310         * libsupc++/tinfo.h: Tweaks.
1311
1312 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
1313
1314         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
1315         * testsuite/22_locale/num_put_members_char.cc (test01): Tweak.
1316         * testsuite/22_locale/ctype_members_char.cc: Tweak.     
1317
1318 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
1319
1320         * include/bits/locale_facets.tcc (num_put::do_put(bool): Fix.
1321         (num_put::do_put(void*)): Fix.
1322         * testsuite/22_locale/num_put_members_char.cc (test02): Add.
1323         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Add.
1324         * testsuite/22_locale/num_get_members_char.cc (test02): Add
1325         long double, void, bool types.
1326         * testsuite/22_locale/num_get_members_wchar_t.cc (test02): Add.
1327         
1328 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
1329             Alexandre Oliva  <aoliva@redhat.com>
1330
1331         * libmath/Makefile.am (LINK): Add --tag CC.
1332         * libmath/Makefile.in: Regenerate.
1333
1334 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1335
1336         * config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
1337         of character to attribute mapping table.
1338
1339 2002-01-15  David Billinghurst <David.Billinghurst@riotinto.com>
1340
1341         * testsuite/26_numerics/c99_classification_macros_c.cc
1342         Remove dg-error and dg-excess-errors comments.
1343
1344 2002-01-14  Benjamin Kosnik  <bkoz@redhat.com>
1345
1346         * include/bits/locale_facets.tcc (time_put::put): Correct output
1347         iterator positions.
1348         * testsuite/22_locale/time_put_members_char.cc (test02): Add.
1349         * testsuite/22_locale/time_put_members_wchar_t.cc (test02): Add.
1350         * testsuite/22_locale/time_get_members_wchar_t.cc (test06): Add.
1351         * testsuite/22_locale/time_get_members_char.cc (test06): Add.
1352
1353 2002-01-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1354
1355         * docs/html/17_intro/porting-howto.xml: Update filebuf section.
1356
1357 2002-01-14  Paolo Carlini  <pcarlini@unitus.it>
1358             Nathan Myers  <ncm@cantrip.org>
1359
1360         * include/bits/basic_string.h
1361         (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
1362         temporaries (i.e., call _M_replace_safe) when possible.
1363         (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
1364         (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
1365         (replace(__i1, __i2, __str)): Call replace(__i1, __i2, __s, __n).
1366         (replace(__i1, __i2, __s)): Call replace(__i1, __i2, __s, __n).
1367         (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
1368         * include/bits/basic_string.tcc
1369         (replace(__pos1, __n1, __str, __pos2, __n2)): Call
1370         replace(__pos, __n1, __s, __n2).
1371         * testsuite/21_strings/replace.cc (test03): New testcases.
1372
1373         * include/bits/basic_string.h (insert(__pos, __s, __n)):
1374         Adjust comparison wrt overflow.
1375         
1376 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
1377
1378         * include/Makefile.am (std_headers_rename): New variable.
1379         (install-data-local): Use it.
1380         * include/Makefile.in: Regenerate.
1381         
1382 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
1383
1384         * include/bits/locale_facets.tcc (money_put::do_put(string):
1385         Correct output iterator value.
1386         * testsuite/22_locale/money_put_members_char.cc (test03): Add.
1387         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
1388         
1389 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
1390
1391         * include/Makefile.am, include/Makefile.in (stamp-std):  Fix typo from
1392         previous commit.
1393
1394 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
1395
1396         * include/Makefile.am (std_headers):  Update list with new names.
1397         (stamp-std):  Link to standardized name.
1398         * include/Makefile.in:  Regenerate.
1399
1400         * include/std/algorithm, include/std/bitset, include/std/complex,
1401         include/std/deque, include/std/fstream, include/std/functional,
1402         include/std/iomanip, include/std/ios, include/std/iosfwd,
1403         include/std/iostream, include/std/istream, include/std/iterator,
1404         include/std/limits, include/std/list, include/std/locale,
1405         include/std/map, include/std/memory, include/std/numeric,
1406         include/std/ostream, include/std/queue, include/std/set,
1407         include/std/sstream, include/std/stack, include/std/stdexcept,
1408         include/std/streambuf, include/std/string, include/std/utility,
1409         include/std/valarray, include/std/vector:  Rename to...
1410
1411         * include/std/std_algorithm.h, include/std/std_bitset.h,
1412         include/std/std_complex.h, include/std/std_deque.h,
1413         include/std/std_fstream.h, include/std/std_functional.h,
1414         include/std/std_iomanip.h, include/std/std_ios.h,
1415         include/std/std_iosfwd.h, include/std/std_iostream.h,
1416         include/std/std_istream.h, include/std/std_iterator.h,
1417         include/std/std_limits.h, include/std/std_list.h,
1418         include/std/std_locale.h, include/std/std_map.h,
1419         include/std/std_memory.h, include/std/std_numeric.h,
1420         include/std/std_ostream.h, include/std/std_queue.h,
1421         include/std/std_set.h, include/std/std_sstream.h,
1422         include/std/std_stack.h, include/std/std_stdexcept.h,
1423         include/std/std_streambuf.h, include/std/std_string.h,
1424         include/std/std_utility.h, include/std/std_valarray.h,
1425         include/std/std_vector.h:  ...this.
1426
1427 2002-01-11  Loren Rittle <ljrittle@acm.org>
1428
1429         * include/Makefile.am (extra_target_headers): New list of all
1430         target files built with ad hoc naming rules.
1431         (stamp-*): Handle LN_S failure in manner portable across make
1432         implementations.
1433         (install-data-local): Install header files from human-maintained
1434         file lists and directory components instead of non-robust find.
1435         * include/Makefile.in: Rebuilt.
1436
1437 2002-01-11  Benjamin Kosnik  <bkoz@redhat.com>
1438
1439         * include/bits/locale_facets.tcc (money_get::do_get(string)):
1440         Check for zero-length negative sign before adding it to output
1441         string.
1442         (money_get::do_get(long double)): Return beg.
1443         * testsuite/22_locale/money_get_members_char.cc (test02): Add
1444         iterator checks.
1445         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
1446         
1447 2002-01-10  David Seymour  <seymour_dj@yahoo.com>
1448
1449         libstdc++/5331
1450         * include/bits/locale_facets.h (num_get<>): Return advanced iterator
1451         for _M_extract_float and _M_extract_int
1452         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
1453         (num_get<>::_M_extract_int): Likewise, all callers changed
1454         * testsuite/22_locale/num_get_members_char.cc: Testcase
1455
1456 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
1457
1458         * libsupc++/exception (bad_exception): Add comment.
1459         * libsupc++/new (bad_alloc): Same.
1460         * libsupc++/typeinfo (bad_cast, bad_typeid): Same.
1461
1462 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
1463
1464         libstdc++/3150: revert 2001-11-30 commit. DR266 only means
1465         that the destructors should be removed from the descriptions
1466         in the standard: writing them explicitly allows the vtable
1467         heuristic to work. For additional information see:
1468         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00090.html
1469         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00110.html
1470         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00155.html
1471         * libsupc++/exception (bad_exception::~bad_exception()):
1472         Reintroduce declaration.
1473         * libsupc++/new (bad_alloc::~bad_alloc()): Same.
1474         * libsupc++/typeinfo (bad_cast::~bad_cast()): Same.
1475         (bad_typeid::~bad_typeid()): Same.
1476         * libsupc++/eh_exception.cc (bad_exception::~bad_exception()):
1477         Reintroduce definition.
1478         * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
1479         * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Same.
1480         (bad_typeid::~bad_typeid()): Same.
1481
1482 2002-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1483
1484         * include/Makefile.am (c_base_srcdir): Remove duplicate '/'.
1485         * include/Makefile.in: Regenerate.
1486         
1487 2002-01-09  Bo Thorsen  <bo@suse.co.uk>
1488
1489         * config/cpu/x86-64/bits/cpu_limits.h (__glibcpp_long_bits): Add
1490         definition.
1491
1492 2002-01-08  Benjamin Kosnik  <bkoz@redhat.com>
1493
1494         libstdc++/2913
1495         libstdc++/4879
1496         * include/bits/fstream.tcc (filebuf::_M_really_overflow): Test
1497         return value of _M_file->sync().
1498         (filebuf::showmanyc): Check for is_open.
1499         * include/std/fstream (filebuf::sync): Tweak.
1500         * testsuite/27_io/filebuf.cc: Tweak.
1501
1502 2002-01-08  John Fardo  <jfardo@laurelnetworks.com>
1503             Brad Garcia  <garsh@attbi.com>
1504         
1505         * testsuite/27_io/filebuf_members.cc: Add test.
1506         
1507 2002-01-07  Benjamin Kosnik  <bkoz@redhat.com>
1508             Craig Rodrigues  <rodrigc@mediaone.net>
1509
1510         libstdc++/5174
1511         * po/Makefile.am (mkinstalldirs): Add.
1512         * po/Makefile.in: Regenerate.
1513
1514 2002-01-07  David Billinghurst  <David.Billinghurst@riotinto.com>
1515
1516         * testsuite_flags.in: Add -fmessage-length=0 to CXXFLAGS *
1517         testsuite/lib/prune.exp: Delete lines ":In function ..."  from
1518         compiler output.
1519         * testsuite/23_containers/map_operators.cc: Remove
1520         dg-excess-errors comment.
1521         * testsuite/23_containers/set_operators.cc: Likewise.
1522
1523 2002-01-06  Paolo Carlini  <pcarlini@unitus.it>
1524
1525         * include/bits/stl_function.h:  Remove two lines of comments;
1526         adjust copyright years.
1527
1528 2002-01-04  Benjamin  Kosnik  <bkoz@redhat.com>
1529
1530         * include/Makefile.am (std_headers): Remove cXXX from list.
1531         (c_base_srcdir): No bits subdirectory.
1532         (c_base_builddir): Same.
1533         (c_base_headers): Adjust names, add ciso646.
1534         (bits_headers): Remove std_xxx.h headers.
1535         * include/Makefile.in: Regenerate.
1536         
1537         * include/ext/iterator: Adjust includes.
1538         * include/ext/ropeimpl.h: Same.
1539         * include/ext/stl_hash_fun.h: Same.
1540         * include/ext/algorithm: Same.
1541         
1542         * include/backward/bvector.h: Adjust includes.
1543         * include/backward/vector.h: Same.
1544         * include/backward/strstream: Same.
1545         * include/backward/streambuf.h: Same.
1546         * include/backward/stack.h: Same.
1547         * include/backward/set.h: Same.
1548         * include/backward/queue.h: Same.
1549         * include/backward/multiset.h: Same.
1550         * include/backward/multimap.h: Same.
1551         * include/backward/map.h: Same.
1552         * include/backward/list.h: Same.
1553         * include/backward/iterator.h: Same.
1554         * include/backward/iostream.h: Same.
1555         * include/backward/iomanip.h: Same.
1556         * include/backward/fstream.h: Same.
1557         * include/backward/deque.h: Same.
1558         * include/backward/complex.h: Same.
1559
1560         * include/bits/std_algorithm.h: Move to...
1561         * include/std/algorithm: ...here.
1562         * include/bits/std_iosfwd.h, std_locale.h, std_stack.h,
1563         std_bitset.h, std_ios.h, std_map.h, std_stdexcept.h,
1564         std_complex.h, std_iostream.h, std_memory.h, std_streambuf.h,
1565         std_deque.h, std_istream.h, std_numeric.h, std_string.h,
1566         std_fstream.h, std_ostream.h, std_utility.h, std_iterator.h,
1567         std_queue.h, std_valarray.h, std_functional.h, std_limits.h,
1568         std_set.h, std_vector.h, std_iomanip.h, std_list.h, std_sstream.h:
1569         Same.
1570         
1571         * include/c_std/bits/std_cassert.h: Move to...
1572         * include/c_std/cassert: Here.
1573         * include/c_std/std_cctype.h, std_cerrno.h, std_cfloat.h,
1574         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
1575         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
1576         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
1577         std_cwctype.h: Same.
1578         * include/c_std/cmath: Adjust cmath.tcc include.
1579         * include/c_std/cstdlib: Adjust includes.
1580         * include/c_std/cwchar: Same.
1581         * include/c_std/ctime: Same.
1582         * include/c_std/cstring: Same.
1583         * include/c_std/cstdio: Same.
1584         * include/c_std/bits: Remove directory.
1585         
1586         * include/c/bits/std_cassert.h: Move to...
1587         * include/c/cassert: Here.
1588         * include/c/std_cctype.h, std_cerrno.h, std_cfloat.h,
1589         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
1590         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
1591         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
1592         std_cwctype.h: Same.
1593         * include/c/bits: Remove directory.
1594         
1595         * include/std/cwctype: Remove.
1596         * include/std/cwchar: Remove.
1597         * include/std/ctime: Remove.
1598         * include/std/cstring: Remove.
1599         * include/std/cstdlib: Remove.
1600         * include/std/cstdio: Remove.
1601         * include/std/cstddef: Remove.
1602         * include/std/cstdarg: Remove.
1603         * include/std/csignal: Remove.
1604         * include/std/csetjmp: Remove.
1605         * include/std/cmath: Remove.
1606         * include/std/clocale: Remove.
1607         * include/std/climits: Remove.
1608         * include/std/ciso646: Remove.
1609         * include/std/cfloat: Remove.
1610         * include/std/cerrno: Remove.
1611         * include/std/cctype: Remove.
1612         * include/std/cassert: Remove.
1613
1614         * include/bits/fpos.h: Adjust includes, removing <bits/std_xxx.h>
1615         files and subsituting <xxx>.
1616         * include/bits/valarray_array.h: Same.
1617         * include/bits/stl_uninitialized.h: Same.
1618         * include/bits/stl_alloc.h: Same.
1619         * include/bits/stl_algobase.h: Same.
1620         * include/bits/sstream.tcc: Same.
1621         * include/bits/pthread_allocimpl.h: Same.
1622         * include/bits/ostream.tcc: Same.
1623         * include/bits/localefwd.h: Same.
1624         * include/bits/locale_facets.tcc: Same.
1625         * include/bits/locale_facets.h: Same.
1626         * include/bits/istream.tcc: Same.
1627         * include/bits/char_traits.h: Same.
1628         * include/bits/boost_concept_check.h: Same.
1629         * include/bits/basic_file.h: Same.
1630         * include/std/bitset: Same.
1631         * include/std/complex: Same.
1632         * include/std/fstream: Same.
1633         * include/std/functional: Same.
1634         * include/std/ios: Same.
1635         * include/std/iostream: Same.
1636         * include/std/ostream: Same.
1637         * include/std/sstream: Same.
1638         * include/std/streambuf: Same.
1639         * include/std/string: Same.
1640         * include/std/iterator: Same.
1641         * include/std/valarray: Same.
1642
1643         * src/ios.cc: Adjust includes.
1644         * src/valarray-inst.cc: Same.
1645         * src/string-inst.cc: Same.
1646         * src/stl-inst.cc: Same.
1647         * src/stdexcept.cc: Same.
1648         * src/misc-inst.cc: Same.
1649         * src/localename.cc: Same.
1650         * src/locale-inst.cc: Same.
1651         * src/locale.cc: Same.
1652         * src/limits.cc: Same.
1653         * src/concept-inst.cc: Same.
1654         * src/complex_io.cc: Same.
1655         * src/codecvt.cc: Same.
1656         * src/bitset.cc: Same.
1657         * src/cmath.cc: Same.
1658
1659 2002-01-04  Paolo Carlini  <pcarlini@unitus.it>
1660
1661         * include/bits/stl_tree.h (rb_tree):  Move to...
1662         * include/ext/rb_tree:  ...here, new file.
1663         * include/Makefile.am (ext_headers):  Add new file.
1664         * include/Makefile.in:  Regenerate.
1665         * include/bits/stl_tempbuf.h (get_temporary_buffer + helper,
1666         return_temporary_buffer, struct temporary_buffer):  Move to...
1667         * include/ext/memory:  ...here.
1668         * testsuite/ext/headers.cc:  Include <ext/rb_tree>.
1669         * include/backward/tempbuf.h:  Include <ext/memory>, tweak.
1670         * include/backward/tree.h:  Include <ext/rb_tree), tweak.
1671
1672 2002-01-03  Paolo Carlini  <pcarlini@unitus.it>
1673
1674         * include/bits/stl_numeric.h (power + helpers, iota):  Move to...
1675         * include/ext/numeric:  ...here, new file.
1676         * include/bits/stl_function.h (identity_element, unary_compose,
1677         binary_compose, compose1, compose2, identity, select1st,
1678         select2nd, project1st + helper, project2nd + helper,
1679         constant_void_fun + helper, constant_unary_fun + helper,
1680         costant_binary_fun + helper, constant0, constant1, constant2,
1681         subtractive_rng, mem_fun1, mem_fun1_ref):  Move to...
1682         * include/ext/functional:  ...here, new file.
1683         * include/Makefile.am (ext_headers):  Add new files.
1684         * include/Makefile.in:  Regenerate.
1685         * testsuite/ext/headers.cc:  Include <ext/numeric> and
1686         <ext/functional>.
1687         * include/backward/algo.h:  Include <ext/numeric>, tweak.
1688         * include/backward/function.h:  Include <ext/functional>, tweak.
1689         * include/ext/ropeimpl.h:  Include <ext/numeric>.
1690
1691 2002-01-03  Jeffrey A Law  <law@redhat.com>
1692
1693         * config/os/hpux/bits/os_defines.h: Prefix __strtoll and
1694         __strtoull declarations with __extension__.
1695
1696 2002-01-03  David Billinghurst <David.Billinghurst@riotinto.com>
1697
1698         * testsuite/lib/prune.exp: Correct regular expression for
1699         -ffunction-sections
1700
1701 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
1702
1703         * include/bits/stl_algo.h (upper_bound, equal_range, binary_search):
1704         Change concept checks, as with lower_bound and PR 2054.
1705         * testsuite/ext/concept_checks.cc:  Expand test to include those.
1706
1707 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
1708
1709         * include/bits/boost_concept_check.h:  Import some changes from
1710         upsteam (Boost) version.
1711
1712 2002-01-02  Paolo Carlini  <pcarlini@unitus.it>
1713
1714         * include/bits/stl_algobase.h (copy_n + helpers,
1715         lexicographical_compare_3way + helpers):  Move to...
1716         * include/ext/algorithm:  ...here.
1717         * include/bits/stl_uninitialized.h (uninitialized_copy_n +
1718         helpers):  Move to...
1719         * include/ext/memory:  ...here, new file.
1720         * include/Makefile.am (ext_headers):  Add new file.
1721         * include/Makefile.in:  Regenerate.
1722         * testsuite/ext/headers.cc:  Include <ext/memory>.
1723         * include/backward/algobase.h:  Include <ext/memory> and
1724         <ext/algorithm>, tweak.
1725         * include/ext/ropeimpl.h:  Include <ext/memory>, tweak.
1726         * include/ext/stl_rope.h:  Include <ext/memory>, tweak.
1727
1728 2002-01-01  Roger Sayle <roger@eyesopen.com>
1729
1730         * libmath/stubs.c (sinf,cosf): Implement stubs to enable the
1731         equivalent ___builtin__ versions.
1732
1733         * include/c_shadow/bits/std_cmath.h: All __builtin math functions
1734         are available in libstdc++ as the necessary stub implementations
1735         are provided by libmath/stubs.c.
1736
1737 2002-01-01  Jason Thorpe  <thorpej@wasabisystems.com>
1738
1739         * configure.in: Add support for NetBSD cross compiles.
1740         * configure: Regenerate.