OSDN Git Service

libstdc++/5432
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2002-01-24  andrew@andypo.net
2             (tweaks, test and commit by Loren J. Rittle  <ljrittle@acm.org>)
3
4         libstdc++/5432
5         * include/bits/ios_base.h: Use _Atomic_word for reference counts.
6         * include/bits/localefwd.h: Likewise.
7         Also use for std::locale::id::_S_highwater.
8         * src/ios.cc (ios_base::xalloc): Use _Atomic_word.
9         * src/locale.cc: Support new usage of _Atomic_word.
10         (std::locale::classic): Guard entire function against reentry.
11         * src/localename.cc: Support new usage of _Atomic_word.
12
13 2002-01-24   Benjamin Kosnik  <bkoz@redhat.com>
14
15         * testsuite/22_locale/num_put_members_wchar_t.cc (test03): Use
16         _GLIBCPP_HAVE_SETENV.
17         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): Same.
18         * testsuite/22_locale/collate_members_char.cc (test02): Same.
19         * testsuite/22_locale/ctype_members_char.cc (test03): Same.
20         * testsuite/22_locale/ctype_members_wchar_t.cc (test03): Same.
21         * testsuite/22_locale/messages_members_char.cc (test02): Same.
22         * testsuite/22_locale/moneypunct_members_char.cc (test02): Same.
23         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): Same.
24         * testsuite/22_locale/money_put_members_char.cc (test04): Same.
25         * testsuite/22_locale/money_put_members_wchar_t.cc (test04): Same.
26         * testsuite/22_locale/num_get_members_char.cc (test03): Same.
27         * testsuite/22_locale/num_get_members_wchar_t.cc (test03): Same.
28         * testsuite/22_locale/numpunct_members_char.cc (test02): Same.
29         * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): Same.
30         * testsuite/22_locale/time_get_members_char.cc (test07): Same.
31         * testsuite/22_locale/time_get_members_wchar_t.cc (test07): Same.
32         * testsuite/22_locale/time_put_members_char.cc (test03): Same.
33         * testsuite/22_locale/time_put_members_wchar_t.cc (test03): Same.
34         * testsuite/22_locale/num_put_members_char.cc (test03): Same.
35         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Check for setenv.
36         * aclocal.m4: Regenerate.
37         * configure: Regenerate.
38         * config.h.in: Regenerate.
39         
40 2002-01-23  Loren Rittle <ljrittle@acm.org>
41
42         * testsuite/thread/pthread1.cc: New test.
43         * testsuite/thread/pthread2.cc: New test adapted from libstdc++/5347.
44         * testsuite/thread/pthread3.cc: Likewise.
45         * testsuite/thread/pthread4.cc: New test adapted from
46         http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00679.html
47         * testsuite/thread/pthread5.cc: New test adapted from libstdc++/5464.
48         * testsuite/thread/pthread6.cc: New test adapted from libstdc++/5444.
49
50 2002-01-23  Richard Henderson  <rth@redhat.com>
51
52         PR libstdc++/5198
53         * config/cpu/m68k/bits/atomicity.h (__exchange_and_add): Only use
54         CAS on the cpu variants that support it.  Add versions that use
55         TAS and that disable interrupts.
56         (__atomic_add): Use __exchange_and_add to guarantee atomicity.
57
58 2002-01-23  Matt Kraai  <kraai@alumni.cmu.edu>
59
60         * include/bits/locale_facets.tcc: Remove old comments.
61
62 2002-01-23  Andreas Tobler  <toa@pop.agri.ch>
63
64         * include/bits/locale_facets.tcc (__convert_to_v): Change template
65         parameter to _Tv.
66         (__convert_from_v): Same.
67         
68 2002-01-23  Benjamin Kosnik  <bkoz@redhat.com>
69
70         * include/bits/locale_facets.h (num_get::_M_extract_int): Change
71         prototype.
72         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Remove
73         __max_digits checks, adjust arguments.
74         (num_get::do_get(*)): Changeup.
75
76 2002-01-23  Loren Rittle <ljrittle@acm.org>
77
78         * config/locale/c_locale_generic.cc: Fix typename usage.
79
80 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
81
82         * config/locale/c_locale_generic.cc: Fix.
83
84 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
85
86         * docs/html/22_locale/messages.html: Remove angle brackets.
87         * docs/html/17_intro/TODO: Add.
88         
89 2002-01-22  Paolo Carlini  <pcarlini@unitus.it>
90
91         * testsuite/27_io/ios_manip_basefield.cc: Enable test02.
92         * testsuite/27_io/ostream_inserter_arith.cc: Enable test03.
93         * testsuite/27_io/ostream_inserter_char.cc: Enable test01.
94         * testsuite/27_io/ostream_inserter_other.cc: Enable test04.
95
96 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
97
98         Audit for LANG independence.
99         * include/bits/localefwd.h: Tweaks.
100         * include/bits/locale_facets.tcc (money_get::do_get(long double)):
101         Use __convert_to_v.
102         (time_get::do_get_year): Same.
103         (__convert_from_v): Add.
104         (num_put::_M_convert_float): Use.
105         (num_put::_M_convert_int): Same.
106         (money_put::do_put): Same.
107         
108         * src/locale-inst.cc: Add instantiations for __convert_from_v.
109         * config/locale/time_members_gnu.cc: Cleanup setlocale usage.
110         * config/locale/time_members_generic.cc: 
111         * config/locale/messages_members_gnu.cc: Same.
112         * config/locale/messages_members_gnu.h: Same.
113         
114         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): New.
115         * testsuite/22_locale/codecvt_members_char_char.cc (test02): New.
116         * testsuite/22_locale/collate_members_wchar_t.cc (test02): New.
117         * testsuite/22_locale/collate_members_char.cc (test02): New.
118         * testsuite/22_locale/ctype_members_wchar_t.cc (test03): New.
119         * testsuite/22_locale/ctype_members_char.cc (test03): New.
120         * testsuite/22_locale/messages_members_char.cc (test02): New.
121         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): New.
122         * testsuite/22_locale/moneypunct_members_char.cc (test02): New.
123         * testsuite/22_locale/money_get_members_wchar_t.cc (test04): New.
124         * testsuite/22_locale/money_get_members_char.cc (test04): New.
125         * testsuite/22_locale/money_put_members_wchar_t.cc (test04): New.
126         * testsuite/22_locale/money_put_members_char.cc (test04): New.
127         * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): New.
128         * testsuite/22_locale/numpunct_members_char.cc (test02): New.
129         * testsuite/22_locale/time_put_members_wchar_t.cc (test03): New.
130         * testsuite/22_locale/time_put_members_char.cc (test03): New.
131         * testsuite/22_locale/time_get_members_wchar_t.cc (test07): New.
132         * testsuite/22_locale/time_get_members_char.cc (test07): New.
133         * testsuite/22_locale/num_get_members_wchar_t.cc (test03): New.
134         * testsuite/22_locale/num_get_members_char.cc (test03): New.
135         * testsuite/22_locale/num_put_members_wchar_t.cc (test03): New.
136         * testsuite/22_locale/num_put_members_char.cc (test03): New.
137
138         * testsuite/22_locale/time_get_members_char.cc: Fixups for global
139         locale issues.
140         * testsuite/22_locale/time_get_members_char.cc: Same.
141         
142 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
143
144         libstdc++/5280
145         * include/bits/localefwd.h: Tweak comments.
146         * include/bits/locale_facets.h (__convert_to_v): Add.
147         * include/bits/locale_facets.tcc (num_get::do_get(double)): Use it.
148         (num_get::do_get(float)): Same.
149         (num_get::do_get(long double)): Same.
150         (num_get::do_get(bool)): Same.
151         (num_get::do_get(long)): Same.
152         (num_get::do_get(long long)): Same.
153         (num_get::do_get(unsigned int)): Same.
154         (num_get::do_get(unsigned short)): Same.
155         (num_get::do_get(unsigned long)): Same.
156         (num_get::do_get(unsigned long long)): Same.
157         * config/locale/c_locale_gnu.cc (__convert_to_v): Specialize.
158         * config/locale/c_locale_generic.cc: Same.
159         
160 2002-01-22  Loren Rittle <ljrittle@acm.org>
161
162         * include/Makefile.am (c_base_builddir): Remove redundant slash.
163         (std_builddir): Likewise.
164         (std_headers_rename): Fix cut-n-paste typo.
165         (install-data-local): Concat path per element instead of once to
166         first element of list.
167         * include/Makefile.in: Rebuilt.
168
169 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
170
171         * config/os/aix/bits/ctype_noninline.h: Fix formatting.
172         * config/os/bsd/netbsd/bits/ctype_noninline.h: Fix typo.
173         * config/os/bsd/freebsd/bits/ctype_noninline.h: Fix formatting.
174
175 2002-01-20  Benjamin Kosnik  <bkoz@redhat.com>
176
177         * include/bits/locale_facets.h (ctype<char>::classic_table):
178         Remove definition.
179         (ctype<char>::_S_ctable): Remove.
180         * config/os/gnu-linux/bits/ctype_noninline.h
181         (ctype<char>::_S_table): Remove definition.
182         (ctype<char>::classic_table): Define.
183         (ctype<char>::ctype): Replace _S_ctable with classic_table().
184         * config/os/aix/bits/ctype_noninline.h: Same.
185         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
186         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
187         * config/os/djgpp/bits/ctype_noninline.h: Same.
188         * config/os/generic/bits/ctype_noninline.h: Same.
189         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
190         * config/os/hpux/bits/ctype_noninline.h: Same.
191         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
192         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
193         * config/os/mingw32/bits/ctype_noninline.h: Same.
194         * config/os/newlib/bits/ctype_noninline.h: Same.
195         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
196         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
197         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
198
199 2002-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
200
201         * config/os/mingw32/bits/ctype_noninline.h: Declare _ctype instead
202         of _pctype. Use to define _S_ctable.  Add definition for alternate
203         ctor.  Initialise _M_ctable to _S_ctable in ctors.
204         (do_toupper, do_tolower): Use inline code appropriate for C-locale
205         rather than ::toupper, ::tolower.
206
207 2002-01-18  Loren Rittle <ljrittle@acm.org>
208
209         * testsuite/18_support/numeric_limits.cc (test_extrema<long double>):
210         Add specialization for FreeBSD systems only to avoid losing test
211         only due to extra precision unmentioned in system headers.
212
213 2002-01-18  David Billinghurst <David.Billinghurst@riotinto.com>
214
215         * config/os/irix/irix6.5/bits/ctype_noninline.h: Fix typo
216
217 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
218
219         * testsuite/testsuite_hooks.h: Fix comment typo.  Memory
220         limiting is only attempted if _GLIBCPP_MEM_LIMIT is defined.
221
222 2002-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
223         
224         * testsuite/22_locale/ctor_copy_dtor.cc: Remove check.
225
226 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
227
228         * configure.target: Define OPT_LDFLAGS for AIX case.
229
230 2002-01-17  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
231
232         * include/std/std_limits.h (__glibcpp_float_has_quiet_NaN,
233         __glibcpp_double_has_quiet_NaN): Correct mispelling.
234
235 2002-01-17  Andreas Tobler  <toa@pop.agri.ch>
236
237         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Fix.
238
239 2002-01-16  David Edelsohn  <dje@watson.ibm.com>
240
241         * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Do not clear
242         SECTION_LDFLAGS and OPT_LDFLAGS.  Fix ac_sectionLDflags type.
243         * aclocal.m4: Regenerate.
244         * configure: Regenerate.
245         
246 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
247
248         * include/Makefile.am (c_base_headers_rename): New.
249         (c_base_headers_extra): New.
250         (stamp-c_base): Modify.
251         (install-data-local): Use both.
252         * include/Makefile.in: Regenerate.
253         * include/c/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
254         csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
255         cstdio ctime cwctype]: Move to..
256         * include/c/std_*: Here.
257         * include/c_std/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
258         csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
259         cstdio ctime cwctype]: Move to..
260         * include/c_std/std_*: Here.
261
262         Alexandre Oliva  <aoliva@redhat.com>    
263         * include/Makefile.am (.PRECIOUS): Add rule.
264         * include/Makefile.in: Regenerate.
265         
266 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
267             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
268         
269         * include/bits/stl_iterator.h (reverse_iterator::_M_current):
270         Deuglify, should be current.
271         (back_insert_iterator::_M_container): Deuglify, should be container.
272         (front_insert_iterator::_M_container): Same.    
273         (insert_iterator::_M_container): Same.
274         * testsuite/24_iterators/reverse_iterator.cc: Add check.
275         * testsuite/24_iterators/back_insert_iterator.cc: Add check.    
276         * testsuite/24_iterators/front_insert_iterator.cc: Same.
277         * testsuite/24_iterators/insert_iterator.cc: Same.
278         
279 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
280
281         * include/bits/locale_facets.h (ctype<char>::classic_table): Make
282         static.
283         (ctype<char>::_M_ctable): Make static, change name to _S_ctable.
284         * config/os/gnu-linux/bits/ctype_noninline.h: Define _S_ctable.
285         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
286         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
287         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
288         * config/os/newlib/bits/ctype_noninline.h: Same.
289         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
290         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
291         * config/os/hpux/bits/ctype_noninline.h: Same.
292         * config/os/djgpp/bits/ctype_noninline.h: Same.
293         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
294         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
295         * config/os/aix/bits/ctype_noninline.h: Same.
296         
297         Testcase by Dietmar Kühl via Peter Schmid 
298         * testsuite/22_locale/ctype_members_char.cc (char>): Add test for
299         classic_table().
300
301 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
302
303         * libmath/signbitl.c: Copyright years as list, not range.       
304         * libmath/Makefile.am: Same.
305         * libmath/Makefie.in: Regenerate.
306         * libmath/signbit.c: Same.
307         * libmath/nan.c: Same.
308         * libmath/copysignf.c: Same.
309         * libmath/signbitf.c: Same.
310         * testsuite/22_locale/money_get_members_char.cc: Same.
311         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
312         * testsuite/22_locale/money_put_members_char.cc: Same.
313         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
314         * testsuite/22_locale/time_get_members_char.cc: Same.
315         * testsuite/22_locale/time_get_members_wchar_t.cc: Same.
316         * testsuite/22_locale/time_put_members_char.cc: Same.
317         * testsuite/22_locale/time_put_members_wchar_t.cc: Same.
318         * testsuite/21_strings/nonmember.cc: Same.
319         * testsuite/21_strings/compare.cc: Same.
320         * testsuite/27_io/stringstream.cc: Same.
321         * testsuite/27_io/stringbuf.cc: Same.
322         * testsuite/27_io/filebuf.cc: Same.
323         * testsuite/27_io/ios_manip_basefield.cc: Same.
324         * testsuite/27_io/ios_manip_fmtflags.cc: Same.
325         * include/bits/cpp_type_traits.h: Same.
326         * include/bits/generic_shadow.h: Same.
327         * include/bits/gslice_array.h: Same.
328         * include/bits/gslice.h: Same.
329         * include/bits/indirect_array.h: Same.
330         * include/bits/slice_array.h: Same.
331         * include/bits/sstream.tcc: Same.
332         * include/bits/streambuf_iterator.h: Same.
333         * include/bits/valarray_array.tcc: Same.
334         * include/bits/valarray_meta.h: Same.
335         * include/bits/valarray_array.h: Same.
336         * config/os/mingw32/bits/ctype_noninline.h: Same.
337         * config/os/mingw32/bits/ctype_base.h: Same.
338         * config/os/hpux/bits/ctype_noninline.h: Same.
339         * config/os/hpux/bits/ctype_base.h: Same.
340         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
341         * config/os/gnu-linux/bits/ctype_base.h: Same.
342         * config/os/generic/bits/ctype_noninline.h: Same.
343         * config/os/generic/bits/ctype_base.h: Same.
344
345         * libsupc++/tinfo.h: Tweaks.
346
347 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
348
349         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
350         * testsuite/22_locale/num_put_members_char.cc (test01): Tweak.
351         * testsuite/22_locale/ctype_members_char.cc: Tweak.     
352
353 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
354
355         * include/bits/locale_facets.tcc (num_put::do_put(bool): Fix.
356         (num_put::do_put(void*)): Fix.
357         * testsuite/22_locale/num_put_members_char.cc (test02): Add.
358         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Add.
359         * testsuite/22_locale/num_get_members_char.cc (test02): Add
360         long double, void, bool types.
361         * testsuite/22_locale/num_get_members_wchar_t.cc (test02): Add.
362         
363 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
364             Alexandre Oliva  <aoliva@redhat.com>
365
366         * libmath/Makefile.am (LINK): Add --tag CC.
367         * libmath/Makefile.in: Regenerate.
368
369 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
370
371         * config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
372         of character to attribute mapping table.
373
374 2002-01-15  David Billinghurst <David.Billinghurst@riotinto.com>
375
376         * testsuite/26_numerics/c99_classification_macros_c.cc
377         Remove dg-error and dg-excess-errors comments.
378
379 2002-01-14  Benjamin Kosnik  <bkoz@redhat.com>
380
381         * include/bits/locale_facets.tcc (time_put::put): Correct output
382         iterator positions.
383         * testsuite/22_locale/time_put_members_char.cc (test02): Add.
384         * testsuite/22_locale/time_put_members_wchar_t.cc (test02): Add.
385         * testsuite/22_locale/time_get_members_wchar_t.cc (test06): Add.
386         * testsuite/22_locale/time_get_members_char.cc (test06): Add.
387
388 2002-01-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
389
390         * docs/html/17_intro/porting-howto.xml: Update filebuf section.
391
392 2002-01-14  Paolo Carlini  <pcarlini@unitus.it>
393             Nathan Myers  <ncm@cantrip.org>
394
395         * include/bits/basic_string.h
396         (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
397         temporaries (i.e., call _M_replace_safe) when possible.
398         (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
399         (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
400         (replace(__i1, __i2, __str)): Call replace(__i1, __i2, __s, __n).
401         (replace(__i1, __i2, __s)): Call replace(__i1, __i2, __s, __n).
402         (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
403         * include/bits/basic_string.tcc
404         (replace(__pos1, __n1, __str, __pos2, __n2)): Call
405         replace(__pos, __n1, __s, __n2).
406         * testsuite/21_strings/replace.cc (test03): New testcases.
407
408         * include/bits/basic_string.h (insert(__pos, __s, __n)):
409         Adjust comparison wrt overflow.
410         
411 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
412
413         * include/Makefile.am (std_headers_rename): New variable.
414         (install-data-local): Use it.
415         * include/Makefile.in: Regenerate.
416         
417 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
418
419         * include/bits/locale_facets.tcc (money_put::do_put(string):
420         Correct output iterator value.
421         * testsuite/22_locale/money_put_members_char.cc (test03): Add.
422         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
423         
424 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
425
426         * include/Makefile.am, include/Makefile.in (stamp-std):  Fix typo from
427         previous commit.
428
429 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
430
431         * include/Makefile.am (std_headers):  Update list with new names.
432         (stamp-std):  Link to standardized name.
433         * include/Makefile.in:  Regenerate.
434
435         * include/std/algorithm, include/std/bitset, include/std/complex,
436         include/std/deque, include/std/fstream, include/std/functional,
437         include/std/iomanip, include/std/ios, include/std/iosfwd,
438         include/std/iostream, include/std/istream, include/std/iterator,
439         include/std/limits, include/std/list, include/std/locale,
440         include/std/map, include/std/memory, include/std/numeric,
441         include/std/ostream, include/std/queue, include/std/set,
442         include/std/sstream, include/std/stack, include/std/stdexcept,
443         include/std/streambuf, include/std/string, include/std/utility,
444         include/std/valarray, include/std/vector:  Rename to...
445
446         * include/std/std_algorithm.h, include/std/std_bitset.h,
447         include/std/std_complex.h, include/std/std_deque.h,
448         include/std/std_fstream.h, include/std/std_functional.h,
449         include/std/std_iomanip.h, include/std/std_ios.h,
450         include/std/std_iosfwd.h, include/std/std_iostream.h,
451         include/std/std_istream.h, include/std/std_iterator.h,
452         include/std/std_limits.h, include/std/std_list.h,
453         include/std/std_locale.h, include/std/std_map.h,
454         include/std/std_memory.h, include/std/std_numeric.h,
455         include/std/std_ostream.h, include/std/std_queue.h,
456         include/std/std_set.h, include/std/std_sstream.h,
457         include/std/std_stack.h, include/std/std_stdexcept.h,
458         include/std/std_streambuf.h, include/std/std_string.h,
459         include/std/std_utility.h, include/std/std_valarray.h,
460         include/std/std_vector.h:  ...this.
461
462 2002-01-11  Loren Rittle <ljrittle@acm.org>
463
464         * include/Makefile.am (extra_target_headers): New list of all
465         target files built with ad hoc naming rules.
466         (stamp-*): Handle LN_S failure in manner portable across make
467         implementations.
468         (install-data-local): Install header files from human-maintained
469         file lists and directory components instead of non-robust find.
470         * include/Makefile.in: Rebuilt.
471
472 2002-01-11  Benjamin Kosnik  <bkoz@redhat.com>
473
474         * include/bits/locale_facets.tcc (money_get::do_get(string)):
475         Check for zero-length negative sign before adding it to output
476         string.
477         (money_get::do_get(long double)): Return beg.
478         * testsuite/22_locale/money_get_members_char.cc (test02): Add
479         iterator checks.
480         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
481         
482 2002-01-10  David Seymour  <seymour_dj@yahoo.com>
483
484         libstdc++/5331
485         * include/bits/locale_facets.h (num_get<>): Return advanced iterator
486         for _M_extract_float and _M_extract_int
487         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
488         (num_get<>::_M_extract_int): Likewise, all callers changed
489         * testsuite/22_locale/num_get_members_char.cc: Testcase
490
491 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
492
493         * libsupc++/exception (bad_exception): Add comment.
494         * libsupc++/new (bad_alloc): Same.
495         * libsupc++/typeinfo (bad_cast, bad_typeid): Same.
496
497 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
498
499         libstdc++/3150: revert 2001-11-30 commit. DR266 only means
500         that the destructors should be removed from the descriptions
501         in the standard: writing them explicitly allows the vtable
502         heuristic to work. For additional information see:
503         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00090.html
504         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00110.html
505         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00155.html
506         * libsupc++/exception (bad_exception::~bad_exception()):
507         Reintroduce declaration.
508         * libsupc++/new (bad_alloc::~bad_alloc()): Same.
509         * libsupc++/typeinfo (bad_cast::~bad_cast()): Same.
510         (bad_typeid::~bad_typeid()): Same.
511         * libsupc++/eh_exception.cc (bad_exception::~bad_exception()):
512         Reintroduce definition.
513         * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
514         * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Same.
515         (bad_typeid::~bad_typeid()): Same.
516
517 2002-01-09  Benjamin Kosnik  <bkoz@redhat.com>
518
519         * include/Makefile.am (c_base_srcdir): Remove duplicate '/'.
520         * include/Makefile.in: Regenerate.
521         
522 2002-01-09  Bo Thorsen  <bo@suse.co.uk>
523
524         * config/cpu/x86-64/bits/cpu_limits.h (__glibcpp_long_bits): Add
525         definition.
526
527 2002-01-08  Benjamin Kosnik  <bkoz@redhat.com>
528
529         libstdc++/2913
530         libstdc++/4879
531         * include/bits/fstream.tcc (filebuf::_M_really_overflow): Test
532         return value of _M_file->sync().
533         (filebuf::showmanyc): Check for is_open.
534         * include/std/fstream (filebuf::sync): Tweak.
535         * testsuite/27_io/filebuf.cc: Tweak.
536
537 2002-01-08  John Fardo  <jfardo@laurelnetworks.com>
538             Brad Garcia  <garsh@attbi.com>
539         
540         * testsuite/27_io/filebuf_members.cc: Add test.
541         
542 2002-01-07  Benjamin Kosnik  <bkoz@redhat.com>
543             Craig Rodrigues  <rodrigc@mediaone.net>
544
545         libstdc++/5174
546         * po/Makefile.am (mkinstalldirs): Add.
547         * po/Makefile.in: Regenerate.
548
549 2002-01-07  David Billinghurst  <David.Billinghurst@riotinto.com>
550
551         * testsuite_flags.in: Add -fmessage-length=0 to CXXFLAGS *
552         testsuite/lib/prune.exp: Delete lines ":In function ..."  from
553         compiler output.
554         * testsuite/23_containers/map_operators.cc: Remove
555         dg-excess-errors comment.
556         * testsuite/23_containers/set_operators.cc: Likewise.
557
558 2002-01-06  Paolo Carlini  <pcarlini@unitus.it>
559
560         * include/bits/stl_function.h:  Remove two lines of comments;
561         adjust copyright years.
562
563 2002-01-04  Benjamin  Kosnik  <bkoz@redhat.com>
564
565         * include/Makefile.am (std_headers): Remove cXXX from list.
566         (c_base_srcdir): No bits subdirectory.
567         (c_base_builddir): Same.
568         (c_base_headers): Adjust names, add ciso646.
569         (bits_headers): Remove std_xxx.h headers.
570         * include/Makefile.in: Regenerate.
571         
572         * include/ext/iterator: Adjust includes.
573         * include/ext/ropeimpl.h: Same.
574         * include/ext/stl_hash_fun.h: Same.
575         * include/ext/algorithm: Same.
576         
577         * include/backward/bvector.h: Adjust includes.
578         * include/backward/vector.h: Same.
579         * include/backward/strstream: Same.
580         * include/backward/streambuf.h: Same.
581         * include/backward/stack.h: Same.
582         * include/backward/set.h: Same.
583         * include/backward/queue.h: Same.
584         * include/backward/multiset.h: Same.
585         * include/backward/multimap.h: Same.
586         * include/backward/map.h: Same.
587         * include/backward/list.h: Same.
588         * include/backward/iterator.h: Same.
589         * include/backward/iostream.h: Same.
590         * include/backward/iomanip.h: Same.
591         * include/backward/fstream.h: Same.
592         * include/backward/deque.h: Same.
593         * include/backward/complex.h: Same.
594
595         * include/bits/std_algorithm.h: Move to...
596         * include/std/algorithm: ...here.
597         * include/bits/std_iosfwd.h, std_locale.h, std_stack.h,
598         std_bitset.h, std_ios.h, std_map.h, std_stdexcept.h,
599         std_complex.h, std_iostream.h, std_memory.h, std_streambuf.h,
600         std_deque.h, std_istream.h, std_numeric.h, std_string.h,
601         std_fstream.h, std_ostream.h, std_utility.h, std_iterator.h,
602         std_queue.h, std_valarray.h, std_functional.h, std_limits.h,
603         std_set.h, std_vector.h, std_iomanip.h, std_list.h, std_sstream.h:
604         Same.
605         
606         * include/c_std/bits/std_cassert.h: Move to...
607         * include/c_std/cassert: Here.
608         * include/c_std/std_cctype.h, std_cerrno.h, std_cfloat.h,
609         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
610         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
611         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
612         std_cwctype.h: Same.
613         * include/c_std/cmath: Adjust cmath.tcc include.
614         * include/c_std/cstdlib: Adjust includes.
615         * include/c_std/cwchar: Same.
616         * include/c_std/ctime: Same.
617         * include/c_std/cstring: Same.
618         * include/c_std/cstdio: Same.
619         * include/c_std/bits: Remove directory.
620         
621         * include/c/bits/std_cassert.h: Move to...
622         * include/c/cassert: Here.
623         * include/c/std_cctype.h, std_cerrno.h, std_cfloat.h,
624         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
625         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
626         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
627         std_cwctype.h: Same.
628         * include/c/bits: Remove directory.
629         
630         * include/std/cwctype: Remove.
631         * include/std/cwchar: Remove.
632         * include/std/ctime: Remove.
633         * include/std/cstring: Remove.
634         * include/std/cstdlib: Remove.
635         * include/std/cstdio: Remove.
636         * include/std/cstddef: Remove.
637         * include/std/cstdarg: Remove.
638         * include/std/csignal: Remove.
639         * include/std/csetjmp: Remove.
640         * include/std/cmath: Remove.
641         * include/std/clocale: Remove.
642         * include/std/climits: Remove.
643         * include/std/ciso646: Remove.
644         * include/std/cfloat: Remove.
645         * include/std/cerrno: Remove.
646         * include/std/cctype: Remove.
647         * include/std/cassert: Remove.
648
649         * include/bits/fpos.h: Adjust includes, removing <bits/std_xxx.h>
650         files and subsituting <.xxx>
651         * include/bits/valarray_array.h: Same.
652         * include/bits/stl_uninitialized.h: Same.
653         * include/bits/stl_alloc.h: Same.
654         * include/bits/stl_algobase.h: Same.
655         * include/bits/sstream.tcc: Same.
656         * include/bits/pthread_allocimpl.h: Same.
657         * include/bits/ostream.tcc: Same.
658         * include/bits/localefwd.h: Same.
659         * include/bits/locale_facets.tcc: Same.
660         * include/bits/locale_facets.h: Same.
661         * include/bits/istream.tcc: Same.
662         * include/bits/char_traits.h: Same.
663         * include/bits/boost_concept_check.h: Same.
664         * include/bits/basic_file.h: Same.
665         * include/std/bitset: Same.
666         * include/std/complex: Same.
667         * include/std/fstream: Same.
668         * include/std/functional: Same.
669         * include/std/ios: Same.
670         * include/std/iostream: Same.
671         * include/std/ostream: Same.
672         * include/std/sstream: Same.
673         * include/std/streambuf: Same.
674         * include/std/string: Same.
675         * include/std/iterator: Same.
676         * include/std/valarray: Same.
677
678         * src/ios.cc: Adjust includes.
679         * src/valarray-inst.cc: Same.
680         * src/string-inst.cc: Same.
681         * src/stl-inst.cc: Same.
682         * src/stdexcept.cc: Same.
683         * src/misc-inst.cc: Same.
684         * src/localename.cc: Same.
685         * src/locale-inst.cc: Same.
686         * src/locale.cc: Same.
687         * src/limits.cc: Same.
688         * src/concept-inst.cc: Same.
689         * src/complex_io.cc: Same.
690         * src/codecvt.cc: Same.
691         * src/bitset.cc: Same.
692         * src/cmath.cc: Same.
693
694 2002-01-04  Paolo Carlini  <pcarlini@unitus.it>
695
696         * include/bits/stl_tree.h (rb_tree):  Move to...
697         * include/ext/rb_tree:  ...here, new file.
698         * include/Makefile.am (ext_headers):  Add new file.
699         * include/Makefile.in:  Regenerate.
700         * include/bits/stl_tempbuf.h (get_temporary_buffer + helper,
701         return_temporary_buffer, struct temporary_buffer):  Move to...
702         * include/ext/memory:  ...here.
703         * testsuite/ext/headers.cc:  Include <ext/rb_tree>.
704         * include/backward/tempbuf.h:  Include <ext/memory>, tweak.
705         * include/backward/tree.h:  Include <ext/rb_tree), tweak.
706
707 2002-01-03  Paolo Carlini  <pcarlini@unitus.it>
708
709         * include/bits/stl_numeric.h (power + helpers, iota):  Move to...
710         * include/ext/numeric:  ...here, new file.
711         * include/bits/stl_function.h (identity_element, unary_compose,
712         binary_compose, compose1, compose2, identity, select1st,
713         select2nd, project1st + helper, project2nd + helper,
714         constant_void_fun + helper, constant_unary_fun + helper,
715         costant_binary_fun + helper, constant0, constant1, constant2,
716         subtractive_rng, mem_fun1, mem_fun1_ref):  Move to...
717         * include/ext/functional:  ...here, new file.
718         * include/Makefile.am (ext_headers):  Add new files.
719         * include/Makefile.in:  Regenerate.
720         * testsuite/ext/headers.cc:  Include <ext/numeric> and
721         <ext/functional>.
722         * include/backward/algo.h:  Include <ext/numeric>, tweak.
723         * include/backward/function.h:  Include <ext/functional>, tweak.
724         * include/ext/ropeimpl.h:  Include <ext/numeric>.
725
726 2002-01-03  Jeffrey A Law  <law@redhat.com>
727
728         * config/os/hpux/bits/os_defines.h: Prefix __strtoll and
729         __strtoull declarations with __extension__.
730
731 2002-01-03  David Billinghurst <David.Billinghurst@riotinto.com>
732
733         * testsuite/lib/prune.exp: Correct regular expression for
734         -ffunction-sections
735
736 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
737
738         * include/bits/stl_algo.h (upper_bound, equal_range, binary_search):
739         Change concept checks, as with lower_bound and PR 2054.
740         * testsuite/ext/concept_checks.cc:  Expand test to include those.
741
742 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
743
744         * include/bits/boost_concept_check.h:  Import some changes from
745         upsteam (Boost) version.
746
747 2002-01-02  Paolo Carlini  <pcarlini@unitus.it>
748
749         * include/bits/stl_algobase.h (copy_n + helpers,
750         lexicographical_compare_3way + helpers):  Move to...
751         * include/ext/algorithm:  ...here.
752         * include/bits/stl_uninitialized.h (uninitialized_copy_n +
753         helpers):  Move to...
754         * include/ext/memory:  ...here, new file.
755         * include/Makefile.am (ext_headers):  Add new file.
756         * include/Makefile.in:  Regenerate.
757         * testsuite/ext/headers.cc:  Include <ext/memory>.
758         * include/backward/algobase.h:  Include <ext/memory> and
759         <ext/algorithm>, tweak.
760         * include/ext/ropeimpl.h:  Include <ext/memory>, tweak.
761         * include/ext/stl_rope.h:  Include <ext/memory>, tweak.
762
763 2002-01-01  Roger Sayle <roger@eyesopen.com>
764
765         * libmath/stubs.c (sinf,cosf): Implement stubs to enable the
766         equivalent ___builtin__ versions.
767
768         * include/c_shadow/bits/std_cmath.h: All __builtin math functions
769         are available in libstdc++ as the necessary stub implementations
770         are provided by libmath/stubs.c.
771
772 2002-01-01  Jason Thorpe  <thorpej@wasabisystems.com>
773
774         * configure.in: Add support for NetBSD cross compiles.
775         * configure: Regenerate.
776
777 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
778
779         * include/ext/iterator:  Add #include <bits/std_iterator.h>, tweak.
780         * testsuite/ext/headers.cc:  Add <ext/iterator>.
781
782 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
783
784         * include/backward/algo.h:  Add two more using declarations.
785         * include/backward/iterator.h:  Include <ext/iterator>,
786         add using declaration.
787         * include/ext/algorithm:  Add #pragma GCC system_header.
788
789 2001-12-31  Phil Edwards  <pme@gcc.gnu.org>
790
791         * include/bits/stl_bvector.h:  Change calls to 3-argument distance()
792         into standard 2-argument version.
793         * include/bits/stl_deque.h:  Likewise.
794         * include/bits/stl_tempbuf.h:  Likewise.
795         * include/bits/stl_tree.h:  Likewise.
796         * include/bits/stl_vector.h:  Likewise.
797         * include/ext/stl_hashtable.h:  Likewise.
798         * include/bits/stl_iterator_base_funcs.h:  Move distance() extension...
799         * include/ext/iterator:  to here.  New file.
800         * include/Makefile.am (ext_headers):  Add new file, alphabatize.
801         * include/Makefile.in:  Regenerate.
802
803 2001-12-31  Phil Edwards  <pme@gcc.gnu.org>
804
805         * include/bits/stl_deque.h:  Doxygenate with initial/example hooks.
806         Clean up spacing and indentation.
807
808 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
809
810         * include/ext/slist:  Move into __gnu_cxx,
811         tweak, add using declarations.
812
813 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
814
815         * include/ext/hash_map:  Move into __gnu_cxx,
816         tweak, add using declarations.
817         * include/ext/hash_set:  Ditto.
818         * include/ext/ropeimpl.h:  Ditto.
819         * include/ext/stl_hash_fun.h:  Ditto.
820         * include/ext/stl_hashtable.h:  Ditto.
821         * include/ext/stl_rope.h:  Ditto.
822         * src/ext-inst.cc: Tweak.
823         * testsuite/ext/rope.cc: Tweak.
824
825 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
826
827         * include/backward/algo.h:  Include <ext/algorithm>,
828         tweak using declarations.
829
830 2001-12-29  Richard Henderson  <rth@redhat.com>
831
832         * config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
833         * config/os/hpux/bits/cpu_limits.h: New file.
834         * configure.target (CPULIMITSH): Use it.
835
836 2001-12-28  Richard Henderson  <rth@redhat.com>
837
838         * config/cpu/ia64/bits/cpu_limits.h: New file.
839         * config/os/osf/osf5.0/bits/cpu_limits.h: New file.
840         * configure.target (CPULIMITSH): Use them.
841
842 2001-12-28  Phil Edwards  <pme@gcc.gnu.org>
843
844         * include/bits/c++config:  Move doxygen hook comment...
845         * docs/doxygen/doxygroups.cc:  ...to here.
846
847 2001-12-28  Phil Edwards  <pme@gcc.gnu.org>
848
849         PR libstdc++/2054
850         * include/bits/stl_algo.h (lower_bound):  Relax concept checks.
851         * testsuite/ext/concept_checks.cc:  New file.
852
853 2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
854
855         * include/bits/stl_algo.h (count returning void,
856         count_if returning void, __random_sample, random_sample,
857         random_sample_n, __is_heap, is_heap, is_sorted):  Move to...
858         * include/ext/algorithm:  ...here, new file.
859         * include/Makefile.am (ext_headers):  Add new file.
860         * include/Makefile.in:  Regenerate.
861         * testsuite/ext/headers.cc:  Include <ext/algorithm>.
862
863 2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
864             Nathan Myers  <ncm@cantrip.org>
865
866         * include/bits/basic_string.h (insert(__pos, __s, __n)):
867         Optimize by avoiding temporaries and working in-place when possible.
868         (insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
869         (insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
870         * testsuite/21_strings/insert.cc (test02): New testcases.
871
872 2001-12-27  Phil Edwards  <pme@gcc.gnu.org>
873
874         * testsuite/testsuite_hooks.h (gnu_counting_struct):  Add.
875         * testsuite/23_containers/deque_ctor.cc:  New file.
876
877 2001-12-27  Paolo Carlini  <pcarlini@unitus.it>
878
879         * include/bits/locale_facets.tcc (collate::do_transform):
880         Adjust implicit typename.
881         * config/locale/messages_members_generic.h (messages::open,
882         messages::do_open, messages::do_get): Adjust implicit typename.
883         * config/locale/messages_members_gnu.h (messages::open,
884         messages::do_open, messages::do_get): Adjust Implicit typename.
885         * config/locale/messages_members_ieee_1003.1-200x.h (messages::open,
886         messages::do_open, messages::do_get): Adjust implicit typename.
887
888 2001-12-27  Phil Edwards  <pme@gcc.gnu.org>
889
890         PR libstdc++/3829
891         * src/misc-inst.cc:  Many additional I/O-related instantiations.
892         * testsuite/27_io/instantiations.cc:  New file.
893
894 2001-12-26  Benjamin Kosnik  <bkoz@waller.constant.com>
895
896         * testsuite/24_iterators/insert_iterator.cc (test02): Add.
897         * testsuite/24_iterators/front_insert_iterator.cc (test02): Add.
898         * testsuite/24_iterators/back_insert_iterator.cc (test02): Add.
899         * testsuite/24_iterators/reverse_iterator.cc (test02): Add.
900
901         * include/bits/stl_iterator.h (reverse_iterator): Uglify member
902         current to _M_current.
903         (back_insert_iterator): Uglify member container to _M_container.
904         (front_insert_iterator): Same.
905         (insert_iterator): Same.
906
907 2001-12-25  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
908
909         * include/bits/std_limits.h (__glibcpp_xxx_is_modulo): New
910         macros for signed types; default value is true.
911         (numeric_limits<>::is_modulo): Get value from corresponding
912         __glibcpp_xxx_is_modulo macro.
913
914 2001-12-23  Jeffrey A Law  <law@redhat.com>
915
916         * config/os/hpux/bits/os_defines.h: Do not include <_sys/inttypes.h>.
917         Twiddle return types for strtoll and strtoull to avoid using
918         intmax_t and uintmax-t.
919
920 2001-12-22  Richard Henderson  <rth@redhat.com>
921
922         * configure.target (CPULIMITSH): Fix typo in alpha case.
923
924 2001-12-22  Jeffrey A Law  <law@redhat.com>
925
926         * config/os/hpux/bits/os_defines.h: Update to avoid #defines
927         for strtoll and strtoull.
928
929 2001-12-21  Jeffrey A Law  <law@redhat.com>
930
931         * config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h.
932         Define strtoll and strtoull.  Provide prototypes for
933         __strtoll and __strtoull.  Define _GLIBCPP_USE_LONG_LONG
934         unconditionally.
935
936         * src/locale-inst.cc: Include <bits/std_cstdlib.h>
937
938         * configure.target: Fix typo in hpux case.
939
940 2001-12-21  Paolo Carlini  <pcarlini@unitus.it>
941
942         * include/ext/stl_rope.h (_Rope_iterator):
943         Add local typedef to fix implicit typename problems.
944
945 2001-12-19  Phil Edwards  <pme@gcc.gnu.org>
946
947         * docs/doxygen/Intro.3:  New 'Allocators' module.
948         * docs/doxygen/TODO:  Update.
949         * docs/doxygen/doxygroups.cc:  Update.
950         * docs/doxygen/run_doxygen:  Update.
951
952         * include/bits/stl_alloc.h:  Tweak doxygen hooks in comments.
953         * include/bits/std_memory.h:  Doxygenate.
954         * include/bits/stl_iterator_base_types.h:  Likewise.
955         * include/bits/stl_raw_storage_iter.h:  Likewise.
956         * include/bits/stl_tempbuf.h:  Likewise.
957         (get_temporary_buffer):  Remove unused nonstandard overload.
958         * include/bits/stl_uninitialized.h:  Likewise.
959
960         * include/bits/stl_iterator_base_types.h (input_iterator,
961         output_iterator, forward_iterator, bidirectional_iterator,
962         random_access_iterator):  Move old names...
963         * include/backward/iterator.h:  ...to here.
964         * include/bits/stl_bvector.h:  Update.
965         * include/ext/stl_rope.h:  Update.
966
967 2001-12-19  Phil Edwards  <pme@gcc.gnu.org>
968
969         * docs/html/configopts.html:  Describe recent options.
970         * docs/html/documentation.html:  Point to new doxygen tarballs.
971         * docs/html/install.html:  Brief updates.
972         * docs/html/17_intro/RELEASE-NOTES:  Remove weird control character.
973         * docs/html/ext/howto.html:  Fix typos, describe filebuf::fd().
974         * docs/html/faq/index.html:  Update for 3.0.95.
975         * docs/html/faq/index.txt:  Regenerate.
976
977 2001-12-19  David Billinghurst <David.Billinghurst@riotinto.com>
978
979         libstdc++-v3/5148
980         * testsuite/lib/libstdc++-v3-dg.exp:  Append .exe to
981         executable filenames
982
983 2001-12-18  Benjamin Kosnik  <bkoz@redhat.com>
984
985         * docs/html/17_intro/TODO: Update.
986         * docs/html/17_intro/RELEASE-NOTES: Edits, update.
987         * README: Edit for clarity, update to reflect current directory
988         structure.
989
990 2001-12-18  Benjamin Kosnik  <bkoz@redhat.com>
991
992         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Extended checking before
993         enabling gnu model.
994         * aclocal.m4: Rebuild.
995         * configure: Rebuild.
996
997 2001-12-18  Paolo Carlini  <pcarlini@unitus.it>
998             Nathan Myers  <ncm@cantrip.org>
999
1000         * include/bits/basic_string.h (assign(__str, __pos, __n)):
1001         Call assign(__s, __n).
1002         (assign(__s, __n)): Terminate the string with _S_terminal.
1003
1004 2001-12-17  Benjamin Kosnik  <bkoz@redhat.com>
1005
1006         * include/bits/std_limits.h (__glibcpp_long_double_is_bounded):
1007         Set to true, like float and double.
1008
1009 2001-12-17  David Billinghurst <David.Billinghurst@riotinto.com>
1010
1011         libstdc++/5136
1012         * testsuite/lib/prune.exp: New file
1013         * testsuite/lib/libstdc++-v3-dg.exp: Use it
1014
1015 2001-12-17  Phil Edwards  <pme@gcc.gnu.org>
1016
1017         * include/bits/basic_file.h (__basic_file::fd):  New function.
1018         * config/io/basic_file_stdio.h (__basic_file::fd):  Define.
1019         * include/bits/std_fstream.h (basic_filebuf::fd):  New function.
1020         * include/bits/fstream.tcc (basic_filebuf::fd):  Define.
1021         * testsuite/27_io/filebuf_members.cc (test_02):  New test.
1022
1023 2001-12-16  Nathan Sidwell  <nathan@codesourcery.com>
1024
1025         * po/Makefile.am (.po.mo): Use POSIXLY_CORRECT argument ordering.
1026         * po/Makefile.in: Regenerated.
1027
1028 2001-12-16  Paolo Carlini  <pcarlini@unitus.it>
1029
1030         * testsuite/21_strings/assign.cc (test01): Add tests.
1031
1032 2001-12-15  Paolo Carlini  <pcarlini@unitus.it>
1033             Nathan Myers  <ncm@cantrip.org>
1034
1035         * include/bits/basic_string.h
1036         (assign(__str, __pos, __n), assign(__s, __n)):  Optimize
1037         by avoiding unnecessary temporaries.
1038         (assign(__s)): Call assign(__s, __n).
1039         * include/bits/basic_string.tcc (_M_replace_safe): Adjust comment.
1040         * include/bits/std_string.h: include stl_function.h.
1041         * testsuite/21_strings/assign.cc (test02, test03): New tests.
1042
1043 2001-12-15  Benjamin Kosnik  <bkoz@redhat.com>
1044
1045         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Enable gnu locale model
1046         on linux by default.
1047         * aclocal.m4: Regenerate.
1048         * configure: Regenerate.
1049
1050 2001-12-14  Benjamin Kosnik  <bkoz@redhat.com>
1051
1052         Clean up initialization and simplfy caching of underlying "C"
1053         default locale objects.
1054         * src/localename.cc (locale::_Impl::_Impl(string, size_t):
1055         Unconditionally create __clocale object for all named locales,
1056         including "C" and "POSIX".
1057         * config/locale/c_locale_generic.cc
1058         (locale::facet::_S_create_c_locale): Always set __cloc to zero.
1059         * config/locale/c_locale_gnu.cc: Always delete.
1060         * include/bits/localefwd.h (locale::facet::_S_c_locale): New.
1061         * src/locale.cc (locale::classic()): Initialize
1062         locale::facet::_S_c_locale.
1063         (locale::facet::_S_c_locale): Define.
1064
1065         * include/bits/locale_facets.h: Add ctype_byname<wchar_t> ctor
1066         specialization.
1067         * src/locale.cc: Add definition here.
1068         * config/os/gnu-linux/bits/ctype_inline.h: Tweak.
1069         * config/os/gnu-linux/bits/ctype_noninline.h: Adjust initializations.
1070         * include/bits/locale_facets.h (ctype<char>::_M_c_locale_ctype): Add.
1071         Adjust ctors, dtors.
1072         (ctype<char>::_M_toupper): Remove const&.
1073         (ctype<char>::_M_tolower): Remove const&.
1074         (ctype<char>::_M_ctable): Remove const&.
1075
1076         * include/bits/locale_facets.h (collate): Clean up initialization
1077         of _M_c_locale_collate in ctors and dtors.
1078         * config/locale/collate_members_gnu.cc: Always use extended
1079         functions.
1080
1081         * include/bits/locale_facets.h (messages): Clean up inits in ctor/dtor.
1082         (messages_byname): Same.
1083         * config/locale/messages_members_generic.h (messages::~messages):
1084         Remove.
1085         * config/locale/messages_members_gnu.h: Same.
1086
1087         * include/bits/localefwd.h: Clean. Move dtor definitions to
1088         * src/locale.cc: Here.
1089         * testsuite/22_locale/facet.cc: Fix spelling.
1090
1091         Named locale support for ctype<wchar_t>.
1092         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add variable
1093         ctype_members_* bits.
1094         * aclocal.m4: Regenerate.
1095         * configure: Regenerate.
1096         * src/Makefile.am (sources): Add ctype.cc.
1097         * src/Makefile.in: Regenerate.
1098         * config/locale/ctype_members_generic.cc: New file.
1099         * config/locale/ctype_members_gnu.cc: New file.
1100         * src/locale.cc: Remove ctype<wchart_t> definitions.
1101
1102 2001-12-13  Roger Sayle <roger@eyesopen.com>
1103
1104         * acconfig.h: Test for __builtin_sqrt instead of
1105         __builtin_fsqrt.
1106         * acinclude.m4: Same.
1107         * include/c_shadow/bits/std_cmath.h: Same.
1108         * aclocal.m4: Regenerated.
1109         * config.h.in: Regenerated.
1110         * configure: Regenerated.
1111
1112 2001-12-13  Phil Edwards  <pme@gcc.gnu.org>
1113
1114         * docs/html/ext/howto.html:  Fix typos.
1115
1116 2001-12-13  Benjamin Kosnik  <bkoz@redhat.com>
1117
1118         libstdc++/3679
1119         * src/locale.cc (locale::locale(const char*)): Deal with locales
1120         named "".
1121         * testsuite/22_locale/ctor_copy_dtor.cc (test01): Modify.
1122
1123 2001-12-12  Paolo Carlini  <pcarlini@unitus.it>
1124
1125         * include/ext/ropeimpl.h (rope::_S_leaf_concat_char_iter,
1126         _S_destr_leaf_concat_char_iter, _S_tree_concat, _S_concat_char_iter,
1127         _S_destr_concat_char_iter, _S_concat, _S_substring, _S_balance)
1128         : Adjust implicit typename.
1129         * include/ext/stl_rope.h (_Rope_iterator::operator=, rope::npos):
1130         Adjust implicit typename.
1131         * testsuite/27_io/streambuf.cc: Adjust implicit typename.
1132
1133 2001-12-12  Benjamin Kosnik  <bkoz@redhat.com>
1134
1135         Named locale support for ctype<char>.
1136         * config/locale/c_locale_gnu.h (_GLIBCPP_C_LOCALE_GNU): New.
1137         * config/os/gnu-linux/bits/ctype_noninline.h (ctype<char>): Add
1138         definitions for alternate constructor.
1139         * config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same.
1140         * config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
1141         * config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
1142         * config/os/newlib/bits/ctype_noninline.h (ctype): Same.
1143         * config/os/irix/irix6.5/bits/ctype_noninline.h (ctype): Same.
1144         * config/os/irix/irix5.2/bits/ctype_noninline.h (ctype): Same.
1145         * config/os/hpux/bits/ctype_noninline.h (ctype): Same.
1146         * config/os/generic/bits/ctype_noninline.h (ctype): Same.
1147         * config/os/djgpp/bits/ctype_noninline.h (ctype): Same.
1148         * config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same.
1149         * config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same.
1150         * config/os/aix/bits/ctype_noninline.h (ctype): Same.
1151         * include/bits/locale_facets.h (ctype<_CharT>): Remove dummy
1152         definitions for all virtual functions. These are now explicitly
1153         undefined for non-required factets, ie any non-char, non-wchar_t
1154         instantiations.
1155         * src/localename.cc (locale::_Impl::_Impl(string, size_t): Named
1156         locales use alternate constructor for ctype facet.
1157         * include/bits/locale_facets.h (ctype<char>::ctype(__c_locale, const
1158         mask*, bool, size_t): Add.
1159         (ctype<wchar_t>::ctype(__c_locale, size_t): Add.
1160         * src/locale.cc (ctype<wchar_t>::ctype(__c_locale, size_t)): Add
1161         definition.
1162
1163         * testsuite/22_locale/ctype_members_char.cc (test02): Add, mark
1164         XFAIL for non-gnu locale models.
1165
1166 2001-12-12  Philip Martin  <philip@codematters.co.uk>
1167             Ross Smith     <r-smith@ihug.co.nz>
1168             Paolo Carlini  <pcarlini@unitus.it>
1169
1170         libstdc++/5045
1171         * include/bits/std_limits.h (defines, numeric_limits<bool>::digits10):
1172         Fix digits10 values for integral types.
1173         * include/bits/locale_facets.tcc (num_get::do_get for integral types):
1174         Tweak _M_extract_int call.
1175         * testsuite/27_io/istream_extractor_arith.cc (test13, test12_aux):
1176         Tweak overflowing number of digits.
1177         * testsuite/18_support/numeric_limits.cc (test03): New testcase.
1178
1179 2001-12-11  Benjamin Kosnik  <bkoz@redhat.com>
1180
1181         * config/os/generic/bits/ctype_inline.h: Remove spaces.
1182         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
1183         * include/bits/locale_facets.h (__num_base): Move double data
1184         members to first in class.
1185         * include/bits/locale_facets.tcc: Re-arrange, tweak.
1186         * src/locale.cc: Clean.
1187         *include/bits/stl_vector.h: Space typedefs.
1188
1189 2001-12-11  Phil Edwards  <pme@gcc.gnu.org>
1190
1191         * testsuite/ext/allocators.cc:  New file.
1192
1193 2001-12-11  Jason Merrill  <jason@redhat.com>
1194
1195         * include/bits/locale_facets.tcc (_M_extract_int): Avoid
1196         uninitialized warning.
1197
1198 2001-12-11  Loren Rittle <ljrittle@acm.org>
1199
1200         * config/cpu/sparc/sparc32/bits/atomicity.h
1201         (__Atomicity_lock<0>::_S_atomicity_lock): Add.
1202
1203 2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
1204
1205         * include/bits/basic_string.tcc (_M_replace_safe):  Fix typos.
1206         * include/bits/basic_string.h:  Fix typos.
1207
1208 2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
1209             Nathan Myers  <ncm@cantrip.org>
1210
1211         * include/bits/basic_string.tcc (_M_replace_safe):  New function.
1212         (_M_replace(input_iterator_tag), append members):  Use it.
1213         (_M_replace(forward_iterator_tag)):  Remove.
1214         * include/bits/basic_string.h:  Adjust declarations.
1215         * src/string-inst.cc:  Adjust declarations.
1216
1217 2001-12-09  Benjamin Kosnik  <bkoz@redhat.com>
1218             Philip Martin <pmartin@uklinux.net>
1219
1220         * include/bits/locale_facets.h (__num_base::_S_scale_hex): Add.
1221         (__num_base::_S_scale_oct): Add.
1222         * include/bits/locale_facets.tcc (_M_extract_int): Use them.
1223         * src/locale.cc: Add definitions.
1224         * testsuite/27_io/istream_extractor_arith.cc (main): Call test13.
1225
1226         * testsuite/testsuite_hooks.h: Remove duplicate VERIFY define.
1227
1228 2001-12-07  Nathan Myers  <ncm@cantrip.org>
1229             Loren Rittle <ljrittle@acm.org>
1230
1231         libstdc++/5037
1232         * config/cpu/sparc/sparc32/bits/atomicity.h
1233         (struct __Atomicity_lock<__inst>): Add.
1234         (__Atomicity_lock<__inst>::_S_atomicity_lock): Add.
1235         (__exchange_and_add): Use __Atomicity_lock<0>::_S_atomicity_lock
1236         instead of lock local to static function.
1237         (__atomic_add): Likewise.
1238
1239 2001-12-07  Phil Edwards  <pme@gcc.gnu.org>
1240
1241         * src/globals.cc:  Remove __GTHREADS guard.
1242
1243 2001-12-07  Paolo Carlini  <pcarlini@unitus.it>
1244
1245         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
1246         Extend comment, reduce __cs_size for non-fixed outputs.
1247
1248 2001-12-07  Paolo Carlini  <pcarlini@unitus.it>
1249
1250         * include/bits/basic_string.tcc (_M_mutate): Fix typo
1251         in the previous check in.
1252
1253 2001-12-06  Paolo Carlini  <pcarlini@unitus.it>
1254             Loren J. Rittle <ljrittle@acm.org>
1255
1256         * include/bits/basic_string.tcc (_M_mutate, _M_clone): Implement
1257         exponential growth policy to meet linear amortized time
1258         requirements of the standard.
1259         (_S_create): Adjust comment.
1260
1261 2001-12-06  Benjamin Kosnik  <bkoz@redhat.com>
1262
1263         libstdc++/3720
1264         * include/bits/locale_facets.tcc (num_put): Clean.
1265         (num_get::_M_extract_float): Change argument to string.
1266         (num_get::do_get(float)): Fixup.
1267         (num_get::do_get(double)): Same.
1268         (num_get::do_get(long double)): Same.
1269         (num_get::_M_extract_int): Add maximum length parameter, __max.
1270         (num_get::_M_extract_float): Correct zeros, use string.
1271         * include/bits/locale_facets.h (num_get::_M_extract_float): Change
1272         declaration here.
1273         * src/locale.cc (__num_base::_S_atoms): Remove x, X.
1274         * testsuite/27_io/istream_extractor_arith.cc (test13): Add.
1275
1276 2001-12-06  Philip Martin  <pmartin@uklinux.net>
1277
1278         * testsuite/27_io/istream_extractor_arith.cc (test12): Add
1279         tests for excess input digits.
1280
1281 2001-12-06  Phil Edwards  <pme@gcc.gnu.org>
1282
1283         * include/bits/std_bitset.h:  Use GLIBCPP in multiple-inclusion guard.
1284         * include/bits/stl_algo.h:  Likewise.
1285         * include/bits/stl_algobase.h:  Likewise.
1286         * include/bits/stl_bvector.h:  Likewise.
1287         * include/bits/stl_deque.h:  Likewise.
1288         * include/bits/stl_function.h:  Likewise.
1289         * include/bits/stl_iterator.h:  Likewise.
1290         * include/bits/stl_iterator_base_funcs.h:  Likewise.
1291         * include/bits/stl_iterator_base_types.h:  Likewise.
1292         * include/bits/stl_list.h:  Likewise.
1293         * include/bits/stl_multimap.h:  Likewise.
1294         * include/bits/stl_multiset.h:  Likewise.
1295         * include/bits/stl_pair.h:  Likewise.
1296         * include/bits/stl_queue.h:  Likewise.
1297         * include/bits/stl_set.h:  Likewise.
1298         * include/bits/stl_stack.h:  Likewise.
1299         * include/bits/stl_tempbuf.h:  Likewise.
1300         * include/bits/stl_tree.h:  Likewise.
1301         * include/bits/stl_vector.h:  Likewise.
1302
1303         * include/bits/stl_alloc.h:  Use our own multiple inclusion guards.
1304         Doxygenate more comments.  Correct historical artifacts in comments.
1305         (alloc, single_alloc):  Uglify non-standard names.
1306         (__default_alloc_template::_NFREELISTS):  Calculate from other
1307         parameters.
1308         (__default_alloc_template::_S_free_list):  Remove SunPro workaround.
1309         (__default_alloc_template::_Lock):  Mark as "unused".
1310         * include/backward/alloc.h:  Update.
1311         * include/bits/stl_bvector.h:  Likewise.
1312         * include/ext/ropeimpl.h:  Likewise.
1313         * include/ext/stl_hashtable.h:  Likewise.
1314
1315 2001-12-05  Benjamin Kosnik  <bkoz@redhat.com>
1316
1317         DR/282
1318         * include/bits/locale_facets.tcc (num_put::_M_widen_float): Add
1319         grouping to floating point types.
1320         * testsuite/27_io/ostream_inserter_arith.cc (test02): Add test.
1321
1322 2001-12-04  Paolo Carlini <pcarlini@unitus.it>
1323
1324         libstdc++/4402
1325         * testsuite/27_io/ostream_inserter_arith.cc (test02): Add testcase
1326         from the PR.
1327         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
1328         Deal properly with long ios_base::fixed floats.
1329         (num_put::_M_widen_float): use
1330         __len in __builtin_alloca call.
1331
1332 2001-12-04  Benjamin Kosnik  <bkoz@redhat.com>
1333
1334         * src/Makefile.am (sources): Add ext-inst.cc.
1335         * src/Makefile.in: Regenerate.
1336         * src/ext-inst.cc: New file.
1337         * include/bits/stl_threads.h: Format.
1338         * src/globals.cc: Add instantiation for _S_swap_lock.
1339
1340         * testsuite/18_support/numeric_limits.cc: Add numeric_limits<B>
1341         instantiation.
1342
1343 2001-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1344
1345         * testsuite/22_locale/numpunct_members_wchar_t.cc: Only compile
1346         and execute test01 if _GLIBCPP_USE_WCHAR_T is defined.
1347         * testsuite/26_numerics/complex_inserters_extractors.cc: Provide
1348         for explicit instantiation of class std::basic_string<char,
1349         gnu_char_traits, std::allocator<char> >.
1350
1351 2001-12-03  Benjamin Kosnik  <bkoz@redhat.com>
1352
1353         * testsuite/22_locale/collate.cc: Compile-only.
1354         * testsuite/22_locale/time_get.cc: Same.
1355         * testsuite/22_locale/time_put.cc: Same.
1356         * testsuite/22_locale/numpunct.cc: Same.
1357         * testsuite/22_locale/num_put.cc: Same.
1358         * testsuite/22_locale/num_get.cc: Same.
1359         * testsuite/22_locale/moneypunct.cc: Same.
1360         * testsuite/22_locale/money_get.cc: Same.
1361         * testsuite/22_locale/messages.cc: Same.
1362         * testsuite/22_locale/ctype.cc: Same.
1363
1364 2001-12-03  Benjamin Kosnik  <bkoz@redhat.com>
1365
1366         * src/string-inst.cc (string::_Rep::_S_terminal): Add static data
1367         member instantiations.
1368
1369 2001-12-03  Steve Ellcey  <sje@cup.hp.com>
1370
1371         * libstdc++-v3/configure.in: Add support for hpux cross compiles,
1372         combine common linux/hpux/generic cross compile support to reduce
1373         redundent lines.
1374         * libstdc++-v3/configure: Regenerate.
1375
1376 2001-12-03  Loren J. Rittle  <ljrittle@acm.org>
1377
1378         * docs/html/ext/howto.html: Update commentary.
1379         * include/bits/c++config: Update threading configuration comment.
1380         (__STL_GTHREADS): Remove macro definition.
1381         (__STL_THREADS): Likewise.
1382         * include/bits/stl_threads.h: Leave only the configuration
1383         path which had been guarded by __STL_GTHREADS.  Remove all
1384         guards related to __STL_GTHREADS, __STL_SGI_THREADS,
1385         __STL_PTHREADS, __STL_UITHREADS and __STL_WIN32THREADS.
1386         * include/bits/stl_alloc.h: Leave only the configuration path
1387         which had been guarded by __STL_THREADS.  Remove configuration
1388         path and guards for __STL_SGI_THREADS.
1389         (__NODE_ALLOCATOR_THREADS): Remove macro definition.  Unroll its use.
1390         (__NODE_ALLOCATOR_LOCK): Likewise.
1391         (__NODE_ALLOCATOR_UNLOCK): Likewise.
1392         (_NOTHREADS): Remove guards related to macro.
1393         * include/ext/stl_rope.h: Remove configuration path and guards
1394         for __STL_SGI_THREADS.
1395         * src/stl-inst.cc: Remove use of __NODE_ALLOCATOR_THREADS.
1396
1397 2001-12-02  Phil Edwards  <pme@gcc.gnu.org>
1398
1399         * docs/html/ext/howto.html:  Update list of implemented DRs.
1400         * docs/html/ext/lwg-active.html:  Import R20 from upstream.
1401         * docs/html/ext/lwg-defects.html:  Import R20 from upstream.
1402
1403 2001-11-30  Benjamin Kosnik  <bkoz@redhat.com>
1404
1405         libstdc++/3150
1406         DR/266
1407         * libsupc++/exception (bad_exception::~bad_exception()): Remove
1408         declaration.
1409         * libsupc++/new (bad_alloc::~bad_alloc()): Remove.
1410         * libsupc++/typeinfo (bad_cast::~bad_cast()): Remove.
1411         (bad_typeid::~bad_typeid()): Remove.
1412         * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Remove definition.
1413         (bad_typeid::~bad_typeid()): Same.
1414         * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
1415         * libsupc++/eh_exception.cc (bad_exception::~bad_exception()): Same.
1416
1417         * include/bits/std_iomanip.h: Tweak.
1418
1419 2001-11-29  Paolo Carlini  <pcarlini@unitus.it>
1420
1421         libstdc++/3655
1422         * include/bits/locale_facets.tcc (__pad): Add bool parameter to
1423         correctly pad internal-adjusted const char*-type objects.
1424         * include/bits/locale_facts.tcc (num_put::_M_insert): Update call.
1425         * include/bits/ostream.tcc (operator<<(_CharT , char, const
1426         _CharT*, const char*, const basic_string&): Update calls.
1427         * src/locale-inst.tcc: Update declarations.
1428         * testsuite/27_io/ostream_inserter_arith.cc (test04): Add test.
1429
1430 2001-11-29  Phil Edwards  <pme@gcc.gnu.org>
1431
1432         * docs/html/ext/howto.html:  Finish allocator notes (inst and 3.0).
1433
1434 2001-11-29  Benjamin Kosnik  <bkoz@redhat.com>
1435
1436         * include/bits/locale_facets.tcc (num_get::do_get(long double)):
1437         Fix __traits_type typo.
1438
1439 2001-11-28  Paolo Carlini  <pcarlini@unitus.it>
1440
1441         * include/bits/locale_facets.tcc (__pad): Correctly pad
1442         internal-adjusted hex numbers.
1443         * testsuite/27_io/ostream_inserter_arith.cc: Add testcase.
1444
1445 2001-11-28  Paolo Carlini <pcarlini@unitus.it>
1446             Loren J. Rittle <ljrittle@acm.org>
1447
1448         * include/bits/basic_string.h
1449         (basic_string::_Rep::__default_excess, _S_excess_slop):
1450         Unused, remove.
1451         * include/bits/basic_string.tcc: Remove dead code.
1452         * include/bits/c++config: Remove comment.
1453
1454 2001-11-28  Benjamin Kosnik  <bkoz@redhat.com>
1455             Jakub Jelinek  <jakub@redhat.com>
1456
1457         * config/locale/moneypunct_members_gnu.cc
1458         (moneypunct<wchar_t>::_M_initialize_moneypunct): Correctly cast
1459         for ia64, others.
1460         * config/locale/numpunct_members_gnu.cc
1461         (numpunct<wchar_t>::_M_initialize_numpunct): Same.
1462
1463 2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>
1464
1465         * include/bits/locale_facets.tcc: Formatting tweaks.
1466
1467         * testsuite/23_containers/map_operators.cc: Don't xfail.
1468         * testsuite/23_containers/set_operators.cc: Same.
1469         * testsuite/backward/header_iterator_h.cc: Pass in -Wno-deprecated.
1470         * testsuite/backward/header_deque_h.cc: Same.
1471
1472 2001-11-27  Loren J. Rittle  <ljrittle@acm.org>
1473             Paolo Carlini  <pcarlini@unitus.it>
1474
1475         * include/bits/basic_string.tcc (basic_string::_Rep::_S_create):
1476         Enforce allocation size blocking policy to reduce
1477         fragmentation and enhance performance with common malloc
1478         implementations.
1479
1480 2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>
1481
1482         Numeric facets cleanup.
1483         * include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
1484         + and - signs.
1485         (__num_base::_M_zero): Add
1486         (__num_base::_M_e): Add.
1487         (__num_base::_M_E): Add.
1488         * include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
1489         (num_get::_M_extract_float): New.
1490         (num_get::_M_extract_int): New.
1491         * src/locale.cc (num_get::_M_extract): Remove.
1492
1493         * include/bits/locale_facets.tcc (num_put::_M_insert_float):
1494         Simplify, use _M_insert.
1495         (num_put::do_put(bool)): Simplify, remove __pad.
1496         (__pad): Remove.
1497         (__pad_output): Change to __pad.
1498         * include/bits/ostream.tcc: And here.
1499         * src/locale-inst: Remove instantiations.
1500
1501         * include/bits/locale_facets.h: Move helper functions in to class
1502         num_put.
1503         (num_put::_M_insert_float): Same, for __output_integer.
1504         (num_put::_M_insert_int): Same, for __output_float.
1505         (num_put::_M_insert): New.
1506         (__num_base): Add.
1507         (__num_base::_S_format_float): Move
1508         __build_float_format into class __num_base.
1509         (__num_base::_S_format_int): Move __build_int_format into class
1510         __num_base.
1511         * include/bits/locale_facets.tcc (__group_digits): Change to
1512         (__add_grouping): This.
1513         * src/locale-inst.cc: And here. Tweak instantiations.
1514         * src/misc-inst.cc: Remove instantiations.
1515
1516         * include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
1517         for new calling conventions, move to...
1518         * include/bits/locale_facets.tcc (__pad_output): Here. Adjust
1519         signature to make it useful for both ostream and num_put.
1520         (__pad_numeric): Remove.
1521         * src/misc-inst.cc: Remove instantiations.
1522         * src/locale-inst.cc: Same.
1523
1524         * include/bits/locale_facets.h (_Numeric_get): Remove.
1525         (_Numeric_put): Remove.
1526         (num_get::get(short)): Remove.
1527         (num_get::get(int)): Remove.
1528         (num_get::do_get(short)): Remove.
1529         (num_get::do_get(int)): Remove.
1530         * include/bits/istream.tcc (istream::operator>>(short)): Fix as
1531         per DR 118.
1532         (istream::operator>>(int)): Same.
1533
1534         * include/bits/locale_facets.h (_Format_cache): Remove.
1535         * include/bits/locale_facets.tcc: Same.
1536         * src/locale.cc: Same.
1537         * src/locale-inst.cc: Same.
1538         * include/bits/ostream.tcc: Same.
1539         * src/ios.cc (ios_base::imbue): Remove here as well.
1540
1541         * testsuite/22_locale/num_get.cc: New file.
1542         * testsuite/22_locale/num_get_members_char.cc: New file.
1543         * testsuite/22_locale/num_get_members_wchar_t.cc: New.
1544         * testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
1545         * testsuite/22_locale/num_put.cc: New file.
1546         * testsuite/22_locale/num_put_members_char.cc: New file.
1547         * testsuite/22_locale/num_put_members_wchar_t.cc: New file.
1548         * testsuite/27_io/ostream_inserter_arith.cc: Fix.
1549         * testsuite/27_io/istream_extractor_arith.cc: Fix.
1550
1551 2001-11-27  Phil Edwards  <pme@gcc.gnu.org>
1552
1553         * docs/html/explanations.html:  New section, empty for now.
1554         * docs/html/17_intro/howto.html:  Cleanup.  Move unrelated link...
1555         * docs/html/23_containers/howto.html:  ...to here.  Break up and
1556         rewrap threading discussion to emphasize warning.  Move malloc text...
1557         * docs/html/ext/howto.html:  ...to here.  New section.  Describe
1558         allocators and __USE_MALLOC effects.
1559         * docs/html/ext/sgiexts.html:  Mention their code.
1560
1561 2001-11-24  Joseph S. Myers  <jsm28@cam.ac.uk>
1562
1563         * docs/doxygen/maint.cfg.in, docs/doxygen/user.cfg.in,
1564         docs/html/27_io/binary_iostreams_kuehl.txt: Revert previous
1565         changes.
1566
1567 2001-11-23  Phil Edwards  <pme@gcc.gnu.org>
1568
1569         * Makefile.am (doxygen-maint):  The script isn't executable in CVS.
1570         * Makefile.in:  Regenerated.
1571         * docs/doxygen/TODO:  New file listing doxygen work to be done.
1572         * docs/doxygen/run_doxygen:  Fix up man pages.
1573         * docs/doxygen/user.cfg.in:  Insert maint-only toggles.
1574         * docs/doxygen/maint.cfg.in:  Copy from user.cfg and turn toggles on.
1575         * include/bits/stl_construct.h:  Use new hooks for internal functions.
1576
1577         * docs/html/17_intro/TODO:  Small updates.
1578         * docs/html/faq/index.html:  Likewise.
1579         * docs/html/faq/index.txt:  Regenerated.
1580
1581         * include/bits/stl_alloc.h:  Doxygenate, reindent comments, remove
1582         SGI-isms and wrappers.
1583         (simple_alloc, debug_alloc):  Uglify class names.
1584         (__default_alloc_template):  Uglify "threads" template parameter and
1585         update corresponding macros.
1586         * include/backward/alloc.h:  Bring up to date.
1587
1588 2001-11-23  Jason Merrill  <jason@redhat.com>
1589
1590         * src/vterminate.cc (__verbose_terminate_handler): Add leading
1591         underscores.
1592
1593 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1594
1595         * ChangeLog, docs/doxygen/maint.cfg.in, docs/doxygen/user.cfg.in,
1596         docs/doxygen/doxygroups.cc, docs/doxygen/Intro.3,
1597         docs/html/17_intro/BUGS, docs/html/17_intro/C++STYLE,
1598         docs/html/17_intro/CHECKLIST, docs/html/17_intro/DESIGN,
1599         docs/html/17_intro/howto.html, docs/html/17_intro/porting.html,
1600         docs/html/17_intro/porting.texi, docs/html/18_support/howto.html,
1601         docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
1602         docs/html/21_strings/howto.html,
1603         docs/html/23_containers/howto.html,
1604         docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
1605         docs/html/27_io/binary_iostreams_kuehl.txt,
1606         docs/html/ext/sgiexts.html, docs/html/faq/index.html,
1607         docs/html/faq/index.txt, testsuite/24_iterators/iterator.cc,
1608         include/bits/basic_file.h, include/bits/locale_facets.h,
1609         include/bits/locale_facets.tcc, include/bits/std_sstream.h,
1610         include/ext/ropeimpl.h, include/ext/stl_rope.h,
1611         libsupc++/tinfo.cc, libsupc++/cxxabi.h, libsupc++/typeinfo,
1612         libsupc++/eh_throw.cc, acinclude.m4, aclocal.m4, configure,
1613         configure.target, ChangeLog-2000: Fix spelling errors.
1614
1615         * config/locale/moneypunct_members_gnu.cc,
1616         include/bits/locale_facets.h: Fix spelling errors.
1617
1618 2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>
1619
1620         * testsuite/23_containers/list_capacity.cc: New file.
1621         * testsuite/23_containers/list_ctor.cc: New file.
1622         * testsuite/23_containers/list_modifiers.cc: New file.
1623         * testsuite/23_containers/list_operators.cc: New file.
1624
1625 2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>
1626
1627         * include/bits/stl_list.h: Reformatted according to C++STYLE rules.
1628         (size): Replaced nonstandard distance() call with the standard one.
1629         (transfer): Uglified to _M_transfer.
1630
1631 2001-11-21  Paolo Carlini  <pcarlini@unitus.it>
1632
1633         PR libstdc++/4548
1634         * include/bits/basic_string.tcc (basic_string::reserve):  Never shrink
1635         below the current size.
1636         * testsuite/21_strings/capacity.cc (test02):  Add test.
1637
1638 2001-11-19  Phil Edwards  <pme@gcc.gnu.org>
1639
1640         * docs/doxygen/Intro.3:  More notes.
1641         * docs/doxygen/style.css:  Update to default style from Doxygen 1.2.10.
1642         * include/bits/stl_algobase.h:  Add doxygen hooks for functions.
1643         * include/ext/hash_map:  Add @file hook.
1644         * include/ext/hash_set:  Likewise.
1645         * include/ext/rope:  Likewise.
1646         * include/ext/ropeimpl.h:  Likewise.
1647         * include/ext/slist:  Likewise.
1648         * include/ext/stl_hash_fun.h:  Likewise.
1649         * include/ext/stl_hashtable.h:  Likewise.
1650         * include/ext/stl_rope.h:  Likewise.
1651
1652         * docs/html/17_intro/license.html:  Remove "experimental" sentence.
1653         * docs/html/19_diagnostics/howto.html:  Document new verbose
1654         terminate handler.
1655         * testsuite/27_io/filebuf.cc:  Fix comment, move tweakable parameter
1656         to more visible (closer to description) position.
1657
1658         * libsupc++/eh_type.cc:  Formatting tweak.
1659         * libsupc++/exception:  Likewise.
1660         * src/vterminate.cc:  Likewise.
1661
1662         * docs/html/17_intro/porting.html:  Regenerate.
1663         * docs/html/faq/index.txt:  Regenerate.
1664
1665 2001-11-18  Jason Merrill  <jason@redhat.com>
1666
1667         * libsupc++/eh_personality.cc (__cxa_call_unexpected): Take void*.
1668         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1669         * libsupc++/unwind-cxx.h: Adjust.
1670         * src/Makefile.am (strstream.o): Pass -Wno-deprecated.
1671
1672         * libsupc++/eh_type.cc (__cxa_current_exception_type): New file.
1673         * libsupc++/cxxabi.h: Declare it.
1674         * libsupc++/Makefile.am (sources): Add it.
1675         * src/vterminate.cc (verbose_terminate_handler): New file.
1676         * libsupc++/exception: Declare it.
1677         * src/Makefile.am (sources): Add it.
1678
1679         * src/Makefile.am (VPATH): Check the src directory before the top one.
1680
1681 2001-11-16  Paolo Carlini  <pcarlini@unitus.it>
1682
1683         * include/bits/stl_deque.h (deque::erase()):  Fix memory leak.
1684
1685 2001-11-16  Loren J. Rittle  <ljrittle@acm.org>
1686
1687         * docs/html/17_intro/howto.html (Thread-safety): Rename
1688         section to ``The Standard C++ library and multithreading'' and
1689         update information based on recent mailing list traffic.  Move
1690         all discussion of __USE_MALLOC to...
1691         * docs/html/23_containers/howto.html (Containers and multithreading):
1692         ...here and rework it based on recent mailing list traffic.
1693
1694 2001-11-15  Loren J. Rittle  <ljrittle@acm.org>
1695
1696         * docs/html/faq/index.html (Is libstdc++-v3 thread-safe?): Clarify
1697         wording.
1698
1699 2001-11-15  <bjornw@planetarion.com>
1700             Loren J. Rittle  <ljrittle@acm.org>
1701
1702         libstc++/4219
1703         * include/bits/stl_alloc.h (alloc): Update to use __mem_interface.
1704         (single_client_alloc): Likewise.
1705
1706 2001-11-08  Danny Smith  <dannysmith@users.sourceforge.net>
1707
1708         * configure.target: Add os_include_dir for mingw32* target.
1709         * docs/html/17_intro/porting.texi: Mention mingw32 as target benefiting
1710         from _GLIBCPP_AVOID_FSEEK.
1711         * config/os/mingw32/bits/ctype_base.h: New file.
1712         * config/os/mingw32/bits/ctype_inline.h: New file.
1713         * config/os/mingw32/bits/ctype_noninline.h: New file.
1714         * config/os/mingw32/bits/os_defines.h: New file.
1715
1716 2001-11-07  Nathan Myers  <ncm@cantrip.org>
1717
1718         * docs/html/faq/index.html (5.8):  New entry on ABIs.
1719         * docs/html/faq/index.txt:  Regenerate.
1720
1721 2001-11-07  Phil Edwards  <pme@gcc.gnu.org>
1722
1723         * docs/html/faq/index.html:  Explain libsupc++, mention 'long long'
1724         bugfixes on Solaris.
1725         * docs/html/faq/index.txt:  Regenerate.
1726
1727 2001-11-06  Phil Edwards  <pme@gcc.gnu.org>
1728
1729         * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG):  Run the test in
1730         LANG_CPLUSPLUS mode.
1731         * aclocal.m4:  Regenerate.
1732         * configure:  Regenerate.
1733
1734 2001-11-05  Phil Edwards  <pme@gcc.gnu.org>
1735
1736         * porting.texi:  Move...
1737         * docs/html/17_intro/porting.texi:  ...to here.
1738         * docs/html/Makefile:  Add rule to rebuild...
1739         * docs/html/17_intro/porting.html:  ...this.  New file.
1740
1741 2001-11-05  Felix Natter  <fnatter@gmx.net>
1742
1743         * docs/html/17_intro/porting-howto.xml:  check in v0.9.4
1744         * docs/html/17_intro/porting-howto.html:  regenerate
1745
1746 2001-11-02  Loren J. Rittle  <ljrittle@acm.org>
1747
1748         * include/bits/stl_threads.h (_Atomic_swap): Only enable path
1749         when platform supports __GTHREAD_MUTEX_INIT.
1750
1751 2001-11-02  Phil Edwards  <pme@gcc.gnu.org>
1752
1753         * acconfig.h:  Update comments.
1754         * acinclude.m4 (GLIBCPP_ENABLE_C99):  Move strtoll, strtoull tests...
1755         (GLIBCPP_ENABLE_LONG_LONG):  ...to here.  Don't check enable_c99.
1756         * aclocal.m4:  Regenerate.
1757         * config.h.in:  Regenerate.
1758         * configure:  Regenerate.
1759
1760         * include/bits/boost_concept_check.h:  Unconditionally compile uses
1761         of 'long long' which require only compiler support, not C lib support.
1762         * include/bits/cpp_type_traits.h:  Likewise.
1763         * include/bits/std_limits.h:  Likewise.
1764         * include/bits/type_traits.h:  Likewise.
1765         * src/concept-inst.cc:  Likewise.
1766         * src/limits.cc:  Likewise.
1767         * include/c_shadow/stdlib.h:  Compile conditionally on _GLIBCPP_USE_C99
1768         instead of _GLIBCPP_USE_LONG_LONG.
1769         * include/c_shadow/bits/std_cstdlib.h:  Likewise.
1770
1771 2001-11-02  Phil Edwards  <pme@gcc.gnu.org>
1772
1773         * config/io/c_io_stdio.h:  Correct grammar in comments.
1774         * docs/doxygen/Intro.3:  Expand "top-level" man page.
1775         * docs/doxygen/doxygroups.cc:  New module definitions (comments).
1776         * docs/doxygen/mainpage.doxy:  Tweaks.
1777         * docs/doxygen/run_doxygen:  Update Doxygen version, massage man pages.
1778
1779         Add @file hooks so that headers are considered to be documented.
1780         * include/bits/basic_ios.h, include/bits/basic_file.h,
1781         include/bits/basic_string.h, include/bits/boost_concept_check.h,
1782         include/bits/char_traits.h, include/bits/codecvt.h,
1783         include/bits/concept_check.h, include/bits/cpp_type_traits.h,
1784         include/bits/fpos.h, include/bits/gslice.h, include/bits/gslice_array.h,
1785         include/bits/indirect_array.h, include/bits/ios_base.h,
1786         include/bits/locale_facets.h, include/bits/localefwd.h,
1787         include/bits/mask_array.h, include/bits/pthread_allocimpl.h,
1788         include/bits/slice.h, include/bits/slice_array.h,
1789         include/bits/std_algorithm.h, include/bits/std_bitset.h,
1790         include/bits/std_complex.h, include/bits/std_deque.h,
1791         include/bits/std_fstream.h, include/bits/std_functional.h,
1792         include/bits/std_iomanip.h, include/bits/std_ios.h,
1793         include/bits/std_iosfwd.h, include/bits/std_iostream.h,
1794         include/bits/std_istream.h, include/bits/std_iterator.h,
1795         include/bits/std_limits.h, include/bits/std_list.h,
1796         include/bits/std_locale.h, include/bits/std_map.h,
1797         include/bits/std_memory.h, include/bits/std_numeric.h,
1798         include/bits/std_ostream.h, include/bits/std_queue.h,
1799         include/bits/std_set.h, include/bits/std_sstream.h,
1800         include/bits/std_stack.h, include/bits/std_streambuf.h,
1801         include/bits/std_string.h, include/bits/std_utility.h,
1802         include/bits/std_valarray.h, include/bits/std_vector.h,
1803         include/bits/stl_algo.h, include/bits/stl_alloc.h,
1804         include/bits/stl_bvector.h, include/bits/stl_construct.h,
1805         include/bits/stl_deque.h, include/bits/stl_heap.h,
1806         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1807         include/bits/stl_iterator_base_types.h, include/bits/stl_list.h,
1808         include/bits/stl_map.h, include/bits/stl_multimap.h,
1809         include/bits/stl_multiset.h, include/bits/stl_numeric.h,
1810         include/bits/stl_pair.h, include/bits/stl_pthread_alloc.h,
1811         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1812         include/bits/stl_relops.h, include/bits/stl_set.h,
1813         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1814         include/bits/stl_threads.h, include/bits/stl_tree.h,
1815         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1816         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
1817         include/bits/stringfwd.h, include/bits/type_traits.h,
1818         include/bits/valarray_array.h, include/bits/valarray_meta.h:
1819         Add hooks, tweak comments only.
1820
1821         * include/bits/stl_algobase.h (swap, min, iter_swap):  Also
1822         document these functions.
1823         * include/bits/stl_function.h:  Tweak link comments.
1824
1825 2001-11-01  Paolo Carlini  <pcarlini@unitus.it>
1826             Benjamin Kosnik  <bkoz@redhat.com>
1827
1828         * testsuite/27_io/ios_manip_fmtflags.cc: Fix for non-interactive
1829         output.
1830         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Fix.
1831
1832 2001-11-01  Egor Duda  <deo@logos-m.ru>
1833
1834         * config/os/newlib/bits/ctype_noninline.h
1835         (ctype<char>::do_toupper(char __c)): Check for proper character class.
1836         (ctype<char>::do_tolower(char __c)): Ditto.
1837
1838 2001-11-01  Phil Edwards  <pme@gcc.gnu.org>
1839
1840         * acinclude.m4:  Fix spacing.
1841         (GLIBCPP_ENABLE_CONCEPT_CHECKS):  New macro.
1842         * configure.in:  Call here.
1843         * acconfig.h:  Add _GLIBCPP_CONCEPT_CHECKS.
1844         * include/bits/boost_concept_check.h:  Fix headers.
1845         (__function_requires):  Make inline.
1846         * include/bits/c++config (_GLIBCPP_CONCEPT_CHECKS):  Remove.
1847         * aclocal.m4:  Regenerate.
1848         * config.h.in:  Regenerate.
1849         * configure:  Regenerate.
1850
1851         Move trailing ';' inside macro, PR libstdc++/3666.
1852         * include/bits/concept_check.h:  Add semicolon.
1853         * include/bits/stl_algo.h:  Remove semicolon.
1854         * include/bits/stl_algobase.h:  Likewise.
1855         * include/bits/stl_deque.h:  Likewise.
1856         * include/bits/stl_heap.h:  Likewise.
1857         * include/bits/stl_iterator_base_funcs.h:  Likewise.
1858         * include/bits/stl_list.h:  Likewise.
1859         * include/bits/stl_map.h:  Likewise.
1860         * include/bits/stl_multimap.h:  Likewise.
1861         * include/bits/stl_multiset.h:  Likewise.
1862         * include/bits/stl_numeric.h:  Likewise.
1863         * include/bits/stl_queue.h:  Likewise.
1864         * include/bits/stl_set.h:  Likewise.
1865         * include/bits/stl_stack.h:  Likewise.
1866         * include/bits/stl_vector.h:  Likewise.
1867         * include/ext/hash_map:  Likewise.
1868         * include/ext/hash_set:  Likewise.
1869         * include/ext/slist:  Likewise.
1870
1871         * src/concept-inst.cc:  New file with explicit instantiations.
1872         * src/Makefile.am (sources):  Add here, with special build rules.
1873         * src/Makefile.in:  Regenerate.
1874
1875 2001-11-01  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1876
1877         * include/bits/std_complex.h (_Norm_helper): New class template.
1878         (norm): Tweak.
1879         (abs): Tweak. Fix Thinko.
1880
1881 2001-10-31  Benjamin Kosnik  <bkoz@redhat.com>
1882
1883         libstdc++/4749
1884         * include/bits/codecvt.h: Add virtual member function declarations.
1885         * src/codecvt.cc: Tweaks.
1886         * testsuite/22_locale/codecvt.cc: Test compilation only,
1887         non-required facets not required to have linkage.
1888
1889 2001-10-31  Edward E. Meyer  <edward.e.meyer@boeing.com>
1890
1891         libstdc++/4622
1892         * include/bits/std_complex.h (complex::operator/=): Correct sign.
1893
1894 2001-10-30  Paolo Carlini  <pcarlini@unitus.it>
1895             Benjamin Kosnik  <bkoz@redhat.com>
1896
1897         libstdc++/4354
1898         * include/bits/basic_string.h: Tweaks.
1899         * include/bits/basic_string.tcc (string::_M_replace(iterator,
1900         iterator, _ForwardIter, _ForwardIter, forward_iterator_tag): Fix.
1901         * src/string-inst.cc: Tweaks, add instantiation.
1902         * testsuite/21_strings/replace.cc (test02): Add test.
1903         * testsuite/21_strings/assign.cc (test01): New file.
1904
1905 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
1906
1907         * include/bits/stl_deque.h (_M_new_elements_at_front): Use
1908         __throw_exception_again.
1909         (_M_new_elements_at_back): Likewise.
1910
1911 2001-10-29  Benjamin Kosnik  <bkoz@redhat.com>
1912
1913         libstdc++/3647
1914         * include/bits/fstream.tcc (filebuf::showmanyc): Simplify.
1915         * testsuite/27_io/filebuf.cc (test07): New test.
1916         (test03): Modify showmanyc test.
1917
1918 2001-10-26  Benjamin Kosnik  <bkoz@redhat.com>
1919
1920         libstdc++/4503
1921         * config/locale/codecvt_specializations_ieee_1003.1-200x.h
1922         (__enc_traits::~__enc_traits): Fix.
1923         (__enc_traits::_M_init): Add error checking.
1924
1925 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
1926
1927         libstdc++/4542
1928         * include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.
1929
1930 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
1931
1932         libstdc++/4545
1933         * include/bits/ostream.tcc (ostream::operator<<(streambuf*)): Fix
1934         exceptions.
1935         * include/bits/istream.tcc (istream::operator>>(streambuf*): Make
1936         consistent, where possible.
1937         * include/bits/streambuf.tcc: Tweak.
1938
1939 2001-10-25  Brendan Kehoe  <brendan@zen.org>
1940
1941         libstdc++/4536
1942         * bits/ostream.tcc (seekp): Scope use as ios_base::failbit.
1943         * bits/istream.tcc (seekg): Likewise.
1944
1945 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
1946             Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1947             Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1948
1949         * config/os/gnu-linux/bits/os_defines.h: Set to 64 bit longs with
1950         __s390x__ only.
1951         * include/bits/std_limits.h: Fix wchar_t issues.
1952         * config/os/aix/bits/os_defines.h: Fix.
1953
1954 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
1955
1956         * include/bits/locale_facets.tcc (collate::do_transform): Fix.
1957
1958 2001-10-25  Phil Edwards  <pme@gcc.gnu.org>
1959
1960         * docs/html/documentation.html:  Fix typo.
1961
1962 2001-10-23  Benjamin Kosnik  <bkoz@redhat.com>
1963
1964         Make -fno-exceptions work.
1965         * config/locale/c_locale_gnu.cc: Use functexcept.
1966         * include/bits/c++config (__stl_assert): Remove.
1967         (__STL_USE_EXCEPTIONS): Same.
1968         (__STL_TRY): Same.
1969         (__STL_CATCH_ALL): Same.
1970         (__STL_THROW): Same.
1971         (__STL_RETHROW): Same.
1972         (__STL_NOTHROW): Same.
1973         (__STL_UNWIND): Same.
1974         * include/bits/pthread_allocimpl.h: Fix.
1975         * include/bits/std_bitset.h: Same.
1976         * include/bits/std_list.h: Same.
1977         * include/bits/std_memory.h: Same.
1978         * include/bits/std_queue.h: Same.
1979         * include/bits/stl_alloc.h: Same.
1980         * include/bits/stl_deque.h: Same.
1981         * include/bits/stl_list.h: Same.
1982         * include/bits/stl_queue.h: Same.
1983         * include/bits/stl_tempbuf.h: Same.
1984         * include/bits/stl_tree.h: Same.
1985         * include/bits/stl_uninitialized.h: Same.
1986         * include/bits/stl_vector.h: Same.
1987         * include/ext/ropeimpl.h: Same.
1988         * include/ext/slist: Same.
1989         * include/ext/stl_hashtable.h: Same.
1990         * include/ext/stl_rope.h: Same.
1991         * libsupc++/new_op.cc: Include cstdlib.
1992         * libsupc++/eh_personality.cc: Add exception_defines include. Use
1993         __throw_exception_again, tweak.
1994         * libsupc++/eh_aux_runtime.cc: Include stdlib for abort.
1995         * libsupc++/vec.cc: Tweak.
1996         * src/functexcept.cc: Remove unused arguments.
1997         * testsuite/23_containers/bitset_members.cc: Tweak.
1998
1999 2001-10-22  Benjamin Kosnik  <bkoz@redhat.com>
2000
2001         * config/cpu/i386/bits/limits.h: Move to...
2002         * config/cpu/i386/bits/cpu_limits.h: ...here.
2003         * config/cpu/cris/bits/cpu_limits.h: Same.
2004         * config/cpu/powerpc/bits/cpu_limits.h: Same.
2005         * config/cpu/x86-64/bits/cpu_limits.h: Same.
2006         * config/cpu/alpha/bits/cpu_limits.h: New.
2007         * config/cpu/m68k/bits/cpu_limits.h: New.
2008         * config/cpu/s390/bits/cpu_limits.h: New.
2009         * config/os/aix/bits/os_defines.h: Tweaks.
2010         * config/os/bsd/freebsd/bits/os_defines.h: Same.
2011         * config/os/bsd/netbsd/bits/os_defines.h: Same.
2012         * config/os/djgpp/bits/os_defines.h: Same.
2013         * config/os/generic/bits/os_defines.h: Same.
2014         * config/os/gnu-linux/bits/os_defines.h: Same.
2015         * config/os/hpux/bits/os_defines.h: Same.
2016         * config/os/irix/irix5.2/bits/os_defines.h: Same.
2017         * config/os/irix/irix6.5/bits/os_defines.h: Same.
2018         * config/os/newlib/bits/os_defines.h: Same.
2019         * config/os/solaris/solaris2.5/bits/os_defines.h: Same.
2020         * config/os/solaris/solaris2.6/bits/os_defines.h: Same.
2021         * config/os/solaris/solaris2.7/bits/os_defines.h: Same.
2022
2023         * include/bits/c++config: Remove include.
2024         * include/bits/limits_generic.h: Remove.
2025         * include/bits/std_limits.h: Include cpu_limits.h.
2026         * include/Makefile.am: Fixup.
2027         * src/limits.cc: Tweak.
2028         * src/limits_generic.cc: Remove.
2029         * src/gen-num-limits.cc: Remove.
2030         * mknumeric_limits: Remove.
2031
2032 2001-10-20  Brendan Kehoe  <brendan@zen.org>
2033
2034         * bits/type_traits.h (_Bool): Removed this type.
2035         (__true_type, __false_type): Change to be plain structs.
2036         * src/string-inst.cc (__destroy_aux): Change third parm to be
2037         __false_type instead of _Bool<false>.
2038         * src/misc-inst.cc (__uninitialized_fill_n_aux,
2039         __uninitialized_copy_aux): Likewise.
2040
2041 2001-10-19  Benjamin Kosnik  <bkoz@redhat.com>
2042
2043         * mkcheck.in (static_fail): Remove older memory limit functionality.
2044         Disable E_TIME due to formatting issues.
2045
2046         * README: Update.
2047
2048 2001-10-19  Brendan Kehoe  <brendan@zen.org>
2049
2050         * include/bits/std_complex.h: Default initialize second argument
2051         of polar to 0, as specified in Library DR #79
2052
2053 2001-10-19  Brendan Kehoe  <brendan@zen.org>
2054
2055         * include/bits/stl_raw_storage_iter.h (operator=): Fix to call
2056         _Construct instead of construct.
2057
2058 2001-10-19  Brendan Kehoe  <brendan@zen.org>
2059
2060         * include/bits/basic_string.tcc (find_first_not_of): Take out check for
2061         __n being non-zero, since the standard does not mandate that.
2062         e.g., a search for "" in "" should yield position 0, not npos.
2063         (find_last_not_of): Likewise.
2064
2065 2001-10-19  Brendan Kehoe  <brendan@zen.org>
2066
2067         * include/bits/stl_bvector.h (vector<bool>::_M_range_check): Fix
2068         to throw out_of_range, not range_error, thus sayeth $23.1.1.13.
2069
2070 2001-10-19  Brendan Kehoe  <brendan@zen.org>
2071
2072         * include/bits/stl_iterator.h (reverse_iterator::current): Rename
2073         member from _M_current, and change all uses; thus sayeth $24.4.1.1.
2074
2075 2001-10-19  Brendan Kehoe  <brendan@zen.org>
2076
2077         * include/bits/stl_algo.h (partial_sort): Add missing `>' on the
2078         template parameter _ValueType.
2079
2080 2001-10-19  Brendan Kehoe  <brendan@zen.org>
2081
2082         * include/bits/std_limits.h: Clean up extra semicolons.
2083         * include/bits/locale_facets.h: Likewise.
2084         * include/bits/type_traits.h: Likewise.
2085
2086 2001-10-19  Brendan Kehoe  <brendan@zen.org>
2087
2088         * include/bits/localefwd.h (locale::combine): Add const for lib DR 14.
2089         * include/bits/locale_facets.tcc (locale::combine): Likewise.
2090
2091 2001-10-19  Benjamin Kosnik  <bkoz@redhat.com>
2092
2093         * include/bits/locale_facets.h (__timepunct::_M_put_helper):
2094         Declare specializations for char, wchar_t.
2095
2096 2001-10-19  Andreas Jaeger  <aj@suse.de>
2097
2098         * config/cpu/x86-64/bits/limits.h: New file.
2099         * config/cpu/x86-64/bits/atomicity.h: New file.
2100         * configure.target: Add x86-64.
2101
2102 2001-10-17  Phil Edwards  <pme@gcc.gnu.org>
2103
2104         * docs/html/17_intro/howto.html:  Remove 1999 links (and explain
2105         why).  Add link to recent message.
2106         * docs/html/faq/index.html (5.6):  Reformat text only; fixup <pre>
2107         markup.
2108         * docs/html/faq/index.txt:  Regenerate.
2109
2110 2001-10-12  Loren J. Rittle  <ljrittle@acm.org>
2111
2112         * docs/html/faq/index.html (Is libstdc++-v3 thread-safe?): Update
2113         based on Nathan's review.  Use Nathan's words.
2114
2115 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2116
2117         * docs/html/configopts.html: Quote StyleSheet attribute values.
2118         * docs/html/documentation.html: Likewise.
2119         * docs/html/explanations.html: Likewise.
2120         * docs/html/install.html: Likewise.
2121         * docs/html/17_intro/howto.html: Likewise.
2122         * docs/html/17_intro/license.html: Likewise.
2123         * docs/html/18_support/howto.html: Likewise.
2124         * docs/html/19_diagnostics/howto.html: Likewise.
2125         * docs/html/20_util/howto.html: Likewise.
2126         * docs/html/21_strings/howto.html: Likewise.
2127         * docs/html/22_locale/howto.html: Likewise.
2128         * docs/html/23_containers/howto.html: Likewise.
2129         * docs/html/24_iterators/howto.html: Likewise.
2130         * docs/html/25_algorithms/howto.html: Likewise.
2131         * docs/html/26_numerics/howto.html: Likewise.
2132         * docs/html/27_io/howto.html: Likewise.
2133         * docs/html/ext/howto.html: Likewise.
2134         * docs/html/ext/sgiexts.html: Likewise.
2135         * docs/html/faq/index.html: Likewise.
2136
2137 2001-10-11  Loren J. Rittle  <ljrittle@acm.org>
2138
2139         * docs/html/faq/index.html (Is libstdc++-v3 thread-safe?): Rewrite.
2140         * docs/html/23_containers/howto.html (Containers and multithreading):
2141         Update.
2142
2143 2001-10-09  Phil Edwards  <pme@gcc.gnu.org>
2144
2145         * docs/html/17_intro/howto.html:  Tweak markup and value type.
2146         * docs/html/27_io/howto.html:  Tweak markup, describe setbuf() for
2147         nonzero arguments, add new note on threading.
2148         * docs/html/faq/index.html:  Update.
2149         * docs/html/faq/index.txt:  Regenerate.
2150
2151 2001-10-09  Phil Edwards  <pme@gcc.gnu.org>
2152
2153         * docs/html/configopts.html:  More HTML->XHTML and lowercasing of tags.
2154         * docs/html/documentation.html:  Likewise.
2155         * docs/html/explanations.html:  Likewise.
2156         * docs/html/install.html:  Likewise.
2157         * docs/html/17_intro/howto.html:  Likewise.
2158         * docs/html/17_intro/license.html:  Likewise.  Tighten up language.
2159         * docs/html/18_support/howto.html:  Likewise.
2160         * docs/html/19_diagnostics/howto.html:  Likewise.
2161         * docs/html/20_util/howto.html:  Likewise.
2162         * docs/html/21_strings/howto.html:  Likewise.
2163         * docs/html/22_locale/howto.html:  Likewise.
2164         * docs/html/23_containers/howto.html:  Likewise.
2165         * docs/html/24_iterators/howto.html:  Likewise.
2166         * docs/html/25_algorithms/howto.html:  Likewise.
2167         * docs/html/26_numerics/howto.html:  Likewise.
2168         * docs/html/27_io/howto.html:  Likewise.
2169         * docs/html/ext/howto.html:  Likewise.
2170         * docs/html/ext/sgiexts.html:  Likewise.
2171         * docs/html/faq/index.html:  Likewise.  Not so many absolute links.
2172         * docs/html/faq/index.txt:  Regenerate.
2173
2174 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2175
2176         * docs/html/22_locale/locale.html, docs/html/faq/index.html: Fix
2177         spelling errors of "separate" as "seperate", and corresponding
2178         spelling errors of related words.
2179         * docs/html/faq/index.txt: Regenerate.
2180
2181 2001-10-05  Phil Edwards  <pme@gcc.gnu.org>
2182
2183         * config/cpu/alpha/bits/atomicity.h (__compare_and_swap):  Remove
2184         unused function.
2185         * config/cpu/arm/bits/atomicity.h:  Likewise.
2186         * config/cpu/generic/bits/atomicity.h:  Likewise.
2187         * config/cpu/i486/bits/atomicity.h:  Likewise.
2188         * config/cpu/ia64/bits/atomicity.h:  Likewise.
2189         * config/cpu/mips/bits/atomicity.h:  Likewise.
2190         * config/cpu/powerpc/bits/atomicity.h:  Likewise.
2191         * config/cpu/sparc/sparc32/bits/atomicity.h:  Likewise.
2192         * config/cpu/sparc/sparc64/bits/atomicity.h:  Likewise.
2193
2194 2001-10-04  Phil Edwards  <pme@gcc.gnu.org>
2195
2196         * docs/html/faq/index.html:  Describe DR #22, and a workaround.
2197         * docs/html/faq/index.txt:  Regenerate.
2198
2199 2001-10-04  Phil Edwards  <pme@gcc.gnu.org>
2200
2201         * docs/html/17_intro/COPYING.DOC:  New file, GFDL v1.1 from the FSF.
2202         * docs/html/17_intro/license.html:  New file.  Explain the licenses
2203         in use.
2204
2205         * docs/html/configopts.html:  Link to license.html.
2206         * docs/html/documentation.html:  Likewise.
2207         * docs/html/explanations.html:  Likewise.
2208         * docs/html/install.html:  Likewise.
2209         * docs/html/17_intro/howto.html:  Likewise.
2210         * docs/html/18_support/howto.html:  Likewise.
2211         * docs/html/19_diagnostics/howto.html:  Likewise.
2212         * docs/html/20_util/howto.html:  Likewise.
2213         * docs/html/21_strings/howto.html:  Likewise.
2214         * docs/html/22_locale/howto.html:  Likewise.
2215         * docs/html/23_containers/howto.html:  Likewise.
2216         * docs/html/24_iterators/howto.html:  Likewise.
2217         * docs/html/25_algorithms/howto.html:  Likewise.
2218         * docs/html/26_numerics/howto.html:  Likewise.
2219         * docs/html/27_io/howto.html:  Likewise.
2220         * docs/html/ext/howto.html:  Likewise.
2221         * docs/html/ext/sgiexts.html:  Likewise.
2222         * docs/html/faq/index.html:  Likewise.  New question, linking to
2223         the new license.html.
2224
2225 2001-10-04  Phil Edwards  <pme@gcc.gnu.org>
2226
2227         * docs/html/17_intro/howto.html:  Fix mis-sed in header from 20010917.
2228         * docs/html/18_support/howto.html:  Likewise.
2229         * docs/html/19_diagnostics/howto.html:  Likewise.
2230         * docs/html/20_util/howto.html:  Likewise.
2231         * docs/html/21_strings/howto.html:  Likewise.
2232         * docs/html/22_locale/howto.html:  Likewise.
2233         * docs/html/23_containers/howto.html:  Likewise.
2234         * docs/html/24_iterators/howto.html:  Likewise.
2235         * docs/html/25_algorithms/howto.html:  Likewise.
2236         * docs/html/26_numerics/howto.html:  Likewise.
2237         * docs/html/27_io/howto.html:  Likewise.
2238         * docs/html/ext/howto.html:  Likewise.
2239         * docs/html/faq/index.html:  Likewise.  Spacing fix.
2240
2241 2001-10-03  Dimitris Vyzovitis  <vyzo@media.mit.edu>
2242
2243         * include/bits/stl_threads.h (_Atomic_swap): New function.
2244         (_Swap_lock_struct<__dummy>::_S_swap_lock): New data.
2245         * testsuite/ext/rope.cc: New file.
2246
2247 2001-10-02  Benjamin Kosnik  <bkoz@redhat.com>
2248
2249         * config/locale/time_members_gnu.h: Remove.
2250         * config/locale/time_members_generic.h: Remove.
2251         * config/locale/time_members_gnu.cc (__timepunct::_M_put_helper): Add.
2252         * config/locale/time_members_generic.cc: Same.
2253         * include/bits/locale_facets.h: Add data members.
2254         (__timepunct::_M_put_helper): Change signature.
2255         (__timepunct::_M_date_formats): Same.
2256         (__timepunct::_M_time_formats): Same.
2257         (__timepunct::_M_ampm): Add.
2258         (__timepunct::_M_date_time_formats): Add.
2259         (time_get::_M_extract_via_format): Add.
2260         (time_get::_M_extract_time): Change to...
2261         (time_get::_M_extract_num): ... this, modify signature.
2262         * include/bits/locale_facets.tcc (time_get::do_get_year): Fix.
2263         (time_get::do_get_time): Fix.
2264         (time_get::do_get_date): Fix.
2265
2266         * acinclude.m4: Remove CTIME_H.
2267         * aclocal.m4: Regenerate.
2268         * include/Makefile.am: Same.
2269         * include/Makefile.in: Regenerate.
2270         * configure: Regenerate.
2271
2272         * testsuite/22_locale/time_get_members_char.cc: Fix.
2273         * testsuite/22_locale/time_get_members_wchar_t.cc: Add.
2274         * testsuite/22_locale/time_put_members_wchar_t.cc: Add.
2275
2276 2001-10-01  Hans-Peter Nilsson  <hp@axis.com>
2277
2278         * config/cpu/cris/bits/atomicity.h: Correct file header.
2279
2280 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
2281
2282         * configure.target (LIMITSH): Set for cris.
2283         (cpu_include_dir): Set for cris-*-*.
2284         * config/cpu/cris/bits/atomicity.h: New file.
2285         * config/cpu/cris/bits/limits.h: New file.
2286
2287 2001-09-28  Benjamin Kosnik  <bkoz@redhat.com>
2288
2289         * config/locale/time_members_gnu.h (__timepunct::_M_get_helper): Add.
2290         (__timepunct::_M_put_helper): Add.
2291         * config/locale/time_members_generic.h: Same.
2292         * include/bits/locale_facets.h (__match_parallel): Remove. Format.
2293         (__timepunct): Add data members.
2294         (__timepunct::_M_days): Add.
2295         (__timepunct::_M_days_abbreviated): Add.
2296         (__timepunct::_M_months): Add.
2297         (__timepunct::_M_months_abbreviated): Add.
2298         (__timepunct::_M_initialize_timepunct): Add.
2299         * include/bits/locale_facets.tcc: Same.
2300         * src/locale-inst.cc: Remove instantiations for __match_parallel.
2301         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add CTIME_CC.
2302         * aclocal.m4: Regenerate.
2303         * configure: Regenerate.
2304         * testsuite/22_locale/time_put_members_char.cc: Mark XFAIL.
2305         * testsuite/22_locale/time_put_members_char.cc (test01): New file.
2306         * testsuite/22_locale/time_get.cc: New file.
2307
2308 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2309
2310         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Use
2311         correct multilib builddir.
2312         Properly locate libgcc_s.
2313
2314 2001-09-27  Phil Edwards  <pme@gcc.gnu.org>
2315
2316         * include/std/*:  Add Doxygen hooks.
2317         * docs/doxygen/Intro.3:  New file, general intro to the man pages.
2318         * docs/doxygen/mainpage.doxy:  Formatting tweaks.  List our own links
2319         rather than using a generated index.
2320         * docs/doxygen/user.cfg.in:  Disable the index, enable man pages.
2321         * docs/doxygen/run_doxygen:  Massage the generated man pages, using...
2322         * docs/doxygen/stdheader.cc:  ...this new file.
2323
2324 2001-09-26  Stan Shebs  <shebs@apple.com>
2325
2326         * include/Makefile.am: Remove RCS Id strings.
2327         * src/Makefile.am: Ditto.
2328         * docs/doxygen/run_doxygen: Ditto.
2329         * docs/html/configopts.html: Ditto.
2330         * docs/html/documentation.html: Ditto.
2331         * docs/html/explanations.html: Ditto.
2332         * docs/html/install.html: Ditto.
2333         * docs/html/17_intro/howto.html: Ditto.
2334         * docs/html/18_support/howto.html: Ditto.
2335         * docs/html/19_diagnostics/howto.html: Ditto.
2336         * docs/html/20_util/howto.html: Ditto.
2337         * docs/html/21_strings/howto.html: Ditto.
2338         * docs/html/22_locale/howto.html: Ditto.
2339         * docs/html/23_containers/howto.html: Ditto.
2340         * docs/html/24_iterators/howto.html: Ditto.
2341         * docs/html/25_algorithms/howto.html: Ditto.
2342         * docs/html/26_numerics/howto.html: Ditto.
2343         * docs/html/27_io/howto.html: Ditto.
2344         * docs/html/ext/howto.html: Ditto.
2345         * docs/html/ext/sgiexts.html: Ditto.
2346         * docs/html/faq/index.html: Ditto.
2347         * docs/html/faq/index.txt: Ditto.
2348
2349 2001-09-25  Phil Edwards  <pme@gcc.gnu.org>
2350
2351         * testsuite/21_strings/c_strings.cc (test01, test02):  Increase
2352         `carray' size.
2353
2354 2001-09-25  Phil Edwards  <pme@gcc.gnu.org>
2355
2356         * docs/html/20_util/howto.html:  Add anchor name.
2357         * docs/html/23_containers/howto.html:  Line wrapping, another link.
2358         * docs/html/25_algorithms/howto.html:  Another note.
2359
2360         * docs/html/ext/howto.html:  Link to SGI extensions.  List DRs and
2361         link to them...
2362         * docs/html/ext/lwg-active.html:  ...in this new file (from R19),
2363         * docs/html/ext/lwg-defects.html:  and this new file (from R19).
2364         * docs/html/ext/sgiexts.html:  New file.  Mention SGI extensions
2365         carried over to libstdc++-v3.
2366         * docs/html/faq/index.html:  Link to SGI extensions.  Mention the
2367         "missing .." pseudobug.
2368         * docs/html/faq/index.txt:  Regenerate.
2369
2370         * include/bits/ios_base.h:  DR-related comment cleanup.
2371         * include/bits/istream.tcc:  Likewise.
2372         * include/bits/locale_facets.h:  Likewise.
2373         * include/bits/locale_facets.tcc:  Likewise.
2374         * include/bits/ostream.tcc:  Likewise.
2375         * include/bits/std_bitset.h:  Likewise.
2376         * include/bits/std_iosfwd.h:  Likewise.
2377         * include/bits/std_istream.h:  Likewise.
2378         * include/bits/std_ostream.h:  Likewise.
2379         * include/bits/std_streambuf.h:  Likewise.
2380         * include/bits/stl_pair.h:  Likewise.
2381         * include/bits/streambuf_iterator.h:  Likewise.
2382
2383         * include/bits/std_map.h:  Remove unused header inclusion guard
2384         _CPP_BITS_STL_TREE_H from around bits/stl_tree.h.
2385         * include/bits/std_set.h:  Likewise.
2386
2387         * include/bits/stl_function.h:  Doxygen markup.
2388         * docs/doxygen/doxygroups.cc:  New file, specifying module grouping.
2389         * libsupc++/typeinfo:  Doxygen markup tweak.
2390
2391 2001-09-20  Scott Johnston <scott@accom.com>
2392             Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2393
2394         * include/backward/alloc.h: Conditionally define malloc_alloc
2395         * testsuite/backward/header_deque_h.cc: New file.
2396
2397 2001-09-20  Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
2398
2399         * libstdc++-v3/include/bits/locale_facets.tcc (money_put::do_put):
2400         change variable name so that it works with -fno-for-scope.
2401
2402 2001-09-20  Benjamin Kosnik  <bkoz@redhat.com>
2403
2404         * testsuite/22_locale/numpunct_members_char.cc (test01): Remove
2405         redundant sanity checks.
2406         * testsuite/22_locale/money_put_members_wchar_t.cc (test01): Same.
2407         (test02): Same.
2408         * testsuite/22_locale/money_put_members_char.cc (test01): Same.
2409         (test02): Same.
2410         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test01): Same.
2411         * testsuite/22_locale/moneypunct_members_char.cc (test01): Same.
2412         * testsuite/22_locale/money_get_members_wchar_t.cc (test01): Same.
2413         (test02): Same.
2414         * testsuite/22_locale/money_get_members_char.cc (test01): Same.
2415         (test02): Same.
2416
2417 2001-09-19  Benjamin Kosnik  <bkoz@redhat.com>
2418
2419         Implement std::time_put.
2420         * include/bits/locale_facets.h: Include time_members.h.
2421         (__timepunct): New.
2422         (time_put): Implement.
2423         * include/bits/locale_facets.tcc (do_put): Put generic versions here.
2424         * include/bits/localefwd.h: Bump number of facets.
2425         * config/locale/time_members_generic.h: New file.
2426         * config/locale/time_members_gnu.h: New file.
2427         * config/locale/c_locale_generic.h: Include clocale.
2428         * src/locale-inst.cc: Add use_facet instantiations for __timepunct.
2429         * src/locale.cc: Add __timepunct initializations.
2430         * src/localename.cc (locale::_Impl::_Impl(string, size_t)): Same.
2431         * include/Makefile.am (stamp-target): Add time_members.h.
2432         * include/Makefile.in: Regenerate.
2433         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add CTIME_H.
2434         * aclocal.m4: Regenerate.
2435         * configure: Regenerate.
2436         * testsuite/22_locale/time_put.cc: New file.
2437         * testsuite/22_locale/time_put_members_char.cc: New file.
2438
2439         * docs/html/22_locale/locale.html: Add note.
2440
2441 2001-09-17  Phil Edwards  <pme@gcc.gnu.org>
2442
2443         * docs/html/configopts.html:  HTML to XHTML change.  Lowercase tags.
2444         * docs/html/documentation.html:  Likewise.
2445         * docs/html/explanations.html:  Likewise.
2446         * docs/html/install.html:  Likewise.
2447         * docs/html/17_intro/howto.html:  Likewise.
2448         * docs/html/18_support/howto.html:  Likewise.
2449         * docs/html/19_diagnostics/howto.html:  Likewise.
2450         * docs/html/20_util/howto.html:  Likewise.
2451         * docs/html/21_strings/howto.html:  Likewise.
2452         * docs/html/22_locale/codecvt.html:  Likewise.
2453         * docs/html/22_locale/ctype.html:  Likewise.
2454         * docs/html/22_locale/howto.html:  Likewise.
2455         * docs/html/22_locale/locale.html:  Likewise.
2456         * docs/html/22_locale/messages.html:  Likewise.
2457         * docs/html/23_containers/howto.html:  Likewise.
2458         * docs/html/24_iterators/howto.html:  Likewise.
2459         * docs/html/25_algorithms/howto.html:  Likewise.
2460         * docs/html/26_numerics/howto.html:  Likewise.
2461         * docs/html/27_io/howto.html:  Likewise.
2462         * docs/html/ext/howto.html:  Likewise.
2463         * docs/html/faq/index.html:  Likewise.
2464         * docs/html/faq/index.txt:  Regenerated.
2465
2466 2001-09-14  Phil Edwards  <pme@sources.redhat.com>
2467
2468         * docs/html/17_intro/headers_cc.txt:  "Sync"/copy real file over.
2469         * docs/html/17_intro/howto.html:  Spacing and HTML markup fixes.
2470         * docs/html/18_support/howto.html:  It won't compile; it's not code.
2471         * docs/html/19_diagnostics/howto.html:  Point diagram seekers to
2472         doxygen'd pages.
2473         * docs/html/22_locale/howto.html:  Comment for future work.
2474         * docs/html/23_containers/howto.html:  More comments.
2475         * docs/html/25_algorithms/howto.html:  It's a comment, not a
2476         blunt command to the reader.  (English grammar.)
2477
2478 2001-09-14  Benjamin Kosnik  <bkoz@redhat.com>
2479
2480         * config/locale/moneypunct_members_gnu.cc: Fix initialization of
2481         wchar_t members.
2482         * testsuite/22_locale/money_get_members_wchar_t.cc (test02): New file.
2483         * testsuite/22_locale/money_put_members_wchar_t.cc (test02): Fix.
2484
2485 2001-09-14  Benjamin Kosnik  <bkoz@redhat.com>
2486
2487         * include/bits/locale_facets.tcc: Conditionalize use of strtold.
2488
2489 2001-09-13  Alexandre Petit-Bianco  <apbianco@redhat.com>
2490
2491         * testsuite/22_locale/money_get_members_char.cc: Fixed typo in comment.
2492         * testsuite/22_locale/money_put_members_char.cc: Likewise.
2493         * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
2494
2495 2001-09-13  Benjamin Kosnik  <bkoz@redhat.com>
2496
2497         Implement std::money_get.
2498         * include/bits/locale_facets.tcc (money_get::do_get): Implement.
2499         * include/bits/locale_facets.h (money_get): Correct signatures.
2500         * testsuite/22_locale/money_get.cc: New file.
2501         * testsuite/22_locale/money_get_members_char.cc: New file.
2502
2503         * include/bits/locale_facets.tcc (__verify_grouping): New
2504         function. Consolidate num_get and money_get group checking into
2505         one function.
2506         (money_get): Use it.
2507         * src/locale.cc (num_get::_M_extract): Use it.
2508         * src/locale-inst.cc: Add instantiation.
2509
2510 2001-09-12  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2511
2512         * include/bits/std_limits.h (numeric_limits<float>::radix,
2513         numeric_limits<float>::epsilon:  Fix thinko.
2514
2515 2001-09-10  Benjamin Kosnik  <bkoz@redhat.com>
2516
2517         * configure.in: Fix cross compiling math routines. Correct
2518         comments for cross compiling and limits. Add floating point math
2519         routines found in newlib.
2520         * configure: Regenerate.
2521         * acconfig.h: Add macros.
2522         * config.h.in: Regenerate.
2523
2524 2001-09-10  Benjamin Kosnik  <bkoz@redhat.com>
2525
2526         * config/locale/moneypunct_members_generic.cc
2527         (money_base::_S_construct_pattern): Remove unused parameters.
2528
2529 2001-09-10  Benjamin Kosnik  <bkoz@redhat.com>
2530
2531         * include/Makefile.am (stamp-target): Remove link to self.
2532         * inclulde/Makefile.in: Regenerate.
2533
2534 2001-09-09  Benjamin Kosnik  <bkoz@redhat.com>
2535
2536         Implement std::money_put.
2537         * include/bits/locale_facets.h
2538         (moneypunct::_M_initialize_moneypunct): Split up specializations
2539         to account for _Intl.  More grody hacking to get around the
2540         ill-considered use of const bool as a template parameter.
2541         * config/locale/moneypunct_members_gnu.cc: And here.
2542         * config/locale/moneypunct_members_generic.cc: And here.
2543         * testsuite/22_locale/moneypunct_members_char.cc: Add tests.
2544         * testsuite/22_locale/moneypunct.cc: Add tests.
2545         * testsuite/22_locale/money_put_members_wchar_t.cc: New file.
2546         * testsuite/22_locale/moneypunct_members_wchar_t.cc: New file.
2547
2548         * src/locale.cc (money_base::_S_construct_pattern): Move into
2549         gnu-specific file.
2550         * config/locale/moneypunct_members_gnu.cc: Add here.
2551         * config/locale/moneypunct_members_generic.cc: Add generic version
2552         here.
2553
2554         * include/bits/locale_facets.tcc (money_put::do_put): Move member
2555         function definitions here.
2556         * include/bits/locale_facets.h (money_put): Implement.
2557         * src/locale-inst.cc: Add use_facet instantiations for moneypunct.
2558         Correct money_get, money_put instantiations.
2559         * src/locale.cc (money_base::_S_construct_pattern): Handle case
2560         where __posn == 0.
2561         * testsuite/22_locale/money_put_members_char.cc: Add tests.
2562
2563 2001-09-05  Phil Edwards  <pme@sources.redhat.com>
2564
2565         * testsuite_flags.in:  No longer need to search testsuite builddir.
2566         * src/stl-inst.cc (__sink_unused_warning):  Unused, remove.
2567         * Makefile.am:  The testsuite directory never needs to be made here.
2568         * Makefile.in:  Regenerate.
2569         * include/Makefile.in:  Regenerate.
2570         * libio/Makefile.in:  Regenerate.
2571         * libmath/Makefile.in:  Regenerate.
2572         * libsupc++/Makefile.in:  Regenerate.
2573         * po/Makefile.in:  Regenerate.
2574         * src/Makefile.in:  Regenerate.
2575         * testsuite/Makefile.in:  Regenerate.
2576
2577 2001-09-04  Scott Johnston  <scott@accom.com>
2578             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2579
2580         * include/backward/iterator.h: Include <bits/std_iterator.h>,
2581         remove reverse_bidirectional_iterator.
2582         * testsuite/backward: New directory.
2583         * testsuite/backward/header_iterator_h.cc: New file.
2584
2585 2001-09-04  Benjamin Kosnik  <bkoz@redhat.com>
2586
2587         * include/c_std/bits/std_c*.h: Don't use include_next.
2588
2589 2001-09-03  Richard Sandiford  <rsandifo@redhat.com>
2590
2591         * libsupc++/eh_personality.cc (parse_lsda_header): Change type of
2592         tmp from _Unwind_Ptr to _Unwind_Word.
2593
2594 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
2595
2596         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Simplify
2597         leb128 handling.
2598
2599 2001-08-28  Loren J. Rittle  <ljrittle@acm.org>
2600
2601         * include/Makefile.am: Use toplevel_srcdir to refer to src files
2602         outside this component.
2603         * include/Makefile.in: Regenerate.
2604
2605 2001-08-27  Benjamin Kosnik  <bkoz@redhat.com>
2606
2607         * config/locale/c_locale_gnu.cc: Move facet info to separate files...
2608         * config/locale/c_locale_generic.cc: Same.
2609         * config/locale/moneypunct_members_gnu.cc: New file.
2610         * config/locale/moneypunct_members_generic.cc: New file.
2611         * config/locale/numpunct_members_gnu.cc: New file.
2612         * config/locale/numpunct_members_generic.cc: New file.
2613         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add moneypunct, numpunct
2614         options.
2615         * aclocal.m4: Regenerate.
2616         * configure: Regenerate.
2617         * src/Makefile.am (sources): And here.
2618         * src/Makefile.in: Regenerate.
2619
2620         Rename for consistency with rest of testsuite.
2621         * testsuite/22_locale/codecvt.cc: New file.
2622         * testsuite/22_locale/money_put.cc: New file.
2623         * testsuite/22_locale/money_put_members_char.cc: New file.
2624
2625 2001-08-27  Phil Edwards  <pme@sources.redhat.com>
2626
2627         PR libstdc++/4143
2628         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO):  Handle enable/disable
2629         correctly for version-specific-runtime-libs.
2630         * aclocal.m4:  Regenerate.
2631         * configure:  Regenerate.
2632
2633 2001-08-24  Loren J. Rittle  <ljrittle@acm.org>
2634
2635         * config/cpu/i386/bits/limits.h (__glibcpp_long_double_bits): Only
2636         define if not already provided by per-OS file.
2637         * config/os/bsd/freebsd/bits/os_defines.h (__glibcpp_long_double_bits):
2638         Define.
2639
2640 2001-08-24  Jan van Male <jan.vanmale@fenk.wau.nl>
2641
2642         * docs/html/17_intro/C++STYLE:  Fix typo.
2643
2644 2001-08-24  Phil Edwards  <pme@sources.redhat.com>
2645
2646         * docs/html/23_containers/howto.html:  Describe implementation of
2647         insertion with hints.
2648
2649 2001-08-24  Kenny Simpson  <kenny.simpson@gs.com>
2650
2651         libstdc++/3740
2652         * include/bits/std_sstream.h (basic_ostringstream): Fix ctor.
2653
2654 2001-08-24  Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
2655             Phil Edwards  <pme@sources.redhat.com>
2656
2657         PR libstdc++/3349
2658         * include/bits/stl_tree.h (insert_unique):  Revert last change.
2659         Values inserted at begin() must be less, not greater, than *begin()'s.
2660         * testsuite/23_containers/map_insert.cc:  New file.
2661
2662 2001-08-23  Benjamin Kosnik  <bkoz@redhat.com>
2663
2664         * config/locale/c_locale_gnu.cc: Minor tweaks.
2665         (moneypunct<wchar_t>): Implement.
2666         * include/bits/locale_facets.h: Same.
2667         * testsuite/22_locale/moneypunct.cc: New file.
2668         * testsuite/22_locale/moneypunct_byname.cc: New file.
2669         * testsuite/22_locale/moneypunct_char_members.cc: New file.
2670
2671 2001-08-23  David Edelsohn  <edelsohn@gnu.org>
2672
2673         * config/os/gnu-linux/bits/os_defines.h: Correct __s390__ definitions.
2674         Set __powerpc__ long double definition based on __LONG_DOUBLE_128__.
2675
2676 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
2677
2678         * testsuite_flags.in (build-includes): Re-add backward.
2679
2680 2001-08-22  Benjamin Kosnik  <bkoz@redhat.com>
2681
2682         * testsuite/22_locale/collate_wchar_t_members.cc: Guard
2683         with _GLIBCPP_USE_WCHAR_T.
2684
2685 2001-08-21  Benjamin Kosnik  <bkoz@redhat.com>
2686
2687         * testsuite/22_locale/collate_byname.cc (test01): Fix.
2688
2689 2001-08-18  Vladimir A Merzliakov  <wanderer@rsu.ru>
2690
2691         * include/bits/locale_facets.tcc (collate::do_transform): Add typename.
2692
2693 2001-08-18  Benjamin Kosnik  <bkoz@redhat.com>
2694
2695         * testsuite/22_locale/operators.cc: Add test.
2696
2697 2001-08-17  Benjamin Kosnik  <bkoz@redhat.com>
2698
2699         Implement std::collate.
2700         * config/locale/collate_specializations_gnu.cc: Add here, implement in
2701         MT-safe way.
2702         * config/locale/collate_specializations_generic.cc: Add here, but
2703         in a less sophisticated manner.
2704         * include/bits/locale_facets.tcc (collate): Add generic definition.
2705         * include/bits/locale_facets.h (~collate): Mark virtual.
2706         (collate::_M_compare_helper): New.
2707         (collate::_M_transform_helper): New.
2708         * src/locale.cc: Remove unnecessary specializations.
2709         * src/string-inst.cc: Tweak instantiation of ctors.
2710
2711         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Do configury for collate.
2712         * aclocal.m4: Regenerate.
2713         * configure: Regenerate.
2714         * src/Makefile.am (sources): Add collate.cc.
2715         * src/Makefile.in: Regenerate.
2716
2717         * testsuite/22_locale/collate_byname.cc: New.
2718         * testsuite/22_locale/collate.cc: New file.
2719         * testsuite/22_locale/collate_char_members.cc: New file.
2720         * testsuite/22_locale/collate_wchar_t_members.cc: New file.
2721
2722 2001-08-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2723
2724         * configure.target: Set LIMITSH for powerpc-*-*.
2725         * config/cpu/powerpc/bits/limits.h: New file.
2726
2727 2001-08-16  Marc Espie <espie@openbsd.org>
2728
2729         * configure.in:  Check for <sys/types.h>.
2730         * configure:  Rebuild.
2731         * config.h.in:  Rebuild.
2732         * libmath/mathconf.h:  Include <sys/types.h> prior to
2733         <machine/endian.h> if available.
2734
2735 2001-08-15  Andreas Schwab  <schwab@suse.de>
2736
2737         * configure.target (cpu_include_dir): Set to `config/cpu/m68k' for
2738         m68k and m680[246]0.
2739         * config/cpu/m68k/bits/atomicity.h: New file.
2740
2741         * include/bits/std_limits.h [__glibcpp_long_double_bits == 96]:
2742         Define appropriate long double limits for m68k extended floating
2743         point.
2744         (__glibcpp_f32_digits10): Corrected, off by one.
2745         (__glibcpp_f80_digits10): Likewise.
2746         (__glibcpp_f128_digits10): Likewise.
2747         * config/os/gnu-linux/bits/os_defines.h
2748         (__glibcpp_long_double_bits) [__mc68000__]: Define to 96.
2749
2750 2001-08-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2751
2752         * testsuite/18_support/numeric_limits.cc: Add more tests.
2753         * include/bits/std_limits.h (numeric_limits<char>::max): Fix
2754         typo.
2755
2756 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2757
2758         * configure.target (cpu_include_dir): Set to `config/cpu/s390'
2759         for s390 and s390x.
2760
2761         * config/cpu/s390/bits/atomicity.h: New.
2762
2763 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
2764
2765         * include/bits/std_limits.h: Fix thinko.
2766
2767 2001-08-14  Benjamin Kosnik  <bkoz@redhat.com>
2768
2769         * include/Makefile.am: Consolidate target rules. Don't clean stamp
2770         files. Tweak target build directory stamp.
2771         * include/Makefile.in: Regenerate.
2772
2773 2001-08-14  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2774
2775         * libstdc++-v3/libmath/stubs.c: Fix PR/3988, replace
2776         _GBLICPP_HAVE_LOGL with HAVE_LOGL
2777
2778 2001-08-13  Benjamin Kosnik  <bkoz@redhat.com>
2779
2780         * configure.in (libtool_VERSION): Add.
2781         (VERSION): Change to
2782         (release_VERSION): This.
2783         * configure: Regenerate.
2784         * src/Makefile.am (libstdc___la_LDFLAGS): Use -version-info with
2785         libtool_VERSION.
2786         * src/Makefile.in: Regenerate.
2787
2788         * intl/Makefile.am: Remove.
2789         * intl/Makefile.in: Remove.
2790         * intl: Remove.
2791         * Makefile.am (SUBDIRS): Remove intl.
2792         * po/Makefile.am (DISTFILES): Add string_literals.cc
2793         (MSGFMT): Add.
2794         * po/string_literals.cc: Add.
2795         * po/POTFILES.in: Fix path.
2796         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Don't call AM_GNU_GETTEXT.
2797         * aclocal.m4: Regenerate.
2798         * configure.in: Remove AC_OUTPUT of intl/Makefile.
2799
2800         * include/backward/backward_warning.h: Clarify message.
2801
2802         * testsuite_flags.in (--cxxflags): Use same debug flags for
2803         library and testsuite.
2804
2805         * include/Makefile.am (c_compatibility): Remove.
2806         * include/Makefile.in: Regenerate.
2807
2808 2001-08-13  Mark Mitchell  <mark@codesourcery.com>
2809
2810         * configure.in (LIMITS_INC_SRCDIR): New variable.
2811         * configure.target (LIMITSH): New variable.
2812         * porting.texi: Discuss numeric limits.
2813         * config/cpu/generic/bits/limits.h: New file.
2814         * config/cpu/i386/bits/limits.h: New file.
2815         * include/Makefile.am: Install bits/limits.h.
2816         * include/bits/c++config: Include bits/limits.h.
2817
2818 2001-08-13  H.J. Lu  (hjl@gnu.org)
2819
2820         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-copy-files):
2821         New. Copy files.
2822         (libstdc++-v3-init ): Use it.
2823
2824 2001-08-13  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2825
2826         * include/bits/ostream.tcc (__pad_char): Change toplevel '__fmt'
2827         to '__adjust' to avoid shadowing in nested scope.
2828
2829 2001-08-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2830
2831         * include/bits/std_limits.h(__glibcpp_char_is_signed): Use
2832         __CHAR_UNSIGNED__.
2833
2834         * config/os/gnu-linux/bits/os_defines.h(__glibcpp_char_is_signed):
2835         Likewise.
2836         * config/os/aix/bits/os_defines.h(__glibcpp_plain_char_is_signed):
2837         Remove.
2838
2839 2001-08-10  Loren J. Rittle  <ljrittle@acm.org>
2840
2841         * testsuite/testsuite_hooks.h (__set_testsuite_memlimit): Add
2842         dummy default argument to the non-limit implementation.
2843
2844         bootstrap/3963
2845         * include/Makefile.am: Use relative file path in rule to allow
2846         colon in $(objdir).
2847         * include/Makefile.in: Rebuilt.
2848
2849 2001-08-10  Gunter Winkler  <gunter.winkler@mathematik.tu-chemnitz.de>
2850
2851         * include/bits/std_complex.h (complex<long double>::operator*=,
2852         complex<long double>::operator/=): Fix thinko.
2853
2854 2001-08-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2855
2856         * include/bits/std_limits.h: New file.
2857         * include/Makefile.am (bits_headers): Add std_limits.h
2858         (all-local): std_limits.h is no longer built.
2859         (${target_builddir}/std_limits.h): Remove.
2860         * include/Makefile.in: Regenerate.
2861         * src/limits.cc: New file.
2862         * src/Makefile.am (sources): Add limits.cc in replacement of
2863         limitsMEMBERS.cc.
2864         * src/Makefile.in: Regenerate.
2865
2866 2001-08-09  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2867
2868         * src/gen-num-limits.cc (digits10): Fix thinko.
2869
2870 2001-08-09  Benjamin Kosnik  <bkoz@redhat.com>
2871
2872         * po/Makefile.am (check-no): Add.
2873         (check-yes): Same.
2874         * po/Makefile.in: Regenerate.
2875
2876 2001-08-09  Benjamin Kosnik  <bkoz@redhat.com>
2877
2878         * acconfig.h (_GLIBCPP_MEM_LIMITS): Define.
2879         * config.h.in: Regenerate.
2880         * acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT): Check for setrlimit
2881         function.
2882         * aclocal.m4: Regenerate.
2883         * configure.in: Remove duplicate AM_CONFIG_HEADER.
2884         (AM_CONFIG_HEADER): Remove testsuite/testsuite_hooks.h.
2885         Only call GLIBCPP_CHECK_SETRLIMIT for native compiles.
2886         * configure: Regenerate.
2887         * testsuite_hooks.h.in: Move to...
2888         * testsuite_hooks.h: Here, include c++config.h. Use it.
2889
2890         * Makefile.am (SUBDIRS): Move testsuite to last directory.
2891         * Makefile.in: Regenerate.
2892         * po/Makefile.am (stamp-po): Add.
2893
2894 2001-08-09  David Edelsohn  <edelsohn@gnu.org>
2895
2896         * config/os/aix/bits/os_defines.h: Define std_limits.h macros.
2897         * config/os/generic/bits/os_defines.h: Likewise.
2898         * config/os/gnu-linux/bits/os_defines.h: Likewise.
2899         * config/os/hpux/bits/os_defines.h: Likewise.
2900         * config/os/irix/irix6.5/bits/os_defines.h: Likewise.
2901         * config/os/solaris/solaris2.7/bits/os_defines.h: Likewise.
2902
2903 2001-08-08  Benjamin Kosnik  <bkoz@redhat.com>
2904
2905         * src/Makefile.am (libstdc___la_LDFLAGS): Use -release instead of
2906         -version-info, use substituted VERSION info.
2907         * src/Makefile.in: Regenerate.
2908
2909 2001-08-07  Benjamin Kosnik  <bkoz@redhat.com>
2910
2911         Implement std::messages.
2912         Make config a fully-nested directory.
2913         * config/locale: New directory.
2914         * config/c_locale_generic.cc: Move into locale subdirectory.
2915         * config/c_locale_generic.h: Same.
2916         * config/c_locale_gnu.cc: Same.
2917         * config/c_locale_gnu.h: Same.
2918         * config/c_locale_ieee_1003.1-200x.cc: Same.
2919         * config/c_locale_ieee_1003.1-200x_.h: Same.
2920         * config/codecvt_specializations_generic.h: Same.
2921         * config/codecvt_specializations_ieee_1003.1-200x.h: Same.
2922         * config/messages_members_gnu.h: Same.
2923         * config/messaages_members_gnu.cc: Same.
2924         * config/messages_members_generic.h: Same.
2925         * config/messaages_members_generic.cc: Same.
2926         * config/messages_members_ieee_1003.1-200x.h: Same.
2927         * config/messaages_members_ieee_1003.1-200x.cc: Same.
2928         * config/io: New directory.
2929         * config/basic_file_libio.h: Move into io subdirectory.
2930         * config/basic_file_libio.cc: Same.
2931         * config/c_io_libio.h: Same.
2932         * config/c_io_libio_codecvt.c: Same.
2933         * config/basic_file_stdio.h: Same.
2934         * config/basic_file_stdio.cc: Same.
2935         * config/c_io_stdio.h: Same.
2936
2937         * po: New directory.
2938         * po/POTFILES.in: New file.
2939         * po/Makefile.am: New file.
2940         * po/Makefile.in: New file.
2941         * po/libstdc++.pot: Generic translation file.
2942         * po/fr.po: Preliminary French translation.
2943         * po/de.po: Preliminary German translation.
2944         * intl: New directory.
2945         * intl/Makefile.am: New file.
2946         * intl/Makefile.in: New file.
2947         * intl/string_literals.cc: New file.
2948         * acinclude.m4 (GLIBCPP_CONFIGURE): Bump VERSION to 3.1.0. Add
2949         requisite setup for gettext. Re-arrange.
2950         * aclocal.m4: Regenerate.
2951         * configure.in: Don't call GLIBCPP_CHECK_COMPILER_VERSION.
2952         Output Makefile bits for po and intl.
2953         * configure: Regenerate.
2954         * Makefile.am (SUBDIRS): Add intl, po. Add rule for dist.
2955         * Makefile.in: Regenerate.
2956         * acconfig.h: Add ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY.
2957         * config.h.in: Regenerate.
2958
2959         * acinclude.m4 (AC_REPLACE_STRINGFUNCS): Remove.
2960
2961         * include/Makefile.am (install-data-local): Don't install Makefile.
2962         * include/Makefile.in: Regenerate.
2963
2964         * include/bits/locale_facet.h (locale::facet::_S_clone_c_locale):
2965         Add member.
2966         * config/locale/c_locale_gnu.cc (_S_clone_c_locale): Add definition.
2967         * config/locale/c_locale_generic.cc: Same.
2968         * config/locale/c_locale_ieee_1003.1-200x.cc: Same.
2969
2970         * include/bits/codecvt.h: Excise non-standard, non-required
2971         bits. This includes __enc_traits, and partial specializations of
2972         codecvt for __enc_traits.
2973         * src/codecvt.cc (__enc_traits::_S_max_size): Guard
2974         * config/codecvt_partials_ieee_1003.1-200x.h: New file.
2975         * config/codecvt_partials_generic.h: New file.
2976         * include/Makefile.am (allstamps): Add stamp-codecvt_model.
2977         (stamp-codecvt_model): Add.
2978         * include/Makefile.in: Regenerate.
2979         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add in codecvt configury.
2980         * aclocal.m4: Regenerate.
2981         * configure: Regenerate.
2982         * testsuite/22_locale/codecvt_unicode_wchar_t.cc: Use macro guard.
2983         * testsuite/22_locale/codecvt_unicode_char.cc: Same.
2984         * testsuite/22_locale/ctor_copy_dtor.cc: And here.
2985
2986         * include/bits/localefwd.h (class locale::facet): Add __enc_traits
2987         as a friend for _S_*_c_locale functions.
2988         * include/bits/codecvt.h (__enc_traits::__enc_traits): Add locale
2989         argument to default constructor so that CODESET information can be
2990         deduced.
2991         * include/bits/locale_facets.h (messages_byname):
2992         Re-implement. Remove specializations.
2993         * src/locale.cc (messages_byname<char>): Remove specialization.
2994         (messages_byname<wchar_t>): Same.
2995         * config/locale/c_locale_ieee_1003.1-200x.cc: New file.
2996         * config/locale/c_locale_ieee_1003.1-200x.h: New file.
2997         * config/locale/messages_members_ieee_1003.1-200x.cc: New file.
2998         * config/locale/messages_members_ieee_1003.1-200x.h: New file.
2999         * config/locale/messages_members_gnu.cc: New file.
3000         * config/locale/messages_members_gnu.h: New file.
3001         * config/locale/messages_members_generic.cc: New file.
3002         * config/locale/messages_members_generic.h: New file.
3003
3004         * docs/html/configopts.html: Add documentation for new locale
3005         model, ieee_1003.1. Adjust other flags for current defaults.
3006         * docs/html/22_locale/locale.html: Update.
3007         * docs/html/22_locale/howto.html: Add link to messages.html. Organize.
3008         * docs/html/22_locale/messages.html: New.
3009
3010         * src/Makefile.am (sources): Add messages_virtuals.cc.
3011         * src/Makefile.in: Regenerate.
3012         * include/Makefile.am (allstamps): Add stamp-messages_model.
3013         (stamp-messages_model): Add.
3014         * include/Makefile.in: Regenerate.
3015         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add in messages configury.
3016         * aclocal.m4: Regenerate.
3017         * configure: Regenerate.
3018
3019         * testsuite_flags.in (--cxxflags): Add LOCALEDIR.
3020         * testsuite/lib/libstdc++-v3-dg.exp: Remove broken LD_LIBRARY_PATH
3021         bits for Irix.
3022         * acinclude (GLIBCPP_ENABLE_CLOCALE): Set glibcpp_localedir to the
3023         build directories message catalog base directory, and export.
3024         Eventually this should probably be made to deal with build and
3025         install directories. For now, punt on this as the library itself
3026         doesn't use message catalogs (yet).
3027         * testsuite/22_locale/messages.cc: New file.
3028         * testsuite/22_locale/messages_char_members.cc: New file.
3029         * testsuite/22_locale/messages_byname.cc: New file.
3030
3031 2001-08-06  Phil Edwards  <pme@sources.redhat.com>
3032
3033         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE):  New macro, calls...
3034         (GLIBCPP_CHECK_SETRLIMIT):  ...this new macro, which also uses...
3035         (GLIBCPP_CHECK_SETRLIMIT_ancilliary):  ...this new macro.
3036         * configure.in (AM_CONFIG_HEADER):  Also generate testsuite_hooks.h.
3037         Call GLIBCPP_CONFIGURE_TESTSUITE.
3038         * aclocal.m4:  Regenerate.
3039         * config.h.in:  Regenerate.
3040         * configure:  Regenerate.
3041
3042         * testsuite/lib/libstdc++-v3-dg.exp:  Download new header instead
3043         of old header.
3044
3045         * testsuite_flags.in:  Add build dir's testsuite to INCLUDES.
3046         * testsuite/debug_assert.h:  Removed; contents merged into...
3047         * testsuite/testsuite_hooks.h.in:  ...here.  New file.
3048         * testsuite/17_intro/header_ciso646.cc:  No longer include
3049         debug_assert.h, include testsuite_hooks.h instead.
3050         * testsuite/17_intro/header_fstream.cc:  Likewise.
3051         * testsuite/17_intro/header_iomanip.cc:  Likewise.
3052         * testsuite/17_intro/header_ios.cc:  Likewise.
3053         * testsuite/17_intro/header_iosfwd.cc:  Likewise.
3054         * testsuite/17_intro/header_iostream.cc:  Likewise.
3055         * testsuite/17_intro/header_istream.cc:  Likewise.
3056         * testsuite/17_intro/header_ostream.cc:  Likewise.
3057         * testsuite/17_intro/header_sstream.cc:  Likewise.
3058         * testsuite/17_intro/header_streambuf.cc:  Likewise.
3059         * testsuite/18_support/numeric_limits.cc:  Likewise.
3060         * testsuite/19_diagnostics/stdexceptions.cc:  Likewise.
3061         * testsuite/20_util/allocator_members.cc:  Likewise.
3062         * testsuite/20_util/auto_ptr.cc:  Likewise.
3063         * testsuite/20_util/pairs.cc:  Likewise.
3064         * testsuite/21_strings/append.cc:  Likewise.
3065         * testsuite/21_strings/capacity.cc:  Likewise.
3066         * testsuite/21_strings/char_traits_requirements.cc:  Likewise.
3067         * testsuite/21_strings/compare.cc:  Likewise.
3068         * testsuite/21_strings/ctor_copy_dtor.cc:  Likewise.  Also set up
3069         call to (disabled) __set_testsuite_memlimit() wrapper.
3070         * testsuite/21_strings/element_access.cc:  Likewise.
3071         * testsuite/21_strings/find.cc:  Likewise.
3072         * testsuite/21_strings/insert.cc:  Likewise.  Also set up call to
3073         (disabled) __set_testsuite_memlimit() wrapper.
3074         * testsuite/21_strings/inserters_extractors.cc:  Likewise.
3075         * testsuite/21_strings/invariants.cc:  Likewise.
3076         * testsuite/21_strings/nonmember.cc:  Likewise.
3077         * testsuite/21_strings/operations.cc:  Likewise.
3078         * testsuite/21_strings/replace.cc:  Likewise.
3079         * testsuite/21_strings/rfind.cc:  Likewise.
3080         * testsuite/21_strings/substr.cc:  Likewise.
3081         * testsuite/22_locale/codecvt_char_char.cc:  Likewise.
3082         * testsuite/22_locale/codecvt_unicode_char.cc:  Likewise.
3083         * testsuite/22_locale/codecvt_unicode_wchar_t.cc:  Likewise.
3084         * testsuite/22_locale/codecvt_wchar_t_char.cc:  Likewise.
3085         * testsuite/22_locale/ctor_copy_dtor.cc:  Likewise.
3086         * testsuite/22_locale/ctype_char_members.cc:  Likewise.
3087         * testsuite/22_locale/ctype_wchar_t_members.cc:  Likewise.
3088         * testsuite/22_locale/facet.cc:  Likewise.
3089         * testsuite/22_locale/global_templates.cc:  Likewise.
3090         * testsuite/22_locale/members.cc:  Likewise.
3091         * testsuite/22_locale/numpunct_byname.cc:  Likewise.
3092         * testsuite/22_locale/numpunct_char_members.cc:  Likewise.
3093         * testsuite/22_locale/operators.cc:  Likewise.
3094         * testsuite/22_locale/static_members.cc:  Likewise.
3095         * testsuite/23_containers/bitset_ctor.cc:  Likewise.
3096         * testsuite/23_containers/bitset_members.cc:  Likewise.
3097         * testsuite/23_containers/bitset_shift.cc:  Likewise.
3098         * testsuite/23_containers/vector_capacity.cc:  Likewise.
3099         * testsuite/23_containers/vector_ctor.cc:  Likewise.
3100         * testsuite/23_containers/vector_element_access.cc:  Likewise.
3101         * testsuite/23_containers/vector_modifiers.cc:  Likewise.
3102         * testsuite/24_iterators/istreambuf_iterator.cc:  Likewise.
3103         * testsuite/24_iterators/iterator.cc:  Likewise.
3104         * testsuite/24_iterators/ostreambuf_iterator.cc:  Likewise.
3105         * testsuite/25_algorithms/binary_search.cc:  Likewise.
3106         * testsuite/25_algorithms/copy.cc:  Likewise.
3107         * testsuite/25_algorithms/heap.cc:  Likewise.
3108         * testsuite/25_algorithms/lower_bound.cc:  Likewise.
3109         * testsuite/25_algorithms/min_max.cc:  Likewise.
3110         * testsuite/25_algorithms/partition.cc:  Likewise.
3111         * testsuite/25_algorithms/rotate.cc:  Likewise.
3112         * testsuite/25_algorithms/sort.cc:  Likewise.
3113         * testsuite/26_numerics/c_math.cc:  Likewise.
3114         * testsuite/26_numerics/complex_inserters_extractors.cc:  Likewise.
3115         * testsuite/26_numerics/complex_value.cc:  Likewise.
3116         * testsuite/27_io/filebuf.cc:  Likewise.
3117         * testsuite/27_io/filebuf_members.cc:  Likewise.
3118         * testsuite/27_io/filebuf_virtuals.cc:  Likewise.
3119         * testsuite/27_io/fpos.cc:  Likewise.
3120         * testsuite/27_io/fstream_members.cc:  Likewise.
3121         * testsuite/27_io/ifstream_members.cc:  Likewise.
3122         * testsuite/27_io/ios_base_callbacks.cc:  Likewise.
3123         * testsuite/27_io/ios_base_members_static.cc:  Likewise.
3124         * testsuite/27_io/ios_base_storage.cc:  Likewise.
3125         * testsuite/27_io/ios_ctor.cc:  Likewise.
3126         * testsuite/27_io/ios_init.cc:  Likewise.
3127         * testsuite/27_io/ios_manip_basefield.cc:  Likewise.
3128         * testsuite/27_io/ios_manip_fmtflags.cc:  Likewise.
3129         * testsuite/27_io/ios_members.cc:  Likewise.
3130         * testsuite/27_io/istream_extractor_arith.cc:  Likewise.
3131         * testsuite/27_io/istream_extractor_char.cc:  Likewise.
3132         * testsuite/27_io/istream_extractor_other.cc:  Likewise.
3133         * testsuite/27_io/istream_manip.cc:  Likewise.
3134         * testsuite/27_io/istream_seeks.cc:  Likewise.
3135         * testsuite/27_io/istream_sentry.cc:  Likewise.
3136         * testsuite/27_io/istream_unformatted.cc:  Likewise.
3137         * testsuite/27_io/istringstream_members.cc:  Likewise.
3138         * testsuite/27_io/narrow_stream_objects.cc:  Likewise.
3139         * testsuite/27_io/ofstream_members.cc:  Likewise.
3140         * testsuite/27_io/ostream_inserter_arith.cc:  Likewise.
3141         * testsuite/27_io/ostream_inserter_char.cc:  Likewise.
3142         * testsuite/27_io/ostream_inserter_other.cc:  Likewise.
3143         * testsuite/27_io/ostream_manip.cc:  Likewise.
3144         * testsuite/27_io/ostream_seeks.cc:  Likewise.
3145         * testsuite/27_io/ostream_unformatted.cc:  Likewise.
3146         * testsuite/27_io/ostringstream_members.cc:  Likewise.
3147         * testsuite/27_io/streambuf.cc:  Likewise.
3148         * testsuite/27_io/stringbuf.cc:  Likewise.
3149         * testsuite/27_io/stringbuf_virtuals.cc:  Likewise.
3150         * testsuite/27_io/stringstream.cc:  Likewise.
3151         * testsuite/27_io/stringstream_members.cc:  Likewise.
3152         * testsuite/27_io/wide_stream_objects.cc:  Likewise.
3153
3154 2001-07-31  Loren J. Rittle  <ljrittle@acm.org>
3155
3156         * src/gen-num-limits.cc:  Use __LONG_LONG_MAX__.
3157
3158 2001-07-30  Benjamin Kosnik  <bkoz@redhat.com>
3159
3160         * configure.target: Remove mips from cpu table.
3161         * config/cpu/mips/bits/atomicity.h: Remove generic
3162         versions. Comment sgidefs include.
3163
3164 2001-07-25  H.J. Lu <hjl@gnu.org>
3165
3166         * configure.target (cpu_include_dir): Set to `config/cpu/mips'
3167         for mips.
3168
3169         * config/cpu/mips/bits/atomicity.h: New.
3170
3171 2001-07-25  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3172
3173         * acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf,
3174         hypotl, atan2f, atan2l.  Remove from REPLACE_MATHFUNCS list.
3175         * aclocal.m4: Regenerate.
3176         * config.h.in: Likewise.
3177         * configure: Likewise.
3178         * libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove hypotl.c
3179         (EXTRA_DIST): Remove hypot.c hypotf.c.
3180         * libmath/Makefile.am: Regenerate.
3181         * libmath/hypotf.c: Remove.
3182         * libmath/hypot.c: Likewise.
3183         * libmath/hypotl.c: Likewise.
3184         * libmath/stubs.c: The macros seen here are HAVE_xxx, not
3185         _GLIBCPP_HAVE_xxx.  Add long double versions.
3186
3187 2001-07-23  David Edelsohn  <edelsohn@gnu.org>
3188
3189         * include/bits/limits_generic.h (int): Set digits and digits10
3190         appropriately for word size.
3191         (unsigned int,long,unsigned long): Likewise.
3192
3193 2001-07-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
3194
3195         * include/bits/stl_algo.h : Fix typos.
3196         * testsuite/25_algorithms/unique.cc: New file.
3197
3198 2001-07-19  Phil Edwards  <pme@sources.redhat.com>
3199             Mark Mitchell <mark@codesourcery.com>
3200
3201         Merge from cp-parser-branch.
3202         * include/bits/basic_string.h:  Qualify symbols with 'template'.
3203         * include/bits/basic_string.tcc:  Likewise.
3204         * include/bits/fstream.tcc:  Likewise.
3205         * include/bits/istream.tcc:  Likewise.
3206         * include/bits/sstream.tcc:  Likewise.
3207         * include/bits/std_istream.h:  Likewise.
3208         * include/bits/stl_iterator.h:  Likewise.
3209         * include/bits/streambuf.tcc:  Likewise.
3210         * src/gen-num-limits.cc:  Add 'template<>' to specializations.
3211         * src/locale.cc:  Likewise.
3212
3213 2001-07-19  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3214             Bert De Knuydt <Bert.Deknuydt@esat.kuleuven.ac.be>
3215
3216         * src/gen-num-limits.cc (set_signals_handler): New function.
3217         Factor out signals setting.  Set signal handler for SIGILL.
3218
3219 2001-07-18  Phil Edwards  <pme@sources.redhat.com>
3220
3221         * docs/html/27_io/howto.html:  Fix typo.
3222         * docs/html/faq/index.html:  Minor updates for 3.0 all around.
3223         * docs/html/faq/index.txt:  Regenerated.
3224
3225 2001-07-18  Stephen M. Webb  <stephen@bregmasoft..com>
3226             Roman Sulzhyk  <roman_sulzhyk@yahoo.com>
3227
3228         libstdc++/3599
3229         * include/bits/ostream.tcc (ostream::put): Fixed error condition check.
3230         * testsuite/27_io/streambuf.cc (test07): Added new regression test.
3231
3232 2001-07-17  Stephen M. Webb   <stephen@bregmasoft.com>r
3233
3234         All occurrences of the __value_type() and __distance_type()
3235         functions, which were required to support the HP STL, have been
3236         removed along with all the auxiliary forwarding functions that
3237         were required to support their use.
3238
3239         The __iterator_category() function was pretty much left alone
3240         because there was no benefit to removing it and its use made code
3241         just a little more readable.
3242
3243         Incidences of distance() with nonstandard argument list were
3244         replaced by calls to the standard function (only in the files
3245         affected by the removal of the other HP functions).
3246
3247         The signature of the rotate() algorithm was changed to match the
3248         standard.
3249
3250         Headers were reformatted under C++STYLE guidelines (indentation,
3251         linebreaks, typename keyword).
3252
3253         * include/bits/stl_algo.h: replaced __value_type() and
3254         __distance_type() with iterator_traits, eliminated auxiliary
3255         support functions required to support said function usage.
3256         Changed nonstandard distance() call to standard call.
3257
3258         * include/bits/stl_algobase.h: Same.
3259         * include/bits/stl_heap.h: Same.
3260         * include/bits/stl_numeric.h: Same.
3261         * include/bits/stl_uninitialized.h: Same.
3262         * include/bits/stl_iterator_base_types.h (__value_type()):
3263         Removed.
3264         (__distance_type()): Removed.
3265         (value_type()): Gone.
3266         (distance_type()): Done in.
3267         (iterator_category()): Hasta la vista, baby.
3268
3269         * include/bits/stl_iterator_base_funcs.h (iterator_category()):
3270         Replaced with __iterator_category().
3271         * include/backward/iterator.h: moved definition of value_type(),
3272         distance_type(), and iterator_category() out of std:: and into
3273         here.
3274         * testsuite/23_containers/vector_ctor.cc (test03): New testcases.
3275         * testsuite/23_containers/vector_modifiers.cc (test03): New testcases.
3276         * testsuite/25_algorithms/rotate.cc: New testcase.
3277         * testsuite/25_algorithms/copy.cc: New testcase.
3278         * testsuite/25_algorithms/sort.cc: Same.
3279         * testsuite/25_algorithms/heap.cc: Same.
3280         * testsuite/25_algorithms/partition.cc: Same.
3281         * testsuite/25_algorithms/binary_search.cc: Same.
3282         * testsuite/26_numerics/sum_diff.cc: Ditto.
3283
3284 001-07-17  Benjamin Kosnik  <bkoz@redhat.com>
3285
3286         * testsuite/README: Add notes on naming test cases.
3287         * testsuite/22_locale/members.cc: Mark as xfail.
3288         * testsuite/22_locale/numpunct_char_members.cc: Same.
3289
3290 2001-07-16  Stephen M. Webb  <stephen@bregmasoft.com>
3291
3292         * acinclude.m4 (GLIBCPP_ENABLE_CHEADERS):  Use glibcpp_srcdir when
3293         setting C_INCLUDE_DIR.