OSDN Git Service

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