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