OSDN Git Service

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