OSDN Git Service

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