OSDN Git Service

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