OSDN Git Service

2002-01-16 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
2             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
3
4         * include/bits/stl_iterator.h (reverse_iterator::_M_current):
5         Deuglify, should be current.
6         (back_insert_iterator::_M_container): Deuglify, should be container.
7         (front_insert_iterator::_M_container): Same.    
8         (insert_iterator::_M_container): Same.
9         * testsuite/24_iterators/reverse_iterator.cc: Add check.
10         * testsuite/24_iterators/back_insert_iterator.cc: Add check.    
11         * testsuite/24_iterators/front_insert_iterator.cc: Same.
12         * testsuite/24_iterators/insert_iterator.cc: Same.
13         
14 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
15
16         * include/bits/locale_facets.h (ctype<char>::classic_table): Make
17         static.
18         (ctype<char>::_M_ctable): Make static, change name to _S_ctable.
19         * config/os/gnu-linux/bits/ctype_noninline.h: Define _S_ctable.
20         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
21         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
22         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
23         * config/os/newlib/bits/ctype_noninline.h: Same.
24         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
25         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
26         * config/os/hpux/bits/ctype_noninline.h: Same.
27         * config/os/djgpp/bits/ctype_noninline.h: Same.
28         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
29         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
30         * config/os/aix/bits/ctype_noninline.h: Same.
31         
32         Testcase by Dietmar Kühl via Peter Schmid 
33         * testsuite/22_locale/ctype_members_char.cc (char>): Add test for
34         classic_table().
35
36 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
37
38         * libmath/signbitl.c: Copyright years as list, not range.       
39         * libmath/Makefile.am: Same.
40         * libmath/Makefie.in: Regenerate.
41         * libmath/signbit.c: Same.
42         * libmath/nan.c: Same.
43         * libmath/copysignf.c: Same.
44         * libmath/signbitf.c: Same.
45         * testsuite/22_locale/money_get_members_char.cc: Same.
46         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
47         * testsuite/22_locale/money_put_members_char.cc: Same.
48         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
49         * testsuite/22_locale/time_get_members_char.cc: Same.
50         * testsuite/22_locale/time_get_members_wchar_t.cc: Same.
51         * testsuite/22_locale/time_put_members_char.cc: Same.
52         * testsuite/22_locale/time_put_members_wchar_t.cc: Same.
53         * testsuite/21_strings/nonmember.cc: Same.
54         * testsuite/21_strings/compare.cc: Same.
55         * testsuite/27_io/stringstream.cc: Same.
56         * testsuite/27_io/stringbuf.cc: Same.
57         * testsuite/27_io/filebuf.cc: Same.
58         * testsuite/27_io/ios_manip_basefield.cc: Same.
59         * testsuite/27_io/ios_manip_fmtflags.cc: Same.
60         * include/bits/cpp_type_traits.h: Same.
61         * include/bits/generic_shadow.h: Same.
62         * include/bits/gslice_array.h: Same.
63         * include/bits/gslice.h: Same.
64         * include/bits/indirect_array.h: Same.
65         * include/bits/slice_array.h: Same.
66         * include/bits/sstream.tcc: Same.
67         * include/bits/streambuf_iterator.h: Same.
68         * include/bits/valarray_array.tcc: Same.
69         * include/bits/valarray_meta.h: Same.
70         * include/bits/valarray_array.h: Same.
71         * config/os/mingw32/bits/ctype_noninline.h: Same.
72         * config/os/mingw32/bits/ctype_base.h: Same.
73         * config/os/hpux/bits/ctype_noninline.h: Same.
74         * config/os/hpux/bits/ctype_base.h: Same.
75         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
76         * config/os/gnu-linux/bits/ctype_base.h: Same.
77         * config/os/generic/bits/ctype_noninline.h: Same.
78         * config/os/generic/bits/ctype_base.h: Same.
79
80         * libsupc++/tinfo.h: Tweaks.
81
82 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
83
84         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
85         * testsuite/22_locale/num_put_members_char.cc (test01): Tweak.
86         * testsuite/22_locale/ctype_members_char.cc: Tweak.     
87
88 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
89
90         * include/bits/locale_facets.tcc (num_put::do_put(bool): Fix.
91         (num_put::do_put(void*)): Fix.
92         * testsuite/22_locale/num_put_members_char.cc (test02): Add.
93         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Add.
94         * testsuite/22_locale/num_get_members_char.cc (test02): Add
95         long double, void, bool types.
96         * testsuite/22_locale/num_get_members_wchar_t.cc (test02): Add.
97         
98 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
99             Alexandre Oliva  <aoliva@redhat.com>
100
101         * libmath/Makefile.am (LINK): Add --tag CC.
102         * libmath/Makefile.in: Regenerate.
103
104 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
105
106         * config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
107         of character to attribute mapping table.
108
109 2002-01-15  David Billinghurst <David.Billinghurst@riotinto.com>
110
111         * testsuite/26_numerics/c99_classification_macros_c.cc
112         Remove dg-error and dg-excess-errors comments.
113
114 2002-01-14  Benjamin Kosnik  <bkoz@redhat.com>
115
116         * include/bits/locale_facets.tcc (time_put::put): Correct output
117         iterator positions.
118         * testsuite/22_locale/time_put_members_char.cc (test02): Add.
119         * testsuite/22_locale/time_put_members_wchar_t.cc (test02): Add.
120         * testsuite/22_locale/time_get_members_wchar_t.cc (test06): Add.
121         * testsuite/22_locale/time_get_members_char.cc (test06): Add.
122
123 2002-01-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
124
125         * docs/html/17_intro/porting-howto.xml: Update filebuf section.
126
127 2002-01-14  Paolo Carlini  <pcarlini@unitus.it>
128             Nathan Myers  <ncm@cantrip.org>
129
130         * include/bits/basic_string.h
131         (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
132         temporaries (i.e., call _M_replace_safe) when possible.
133         (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
134         (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
135         (replace(__i1, __i2, __str)): Call replace(__i1, __i2, __s, __n).
136         (replace(__i1, __i2, __s)): Call replace(__i1, __i2, __s, __n).
137         (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
138         * include/bits/basic_string.tcc
139         (replace(__pos1, __n1, __str, __pos2, __n2)): Call
140         replace(__pos, __n1, __s, __n2).
141         * testsuite/21_strings/replace.cc (test03): New testcases.
142
143         * include/bits/basic_string.h (insert(__pos, __s, __n)):
144         Adjust comparison wrt overflow.
145         
146 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
147
148         * include/Makefile.am (std_headers_rename): New variable.
149         (install-data-local): Use it.
150         * include/Makefile.in: Regenerate.
151         
152 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
153
154         * include/bits/locale_facets.tcc (money_put::do_put(string):
155         Correct output iterator value.
156         * testsuite/22_locale/money_put_members_char.cc (test03): Add.
157         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
158         
159 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
160
161         * include/Makefile.am, include/Makefile.in (stamp-std):  Fix typo from
162         previous commit.
163
164 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
165
166         * include/Makefile.am (std_headers):  Update list with new names.
167         (stamp-std):  Link to standardized name.
168         * include/Makefile.in:  Regenerate.
169
170         * include/std/algorithm, include/std/bitset, include/std/complex,
171         include/std/deque, include/std/fstream, include/std/functional,
172         include/std/iomanip, include/std/ios, include/std/iosfwd,
173         include/std/iostream, include/std/istream, include/std/iterator,
174         include/std/limits, include/std/list, include/std/locale,
175         include/std/map, include/std/memory, include/std/numeric,
176         include/std/ostream, include/std/queue, include/std/set,
177         include/std/sstream, include/std/stack, include/std/stdexcept,
178         include/std/streambuf, include/std/string, include/std/utility,
179         include/std/valarray, include/std/vector:  Rename to...
180
181         * include/std/std_algorithm.h, include/std/std_bitset.h,
182         include/std/std_complex.h, include/std/std_deque.h,
183         include/std/std_fstream.h, include/std/std_functional.h,
184         include/std/std_iomanip.h, include/std/std_ios.h,
185         include/std/std_iosfwd.h, include/std/std_iostream.h,
186         include/std/std_istream.h, include/std/std_iterator.h,
187         include/std/std_limits.h, include/std/std_list.h,
188         include/std/std_locale.h, include/std/std_map.h,
189         include/std/std_memory.h, include/std/std_numeric.h,
190         include/std/std_ostream.h, include/std/std_queue.h,
191         include/std/std_set.h, include/std/std_sstream.h,
192         include/std/std_stack.h, include/std/std_stdexcept.h,
193         include/std/std_streambuf.h, include/std/std_string.h,
194         include/std/std_utility.h, include/std/std_valarray.h,
195         include/std/std_vector.h:  ...this.
196
197 2002-01-11  Loren Rittle <ljrittle@acm.org>
198
199         * include/Makefile.am (extra_target_headers): New list of all
200         target files built with ad hoc naming rules.
201         (stamp-*): Handle LN_S failure in manner portable across make
202         implementations.
203         (install-data-local): Install header files from human-maintained
204         file lists and directory components instead of non-robust find.
205         * include/Makefile.in: Rebuilt.
206
207 2002-01-11  Benjamin Kosnik  <bkoz@redhat.com>
208
209         * include/bits/locale_facets.tcc (money_get::do_get(string)):
210         Check for zero-length negative sign before adding it to output
211         string.
212         (money_get::do_get(long double)): Return beg.
213         * testsuite/22_locale/money_get_members_char.cc (test02): Add
214         iterator checks.
215         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
216         
217 2002-01-10  David Seymour  <seymour_dj@yahoo.com>
218
219         libstdc++/5331
220         * include/bits/locale_facets.h (num_get<>): Return advanced iterator
221         for _M_extract_float and _M_extract_int
222         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
223         (num_get<>::_M_extract_int): Likewise, all callers changed
224         * testsuite/22_locale/num_get_members_char.cc: Testcase
225
226 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
227
228         * libsupc++/exception (bad_exception): Add comment.
229         * libsupc++/new (bad_alloc): Same.
230         * libsupc++/typeinfo (bad_cast, bad_typeid): Same.
231
232 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
233
234         libstdc++/3150: revert 2001-11-30 commit. DR266 only means
235         that the destructors should be removed from the descriptions
236         in the standard: writing them explicitly allows the vtable
237         heuristic to work. For additional information see:
238         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00090.html
239         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00110.html
240         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00155.html
241         * libsupc++/exception (bad_exception::~bad_exception()):
242         Reintroduce declaration.
243         * libsupc++/new (bad_alloc::~bad_alloc()): Same.
244         * libsupc++/typeinfo (bad_cast::~bad_cast()): Same.
245         (bad_typeid::~bad_typeid()): Same.
246         * libsupc++/eh_exception.cc (bad_exception::~bad_exception()):
247         Reintroduce definition.
248         * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
249         * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Same.
250         (bad_typeid::~bad_typeid()): Same.
251
252 2002-01-09  Benjamin Kosnik  <bkoz@redhat.com>
253
254         * include/Makefile.am (c_base_srcdir): Remove duplicate '/'.
255         * include/Makefile.in: Regenerate.
256         
257 2002-01-09  Bo Thorsen  <bo@suse.co.uk>
258
259         * config/cpu/x86-64/bits/cpu_limits.h (__glibcpp_long_bits): Add
260         definition.
261
262 2002-01-08  Benjamin Kosnik  <bkoz@redhat.com>
263
264         libstdc++/2913
265         libstdc++/4879
266         * include/bits/fstream.tcc (filebuf::_M_really_overflow): Test
267         return value of _M_file->sync().
268         (filebuf::showmanyc): Check for is_open.
269         * include/std/fstream (filebuf::sync): Tweak.
270         * testsuite/27_io/filebuf.cc: Tweak.
271
272 2002-01-08  John Fardo  <jfardo@laurelnetworks.com>
273             Brad Garcia  <garsh@attbi.com>
274         
275         * testsuite/27_io/filebuf_members.cc: Add test.
276         
277 2002-01-07  Benjamin Kosnik  <bkoz@redhat.com>
278             Craig Rodrigues  <rodrigc@mediaone.net>
279
280         libstdc++/5174
281         * po/Makefile.am (mkinstalldirs): Add.
282         * po/Makefile.in: Regenerate.
283
284 2002-01-07  David Billinghurst  <David.Billinghurst@riotinto.com>
285
286         * testsuite_flags.in: Add -fmessage-length=0 to CXXFLAGS *
287         testsuite/lib/prune.exp: Delete lines ":In function ..."  from
288         compiler output.
289         * testsuite/23_containers/map_operators.cc: Remove
290         dg-excess-errors comment.
291         * testsuite/23_containers/set_operators.cc: Likewise.
292
293 2002-01-06  Paolo Carlini  <pcarlini@unitus.it>
294
295         * include/bits/stl_function.h:  Remove two lines of comments;
296         adjust copyright years.
297
298 2002-01-04  Benjamin  Kosnik  <bkoz@redhat.com>
299
300         * include/Makefile.am (std_headers): Remove cXXX from list.
301         (c_base_srcdir): No bits subdirectory.
302         (c_base_builddir): Same.
303         (c_base_headers): Adjust names, add ciso646.
304         (bits_headers): Remove std_xxx.h headers.
305         * include/Makefile.in: Regenerate.
306         
307         * include/ext/iterator: Adjust includes.
308         * include/ext/ropeimpl.h: Same.
309         * include/ext/stl_hash_fun.h: Same.
310         * include/ext/algorithm: Same.
311         
312         * include/backward/bvector.h: Adjust includes.
313         * include/backward/vector.h: Same.
314         * include/backward/strstream: Same.
315         * include/backward/streambuf.h: Same.
316         * include/backward/stack.h: Same.
317         * include/backward/set.h: Same.
318         * include/backward/queue.h: Same.
319         * include/backward/multiset.h: Same.
320         * include/backward/multimap.h: Same.
321         * include/backward/map.h: Same.
322         * include/backward/list.h: Same.
323         * include/backward/iterator.h: Same.
324         * include/backward/iostream.h: Same.
325         * include/backward/iomanip.h: Same.
326         * include/backward/fstream.h: Same.
327         * include/backward/deque.h: Same.
328         * include/backward/complex.h: Same.
329
330         * include/bits/std_algorithm.h: Move to...
331         * include/std/algorithm: ...here.
332         * include/bits/std_iosfwd.h, std_locale.h, std_stack.h,
333         std_bitset.h, std_ios.h, std_map.h, std_stdexcept.h,
334         std_complex.h, std_iostream.h, std_memory.h, std_streambuf.h,
335         std_deque.h, std_istream.h, std_numeric.h, std_string.h,
336         std_fstream.h, std_ostream.h, std_utility.h, std_iterator.h,
337         std_queue.h, std_valarray.h, std_functional.h, std_limits.h,
338         std_set.h, std_vector.h, std_iomanip.h, std_list.h, std_sstream.h:
339         Same.
340         
341         * include/c_std/bits/std_cassert.h: Move to...
342         * include/c_std/cassert: Here.
343         * include/c_std/std_cctype.h, std_cerrno.h, std_cfloat.h,
344         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
345         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
346         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
347         std_cwctype.h: Same.
348         * include/c_std/cmath: Adjust cmath.tcc include.
349         * include/c_std/cstdlib: Adjust includes.
350         * include/c_std/cwchar: Same.
351         * include/c_std/ctime: Same.
352         * include/c_std/cstring: Same.
353         * include/c_std/cstdio: Same.
354         * include/c_std/bits: Remove directory.
355         
356         * include/c/bits/std_cassert.h: Move to...
357         * include/c/cassert: Here.
358         * include/c/std_cctype.h, std_cerrno.h, std_cfloat.h,
359         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
360         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
361         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
362         std_cwctype.h: Same.
363         * include/c/bits: Remove directory.
364         
365         * include/std/cwctype: Remove.
366         * include/std/cwchar: Remove.
367         * include/std/ctime: Remove.
368         * include/std/cstring: Remove.
369         * include/std/cstdlib: Remove.
370         * include/std/cstdio: Remove.
371         * include/std/cstddef: Remove.
372         * include/std/cstdarg: Remove.
373         * include/std/csignal: Remove.
374         * include/std/csetjmp: Remove.
375         * include/std/cmath: Remove.
376         * include/std/clocale: Remove.
377         * include/std/climits: Remove.
378         * include/std/ciso646: Remove.
379         * include/std/cfloat: Remove.
380         * include/std/cerrno: Remove.
381         * include/std/cctype: Remove.
382         * include/std/cassert: Remove.
383
384         * include/bits/fpos.h: Adjust includes, removing <bits/std_xxx.h>
385         files and subsituting <.xxx>
386         * include/bits/valarray_array.h: Same.
387         * include/bits/stl_uninitialized.h: Same.
388         * include/bits/stl_alloc.h: Same.
389         * include/bits/stl_algobase.h: Same.
390         * include/bits/sstream.tcc: Same.
391         * include/bits/pthread_allocimpl.h: Same.
392         * include/bits/ostream.tcc: Same.
393         * include/bits/localefwd.h: Same.
394         * include/bits/locale_facets.tcc: Same.
395         * include/bits/locale_facets.h: Same.
396         * include/bits/istream.tcc: Same.
397         * include/bits/char_traits.h: Same.
398         * include/bits/boost_concept_check.h: Same.
399         * include/bits/basic_file.h: Same.
400         * include/std/bitset: Same.
401         * include/std/complex: Same.
402         * include/std/fstream: Same.
403         * include/std/functional: Same.
404         * include/std/ios: Same.
405         * include/std/iostream: Same.
406         * include/std/ostream: Same.
407         * include/std/sstream: Same.
408         * include/std/streambuf: Same.
409         * include/std/string: Same.
410         * include/std/iterator: Same.
411         * include/std/valarray: Same.
412
413         * src/ios.cc: Adjust includes.
414         * src/valarray-inst.cc: Same.
415         * src/string-inst.cc: Same.
416         * src/stl-inst.cc: Same.
417         * src/stdexcept.cc: Same.
418         * src/misc-inst.cc: Same.
419         * src/localename.cc: Same.
420         * src/locale-inst.cc: Same.
421         * src/locale.cc: Same.
422         * src/limits.cc: Same.
423         * src/concept-inst.cc: Same.
424         * src/complex_io.cc: Same.
425         * src/codecvt.cc: Same.
426         * src/bitset.cc: Same.
427         * src/cmath.cc: Same.
428
429 2002-01-04  Paolo Carlini  <pcarlini@unitus.it>
430
431         * include/bits/stl_tree.h (rb_tree):  Move to...
432         * include/ext/rb_tree:  ...here, new file.
433         * include/Makefile.am (ext_headers):  Add new file.
434         * include/Makefile.in:  Regenerate.
435         * include/bits/stl_tempbuf.h (get_temporary_buffer + helper,
436         return_temporary_buffer, struct temporary_buffer):  Move to...
437         * include/ext/memory:  ...here.
438         * testsuite/ext/headers.cc:  Include <ext/rb_tree>.
439         * include/backward/tempbuf.h:  Include <ext/memory>, tweak.
440         * include/backward/tree.h:  Include <ext/rb_tree), tweak.
441
442 2002-01-03  Paolo Carlini  <pcarlini@unitus.it>
443
444         * include/bits/stl_numeric.h (power + helpers, iota):  Move to...
445         * include/ext/numeric:  ...here, new file.
446         * include/bits/stl_function.h (identity_element, unary_compose,
447         binary_compose, compose1, compose2, identity, select1st,
448         select2nd, project1st + helper, project2nd + helper,
449         constant_void_fun + helper, constant_unary_fun + helper,
450         costant_binary_fun + helper, constant0, constant1, constant2,
451         subtractive_rng, mem_fun1, mem_fun1_ref):  Move to...
452         * include/ext/functional:  ...here, new file.
453         * include/Makefile.am (ext_headers):  Add new files.
454         * include/Makefile.in:  Regenerate.
455         * testsuite/ext/headers.cc:  Include <ext/numeric> and
456         <ext/functional>.
457         * include/backward/algo.h:  Include <ext/numeric>, tweak.
458         * include/backward/function.h:  Include <ext/functional>, tweak.
459         * include/ext/ropeimpl.h:  Include <ext/numeric>.
460
461 2002-01-03  Jeffrey A Law  <law@redhat.com>
462
463         * config/os/hpux/bits/os_defines.h: Prefix __strtoll and
464         __strtoull declarations with __extension__.
465
466 2002-01-03  David Billinghurst <David.Billinghurst@riotinto.com>
467
468         * testsuite/lib/prune.exp: Correct regular expression for
469         -ffunction-sections
470
471 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
472
473         * include/bits/stl_algo.h (upper_bound, equal_range, binary_search):
474         Change concept checks, as with lower_bound and PR 2054.
475         * testsuite/ext/concept_checks.cc:  Expand test to include those.
476
477 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
478
479         * include/bits/boost_concept_check.h:  Import some changes from
480         upsteam (Boost) version.
481
482 2002-01-02  Paolo Carlini  <pcarlini@unitus.it>
483
484         * include/bits/stl_algobase.h (copy_n + helpers,
485         lexicographical_compare_3way + helpers):  Move to...
486         * include/ext/algorithm:  ...here.
487         * include/bits/stl_uninitialized.h (uninitialized_copy_n +
488         helpers):  Move to...
489         * include/ext/memory:  ...here, new file.
490         * include/Makefile.am (ext_headers):  Add new file.
491         * include/Makefile.in:  Regenerate.
492         * testsuite/ext/headers.cc:  Include <ext/memory>.
493         * include/backward/algobase.h:  Include <ext/memory> and
494         <ext/algorithm>, tweak.
495         * include/ext/ropeimpl.h:  Include <ext/memory>, tweak.
496         * include/ext/stl_rope.h:  Include <ext/memory>, tweak.
497
498 2002-01-01  Roger Sayle <roger@eyesopen.com>
499
500         * libmath/stubs.c (sinf,cosf): Implement stubs to enable the
501         equivalent ___builtin__ versions.
502
503         * include/c_shadow/bits/std_cmath.h: All __builtin math functions
504         are available in libstdc++ as the necessary stub implementations
505         are provided by libmath/stubs.c.
506
507 2002-01-01  Jason Thorpe  <thorpej@wasabisystems.com>
508
509         * configure.in: Add support for NetBSD cross compiles.
510         * configure: Regenerate.
511
512 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
513
514         * include/ext/iterator:  Add #include <bits/std_iterator.h>, tweak.
515         * testsuite/ext/headers.cc:  Add <ext/iterator>.
516
517 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
518
519         * include/backward/algo.h:  Add two more using declarations.
520         * include/backward/iterator.h:  Include <ext/iterator>,
521         add using declaration.
522         * include/ext/algorithm:  Add #pragma GCC system_header.
523
524 2001-12-31  Phil Edwards  <pme@gcc.gnu.org>
525
526         * include/bits/stl_bvector.h:  Change calls to 3-argument distance()
527         into standard 2-argument version.
528         * include/bits/stl_deque.h:  Likewise.
529         * include/bits/stl_tempbuf.h:  Likewise.
530         * include/bits/stl_tree.h:  Likewise.
531         * include/bits/stl_vector.h:  Likewise.
532         * include/ext/stl_hashtable.h:  Likewise.
533         * include/bits/stl_iterator_base_funcs.h:  Move distance() extension...
534         * include/ext/iterator:  to here.  New file.
535         * include/Makefile.am (ext_headers):  Add new file, alphabatize.
536         * include/Makefile.in:  Regenerate.
537
538 2001-12-31  Phil Edwards  <pme@gcc.gnu.org>
539
540         * include/bits/stl_deque.h:  Doxygenate with initial/example hooks.
541         Clean up spacing and indentation.
542
543 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
544
545         * include/ext/slist:  Move into __gnu_cxx,
546         tweak, add using declarations.
547
548 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
549
550         * include/ext/hash_map:  Move into __gnu_cxx,
551         tweak, add using declarations.
552         * include/ext/hash_set:  Ditto.
553         * include/ext/ropeimpl.h:  Ditto.
554         * include/ext/stl_hash_fun.h:  Ditto.
555         * include/ext/stl_hashtable.h:  Ditto.
556         * include/ext/stl_rope.h:  Ditto.
557         * src/ext-inst.cc: Tweak.
558         * testsuite/ext/rope.cc: Tweak.
559
560 2001-12-31  Paolo Carlini  <pcarlini@unitus.it>
561
562         * include/backward/algo.h:  Include <ext/algorithm>,
563         tweak using declarations.
564
565 2001-12-29  Richard Henderson  <rth@redhat.com>
566
567         * config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
568         * config/os/hpux/bits/cpu_limits.h: New file.
569         * configure.target (CPULIMITSH): Use it.
570
571 2001-12-28  Richard Henderson  <rth@redhat.com>
572
573         * config/cpu/ia64/bits/cpu_limits.h: New file.
574         * config/os/osf/osf5.0/bits/cpu_limits.h: New file.
575         * configure.target (CPULIMITSH): Use them.
576
577 2001-12-28  Phil Edwards  <pme@gcc.gnu.org>
578
579         * include/bits/c++config:  Move doxygen hook comment...
580         * docs/doxygen/doxygroups.cc:  ...to here.
581
582 2001-12-28  Phil Edwards  <pme@gcc.gnu.org>
583
584         PR libstdc++/2054
585         * include/bits/stl_algo.h (lower_bound):  Relax concept checks.
586         * testsuite/ext/concept_checks.cc:  New file.
587
588 2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
589
590         * include/bits/stl_algo.h (count returning void,
591         count_if returning void, __random_sample, random_sample,
592         random_sample_n, __is_heap, is_heap, is_sorted):  Move to...
593         * include/ext/algorithm:  ...here, new file.
594         * include/Makefile.am (ext_headers):  Add new file.
595         * include/Makefile.in:  Regenerate.
596         * testsuite/ext/headers.cc:  Include <ext/algorithm>.
597
598 2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
599             Nathan Myers  <ncm@cantrip.org>
600
601         * include/bits/basic_string.h (insert(__pos, __s, __n)):
602         Optimize by avoiding temporaries and working in-place when possible.
603         (insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
604         (insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
605         * testsuite/21_strings/insert.cc (test02): New testcases.
606
607 2001-12-27  Phil Edwards  <pme@gcc.gnu.org>
608
609         * testsuite/testsuite_hooks.h (gnu_counting_struct):  Add.
610         * testsuite/23_containers/deque_ctor.cc:  New file.
611
612 2001-12-27  Paolo Carlini  <pcarlini@unitus.it>
613
614         * include/bits/locale_facets.tcc (collate::do_transform):
615         Adjust implicit typename.
616         * config/locale/messages_members_generic.h (messages::open,
617         messages::do_open, messages::do_get): Adjust implicit typename.
618         * config/locale/messages_members_gnu.h (messages::open,
619         messages::do_open, messages::do_get): Adjust Implicit typename.
620         * config/locale/messages_members_ieee_1003.1-200x.h (messages::open,
621         messages::do_open, messages::do_get): Adjust implicit typename.
622
623 2001-12-27  Phil Edwards  <pme@gcc.gnu.org>
624
625         PR libstdc++/3829
626         * src/misc-inst.cc:  Many additional I/O-related instantiations.
627         * testsuite/27_io/instantiations.cc:  New file.
628
629 2001-12-26  Benjamin Kosnik  <bkoz@waller.constant.com>
630
631         * testsuite/24_iterators/insert_iterator.cc (test02): Add.
632         * testsuite/24_iterators/front_insert_iterator.cc (test02): Add.
633         * testsuite/24_iterators/back_insert_iterator.cc (test02): Add.
634         * testsuite/24_iterators/reverse_iterator.cc (test02): Add.
635
636         * include/bits/stl_iterator.h (reverse_iterator): Uglify member
637         current to _M_current.
638         (back_insert_iterator): Uglify member container to _M_container.
639         (front_insert_iterator): Same.
640         (insert_iterator): Same.
641
642 2001-12-25  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
643
644         * include/bits/std_limits.h (__glibcpp_xxx_is_modulo): New
645         macros for signed types; default value is true.
646         (numeric_limits<>::is_modulo): Get value from corresponding
647         __glibcpp_xxx_is_modulo macro.
648
649 2001-12-23  Jeffrey A Law  <law@redhat.com>
650
651         * config/os/hpux/bits/os_defines.h: Do not include <_sys/inttypes.h>.
652         Twiddle return types for strtoll and strtoull to avoid using
653         intmax_t and uintmax-t.
654
655 2001-12-22  Richard Henderson  <rth@redhat.com>
656
657         * configure.target (CPULIMITSH): Fix typo in alpha case.
658
659 2001-12-22  Jeffrey A Law  <law@redhat.com>
660
661         * config/os/hpux/bits/os_defines.h: Update to avoid #defines
662         for strtoll and strtoull.
663
664 2001-12-21  Jeffrey A Law  <law@redhat.com>
665
666         * config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h.
667         Define strtoll and strtoull.  Provide prototypes for
668         __strtoll and __strtoull.  Define _GLIBCPP_USE_LONG_LONG
669         unconditionally.
670
671         * src/locale-inst.cc: Include <bits/std_cstdlib.h>
672
673         * configure.target: Fix typo in hpux case.
674
675 2001-12-21  Paolo Carlini  <pcarlini@unitus.it>
676
677         * include/ext/stl_rope.h (_Rope_iterator):
678         Add local typedef to fix implicit typename problems.
679
680 2001-12-19  Phil Edwards  <pme@gcc.gnu.org>
681
682         * docs/doxygen/Intro.3:  New 'Allocators' module.
683         * docs/doxygen/TODO:  Update.
684         * docs/doxygen/doxygroups.cc:  Update.
685         * docs/doxygen/run_doxygen:  Update.
686
687         * include/bits/stl_alloc.h:  Tweak doxygen hooks in comments.
688         * include/bits/std_memory.h:  Doxygenate.
689         * include/bits/stl_iterator_base_types.h:  Likewise.
690         * include/bits/stl_raw_storage_iter.h:  Likewise.
691         * include/bits/stl_tempbuf.h:  Likewise.
692         (get_temporary_buffer):  Remove unused nonstandard overload.
693         * include/bits/stl_uninitialized.h:  Likewise.
694
695         * include/bits/stl_iterator_base_types.h (input_iterator,
696         output_iterator, forward_iterator, bidirectional_iterator,
697         random_access_iterator):  Move old names...
698         * include/backward/iterator.h:  ...to here.
699         * include/bits/stl_bvector.h:  Update.
700         * include/ext/stl_rope.h:  Update.
701
702 2001-12-19  Phil Edwards  <pme@gcc.gnu.org>
703
704         * docs/html/configopts.html:  Describe recent options.
705         * docs/html/documentation.html:  Point to new doxygen tarballs.
706         * docs/html/install.html:  Brief updates.
707         * docs/html/17_intro/RELEASE-NOTES:  Remove weird control character.
708         * docs/html/ext/howto.html:  Fix typos, describe filebuf::fd().
709         * docs/html/faq/index.html:  Update for 3.0.95.
710         * docs/html/faq/index.txt:  Regenerate.
711
712 2001-12-19  David Billinghurst <David.Billinghurst@riotinto.com>
713
714         libstdc++-v3/5148
715         * testsuite/lib/libstdc++-v3-dg.exp:  Append .exe to
716         executable filenames
717
718 2001-12-18  Benjamin Kosnik  <bkoz@redhat.com>
719
720         * docs/html/17_intro/TODO: Update.
721         * docs/html/17_intro/RELEASE-NOTES: Edits, update.
722         * README: Edit for clarity, update to reflect current directory
723         structure.
724
725 2001-12-18  Benjamin Kosnik  <bkoz@redhat.com>
726
727         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Extended checking before
728         enabling gnu model.
729         * aclocal.m4: Rebuild.
730         * configure: Rebuild.
731
732 2001-12-18  Paolo Carlini  <pcarlini@unitus.it>
733             Nathan Myers  <ncm@cantrip.org>
734
735         * include/bits/basic_string.h (assign(__str, __pos, __n)):
736         Call assign(__s, __n).
737         (assign(__s, __n)): Terminate the string with _S_terminal.
738
739 2001-12-17  Benjamin Kosnik  <bkoz@redhat.com>
740
741         * include/bits/std_limits.h (__glibcpp_long_double_is_bounded):
742         Set to true, like float and double.
743
744 2001-12-17  David Billinghurst <David.Billinghurst@riotinto.com>
745
746         libstdc++/5136
747         * testsuite/lib/prune.exp: New file
748         * testsuite/lib/libstdc++-v3-dg.exp: Use it
749
750 2001-12-17  Phil Edwards  <pme@gcc.gnu.org>
751
752         * include/bits/basic_file.h (__basic_file::fd):  New function.
753         * config/io/basic_file_stdio.h (__basic_file::fd):  Define.
754         * include/bits/std_fstream.h (basic_filebuf::fd):  New function.
755         * include/bits/fstream.tcc (basic_filebuf::fd):  Define.
756         * testsuite/27_io/filebuf_members.cc (test_02):  New test.
757
758 2001-12-16  Nathan Sidwell  <nathan@codesourcery.com>
759
760         * po/Makefile.am (.po.mo): Use POSIXLY_CORRECT argument ordering.
761         * po/Makefile.in: Regenerated.
762
763 2001-12-16  Paolo Carlini  <pcarlini@unitus.it>
764
765         * testsuite/21_strings/assign.cc (test01): Add tests.
766
767 2001-12-15  Paolo Carlini  <pcarlini@unitus.it>
768             Nathan Myers  <ncm@cantrip.org>
769
770         * include/bits/basic_string.h
771         (assign(__str, __pos, __n), assign(__s, __n)):  Optimize
772         by avoiding unnecessary temporaries.
773         (assign(__s)): Call assign(__s, __n).
774         * include/bits/basic_string.tcc (_M_replace_safe): Adjust comment.
775         * include/bits/std_string.h: include stl_function.h.
776         * testsuite/21_strings/assign.cc (test02, test03): New tests.
777
778 2001-12-15  Benjamin Kosnik  <bkoz@redhat.com>
779
780         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Enable gnu locale model
781         on linux by default.
782         * aclocal.m4: Regenerate.
783         * configure: Regenerate.
784
785 2001-12-14  Benjamin Kosnik  <bkoz@redhat.com>
786
787         Clean up initialization and simplfy caching of underlying "C"
788         default locale objects.
789         * src/localename.cc (locale::_Impl::_Impl(string, size_t):
790         Unconditionally create __clocale object for all named locales,
791         including "C" and "POSIX".
792         * config/locale/c_locale_generic.cc
793         (locale::facet::_S_create_c_locale): Always set __cloc to zero.
794         * config/locale/c_locale_gnu.cc: Always delete.
795         * include/bits/localefwd.h (locale::facet::_S_c_locale): New.
796         * src/locale.cc (locale::classic()): Initialize
797         locale::facet::_S_c_locale.
798         (locale::facet::_S_c_locale): Define.
799
800         * include/bits/locale_facets.h: Add ctype_byname<wchar_t> ctor
801         specialization.
802         * src/locale.cc: Add definition here.
803         * config/os/gnu-linux/bits/ctype_inline.h: Tweak.
804         * config/os/gnu-linux/bits/ctype_noninline.h: Adjust initializations.
805         * include/bits/locale_facets.h (ctype<char>::_M_c_locale_ctype): Add.
806         Adjust ctors, dtors.
807         (ctype<char>::_M_toupper): Remove const&.
808         (ctype<char>::_M_tolower): Remove const&.
809         (ctype<char>::_M_ctable): Remove const&.
810
811         * include/bits/locale_facets.h (collate): Clean up initialization
812         of _M_c_locale_collate in ctors and dtors.
813         * config/locale/collate_members_gnu.cc: Always use extended
814         functions.
815
816         * include/bits/locale_facets.h (messages): Clean up inits in ctor/dtor.
817         (messages_byname): Same.
818         * config/locale/messages_members_generic.h (messages::~messages):
819         Remove.
820         * config/locale/messages_members_gnu.h: Same.
821
822         * include/bits/localefwd.h: Clean. Move dtor definitions to
823         * src/locale.cc: Here.
824         * testsuite/22_locale/facet.cc: Fix spelling.
825
826         Named locale support for ctype<wchar_t>.
827         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add variable
828         ctype_members_* bits.
829         * aclocal.m4: Regenerate.
830         * configure: Regenerate.
831         * src/Makefile.am (sources): Add ctype.cc.
832         * src/Makefile.in: Regenerate.
833         * config/locale/ctype_members_generic.cc: New file.
834         * config/locale/ctype_members_gnu.cc: New file.
835         * src/locale.cc: Remove ctype<wchart_t> definitions.
836
837 2001-12-13  Roger Sayle <roger@eyesopen.com>
838
839         * acconfig.h: Test for __builtin_sqrt instead of
840         __builtin_fsqrt.
841         * acinclude.m4: Same.
842         * include/c_shadow/bits/std_cmath.h: Same.
843         * aclocal.m4: Regenerated.
844         * config.h.in: Regenerated.
845         * configure: Regenerated.
846
847 2001-12-13  Phil Edwards  <pme@gcc.gnu.org>
848
849         * docs/html/ext/howto.html:  Fix typos.
850
851 2001-12-13  Benjamin Kosnik  <bkoz@redhat.com>
852
853         libstdc++/3679
854         * src/locale.cc (locale::locale(const char*)): Deal with locales
855         named "".
856         * testsuite/22_locale/ctor_copy_dtor.cc (test01): Modify.
857
858 2001-12-12  Paolo Carlini  <pcarlini@unitus.it>
859
860         * include/ext/ropeimpl.h (rope::_S_leaf_concat_char_iter,
861         _S_destr_leaf_concat_char_iter, _S_tree_concat, _S_concat_char_iter,
862         _S_destr_concat_char_iter, _S_concat, _S_substring, _S_balance)
863         : Adjust implicit typename.
864         * include/ext/stl_rope.h (_Rope_iterator::operator=, rope::npos):
865         Adjust implicit typename.
866         * testsuite/27_io/streambuf.cc: Adjust implicit typename.
867
868 2001-12-12  Benjamin Kosnik  <bkoz@redhat.com>
869
870         Named locale support for ctype<char>.
871         * config/locale/c_locale_gnu.h (_GLIBCPP_C_LOCALE_GNU): New.
872         * config/os/gnu-linux/bits/ctype_noninline.h (ctype<char>): Add
873         definitions for alternate constructor.
874         * config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same.
875         * config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
876         * config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
877         * config/os/newlib/bits/ctype_noninline.h (ctype): Same.
878         * config/os/irix/irix6.5/bits/ctype_noninline.h (ctype): Same.
879         * config/os/irix/irix5.2/bits/ctype_noninline.h (ctype): Same.
880         * config/os/hpux/bits/ctype_noninline.h (ctype): Same.
881         * config/os/generic/bits/ctype_noninline.h (ctype): Same.
882         * config/os/djgpp/bits/ctype_noninline.h (ctype): Same.
883         * config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same.
884         * config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same.
885         * config/os/aix/bits/ctype_noninline.h (ctype): Same.
886         * include/bits/locale_facets.h (ctype<_CharT>): Remove dummy
887         definitions for all virtual functions. These are now explicitly
888         undefined for non-required factets, ie any non-char, non-wchar_t
889         instantiations.
890         * src/localename.cc (locale::_Impl::_Impl(string, size_t): Named
891         locales use alternate constructor for ctype facet.
892         * include/bits/locale_facets.h (ctype<char>::ctype(__c_locale, const
893         mask*, bool, size_t): Add.
894         (ctype<wchar_t>::ctype(__c_locale, size_t): Add.
895         * src/locale.cc (ctype<wchar_t>::ctype(__c_locale, size_t)): Add
896         definition.
897
898         * testsuite/22_locale/ctype_members_char.cc (test02): Add, mark
899         XFAIL for non-gnu locale models.
900
901 2001-12-12  Philip Martin  <philip@codematters.co.uk>
902             Ross Smith     <r-smith@ihug.co.nz>
903             Paolo Carlini  <pcarlini@unitus.it>
904
905         libstdc++/5045
906         * include/bits/std_limits.h (defines, numeric_limits<bool>::digits10):
907         Fix digits10 values for integral types.
908         * include/bits/locale_facets.tcc (num_get::do_get for integral types):
909         Tweak _M_extract_int call.
910         * testsuite/27_io/istream_extractor_arith.cc (test13, test12_aux):
911         Tweak overflowing number of digits.
912         * testsuite/18_support/numeric_limits.cc (test03): New testcase.
913
914 2001-12-11  Benjamin Kosnik  <bkoz@redhat.com>
915
916         * config/os/generic/bits/ctype_inline.h: Remove spaces.
917         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
918         * include/bits/locale_facets.h (__num_base): Move double data
919         members to first in class.
920         * include/bits/locale_facets.tcc: Re-arrange, tweak.
921         * src/locale.cc: Clean.
922         *include/bits/stl_vector.h: Space typedefs.
923
924 2001-12-11  Phil Edwards  <pme@gcc.gnu.org>
925
926         * testsuite/ext/allocators.cc:  New file.
927
928 2001-12-11  Jason Merrill  <jason@redhat.com>
929
930         * include/bits/locale_facets.tcc (_M_extract_int): Avoid
931         uninitialized warning.
932
933 2001-12-11  Loren Rittle <ljrittle@acm.org>
934
935         * config/cpu/sparc/sparc32/bits/atomicity.h
936         (__Atomicity_lock<0>::_S_atomicity_lock): Add.
937
938 2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
939
940         * include/bits/basic_string.tcc (_M_replace_safe):  Fix typos.
941         * include/bits/basic_string.h:  Fix typos.
942
943 2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
944             Nathan Myers  <ncm@cantrip.org>
945
946         * include/bits/basic_string.tcc (_M_replace_safe):  New function.
947         (_M_replace(input_iterator_tag), append members):  Use it.
948         (_M_replace(forward_iterator_tag)):  Remove.
949         * include/bits/basic_string.h:  Adjust declarations.
950         * src/string-inst.cc:  Adjust declarations.
951
952 2001-12-09  Benjamin Kosnik  <bkoz@redhat.com>
953             Philip Martin <pmartin@uklinux.net>
954
955         * include/bits/locale_facets.h (__num_base::_S_scale_hex): Add.
956         (__num_base::_S_scale_oct): Add.
957         * include/bits/locale_facets.tcc (_M_extract_int): Use them.
958         * src/locale.cc: Add definitions.
959         * testsuite/27_io/istream_extractor_arith.cc (main): Call test13.
960
961         * testsuite/testsuite_hooks.h: Remove duplicate VERIFY define.
962
963 2001-12-07  Nathan Myers  <ncm@cantrip.org>
964             Loren Rittle <ljrittle@acm.org>
965
966         libstdc++/5037
967         * config/cpu/sparc/sparc32/bits/atomicity.h
968         (struct __Atomicity_lock<__inst>): Add.
969         (__Atomicity_lock<__inst>::_S_atomicity_lock): Add.
970         (__exchange_and_add): Use __Atomicity_lock<0>::_S_atomicity_lock
971         instead of lock local to static function.
972         (__atomic_add): Likewise.
973
974 2001-12-07  Phil Edwards  <pme@gcc.gnu.org>
975
976         * src/globals.cc:  Remove __GTHREADS guard.
977
978 2001-12-07  Paolo Carlini  <pcarlini@unitus.it>
979
980         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
981         Extend comment, reduce __cs_size for non-fixed outputs.
982
983 2001-12-07  Paolo Carlini  <pcarlini@unitus.it>
984
985         * include/bits/basic_string.tcc (_M_mutate): Fix typo
986         in the previous check in.
987
988 2001-12-06  Paolo Carlini  <pcarlini@unitus.it>
989             Loren J. Rittle <ljrittle@acm.org>
990
991         * include/bits/basic_string.tcc (_M_mutate, _M_clone): Implement
992         exponential growth policy to meet linear amortized time
993         requirements of the standard.
994         (_S_create): Adjust comment.
995
996 2001-12-06  Benjamin Kosnik  <bkoz@redhat.com>
997
998         libstdc++/3720
999         * include/bits/locale_facets.tcc (num_put): Clean.
1000         (num_get::_M_extract_float): Change argument to string.
1001         (num_get::do_get(float)): Fixup.
1002         (num_get::do_get(double)): Same.
1003         (num_get::do_get(long double)): Same.
1004         (num_get::_M_extract_int): Add maximum length parameter, __max.
1005         (num_get::_M_extract_float): Correct zeros, use string.
1006         * include/bits/locale_facets.h (num_get::_M_extract_float): Change
1007         declaration here.
1008         * src/locale.cc (__num_base::_S_atoms): Remove x, X.
1009         * testsuite/27_io/istream_extractor_arith.cc (test13): Add.
1010
1011 2001-12-06  Philip Martin  <pmartin@uklinux.net>
1012
1013         * testsuite/27_io/istream_extractor_arith.cc (test12): Add
1014         tests for excess input digits.
1015
1016 2001-12-06  Phil Edwards  <pme@gcc.gnu.org>
1017
1018         * include/bits/std_bitset.h:  Use GLIBCPP in multiple-inclusion guard.
1019         * include/bits/stl_algo.h:  Likewise.
1020         * include/bits/stl_algobase.h:  Likewise.
1021         * include/bits/stl_bvector.h:  Likewise.
1022         * include/bits/stl_deque.h:  Likewise.
1023         * include/bits/stl_function.h:  Likewise.
1024         * include/bits/stl_iterator.h:  Likewise.
1025         * include/bits/stl_iterator_base_funcs.h:  Likewise.
1026         * include/bits/stl_iterator_base_types.h:  Likewise.
1027         * include/bits/stl_list.h:  Likewise.
1028         * include/bits/stl_multimap.h:  Likewise.
1029         * include/bits/stl_multiset.h:  Likewise.
1030         * include/bits/stl_pair.h:  Likewise.
1031         * include/bits/stl_queue.h:  Likewise.
1032         * include/bits/stl_set.h:  Likewise.
1033         * include/bits/stl_stack.h:  Likewise.
1034         * include/bits/stl_tempbuf.h:  Likewise.
1035         * include/bits/stl_tree.h:  Likewise.
1036         * include/bits/stl_vector.h:  Likewise.
1037
1038         * include/bits/stl_alloc.h:  Use our own multiple inclusion guards.
1039         Doxygenate more comments.  Correct historical artifacts in comments.
1040         (alloc, single_alloc):  Uglify non-standard names.
1041         (__default_alloc_template::_NFREELISTS):  Calculate from other
1042         parameters.
1043         (__default_alloc_template::_S_free_list):  Remove SunPro workaround.
1044         (__default_alloc_template::_Lock):  Mark as "unused".
1045         * include/backward/alloc.h:  Update.
1046         * include/bits/stl_bvector.h:  Likewise.
1047         * include/ext/ropeimpl.h:  Likewise.
1048         * include/ext/stl_hashtable.h:  Likewise.
1049
1050 2001-12-05  Benjamin Kosnik  <bkoz@redhat.com>
1051
1052         DR/282
1053         * include/bits/locale_facets.tcc (num_put::_M_widen_float): Add
1054         grouping to floating point types.
1055         * testsuite/27_io/ostream_inserter_arith.cc (test02): Add test.
1056
1057 2001-12-04  Paolo Carlini <pcarlini@unitus.it>
1058
1059         libstdc++/4402
1060         * testsuite/27_io/ostream_inserter_arith.cc (test02): Add testcase
1061         from the PR.
1062         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
1063         Deal properly with long ios_base::fixed floats.
1064         (num_put::_M_widen_float): use
1065         __len in __builtin_alloca call.
1066
1067 2001-12-04  Benjamin Kosnik  <bkoz@redhat.com>
1068
1069         * src/Makefile.am (sources): Add ext-inst.cc.
1070         * src/Makefile.in: Regenerate.
1071         * src/ext-inst.cc: New file.
1072         * include/bits/stl_threads.h: Format.
1073         * src/globals.cc: Add instantiation for _S_swap_lock.
1074
1075         * testsuite/18_support/numeric_limits.cc: Add numeric_limits<B>
1076         instantiation.
1077
1078 2001-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1079
1080         * testsuite/22_locale/numpunct_members_wchar_t.cc: Only compile
1081         and execute test01 if _GLIBCPP_USE_WCHAR_T is defined.
1082         * testsuite/26_numerics/complex_inserters_extractors.cc: Provide
1083         for explicit instantiation of class std::basic_string<char,
1084         gnu_char_traits, std::allocator<char> >.
1085
1086 2001-12-03  Benjamin Kosnik  <bkoz@redhat.com>
1087
1088         * testsuite/22_locale/collate.cc: Compile-only.
1089         * testsuite/22_locale/time_get.cc: Same.
1090         * testsuite/22_locale/time_put.cc: Same.
1091         * testsuite/22_locale/numpunct.cc: Same.
1092         * testsuite/22_locale/num_put.cc: Same.
1093         * testsuite/22_locale/num_get.cc: Same.
1094         * testsuite/22_locale/moneypunct.cc: Same.
1095         * testsuite/22_locale/money_get.cc: Same.
1096         * testsuite/22_locale/messages.cc: Same.
1097         * testsuite/22_locale/ctype.cc: Same.
1098
1099 2001-12-03  Benjamin Kosnik  <bkoz@redhat.com>
1100
1101         * src/string-inst.cc (string::_Rep::_S_terminal): Add static data
1102         member instantiations.
1103
1104 2001-12-03  Steve Ellcey  <sje@cup.hp.com>
1105
1106         * libstdc++-v3/configure.in: Add support for hpux cross compiles,
1107         combine common linux/hpux/generic cross compile support to reduce
1108         redundent lines.
1109         * libstdc++-v3/configure: Regenerate.
1110
1111 2001-12-03  Loren J. Rittle  <ljrittle@acm.org>
1112
1113         * docs/html/ext/howto.html: Update commentary.
1114         * include/bits/c++config: Update threading configuration comment.
1115         (__STL_GTHREADS): Remove macro definition.
1116         (__STL_THREADS): Likewise.
1117         * include/bits/stl_threads.h: Leave only the configuration
1118         path which had been guarded by __STL_GTHREADS.  Remove all
1119         guards related to __STL_GTHREADS, __STL_SGI_THREADS,
1120         __STL_PTHREADS, __STL_UITHREADS and __STL_WIN32THREADS.
1121         * include/bits/stl_alloc.h: Leave only the configuration path
1122         which had been guarded by __STL_THREADS.  Remove configuration
1123         path and guards for __STL_SGI_THREADS.
1124         (__NODE_ALLOCATOR_THREADS): Remove macro definition.  Unroll its use.
1125         (__NODE_ALLOCATOR_LOCK): Likewise.
1126         (__NODE_ALLOCATOR_UNLOCK): Likewise.
1127         (_NOTHREADS): Remove guards related to macro.
1128         * include/ext/stl_rope.h: Remove configuration path and guards
1129         for __STL_SGI_THREADS.
1130         * src/stl-inst.cc: Remove use of __NODE_ALLOCATOR_THREADS.
1131
1132 2001-12-02  Phil Edwards  <pme@gcc.gnu.org>
1133
1134         * docs/html/ext/howto.html:  Update list of implemented DRs.
1135         * docs/html/ext/lwg-active.html:  Import R20 from upstream.
1136         * docs/html/ext/lwg-defects.html:  Import R20 from upstream.
1137
1138 2001-11-30  Benjamin Kosnik  <bkoz@redhat.com>
1139
1140         libstdc++/3150
1141         DR/266
1142         * libsupc++/exception (bad_exception::~bad_exception()): Remove
1143         declaration.
1144         * libsupc++/new (bad_alloc::~bad_alloc()): Remove.
1145         * libsupc++/typeinfo (bad_cast::~bad_cast()): Remove.
1146         (bad_typeid::~bad_typeid()): Remove.
1147         * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Remove definition.
1148         (bad_typeid::~bad_typeid()): Same.
1149         * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
1150         * libsupc++/eh_exception.cc (bad_exception::~bad_exception()): Same.
1151
1152         * include/bits/std_iomanip.h: Tweak.
1153
1154 2001-11-29  Paolo Carlini  <pcarlini@unitus.it>
1155
1156         libstdc++/3655
1157         * include/bits/locale_facets.tcc (__pad): Add bool parameter to
1158         correctly pad internal-adjusted const char*-type objects.
1159         * include/bits/locale_facts.tcc (num_put::_M_insert): Update call.
1160         * include/bits/ostream.tcc (operator<<(_CharT , char, const
1161         _CharT*, const char*, const basic_string&): Update calls.
1162         * src/locale-inst.tcc: Update declarations.
1163         * testsuite/27_io/ostream_inserter_arith.cc (test04): Add test.
1164
1165 2001-11-29  Phil Edwards  <pme@gcc.gnu.org>
1166
1167         * docs/html/ext/howto.html:  Finish allocator notes (inst and 3.0).
1168
1169 2001-11-29  Benjamin Kosnik  <bkoz@redhat.com>
1170
1171         * include/bits/locale_facets.tcc (num_get::do_get(long double)):
1172         Fix __traits_type typo.
1173
1174 2001-11-28  Paolo Carlini  <pcarlini@unitus.it>
1175
1176         * include/bits/locale_facets.tcc (__pad): Correctly pad
1177         internal-adjusted hex numbers.
1178         * testsuite/27_io/ostream_inserter_arith.cc: Add testcase.
1179
1180 2001-11-28  Paolo Carlini <pcarlini@unitus.it>
1181             Loren J. Rittle <ljrittle@acm.org>
1182
1183         * include/bits/basic_string.h
1184         (basic_string::_Rep::__default_excess, _S_excess_slop):
1185         Unused, remove.
1186         * include/bits/basic_string.tcc: Remove dead code.
1187         * include/bits/c++config: Remove comment.
1188
1189 2001-11-28  Benjamin Kosnik  <bkoz@redhat.com>
1190             Jakub Jelinek  <jakub@redhat.com>
1191
1192         * config/locale/moneypunct_members_gnu.cc
1193         (moneypunct<wchar_t>::_M_initialize_moneypunct): Correctly cast
1194         for ia64, others.
1195         * config/locale/numpunct_members_gnu.cc
1196         (numpunct<wchar_t>::_M_initialize_numpunct): Same.
1197
1198 2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>
1199
1200         * include/bits/locale_facets.tcc: Formatting tweaks.
1201
1202         * testsuite/23_containers/map_operators.cc: Don't xfail.
1203         * testsuite/23_containers/set_operators.cc: Same.
1204         * testsuite/backward/header_iterator_h.cc: Pass in -Wno-deprecated.
1205         * testsuite/backward/header_deque_h.cc: Same.
1206
1207 2001-11-27  Loren J. Rittle  <ljrittle@acm.org>
1208             Paolo Carlini  <pcarlini@unitus.it>
1209
1210         * include/bits/basic_string.tcc (basic_string::_Rep::_S_create):
1211         Enforce allocation size blocking policy to reduce
1212         fragmentation and enhance performance with common malloc
1213         implementations.
1214
1215 2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>
1216
1217         Numeric facets cleanup.
1218         * include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
1219         + and - signs.
1220         (__num_base::_M_zero): Add
1221         (__num_base::_M_e): Add.
1222         (__num_base::_M_E): Add.
1223         * include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
1224         (num_get::_M_extract_float): New.
1225         (num_get::_M_extract_int): New.
1226         * src/locale.cc (num_get::_M_extract): Remove.
1227
1228         * include/bits/locale_facets.tcc (num_put::_M_insert_float):
1229         Simplify, use _M_insert.
1230         (num_put::do_put(bool)): Simplify, remove __pad.
1231         (__pad): Remove.
1232         (__pad_output): Change to __pad.
1233         * include/bits/ostream.tcc: And here.
1234         * src/locale-inst: Remove instantiations.
1235
1236         * include/bits/locale_facets.h: Move helper functions in to class
1237         num_put.
1238         (num_put::_M_insert_float): Same, for __output_integer.
1239         (num_put::_M_insert_int): Same, for __output_float.
1240         (num_put::_M_insert): New.
1241         (__num_base): Add.
1242         (__num_base::_S_format_float): Move
1243         __build_float_format into class __num_base.
1244         (__num_base::_S_format_int): Move __build_int_format into class
1245         __num_base.
1246         * include/bits/locale_facets.tcc (__group_digits): Change to
1247         (__add_grouping): This.
1248         * src/locale-inst.cc: And here. Tweak instantiations.
1249         * src/misc-inst.cc: Remove instantiations.
1250
1251         * include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
1252         for new calling conventions, move to...
1253         * include/bits/locale_facets.tcc (__pad_output): Here. Adjust
1254         signature to make it useful for both ostream and num_put.
1255         (__pad_numeric): Remove.
1256         * src/misc-inst.cc: Remove instantiations.
1257         * src/locale-inst.cc: Same.
1258
1259         * include/bits/locale_facets.h (_Numeric_get): Remove.
1260         (_Numeric_put): Remove.
1261         (num_get::get(short)): Remove.
1262         (num_get::get(int)): Remove.
1263         (num_get::do_get(short)): Remove.
1264         (num_get::do_get(int)): Remove.
1265         * include/bits/istream.tcc (istream::operator>>(short)): Fix as
1266         per DR 118.
1267         (istream::operator>>(int)): Same.
1268
1269         * include/bits/locale_facets.h (_Format_cache): Remove.
1270         * include/bits/locale_facets.tcc: Same.
1271         * src/locale.cc: Same.
1272         * src/locale-inst.cc: Same.
1273         * include/bits/ostream.tcc: Same.
1274         * src/ios.cc (ios_base::imbue): Remove here as well.
1275
1276         * testsuite/22_locale/num_get.cc: New file.
1277         * testsuite/22_locale/num_get_members_char.cc: New file.
1278         * testsuite/22_locale/num_get_members_wchar_t.cc: New.
1279         * testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
1280         * testsuite/22_locale/num_put.cc: New file.
1281         * testsuite/22_locale/num_put_members_char.cc: New file.
1282         * testsuite/22_locale/num_put_members_wchar_t.cc: New file.
1283         * testsuite/27_io/ostream_inserter_arith.cc: Fix.
1284         * testsuite/27_io/istream_extractor_arith.cc: Fix.
1285
1286 2001-11-27  Phil Edwards  <pme@gcc.gnu.org>
1287
1288         * docs/html/explanations.html:  New section, empty for now.
1289         * docs/html/17_intro/howto.html:  Cleanup.  Move unrelated link...
1290         * docs/html/23_containers/howto.html:  ...to here.  Break up and
1291         rewrap threading discussion to emphasize warning.  Move malloc text...
1292         * docs/html/ext/howto.html:  ...to here.  New section.  Describe
1293         allocators and __USE_MALLOC effects.
1294         * docs/html/ext/sgiexts.html:  Mention their code.
1295
1296 2001-11-24  Joseph S. Myers  <jsm28@cam.ac.uk>
1297
1298         * docs/doxygen/maint.cfg.in, docs/doxygen/user.cfg.in,
1299         docs/html/27_io/binary_iostreams_kuehl.txt: Revert previous
1300         changes.
1301
1302 2001-11-23  Phil Edwards  <pme@gcc.gnu.org>
1303
1304         * Makefile.am (doxygen-maint):  The script isn't executable in CVS.
1305         * Makefile.in:  Regenerated.
1306         * docs/doxygen/TODO:  New file listing doxygen work to be done.
1307         * docs/doxygen/run_doxygen:  Fix up man pages.
1308         * docs/doxygen/user.cfg.in:  Insert maint-only toggles.
1309         * docs/doxygen/maint.cfg.in:  Copy from user.cfg and turn toggles on.
1310         * include/bits/stl_construct.h:  Use new hooks for internal functions.
1311
1312         * docs/html/17_intro/TODO:  Small updates.
1313         * docs/html/faq/index.html:  Likewise.
1314         * docs/html/faq/index.txt:  Regenerated.
1315
1316         * include/bits/stl_alloc.h:  Doxygenate, reindent comments, remove
1317         SGI-isms and wrappers.
1318         (simple_alloc, debug_alloc):  Uglify class names.
1319         (__default_alloc_template):  Uglify "threads" template parameter and
1320         update corresponding macros.
1321         * include/backward/alloc.h:  Bring up to date.
1322
1323 2001-11-23  Jason Merrill  <jason@redhat.com>
1324
1325         * src/vterminate.cc (__verbose_terminate_handler): Add leading
1326         underscores.
1327
1328 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1329
1330         * ChangeLog, docs/doxygen/maint.cfg.in, docs/doxygen/user.cfg.in,
1331         docs/doxygen/doxygroups.cc, docs/doxygen/Intro.3,
1332         docs/html/17_intro/BUGS, docs/html/17_intro/C++STYLE,
1333         docs/html/17_intro/CHECKLIST, docs/html/17_intro/DESIGN,
1334         docs/html/17_intro/howto.html, docs/html/17_intro/porting.html,
1335         docs/html/17_intro/porting.texi, docs/html/18_support/howto.html,
1336         docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
1337         docs/html/21_strings/howto.html,
1338         docs/html/23_containers/howto.html,
1339         docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
1340         docs/html/27_io/binary_iostreams_kuehl.txt,
1341         docs/html/ext/sgiexts.html, docs/html/faq/index.html,
1342         docs/html/faq/index.txt, testsuite/24_iterators/iterator.cc,
1343         include/bits/basic_file.h, include/bits/locale_facets.h,
1344         include/bits/locale_facets.tcc, include/bits/std_sstream.h,
1345         include/ext/ropeimpl.h, include/ext/stl_rope.h,
1346         libsupc++/tinfo.cc, libsupc++/cxxabi.h, libsupc++/typeinfo,
1347         libsupc++/eh_throw.cc, acinclude.m4, aclocal.m4, configure,
1348         configure.target, ChangeLog-2000: Fix spelling errors.
1349
1350         * config/locale/moneypunct_members_gnu.cc,
1351         include/bits/locale_facets.h: Fix spelling errors.
1352
1353 2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>
1354
1355         * testsuite/23_containers/list_capacity.cc: New file.
1356         * testsuite/23_containers/list_ctor.cc: New file.
1357         * testsuite/23_containers/list_modifiers.cc: New file.
1358         * testsuite/23_containers/list_operators.cc: New file.
1359
1360 2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>
1361
1362         * include/bits/stl_list.h: Reformatted according to C++STYLE rules.
1363         (size): Replaced nonstandard distance() call with the standard one.
1364         (transfer): Uglified to _M_transfer.
1365
1366 2001-11-21  Paolo Carlini  <pcarlini@unitus.it>
1367
1368         PR libstdc++/4548
1369         * include/bits/basic_string.tcc (basic_string::reserve):  Never shrink
1370         below the current size.
1371         * testsuite/21_strings/capacity.cc (test02):  Add test.
1372
1373 2001-11-19  Phil Edwards  <pme@gcc.gnu.org>
1374
1375         * docs/doxygen/Intro.3:  More notes.
1376         * docs/doxygen/style.css:  Update to default style from Doxygen 1.2.10.
1377         * include/bits/stl_algobase.h:  Add doxygen hooks for functions.
1378         * include/ext/hash_map:  Add @file hook.
1379         * include/ext/hash_set:  Likewise.
1380         * include/ext/rope:  Likewise.
1381         * include/ext/ropeimpl.h:  Likewise.
1382         * include/ext/slist:  Likewise.
1383         * include/ext/stl_hash_fun.h:  Likewise.
1384         * include/ext/stl_hashtable.h:  Likewise.
1385         * include/ext/stl_rope.h:  Likewise.
1386
1387         * docs/html/17_intro/license.html:  Remove "experimental" sentence.
1388         * docs/html/19_diagnostics/howto.html:  Document new verbose
1389         terminate handler.
1390         * testsuite/27_io/filebuf.cc:  Fix comment, move tweakable parameter
1391         to more visible (closer to description) position.
1392
1393         * libsupc++/eh_type.cc:  Formatting tweak.
1394         * libsupc++/exception:  Likewise.
1395         * src/vterminate.cc:  Likewise.
1396
1397         * docs/html/17_intro/porting.html:  Regenerate.
1398         * docs/html/faq/index.txt:  Regenerate.
1399
1400 2001-11-18  Jason Merrill  <jason@redhat.com>
1401
1402         * libsupc++/eh_personality.cc (__cxa_call_unexpected): Take void*.
1403         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
1404         * libsupc++/unwind-cxx.h: Adjust.
1405         * src/Makefile.am (strstream.o): Pass -Wno-deprecated.
1406
1407         * libsupc++/eh_type.cc (__cxa_current_exception_type): New file.
1408         * libsupc++/cxxabi.h: Declare it.
1409         * libsupc++/Makefile.am (sources): Add it.
1410         * src/vterminate.cc (verbose_terminate_handler): New file.
1411         * libsupc++/exception: Declare it.
1412         * src/Makefile.am (sources): Add it.
1413
1414         * src/Makefile.am (VPATH): Check the src directory before the top one.
1415
1416 2001-11-16  Paolo Carlini  <pcarlini@unitus.it>
1417
1418         * include/bits/stl_deque.h (deque::erase()):  Fix memory leak.
1419
1420 2001-11-16  Loren J. Rittle  <ljrittle@acm.org>
1421
1422         * docs/html/17_intro/howto.html (Thread-safety): Rename
1423         section to ``The Standard C++ library and multithreading'' and
1424         update information based on recent mailing list traffic.  Move
1425         all discussion of __USE_MALLOC to...
1426         * docs/html/23_containers/howto.html (Containers and multithreading):
1427         ...here and rework it based on recent mailing list traffic.
1428
1429 2001-11-15  Loren J. Rittle  <ljrittle@acm.org>
1430
1431         * docs/html/faq/index.html (Is libstdc++-v3 thread-safe?): Clarify
1432         wording.
1433
1434 2001-11-15  <bjornw@planetarion.com>
1435             Loren J. Rittle  <ljrittle@acm.org>
1436
1437         libstc++/4219
1438         * include/bits/stl_alloc.h (alloc): Update to use __mem_interface.
1439         (single_client_alloc): Likewise.
1440
1441 2001-11-08  Danny Smith  <dannysmith@users.sourceforge.net>
1442
1443         * configure.target: Add os_include_dir for mingw32* target.
1444         * docs/html/17_intro/porting.texi: Mention mingw32 as target benefiting
1445         from _GLIBCPP_AVOID_FSEEK.
1446         * config/os/mingw32/bits/ctype_base.h: New file.
1447         * config/os/mingw32/bits/ctype_inline.h: New file.
1448         * config/os/mingw32/bits/ctype_noninline.h: New file.
1449         * config/os/mingw32/bits/os_defines.h: New file.
1450
1451 2001-11-07  Nathan Myers  <ncm@cantrip.org>
1452
1453         * docs/html/faq/index.html (5.8):  New entry on ABIs.
1454         * docs/html/faq/index.txt:  Regenerate.
1455
1456 2001-11-07  Phil Edwards  <pme@gcc.gnu.org>
1457
1458         * docs/html/faq/index.html:  Explain libsupc++, mention 'long long'
1459         bugfixes on Solaris.
1460         * docs/html/faq/index.txt:  Regenerate.
1461
1462 2001-11-06  Phil Edwards  <pme@gcc.gnu.org>
1463
1464         * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG):  Run the test in
1465         LANG_CPLUSPLUS mode.
1466         * aclocal.m4:  Regenerate.
1467         * configure:  Regenerate.
1468
1469 2001-11-05  Phil Edwards  <pme@gcc.gnu.org>
1470
1471         * porting.texi:  Move...
1472         * docs/html/17_intro/porting.texi:  ...to here.
1473         * docs/html/Makefile:  Add rule to rebuild...
1474         * docs/html/17_intro/porting.html:  ...this.  New file.
1475
1476 2001-11-05  Felix Natter  <fnatter@gmx.net>
1477
1478         * docs/html/17_intro/porting-howto.xml:  check in v0.9.4
1479         * docs/html/17_intro/porting-howto.html:  regenerate
1480
1481 2001-11-02  Loren J. Rittle  <ljrittle@acm.org>
1482
1483         * include/bits/stl_threads.h (_Atomic_swap): Only enable path
1484         when platform supports __GTHREAD_MUTEX_INIT.
1485
1486 2001-11-02  Phil Edwards  <pme@gcc.gnu.org>
1487
1488         * acconfig.h:  Update comments.
1489         * acinclude.m4 (GLIBCPP_ENABLE_C99):  Move strtoll, strtoull tests...
1490         (GLIBCPP_ENABLE_LONG_LONG):  ...to here.  Don't check enable_c99.
1491         * aclocal.m4:  Regenerate.
1492         * config.h.in:  Regenerate.
1493         * configure:  Regenerate.
1494
1495         * include/bits/boost_concept_check.h:  Unconditionally compile uses
1496         of 'long long' which require only compiler support, not C lib support.
1497         * include/bits/cpp_type_traits.h:  Likewise.
1498         * include/bits/std_limits.h:  Likewise.
1499         * include/bits/type_traits.h:  Likewise.
1500         * src/concept-inst.cc:  Likewise.
1501         * src/limits.cc:  Likewise.
1502         * include/c_shadow/stdlib.h:  Compile conditionally on _GLIBCPP_USE_C99
1503         instead of _GLIBCPP_USE_LONG_LONG.
1504         * include/c_shadow/bits/std_cstdlib.h:  Likewise.
1505
1506 2001-11-02  Phil Edwards  <pme@gcc.gnu.org>
1507
1508         * config/io/c_io_stdio.h:  Correct grammar in comments.
1509         * docs/doxygen/Intro.3:  Expand "top-level" man page.
1510         * docs/doxygen/doxygroups.cc:  New module definitions (comments).
1511         * docs/doxygen/mainpage.doxy:  Tweaks.
1512         * docs/doxygen/run_doxygen:  Update Doxygen version, massage man pages.
1513
1514         Add @file hooks so that headers are considered to be documented.
1515         * include/bits/basic_ios.h, include/bits/basic_file.h,
1516         include/bits/basic_string.h, include/bits/boost_concept_check.h,
1517         include/bits/char_traits.h, include/bits/codecvt.h,
1518         include/bits/concept_check.h, include/bits/cpp_type_traits.h,
1519         include/bits/fpos.h, include/bits/gslice.h, include/bits/gslice_array.h,
1520         include/bits/indirect_array.h, include/bits/ios_base.h,
1521         include/bits/locale_facets.h, include/bits/localefwd.h,
1522         include/bits/mask_array.h, include/bits/pthread_allocimpl.h,
1523         include/bits/slice.h, include/bits/slice_array.h,
1524         include/bits/std_algorithm.h, include/bits/std_bitset.h,
1525         include/bits/std_complex.h, include/bits/std_deque.h,
1526         include/bits/std_fstream.h, include/bits/std_functional.h,
1527         include/bits/std_iomanip.h, include/bits/std_ios.h,
1528         include/bits/std_iosfwd.h, include/bits/std_iostream.h,
1529         include/bits/std_istream.h, include/bits/std_iterator.h,
1530         include/bits/std_limits.h, include/bits/std_list.h,
1531         include/bits/std_locale.h, include/bits/std_map.h,
1532         include/bits/std_memory.h, include/bits/std_numeric.h,
1533         include/bits/std_ostream.h, include/bits/std_queue.h,
1534         include/bits/std_set.h, include/bits/std_sstream.h,
1535         include/bits/std_stack.h, include/bits/std_streambuf.h,
1536         include/bits/std_string.h, include/bits/std_utility.h,
1537         include/bits/std_valarray.h, include/bits/std_vector.h,
1538         include/bits/stl_algo.h, include/bits/stl_alloc.h,
1539         include/bits/stl_bvector.h, include/bits/stl_construct.h,
1540         include/bits/stl_deque.h, include/bits/stl_heap.h,
1541         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1542         include/bits/stl_iterator_base_types.h, include/bits/stl_list.h,
1543         include/bits/stl_map.h, include/bits/stl_multimap.h,
1544         include/bits/stl_multiset.h, include/bits/stl_numeric.h,
1545         include/bits/stl_pair.h, include/bits/stl_pthread_alloc.h,
1546         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1547         include/bits/stl_relops.h, include/bits/stl_set.h,
1548         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1549         include/bits/stl_threads.h, include/bits/stl_tree.h,
1550         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1551         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
1552         include/bits/stringfwd.h, include/bits/type_traits.h,
1553         include/bits/valarray_array.h, include/bits/valarray_meta.h:
1554         Add hooks, tweak comments only.
1555
1556         * include/bits/stl_algobase.h (swap, min, iter_swap):  Also
1557         document these functions.
1558         * include/bits/stl_function.h:  Tweak link comments.
1559
1560 2001-11-01  Paolo Carlini  <pcarlini@unitus.it>
1561             Benjamin Kosnik  <bkoz@redhat.com>
1562
1563         * testsuite/27_io/ios_manip_fmtflags.cc: Fix for non-interactive
1564         output.
1565         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Fix.
1566
1567 2001-11-01  Egor Duda  <deo@logos-m.ru>
1568
1569         * config/os/newlib/bits/ctype_noninline.h
1570         (ctype<char>::do_toupper(char __c)): Check for proper character class.
1571         (ctype<char>::do_tolower(char __c)): Ditto.
1572
1573 2001-11-01  Phil Edwards  <pme@gcc.gnu.org>
1574
1575         * acinclude.m4:  Fix spacing.
1576         (GLIBCPP_ENABLE_CONCEPT_CHECKS):  New macro.
1577         * configure.in:  Call here.
1578         * acconfig.h:  Add _GLIBCPP_CONCEPT_CHECKS.
1579         * include/bits/boost_concept_check.h:  Fix headers.
1580         (__function_requires):  Make inline.
1581         * include/bits/c++config (_GLIBCPP_CONCEPT_CHECKS):  Remove.
1582         * aclocal.m4:  Regenerate.
1583         * config.h.in:  Regenerate.
1584         * configure:  Regenerate.
1585
1586         Move trailing ';' inside macro, PR libstdc++/3666.
1587         * include/bits/concept_check.h:  Add semicolon.
1588         * include/bits/stl_algo.h:  Remove semicolon.
1589         * include/bits/stl_algobase.h:  Likewise.
1590         * include/bits/stl_deque.h:  Likewise.
1591         * include/bits/stl_heap.h:  Likewise.
1592         * include/bits/stl_iterator_base_funcs.h:  Likewise.
1593         * include/bits/stl_list.h:  Likewise.
1594         * include/bits/stl_map.h:  Likewise.
1595         * include/bits/stl_multimap.h:  Likewise.
1596         * include/bits/stl_multiset.h:  Likewise.
1597         * include/bits/stl_numeric.h:  Likewise.
1598         * include/bits/stl_queue.h:  Likewise.
1599         * include/bits/stl_set.h:  Likewise.
1600         * include/bits/stl_stack.h:  Likewise.
1601         * include/bits/stl_vector.h:  Likewise.
1602         * include/ext/hash_map:  Likewise.
1603         * include/ext/hash_set:  Likewise.
1604         * include/ext/slist:  Likewise.
1605
1606         * src/concept-inst.cc:  New file with explicit instantiations.
1607         * src/Makefile.am (sources):  Add here, with special build rules.
1608         * src/Makefile.in:  Regenerate.
1609
1610 2001-11-01  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1611
1612         * include/bits/std_complex.h (_Norm_helper): New class template.
1613         (norm): Tweak.
1614         (abs): Tweak. Fix Thinko.
1615
1616 2001-10-31  Benjamin Kosnik  <bkoz@redhat.com>
1617
1618         libstdc++/4749
1619         * include/bits/codecvt.h: Add virtual member function declarations.
1620         * src/codecvt.cc: Tweaks.
1621         * testsuite/22_locale/codecvt.cc: Test compilation only,
1622         non-required facets not required to have linkage.
1623
1624 2001-10-31  Edward E. Meyer  <edward.e.meyer@boeing.com>
1625
1626         libstdc++/4622
1627         * include/bits/std_complex.h (complex::operator/=): Correct sign.
1628
1629 2001-10-30  Paolo Carlini  <pcarlini@unitus.it>
1630             Benjamin Kosnik  <bkoz@redhat.com>
1631
1632         libstdc++/4354
1633         * include/bits/basic_string.h: Tweaks.
1634         * include/bits/basic_string.tcc (string::_M_replace(iterator,
1635         iterator, _ForwardIter, _ForwardIter, forward_iterator_tag): Fix.
1636         * src/string-inst.cc: Tweaks, add instantiation.
1637         * testsuite/21_strings/replace.cc (test02): Add test.
1638         * testsuite/21_strings/assign.cc (test01): New file.
1639
1640 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
1641
1642         * include/bits/stl_deque.h (_M_new_elements_at_front): Use
1643         __throw_exception_again.
1644         (_M_new_elements_at_back): Likewise.
1645
1646 2001-10-29  Benjamin Kosnik  <bkoz@redhat.com>
1647
1648         libstdc++/3647
1649         * include/bits/fstream.tcc (filebuf::showmanyc): Simplify.
1650         * testsuite/27_io/filebuf.cc (test07): New test.
1651         (test03): Modify showmanyc test.
1652
1653 2001-10-26  Benjamin Kosnik  <bkoz@redhat.com>
1654
1655         libstdc++/4503
1656         * config/locale/codecvt_specializations_ieee_1003.1-200x.h
1657         (__enc_traits::~__enc_traits): Fix.
1658         (__enc_traits::_M_init): Add error checking.
1659
1660 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
1661
1662         libstdc++/4542
1663         * include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.
1664
1665 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
1666
1667         libstdc++/4545
1668         * include/bits/ostream.tcc (ostream::operator<<(streambuf*)): Fix
1669         exceptions.
1670         * include/bits/istream.tcc (istream::operator>>(streambuf*): Make
1671         consistent, where possible.
1672         * include/bits/streambuf.tcc: Tweak.
1673
1674 2001-10-25  Brendan Kehoe  <brendan@zen.org>
1675
1676         libstdc++/4536
1677         * bits/ostream.tcc (seekp): Scope use as ios_base::failbit.
1678         * bits/istream.tcc (seekg): Likewise.
1679
1680 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
1681             Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1682             Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1683
1684         * config/os/gnu-linux/bits/os_defines.h: Set to 64 bit longs with
1685         __s390x__ only.
1686         * include/bits/std_limits.h: Fix wchar_t issues.
1687         * config/os/aix/bits/os_defines.h: Fix.
1688
1689 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
1690
1691         * include/bits/locale_facets.tcc (collate::do_transform): Fix.
1692
1693 2001-10-25  Phil Edwards  <pme@gcc.gnu.org>
1694
1695         * docs/html/documentation.html:  Fix typo.
1696
1697 2001-10-23  Benjamin Kosnik  <bkoz@redhat.com>
1698
1699         Make -fno-exceptions work.
1700         * config/locale/c_locale_gnu.cc: Use functexcept.
1701         * include/bits/c++config (__stl_assert): Remove.
1702         (__STL_USE_EXCEPTIONS): Same.
1703         (__STL_TRY): Same.
1704         (__STL_CATCH_ALL): Same.
1705         (__STL_THROW): Same.
1706         (__STL_RETHROW): Same.
1707         (__STL_NOTHROW): Same.
1708         (__STL_UNWIND): Same.
1709         * include/bits/pthread_allocimpl.h: Fix.
1710         * include/bits/std_bitset.h: Same.
1711         * include/bits/std_list.h: Same.
1712         * include/bits/std_memory.h: Same.
1713         * include/bits/std_queue.h: Same.
1714         * include/bits/stl_alloc.h: Same.
1715         * include/bits/stl_deque.h: Same.
1716         * include/bits/stl_list.h: Same.
1717         * include/bits/stl_queue.h: Same.
1718         * include/bits/stl_tempbuf.h: Same.
1719         * include/bits/stl_tree.h: Same.
1720         * include/bits/stl_uninitialized.h: Same.
1721         * include/bits/stl_vector.h: Same.
1722         * include/ext/ropeimpl.h: Same.
1723         * include/ext/slist: Same.
1724         * include/ext/stl_hashtable.h: Same.
1725         * include/ext/stl_rope.h: Same.
1726         * libsupc++/new_op.cc: Include cstdlib.
1727         * libsupc++/eh_personality.cc: Add exception_defines include. Use
1728         __throw_exception_again, tweak.
1729         * libsupc++/eh_aux_runtime.cc: Include stdlib for abort.
1730         * libsupc++/vec.cc: Tweak.
1731         * src/functexcept.cc: Remove unused arguments.
1732         * testsuite/23_containers/bitset_members.cc: Tweak.
1733
1734 2001-10-22  Benjamin Kosnik  <bkoz@redhat.com>
1735
1736         * config/cpu/i386/bits/limits.h: Move to...
1737         * config/cpu/i386/bits/cpu_limits.h: ...here.
1738         * config/cpu/cris/bits/cpu_limits.h: Same.
1739         * config/cpu/powerpc/bits/cpu_limits.h: Same.
1740         * config/cpu/x86-64/bits/cpu_limits.h: Same.
1741         * config/cpu/alpha/bits/cpu_limits.h: New.
1742         * config/cpu/m68k/bits/cpu_limits.h: New.
1743         * config/cpu/s390/bits/cpu_limits.h: New.
1744         * config/os/aix/bits/os_defines.h: Tweaks.
1745         * config/os/bsd/freebsd/bits/os_defines.h: Same.
1746         * config/os/bsd/netbsd/bits/os_defines.h: Same.
1747         * config/os/djgpp/bits/os_defines.h: Same.
1748         * config/os/generic/bits/os_defines.h: Same.
1749         * config/os/gnu-linux/bits/os_defines.h: Same.
1750         * config/os/hpux/bits/os_defines.h: Same.
1751         * config/os/irix/irix5.2/bits/os_defines.h: Same.
1752         * config/os/irix/irix6.5/bits/os_defines.h: Same.
1753         * config/os/newlib/bits/os_defines.h: Same.
1754         * config/os/solaris/solaris2.5/bits/os_defines.h: Same.
1755         * config/os/solaris/solaris2.6/bits/os_defines.h: Same.
1756         * config/os/solaris/solaris2.7/bits/os_defines.h: Same.
1757
1758         * include/bits/c++config: Remove include.
1759         * include/bits/limits_generic.h: Remove.
1760         * include/bits/std_limits.h: Include cpu_limits.h.
1761         * include/Makefile.am: Fixup.
1762         * src/limits.cc: Tweak.
1763         * src/limits_generic.cc: Remove.
1764         * src/gen-num-limits.cc: Remove.
1765         * mknumeric_limits: Remove.
1766
1767 2001-10-20  Brendan Kehoe  <brendan@zen.org>
1768
1769         * bits/type_traits.h (_Bool): Removed this type.
1770         (__true_type, __false_type): Change to be plain structs.
1771         * src/string-inst.cc (__destroy_aux): Change third parm to be
1772         __false_type instead of _Bool<false>.
1773         * src/misc-inst.cc (__uninitialized_fill_n_aux,
1774         __uninitialized_copy_aux): Likewise.
1775
1776 2001-10-19  Benjamin Kosnik  <bkoz@redhat.com>
1777
1778         * mkcheck.in (static_fail): Remove older memory limit functionality.
1779         Disable E_TIME due to formatting issues.
1780
1781         * README: Update.
1782
1783 2001-10-19  Brendan Kehoe  <brendan@zen.org>
1784
1785         * include/bits/std_complex.h: Default initialize second argument
1786         of polar to 0, as specified in Library DR #79
1787
1788 2001-10-19  Brendan Kehoe  <brendan@zen.org>
1789
1790         * include/bits/stl_raw_storage_iter.h (operator=): Fix to call
1791         _Construct instead of construct.
1792
1793 2001-10-19  Brendan Kehoe  <brendan@zen.org>
1794
1795         * include/bits/basic_string.tcc (find_first_not_of): Take out check for
1796         __n being non-zero, since the standard does not mandate that.
1797         e.g., a search for "" in "" should yield position 0, not npos.
1798         (find_last_not_of): Likewise.
1799
1800 2001-10-19  Brendan Kehoe  <brendan@zen.org>
1801
1802         * include/bits/stl_bvector.h (vector<bool>::_M_range_check): Fix
1803         to throw out_of_range, not range_error, thus sayeth $23.1.1.13.
1804
1805 2001-10-19  Brendan Kehoe  <brendan@zen.org>
1806
1807         * include/bits/stl_iterator.h (reverse_iterator::current): Rename
1808         member from _M_current, and change all uses; thus sayeth $24.4.1.1.
1809
1810 2001-10-19  Brendan Kehoe  <brendan@zen.org>
1811
1812         * include/bits/stl_algo.h (partial_sort): Add missing `>' on the
1813         template parameter _ValueType.
1814
1815 2001-10-19  Brendan Kehoe  <brendan@zen.org>
1816
1817         * include/bits/std_limits.h: Clean up extra semicolons.
1818         * include/bits/locale_facets.h: Likewise.
1819         * include/bits/type_traits.h: Likewise.
1820
1821 2001-10-19  Brendan Kehoe  <brendan@zen.org>
1822
1823         * include/bits/localefwd.h (locale::combine): Add const for lib DR 14.
1824         * include/bits/locale_facets.tcc (locale::combine): Likewise.
1825
1826 2001-10-19  Benjamin Kosnik  <bkoz@redhat.com>
1827
1828         * include/bits/locale_facets.h (__timepunct::_M_put_helper):
1829         Declare specializations for char, wchar_t.
1830
1831 2001-10-19  Andreas Jaeger  <aj@suse.de>
1832
1833         * config/cpu/x86-64/bits/limits.h: New file.
1834         * config/cpu/x86-64/bits/atomicity.h: New file.
1835         * configure.target: Add x86-64.
1836
1837 2001-10-17  Phil Edwards  <pme@gcc.gnu.org>
1838
1839         * docs/html/17_intro/howto.html:  Remove 1999 links (and explain
1840         why).  Add link to recent message.
1841         * docs/html/faq/index.html (5.6):  Reformat text only; fixup <pre>
1842         markup.
1843         * docs/html/faq/index.txt:  Regenerate.
1844
1845 2001-10-12  Loren J. Rittle  <ljrittle@acm.org>
1846
1847         * docs/html/faq/index.html (Is libstdc++-v3 thread-safe?): Update
1848         based on Nathan's review.  Use Nathan's words.
1849
1850 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
1851
1852         * docs/html/configopts.html: Quote StyleSheet attribute values.
1853         * docs/html/documentation.html: Likewise.
1854         * docs/html/explanations.html: Likewise.
1855         * docs/html/install.html: Likewise.
1856         * docs/html/17_intro/howto.html: Likewise.
1857         * docs/html/17_intro/license.html: Likewise.
1858         * docs/html/18_support/howto.html: Likewise.
1859         * docs/html/19_diagnostics/howto.html: Likewise.
1860         * docs/html/20_util/howto.html: Likewise.
1861         * docs/html/21_strings/howto.html: Likewise.
1862         * docs/html/22_locale/howto.html: Likewise.
1863         * docs/html/23_containers/howto.html: Likewise.
1864         * docs/html/24_iterators/howto.html: Likewise.
1865         * docs/html/25_algorithms/howto.html: Likewise.
1866         * docs/html/26_numerics/howto.html: Likewise.
1867         * docs/html/27_io/howto.html: Likewise.
1868         * docs/html/ext/howto.html: Likewise.
1869         * docs/html/ext/sgiexts.html: Likewise.
1870         * docs/html/faq/index.html: Likewise.
1871
1872 2001-10-11  Loren J. Rittle  <ljrittle@acm.org>
1873
1874         * docs/html/faq/index.html (Is libstdc++-v3 thread-safe?): Rewrite.
1875         * docs/html/23_containers/howto.html (Containers and multithreading):
1876         Update.
1877
1878 2001-10-09  Phil Edwards  <pme@gcc.gnu.org>
1879
1880         * docs/html/17_intro/howto.html:  Tweak markup and value type.
1881         * docs/html/27_io/howto.html:  Tweak markup, describe setbuf() for
1882         nonzero arguments, add new note on threading.
1883         * docs/html/faq/index.html:  Update.
1884         * docs/html/faq/index.txt:  Regenerate.
1885
1886 2001-10-09  Phil Edwards  <pme@gcc.gnu.org>
1887
1888         * docs/html/configopts.html:  More HTML->XHTML and lowercasing of tags.
1889         * docs/html/documentation.html:  Likewise.
1890         * docs/html/explanations.html:  Likewise.
1891         * docs/html/install.html:  Likewise.
1892         * docs/html/17_intro/howto.html:  Likewise.
1893         * docs/html/17_intro/license.html:  Likewise.  Tighten up language.
1894         * docs/html/18_support/howto.html:  Likewise.
1895         * docs/html/19_diagnostics/howto.html:  Likewise.
1896         * docs/html/20_util/howto.html:  Likewise.
1897         * docs/html/21_strings/howto.html:  Likewise.
1898         * docs/html/22_locale/howto.html:  Likewise.
1899         * docs/html/23_containers/howto.html:  Likewise.
1900         * docs/html/24_iterators/howto.html:  Likewise.
1901         * docs/html/25_algorithms/howto.html:  Likewise.
1902         * docs/html/26_numerics/howto.html:  Likewise.
1903         * docs/html/27_io/howto.html:  Likewise.
1904         * docs/html/ext/howto.html:  Likewise.
1905         * docs/html/ext/sgiexts.html:  Likewise.
1906         * docs/html/faq/index.html:  Likewise.  Not so many absolute links.
1907         * docs/html/faq/index.txt:  Regenerate.
1908
1909 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1910
1911         * docs/html/22_locale/locale.html, docs/html/faq/index.html: Fix
1912         spelling errors of "separate" as "seperate", and corresponding
1913         spelling errors of related words.
1914         * docs/html/faq/index.txt: Regenerate.
1915
1916 2001-10-05  Phil Edwards  <pme@gcc.gnu.org>
1917
1918         * config/cpu/alpha/bits/atomicity.h (__compare_and_swap):  Remove
1919         unused function.
1920         * config/cpu/arm/bits/atomicity.h:  Likewise.
1921         * config/cpu/generic/bits/atomicity.h:  Likewise.
1922         * config/cpu/i486/bits/atomicity.h:  Likewise.
1923         * config/cpu/ia64/bits/atomicity.h:  Likewise.
1924         * config/cpu/mips/bits/atomicity.h:  Likewise.
1925         * config/cpu/powerpc/bits/atomicity.h:  Likewise.
1926         * config/cpu/sparc/sparc32/bits/atomicity.h:  Likewise.
1927         * config/cpu/sparc/sparc64/bits/atomicity.h:  Likewise.
1928
1929 2001-10-04  Phil Edwards  <pme@gcc.gnu.org>
1930
1931         * docs/html/faq/index.html:  Describe DR #22, and a workaround.
1932         * docs/html/faq/index.txt:  Regenerate.
1933
1934 2001-10-04  Phil Edwards  <pme@gcc.gnu.org>
1935
1936         * docs/html/17_intro/COPYING.DOC:  New file, GFDL v1.1 from the FSF.
1937         * docs/html/17_intro/license.html:  New file.  Explain the licenses
1938         in use.
1939
1940         * docs/html/configopts.html:  Link to license.html.
1941         * docs/html/documentation.html:  Likewise.
1942         * docs/html/explanations.html:  Likewise.
1943         * docs/html/install.html:  Likewise.
1944         * docs/html/17_intro/howto.html:  Likewise.
1945         * docs/html/18_support/howto.html:  Likewise.
1946         * docs/html/19_diagnostics/howto.html:  Likewise.
1947         * docs/html/20_util/howto.html:  Likewise.
1948         * docs/html/21_strings/howto.html:  Likewise.
1949         * docs/html/22_locale/howto.html:  Likewise.
1950         * docs/html/23_containers/howto.html:  Likewise.
1951         * docs/html/24_iterators/howto.html:  Likewise.
1952         * docs/html/25_algorithms/howto.html:  Likewise.
1953         * docs/html/26_numerics/howto.html:  Likewise.
1954         * docs/html/27_io/howto.html:  Likewise.
1955         * docs/html/ext/howto.html:  Likewise.
1956         * docs/html/ext/sgiexts.html:  Likewise.
1957         * docs/html/faq/index.html:  Likewise.  New question, linking to
1958         the new license.html.
1959
1960 2001-10-04  Phil Edwards  <pme@gcc.gnu.org>
1961
1962         * docs/html/17_intro/howto.html:  Fix mis-sed in header from 20010917.
1963         * docs/html/18_support/howto.html:  Likewise.
1964         * docs/html/19_diagnostics/howto.html:  Likewise.
1965         * docs/html/20_util/howto.html:  Likewise.
1966         * docs/html/21_strings/howto.html:  Likewise.
1967         * docs/html/22_locale/howto.html:  Likewise.
1968         * docs/html/23_containers/howto.html:  Likewise.
1969         * docs/html/24_iterators/howto.html:  Likewise.
1970         * docs/html/25_algorithms/howto.html:  Likewise.
1971         * docs/html/26_numerics/howto.html:  Likewise.
1972         * docs/html/27_io/howto.html:  Likewise.
1973         * docs/html/ext/howto.html:  Likewise.
1974         * docs/html/faq/index.html:  Likewise.  Spacing fix.
1975
1976 2001-10-03  Dimitris Vyzovitis  <vyzo@media.mit.edu>
1977
1978         * include/bits/stl_threads.h (_Atomic_swap): New function.
1979         (_Swap_lock_struct<__dummy>::_S_swap_lock): New data.
1980         * testsuite/ext/rope.cc: New file.
1981
1982 2001-10-02  Benjamin Kosnik  <bkoz@redhat.com>
1983
1984         * config/locale/time_members_gnu.h: Remove.
1985         * config/locale/time_members_generic.h: Remove.
1986         * config/locale/time_members_gnu.cc (__timepunct::_M_put_helper): Add.
1987         * config/locale/time_members_generic.cc: Same.
1988         * include/bits/locale_facets.h: Add data members.
1989         (__timepunct::_M_put_helper): Change signature.
1990         (__timepunct::_M_date_formats): Same.
1991         (__timepunct::_M_time_formats): Same.
1992         (__timepunct::_M_ampm): Add.
1993         (__timepunct::_M_date_time_formats): Add.
1994         (time_get::_M_extract_via_format): Add.
1995         (time_get::_M_extract_time): Change to...
1996         (time_get::_M_extract_num): ... this, modify signature.
1997         * include/bits/locale_facets.tcc (time_get::do_get_year): Fix.
1998         (time_get::do_get_time): Fix.
1999         (time_get::do_get_date): Fix.
2000
2001         * acinclude.m4: Remove CTIME_H.
2002         * aclocal.m4: Regenerate.
2003         * include/Makefile.am: Same.
2004         * include/Makefile.in: Regenerate.
2005         * configure: Regenerate.
2006
2007         * testsuite/22_locale/time_get_members_char.cc: Fix.
2008         * testsuite/22_locale/time_get_members_wchar_t.cc: Add.
2009         * testsuite/22_locale/time_put_members_wchar_t.cc: Add.
2010
2011 2001-10-01  Hans-Peter Nilsson  <hp@axis.com>
2012
2013         * config/cpu/cris/bits/atomicity.h: Correct file header.
2014
2015 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
2016
2017         * configure.target (LIMITSH): Set for cris.
2018         (cpu_include_dir): Set for cris-*-*.
2019         * config/cpu/cris/bits/atomicity.h: New file.
2020         * config/cpu/cris/bits/limits.h: New file.
2021
2022 2001-09-28  Benjamin Kosnik  <bkoz@redhat.com>
2023
2024         * config/locale/time_members_gnu.h (__timepunct::_M_get_helper): Add.
2025         (__timepunct::_M_put_helper): Add.
2026         * config/locale/time_members_generic.h: Same.
2027         * include/bits/locale_facets.h (__match_parallel): Remove. Format.
2028         (__timepunct): Add data members.
2029         (__timepunct::_M_days): Add.
2030         (__timepunct::_M_days_abbreviated): Add.
2031         (__timepunct::_M_months): Add.
2032         (__timepunct::_M_months_abbreviated): Add.
2033         (__timepunct::_M_initialize_timepunct): Add.
2034         * include/bits/locale_facets.tcc: Same.
2035         * src/locale-inst.cc: Remove instantiations for __match_parallel.
2036         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add CTIME_CC.
2037         * aclocal.m4: Regenerate.
2038         * configure: Regenerate.
2039         * testsuite/22_locale/time_put_members_char.cc: Mark XFAIL.
2040         * testsuite/22_locale/time_put_members_char.cc (test01): New file.
2041         * testsuite/22_locale/time_get.cc: New file.
2042
2043 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2044
2045         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Use
2046         correct multilib builddir.
2047         Properly locate libgcc_s.
2048
2049 2001-09-27  Phil Edwards  <pme@gcc.gnu.org>
2050
2051         * include/std/*:  Add Doxygen hooks.
2052         * docs/doxygen/Intro.3:  New file, general intro to the man pages.
2053         * docs/doxygen/mainpage.doxy:  Formatting tweaks.  List our own links
2054         rather than using a generated index.
2055         * docs/doxygen/user.cfg.in:  Disable the index, enable man pages.
2056         * docs/doxygen/run_doxygen:  Massage the generated man pages, using...
2057         * docs/doxygen/stdheader.cc:  ...this new file.
2058
2059 2001-09-26  Stan Shebs  <shebs@apple.com>
2060
2061         * include/Makefile.am: Remove RCS Id strings.
2062         * src/Makefile.am: Ditto.
2063         * docs/doxygen/run_doxygen: Ditto.
2064         * docs/html/configopts.html: Ditto.
2065         * docs/html/documentation.html: Ditto.
2066         * docs/html/explanations.html: Ditto.
2067         * docs/html/install.html: Ditto.
2068         * docs/html/17_intro/howto.html: Ditto.
2069         * docs/html/18_support/howto.html: Ditto.
2070         * docs/html/19_diagnostics/howto.html: Ditto.
2071         * docs/html/20_util/howto.html: Ditto.
2072         * docs/html/21_strings/howto.html: Ditto.
2073         * docs/html/22_locale/howto.html: Ditto.
2074         * docs/html/23_containers/howto.html: Ditto.
2075         * docs/html/24_iterators/howto.html: Ditto.
2076         * docs/html/25_algorithms/howto.html: Ditto.
2077         * docs/html/26_numerics/howto.html: Ditto.
2078         * docs/html/27_io/howto.html: Ditto.
2079         * docs/html/ext/howto.html: Ditto.
2080         * docs/html/ext/sgiexts.html: Ditto.
2081         * docs/html/faq/index.html: Ditto.
2082         * docs/html/faq/index.txt: Ditto.
2083
2084 2001-09-25  Phil Edwards  <pme@gcc.gnu.org>
2085
2086         * testsuite/21_strings/c_strings.cc (test01, test02):  Increase
2087         `carray' size.
2088
2089 2001-09-25  Phil Edwards  <pme@gcc.gnu.org>
2090
2091         * docs/html/20_util/howto.html:  Add anchor name.
2092         * docs/html/23_containers/howto.html:  Line wrapping, another link.
2093         * docs/html/25_algorithms/howto.html:  Another note.
2094
2095         * docs/html/ext/howto.html:  Link to SGI extensions.  List DRs and
2096         link to them...
2097         * docs/html/ext/lwg-active.html:  ...in this new file (from R19),
2098         * docs/html/ext/lwg-defects.html:  and this new file (from R19).
2099         * docs/html/ext/sgiexts.html:  New file.  Mention SGI extensions
2100         carried over to libstdc++-v3.
2101         * docs/html/faq/index.html:  Link to SGI extensions.  Mention the
2102         "missing .." pseudobug.
2103         * docs/html/faq/index.txt:  Regenerate.
2104
2105         * include/bits/ios_base.h:  DR-related comment cleanup.
2106         * include/bits/istream.tcc:  Likewise.
2107         * include/bits/locale_facets.h:  Likewise.
2108         * include/bits/locale_facets.tcc:  Likewise.
2109         * include/bits/ostream.tcc:  Likewise.
2110         * include/bits/std_bitset.h:  Likewise.
2111         * include/bits/std_iosfwd.h:  Likewise.
2112         * include/bits/std_istream.h:  Likewise.
2113         * include/bits/std_ostream.h:  Likewise.
2114         * include/bits/std_streambuf.h:  Likewise.
2115         * include/bits/stl_pair.h:  Likewise.
2116         * include/bits/streambuf_iterator.h:  Likewise.
2117
2118         * include/bits/std_map.h:  Remove unused header inclusion guard
2119         _CPP_BITS_STL_TREE_H from around bits/stl_tree.h.
2120         * include/bits/std_set.h:  Likewise.
2121
2122         * include/bits/stl_function.h:  Doxygen markup.
2123         * docs/doxygen/doxygroups.cc:  New file, specifying module grouping.
2124         * libsupc++/typeinfo:  Doxygen markup tweak.
2125
2126 2001-09-20  Scott Johnston <scott@accom.com>
2127             Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2128
2129         * include/backward/alloc.h: Conditionally define malloc_alloc
2130         * testsuite/backward/header_deque_h.cc: New file.
2131
2132 2001-09-20  Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
2133
2134         * libstdc++-v3/include/bits/locale_facets.tcc (money_put::do_put):
2135         change variable name so that it works with -fno-for-scope.
2136
2137 2001-09-20  Benjamin Kosnik  <bkoz@redhat.com>
2138
2139         * testsuite/22_locale/numpunct_members_char.cc (test01): Remove
2140         redundant sanity checks.
2141         * testsuite/22_locale/money_put_members_wchar_t.cc (test01): Same.
2142         (test02): Same.
2143         * testsuite/22_locale/money_put_members_char.cc (test01): Same.
2144         (test02): Same.
2145         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test01): Same.
2146         * testsuite/22_locale/moneypunct_members_char.cc (test01): Same.
2147         * testsuite/22_locale/money_get_members_wchar_t.cc (test01): Same.
2148         (test02): Same.
2149         * testsuite/22_locale/money_get_members_char.cc (test01): Same.
2150         (test02): Same.
2151
2152 2001-09-19  Benjamin Kosnik  <bkoz@redhat.com>
2153
2154         Implement std::time_put.
2155         * include/bits/locale_facets.h: Include time_members.h.
2156         (__timepunct): New.
2157         (time_put): Implement.
2158         * include/bits/locale_facets.tcc (do_put): Put generic versions here.
2159         * include/bits/localefwd.h: Bump number of facets.
2160         * config/locale/time_members_generic.h: New file.
2161         * config/locale/time_members_gnu.h: New file.
2162         * config/locale/c_locale_generic.h: Include clocale.
2163         * src/locale-inst.cc: Add use_facet instantiations for __timepunct.
2164         * src/locale.cc: Add __timepunct initializations.
2165         * src/localename.cc (locale::_Impl::_Impl(string, size_t)): Same.
2166         * include/Makefile.am (stamp-target): Add time_members.h.
2167         * include/Makefile.in: Regenerate.
2168         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add CTIME_H.
2169         * aclocal.m4: Regenerate.
2170         * configure: Regenerate.
2171         * testsuite/22_locale/time_put.cc: New file.
2172         * testsuite/22_locale/time_put_members_char.cc: New file.
2173
2174         * docs/html/22_locale/locale.html: Add note.
2175
2176 2001-09-17  Phil Edwards  <pme@gcc.gnu.org>
2177
2178         * docs/html/configopts.html:  HTML to XHTML change.  Lowercase tags.
2179         * docs/html/documentation.html:  Likewise.
2180         * docs/html/explanations.html:  Likewise.
2181         * docs/html/install.html:  Likewise.
2182         * docs/html/17_intro/howto.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/codecvt.html:  Likewise.
2188         * docs/html/22_locale/ctype.html:  Likewise.
2189         * docs/html/22_locale/howto.html:  Likewise.
2190         * docs/html/22_locale/locale.html:  Likewise.
2191         * docs/html/22_locale/messages.html:  Likewise.
2192         * docs/html/23_containers/howto.html:  Likewise.
2193         * docs/html/24_iterators/howto.html:  Likewise.
2194         * docs/html/25_algorithms/howto.html:  Likewise.
2195         * docs/html/26_numerics/howto.html:  Likewise.
2196         * docs/html/27_io/howto.html:  Likewise.
2197         * docs/html/ext/howto.html:  Likewise.
2198         * docs/html/faq/index.html:  Likewise.
2199         * docs/html/faq/index.txt:  Regenerated.
2200
2201 2001-09-14  Phil Edwards  <pme@sources.redhat.com>
2202
2203         * docs/html/17_intro/headers_cc.txt:  "Sync"/copy real file over.
2204         * docs/html/17_intro/howto.html:  Spacing and HTML markup fixes.
2205         * docs/html/18_support/howto.html:  It won't compile; it's not code.
2206         * docs/html/19_diagnostics/howto.html:  Point diagram seekers to
2207         doxygen'd pages.
2208         * docs/html/22_locale/howto.html:  Comment for future work.
2209         * docs/html/23_containers/howto.html:  More comments.
2210         * docs/html/25_algorithms/howto.html:  It's a comment, not a
2211         blunt command to the reader.  (English grammar.)
2212
2213 2001-09-14  Benjamin Kosnik  <bkoz@redhat.com>
2214
2215         * config/locale/moneypunct_members_gnu.cc: Fix initialization of
2216         wchar_t members.
2217         * testsuite/22_locale/money_get_members_wchar_t.cc (test02): New file.
2218         * testsuite/22_locale/money_put_members_wchar_t.cc (test02): Fix.
2219
2220 2001-09-14  Benjamin Kosnik  <bkoz@redhat.com>
2221
2222         * include/bits/locale_facets.tcc: Conditionalize use of strtold.
2223
2224 2001-09-13  Alexandre Petit-Bianco  <apbianco@redhat.com>
2225
2226         * testsuite/22_locale/money_get_members_char.cc: Fixed typo in comment.
2227         * testsuite/22_locale/money_put_members_char.cc: Likewise.
2228         * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
2229
2230 2001-09-13  Benjamin Kosnik  <bkoz@redhat.com>
2231
2232         Implement std::money_get.
2233         * include/bits/locale_facets.tcc (money_get::do_get): Implement.
2234         * include/bits/locale_facets.h (money_get): Correct signatures.
2235         * testsuite/22_locale/money_get.cc: New file.
2236         * testsuite/22_locale/money_get_members_char.cc: New file.
2237
2238         * include/bits/locale_facets.tcc (__verify_grouping): New
2239         function. Consolidate num_get and money_get group checking into
2240         one function.
2241         (money_get): Use it.
2242         * src/locale.cc (num_get::_M_extract): Use it.
2243         * src/locale-inst.cc: Add instantiation.
2244
2245 2001-09-12  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2246
2247         * include/bits/std_limits.h (numeric_limits<float>::radix,
2248         numeric_limits<float>::epsilon:  Fix thinko.
2249
2250 2001-09-10  Benjamin Kosnik  <bkoz@redhat.com>
2251
2252         * configure.in: Fix cross compiling math routines. Correct
2253         comments for cross compiling and limits. Add floating point math
2254         routines found in newlib.
2255         * configure: Regenerate.
2256         * acconfig.h: Add macros.
2257         * config.h.in: Regenerate.
2258
2259 2001-09-10  Benjamin Kosnik  <bkoz@redhat.com>
2260
2261         * config/locale/moneypunct_members_generic.cc
2262         (money_base::_S_construct_pattern): Remove unused parameters.
2263
2264 2001-09-10  Benjamin Kosnik  <bkoz@redhat.com>
2265
2266         * include/Makefile.am (stamp-target): Remove link to self.
2267         * inclulde/Makefile.in: Regenerate.
2268
2269 2001-09-09  Benjamin Kosnik  <bkoz@redhat.com>
2270
2271         Implement std::money_put.
2272         * include/bits/locale_facets.h
2273         (moneypunct::_M_initialize_moneypunct): Split up specializations
2274         to account for _Intl.  More grody hacking to get around the
2275         ill-considered use of const bool as a template parameter.
2276         * config/locale/moneypunct_members_gnu.cc: And here.
2277         * config/locale/moneypunct_members_generic.cc: And here.
2278         * testsuite/22_locale/moneypunct_members_char.cc: Add tests.
2279         * testsuite/22_locale/moneypunct.cc: Add tests.
2280         * testsuite/22_locale/money_put_members_wchar_t.cc: New file.
2281         * testsuite/22_locale/moneypunct_members_wchar_t.cc: New file.
2282
2283         * src/locale.cc (money_base::_S_construct_pattern): Move into
2284         gnu-specific file.
2285         * config/locale/moneypunct_members_gnu.cc: Add here.
2286         * config/locale/moneypunct_members_generic.cc: Add generic version
2287         here.
2288
2289         * include/bits/locale_facets.tcc (money_put::do_put): Move member
2290         function definitions here.
2291         * include/bits/locale_facets.h (money_put): Implement.
2292         * src/locale-inst.cc: Add use_facet instantiations for moneypunct.
2293         Correct money_get, money_put instantiations.
2294         * src/locale.cc (money_base::_S_construct_pattern): Handle case
2295         where __posn == 0.
2296         * testsuite/22_locale/money_put_members_char.cc: Add tests.
2297
2298 2001-09-05  Phil Edwards  <pme@sources.redhat.com>
2299
2300         * testsuite_flags.in:  No longer need to search testsuite builddir.
2301         * src/stl-inst.cc (__sink_unused_warning):  Unused, remove.
2302         * Makefile.am:  The testsuite directory never needs to be made here.
2303         * Makefile.in:  Regenerate.
2304         * include/Makefile.in:  Regenerate.
2305         * libio/Makefile.in:  Regenerate.
2306         * libmath/Makefile.in:  Regenerate.
2307         * libsupc++/Makefile.in:  Regenerate.
2308         * po/Makefile.in:  Regenerate.
2309         * src/Makefile.in:  Regenerate.
2310         * testsuite/Makefile.in:  Regenerate.
2311
2312 2001-09-04  Scott Johnston  <scott@accom.com>
2313             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2314
2315         * include/backward/iterator.h: Include <bits/std_iterator.h>,
2316         remove reverse_bidirectional_iterator.
2317         * testsuite/backward: New directory.
2318         * testsuite/backward/header_iterator_h.cc: New file.
2319
2320 2001-09-04  Benjamin Kosnik  <bkoz@redhat.com>
2321
2322         * include/c_std/bits/std_c*.h: Don't use include_next.
2323
2324 2001-09-03  Richard Sandiford  <rsandifo@redhat.com>
2325
2326         * libsupc++/eh_personality.cc (parse_lsda_header): Change type of
2327         tmp from _Unwind_Ptr to _Unwind_Word.
2328
2329 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
2330
2331         * libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Simplify
2332         leb128 handling.
2333
2334 2001-08-28  Loren J. Rittle  <ljrittle@acm.org>
2335
2336         * include/Makefile.am: Use toplevel_srcdir to refer to src files
2337         outside this component.
2338         * include/Makefile.in: Regenerate.
2339
2340 2001-08-27  Benjamin Kosnik  <bkoz@redhat.com>
2341
2342         * config/locale/c_locale_gnu.cc: Move facet info to separate files...
2343         * config/locale/c_locale_generic.cc: Same.
2344         * config/locale/moneypunct_members_gnu.cc: New file.
2345         * config/locale/moneypunct_members_generic.cc: New file.
2346         * config/locale/numpunct_members_gnu.cc: New file.
2347         * config/locale/numpunct_members_generic.cc: New file.
2348         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add moneypunct, numpunct
2349         options.
2350         * aclocal.m4: Regenerate.
2351         * configure: Regenerate.
2352         * src/Makefile.am (sources): And here.
2353         * src/Makefile.in: Regenerate.
2354
2355         Rename for consistency with rest of testsuite.
2356         * testsuite/22_locale/codecvt.cc: New file.
2357         * testsuite/22_locale/money_put.cc: New file.
2358         * testsuite/22_locale/money_put_members_char.cc: New file.
2359
2360 2001-08-27  Phil Edwards  <pme@sources.redhat.com>
2361
2362         PR libstdc++/4143
2363         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO):  Handle enable/disable
2364         correctly for version-specific-runtime-libs.
2365         * aclocal.m4:  Regenerate.
2366         * configure:  Regenerate.
2367
2368 2001-08-24  Loren J. Rittle  <ljrittle@acm.org>
2369
2370         * config/cpu/i386/bits/limits.h (__glibcpp_long_double_bits): Only
2371         define if not already provided by per-OS file.
2372         * config/os/bsd/freebsd/bits/os_defines.h (__glibcpp_long_double_bits):
2373         Define.
2374
2375 2001-08-24  Jan van Male <jan.vanmale@fenk.wau.nl>
2376
2377         * docs/html/17_intro/C++STYLE:  Fix typo.
2378
2379 2001-08-24  Phil Edwards  <pme@sources.redhat.com>
2380
2381         * docs/html/23_containers/howto.html:  Describe implementation of
2382         insertion with hints.
2383
2384 2001-08-24  Kenny Simpson  <kenny.simpson@gs.com>
2385
2386         libstdc++/3740
2387         * include/bits/std_sstream.h (basic_ostringstream): Fix ctor.
2388
2389 2001-08-24  Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
2390             Phil Edwards  <pme@sources.redhat.com>
2391
2392         PR libstdc++/3349
2393         * include/bits/stl_tree.h (insert_unique):  Revert last change.
2394         Values inserted at begin() must be less, not greater, than *begin()'s.
2395         * testsuite/23_containers/map_insert.cc:  New file.
2396
2397 2001-08-23  Benjamin Kosnik  <bkoz@redhat.com>
2398
2399         * config/locale/c_locale_gnu.cc: Minor tweaks.
2400         (moneypunct<wchar_t>): Implement.
2401         * include/bits/locale_facets.h: Same.
2402         * testsuite/22_locale/moneypunct.cc: New file.
2403         * testsuite/22_locale/moneypunct_byname.cc: New file.
2404         * testsuite/22_locale/moneypunct_char_members.cc: New file.
2405
2406 2001-08-23  David Edelsohn  <edelsohn@gnu.org>
2407
2408         * config/os/gnu-linux/bits/os_defines.h: Correct __s390__ definitions.
2409         Set __powerpc__ long double definition based on __LONG_DOUBLE_128__.
2410
2411 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
2412
2413         * testsuite_flags.in (build-includes): Re-add backward.
2414
2415 2001-08-22  Benjamin Kosnik  <bkoz@redhat.com>
2416
2417         * testsuite/22_locale/collate_wchar_t_members.cc: Guard
2418         with _GLIBCPP_USE_WCHAR_T.
2419
2420 2001-08-21  Benjamin Kosnik  <bkoz@redhat.com>
2421
2422         * testsuite/22_locale/collate_byname.cc (test01): Fix.
2423
2424 2001-08-18  Vladimir A Merzliakov  <wanderer@rsu.ru>
2425
2426         * include/bits/locale_facets.tcc (collate::do_transform): Add typename.
2427
2428 2001-08-18  Benjamin Kosnik  <bkoz@redhat.com>
2429
2430         * testsuite/22_locale/operators.cc: Add test.
2431
2432 2001-08-17  Benjamin Kosnik  <bkoz@redhat.com>
2433
2434         Implement std::collate.
2435         * config/locale/collate_specializations_gnu.cc: Add here, implement in
2436         MT-safe way.
2437         * config/locale/collate_specializations_generic.cc: Add here, but
2438         in a less sophisticated manner.
2439         * include/bits/locale_facets.tcc (collate): Add generic definition.
2440         * include/bits/locale_facets.h (~collate): Mark virtual.
2441         (collate::_M_compare_helper): New.
2442         (collate::_M_transform_helper): New.
2443         * src/locale.cc: Remove unnecessary specializations.
2444         * src/string-inst.cc: Tweak instantiation of ctors.
2445
2446         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Do configury for collate.
2447         * aclocal.m4: Regenerate.
2448         * configure: Regenerate.
2449         * src/Makefile.am (sources): Add collate.cc.
2450         * src/Makefile.in: Regenerate.
2451
2452         * testsuite/22_locale/collate_byname.cc: New.
2453         * testsuite/22_locale/collate.cc: New file.
2454         * testsuite/22_locale/collate_char_members.cc: New file.
2455         * testsuite/22_locale/collate_wchar_t_members.cc: New file.
2456
2457 2001-08-16  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2458
2459         * configure.target: Set LIMITSH for powerpc-*-*.
2460         * config/cpu/powerpc/bits/limits.h: New file.
2461
2462 2001-08-16  Marc Espie <espie@openbsd.org>
2463
2464         * configure.in:  Check for <sys/types.h>.
2465         * configure:  Rebuild.
2466         * config.h.in:  Rebuild.
2467         * libmath/mathconf.h:  Include <sys/types.h> prior to
2468         <machine/endian.h> if available.
2469
2470 2001-08-15  Andreas Schwab  <schwab@suse.de>
2471
2472         * configure.target (cpu_include_dir): Set to `config/cpu/m68k' for
2473         m68k and m680[246]0.
2474         * config/cpu/m68k/bits/atomicity.h: New file.
2475
2476         * include/bits/std_limits.h [__glibcpp_long_double_bits == 96]:
2477         Define appropriate long double limits for m68k extended floating
2478         point.
2479         (__glibcpp_f32_digits10): Corrected, off by one.
2480         (__glibcpp_f80_digits10): Likewise.
2481         (__glibcpp_f128_digits10): Likewise.
2482         * config/os/gnu-linux/bits/os_defines.h
2483         (__glibcpp_long_double_bits) [__mc68000__]: Define to 96.
2484
2485 2001-08-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2486
2487         * testsuite/18_support/numeric_limits.cc: Add more tests.
2488         * include/bits/std_limits.h (numeric_limits<char>::max): Fix
2489         typo.
2490
2491 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2492
2493         * configure.target (cpu_include_dir): Set to `config/cpu/s390'
2494         for s390 and s390x.
2495
2496         * config/cpu/s390/bits/atomicity.h: New.
2497
2498 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
2499
2500         * include/bits/std_limits.h: Fix thinko.
2501
2502 2001-08-14  Benjamin Kosnik  <bkoz@redhat.com>
2503
2504         * include/Makefile.am: Consolidate target rules. Don't clean stamp
2505         files. Tweak target build directory stamp.
2506         * include/Makefile.in: Regenerate.
2507
2508 2001-08-14  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2509
2510         * libstdc++-v3/libmath/stubs.c: Fix PR/3988, replace
2511         _GBLICPP_HAVE_LOGL with HAVE_LOGL
2512
2513 2001-08-13  Benjamin Kosnik  <bkoz@redhat.com>
2514
2515         * configure.in (libtool_VERSION): Add.
2516         (VERSION): Change to
2517         (release_VERSION): This.
2518         * configure: Regenerate.
2519         * src/Makefile.am (libstdc___la_LDFLAGS): Use -version-info with
2520         libtool_VERSION.
2521         * src/Makefile.in: Regenerate.
2522
2523         * intl/Makefile.am: Remove.
2524         * intl/Makefile.in: Remove.
2525         * intl: Remove.
2526         * Makefile.am (SUBDIRS): Remove intl.
2527         * po/Makefile.am (DISTFILES): Add string_literals.cc
2528         (MSGFMT): Add.
2529         * po/string_literals.cc: Add.
2530         * po/POTFILES.in: Fix path.
2531         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Don't call AM_GNU_GETTEXT.
2532         * aclocal.m4: Regenerate.
2533         * configure.in: Remove AC_OUTPUT of intl/Makefile.
2534
2535         * include/backward/backward_warning.h: Clarify message.
2536
2537         * testsuite_flags.in (--cxxflags): Use same debug flags for
2538         library and testsuite.
2539
2540         * include/Makefile.am (c_compatibility): Remove.
2541         * include/Makefile.in: Regenerate.
2542
2543 2001-08-13  Mark Mitchell  <mark@codesourcery.com>
2544
2545         * configure.in (LIMITS_INC_SRCDIR): New variable.
2546         * configure.target (LIMITSH): New variable.
2547         * porting.texi: Discuss numeric limits.
2548         * config/cpu/generic/bits/limits.h: New file.
2549         * config/cpu/i386/bits/limits.h: New file.
2550         * include/Makefile.am: Install bits/limits.h.
2551         * include/bits/c++config: Include bits/limits.h.
2552
2553 2001-08-13  H.J. Lu  (hjl@gnu.org)
2554
2555         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-copy-files):
2556         New. Copy files.
2557         (libstdc++-v3-init ): Use it.
2558
2559 2001-08-13  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2560
2561         * include/bits/ostream.tcc (__pad_char): Change toplevel '__fmt'
2562         to '__adjust' to avoid shadowing in nested scope.
2563
2564 2001-08-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2565
2566         * include/bits/std_limits.h(__glibcpp_char_is_signed): Use
2567         __CHAR_UNSIGNED__.
2568
2569         * config/os/gnu-linux/bits/os_defines.h(__glibcpp_char_is_signed):
2570         Likewise.
2571         * config/os/aix/bits/os_defines.h(__glibcpp_plain_char_is_signed):
2572         Remove.
2573
2574 2001-08-10  Loren J. Rittle  <ljrittle@acm.org>
2575
2576         * testsuite/testsuite_hooks.h (__set_testsuite_memlimit): Add
2577         dummy default argument to the non-limit implementation.
2578
2579         bootstrap/3963
2580         * include/Makefile.am: Use relative file path in rule to allow
2581         colon in $(objdir).
2582         * include/Makefile.in: Rebuilt.
2583
2584 2001-08-10  Gunter Winkler  <gunter.winkler@mathematik.tu-chemnitz.de>
2585
2586         * include/bits/std_complex.h (complex<long double>::operator*=,
2587         complex<long double>::operator/=): Fix thinko.
2588
2589 2001-08-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2590
2591         * include/bits/std_limits.h: New file.
2592         * include/Makefile.am (bits_headers): Add std_limits.h
2593         (all-local): std_limits.h is no longer built.
2594         (${target_builddir}/std_limits.h): Remove.
2595         * include/Makefile.in: Regenerate.
2596         * src/limits.cc: New file.
2597         * src/Makefile.am (sources): Add limits.cc in replacement of
2598         limitsMEMBERS.cc.
2599         * src/Makefile.in: Regenerate.
2600
2601 2001-08-09  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2602
2603         * src/gen-num-limits.cc (digits10): Fix thinko.
2604
2605 2001-08-09  Benjamin Kosnik  <bkoz@redhat.com>
2606
2607         * po/Makefile.am (check-no): Add.
2608         (check-yes): Same.
2609         * po/Makefile.in: Regenerate.
2610
2611 2001-08-09  Benjamin Kosnik  <bkoz@redhat.com>
2612
2613         * acconfig.h (_GLIBCPP_MEM_LIMITS): Define.
2614         * config.h.in: Regenerate.
2615         * acinclude.m4 (GLIBCPP_CHECK_SETRLIMIT): Check for setrlimit
2616         function.
2617         * aclocal.m4: Regenerate.
2618         * configure.in: Remove duplicate AM_CONFIG_HEADER.
2619         (AM_CONFIG_HEADER): Remove testsuite/testsuite_hooks.h.
2620         Only call GLIBCPP_CHECK_SETRLIMIT for native compiles.
2621         * configure: Regenerate.
2622         * testsuite_hooks.h.in: Move to...
2623         * testsuite_hooks.h: Here, include c++config.h. Use it.
2624
2625         * Makefile.am (SUBDIRS): Move testsuite to last directory.
2626         * Makefile.in: Regenerate.
2627         * po/Makefile.am (stamp-po): Add.
2628
2629 2001-08-09  David Edelsohn  <edelsohn@gnu.org>
2630
2631         * config/os/aix/bits/os_defines.h: Define std_limits.h macros.
2632         * config/os/generic/bits/os_defines.h: Likewise.
2633         * config/os/gnu-linux/bits/os_defines.h: Likewise.
2634         * config/os/hpux/bits/os_defines.h: Likewise.
2635         * config/os/irix/irix6.5/bits/os_defines.h: Likewise.
2636         * config/os/solaris/solaris2.7/bits/os_defines.h: Likewise.
2637
2638 2001-08-08  Benjamin Kosnik  <bkoz@redhat.com>
2639
2640         * src/Makefile.am (libstdc___la_LDFLAGS): Use -release instead of
2641         -version-info, use substituted VERSION info.
2642         * src/Makefile.in: Regenerate.
2643
2644 2001-08-07  Benjamin Kosnik  <bkoz@redhat.com>
2645
2646         Implement std::messages.
2647         Make config a fully-nested directory.
2648         * config/locale: New directory.
2649         * config/c_locale_generic.cc: Move into locale subdirectory.
2650         * config/c_locale_generic.h: Same.
2651         * config/c_locale_gnu.cc: Same.
2652         * config/c_locale_gnu.h: Same.
2653         * config/c_locale_ieee_1003.1-200x.cc: Same.
2654         * config/c_locale_ieee_1003.1-200x_.h: Same.
2655         * config/codecvt_specializations_generic.h: Same.
2656         * config/codecvt_specializations_ieee_1003.1-200x.h: Same.
2657         * config/messages_members_gnu.h: Same.
2658         * config/messaages_members_gnu.cc: Same.
2659         * config/messages_members_generic.h: Same.
2660         * config/messaages_members_generic.cc: Same.
2661         * config/messages_members_ieee_1003.1-200x.h: Same.
2662         * config/messaages_members_ieee_1003.1-200x.cc: Same.
2663         * config/io: New directory.
2664         * config/basic_file_libio.h: Move into io subdirectory.
2665         * config/basic_file_libio.cc: Same.
2666         * config/c_io_libio.h: Same.
2667         * config/c_io_libio_codecvt.c: Same.
2668         * config/basic_file_stdio.h: Same.
2669         * config/basic_file_stdio.cc: Same.
2670         * config/c_io_stdio.h: Same.
2671
2672         * po: New directory.
2673         * po/POTFILES.in: New file.
2674         * po/Makefile.am: New file.
2675         * po/Makefile.in: New file.
2676         * po/libstdc++.pot: Generic translation file.
2677         * po/fr.po: Preliminary French translation.
2678         * po/de.po: Preliminary German translation.
2679         * intl: New directory.
2680         * intl/Makefile.am: New file.
2681         * intl/Makefile.in: New file.
2682         * intl/string_literals.cc: New file.
2683         * acinclude.m4 (GLIBCPP_CONFIGURE): Bump VERSION to 3.1.0. Add
2684         requisite setup for gettext. Re-arrange.
2685         * aclocal.m4: Regenerate.
2686         * configure.in: Don't call GLIBCPP_CHECK_COMPILER_VERSION.
2687         Output Makefile bits for po and intl.
2688         * configure: Regenerate.
2689         * Makefile.am (SUBDIRS): Add intl, po. Add rule for dist.
2690         * Makefile.in: Regenerate.
2691         * acconfig.h: Add ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY.
2692         * config.h.in: Regenerate.
2693
2694         * acinclude.m4 (AC_REPLACE_STRINGFUNCS): Remove.
2695
2696         * include/Makefile.am (install-data-local): Don't install Makefile.
2697         * include/Makefile.in: Regenerate.
2698
2699         * include/bits/locale_facet.h (locale::facet::_S_clone_c_locale):
2700         Add member.
2701         * config/locale/c_locale_gnu.cc (_S_clone_c_locale): Add definition.
2702         * config/locale/c_locale_generic.cc: Same.
2703         * config/locale/c_locale_ieee_1003.1-200x.cc: Same.
2704
2705         * include/bits/codecvt.h: Excise non-standard, non-required
2706         bits. This includes __enc_traits, and partial specializations of
2707         codecvt for __enc_traits.
2708         * src/codecvt.cc (__enc_traits::_S_max_size): Guard
2709         * config/codecvt_partials_ieee_1003.1-200x.h: New file.
2710         * config/codecvt_partials_generic.h: New file.
2711         * include/Makefile.am (allstamps): Add stamp-codecvt_model.
2712         (stamp-codecvt_model): Add.
2713         * include/Makefile.in: Regenerate.
2714         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add in codecvt configury.
2715         * aclocal.m4: Regenerate.
2716         * configure: Regenerate.
2717         * testsuite/22_locale/codecvt_unicode_wchar_t.cc: Use macro guard.
2718         * testsuite/22_locale/codecvt_unicode_char.cc: Same.
2719         * testsuite/22_locale/ctor_copy_dtor.cc: And here.
2720
2721         * include/bits/localefwd.h (class locale::facet): Add __enc_traits
2722         as a friend for _S_*_c_locale functions.
2723         * include/bits/codecvt.h (__enc_traits::__enc_traits): Add locale
2724         argument to default constructor so that CODESET information can be
2725         deduced.
2726         * include/bits/locale_facets.h (messages_byname):
2727         Re-implement. Remove specializations.
2728         * src/locale.cc (messages_byname<char>): Remove specialization.
2729         (messages_byname<wchar_t>): Same.
2730         * config/locale/c_locale_ieee_1003.1-200x.cc: New file.
2731         * config/locale/c_locale_ieee_1003.1-200x.h: New file.
2732         * config/locale/messages_members_ieee_1003.1-200x.cc: New file.
2733         * config/locale/messages_members_ieee_1003.1-200x.h: New file.
2734         * config/locale/messages_members_gnu.cc: New file.
2735         * config/locale/messages_members_gnu.h: New file.
2736         * config/locale/messages_members_generic.cc: New file.
2737         * config/locale/messages_members_generic.h: New file.
2738
2739         * docs/html/configopts.html: Add documentation for new locale
2740         model, ieee_1003.1. Adjust other flags for current defaults.
2741         * docs/html/22_locale/locale.html: Update.
2742         * docs/html/22_locale/howto.html: Add link to messages.html. Organize.
2743         * docs/html/22_locale/messages.html: New.
2744
2745         * src/Makefile.am (sources): Add messages_virtuals.cc.
2746         * src/Makefile.in: Regenerate.
2747         * include/Makefile.am (allstamps): Add stamp-messages_model.
2748         (stamp-messages_model): Add.
2749         * include/Makefile.in: Regenerate.
2750         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Add in messages configury.
2751         * aclocal.m4: Regenerate.
2752         * configure: Regenerate.
2753
2754         * testsuite_flags.in (--cxxflags): Add LOCALEDIR.
2755         * testsuite/lib/libstdc++-v3-dg.exp: Remove broken LD_LIBRARY_PATH
2756         bits for Irix.
2757         * acinclude (GLIBCPP_ENABLE_CLOCALE): Set glibcpp_localedir to the
2758         build directories message catalog base directory, and export.
2759         Eventually this should probably be made to deal with build and
2760         install directories. For now, punt on this as the library itself
2761         doesn't use message catalogs (yet).
2762         * testsuite/22_locale/messages.cc: New file.
2763         * testsuite/22_locale/messages_char_members.cc: New file.
2764         * testsuite/22_locale/messages_byname.cc: New file.
2765
2766 2001-08-06  Phil Edwards  <pme@sources.redhat.com>
2767
2768         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE):  New macro, calls...
2769         (GLIBCPP_CHECK_SETRLIMIT):  ...this new macro, which also uses...
2770         (GLIBCPP_CHECK_SETRLIMIT_ancilliary):  ...this new macro.
2771         * configure.in (AM_CONFIG_HEADER):  Also generate testsuite_hooks.h.
2772         Call GLIBCPP_CONFIGURE_TESTSUITE.
2773         * aclocal.m4:  Regenerate.
2774         * config.h.in:  Regenerate.
2775         * configure:  Regenerate.
2776
2777         * testsuite/lib/libstdc++-v3-dg.exp:  Download new header instead
2778         of old header.
2779
2780         * testsuite_flags.in:  Add build dir's testsuite to INCLUDES.
2781         * testsuite/debug_assert.h:  Removed; contents merged into...
2782         * testsuite/testsuite_hooks.h.in:  ...here.  New file.
2783         * testsuite/17_intro/header_ciso646.cc:  No longer include
2784         debug_assert.h, include testsuite_hooks.h instead.
2785         * testsuite/17_intro/header_fstream.cc:  Likewise.
2786         * testsuite/17_intro/header_iomanip.cc:  Likewise.
2787         * testsuite/17_intro/header_ios.cc:  Likewise.
2788         * testsuite/17_intro/header_iosfwd.cc:  Likewise.
2789         * testsuite/17_intro/header_iostream.cc:  Likewise.
2790         * testsuite/17_intro/header_istream.cc:  Likewise.
2791         * testsuite/17_intro/header_ostream.cc:  Likewise.
2792         * testsuite/17_intro/header_sstream.cc:  Likewise.
2793         * testsuite/17_intro/header_streambuf.cc:  Likewise.
2794         * testsuite/18_support/numeric_limits.cc:  Likewise.
2795         * testsuite/19_diagnostics/stdexceptions.cc:  Likewise.
2796         * testsuite/20_util/allocator_members.cc:  Likewise.
2797         * testsuite/20_util/auto_ptr.cc:  Likewise.
2798         * testsuite/20_util/pairs.cc:  Likewise.
2799         * testsuite/21_strings/append.cc:  Likewise.
2800         * testsuite/21_strings/capacity.cc:  Likewise.
2801         * testsuite/21_strings/char_traits_requirements.cc:  Likewise.
2802         * testsuite/21_strings/compare.cc:  Likewise.
2803         * testsuite/21_strings/ctor_copy_dtor.cc:  Likewise.  Also set up
2804         call to (disabled) __set_testsuite_memlimit() wrapper.
2805         * testsuite/21_strings/element_access.cc:  Likewise.
2806         * testsuite/21_strings/find.cc:  Likewise.
2807         * testsuite/21_strings/insert.cc:  Likewise.  Also set up call to
2808         (disabled) __set_testsuite_memlimit() wrapper.
2809         * testsuite/21_strings/inserters_extractors.cc:  Likewise.
2810         * testsuite/21_strings/invariants.cc:  Likewise.
2811         * testsuite/21_strings/nonmember.cc:  Likewise.
2812         * testsuite/21_strings/operations.cc:  Likewise.
2813         * testsuite/21_strings/replace.cc:  Likewise.
2814         * testsuite/21_strings/rfind.cc:  Likewise.
2815         * testsuite/21_strings/substr.cc:  Likewise.
2816         * testsuite/22_locale/codecvt_char_char.cc:  Likewise.
2817         * testsuite/22_locale/codecvt_unicode_char.cc:  Likewise.
2818         * testsuite/22_locale/codecvt_unicode_wchar_t.cc:  Likewise.
2819         * testsuite/22_locale/codecvt_wchar_t_char.cc:  Likewise.
2820         * testsuite/22_locale/ctor_copy_dtor.cc:  Likewise.
2821         * testsuite/22_locale/ctype_char_members.cc:  Likewise.
2822         * testsuite/22_locale/ctype_wchar_t_members.cc:  Likewise.
2823         * testsuite/22_locale/facet.cc:  Likewise.
2824         * testsuite/22_locale/global_templates.cc:  Likewise.
2825         * testsuite/22_locale/members.cc:  Likewise.
2826         * testsuite/22_locale/numpunct_byname.cc:  Likewise.
2827         * testsuite/22_locale/numpunct_char_members.cc:  Likewise.
2828         * testsuite/22_locale/operators.cc:  Likewise.
2829         * testsuite/22_locale/static_members.cc:  Likewise.
2830         * testsuite/23_containers/bitset_ctor.cc:  Likewise.
2831         * testsuite/23_containers/bitset_members.cc:  Likewise.
2832         * testsuite/23_containers/bitset_shift.cc:  Likewise.
2833         * testsuite/23_containers/vector_capacity.cc:  Likewise.
2834         * testsuite/23_containers/vector_ctor.cc:  Likewise.
2835         * testsuite/23_containers/vector_element_access.cc:  Likewise.
2836         * testsuite/23_containers/vector_modifiers.cc:  Likewise.
2837         * testsuite/24_iterators/istreambuf_iterator.cc:  Likewise.
2838         * testsuite/24_iterators/iterator.cc:  Likewise.
2839         * testsuite/24_iterators/ostreambuf_iterator.cc:  Likewise.
2840         * testsuite/25_algorithms/binary_search.cc:  Likewise.
2841         * testsuite/25_algorithms/copy.cc:  Likewise.
2842         * testsuite/25_algorithms/heap.cc:  Likewise.
2843         * testsuite/25_algorithms/lower_bound.cc:  Likewise.
2844         * testsuite/25_algorithms/min_max.cc:  Likewise.
2845         * testsuite/25_algorithms/partition.cc:  Likewise.
2846         * testsuite/25_algorithms/rotate.cc:  Likewise.
2847         * testsuite/25_algorithms/sort.cc:  Likewise.
2848         * testsuite/26_numerics/c_math.cc:  Likewise.
2849         * testsuite/26_numerics/complex_inserters_extractors.cc:  Likewise.
2850         * testsuite/26_numerics/complex_value.cc:  Likewise.
2851         * testsuite/27_io/filebuf.cc:  Likewise.
2852         * testsuite/27_io/filebuf_members.cc:  Likewise.
2853         * testsuite/27_io/filebuf_virtuals.cc:  Likewise.
2854         * testsuite/27_io/fpos.cc:  Likewise.
2855         * testsuite/27_io/fstream_members.cc:  Likewise.
2856         * testsuite/27_io/ifstream_members.cc:  Likewise.
2857         * testsuite/27_io/ios_base_callbacks.cc:  Likewise.
2858         * testsuite/27_io/ios_base_members_static.cc:  Likewise.
2859         * testsuite/27_io/ios_base_storage.cc:  Likewise.
2860         * testsuite/27_io/ios_ctor.cc:  Likewise.
2861         * testsuite/27_io/ios_init.cc:  Likewise.
2862         * testsuite/27_io/ios_manip_basefield.cc:  Likewise.
2863         * testsuite/27_io/ios_manip_fmtflags.cc:  Likewise.
2864         * testsuite/27_io/ios_members.cc:  Likewise.
2865         * testsuite/27_io/istream_extractor_arith.cc:  Likewise.
2866         * testsuite/27_io/istream_extractor_char.cc:  Likewise.
2867         * testsuite/27_io/istream_extractor_other.cc:  Likewise.
2868         * testsuite/27_io/istream_manip.cc:  Likewise.
2869         * testsuite/27_io/istream_seeks.cc:  Likewise.
2870         * testsuite/27_io/istream_sentry.cc:  Likewise.
2871         * testsuite/27_io/istream_unformatted.cc:  Likewise.
2872         * testsuite/27_io/istringstream_members.cc:  Likewise.
2873         * testsuite/27_io/narrow_stream_objects.cc:  Likewise.
2874         * testsuite/27_io/ofstream_members.cc:  Likewise.
2875         * testsuite/27_io/ostream_inserter_arith.cc:  Likewise.
2876         * testsuite/27_io/ostream_inserter_char.cc:  Likewise.
2877         * testsuite/27_io/ostream_inserter_other.cc:  Likewise.
2878         * testsuite/27_io/ostream_manip.cc:  Likewise.
2879         * testsuite/27_io/ostream_seeks.cc:  Likewise.
2880         * testsuite/27_io/ostream_unformatted.cc:  Likewise.
2881         * testsuite/27_io/ostringstream_members.cc:  Likewise.
2882         * testsuite/27_io/streambuf.cc:  Likewise.
2883         * testsuite/27_io/stringbuf.cc:  Likewise.
2884         * testsuite/27_io/stringbuf_virtuals.cc:  Likewise.
2885         * testsuite/27_io/stringstream.cc:  Likewise.
2886         * testsuite/27_io/stringstream_members.cc:  Likewise.
2887         * testsuite/27_io/wide_stream_objects.cc:  Likewise.
2888
2889 2001-07-31  Loren J. Rittle  <ljrittle@acm.org>
2890
2891         * src/gen-num-limits.cc:  Use __LONG_LONG_MAX__.
2892
2893 2001-07-30  Benjamin Kosnik  <bkoz@redhat.com>
2894
2895         * configure.target: Remove mips from cpu table.
2896         * config/cpu/mips/bits/atomicity.h: Remove generic
2897         versions. Comment sgidefs include.
2898
2899 2001-07-25  H.J. Lu <hjl@gnu.org>
2900
2901         * configure.target (cpu_include_dir): Set to `config/cpu/mips'
2902         for mips.
2903
2904         * config/cpu/mips/bits/atomicity.h: New.
2905
2906 2001-07-25  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2907
2908         * acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf,
2909         hypotl, atan2f, atan2l.  Remove from REPLACE_MATHFUNCS list.
2910         * aclocal.m4: Regenerate.
2911         * config.h.in: Likewise.
2912         * configure: Likewise.
2913         * libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove hypotl.c
2914         (EXTRA_DIST): Remove hypot.c hypotf.c.
2915         * libmath/Makefile.am: Regenerate.
2916         * libmath/hypotf.c: Remove.
2917         * libmath/hypot.c: Likewise.
2918         * libmath/hypotl.c: Likewise.
2919         * libmath/stubs.c: The macros seen here are HAVE_xxx, not
2920         _GLIBCPP_HAVE_xxx.  Add long double versions.
2921
2922 2001-07-23  David Edelsohn  <edelsohn@gnu.org>
2923
2924         * include/bits/limits_generic.h (int): Set digits and digits10
2925         appropriately for word size.
2926         (unsigned int,long,unsigned long): Likewise.
2927
2928 2001-07-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
2929
2930         * include/bits/stl_algo.h : Fix typos.
2931         * testsuite/25_algorithms/unique.cc: New file.
2932
2933 2001-07-19  Phil Edwards  <pme@sources.redhat.com>
2934             Mark Mitchell <mark@codesourcery.com>
2935
2936         Merge from cp-parser-branch.
2937         * include/bits/basic_string.h:  Qualify symbols with 'template'.
2938         * include/bits/basic_string.tcc:  Likewise.
2939         * include/bits/fstream.tcc:  Likewise.
2940         * include/bits/istream.tcc:  Likewise.
2941         * include/bits/sstream.tcc:  Likewise.
2942         * include/bits/std_istream.h:  Likewise.
2943         * include/bits/stl_iterator.h:  Likewise.
2944         * include/bits/streambuf.tcc:  Likewise.
2945         * src/gen-num-limits.cc:  Add 'template<>' to specializations.
2946         * src/locale.cc:  Likewise.
2947
2948 2001-07-19  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2949             Bert De Knuydt <Bert.Deknuydt@esat.kuleuven.ac.be>
2950
2951         * src/gen-num-limits.cc (set_signals_handler): New function.
2952         Factor out signals setting.  Set signal handler for SIGILL.
2953
2954 2001-07-18  Phil Edwards  <pme@sources.redhat.com>
2955
2956         * docs/html/27_io/howto.html:  Fix typo.
2957         * docs/html/faq/index.html:  Minor updates for 3.0 all around.
2958         * docs/html/faq/index.txt:  Regenerated.
2959
2960 2001-07-18  Stephen M. Webb  <stephen@bregmasoft..com>
2961             Roman Sulzhyk  <roman_sulzhyk@yahoo.com>
2962
2963         libstdc++/3599
2964         * include/bits/ostream.tcc (ostream::put): Fixed error condition check.
2965         * testsuite/27_io/streambuf.cc (test07): Added new regression test.
2966
2967 2001-07-17  Stephen M. Webb   <stephen@bregmasoft.com>r
2968
2969         All occurrences of the __value_type() and __distance_type()
2970         functions, which were required to support the HP STL, have been
2971         removed along with all the auxiliary forwarding functions that
2972         were required to support their use.
2973
2974         The __iterator_category() function was pretty much left alone
2975         because there was no benefit to removing it and its use made code
2976         just a little more readable.
2977
2978         Incidences of distance() with nonstandard argument list were
2979         replaced by calls to the standard function (only in the files
2980         affected by the removal of the other HP functions).
2981
2982         The signature of the rotate() algorithm was changed to match the
2983         standard.
2984
2985         Headers were reformatted under C++STYLE guidelines (indentation,
2986         linebreaks, typename keyword).
2987
2988         * include/bits/stl_algo.h: replaced __value_type() and
2989         __distance_type() with iterator_traits, eliminated auxiliary
2990         support functions required to support said function usage.
2991         Changed nonstandard distance() call to standard call.
2992
2993         * include/bits/stl_algobase.h: Same.
2994         * include/bits/stl_heap.h: Same.
2995         * include/bits/stl_numeric.h: Same.
2996         * include/bits/stl_uninitialized.h: Same.
2997         * include/bits/stl_iterator_base_types.h (__value_type()):
2998         Removed.
2999         (__distance_type()): Removed.
3000         (value_type()): Gone.
3001         (distance_type()): Done in.
3002         (iterator_category()): Hasta la vista, baby.
3003
3004         * include/bits/stl_iterator_base_funcs.h (iterator_category()):
3005         Replaced with __iterator_category().
3006         * include/backward/iterator.h: moved definition of value_type(),
3007         distance_type(), and iterator_category() out of std:: and into
3008         here.
3009         * testsuite/23_containers/vector_ctor.cc (test03): New testcases.
3010         * testsuite/23_containers/vector_modifiers.cc (test03): New testcases.
3011         * testsuite/25_algorithms/rotate.cc: New testcase.
3012         * testsuite/25_algorithms/copy.cc: New testcase.
3013         * testsuite/25_algorithms/sort.cc: Same.
3014         * testsuite/25_algorithms/heap.cc: Same.
3015         * testsuite/25_algorithms/partition.cc: Same.
3016         * testsuite/25_algorithms/binary_search.cc: Same.
3017         * testsuite/26_numerics/sum_diff.cc: Ditto.
3018
3019 001-07-17  Benjamin Kosnik  <bkoz@redhat.com>
3020
3021         * testsuite/README: Add notes on naming test cases.
3022         * testsuite/22_locale/members.cc: Mark as xfail.
3023         * testsuite/22_locale/numpunct_char_members.cc: Same.
3024
3025 2001-07-16  Stephen M. Webb  <stephen@bregmasoft.com>
3026
3027         * acinclude.m4 (GLIBCPP_ENABLE_CHEADERS):  Use glibcpp_srcdir when
3028         setting C_INCLUDE_DIR.
3029         * configure.in:  Revert yesterday's LN_S change.
3030         * aclocal.m4:  Regenerate.
3031         * configure:  Regenerate.
3032
3033 2001-07-15  Phil Edwards  <pme@sources.redhat.com>
3034
3035         * configure.in:  Temporarily force LN_S to copy instead of symlink.
3036         * configure:  Regenerate.
3037
3038 2001-07-13  Phil Edwards  <pme@sources.redhat.com>
3039
3040         * include/bits/std_sstream.h (basic_stringbuf::basic_stringbuf(string):
3041         Initialize _M_string with pointer-and-size constructor, not just
3042         pointer.  Fix some comments.
3043         * testsuite/21_strings/ctor_copy_dtor.cc (test03):  New test.
3044         * testsuite/27_io/stringbuf.cc (test02):  Remove unused variable.
3045         (test03):  Add embedded-NUL tests.
3046
3047         * mkcheck.in:  When printing totals, match the order of the tests.
3048         * include/bits/stringfwd.h:  Use same declaration keywords.
3049         * include/bits/std_iosfwd.h:  Cosmetic spacing.
3050
3051 2001-07-13  Stephen M. Webb  <stephen@bregmasoft.com>
3052             Loren J. Rittle  <ljrittle@acm.org>
3053             Phil Edwards  <pme@sources.redhat.com>
3054
3055         * include/Makefile.am:  New file encapsulating header generation rules.
3056         * Makefile.am (SUBDIRS):  Prepend 'include' directory.
3057         * acinclude.m4:  Moved/removed rules for building various headers.
3058         * configure.in (AC_OUTPUT):  Add include/Makefile.
3059         * mkc++config:  Removed.
3060
3061         * testsuite_flags.in:  Changed build-includes to match new scheme.
3062         * mknumeric_limits:  Likewise.
3063         * libio/Makefile.am:  Changed INCLUDES to maatch new header scheme.
3064         * libmath/Makefile.am:  Likewise.
3065         * libsupc++/Makefile.am:  Likewise.
3066         * src/Makefile.am:  Likewise; removed rules to build headers.
3067         * libmath/mathconf.h:  Changed #include'd header names to match.
3068         * libmath/stubs.c:  Likewise.
3069         * src/gen-num-limits.cc:  Likewise.
3070
3071         * configure:  Regenerated.
3072         * config.h.in:  Regenerated.
3073         * aclocal.m4:  Regenerated.
3074         * Makefile.in:  Regenerated.
3075         * include/Makefile.in:  Regenerated.
3076         * libio/Makefile.in:  Regenerated.
3077         * libmath/Makefile.in:  Regenerated.
3078         * libsupc++/Makefile.in:  Regenerated.
3079         * src/Makefile.in:  Regenerated.
3080         * testsuite/Makefile.in:  Regenerated.
3081
3082 2001-07-11   Felix Natter  <fnatter@gmx.net>
3083
3084         * docs/html/17_intro/porting-howto.xml:  Initial checkin of
3085         master copy.
3086         * docs/html/17_intro/porting-howto.html:  check in v0.9.3
3087
3088 2001-07-11  Phil Edwards  <pme@sources.redhat.com>
3089
3090         * docs/doxygen/run_doxygen:  Don't keep output from previous run.
3091         * docs/doxygen/user.cfg.in:  Tweaks.
3092         * include/bits/c++config:  Documentation comments for Doxygen.
3093         * include/bits/char_traits.h:  Likewise.
3094         * include/bits/limits_generic.h:  Likewise.
3095         * include/bits/std_stdexcept.h:  Likewise.
3096         * include/bits/stl_pair.h:  Likewise.
3097         * libsupc++/exception:  Likewise.
3098         * libsupc++/new:  Likewise.
3099         * libsupc++/typeinfo:  Likewise.
3100         * libmath/Makefile.am:  Update and correct copyright.
3101
3102 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3103
3104         * acinclude.m4: Don't AC_REPLACE_MATHFUNCS expf and atan2f.
3105         * aclocal.m4: Regenerate.
3106         * configure: Same.
3107
3108 2001-07-09  Phil Edwards  <pme@sources.redhat.com>
3109
3110         * docs/html/configopts.html:  Fix thinko.
3111         * docs/html/27_io/howto.html:  Fix thinko and HTML markup.
3112         * include/bits/stl_iterator.h:  Fix typo.
3113
3114 2001-07-09  Phil Edwards  <pme@sources.redhat.com>
3115
3116         * docs/html/explanations.html:  New file.
3117         * docs/html/configopts.html:  Link to it to provide more notes
3118         on cstdio.  Minor markup and spacing fixes.
3119         * docs/html/27_io/howto.html:  Talk about sync_with_stdio.
3120
3121 2001-07-09  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3122
3123         * include/bits/valarray_meta.h (_Expr::operator+): Use qualified id
3124         for _Expr template template argument.
3125         (_Expr::operator-): Likewise.
3126         (_Expr::operator~): Likewise.
3127         (_Expr::operator!): Likewise.
3128         (_DEFINE_EXPR_UNARY_OPERATOR): Likewise.
3129
3130 2001-07-06  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3131
3132         * libmath/Makefile.am (EXTRA_DIST): Remove atan2f.c and expf.c
3133         * libmath/Makefile.in: Regenerate.
3134         * libmath/expf.c: Remove.
3135         * libmath/atan2f.c: Likewise.
3136
3137 2001-07-06  Daniel Jacobowitz  <drow@mvista.com>
3138
3139         * configure.in: Remove NATIVE, NULL_TARGET.
3140         Set CANADIAN only for Canadian crosses.  Set xcompiling
3141         for both Canadian crosses and host-x-host crosses.
3142         * configure: Regenerated.
3143
3144 2001-07-06  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
3145
3146         * include/bits/stl_vector.h (vector::_M_initialize_aux): Fix typo.
3147
3148 2001-07-05  Jason Merrill  <jason_merrill@redhat.com>
3149
3150         * testsuite_flags.in (--build-includes): backward, not backwards.
3151
3152 2001-07-04  Jeffrey Oldham  <oldham@codesourcery.com>
3153
3154         * include/ext/ropeimpl.h (_Rope_RopeRep::_M_free_c_string):
3155         Replace destroy by _Destroy.
3156         (_Rope_RopeRep::_S_free_string): Likewise.
3157         (rope::c_str()): Likewise.
3158         * include/ext/slist (_Slist_base::_M_erase_after>): Likewise.
3159         (_Slist_base::_M_erase_after): Likewise.
3160         (slist::_M_create_node): Replace construct by _Construct.
3161         (slist::pop_front): Replace destroy by _Destroy.
3162         * include/ext/stl_hashtable.h (hashtable::_M_new_node): Replace
3163         construct by _Construct.
3164         (hashtable::_M_delete_node): Replace destroy by _Destroy.
3165         * include/ext/stl_rope.h (rope::rope): Replace construct by
3166         _Construct.
3167         (rope::copy): Replace destroy by _Destroy.
3168
3169 2001-07-03  Benjamin Kosnik  <bkoz@redhat.com>
3170
3171         * include/bits/localefwd.h: Format.
3172         * include/bits/locale_facts.tcc (locale::combine): Adjust.
3173         * src/locale.cc (locale::locale::(_Impl)): Don't call
3174         _M_add_reference.
3175         (locale::facet::_M_remove_reference): Simplify.
3176         * src/globals.cc (locale_impl_c): New. Format.
3177         (locale_c): New.
3178         * src/ios.cc (ios_base::Init::Init): Increment _S_ios_base_init last.
3179
3180 2001-07-02  Loren J. Rittle  <ljrittle@acm.org>
3181
3182         * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Protect variable from shell
3183         expansion (thanks to Alexandre Oliva).
3184         * aclocal.m4: Regenerate.
3185         * configure: Regenerate.
3186
3187 2001-07-02  Benjamin Kosnik  <bkoz@redhat.com>
3188
3189         * src/locale.cc (locale::locale(const char*)): Make sure global
3190         locales are initialized.
3191         * include/bits/locale_facets.tcc (locale::combine): Refcout should
3192         be zero, not one as it's return-by-value.
3193         * testsuite/27_io/ios_base_callbacks.cc (test01): Don't check for
3194         named locales here.
3195         * testsuite/22_locale/ctor_copy_dtor.cc (test01): Instead, check
3196         for it here.
3197         (test02): Add test.
3198         * libsupc++/eh_alloc.cc: Use climits, not limits.h.
3199
3200 2001-07-02  Loren J. Rittle  <ljrittle@acm.org>
3201
3202         libstdc++/3284
3203         * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Portability enhancement.
3204         * aclocal.m4: Regenerate.
3205         * configure: Regenerate.
3206
3207 2001-07-02  Loren J. Rittle  <ljrittle@acm.org>
3208
3209         libstdc++/3243
3210         * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Add relative path to
3211         staged/installed area to support -I-.  Document.
3212         * aclocal.m4: Regenerate.
3213         * configure: Regenerate.
3214
3215 2001-07-02  Loren J. Rittle  <ljrittle@acm.org>
3216
3217         libstdc++/2211
3218         * src/ios.cc (ios_base::Init::_S_ios_create): Rename __bufsize to
3219         __out_bufsize.  Add __in_bufsize, document it and use it.
3220
3221 2001-07-01  Stephen M. Webb <stephen@bregmasoft.com>
3222
3223         * include/bits/stl_construct.h (construct): Remove.
3224         (destroy): Remove.
3225         (__destroy): Replaced by use of iterator_traits.
3226         * include/bits/stl_deque.h: replaced HP iterator functions with
3227         iterator_traits.
3228         (construct): changed to _Construct.
3229         (destroy): changed to _Destroy.
3230         * include/bits/stl_tempbuf.h: Same.
3231         * include/bits/stl_tree.h: Same.
3232         * include/bits/stl_vector.h: Same.
3233         * include/backward/iterator.h (construct): moved definition to here.
3234         (destroy): Same.
3235
3236 2001-06-29  Benjamin Kosnik  <bkoz@redhat.com>
3237
3238         * include/bits/locale_facets.tcc (locale::combine): Clone _Impl.
3239         before replacing facet.
3240         * include/bits/localefwd.h (locale::_Impl::_M_remove_reference):
3241         Correct decrement.
3242         * src/localename.cc (locale::_Impl): Correct ctor initialization
3243         lists. Initialize ref count with one. Simplify.
3244         * src/locale.cc: Add comment.
3245         * testsuite/22_locale/numpunct.cc (test01): Add derivation test.
3246         * testsuite/22_locale/numpunct_char_members.cc (test01): Add tests.
3247         * testsuite/22_locale/members.cc (test02): Fix.
3248
3249 2001-06-27  Phil Edwards  <pme@sources.redhat.com>
3250
3251         * include/backward/algo.h:  Add "GPL plus runtime exception" comment
3252         block, this time for real.
3253         * include/backward/algobase.h:  Likewise.
3254         * include/backward/alloc.h:  Likewise.
3255         * include/backward/bvector.h:  Likewise.
3256         * include/backward/defalloc.h:  Likewise.
3257         * include/backward/deque.h:  Likewise.
3258         * include/backward/function.h:  Likewise.
3259         * include/backward/hash_map.h:  Likewise.
3260         * include/backward/hash_set.h:  Likewise.
3261         * include/backward/hashtable.h:  Likewise.
3262         * include/backward/heap.h:  Likewise.
3263         * include/backward/iterator.h:  Likewise.
3264         * include/backward/list.h:  Likewise.
3265         * include/backward/map.h:  Likewise.
3266         * include/backward/multimap.h:  Likewise.
3267         * include/backward/multiset.h:  Likewise.
3268         * include/backward/pair.h:  Likewise.
3269         * include/backward/rope.h:  Likewise.
3270         * include/backward/set.h:  Likewise.
3271         * include/backward/slist.h:  Likewise.
3272         * include/backward/stack.h:  Likewise.
3273         * include/backward/strstream:  Likewise.
3274         * include/backward/tempbuf.h:  Likewise.
3275         * include/backward/tree.h:  Likewise.
3276         * include/backward/vector.h:  Likewise.
3277         * include/bits/pthread_allocimpl.h:  Likewise.
3278         * include/bits/std_algorithm.h:  Likewise.
3279         * include/bits/std_bitset.h:  Likewise.
3280         * include/bits/std_deque.h:  Likewise.
3281         * include/bits/std_functional.h:  Likewise.
3282         * include/bits/std_iterator.h:  Likewise.
3283         * include/bits/std_list.h:  Likewise.
3284         * include/bits/std_map.h:  Likewise.
3285         * include/bits/std_memory.h:  Likewise.
3286         * include/bits/std_numeric.h:  Likewise.
3287         * include/bits/std_queue.h:  Likewise.
3288         * include/bits/std_set.h:  Likewise.
3289         * include/bits/std_stack.h:  Likewise.
3290         * include/bits/std_utility.h:  Likewise.
3291         * include/bits/std_vector.h:  Likewise.
3292         * include/bits/stl_algo.h:  Likewise.
3293         * include/bits/stl_algobase.h:  Likewise.
3294         * include/bits/stl_alloc.h:  Likewise.
3295         * include/bits/stl_bvector.h:  Likewise.
3296         * include/bits/stl_construct.h:  Likewise.
3297         * include/bits/stl_deque.h:  Likewise.
3298         * include/bits/stl_function.h:  Likewise.
3299         * include/bits/stl_heap.h:  Likewise.
3300         * include/bits/stl_iterator.h:  Likewise.
3301         * include/bits/stl_iterator_base_funcs.h:  Likewise.
3302         * include/bits/stl_iterator_base_types.h:  Likewise.
3303         * include/bits/stl_list.h:  Likewise.
3304         * include/bits/stl_map.h:  Likewise.
3305         * include/bits/stl_multimap.h:  Likewise.
3306         * include/bits/stl_multiset.h:  Likewise.
3307         * include/bits/stl_numeric.h:  Likewise.
3308         * include/bits/stl_pair.h:  Likewise.
3309         * include/bits/stl_pthread_alloc.h:  Likewise.
3310         * include/bits/stl_queue.h:  Likewise.
3311         * include/bits/stl_raw_storage_iter.h:  Likewise.
3312         * include/bits/stl_relops.h:  Likewise.
3313         * include/bits/stl_set.h:  Likewise.
3314         * include/bits/stl_stack.h:  Likewise.
3315         * include/bits/stl_tempbuf.h:  Likewise.
3316         * include/bits/stl_threads.h:  Likewise.
3317         * include/bits/stl_tree.h:  Likewise.
3318         * include/bits/stl_uninitialized.h:  Likewise.
3319         * include/bits/stl_vector.h:  Likewise.
3320         * include/bits/type_traits.h:  Likewise.
3321         * include/ext/hash_map:  Likewise.
3322         * include/ext/hash_set:  Likewise.
3323         * include/ext/rope:  Likewise.
3324         * include/ext/ropeimpl.h:  Likewise.
3325         * include/ext/slist:  Likewise.
3326         * include/ext/stl_hash_fun.h:  Likewise.
3327         * include/ext/stl_hashtable.h:  Likewise.
3328         * include/ext/stl_rope.h:  Likewise.
3329         * src/bitset.cc:  Likewise.
3330         * src/strstream.cc:  Likewise.
3331
3332 2001-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3333                              <vakatov@ncbi.nlm.nih.gov>
3334
3335         libstdc++/3272
3336         * include/bits/streambuf.tcc (__copy_streambufs): Don't set eofbit.
3337         * testsuite/27_io/ostream_inserter_other.cc (test04): Add test.
3338         * testsuite/27_io/istream_extractor_other.cc: Fix.
3339
3340 2001-06-26  Zoltan Hidvegi  <hzoli@austin.ibm.com>
3341
3342         * acinclude.m4 (glibcpp_toolexeclibdir): Make multilib safe.
3343         * aclocal.m4: Regenerate.
3344         * configure: Regenerate.
3345
3346 2001-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3347
3348         * include/bits/stream_iterator.h (istream_iterator): Add copy ctor.
3349         (ostream_iterator): Same.
3350         * include/bits/stl_iterator.h (front_insert_iterator::operator=):
3351         Change argument to const_reference.
3352         (back_insert_iterator): Same.
3353
3354 2001-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3355
3356         * include/bits/sbuf_iter.h: Change to..
3357         * include/bits/streambuf_iterator.h: This.
3358         * include/bits/stl_iterator.h: Take out of here...
3359         * include/bits/stream_iterator.h: Add.
3360         * src/Makefile.am (base_headers): Add streambuf_iterator,
3361         stream_iterator.h
3362         * src/Makefile.in: Regenerate.
3363         * include/bits/std_string.h: Adjust includes.
3364         * include/bits/basic_ios.h: Same.
3365         * include/bits/locale_facets.tcc: Same.
3366         * include/bits/std_iosfwd.h: Same.
3367
3368         * include/bits/std_iterator.h: Add istream, ostream includes.
3369         * include/bits/stl_iterator.h: Tweak.
3370         * testsuite/24_iterators/ostream_iterator.cc: Add test.
3371         * testsuite/24_iterators/istream_iterator.cc: Same.
3372         * testsuite/23_containers/multiset.cc: Add iterator include.
3373
3374 2001-06-26  Phil Edwards  <pme@sources.redhat.com>
3375
3376         * acinclude.m4:  Clean extraneous tabs, rewrap 'test' lines.
3377         * aclocal.m4:  Regenerate.
3378         * configure:  Regenerate.
3379
3380 2001-06-26  Felix Natter  <f.natter@ndh.net>
3381
3382         * docs/html/17_intro/porting-howto.html:  Fixed some errors.
3383
3384 2001-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3385
3386         * include/bits/stl_iterator.h (istream_iterator::operator->): Fix
3387         return values.
3388         (istream_iterator::operator*): Same.
3389
3390 2001-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3391             Alexandre Petit-Bianco  <apbianco@redhat.com>
3392
3393         * testsuite/21_strings/element_access.cc (test01): Chill Out Cafe
3394         is on 41st, not 14th.
3395
3396 2001-06-26  Benjamin Kosnik  <bkoz@redhat.com>
3397
3398         * include/bits/std_iterator.h: Include sbuf_iter.h via std_ios.h.
3399
3400         * include/bits/stl_iterator.h (istream_iterator): Inherit from
3401         iterator.
3402         (ostream_iterator): Same.
3403         * testsuite/24_iterators/istream_iterator.cc: New file.
3404         * testsuite/24_iterators/ostream_iterator.cc: New file.
3405
3406         * include/bits/sbuf_iter.h: Remove self typedef.
3407         * testsuite/24_iterators/ostreambuf_iterator.cc: Add test.
3408         * testsuite/24_iterators/istreambuf_iterator.cc: Add test.
3409
3410         * include/bits/stl_iterator.h (reverse_iterator): Remove
3411         extraneous typedefs. Add typename.
3412         (__normal_iterator): Remove typedefs referring to self. Add typename.
3413         (reverse_bidiretional_iterator): Remove, not longer required.
3414
3415 2001-06-26  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3416
3417         * include/bits/stl_iterator.h (__normal_iterator<>): Qualify
3418         dependent names with `typename'.  Bring in various required
3419         iterator_traits members.  Can't imagine why that used to work.
3420
3421 2001-06-25  Phil Edwards  <pme@sources.redhat.com>
3422             Kurt Garloff <garloff@suse.de>
3423
3424         PR libstdc++/3377
3425         * src/cmath.cc:  New [version of an old] file; instantiate
3426         __cmath_power to start with.
3427         * src/Makefile.am (sources):  Add cmath.cc (and alphabetize).
3428         * Makefile.in:  Regenerate.
3429         * libio/Makefile.in:  Regenerate.
3430         * libmath/Makefile.in:  Regenerate.
3431         * libsupc++/Makefile.in:  Regenerate.
3432         * src/Makefile.in:  Regenerate.
3433         * testsuite/Makefile.in:  Regenerate.
3434
3435 2001-06-24  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3436
3437         * libmath/stubs.c: Fix thinko.
3438
3439 2001-06-24  David Edelsohn <dje@watson.ibm.com>
3440
3441         * libmath/stubs.c (sqrtf): Define.
3442         (tanf): Correct typo.
3443
3444 2001-06-22  Benjamin Kosnik  <bkoz@redhat.com>
3445
3446         * include/bits/stl_iterator.h (reverse_iterator): Inherit from
3447         iterator.
3448         (back_insert_iterator): Same.
3449         (front_insert_iterator): Same.
3450         (insert_iterator): Same.
3451
3452         * testsuite/20_util/raw_storage_iterator.cc: Modify.
3453         * testsuite/24_iterators/reverse_iterator.cc: New file.
3454         * testsuite/24_iterators/back_insert_iterator.cc: New file.
3455         * testsuite/24_iterators/front_insert_iterator.cc: New file.
3456         * testsuite/24_iterators/insert_iterator.cc: New file.
3457
3458 2001-06-22  Phil Edwards  <pme@sources.redhat.com>
3459
3460         * include/*:  Revert comment/license change from yesterday for all
3461         except libsupc++/unwind-cxx.h.
3462         * src/bitset.cc:  Likewise.
3463         * src/strstream.cc:  Likewise.
3464
3465 2001-06-22  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3466
3467         * libmath/stubs.c: New file.
3468         (tanhf): Fix typo.
3469         (powf): Likewise.
3470
3471         * libmath/Makefile.am (libmath_la_SOURCES): Add.
3472         * libmath/Makefile.in.  Regenerate.
3473
3474 2001-06-21  Phil Edwards  <pme@sources.redhat.com>
3475
3476         * include/backward/algo.h:  Add "GPL plus runtime exception" comment.
3477         * include/backward/algobase.h:  Likewise.
3478         * include/backward/alloc.h:  Likewise.
3479         * include/backward/bvector.h:  Likewise.
3480         * include/backward/defalloc.h:  Likewise.
3481         * include/backward/deque.h:  Likewise.
3482         * include/backward/function.h:  Likewise.
3483         * include/backward/hash_map.h:  Likewise.
3484         * include/backward/hash_set.h:  Likewise.
3485         * include/backward/hashtable.h:  Likewise.
3486         * include/backward/heap.h:  Likewise.
3487         * include/backward/iterator.h:  Likewise.
3488         * include/backward/list.h:  Likewise.
3489         * include/backward/map.h:  Likewise.
3490         * include/backward/multimap.h:  Likewise.
3491         * include/backward/multiset.h:  Likewise.
3492         * include/backward/pair.h:  Likewise.
3493         * include/backward/rope.h:  Likewise.
3494         * include/backward/set.h:  Likewise.
3495         * include/backward/slist.h:  Likewise.
3496         * include/backward/stack.h:  Likewise.
3497         * include/backward/strstream:  Likewise.
3498         * include/backward/tempbuf.h:  Likewise.
3499         * include/backward/tree.h:  Likewise.
3500         * include/backward/vector.h:  Likewise.
3501         * include/bits/pthread_allocimpl.h:  Likewise.
3502         * include/bits/std_algorithm.h:  Likewise.
3503         * include/bits/std_bitset.h:  Likewise.
3504         * include/bits/std_deque.h:  Likewise.
3505         * include/bits/std_functional.h:  Likewise.
3506         * include/bits/std_iterator.h:  Likewise.
3507         * include/bits/std_list.h:  Likewise.
3508         * include/bits/std_map.h:  Likewise.
3509         * include/bits/std_memory.h:  Likewise.
3510         * include/bits/std_numeric.h:  Likewise.
3511         * include/bits/std_queue.h:  Likewise.
3512         * include/bits/std_set.h:  Likewise.
3513         * include/bits/std_stack.h:  Likewise.
3514         * include/bits/std_utility.h:  Likewise.
3515         * include/bits/std_vector.h:  Likewise.
3516         * include/bits/stl_algo.h:  Likewise.
3517         * include/bits/stl_algobase.h:  Likewise.
3518         * include/bits/stl_alloc.h:  Likewise.
3519         * include/bits/stl_bvector.h:  Likewise.
3520         * include/bits/stl_construct.h:  Likewise.
3521         * include/bits/stl_deque.h:  Likewise.
3522         * include/bits/stl_function.h:  Likewise.
3523         * include/bits/stl_heap.h:  Likewise.
3524         * include/bits/stl_iterator.h:  Likewise.
3525         * include/bits/stl_iterator_base_funcs.h:  Likewise.
3526         * include/bits/stl_iterator_base_types.h:  Likewise.
3527         * include/bits/stl_list.h:  Likewise.
3528         * include/bits/stl_map.h:  Likewise.
3529         * include/bits/stl_multimap.h:  Likewise.
3530         * include/bits/stl_multiset.h:  Likewise.
3531         * include/bits/stl_numeric.h:  Likewise.
3532         * include/bits/stl_pair.h:  Likewise.
3533         * include/bits/stl_pthread_alloc.h:  Likewise.
3534         * include/bits/stl_queue.h:  Likewise.
3535         * include/bits/stl_raw_storage_iter.h:  Likewise.
3536         * include/bits/stl_relops.h:  Likewise.
3537         * include/bits/stl_set.h:  Likewise.
3538         * include/bits/stl_stack.h:  Likewise.
3539         * include/bits/stl_tempbuf.h:  Likewise.
3540         * include/bits/stl_threads.h:  Likewise.
3541         * include/bits/stl_tree.h:  Likewise.
3542         * include/bits/stl_uninitialized.h:  Likewise.
3543         * include/bits/stl_vector.h:  Likewise.
3544         * include/bits/type_traits.h:  Likewise.
3545         * include/ext/hash_map:  Likewise.
3546         * include/ext/hash_set:  Likewise.
3547         * include/ext/rope:  Likewise.
3548         * include/ext/ropeimpl.h:  Likewise.
3549         * include/ext/slist:  Likewise.
3550         * include/ext/stl_hash_fun.h:  Likewise.
3551         * include/ext/stl_hashtable.h:  Likewise.
3552         * include/ext/stl_rope.h:  Likewise.
3553         * libsupc++/unwind-cxx.h:  Likewise.
3554         * src/bitset.cc:  Likewise.
3555         * src/strstream.cc:  Likewise.
3556
3557 2001-06-21  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3558
3559         * include/bits/indirect_array.h (indirect_array<>::operator=):
3560         Make copy and assignment operator public.  Implement.  Format.
3561
3562         * include/bits/valarray_array.h (__valarray_copy): Add overloads
3563         for copy between index arrays.  Format.
3564
3565 2001-06-19  Benjamin Kosnik  <bkoz@redhat.com>
3566
3567         * mknumeric_limits: Add static definitions, format.
3568         * testsuite/18_support/numeric_limits.cc (test02): Add test.
3569
3570         * include/c_std/bits/std_cwchar.h: Include ctime.
3571         * testsuite/17_intro/header_cwchar.cc : Check.
3572
3573         * include/c_std/bits/std_cwctype.h: Inject wctype.
3574         * testsuite/17_intro/header_cwctype.cc: Update.
3575
3576 2001-06-18  Benjamin Kosnik  <bkoz@redhat.com>
3577
3578         * include/bits/stl_raw_storage_iter.h: Format. Correct derivation.
3579         * testsuite/20_util/raw_storage_iterator.cc: Same.
3580
3581         * include/bits/stl_alloc.h (_S_chunk_alloc): Change malloc to
3582         operator new.
3583         (__mem_interface): New typedef for switching between malloc and new.
3584         * testsuite/20_util/allocator_members.cc: New file.
3585
3586         * testsuite/20_util/comparisons.cc: New file.
3587         * testsuite/20_util/pairs.cc: New file.
3588
3589 2001-06-15  Phil Edwards  <pme@sources.redhat.com>
3590
3591         * docs/html/documentation.html:  Point to new doxygen'ed collection.
3592
3593 2001-06-14  Nathan Sidwell  <nathan@codesourcery.com>
3594
3595         * configure.in (auxdir): Replace by ...
3596         (toprel): ... new variable.
3597         (toplevel_srcdir): Construct from $toprel.
3598         * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Use $toprel
3599         rather than .. to locate gcc source directory.
3600         (GLIBCPP_CONFIGURE): Replace $auxdir with $srcdir/$toprel.
3601         * aclocal.m4, configure: Rebuilt.
3602
3603 2001-06-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3604
3605         (Approved by Mark and Benjamin.  Applied by Loren.)
3606
3607         * src/globals.cc: Define globals _GLIBCPP_mutex_init (),
3608         _GLIBCPP_mutex_address_init (), _GLIBCPP_once, _GLIBCPP_mutex
3609         and _GLIBCPP_mutex_address.
3610         * include/bits/stl_threads.h (_STL_mutex_lock): Use above to provide
3611         once-only runtime initialization of _M_lock mutex when
3612         __GTHREAD_MUTEX_INIT_FUNCTION is defined.
3613         (__STL_MUTEX_INITIALIZER): Provide initializer for _STL_mutex_lock
3614         for __GTHREAD_MUTEX_INIT_FUNCTION case.
3615
3616 2001-06-13  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3617
3618         * testsuite/26_numerics/slice_array_assignment.cc (main): New test.
3619
3620         * include/bits/slice_array.h (slice_array<>::operator=): Make
3621         public and implement.
3622         (slice_array<>::slice_array): Make copy-constructor public.
3623
3624         * include/bits/valarray_array.h (__valarray_copy): Add another
3625         overload to copy between strided arrays.
3626
3627 2001-06-13  Benjamin Kosnik  <bkoz@redhat.com>
3628
3629         * acinclude.m4 (GLIBCPP_CONFIGURE): Bump version to 3.0.0.
3630         * aclocal.m4: Regenerate.
3631         * configure: Regenerate.
3632         * include/bits/c++config (__GLIBCPP__): Update date.
3633
3634 2001-06-12  Benjamin Kosnik  <bkoz@redhat.com>
3635
3636         * include/bits/fpos.h (fpos::operator-): Don't return reference,
3637         return original, non-modified version.
3638         (fpos::operator+): Same.
3639         * testsuite/27_io/fpos.cc: Add test.
3640
3641 2001-06-12  Loren J. Rittle  <ljrittle@acm.org>
3642
3643         libstdc++/2071
3644         * porting.texi: Add documentation about libstdc++-v3-specific
3645         macros that are currently included in os_defines.h files.
3646
3647         * config/basic_file_stdio.h (sys_getc): New method.
3648         (sys_ungetc): New method.
3649         * include/bits/basic_file.h: (sys_getc): New method signature.
3650         (sys_ungetc): New method signature.
3651
3652         * include/bits/fstream.tcc (underflow): Add conditional code
3653         paths which avoid using short seeks on streams (especially
3654         useful when the stream might be interactive or a pipe).  At
3655         the moment, this alternate path only avoids seeking when the
3656         ``buffer size'' of underflow() is 1 since the C standard only
3657         guarantees buffer space for one ungetc (this technique could
3658         be extended since *-*-solaris* supports buffering for 4 calls
3659         to ungetc and *-*-*bsd* supports buffering limited only by
3660         memory resources).  Also, _GLIBCPP_AVOID_FSEEK must be defined
3661         in a port's os_defines.h file for this alternate path to even
3662         be considered.  As a bonus, the idiom of using getc/ungetc
3663         requires no system calls whereas fseek maps to one or two
3664         system call(s) on many platforms.
3665
3666         * config/os/bsd/freebsd/bits/os_defines.h (_GLIBCPP_AVOID_FSEEK):
3667         Define it.
3668         * config/os/solaris/solaris2.5/bits/os_defines.h
3669         (_GLIBCPP_AVOID_FSEEK): Likewise.
3670         * config/os/solaris/solaris2.6/bits/os_defines.h
3671         (_GLIBCPP_AVOID_FSEEK): Likewise.
3672         * config/os/solaris/solaris2.7/bits/os_defines.h
3673         (_GLIBCPP_AVOID_FSEEK): Likewise.
3674
3675 2001-06-12  Benjamin Kosnik  <bkoz@redhat.com>
3676
3677         * acinclude.m4 (GLIBCPP_CHECK_COMPILER_VERSION): Change to
3678         AC_TRY_COMPILE, so that the built compiler is checked, and
3679         bootstraps or cross compiles with an older compile still work.
3680         * aclocal.m4: Regenerate.
3681         * configure: Regenerate.
3682
3683 2001-06-12  Benjamin Kosnik  <bkoz@redhat.com>
3684
3685         libstdc++/3142
3686         * include/bits/std_sstream.h: Add allocator_type, as per DR 251.
3687
3688         libstdc++/3141
3689         * include/bits/istream.tcc (getline, get): Fix as per DR 243.
3690
3691         libstdc++/3140
3692         * include/bits/std_bitset.h (bitset::set): Fix as per DR 186.
3693
3694         libstdc++/3139
3695         * include/bits/limits_generic.h: Fix as per DR 184.
3696
3697 2001-06-11  Benjamin Kosnik  <bkoz@redhat.com>
3698
3699         libstdc++/3126
3700         * include/bits/basic_string.h (string::compare): Adjust signatures
3701         as per DR 5.
3702         * include/bits/basic_string.tcc: And here.
3703
3704         libstdc++/2346
3705         * config/c_io_stdio.h: Remove whitespace.
3706         * testsuite/27_io/istream_seeks.cc (test03): Add regression.
3707         (test02): Add regression.
3708         * testsuite/27_io/istream_seeks-3.tst: New file.
3709
3710 2001-06-11  Phil Edwards  <pme@sources.redhat.com>
3711
3712         * README:  Update to reflect reality.
3713         * acinclude.m4:  Update descriptions, fix typos.  Comment changes only.
3714         * configure.in:  Make certain target_alias is set and subst'd for 2.50.
3715         * aclocal.m4:  Regenerate.
3716         * configure:  Regenerate (with 2.13).
3717
3718 2001-06-11  Benjamin Kosnik  <bkoz@redhat.com>
3719
3720         libstdc++/3114
3721         * include/bits/ostream.tcc (ostream::seekp): Add error checking as
3722         per DR 129.
3723         * include/bits/istream.tcc (istream::seekg): Same.
3724         * testsuite/27_io/istream_seeks.cc: Fix.
3725
3726         libstdc++/3113
3727         * include/bits/stl_function.h (binder2nd): Fix as per DR 109.
3728         (binder1st): Same.
3729         * include/bits/std_queue.h: Add c++config.h.
3730         * testsuite/20_util/binders.cc: New test.
3731
3732 2001-06-11  Matthias Klose  <doko@debian.org>
3733             Phil Edwards  <pme@sources.redhat.com>
3734
3735         * docs/doxygen/run_doxygen (find_doxygen):  Tweak version check.
3736         (main script):  Echo more information.
3737
3738 2001-06-10  Benjamin Kosnik  <bkoz@redhat.com>
3739
3740         * include/c_std/bits/std_cwchar.h: Alphabetize.
3741         * include/bits/char_traits.h: Tweak.
3742         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for
3743         everything used by std_cwchar.h.
3744         * aclocal.m4: Regenerate.
3745         * configure.in: Regenerate.
3746         * config.h.in: Regenerate.
3747
3748 2001-06-10  Benjamin Kosnik  <bkoz@redhat.com>
3749
3750         * acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking.
3751         Add checking for strtof, _Exit in stdlib.h
3752         * aclocal.m4: Regenerate.
3753         * configure.in: Regenerate.
3754         * include/c_std/bits/std_cstdio.h: Alphabetize lists.
3755         (snprintf): Put C99 functions into __gnu_cxx namespace.
3756         (vfscanf): Same.
3757         (vscanf): Same.
3758         (vsnprintf): Same.
3759         (vsscanf): Same.
3760         * include/c_std/bits/std_cstdlib.h: Alphabetize lists. Put undefs
3761         for C99 functions within _GLIBCPP_USE_C99 guard.
3762         (_Exit): Same.
3763         (strtof): Same.
3764         (strtold): Same.
3765         * include/bits/locale_facets.tcc: Check if C99 is enabled.
3766         * include/c_std/bits/std_cwchar.h (__gnu_cxx): Put undefs within
3767         C99 guard.
3768         * include/c_std/bits/cmath.tcc: Formatting tweak.
3769         * include/c_std/bits/std_cmath.h: Same.
3770
3771 2001-06-10  Benjamin Kosnik  <bkoz@redhat.com>
3772
3773         * include/c_std/bits/std_cstdio.h: Include cstddef for size_t.
3774
3775 2001-06-09  Alexandre Oliva  <aoliva@redhat.com>
3776             Stephen L Moshier  <moshier@mediaone.net>
3777
3778         * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
3779         nothing, as in autoconf 2.50.
3780         * configure: Rebuilt.
3781
3782 2001-06-09  Benjamin Kosnik  <bkoz@redhat.com>
3783
3784         * include/c_std/bits/std_cwchar.h: Remove size_t injection,
3785         include std_cstddef.
3786         * include/c_std/bits/std_ctime.h: Same.
3787         * include/c_std/bits/std_cstring.h: Same.
3788         * include/c_std/bits/std_cstdlib.h: Same.
3789
3790         * include/c_std/bits/std_cstdio.h: Remove vsnprintf, snprintf.
3791         * include/c_std/bits/std_cctype.h: Remove isblank.
3792
3793 2001-06-09  Benjamin Kosnik  <bkoz@redhat.com>
3794
3795         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for fgetwc,
3796         fgetws.
3797         * aclocal.m4: Regenerate.
3798         * configure: Regenerate.
3799         * include/c_std/bits/std_cwchar.h: Remove duplicate fgetwc
3800         injection, guard fgetwc, fgetws.
3801         * include/c_std/bits/std_cstdio.h: Remove superfluous includes.
3802         * include/c_std/bits/std_clocale.h: And here.
3803         * include/c_std/bits/std_cctype.h: And here.
3804         * include/c_std/bits/std_cstdlib.h (strtof): Guard strtof injection.
3805
3806         * config/basic_file_stdio.h: Don't include unistd.h.
3807         * config/c_io_stdio.h: Don't use compatibility headers.
3808         * libsupc++/eh_terminate.cc: Qualify abort.
3809         (__terminate): And here.
3810         * libsupc++/eh_catch.cc (__cxa_end_catch): Qualify abort.
3811
3812 2001-06-08  Benjamin Kosnik  <bkoz@redhat.com>
3813
3814         * include/c_std/bits/std_cstdlib.h: Remove _Exit, strtof injections.
3815
3816 2001-06-08  Benjamin Kosnik  <bkoz@redhat.com>
3817
3818         libstdc++/2767
3819         libstdc++/2989
3820         libstdc++/2992
3821         * include/std/*: Add copyright notice.
3822         * include/c_std/bits/*: Use using statements instead of extern "C".
3823         * include/c_std/bits/std_cmath.h: Don't overload double versions
3824         of math functions with __buitin versions, use global version to
3825         prevent ambiguities. Remove define hacks.
3826         * include/c_std/bits/std_cwchar.h: Using declarations for "C"
3827         functions that have changed signatures and std::
3828         declarations. Remove define hacks.
3829         * include/c_std/bits/std_cwchar.h: Same, plus remove ambiguous
3830         __builtins in std::. Remove define hacks.
3831         * testsuite/17_intro/headers_c.cc: Add tests.
3832         * testsuite/17_intro/headers_c++.cc: Add test.
3833
3834 2001-06-07  Loren J. Rittle  <ljrittle@acm.org>
3835             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3836
3837         c++/3082
3838         * libsupc++/eh_alloc.cc: Ensure that required macros are
3839         defined before including gthr.h.  Ensure that we get the
3840         version of gthr.h for which we know how to provide a
3841         configuration.
3842         * libsupc++/eh_globals.cc: Likewise.  And, bring the threading
3843         code path into line with the current EH model.  Use std, where
3844         appropriate.
3845
3846 2001-06-07  Loren J. Rittle  <ljrittle@acm.org>
3847             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3848
3849         * config/threads-no.h: Remove file.
3850         * config/threads-posix.h: Remove file.
3851
3852         * acconfig.h (_GLIBCPP_USE_THREADS): Remove.
3853         (_GLIBCPP_SUPPORTS_WEAK): Add (required by namespace-clean gthr*.h).
3854         (_GLIBCPP_HAVE_GTHR_DEFAULT): Likewise.
3855         * config.h.in: Regenerate.
3856
3857         * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Completely rework to
3858         setup and use gthr*.h files.  In particular, make gthr.h files
3859         namespace-clean in the staging area (they don't have to be for
3860         libgcc.a).
3861         * aclocal.m4: Regenerate.
3862         * configure: Regenerate.
3863
3864         * src/Makefile.am (build_headers): Remove bits/c++threads.h
3865         and add bits/gthr.h bits/gthr-single.h bits/gthr-default.h.
3866         * src/Makefile.in: Regenerate.
3867
3868         * include/bits/c++config: Cleanup threading configuration macros.
3869         In particular, define __STL_GTHREADS macro which controls...
3870         * include/bits/stl_threads.h: ...a brand new gthr.h-based
3871         configuration here.
3872
3873         * config/c_io_stdio.h: Include staged gthr.h instead of local
3874         thread configuration file.  Always use __gthread_mutex_t
3875         instead of __mutext_type (or int).
3876         * include/bits/std_fstream.h: Likewise.
3877
3878         * docs/html/17_intro/howto.html: Remove placeholder comment in
3879         case this configuration patch didn't make it.  Add advice that
3880         section only applies if configured with --enable-threads.
3881         * docs/html/23_containers/howto.html: Reword to make clear
3882         that _PTHREADS is no longer required for any port to be
3883         correctly using STL with threads.  Add advice that section
3884         only applies if configured with --enable-threads.
3885
3886 2001-06-06  Benjamin Kosnik  <bkoz@redhat.com>
3887
3888         * src/string-inst.cc (_Rep::_S_max_size): Add instantiation.
3889
3890 2001-06-05  Benjamin Kosnik  <bkoz@redhat.com>
3891
3892         libstdc++/3045
3893         * include/bits/basic_ios.tcc: Formatting tweaks.
3894         * include/bits/ios_base.h: Formatting tweaks.
3895         * src/ios.cc (ios_base::Init::_S_ios_create): Use filebufs here.
3896         (ios_base::Init::_S_ios_destroy): ..and here. Explicitly call dtors.
3897         * src/globals.cc: Allocate filebufs for standard streams here.
3898         (buf_cout, buf_cin, buf_cerr): Like so.
3899         (buf_wcout, buf_wcin, buf_wcerr): And so.
3900         * testsuite/27_io/ios_init.cc: Add.
3901
3902 2001-06-04  Brendan Kehoe  <brendan@zen.org>
3903             Benjamin Kosnik  <bkoz@redhat.com>
3904
3905         libstdc++/3017
3906         * include/bits/locale_facets.h (ctype<_CharT>): Add definitions
3907         for generic ctype virtuals.
3908         * src/locale.cc: Minor tweaks, naming consistency.
3909         * testsuite/22_locale/ctype.cc: Add test.
3910
3911 2001-06-04  Kenny Simpson <theonetruekenny@yahoo.com>
3912             Phil Edwards  <pme@sources.redhat.com>
3913
3914         PR libstdc++/3035 and PR libstdc++/3036
3915         * include/bits/stl_pair.h:  Fix pair ctor and make_pair according
3916         to LWG DR 181 and 265.
3917
3918 2001-06-04  Phil Edwards  <pme@sources.redhat.com>
3919
3920         PR libstdc++/3034
3921         * include/bits/stl_multiset.h (find, lower_bound, upper_bound,
3922         equal_range):  Add const overloads as per LWG DR 214.
3923         * include/bits/stl_set.h:  Likewise.
3924
3925 2001-06-04  Brendan Kehoe  <brendan@zen.org>
3926             Phil Edwards  <pme@sources.redhat.com>
3927
3928         PR libstdc++/3018
3929         * include/bits/std_bitset.h (bitset::test):  Fix __pos >= _Nb
3930         comparison; all positions must be < _Nb.
3931         * testsuite/23_containers/bitset_members.cc:  New file.
3932
3933 2001-06-04  Brendan Kehoe  <brendan@zen.org>
3934
3935         PR libstdc++/3016
3936         * include/bits/stl_queue.h (classes queue, priority_queue):  Fix
3937         ctors to match the standard.
3938
3939 2001-06-04  Jeffrey Oldham  <oldham@codesourcery.com>
3940
3941         * include/bits/char_traits.h (move): Reverse qualification of
3942         memmove with std::.
3943         (copy): Reverse qualification of memcpy with std::.
3944
3945 2001-06-04  Jeffrey Oldham  <oldham@codesourcery.com>
3946
3947         * include/bits/char_traits.h (move): Qualify memmove with std::.
3948         (copy): Qualify memcpy with std::.
3949         * testsuite/27_io/filebuf_virtuals.cc (test01): Qualify strlen and
3950         strncmp with std::.
3951         (test02): Likewise.
3952         * testsuite/27_io/stringbuf_virtuals.cc (test01): Likewise.
3953
3954 2001-06-04  Hans-Peter Nilsson  <hp@axis.com>
3955
3956         * libsupc++/Makefile.am (install-glibcppinstallHEADERS,
3957         uninstall-glibcppinstallHEADERS): Have explicit rules catering to
3958         SUN make VPATH peculiarities.
3959         * libsupc++/Makefile.in: Regenerate.
3960
3961 2001-06-01  Hans-Peter Nilsson  <hp@axis.com>
3962
3963         * src/Makefile.am (VPATH): Delimit with ":", not space.
3964         * src/Makefile.in: Regenerate.
3965
3966         * configure.in (use of GLIBCPP_CHECK_GNU_MAKE): Don't fail if GNU
3967         make isn't found.
3968         * configure: Regenerate.
3969
3970 2001-05-31  scott snyder  <snyder@fnal.gov>
3971
3972         libstdc++/2976
3973         * include/bits/istream.tcc: Include std_ostream.h.
3974
3975 2001-05-31  Benjamin Kosnik  <bkoz@redhat.com>
3976
3977         libstdc++/2997
3978         * src/bitset.cc: Qualify size_t with std::.
3979
3980 2001-05-30  Benjamin Kosnik  <bkoz@redhat.com>
3981
3982         * acconfig.h (_GLIBCPP_BUGGY_FLOAT_COMPLEX): Remove.
3983         (_GLIBCPP_BUGGY_COMPLEX): Remove.
3984         * config.h.in: Regenerate.
3985         * acinclude.m4 (GLIBCPP_CHECK_COMPLEX_MATH_COMPILER_SUPPORT): Remove.
3986         * aclocal.m4: Regenerate.
3987         * configure.in: Don't call it.
3988         * configure: Regenerate.
3989
3990         libstdc++/2970
3991         * src/complex_io.cc (operator<<(ostream&, const complex&): Fix.
3992         * testsuite/26_numerics/complex_inserters_extractors.cc (test01):
3993         New test.
3994
3995         libstdc++/2985
3996         * include/bits/std_complex.h: Include sstream. Put definitions for
3997         complex inserters and extractors here, and remove them from...
3998         * src/complex_io.cc: ...here.
3999         * include/bits/basic_ios.h (basic_ios::__numput_type): Add _Traits
4000         parameter.
4001         (basic_ios::__numget_type): Same.
4002         * include/bits/std_istream.h: Same.
4003         * include/bits/std_ostream.h: Same.
4004         * include/bits/sbuf_iter.h (ostreambuf_iterator): Fix typo in base
4005         class iterator template arguments.
4006         * src/locale-inst.cc: Add explicit has_facet instantiations.
4007         * include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove.
4008         (_M_get_fnumput): Remove.
4009         (_M_get_fnumget): Remove.
4010         (basic_ios::_M_check_facet): New function.
4011         (basic_ios::_M_cache_facets): New function.
4012         * include/bits/basic_ios.tcc: Definition for _M_cache_facets.
4013         (basic_ios::imbue): Call _M_cache_facets.
4014         (basic_ios::init): Same.
4015         * include/bits/istream.tcc: Format, use _M_check_facet.
4016         * include/bits/ostream.tcc: Same.
4017         * include/bits/locale_facets.tcc (__output_float): Change
4018         signature, add _Traits.
4019         * testsuite/26_numerics/complex_inserters_extractors.cc (test02):
4020         New test.
4021
4022 2001-05-30  Loren J. Rittle  <ljrittle@acm.org>
4023
4024         * include/bits/c++config (__USE_MALLOC): Do not define it.
4025         Document why not and give pointers to more information.
4026
4027         * docs/html/23_containers/howto.html: Update documentation
4028         to reflect recent understanding of problem.
4029         * docs/html/17_intro/howto.html: Likewise.
4030
4031 2001-05-30  Phil Edwards  <pme@sources.redhat.com>
4032
4033         * docs/doxygen/user.cfg.in:  Minor addition.
4034         * docs/html/documentation.html:  Reorganize.  Put most-looked-at
4035         stuff first.
4036         * docs/html/install.html:  Update for 3.0.  HTML fixups.
4037         * docs/html/17_intro/howto.html:  Likewise.
4038         * docs/html/18_support/howto.html:  Likewise.
4039         * docs/html/19_diagnostics/howto.html:  Likewise.
4040         * docs/html/20_util/howto.html:  Likewise.
4041         * docs/html/23_containers/howto.html:  Likewise.
4042         * docs/html/24_iterators/howto.html:  Likewise.  More notes.
4043         * docs/html/25_algorithms/howto.html:  Likewise.
4044         * docs/html/26_numerics/howto.html:  Likewise.  More notes.
4045         * docs/html/27_io/howto.html:  Likewise.
4046         * docs/html/ext/howto.html:  Likewise.
4047         * docs/html/faq/index.html:  Likewise.
4048         * docs/html/faq/index.txt:  Regenerate.
4049         * docs/html/27_io/iostreams_hierarchy.pdf:  Remove in favor of
4050         Doxygen-created documentation.
4051
4052 2001-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4053
4054         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Use
4055         get_multilibs to find gcc.
4056
4057 2001-05-30  Phil Edwards  <pme@sources.redhat.com>
4058
4059         * acinclude.m4 (GLIBCPP_ENABLE_C99):  Reorder output messages.
4060         * aclocal.m4:  Regenerate.
4061         * configure:  Regenerate.
4062
4063 2001-05-29  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4064
4065         * include/c_std/bits/std_cstdlib.h:: Move C99 thingies to __gnu_cxx::.
4066         * include/c_std/bits/std_cwchar.h (__gnu_cxx): Likewise.
4067
4068 2001-05-27  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4069
4070         * include/c_std/bits/std_cmath.h: Move C99 functions in __gnu_cxx::.
4071         * include/c_std/bits/std_cstdlib.h: Same.
4072         * include/c_std/bits/std_cwchar.h: Same.
4073
4074 2001-05-30  Loren J. Rittle  <ljrittle@acm.org>
4075
4076         * docs/html/17_intro/howto.html: Update link.
4077         * docs/html/23_containers/howto.html: Likewise.  Add new link.
4078
4079 2001-05-26  Gabriel Dos Reis  <gdr@codesourcery.com>
4080
4081         * include/c_std/bits/std_cmath.h (sqrt): #undef.
4082
4083 2001-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4084
4085         * mknumeric_limits: Stop if gen-num-limits dies.
4086
4087 2001-05-25  Benjamin Kosnik  <bkoz@redhat.com>
4088
4089         other/2931
4090         * acinclude.m4 (GLIBCPP_ENABLE_C99): Use AC_TRY_COMPILE.
4091         * aclocal.m4: Regenerate.
4092         * configure: Same.
4093
4094 2001-05-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4095             Phil Edwards  <pme@sources.redhat.com>
4096             Alexandre Oliva  <aoliva@redhat.com>
4097
4098         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir
4099         in an amd-safe manner. Revert glibcpp_prefixdir.
4100
4101 2001-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
4102
4103         * include/c_std/bits/std_cmath.h: Tweak.  #define away abs, cos,
4104         fabs, sin, sqrt.  They are now implemented in terms of __builtin_
4105         variants.
4106
4107 2001-05-24  Benjamin Kosnik  <bkoz@redhat.com>
4108
4109         libstdc++/2830
4110         * testsuite/21_strings/inserters_extractors.cc (test09): New test.
4111         * include/bits/ostream.tcc: Format to match istream.tcc.
4112         (operator<<(basic_ostream __out, const basic_string __s)): Fix.
4113
4114 2001-05-24  Phil Edwards  <pme@sources.redhat.com>
4115
4116         * libsupc++/eh_alloc.cc (__cxa_allocate_exception):  Qualify
4117         malloc with std:: .
4118         (__cxa_free_exception):  Likewise with free.
4119
4120 2001-05-24  Mark Mitchell  <mark@codesourcery.com>
4121
4122         * include/c_std/bin/std_cstring.h: #define away all global
4123         functions we will redeclare in namespace `std'.
4124         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Use
4125         std::memset, instead of memset.
4126         * testsuite/19_diagnostics/stdexceptions.cc: Use `std::strcmp',
4127         not plain `strcmp'.
4128         * testsuite/21_strings/c_strings.cc: Use `std::strcpy' instead of
4129         plain `strcpy'.
4130
4131 2001-05-24  Benjamin Kosnik  <bkoz@redhat.com>
4132
4133         libstdc++/2832
4134         * include/bits/basic_ios.tcc: Small tweak.
4135         * include/bits/std_fstream.h (ifstream): Add buffer member. Adjust
4136         ctors and dtors, and rdbuf settings.
4137         (ofstream): Same.
4138         (fstream): Same.
4139         * include/bits/std_sstream.h: Same, but for stringstream classes.
4140         * testsuite/27_io/ostringstream_members.cc: New.
4141         * testsuite/27_io/stringstream_members.cc: New.
4142         * testsuite/27_io/fstream_members.cc: New.
4143         * testsuite/27_io/ifstream_members.cc: Add test.
4144         * testsuite/27_io/istringstream_members.cc: Add test.
4145         * testsuite/27_io/ofstream_members.cc: Add test.
4146
4147 2001-05-24  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4148
4149         * include/bits/c++config(__NO_MATH_INLINES): Move to...
4150         * config/os/gnu-linux/bits/os_defines.h: ...here.
4151
4152 2001-05-24  Gabriel Dos Reis  <gdr@codesourcery.com>
4153
4154         * include/bits/c++config (__NO_MATH_INLINES): New macro.
4155         * testsuite/26_numerics/fabs_inline.cc (main): New test.
4156
4157 2001-05-22  Benjamin Kosnik  <bkoz@redhat.com>
4158
4159         libstdc++/2841
4160         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set
4161         ld_library_path.
4162         (libstdc++-v3_set_ld_library_path): New, copied from g++.exp.
4163         (libstdc++-v3-finish): Remove.
4164         (libstdc++-v3_exit): Remove.
4165
4166 2001-05-22  Phil Edwards  <pme@sources.redhat.com>
4167
4168         * docs/html/documentation.html:  Point to doxygen output.
4169
4170 2001-05-21  Benjamin Kosnik  <bkoz@redhat.com>
4171
4172         * mkcheck.in (static_fail): Remove S_FLAG decoration on output.
4173
4174         * include/bits/std_sstream.h (stringbuf::setbuf): Require both
4175         arguments to be non-null.
4176         * include/bits/fstream.tcc (filebuf::_M_allocate_buffers): Only
4177         try allocations if allocated size is greater than zero.
4178         (filebuf::_M_filebuf_init): Change to
4179         (filebuf::_M_allocate_file): Which is what it does now.
4180         (filebuf::_M_allocate_bufers): Change to
4181         (filebuf::_M_allocate_internal_buffer): This, and create
4182         (filebuf::_M_allocate_pback_buffer): New.
4183         (filebuf::_M_destroy_internal_buffer): New.
4184         (filebuf::_M_buf_allocated): New data member.
4185         (filebuf::setbuf): Use new logic, allow use of external buffer.
4186         * testsuite/27_io/stringbuf_virtuals.cc: New file.
4187         * testsuite/27_io/filebuf_virtuals.cc: New file.
4188
4189 2001-05-21  Stephen M. Webb  <stephen@bregmasoft.com>
4190
4191         * include/c_std/bits/std_cstring.h (memchr): Define "C" functions to
4192         __glibcpp_memchr.
4193         (strchr): Same, but to __glibcpp_strchr.
4194         (strpbrk): Same.
4195         (strrchr): Same.
4196         (strstr): Same.
4197         * include/c_std/bits/std_cwchar.h (wcschr): Same.
4198         (wcsbrk): Same.
4199         (wcsrchr): Same.
4200         (wcsstr): Same.
4201         (wmemchr): Same.
4202
4203 2001-05-21  Benjamin Kosnik  <bkoz@redhat.com>
4204
4205         * testsuite/21_strings/c_strings.cc (main): Fix.
4206
4207 2001-05-19  Phil Edwards  <pme@sources.redhat.com>
4208
4209         * acinclude.m4:  Fix --help spacing, correct comments.
4210         * aclocal.m4:  Regenerate.
4211         * configure:  Regenerate.
4212         * mkcheck.in:  Add usage comments.
4213         * docs/html/documentation.html:  Point to doxygen'd tarball.
4214
4215 2001-05-18  Benjamin Kosnik  <bkoz@redhat.com>
4216
4217         * testsuite/README: Add notes.
4218
4219         * src/Makefile.am (libstdc++.INC): Remove.
4220         * src/Makefile.in: Regenerate.
4221
4222         Phil Edwards <pedwards@disaster.jaj.com>
4223         * mkcheck.in: Add missing '#'.
4224
4225 2001-05-18  Angela Marie Thomas <angela@cygnus.com>
4226
4227         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set flags
4228         appropriately for remote testing and testing installed files without
4229         a build dir.
4230
4231 2001-05-18  Benjamin Kosnik  <bkoz@redhat.com>
4232
4233         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Set glibcpp_srcdir
4234         amd glibcpp_prefixdir with absolute paths.
4235
4236         * include/bits/c++config (__GLIBCPP__): Bump.
4237         * acinclude.m4 (GLIBCPP_CONFIGURE): Correct version number.
4238
4239 2001-05-18  Gabriel Dos Reis  <gdr@codesourcery.com>
4240
4241         * include/bits/std_valarray.h (valarray<>::operator[] const):
4242         Return a const reference.
4243         * testsuite/26_numerics/valarray_const_bracket.cc: New test.
4244
4245 2001-05-18  Alexandre Oliva  <aoliva@redhat.com>
4246
4247         * configure.target (ATOMICITYH): Actually use AIX-specific code on
4248         earlier versions of AIX 4.*.
4249
4250 2001-05-18  Angela Marie Thomas <angela@cygnus.com>
4251
4252         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-dg-test):  Set
4253         output_file based on the name of the testcase.
4254
4255 2001-05-18  Angela Marie Thomas <angela@cygnus.com>
4256
4257         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init):  Build
4258         gluefile and use it if needs_status_wrapper is set.
4259
4260 2001-05-18  Alexandre Oliva  <aoliva@redhat.com>
4261
4262         * configure.target (ATOMICITYH): Use cpu/generic code on earlier
4263         versions of AIX.
4264
4265 2001-05-17  Alexandre Oliva  <aoliva@redhat.com>
4266
4267         * configure.target (ATOMICITYH): Don't use AIX 4.3-specific code
4268         on earlier versions of AIX.
4269
4270 2001-05-15  Benjamin Kosnik  <bkoz@redhat.com>
4271
4272         * testsuite_flags.in (query): Add backwards, ext directories.
4273
4274 2001-05-15  Mark Mitchell  <mark@codesourcery.com>
4275
4276         * porting.texi: Correct documentation about handling
4277         _LARRGEFILE_SOURCE and its ilk.
4278         * config/os/solaris/solaris2.5/bits/os_defines.h: Remove
4279         definitions of _XOPEN_SOURCE, _LARGEFILE64_SOURCE, and
4280         __EXTENSIONS__.
4281         * config/os/solaris/solaris2.6/bits/os_defines.h: Likewise.
4282         * config/os/solaris/solaris2.7/bits/os_defines.h: Likewise.
4283
4284 2001-05-15  Zack Weinberg  <zackw@stanford.edu>
4285
4286         * testsuite/21_strings/inserters_extractors.cc,
4287         testsuite/27_io/istream_unformatted.cc,
4288         testsuite/27_io/stringstream.cc:
4289         Replace multi-line string constants with C89-style
4290         concatenated string constants.
4291
4292 2001-05-14  Richard Henderson  <rth@redhat.com>
4293
4294         * mknumeric_limits: Build with -fno-exceptions.
4295
4296 2001-05-13   Benjamin Kosnik  <bkoz@redhat.com>
4297
4298         Switch over to new harness.
4299         * testsuite_flags.in: Tweaks via Gaby.
4300         * testsuite/Makefile.am: Change tool to libstdc++-v3.
4301         (EXPECT): Quote directly.
4302         (RUNTEST): Same.
4303         * configure.in: Output testsuite_flags.
4304         * acinclude.m4: Substitute src, bld, and prefix dirs.
4305         Remove glibcpp_expect, glibcpp_runtestflags.
4306         * Makefile.am (RUNTESTFLAGS): Pass this down to subdirs.
4307         * mkcheck.in: Port to new interface.
4308
4309         * aclocal.m4: Regerate.
4310         * configure: Regnerate.
4311         * Makefile.in: Regnerate.
4312         * */Makefile.in: Regenerate.
4313
4314         * tests_flags.in: Remove.
4315         * testsuite/lib/libstdc++.exp: Remove.
4316         * testsuite/libstdc++.tests/tests.exp: Remove.
4317
4318 2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
4319
4320         * configure.target: Remove detection of AIX pthread multilib, now
4321         obtained from `gcc -v'.
4322
4323 2001-05-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4324
4325         * mkcheck.in (setup_size_command): Use Berkeley "-B" mode with GNU
4326         size.  Add hpux case for HP size.
4327
4328 2001-05-11   Benjamin Kosnik  <bkoz@redhat.com>
4329
4330         * testsuite_flags.in: New, simplified interface.
4331         * testsuite/lib/libstdc++-v3-dg.exp: New test harness.
4332         * testsuite/libstdc++-v3.dg: Add.
4333         * testsuite/libstdc++-v3.dg/dg.exp: Add.
4334
4335 2001-05-11   Benjamin Kosnik  <bkoz@redhat.com>
4336
4337         * testsuite/*/*.cc: Remove spaces, make sure testcases return zero.
4338         * testsuite/config/default.exp: Update bugs email address.
4339
4340 2001-05-11  Richard Henderson  <rth@redhat.com>
4341
4342         * libsupc++/eh_personality.cc: Include unwind-pe.h.  Remove
4343         all pointer encoding logic.
4344         (struct lsda_header_info): Add ttype_base.
4345         (get_ttype_entry): Use it instead of a context.
4346         (check_exception_spec): Likewise.
4347         (PERSONALITY_FUNCTION): Initialize ttype_base.  Store it in
4348         the c++ exception header for __cxa_call_unexpected.
4349         (__cxa_call_unexpected): Use it.
4350
4351 2001-05-09  Benjamin Kosnik  <bkoz@redhat.com>
4352
4353         * testsuite/lib/libstdc++.exp: Use libgloss.exp. Call
4354         libgloss_link_flags to find crt0.o for targets that use libgloss
4355         instead of newlib.
4356         Change LDFLAGS to LIBS.
4357         Consistently name procedures libstdc++-XXX.
4358         * testsuite/libstdc++.tests/tests.exp: Use new procedure names.
4359
4360 2001-05-08  Benjamin Kosnik  <bkoz@fillmore.constant.com>
4361
4362         * include/c_std/bits/std_cstring.h (memchr): Correct definitions.
4363         (strchr): Same.
4364         (strpbrk): Same.
4365         (strrchr): Same.
4366         (strstr): Same.
4367         * include/c_std/bits/std_cwchar.h (wcschr): Same.
4368         (wcsbrk): Same.
4369         (wcsrchr): Same.
4370         (wcsstr): Same.
4371         (wmemchr): Same.
4372         * testsuite/21_strings/c_strings.cc: Add tests.
4373
4374 2001-05-07  Benjamin Kosnik  <bkoz@redhat.com>
4375
4376         libstdc++/2523
4377         * include/bits/std_fstream.h (basic_filebuf): Change signature.
4378         * include/bits/fstream.tcc (basic_filebuf): Change bool argument
4379         to int_type, pass in buffer size info.
4380         * include/bits/std_streambuf.h (_M_is_indeterminate): Check for
4381         unbuffered situation.
4382         (underflow): Remove codecvt bits for the time being.
4383         * include/bits/istream.tcc (istream::sentry): Avoid sputbackc call.
4384         * include/bits/locale_facets.tcc (_M_extract): Cache dereference
4385         values from iterators, clean.
4386         * src/locale.cc: Ditto.
4387         * include/bits/sbuf_iter.h: Format.
4388         * src/ios.cc: Explicitly pass in buffer sizes at creation time.
4389         * testsuite/27_io/narrow_stream_objects.cc: Add tests.
4390         * testsuite/27_io/filebuf.cc: Tweaks.
4391         * testsuite/27_io/filebuf_members.cc: Tweaks.
4392
4393 2001-05-07  Mark Mitchell  <mark@codesourcery.com>
4394
4395         * config/os/solaris/solaris2.7/bits/os_defines.h
4396         (_LARGEFILE_SOURCE): Define it.
4397
4398 2001-05-03  Alexandre Oliva  <aoliva@redhat.com>
4399
4400         * configure.in (LIBSUPCXX_PICFLAGS): Set it to -prefer-pic or
4401         -prefer-non-pic depending on whether libtool has shared libraries
4402         enabled or disabled.
4403         * libsupc++/Makefile.am (LIBSUPCXX_CXXFLAGS): Set to
4404         $(LIBSUPCXX_PICFLAGS).
4405         * configure, */Makefile.in: Rebuilt.
4406
4407 2001-05-01  Benjamin Kosnik  <bkoz@redhat.com>
4408
4409         * include/bits/sbuf_iter.h (istreambuf_iterator): Correct.
4410         * testsuite/24_iterators/istreambuf_iterator.cc (test02): Add test.
4411
4412         * include/bits/std_sstream.h (stringbuf): Leak
4413         copied string.
4414         * testsuite/24_iterators/ostreambuf_iterator.cc: Correct.
4415
4416 2001-05-01  Tom Browder  <tbrowder@home.com>
4417
4418         * docs/html/ext/howto.html:  Fix typo.
4419
4420 2001-05-01  Gabriel Dos Reis  <gdr@codesourcery.com>
4421
4422         * testsuite/libstdc++.tests/tests.exp: Add comment.
4423
4424 2001-05-01  Gabriel Dos Reis  <gdr@codesourcery.com>
4425
4426         * testsuite/libstdc++.tests/tests.exp: Set ulimits.
4427
4428 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
4429
4430         * porting.texi: Use the GFDL.
4431
4432 2001-04-30  Benjamin Kosnik  <bkoz@redhat.com>
4433
4434         libstdc++/2627
4435         * testsuite/24_iterators/ostreambuf_iterator.cc: New file.
4436         * include/bits/sbuf_iter.h (ostreambuf_iterator): Remove bogus
4437         specializations.
4438
4439 2001-04-30  Benjamin Kosnik  <bkoz@redhat.com>
4440
4441         libstdc++/2964
4442         * include/bits/stl_iterator_base_funcs.h (__advance): Fix.
4443
4444 2001-04-28  Phil Edwards  <pme@sources.redhat.com>
4445
4446         * docs/doxygen/run_doxygen:  Minor tweaks.
4447         * docs/doxygen/style.css:  New file.
4448         * docs/doxygen/user.cfg.in:  Update using "doxygen -u" to get the
4449         latest parameters available.  Use style.css.
4450
4451 2001-04-27  Benjamin Kosnik  <bkoz@redhat.com>
4452
4453         * docs/doxygen/mainpage.doxy: New.
4454         * docs/doxygen/user.cfg.in: Change default configuration. Single
4455         frame, other tweaks.
4456
4457 2001-04-26  Mark Mitchell  <mark@codesourcery.com>
4458
4459         * docs/html/17_intro/BADNAMES: Remove EGCS reference.
4460         Indicate obsolete nature of thelist for G++ 3.0.
4461
4462 2001-04-26  Alexandre Oliva  <aoliva@redhat.com>
4463
4464         * acinclude.m4 (GLIBCPP_ENABLE_THREADS): Obtain
4465         target_thread_file with `gcc -v'.
4466         * aclocal.m4, configure: Rebuilt.
4467
4468 2001-04-25  Benjamin Kosnik  <bkoz@redhat.com>
4469
4470         * include/c_std/bits/std_cmath.h (std): Explicitly inject c99 names.
4471         * include/c_std/bits/std_cstdlib.h (std): Same, except for llabs.
4472         * include/c_std/bits/std_cwchar.h (std): Same.
4473         * acconfig.h (std): Remove c99 injection into std.
4474         * config.h.in: Regenerate.
4475
4476         * testsuite/README: Fix typo.
4477
4478         * include/bits/codecvt.h: Remove warnings.
4479
4480 2001-04-24  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
4481
4482         * include/ext/slist: Include required header files.
4483
4484 2001-04-23  Loren J. Rittle  <ljrittle@acm.org>
4485
4486         * include/c_std/bits/std_cerrno.h (errno): Define macro from
4487         identifier declared with external linkage, if needed.
4488         * include/c_std/bits/std_csetjmp.h (setjmp): Likewise.
4489         * include/c_std/bits/std_cstdarg.h (va_end): Likewise.
4490
4491 2001-04-23  Benjamin Kosnik  <bkoz@fillmore.constant.com>
4492
4493         * acinclude.m4 (CXX): Set to glibcpp_CXX so that in-directory
4494         re-configures find the build compiler.
4495         (GLIBCPP_ENABLE_C99): Do all fp-tests with 0.0, not 0. Fixes
4496         libstdc++/2609.
4497         * aclocal.m4: Regenerate.
4498         * configure: Regenerate.
4499
4500 2001-04-20  Benjamin Kosnik  <bkoz@redhat.com>
4501
4502         * acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Make sure required C99
4503         support is enabled correctly before long long is activated.
4504         * aclocal.m4: Regenerate.
4505         * configure: Regenerate.
4506
4507         * include/backward/backward_warning.h: Format correctly.
4508
4509         * testsuite/26_numerics/c99_classification_macros_c.cc: Add.
4510         * testsuite/26_numerics/c99_classification_macros_c++.cc: Add.
4511         * testsuite/26_numerics/c99_macros.cc: Remove.
4512
4513 2001-04-20  Phil Edwards  <pme@sources.redhat.com>
4514
4515         * include/bits/stl_bvector.h:  Replace __ITERATOR_CATEGORY with
4516         __iterator_category.
4517
4518 2001-04-19  Benjamin Kosnik  <bkoz@redhat.com>
4519
4520         * acconfig.h (_GLIBCPP_USE_C99): Add.
4521         * config.h.in: Regenerate.
4522         * acinclude.m4 (GLIBCPP_ENABLE_C99): New macro. Test for ISO/IEC
4523         9899: 1999 support.
4524         * aclocal.m4: Regenerate.
4525         * configure.in (GLIBCPP_ENABLE_C99): Use it, on by default.
4526         * configure: Regenerate.
4527         * configure.in (GLIBCPP_ENABLE_LONG_LONG): Set default to yes.
4528         * configure: Regenerate.
4529         * include/c_std/bits/std_cwchar.h: Put wcstold, wcstoll, wcstoull
4530         into c99.
4531         * include/c_std/bits/std_cmath.h: Bring C99 functions into c99
4532         namespace.
4533         * include/c_std/bits/std_cstdlib.h: Same.
4534         * docs/html/configopts.html: Update.
4535         * testsuite/26_numerics/c99_macros.cc: Edit, use cmath instead of
4536         math.h
4537         (test_c99_classify): Add.
4538         * config/os/gnu-linux/bits/os_defines.h (_GNU_SOURCE): Remove.
4539         (_ISOC99_SOURCE): Remove.
4540
4541         * include/bits/stl_algo.h: Use _GLIBCPP_HAVE_DRAND48.
4542         * include/bits/c++config (__STL_ASSERTIONS): Simplify.
4543         * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Add check for drand48.
4544         * aclocal.m4: Regenerate.
4545         * configure: Regenerate.
4546
4547 2001-04-19  Phil Edwards  <pme@sources.redhat.com>
4548
4549         * Makefile.am (doxygen):  Assume script is missing execute perms.
4550         * Makefile.in:  Regenerated.
4551         * docs/doxygen/user.cfg.in:  Add class diagrams and source browsing.
4552
4553 2001-04-17  Loren J. Rittle  <ljrittle@acm.org>
4554
4555         * testsuite/27_io/istream_seeks.cc: Inform DejaGnu of required files.
4556
4557 2001-04-17  Benjamin Kosnik  <bkoz@redhat.com>
4558
4559         * testsuite/23_containers/map_operators.cc: Add dg-excess-errors.
4560         * testsuite/23_containers/set_operators.cc: Same.
4561
4562         * include/bits/c++config: Add _GLIBCPP_CONCEPT_CHECKS. Disable by
4563         default.
4564         (__GLIBCPP__): Bump from value of last release.
4565         * include/bits/concept_check.h: Default to off, edit comments.
4566         * src/stl-inst.cc: Use _GLIBCPP_CONCEPT_CHECKS.
4567         * src/Makefile.am (AM_CXXFLAGS): Remove _GLIBCPP_NO_CONCEPT_CHECKS.
4568         * src/Makefile.in: Regenerate.
4569
4570 2001-04-14  Martin Reinecke <martin@MPA-Garching.MPG.DE>
4571
4572         * include/bits/boost_concept_check.h(_Mutable_ContainerConcept):
4573         Properly uglify member.
4574
4575 2001-04-13  Phil Edwards  <pme@sources.redhat.com>
4576
4577         * include/bits/stl_algobase.h (equal):  Use EqualOpConcept instead
4578         of EqualityCo
4579         mparableConcept.
4580
4581 2001-04-13  Phil Edwards  <pme@sources.redhat.com>
4582
4583         * include/bits/boost_concept_check.h:  Uglify, fork from Boost.
4584         * include/bits/concept_check.h:  Uglify.
4585         * include/bits/stl_algo.h:  Likewise.
4586         * include/bits/stl_algobase.h:  Likewise.
4587         * include/bits/stl_deque.h:  Likewise.
4588         * include/bits/stl_heap.h:  Likewise.
4589         * include/bits/stl_iterator_base_funcs.h:  Likewise.
4590         * include/bits/stl_list.h:  Likewise.
4591         * include/bits/stl_map.h:  Likewise.
4592         * include/bits/stl_multimap.h:  Likewise.
4593         * include/bits/stl_multiset.h:  Likewise.
4594         * include/bits/stl_numeric.h:  Likewise.
4595         * include/bits/stl_queue.h:  Likewise.
4596         * include/bits/stl_set.h:  Likewise.
4597         * include/bits/stl_stack.h:  Likewise.
4598         * include/bits/stl_vector.h:  Likewise.
4599         * include/ext/hash_map:  Likewise.
4600         * include/ext/hash_set:  Likewise.
4601         * include/ext/slist:  Likewise.
4602
4603 2001-04-13  Gabriel Dos Reis  <gdr@codesourcery.com>
4604
4605         * testsuite/23_containers/set_operators.cc: Just try to compile.
4606         Mark as XFAIL.
4607         * testsuite/23_containers/map_operators.cc: Same.
4608
4609 2001-04-12  Jason Merrill  <jason_merrill@redhat.com>
4610
4611         * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Prepend "./" to
4612         output_file.
4613         (dg-test): Revert rth's change.
4614
4615 2001-04-12  Nathan Sidwell  <nathan@codesourcery.com>
4616
4617         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Don't
4618         terminate holding the mutex. Make sure size fits in EMERGENCY_OBJ_SIZE.
4619
4620 2001-04-12  Gabriel Dos Reis  <gdr@codesourcery.com>
4621
4622         * testsuite/README: Add DejaGnu specific documentation.
4623
4624 2001-04-11  Benjamin Kosnik  <bkoz@redhat.com>
4625
4626         * acinclude.m4: AC_CHECK_TOOL for expect.
4627         * aclocal.m4: Regenerate.
4628         * configure: Regenerate.
4629         * testsuite/Makefile.am (RUNTEST): Use substituted.
4630         (EXPECT): Same.
4631
4632         * configure.in: Remove xcompiling substitution.
4633         * tests_flags.in (CROSS_LIB_PATH): Remove.
4634         (xcompiling): Remove.
4635         (CXX): Use substituted CXX.
4636
4637 2001-04-11  Richard Henderson  <rth@redhat.com>
4638
4639         * testsuite/lib/libstdc++.exp: Specify path for output_file.
4640
4641 2001-04-08  Gabriel Dos Reis  <gdr@codesourcery.com>
4642
4643         * include/bits/std_valarray.h(valarray<>::operator[]): Make
4644         inline.
4645
4646 2001-04-06  Gabriel Dos Reis  <gdr@codesourcery.com>
4647
4648         * testsuite/25_algorithms/equal.cc: New test.
4649
4650 2001-04-06  Joe Buck  <jbuck@welsh-buck.org>
4651
4652         * stl_algobase.h (std::equal): avoid use of possibly-undefined
4653         operator != (one line patch).
4654
4655 2001-04-06   Benjamin Kosnik  <bkoz@redhat.com>
4656
4657         * include/backward/backward_warning.h: Re-enable.
4658
4659 2001-04-06  Benjamin Kosnik  <bkoz@redhat.com>
4660             Alexandre Oliva  <aoliva@redhat.com>
4661
4662         * tests_flags.in (CROSS_LIB_PATH): Add as -B flag.
4663
4664 2001-04-06  Gabriel Dos Reis  <gdr@codesourcery.com>
4665
4666         * include/c_std/bits/std_cmath.h: Get rid of C99 math macros.
4667         * testsuite/26_numerics/c99_macros.cc: Add test.
4668
4669 2001-04-06  Phil Edwards  <pme@sources.redhat.com>
4670
4671         * docs/html/faq/index.html:  Update for 2.92, grab from RELEASE-NOTES.
4672         * docs/html/faq/index.txt:  Regenerated.
4673
4674 2001-04-06  Benjamin Kosnik  <bkoz@redhat.com>
4675
4676         * include/backward/backward_warning.h: Temporarily disable until
4677         g++ testsuite changes go in.
4678         * tests_flags.in (CROSS_LIB_PATH): Add.
4679
4680 2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>
4681
4682         Warn when using backward headers.
4683         * include/backward/algo.h: Include warning file.
4684         * include/backward/vector.h: Same.
4685         * include/backward/tree.h: Same.
4686         * include/backward/tempbuf.h: Same.
4687         * include/backward/strstream: Same.
4688         * include/backward/streambuf.h: Same.
4689         * include/backward/stream.h: Same.
4690         * include/backward/stack.h: Same.
4691         * include/backward/slist.h: Same.
4692         * include/backward/set.h: Same.
4693         * include/backward/rope.h:
4694         * include/backward/queue.h: Same.
4695         * include/backward/pair.h: Same.
4696         * include/backward/ostream.h: Same.
4697         * include/backward/new.h: Same.
4698         * include/backward/multiset.h: Same.
4699         * include/backward/multimap.h: Same.
4700         * include/backward/map.h: Same.
4701         * include/backward/list.h: Same.
4702         * include/backward/iterator.h: Same.
4703         * include/backward/istream.h: Same.
4704         * include/backward/iostream.h:
4705         * include/backward/iomanip.h:
4706         * include/backward/heap.h: Same.
4707         * include/backward/hashtable.h:
4708         * include/backward/hash_set.h:
4709         * include/backward/hash_map.h:
4710         * include/backward/function.h:
4711         * include/backward/fstream.h:
4712         * include/backward/deque.h:
4713         * include/backward/defalloc.h: Same.
4714         * include/backward/complex.h: Same.
4715         * include/backward/bvector.h:
4716         * include/backward/alloc.h:
4717         * include/backward/algobase.h: Same.
4718
4719         * include/backward/backward_warning.h: New file.
4720         * src/Makefile.am (backward_headers): Add backward_warning.h
4721         * src/Makefile.in: Regenerate.
4722
4723 2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>
4724
4725         * src/Makefile.am (myinstalldirs): Make sure backward directory is
4726         created.
4727         (myinstallheaders): Install backward headers in backward directory.
4728         * src/Makefile.in: Regenerate.
4729
4730 2001-04-05  Benjamin Kosnik  <bkoz@redhat.com>
4731
4732         Prepare for libstdc++-2.92.
4733         * docs/html/17_intro/RELEASE-NOTES (New): Update.
4734         * docs/html/configopts.html: Fix formatting.
4735         * README (file): Updates.
4736         * include/bits/c++config (__GLIBCPP__): Update.
4737
4738 2001-04-05  Phil Edwards  <pme@sources.redhat.com>
4739
4740         * docs/doxygen/run_doxygen:  Check for the existence of Doxygen.
4741
4742 2001-04-04  Phil Edwards  <pme@sources.redhat.com>
4743
4744         * docs/doxygen/user.cfg.in:  Extract all non-private members;
4745         reduce confusing documentation output.
4746
4747 2001-04-04  Geoffrey Keating  <geoffk@redhat.com>
4748
4749         * include/backward/fstream.h: Add missing semicolons.
4750
4751 2001-04-03  Benjamin Kosnik  <bkoz@redhat.com>
4752
4753         * include/bits/fstream.tcc: Add bool parameter to filebuf ctor.
4754         * include/bits/ios_base.h(ios_base::Init): Remove _M_cout, _M_cin,
4755         _M_cerr, _M_wcout, _M_wcin, _M_wcerr.
4756         (ios_base::Init::_S_ios_create): New.
4757         (ios_base::Init::_S_ios_destroy): New.
4758         * include/bits/std_fstream.h: Change ctor args.
4759         * src/ios.cc (ios_base::Init::Init): Use _S_ios_create.
4760         (ios_base::Init::~Init): Use _S_ios_destroy.
4761         (ios_base::sync_with_stdio): Use new members.
4762         * testsuite/27_io/filebuf_members.cc: Fix calling conventions for
4763         filebuf ctor.
4764
4765 2001-04-03  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
4766
4767         * include/backward/fstream.h:  Expose streampos to global
4768         namespace.
4769
4770 2001-04-03  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
4771
4772         * include/bits/stl_iterator_base_types.h: Fix typo
4773
4774 2001-04-03  Andreas Schwab  <schwab@suse.de>
4775
4776         * include/backward/fstream.h: Define filebuf and wfilebuf.
4777
4778 2001-04-02  Phil Edwards  <pme@sources.redhat.com>
4779
4780         New concept checking implementation.
4781         * docs/html/19_diagnostics/howto.html:  Document.
4782         * docs/html/17_intro/concept_check.diff:  New file, for reference.
4783         * include/bits/boost_concept_check.h:  New file from Boost.
4784         * include/bits/c++config:  Update comments.
4785
4786         * include/bits/concept_check.h:  New file.
4787         * include/bits/concept_checks.h:  Removed.
4788         * include/bits/container_concepts.h:  Removed.
4789         * include/bits/sequence_concepts.h:  Removed.
4790         * include/bits/stl_iterator_base.h:  Removed; split into...
4791         * include/bits/stl_iterator_base_funcs.h:  ...this new file...
4792         * include/bits/stl_iterator_base_types.h:  ...and this new file.
4793
4794         * include/bits/sbuf_iter.h:  Update to use new implementation.
4795         * include/bits/std_iterator.h:  Likewise.
4796         * include/bits/std_memory.h:  Likewise.
4797         * include/bits/stl_algo.h:  Likewise.
4798         * include/bits/stl_algobase.h:  Likewise.
4799         * include/bits/stl_construct.h:  Likewise.
4800         * include/bits/stl_deque.h:  Likewise.
4801         * include/bits/stl_heap.h:  Likewise.
4802         * include/bits/stl_list.h:  Likewise.
4803         * include/bits/stl_map.h:  Likewise.
4804         * include/bits/stl_multimap.h:  Likewise.
4805         * include/bits/stl_multiset.h:  Likewise.
4806         * include/bits/stl_numeric.h:  Likewise.
4807         * include/bits/stl_queue.h:  Likewise.
4808         * include/bits/stl_set.h:  Likewise.
4809         * include/bits/stl_stack.h:  Likewise.
4810         * include/bits/stl_uninitialized.h:  Likewise.
4811         * include/bits/stl_vector.h:  Likewise.
4812         * include/ext/hash_map:  Likewise.
4813         * include/ext/hash_set:  Likewise.
4814         * include/ext/slist:  Likewise.
4815         * include/ext/stl_hashtable.h:  Likewise.
4816
4817         * src/Makefile.am (base_headers):  Update list of headers.
4818         * Makefile.in:  Regenerated.
4819         * src/Makefile.in:  Regenerated.
4820         * libio/Makefile.in:  Regenerated.
4821         * libmath/Makefile.in:  Regenerated.
4822         * libsupc++/Makefile.in:  Regenerated.
4823         * testsuite/Makefile.in:  Regenerated.
4824
4825         * docs/html/install.html:  Update contact information.
4826         * docs/html/17_intro/howto.html:  Ditto.
4827         * docs/html/18_support/howto.html:  Ditto.
4828         * docs/html/20_util/howto.html:  Ditto.
4829         * docs/html/21_strings/howto.html:  Ditto.
4830         * docs/html/22_locale/howto.html:  Ditto.
4831         * docs/html/23_containers/howto.html:  Ditto.
4832         * docs/html/24_iterators/howto.html:  Ditto.
4833         * docs/html/25_algorithms/howto.html:  Ditto.
4834         * docs/html/26_numerics/howto.html:  Ditto.
4835         * docs/html/27_io/howto.html:  Ditto.
4836         * docs/html/faq/index.html:  Ditto, plus info on new checking code.
4837         * docs/html/ext/howto.html:  Ditto, plus info on new checking code.
4838         * docs/html/faq/index.txt:  Regenerated.
4839
4840 2001-04-02  Zack Weinberg  <zackw@stanford.edu>
4841
4842         * testsuite/lib/libstdc++.exp (dg-test): Annotate result
4843         messages with $which_library as well as $tool_flags and
4844         ${dg-extra-tool-flags}.  Factor out annotation text into
4845         a single variable.
4846
4847 2001-04-02  Stephen M. Webb  <stephen@bregmasoft.com>
4848
4849         * include/c_std/bits/std_cstring.h: Fix for const-correctness.
4850         * include/c_std/bits/std_cwchar.h: Same.
4851         * testsuite/21_strings/c_strings.cc: Add.
4852
4853 2001-04-01  Benjamin Kosnik  <bkoz@codesourcery.com>
4854
4855         * docs/html/configopts.html: Add --enable-sjlj-exceptions docs.
4856
4857 2001-04-01  Zack Weinberg  <zackw@stanford.edu>
4858
4859         * tests_flags.in: Use test a = b, not test a == b which is not
4860         portable.
4861
4862 2001-03-31  Benjamin Kosnik  <bkoz@redhat.com>
4863
4864         * configure.target: Remove duplicate aix entry.
4865
4866 2001-03-30  Benjamin Kosnik  <bkoz@redhat.com>
4867
4868         * include/ext/stl_bvector.h: Move to...
4869         * include/bits/stl_vector.h: ...here.
4870         * include/ext/bvector: Move to...
4871         * include/backward/bvector.h: ...here.
4872         * include/bits/std_vector.h: Change stl_bvector include.
4873         * include/bits/std_queue.h: Remove bvector include.
4874         * include/ext/tree: Insert using rb_tree, move to...
4875         * include/backward/tree.h: ...here.
4876         * include/backward/hash_map.h: Include ext/hash_map.
4877         * include/backward/hash_set.h: Include ext/hash_set.
4878         * include/backward/queue.h: New file.
4879         * include/backward/stack.h: Edit.
4880         * include/backward/algo.h: Same.
4881         * include/backward/algobase.h: Same.
4882         * include/backward/alloc.h: Same.
4883         * include/backward/function.h: Same.
4884         * include/backward/iomanip.h: Same.
4885         * include/backward/istream.h: Same.
4886         * include/backward/iterator.h: Same.
4887         * include/backward/list.h: Same.
4888         * include/backward/map.h: Same.
4889         * include/backward/multimap.h: Same.
4890         * include/backward/multiset.h: Same.
4891         * include/backward/ostream.h: Same.
4892         * include/backward/pair.h: Same
4893         * include/backward/rope.h: Same.
4894         * include/backward/set.h: Same.
4895         * include/backward/stream.h: Same.
4896         * include/backward/strstream.h: Same.
4897         * include/backward/tempbuf.h: Same.
4898         * src/Makefile.am (ext_headers): Edit.
4899         * src/Makefile.in: Regenerate.
4900         * testsuite/ext/headers.cc (main): Fix.
4901         * mkcheck.in: Fix.
4902
4903 2001-03-30  Phil Edwards  <pme@sources.redhat.com>
4904
4905         * tests_flags.in (LIBS):  Pass correct path for installed testing.
4906
4907 2001-03-28  Benjamin Kosnik  <bkoz@redhat.com>
4908
4909         * mkcheck.in (LIBTOOL): Don't construct -B argument here...
4910         * tests_flags.in (CXX): Construct here.
4911         (static_fail): Don't remove compile.out. Format with spaces.
4912         (INCLUDES): Deal with xcompiling.
4913         * configure.in (xcompiling): Substitute.
4914         * testsuite/Makefile.am: Snake libjava configury.
4915         * testsuite/Makefile.in: Regenerate.
4916         * testsuite/23_containers/map_operators.cc: Tweaks.
4917         * testsuite/23_containers/set_operators.cc: Tweaks.
4918
4919 2001-03-28  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4920
4921         Enable dejagnu testing framework.
4922         * configure.in: Generate testsuite/Makefile.
4923         * configure: Regenerate.
4924         * Makefile.am (check-install): Change rule from this...
4925         (check-script-install): ...to this.
4926         (check): Change rule from this...
4927         (check-script):...to this.
4928         * Makefile.in: Regenerate.
4929
4930 2001-03-28  Alexandre Oliva  <aoliva@redhat.com>
4931
4932         * libsupc++/Makefile.am (CXXLINK): Add --tag disable-shared after
4933         --tag CXX.
4934         (LIBTOOL): Let automake take care of its definition.
4935         * libsupc++/Makefile.in: Rebuilt.
4936
4937 2001-03-28  Richard Henderson  <rth@redhat.com>
4938
4939         IA-64 ABI Exception Handling:
4940         * acinclude.m4 (GLIBCPP_ENABLE_SJLJ_EXCEPTIONS): New.
4941         * configure.in: Use it.
4942         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4943         * libsupc++/Makefile.am (sources): Update files list.
4944         * libsupc++/Makefile.in: Regenerate.
4945         * libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc: New files.
4946         * libsupc++/eh_catch.cc, libsupc++/eh_exception.cc: New files.
4947         * libsupc++/eh_globals.cc, libsupc++/eh_personality.cc: New files.
4948         * libsupc++/eh_terminate.cc, libsupc++/eh_throw.cc: New files.
4949         * libsupc++/exception_support.cc: Remove.
4950         * libsupc++/exception_support.h: Remove.
4951         * libsupc++/pure.cc: Use std::terminate.
4952         * libsupc++/tinfo2.cc (__throw_type_match_rtti_2): Remove.
4953         (__is_pointer): Remove.
4954         * libsupc++/unwind-cxx.h: New file.
4955         * libsupc++/vec.cc (uncatch_exception): Update for new abi.
4956
4957 2001-03-27  Alexandre Oliva  <aoliva@redhat.com>
4958
4959         * libsupc++/Makefile.am (CXXLINK): Use CXX again, and choose
4960         CXX tag explicitly.
4961         * src/Makefile.am (CXXLINK): Likewise.
4962         * libsupc++/Makefile.in, src/Makefile.in: Rebuilt.
4963
4964 2001-03-27  Benjamin Kosnik  <bkoz@redhat.com>
4965
4966         * include/bits/c++config (_STL_USE_CONCEPT_CHECKS): Disable by default.
4967
4968 2001-03-26  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
4969
4970         * libstdc++-v3/tests_flags.in: Change the order of libstdc++
4971           and libc
4972
4973 2001-03-26  Benjamin Kosnik  <bkoz@redhat.com>
4974
4975         * include/bits/basic_file.h (get_fileno): Remove.
4976         (_M_fileno): Remove.
4977         (_M_cfile_created): Add.
4978         (basic_file::basic_file(__c_file_type*, openmode): Add.
4979         (basic_file::basic_file(int, const char*, openmode): Remove.
4980         * include/bits/fstream.tcc (basic_fstream::basic_filebuf(int __fd,
4981         const char*, ios_base::openmode): Don't allocate
4982         internal buffers. Turn off internal buffers.
4983         (basic_filebuf::overflow): Remove test for null buffer.
4984         (basic_filebuf::_M_really_overflow): Same. Allow unbuffered use.
4985         * include/bits/streambuf.cc: Tweak.
4986         * include/bits/std_ostream.h: Tweak.
4987         * config/basic_file_libio.h: Same.
4988         * config/basic_file_stdio.h: Same.
4989         * src/ios.cc (ios_base::Init::Init()): Unbuffer stdout by default.
4990         * testsuite/27_io/filebuf_members.cc: Tweaks.
4991         * testsuite/27_io/ios_base_members_static.cc: Tweaks.
4992
4993 2001-03-24  Phil Edwards  <pme@sources.redhat.com>
4994
4995         * Makefile.am:  New targets, doxygen and doxygen-maint.
4996         * Makefile.in:  Regenerated.
4997         * docs/doxygen/run_doxygen:  Finally implemented.
4998         * docs/doxygen/maint.cfg.in:  New file.
4999         * docs/doxygen/user.cfg.in:  New file.
5000
5001 2001-03-24  Phil Edwards  <pme@sources.redhat.com>
5002
5003         * acinclude.m4 (GLIBCPP_CHECK_COMPILER_FEATURES):  Update comment.
5004         * src/Makefile.am:  Replace leading spaces with tabs on continuation
5005         lines.
5006         * aclocal.m4:  Regenerated.
5007         * configure:  Ditto.
5008         * Makefile.in:  Ditto.
5009         * src/Makefile.in:  Ditto.
5010         * libio/Makefile.in:  Ditto.
5011         * libmath/Makefile.in:  Ditto.
5012         * libsupc++/Makefile.in:  Ditto.
5013
5014 2001-03-24  Phil Edwards  <pme@sources.redhat.com>
5015
5016         * docs/html/19_diagnostics/howto.html:  HTML fixup.  Describe
5017         concept-checking code and current status of same.
5018         * docs/html/ext/howto.html:  Ditto.
5019         * docs/html/faq/index.html:  Ditto.
5020         * docs/html/faq/index.txt:  Regenerated.
5021
5022 2001-03-24  Phil Edwards  <pme@sources.redhat.com>
5023
5024         * include/bits/std_bitset.h:  Include ostream and istream headers
5025         instead of iostream.
5026
5027 2001-03-22  Greg Bumgardner <bumgard@roguewave.com>
5028
5029         * include/bits/ostream.tcc: Use __builtin_alloca.
5030
5031 2001-03-22  Benjamin Kosnik  <bkoz@redhat.com>
5032
5033         * src/misc-inst.cc (__sink_unused_warning): Move to...
5034         * src/locale-inst.cc (__sink_unused_warning): Move to...
5035         * src/stl-inst.cc: Here.
5036         * include/bits/c++config (_STL_NO_CONCEPT_CHECKS): Add define,
5037         commented it out.
5038
5039 2001-03-21  Theodore Papadopoulo  <Theodore.Papadopoulo@sophia.inria.fr>
5040
5041         * intclude/bits/basic_file.h: Fix typos in comments.
5042
5043 2001-03-20  Richard Henderson  <rth@redhat.com>
5044
5045         * src/gen-num-limits.cc: Instantiate for wchar_t.
5046         * config/os/aix/bits/ctype_base.h (mask): Use unsigned int.
5047
5048 2001-03-20  Jason Merrill  <jason@redhat.com>
5049
5050         * libsupc++/vec.cc (__cxa_vec_cleanup): New fn.
5051         (__cxa_vec_ctor, __cxa_vec_cctor, __cxa_vec_dtor): Call it.
5052         * libsupc++/cxxabi.h: Declare it.
5053
5054 2001-03-16  Alexandre Oliva  <aoliva@redhat.com>
5055
5056         * src/gen-num-limits.cc (signal_adapter): Overloaded to match
5057         signal_func with an unspecified argument list.
5058
5059 2001-03-15  Benjamin Kosnik  <bkoz@redhat.com>
5060
5061         * tests_flags.in (CXXFLAGS): Link libstdc++ before libsupc++.
5062
5063 2001-03-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
5064
5065         * include/bits/basic_string.tcc (operator+): Fix thinko.
5066
5067 2001-03-14  Benjamin Kosnik  <bkoz@redhat.com>
5068
5069         libstdc++/2020
5070         * include/bits/std_streambuf.h: Remove cached locale facets.
5071         (basic_streambuf::_M_buf_fctype): Remove.
5072         (basic_streambuf::~basic_streambuf): Remove here.
5073         (basic_streambuf::basic_streambuf): Same.
5074         (basic_streambuf::imbue): Same.
5075         * include/bits/fstream.tcc (filebuf::imbue): Remove _M_buf_fctype.
5076         * include/bits/std_fstream.h (basic_filebuf::_M_fcvt): Remove.
5077         (basic_filebuf::~basic_filebuf()): Remove here.
5078         * include/bits/fstream.tcc (basic_filebuf::basic_filebuf): Same.
5079         (basic_filebuf::imbue): Same.
5080         * include/bits/localefwd.h (_Count_ones): Remove.
5081         (locale::_S_num_categories): Just use 6, since this doesn't
5082         actually change, ever.
5083         * include/bits/locale_facets.tcc (has_facet): Simplify.
5084         (use_facet): Same.
5085         * testsuite/27_io/filebuf.cc (test06): Add tests.
5086
5087 2001-03-13  Steve Ellcey  <sje@cup.hp.com>
5088
5089         * libstdc++-v3/config/os/hpux/bits/ctype_base.h: Make ctype masks
5090         match HP-UX ctype.h header file.
5091
5092 2001-03-13  Andris Pavenis <pavenis@latnet.lv>
5093
5094         * config/djgpp/bits/ctype_noninline.h: Fix typo and remove
5095         duplicate definitions of __dj_ctype_*
5096
5097 2001-03-13  Benjamin Kosnik  <bkoz@redhat.com>
5098
5099         * libsupc++/new: Remove pragma interface.
5100         * libsupc++/typeinfo: Same.
5101         * libsupc++/exception: Same.
5102         * libsupc++/new_handler.cc: Remove pragma implementation.
5103         (bad_alloc::~bad_alloc()): Add.
5104         * libsupc++/exception_support.cc: Same.
5105         (exception::~exception): Add.
5106         (bad_exception::~bad_exception): Add.
5107         * libsupc++/tinfo.cc: Same.
5108         (bad_cast::~bad_cast): Add.
5109         (bad_typeid::~bad_typeid): Add.
5110
5111 2001-03-13  Phil Edwards  <pme@sources.redhat.com>
5112
5113         * mkcheck.in:  Fix IFS regression for non-bash-2.01 hosts.
5114
5115 2001-03-12  Felix Lee  <flee@redhat.com>
5116
5117         * mkcheck.in: workaround for bash 2.01 IFS bug.
5118
5119 2001-03-12  Benjamin Kosnik  <bkoz@redhat.com>
5120
5121         Fixups for -fno-for-scope
5122         * include/bits/locale_facets.tcc (__match_parallel): Fixup.
5123         * src/valarray-inst.cc (__gslice_to_index): Same.
5124
5125 2001-03-12  Rodney Brown  <RodneyBrown@mynd.com>
5126
5127         * src/gen-num-limits.cc (traps) [SPECIALIZE_TRAPPING]: Add fflush
5128         prior to trapping signal (UnixWare 7 workaround).
5129
5130 2001-03-12  Craig Rodrigues  <rodrigc@mediaone.net>
5131
5132         * include/backward/hashtable.h: Same.
5133         * include/backward/rope.h: Fix include.
5134
5135 2001-03-12  Benjamin Kosnik  <bkoz@redhat.com>
5136
5137         * include/backward/vector.h: Include std_vector.h.
5138
5139         * include/bits/istream.tcc (basic_istream<_CharT, _Traits>&
5140         operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
5141         Fix typo.
5142
5143 2001-03-11  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
5144
5145         * include/ext/stl_hashtable.h: Change type of __n to size_t
5146         * include/backward/bvector.h: Include <ext/stl_bvector.h>
5147
5148 2001-03-09  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
5149
5150         * include/bits/istream.tcc ( basic_istream<_CharT, _Traits>&
5151         operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
5152         Use streamsize, not int_type.
5153
5154 2001-03-08  Benjamin Kosnik  <bkoz@redhat.com>
5155
5156         * testsuite/27_io/streambuf.cc (test06): New test, disabled at the
5157         moment.
5158
5159 2001-03-08  Andreas Schwab  <schwab@suse.de>
5160
5161         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Fix syntax in test
5162         command.
5163         * aclocal.m4, configure: Regenerated.
5164
5165 2001-03-07  Benjamin Kosnik  <bkoz@redhat.com>
5166
5167         * include/bits/std_iosfwd.h: Remove string forward decls here.
5168         * include/bits/stringfwd.h: Add forward decls for char_traits
5169         specializations.
5170         * config/c_io_libio.h (wstreamoff): Delete.
5171         * config/c_io_stdio.h (wstreamoff): Same.
5172         * include/bits/char_traits.h: Use streamoff not wstreamoff for
5173         char_traits<wchar_t>::off_type.
5174         Remove duplicate typedefs.
5175         * include/bits/fpos.h: Define streampos/wstreampos here.
5176         * testsuite/27_io/istream_seeks.cc (test04): Explicitly cast int
5177         values to off_type.
5178         (test05): Same.
5179         Changeup output files.
5180         * testsuite/27_io/istream_unformatted.cc: Change output files.
5181         * testsuite/27_io/istream_seeks-1.txt: Add.
5182         * testsuite/27_io/istream_seeks-2.tst: Add.
5183         * testsuite/27_io/istream_seeks-1.tst: Add.
5184         * testsuite/27_io/istream_unformatted-2.tst: Delete.
5185         * testsuite/27_io/istream_unformatted-3.tst: Delete.
5186         * testsuite/27_io/istream_unformatted-3.txt: Delete.
5187
5188 2001-03-07  Alexandre Oliva  <aoliva@redhat.com>
5189
5190         Add Irix 5.2, 6.3 support.
5191         * config/os/irix/bits: Renamed to...
5192         * config/os/irix/irix6.5/bits: this.
5193         * config/os/irix/irix5.2/bits: New, copied from irix6.5/bits.
5194         * config/os/irix/irix5.2/bits/ctype_base.h: Use _U, _L, _N,
5195         _X, _S, _P, _C and _B instead of IRIX-6.5 _IS* macros.
5196         * config/os/irix/irix5.2/bits/ctype_noninline.h
5197         (ctype<char>::ctype): Initialize _M_table with __ctype.
5198         * configure.target: Adjust.
5199
5200 2001-03-06  Benjamin Kosnik  <bkoz@redhat.com>
5201
5202         libstdc++/2181
5203         * include/bits/istream.tcc (basic_istream<_CharT, _Traits>::
5204         operator>>(__istream_type& (*__pf)(__istream_type&)): Don't use
5205         sentry.
5206         (basic_istream<_CharT, _Traits>:: operator>>(__ios_type&
5207         (*__pf)(__ios_type&)): Same.
5208         (basic_istream<_CharT, _Traits>:: operator>>(ios_base&
5209         (*__pf)(ios_base&))): Same.
5210         * testsuite/27_io/istream_extractor_other.cc: Add tests.
5211         * testsuite/27_io/istream_manip.cc (test01): Fix.
5212
5213 2001-03-06  Nathan Myers  <ncm@cantrip.org>
5214             Benjamin Kosnik  <bkoz@redhat.com>
5215
5216         * include/c_std/bits/std_cerrno.h: Don't define errno in std::.
5217         * testsuite/17_intro/header_cerrno.cc (test01): New file.
5218         * testsuite/17_intro/header_cassert.cc (test01): New file.
5219         * testsuite/17_intro/header_cstddef.cc (test01): New file.
5220         * testsuite/17_intro/header_csetjmp.cc (test01): New file.
5221         * testsuite/17_intro/header_cstdarg.cc (test01): New file.
5222
5223 2001-03-05  scott snyder  <snyder@fnal.gov>
5224
5225         libstdc++/2190
5226         * include/c_std/bits/std_cmath.h: Move abs(long), div(long,long)
5227         from here...
5228         * include/c_std/bits/std_cstdlib.h: ... to here.
5229         * testsuite/17_intro/header_cstdlib.cc: Add test.
5230
5231 2001-03-05  Stephen M. Webb  <stephen.webb@cybersafe.com>
5232
5233         * libsupc++/vec.cc (__cxxa_vec_new2): Qualify size_t.
5234
5235 2001-03-05  Laurynas Biveinis  <lauras@softhome.net>
5236
5237         * config/os/djgpp/ctype_base.h (ctype_base): fix __to_type
5238         definition. Replace enum with static const variables.
5239
5240         * config/os/djgpp/ctype_inline.h (ctype<char>::is): remove
5241         throw specification, fix typos, use <static_cast>.
5242         (ctype<char>::scan_is): remove throw specification.
5243         (ctype<char>::scan_not): likewise.
5244
5245         * config/os/djgpp/ctype_noninline.h (ctype<char>::ctype): fix typo.
5246         (ctype<char>::do_toupper(char)): use <static_cast>.
5247         (ctype<char>::do_toupper(char *, const char *)): likewise.
5248         (ctype<char>::do_tolower(char)): likewise.
5249         (ctype<char>::do_tolower(char *, const char *)): likewise.
5250
5251 2001-03-04  Phil Edwards  <pme@sources.redhat.com>
5252
5253         http://gcc.gnu.org/ml/libstdc++/2001-03/msg00015.html
5254         * include/backward/algo.h:  Use std not __STD.  Remove unneeded
5255         macros and "never happens" code.  Adjust to C++STYLE guidelines.
5256         * include/backward/algobase.h:  Likewise.
5257         * include/backward/alloc.h:  Likewise.
5258         * include/backward/bvector.h:  Likewise.
5259         * include/backward/deque.h:  Likewise.
5260         * include/backward/function.h:  Likewise.
5261         * include/backward/hash_map.h:  Likewise.
5262         * include/backward/hash_set.h:  Likewise.
5263         * include/backward/hashtable.h:  Likewise.
5264         * include/backward/heap.h:  Likewise.
5265         * include/backward/iterator.h:  Likewise.
5266         * include/backward/list.h:  Likewise.
5267         * include/backward/map.h:  Likewise.
5268         * include/backward/multimap.h:  Likewise.
5269         * include/backward/multiset.h:  Likewise.
5270         * include/backward/pair.h:  Likewise.
5271         * include/backward/rope.h:  Likewise.
5272         * include/backward/set.h:  Likewise.
5273         * include/backward/slist.h:  Likewise.
5274         * include/backward/stack.h:  Likewise.
5275         * include/backward/strstream:  Likewise.
5276         * include/backward/tempbuf.h:  Likewise.
5277         * include/backward/tree.h:  Likewise.
5278         * include/backward/vector.h:  Likewise.
5279         * include/bits/basic_ios.h:  Likewise.
5280         * include/bits/basic_ios.tcc:  Likewise.
5281         * include/bits/basic_string.h:  Likewise.
5282         * include/bits/c++config:  Likewise.
5283         * include/bits/concept_checks.h:  Likewise.
5284         * include/bits/fpos.h:  Likewise.
5285         * include/bits/fstream.tcc:  Likewise.
5286         * include/bits/functexcept.h:  Likewise.
5287         * include/bits/ios_base.h:  Likewise.
5288         * include/bits/istream.tcc:  Likewise.
5289         * include/bits/mask_array.h:  Likewise.
5290         * include/bits/ostream.tcc:  Likewise.
5291         * include/bits/pthread_allocimpl.h:  Likewise.
5292         * include/bits/sbuf_iter.h:  Likewise.
5293         * include/bits/slice.h:  Likewise.
5294         * include/bits/slice_array.h:  Likewise.
5295         * include/bits/sstream.tcc:  Likewise.
5296         * include/bits/std_bitset.h:  Likewise.
5297         * include/bits/std_fstream.h:  Likewise.
5298         * include/bits/std_iomanip.h:  Likewise.
5299         * include/bits/std_ios.h:  Likewise.
5300         * include/bits/std_istream.h:  Likewise.
5301         * include/bits/std_iterator.h:  Likewise.
5302         * include/bits/std_memory.h:  Likewise.
5303         * include/bits/std_ostream.h:  Likewise.
5304         * include/bits/std_sstream.h:  Likewise.
5305         * include/bits/std_streambuf.h:  Likewise.
5306         * include/bits/std_string.h:  Likewise.
5307         * include/bits/std_valarray.h:  Likewise.
5308         * include/bits/stl_algo.h:  Likewise.
5309         * include/bits/stl_algobase.h:  Likewise.
5310         * include/bits/stl_alloc.h:  Likewise.
5311         * include/bits/stl_construct.h:  Likewise.
5312         * include/bits/stl_deque.h:  Likewise.
5313         * include/bits/stl_function.h:  Likewise.
5314         * include/bits/stl_heap.h:  Likewise.
5315         * include/bits/stl_iterator.h:  Likewise.
5316         * include/bits/stl_iterator_base.h:  Likewise.
5317         * include/bits/stl_list.h:  Likewise.
5318         * include/bits/stl_map.h:  Likewise.
5319         * include/bits/stl_multimap.h:  Likewise.
5320         * include/bits/stl_multiset.h:  Likewise.
5321         * include/bits/stl_numeric.h:  Likewise.
5322         * include/bits/stl_pair.h:  Likewise.
5323         * include/bits/stl_pthread_alloc.h:  Likewise.
5324         * include/bits/stl_queue.h:  Likewise.
5325         * include/bits/stl_raw_storage_iter.h:  Likewise.
5326         * include/bits/stl_relops.h:  Likewise.
5327         * include/bits/stl_set.h:  Likewise.
5328         * include/bits/stl_stack.h:  Likewise.
5329         * include/bits/stl_tempbuf.h:  Likewise.
5330         * include/bits/stl_threads.h:  Likewise.
5331         * include/bits/stl_tree.h:  Likewise.
5332         * include/bits/stl_uninitialized.h:  Likewise.
5333         * include/bits/stl_vector.h:  Likewise.
5334         * include/bits/streambuf.tcc:  Likewise.
5335         * include/bits/type_traits.h:  Likewise.
5336         * include/bits/valarray_meta.h:  Likewise.
5337         * include/ext/bvector:  Likewise.
5338         * include/ext/hash_map:  Likewise.
5339         * include/ext/hash_set:  Likewise.
5340         * include/ext/ropeimpl.h:  Likewise.
5341         * include/ext/slist:  Likewise.
5342         * include/ext/stl_bvector.h:  Likewise.
5343         * include/ext/stl_hash_fun.h:  Likewise.
5344         * include/ext/stl_hashtable.h:  Likewise.
5345         * include/ext/stl_rope.h:  Likewise.
5346         * src/complex_io.cc:  Likewise.
5347         * src/ios.cc:  Likewise.
5348         * src/locale-inst.cc:  Likewise.
5349         * src/locale.cc:  Likewise.
5350         * src/localename.cc:  Likewise.
5351         * src/misc-inst.cc:  Likewise.
5352         * src/stdexcept.cc:  Likewise.
5353         * src/stl-inst.cc:  Likewise.
5354         * src/strstream.cc:  Likewise.
5355         * src/valarray-inst.cc:  Likewise.
5356
5357 2001-03-03  Benjamin Kosnik  <bkoz@redhat.com>
5358
5359         * src/misc-inst.cc (__copy_streambufs): Fix typo for alpha.
5360
5361 2001-03-02  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
5362
5363         * include/bits/istream.tcc: change type of __extracted to __size_type
5364
5365 2001-03-02  Benjamin Kosnik  <bkoz@redhat.com>
5366
5367         * src/wstring-inst.cc: New file.
5368         * src/Makefile.am (EXTRA_LTLIBRARIES): Remove.
5369         (libinst_wstring_la_SOURCES): Remove.
5370         (libstdc___la_LIBADD): Remove libinst_wstring_la.
5371         (sources): Add wstring-inst.cc
5372         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Remove
5373         libinst_wstring_la.
5374
5375 2001-03-02  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
5376
5377         * src/locale.cc: initialise __ret with zero
5378         * src/strstream.cc:cast gptr to int_type
5379
5380 2001-03-01  Phil Edwards  <pme@sources.redhat.com>
5381
5382         * docs/html/faq/index.html:  Update broken links.
5383         * docs/html/faq/index.txt:  Regenerated.
5384
5385 2001-02-28  Benjamin Kosnik  <bkoz@redhat.com>
5386
5387         libstdc++/2064
5388         * configure.target: Change irix* to irix6.5* in target_os table.
5389
5390 2001-02-28  Benjamin Kosnik  <bkoz@redhat.com>
5391
5392         libstdc++/2103
5393         * include/bits/c++config (__GLIBCPP__): Bump number in
5394         anticipation of 2.92.
5395
5396         * include/bits/codecvt.h: Fix typo.
5397         * include/bits/basic_file.h (__basic_file): Don't use _M_wfile for
5398         stdio model.
5399         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Enable wchar_t
5400         instantiations for stdio model.
5401
5402 2001-02-28  Phil Edwards  <pme@sources.redhat.com>
5403
5404         * acinclude.m4 (GLIBCPP_CONFIGURE):  Remove GLIBCPP_CFLAGS
5405           and GLIBCPP_CXXFLAGS as unused variables.
5406         * configure.host:  Likewise.
5407         * configure.target:  Likewise.
5408         * aclocal.m4:  Regenerated.
5409         * configure:  Regenerated.
5410         * Makefile.in:  Regenerated.
5411         * libio/Makefile.in:  Regenerated.
5412         * libmath/Makefile.in:  Regenerated.
5413         * libsupc++/Makefile.in:  Regenerated.
5414         * src/Makefile.in:  Regenerated.
5415
5416 2001-02-27  Benjamin Kosnik  <bkoz@redhat.com>
5417
5418         libstdc++/1886
5419         * include/bits/basic_file.h: Include basic_file_model.h.
5420         * config/c_io_libio.cc: Move to...
5421         * config/basic_file_libio.cc: Here.
5422         * config/basic_file_libio.h: New file.
5423         * config/c_io_stdio.cc: Move to...
5424         * config/basic_file_stdio.cc: Here.
5425         * config/basic_file_stdio.h: New file.
5426         * config/c_io_libio.h: Tweak.
5427         * config/c_io_stdio.h: Tweak.
5428         * src/Makefile.am (build_headers): Add basic_file_model.h.
5429         (sources): Add basic_file.cc, remove c++io.cc.
5430         * src/Makefile.in: Regenerate.
5431         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add support for
5432         basic_file_model.h and basic_file.cc.
5433         * aclocal.m4: Regenerate.
5434         * configure: Regenerate.
5435         * testsuite/27_io/filebuf.cc (test05): Add regression.
5436
5437 2001-02-27  Benjamin Kosnik  <bkoz@redhat.com>
5438
5439         Correct license.
5440         * config/cpu/alpha/bits/atomicity.h: Change.
5441         * config/cpu/arm/bits/atomicit3y.h
5442         * config/cpu/generic/bits/atomicity.h
5443         * config/cpu/i386/bits/atomicity.h
5444         * config/cpu/i486/bits/atomicity.h
5445         * config/cpu/ia64/bits/atomicity.h
5446         * config/cpu/powerpc/bits/atomicity.h
5447         * config/cpu/sparc/sparc32/bits/atomicity.h
5448         * config/cpu/sparc/sparc64/bits/atomicity.h
5449         * config/os/aix/bits/atomicity.h
5450         * config/os/irix/bits/atomicity.h
5451
5452 2001-02-27  Benjamin Kosnik  <bkoz@redhat.com>
5453
5454         * include/bits/std_stdexcept.h (runtime_error): Make string
5455         member non-const.
5456         (logic_error): Same.
5457         * testsuite/19_diagnostics/stdexceptions.cc (test04): Add test.
5458         (test03): Fix.
5459
5460 2001-02-26  Benjamin Kosnik  <bkoz@redhat.com>
5461
5462         libstdc++/1972
5463         libstdc++/2089
5464         * include/bits/std_stdexcept.h (logic_error::logic_error): Use
5465         string object, not reference.
5466         (runtime_error::runtime_error): Same.
5467         * testsuite/19_diagnostics/stdexceptions.cc: New file.
5468
5469 2001-02-26  Phil Edwards  <pme@sources.redhat.com>
5470
5471         * acinclude.m4 (GLIBCPP_CONFIGURE):  Update required compiler version.
5472           (GLIBCPP_CHECK_COMPILER_FEATURES):  Can safely assume new
5473           diagnostics.  Remove WFMT_FLAGS.
5474         * configure.in:  Replace WFMT_FLAGS with diagnostics options.
5475         * libsupc++/Makefile.am:  Likewise.
5476         * src/Makefile.am:  Likewise.
5477         * aclocal.m4:  Regenerated.
5478         * configure:  Regenerated.
5479         * Makefile.in:  Regenerated.
5480         * libio/Makefile.in:  Regenerated.
5481         * libmath/Makefile.in:  Regenerated.
5482         * libsupc++/Makefile.in:  Regenerated.
5483         * src/Makefile.in:  Regenerated.
5484
5485 2001-02-26  Phil Edwards  <pme@sources.redhat.com>
5486
5487         Fixes libstdc++/2079
5488         * include/backward/iomanip.h:  Expose <ios> manipulators to global
5489           namespace.
5490         * include/backward/iostream.h:  Also expose std::ws.
5491
5492 2001-02-25  Greg Freemyer <freemyer@NorcrossGroup.com>
5493
5494         * libmath/mathconf.h (GET_LDOUBLE_MSW64): Fix thinko.
5495
5496 2001-02-23  Benjamin Kosnik  <bkoz@redhat.com>
5497
5498         * include/bits/codecvt.h: Use __builtin_alloca.
5499         * include/bits/ostream.tcc: Same.
5500         * include/bits/fstream.tcc: Same.
5501
5502 2001-02-23  Alexandre Oliva <aoliva@redhat.com>
5503
5504         * mknumeric_limits (CC): Use VAR=${VAR=...} form.
5505
5506 2001-02-23  David Edelsohn <dje@watson.ibm.com>
5507
5508         * mknumeric_limits (CC): Use $BUILD_DIR/../../gcc/xgcc
5509
5510 2001-02-23  Phil Edwards  <pme@sources.redhat.com>
5511
5512         c++/2052
5513         * include/backward/iostream.h:  Expose std::flush in old headers.
5514
5515 2001-02-23  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
5516
5517         * mknumeric_limits: Remove special-casing on target.  Use gcc
5518         instead of g++ to build gen-num-limits.cc
5519
5520 2001-02-22  Benjamin Kosnik  <bkoz@redhat.com>
5521
5522         * tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.
5523
5524         * include/bits/codecvt.h: Use alloca instead of __extension__ for
5525         the time being.
5526         * include/bits/ostream.tcc: Same.
5527         * include/bits/std_ostream.h: Same.
5528         * include/bits/fstream.tcc: Same.
5529         * include/bits/locale_facets.tcc: Add typename.
5530         * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS): Enable.
5531
5532 2001-02-21  Phil Edwards  <pme@sources.redhat.com>
5533
5534         * tests_flags.in:  Remove -n flag from call to echo.
5535
5536 2001-02-20  Benjamin Kosnik  <bkoz@redhat.com>
5537
5538         * config/c_locale_gnu.h: Add clocale include.
5539
5540 2001-02-20  Phil Edwards  <pme@sources.redhat.com>
5541
5542         * include/bits/stl_config.h:  Remove file.
5543         * src/Makefile.am (base_headers):  Remove from list.
5544         * configure:  Regenerate.
5545         * Makefile.in:  Ditto.
5546         * libio/Makefile.in:  Ditto.
5547         * libmath/Makefile.in:  Ditto.
5548         * libsupc++/Makefile.in:  Ditto.
5549         * src/Makefile.in:  Ditto.
5550
5551         * include/bits/c++config:  Move relevant macros to here.
5552         * include/backward/alloc.h:  Include c++config.h instead.
5553         * include/backward/function.h:  Ditto.
5554         * include/backward/heap.h:  Ditto.
5555         * include/backward/pair.h:  Ditto.
5556         * include/bits/pthread_allocimpl.h:  Ditto.
5557         * include/bits/std_functional.h:  Ditto.
5558         * include/bits/std_iterator.h:  Ditto.
5559         * include/bits/std_numeric.h:  Ditto.
5560         * include/bits/std_utility.h:  Ditto.
5561         * include/bits/stl_algobase.h:  Ditto.
5562         * include/bits/type_traits.h:  Ditto.
5563         * src/stl-inst.cc:  Ditto.
5564
5565 2001-02-19  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
5566
5567         * include/bits/basic_file.h: Add #pragma system_header
5568         * include/bits/basic_ios.h: Ditto.
5569         * include/bits/basic_string.h: Ditto.
5570         * include/bits/char_traits.h: Ditto.
5571         * include/bits/codecvt.h: Ditto.
5572         * include/bits/cpp_type_traits.h:  Ditto.
5573         * include/bits/fpos.h: Ditto.
5574         * include/bits/gslice.h: Ditto.
5575         * include/bits/gslice_array.h: Ditto.
5576         * include/bits/indirect_array.h: Ditto.
5577         * include/bits/ios_base.h: Ditto.
5578         * include/bits/limits_generic.h: Ditto.
5579         * include/bits/locale_facets.h: Ditto.
5580         * include/bits/localefwd.h: Ditto.
5581         * include/bits/mask_array.h: Ditto.
5582         * include/bits/sbuf_iter.h: Ditto.
5583         * include/bits/sequence_concepts.h: Ditto.
5584         * include/bits/slice.h: Ditto.
5585         * include/bits/slice_array.h: Ditto.
5586         * include/bits/std_algorithm.h: Likewise.
5587         * include/bits/std_bitset.h: Likewise.
5588         * include/bits/std_complex.h: Likewise.
5589         * include/bits/std_deque.h: Likewise.
5590         * include/bits/std_fstream.h: Likewise.
5591         * include/bits/std_functional.h: Likewise.
5592         * include/bits/std_iomanip.h: Likewise.
5593         * include/bits/std_ios.h: Likewise.
5594         * include/bits/std_iosfwd.h: Likewise.
5595         * include/bits/std_iostream.h: Likewise.
5596         * include/bits/std_istream.h: Likewise.
5597         * include/bits/std_iterator.h: Likewise.
5598         * include/bits/std_list.h: Likewise.
5599         * include/bits/std_locale.h: Likewise.
5600         * include/bits/std_map.h: Likewise.
5601         * include/bits/std_memory.h: Likewise.
5602         * include/bits/std_numeric.h: Likewise.
5603         * include/bits/std_ostream.h: Likewise.
5604         * include/bits/std_queue.h: Likewise.
5605         * include/bits/std_set.h: Likewise.
5606         * include/bits/std_sstream.h: Likewise.
5607         * include/bits/std_stack.h: Likewise.
5608         * include/bits/std_stdexcept.h: Likewise.
5609         * include/bits/std_streambuf.h: Likewise.
5610         * include/bits/std_string.h: Likewise.
5611         * include/bits/std_utility.h: Likewise.
5612         * include/bits/std_valarray.h: Likewise.
5613         * include/bits/std_vector.h: Likewise.
5614         * include/bits/stringfwd.h: Likewise.
5615         * include/bits/type_traits.h: Likewise.
5616         * include/bits/valarray_array.h: Likewise.
5617         * include/bits/valarray_meta.h: Likewise.
5618
5619 2001-02-19  Andreas Jaeger  <aj@suse.de>
5620
5621         * config/cpu/sparc/sparc64/bits/atomicity.h (__compare_and_swap):
5622         Fix typo.
5623
5624 2001-02-16  Greg Bumgardner <bumgard@roguewave.com>
5625
5626         libstdc++/1734
5627         * include/bits/std_ostream.h: Replaced usage of
5628         _Traits::_S_eos() with _CharT() as per section 17.2.2.1.3.
5629         * include/bits/char_traits.h: Removed non-standard
5630         methods that cannot be used elsewhere.
5631
5632         libstdc++/1885
5633         * include/bits/basic_ios.h: Uncommented #include of
5634         bits/basic_ios.tcc
5635
5636         libstdc++/1897
5637         * include/bits/codecvt.h: See next...
5638         * include/bits/fstream.tcc: See next...
5639         * include/bits/ostream.tcc: Add __extension__
5640         to variable-length arrays.
5641
5642         libstdc++/1967
5643         * include/bits/localefwd.h: Changed int counter type to size_t.
5644
5645         libstdc++/1968
5646         * include/bits/std_fstream.h: Added typedef for __ctype_type.
5647
5648 2001-02-16  Benjamin Kosnik  <bkoz@redhat.com>
5649
5650         * testsuite/21_strings/char_traits.cc: Move to ...
5651         * testsuite/21_strings/char_traits_requirements.cc: ..here.
5652         * testsuite/21_strings/char_traits-int_type.cc: Move to ...
5653         * testsuite/21_strings/char_traits_typedefs.cc: ..here.
5654
5655 2001-02-16  Gabriel Dos Reis  <gdr@codesourcery.com>
5656
5657         * libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
5658         definitions.
5659
5660 2001-02-15  Benjamin Kosnik  <bkoz@redhat.com>
5661
5662         * include/bits/c++config: Revert.
5663
5664 2001-02-15  Mark Mitchell  <mark@codesourcery.com>
5665
5666         * include/bits/istream.tcc: Use ios_base::iostate in place of
5667         iostate throughout.  Insert `typename' keyword where necessary.
5668         * include/bits/ostream.tcc: Insert `typename' keyword where
5669         necessary.
5670
5671 2001-02-15  Jeffrey Oldham  <oldham@codesourcery.com>
5672
5673         * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS):
5674         Define so library is compliant.
5675
5676 2001-02-15  Anthony Green  <green@redhat.com>
5677
5678         * acinclude.m4 (glibcpp_toolexeclibdir): Fix test for cross
5679         compilation.
5680         * aclocal.m4: Regenerate.
5681         * configure: Regenerate.
5682
5683 2001-02-15  Rodney Brown  <RodneyBrown@mynd.com>
5684
5685         * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1):
5686         Include ieeefp.h for fpclass on UnixWare{2,7}.
5687         * aclocal.m4: Regenerate.
5688         * configure: Regenerate.
5689         * mkcheck.in (size_command): Do without GNU-grep when using
5690         size from binutils.
5691
5692 2001-02-15  Mark Mitchell  <mark@codesourcery.com>
5693
5694         Remove old ABI support from libsupc++.
5695         * libsupc++/cxxabi.h: Remove conditionally compiled code.
5696         * libsupc++/exception_support.cc: Likewise.
5697         * libsupc++/pure.cc: Likewise.
5698         * libsupc++/tinfo.cc: Likewise.
5699         * libsupc++/tinfo.h: Likewise.
5700         * libsupc++/tinfo2.cc: Likewise.
5701         * libsupc++/typeinfo: Likewise.
5702         * libsupc++/vec.cc: Likewise.
5703
5704 2001-02-15  Benjamin Kosnik  <bkoz@redhat.com>
5705
5706         Add support for -fno-exceptions.
5707         * include/bits/exception_support.h: Remove.
5708         * include/bits/basic_string.h: Remove exception_support.
5709         (string::_M_check): Replace __OUTOFRANGE with __throw_out_of_range.
5710         (string::at): Same.
5711         (string::substr): Same.
5712         * include/bits/basic_string.tcc (string::reserve): Replace
5713         __LENGTHERROR with __throw_length_error.
5714         (string::_S_create): Same.
5715         (string::resize): Same.
5716         (string::_M_replace): Same.
5717         (string::replace): Same.
5718         (string::copy): Replace __OUTOFRANGE with __throw_out_of_range.
5719         (string::compare): Same.
5720         * include/bits/stl_vector.h: Remove exception_support.
5721         * src/Makefile.am (base_headers): Remove here.
5722         * src/Makefile.in: Regenerate.
5723
5724         * include/bits/stl_range_errors.h: Remove.
5725         * include/bits/stl_deque.h: Use __throw_range_error.
5726         * include/bits/std_deque.h: Include functexcept.h.
5727         * include/bits/std_vector.h: Same.
5728         * src/Makefile.am (base_headers): Remove here.
5729         * src/Makefile.in: Regenerate.
5730         * include/ext/stl_bvector.h (class __BVECTOR): Use __throw_range_error.
5731         * include/ext/bvector: Remove stl_range_errors.h
5732
5733         * include/bits/c++config (_GLIBCPP_USE_EXCEPTIONS): Remove.
5734
5735         * include/bits/functexcept.h: New file.
5736         * src/functexcept.cc: New file. Definitions for function-based
5737         exception routines.
5738         * src/Makefile.am (sources): Add functexcept.cc.
5739         * src/Makefile.in: Regenerate.
5740
5741         * include/bits/stl_config.h (__STL_USE_EXCEPTIONS): Wrap with
5742         __EXCEPTIONS.
5743
5744         * include/bits/localefwd.h: Include functexcept.h.
5745         * include/bits/std_iosfwd.h: Same.
5746
5747         * include/bits/basic_ios.h: Use __throw_ios_failure instead of
5748         throw basic_ios::failure.
5749         * include/bits/fstream.tcc (filebuf::_M_allocate_buffers):
5750         Use __throw_exception_again.
5751         (filebuf::_M_filebuf_init): Same.
5752         * include/bits/streambuf.tcc (__copy_streambufs): Same.
5753         * include/bits/ostream.tcc (ostream::operator<<): Same.
5754         * include/bits/istream.tcc (istream::operator>>): Same.
5755         * include/bits/basic_string.tcc (string::_M_mutate): Same.
5756         (string::_S_construct): Same.
5757         (string::_M_clone): Same.
5758         * include/bits/locale_facets.tcc (use_facet(const locale&)): Use
5759         __throw_bad_cast.
5760         (num_put<_CharT, _OutIter>::do_put): Use __throw_exception_again.
5761         * src/localename.cc (locale::_Imp::_Imp(const _Impl&, size_t): Use
5762         __throw_exception_again.
5763         (locale::_Imp::_Imp(string, size_t): Same.
5764         (locale::_Imp::_M_replace_facet): Use __throw_runtime_error.
5765         * src/locale.cc (locale::_M_coalesce): Use __throw_exception_again.
5766         (locale::locale(const char*)): Use __throw_runtime_error.
5767         (locale::classic): Use __throw_exception_again.
5768         (locale::_S_normalize_category): Use __throw_runtime_error.
5769
5770         * src/stdexcept.cc: Remove cruft.
5771
5772         * libsupc++/exception_defines.h: New file.
5773         * libsupc++/new_opnt.cc: Include exception_defines.h.
5774         * libsupc++/vec.cc: Same.
5775         (__cxa_vec_new2): Use __throw_exception_again.
5776         (__cxa_vec_new3): Same.
5777         (__cxa_vec_ctor): Same.
5778         (__cxa_vec_delete3): Same.
5779         (__cxa_vec_cctor): Same.
5780         (__cxa_vec_delete2): Same.
5781         (__cxa_vec_dtor): Same.
5782         * libsupc++/exception_support.cc: Include exception_defines.h. Only
5783         compile exception-handling bits if __EXCEPTIONS is defined.
5784         Remove old ABI support.
5785         * libsupc++/new_op.cc (new): Include exception_defines.h. Use
5786         std::__throw_bad_alloc() instead of throw bad_alloc.
5787         * libsupc++/Makefile.am: Add exception_defines.h.
5788         * libsupc++/Makefile.in: Reformat.
5789         * libsupc++/*: Format.
5790
5791 2001-02-15  Phil Edwards  <pme@sources.redhat.com>
5792
5793         * docs/html/configopts.html:  Minor updates and typo fixes.
5794         * docs/html/faq/index.html:  Updates of the "not really bugs" list.
5795         * docs/html/faq/index.txt:  Regenerated.
5796
5797 2001-02-15  Gabriel Dos Reis  <gdr@codesourcery.com>
5798
5799         * testsuite/lib/libstdc++.exp: Lift, temporarily, out of
5800         dejagnu/dg.exp.  Adapt to log options used to run testcases.
5801
5802 2001-02-13  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
5803
5804         * testsuite/lib/libstdc++.exp(dg-test): Lift temporarily from
5805         dejagnu/dg.exp.
5806
5807 2001-02-13  Dirk Mueller <dmuell@gmx.net>
5808             Phil Edwards  <pme@sources.redhat.com>
5809
5810         * include/backward/function.h:  Do not use rel_ops for older
5811           headers either.
5812         * include/backward/pair.h:  Likewise.
5813
5814 2001-02-12  Mark Mitchell  <mark@codesourcery.com>
5815
5816         * src/locale.cc: Remove bogus locale::id definitions.
5817
5818 2001-02-11  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
5819
5820         * include/bits/std_valarray.h: #undef _DEFINE_LOGICAL_OPERATOR,
5821         not _DEFINE_VALARRAY_OPERATOR which is not existent.
5822
5823         * include/bits/valarray_meta.h (_RefFunClos<>_RefRunClos): Fix
5824         thinko in member initialisation.
5825
5826 2001-02-11  Gabriel Dos Reis  <gdr@codesourcery.com>
5827
5828         * include/bits/std_valarray.h(valarray<>::shift): Avoid
5829         comparaison between signed and unsigned integer types.
5830         (valarray<>::cshift): Reformat.
5831
5832 2001-02-11  Alexandre Oliva  <aoliva@redhat.com>
5833
5834         * src/gen-num-limits.cc: Use sigsetjmp and siglongjmp if available.
5835         * mknumeric_limits: Compile it with -DHAVE_CONFIG_H.
5836         * configure.in: Test for sigsetjmp.
5837         * configure, config.h.in: Rebuilt.
5838
5839 2001-02-11  Gabriel Dos Reis  <gdr@codesourcery.com>
5840
5841         * src/valarray-inst.cc (gslice::_Indexer::_Indexer): Don't flip
5842         lengths and strides.
5843         (__gslice_to_index): Document.
5844
5845 2001-02-11  Gabriel Dos Reis  <gdr@codesourcery.com>
5846
5847         * include/bits/char_traits.h char_traits<char>::int_type: Change
5848         to `int' to match 21.1.3.1/2.
5849
5850         * testsuite/21_strings/char_traits-int_type.C: New test.
5851
5852 2001-02-10  Gabriel Dos Reis  <gdr@codesourcery.com>
5853
5854         * testsuite/Makefile.am: New file.
5855
5856 2001-02-09  Nathan Sidwell  <nathan@codesourcery.com>
5857
5858         * include/c_shadow/bits/std_cstdlib.h (lldiv_t): Fix typo.
5859
5860 2001-02-08  Loren J. Rittle  <ljrittle@acm.org>
5861
5862         * src/locale-inst.cc (fill_n): Instantiate with size_t arguments.
5863
5864 2001-02-08  David Edelsohn  <edelsohn@gnu.org>
5865
5866         * configure.target (aix4*): Remove extra set of brackets.
5867
5868 2001-02-07  Benjamin Kosnik  <bkoz@redhat.com>
5869
5870         Clean up stdexcept.
5871         * include/bits/stringfwd.h: New file.
5872         * include/bits/stl_string_fwd.h: Remove.
5873         * include/bits/localefwd.h: Remove declaration for allocator.
5874         * include/bits/std_iosfwd: Same.
5875         * include/bits/std_string.h: Include it.
5876         * include/bits/std_ios.h: Remove include.
5877         * include/bits/basic_string.h: Tweak.
5878         * libsupc++/new: Format.
5879         * src/Makefile.am (base_headers): Add stringfwd.h, remove
5880         stl_string_fwd.h
5881         * src/Makefile.in: Regenerate.
5882         * include/bits/std_stdexcept.h: Rewrite.
5883         * src/stdexcept.cc: Same.
5884
5885 2001-02-06  Benjamin Kosnik  <bkoz@redhat.com>
5886
5887         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Deal with library
5888         install locations too.
5889         * aclocal.m4: Regenerate.
5890         * configure.in: Remove USE_LIBDIR.
5891         * configure: Regenerate.
5892         * src/Makefile.am (toolexecdir): Simplify, use
5893         glibcpp_toolexecdir, glibcpp_toolexeclibdir.
5894         * src/Makefile.in: Regenerate.
5895         * libsupc++/Makefile.am: Same.
5896         * libsupc++/Makefile.in: Regenerate.
5897
5898         * src/Makefile.am: Just remove special rules for locale-inst.cc and
5899         misc-inst.cc as no longer necessary.
5900
5901         Follow C++STYLE for naming non-static functions.
5902         * include/bits/ostream.tcc (_S_pad_char): Not static, rename to
5903         __pad_char.
5904         * include/bits/streambuf.tcc: Same.
5905         * include/bits/ostream.tcc: Same.
5906         * include/bits/istream.tcc: Same.
5907         * include/bits/locale_facets.tcc (_S_pad_numeric): To __pad_numeric.
5908         (_S_output_float): To __output_float.
5909         * include/bits/std_streambuf.h (_S_copy_streambufs): To
5910         __copy_streambufs.
5911         * include/bits/locale_facets.tcc (_S_build_float_format): To
5912         __build_float_format.
5913         (_S_format): To __output_integer.
5914         (_S_fill): To __pad.
5915         * src/locale.cc: Same.
5916         * src/misc-inst.cc: Fix formatting. Fix signature for wchar_t. Correct
5917         names.
5918         * include/bits/locale_facets.tcc (_S_group_digits): To
5919         __group_digits.
5920         * src/locale-inst.cc: Fixup names. Add use_facet instantiations
5921         for collate, numpunct.
5922
5923 2001-02-06  Phil Edwards  <pme@sources.redhat.com>
5924
5925         * docs/html/configopts.html:  Fix HTML markup.
5926         * docs/html/install.html:  Bring up to date.
5927         * docs/html/17_intro/C++STYLE:  Add global variable conventions.
5928         * docs/html/21_strings/howto.html:  More notes.
5929         * docs/html/22_locale/howto.html:  Fix HTML markup.
5930         * docs/html/27_io/howto.html:  More notes.
5931         * docs/html/27_io/binary_iostreams_kanze.txt:  New file.
5932         * docs/html/27_io/binary_iostreams_kuehl.txt:  New file.
5933
5934 2001-02-06  Jeffrey Oldham  <oldham@codesourcery.com>
5935
5936         * src/misc-inst.cc (_S_pad_char): Modify declaration's parameters
5937         to match header files.
5938         (_S_output_float): Likewise.
5939         (_S_copy_streambufs): Likewise.
5940
5941 2001-02-06  Hyman Rosen  <Hyman.Rosen@kbcfp.com>
5942             Phil Edwards  <pme@sources.redhat.com>
5943
5944         * include/bits/std_istream.h (op>> signed,unsigned char):  Must
5945           use reinterpret_cast, not static_cast.
5946
5947 2001-02-06  Benjamin Kosnik  <bkoz@redhat.com>
5948
5949         * acinclude.m4 (gxx_include_dir): Quote, fix regression.
5950         * aclocal.m4: Regenerate.
5951         * configure: Regenerate.
5952
5953 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
5954
5955         * include/bits/locale_facets.h (class moneypunct): Fix typos.
5956         * libsupc++/pure.cc: Revert.
5957
5958 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
5959
5960         * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1): New macro.
5961         (GLIBCPP_CHECK_MATH_DECL_2): New macro.
5962         (GLIBCPP_CHECK_MATH_DECL_3): New macro.
5963         (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1): Use it, check for _* too.
5964         (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2): Same.
5965         (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3): Same.
5966         (GLIBCPP_CHECK_MATH_SUPPORT): Remove explicit checks for _* versions.
5967         * aclocal.m4: Regenerate.
5968         * configure: Regenerate.
5969
5970 2001-02-05  Mark Mitchell  <mark@codesourcery.com>
5971
5972         * include/bits/locale_facets.tcc: Remove `static' keyword on
5973         function definitions.
5974         * include/bits/std_streambuf.h: Likewise.
5975         * src/Makefile.am: Remove use of -fimplicit-templates.
5976         * src/Makefile.in: Regenerated.
5977         * src/locale-inst.cc: Explicitly instantiate more functions.
5978         * src/misc-inst.cc: Likewise.
5979         * src/string-inst.cc: Likewise.
5980
5981 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
5982
5983         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): New
5984         macro. Consolidate all the bits to do with where includes might be
5985         installed.
5986         * aclocal.m4: Regenerate.
5987         * configure.in: Use it.
5988         * configure: Regenerate.
5989         * src/Makefile.am (targetincludep): Use simplified rules.
5990         (targetincludep): Rename gxx_target_include_dir.
5991         (myincludep): Rename gxx_include_dir.
5992         * src/Makefile.in: Regenerate.
5993         * libsupc++/Makefile.am: Use simplified rules.
5994         * libsupc++/Makefile.in: Regenerate.
5995
5996 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
5997
5998         * include/c_std/bits/std_cerrno.h: Correct date format for copyright.
5999         * include/c_std/bits/std_cctype.h: Same.
6000         * include/c_std/bits/std_cassert.h: Same.
6001         * include/c_std/bits/std_cstdarg.h: Same.
6002         * include/c_std/bits/std_cstddef.h: Same.
6003
6004         * include/c_std/bits/std_cstdio.h: Undefine all names brought into
6005         namespace std.
6006         * include/c_std/bits/std_ctime.h: Same.
6007         * include/c_std/bits/std_clocale.h: Same.
6008         * include/c_std/bits/std_cmath.h: Same.
6009         * include/c_std/bits/std_csetjmp.h: Same.
6010         * include/c_std/bits/std_csignal.h: Same.
6011         * include/c_std/bits/std_cstring.h: Same.
6012         * include/c_std/bits/std_cstdlib.h: Same.
6013         * include/c_std/bits/std_cwchar.h: Same.
6014
6015 2001-02-05  Phil Edwards  <pme@sources.redhat.com>
6016
6017         * testsuite/27_io/ios_base_members_static.cc:  Swap order of tests.
6018
6019 2001-02-05  Mark Mitchell  <mark@codesourcery.com>
6020
6021         * src/string-inst.cc (string::_M_replace): Explicitly instantiate.
6022         (string::_S_construct): Likewise.
6023
6024 2001-02-05  Gabriel Dos Reis  <gdr@codesourcery.com>
6025
6026         * testsuite/config/default.exp: New file.
6027         * testsuite/config: New directory.
6028
6029 2001-02-04  Mark Mitchell  <mark@codesourcery.com>
6030
6031         * libsupc++/typeinfo (__GXX_MERGED_TYPEINFO_NAMES): New macro.
6032         * libsupc++/tinfo.cc (std::typeinfo::operator==): Use strcmp
6033         whenever !__GXX_MERGED_TYPEINFO_NAMES.
6034         * libsupc++/tinfo2.cc (std::typeinfo::before): Likewise.
6035
6036 2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6037             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6038
6039         * Makefile.am (mkinstalldirs): Set.
6040         * src/Makefile.am (mkinstalldirs): Set.
6041         * libmath/Makefile.am (mkinstalldirs): Set.
6042         * libsup++/Makefile.am (mkinstalldirs): Set.
6043         * libio/Makefile.am (mkinstalldirs): Set.
6044         * */Makefile.in: Regenerate.
6045
6046 2001-02-03  Benjamin Kosnik  <bkoz@redhat.com>
6047
6048         * include/bits/stl_threads.h (struct _STL_mutex_lock): Same.
6049         * include/bits/localefwd.h: More initialization cleanups.
6050
6051 2001-02-03  Jeffrey A Law  <law@cygnus.com>
6052
6053         * include/bits/ios_base.h (_S_ios_fmtflags_end): Initialize
6054         correctly targets with 16bit ints.
6055         (_S_ios_openmode_end): Similarly.
6056         (_S_ios_iostate_end): Similarly.
6057         (_S_ios_Seekdir_end): Similarly.
6058
6059 2001-02-02  Phil Edwards  <pme@sources.redhat.com>
6060
6061         * mkcheck.in:  Also limit virtual memory size, for mmap-based mallocs.
6062
6063 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6064
6065         * configure.in (toplevel_srcdir, auxdir): Set.
6066         * acinclude.m4 (glibcpp_basedir): Set based on auxdir.
6067         * aclocal.m4, configure, Makefile.in: Rebuilt.
6068         * libio/Makefile.in, math/Makefile.in, src/Makefile.in: Likewise.
6069         * libsupc++-v3/Makefile.am (INCLUDES): Use toplevel_srcdir.
6070         * libsupc++-v3/Makefile.in: Rebuilt.
6071         * libsupc++-v3/configure.in, libsupc++-v3/configure: Removed.
6072         * libsupc++-v3/aclocal.m4, libsupc++-v3/config.h.in: Likewise.
6073
6074 2001-01-30   Benjamin Kosnik  <bkoz@redhat.com>
6075
6076         * config/c_locale_generic.cc: Remove langinfo include.
6077
6078 2001-01-29  Benjamin Kosnik  <bkoz@redhat.com>
6079
6080         Preliminary named locales.
6081         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
6082         * aclocal.m4: Regenerate.
6083         * configure.in: Use it.
6084         * configure: Regerate.
6085         * src/Makefile.am (sources): Add c++locale.cc.
6086         (build_headers): Add c++locale.h.
6087         * src/Makefile.in: Regenerate.
6088         * config/c_locale_gnu.h: New file.
6089         * config/c_locale_gnu.cc: New file. Non-inline member functions
6090         for named locales, gnu-specific.
6091         * config/c_locale_generic.h: New file.
6092         * config/c_locale_generic.cc: New file. Non-inline member
6093         functions for named locales, generic version.
6094         * docs/html/configopts.html: Add documentation on new options.
6095
6096         * include/bits/locale_facets.h (class _Messages): Remove.
6097         (class _Moneypunct): Remove.
6098         * src/locale-inst.cc: Remove.
6099
6100         * include/bits/locale_facets.h (class _Collate): Remove.
6101         * src/locale-inst.cc (std): Remove.
6102         * src/locale.cc: And here.
6103
6104         * include/bits/localefwd.h (locale::_M_coalesce): New
6105         function. Correctly put together multi-name locales.
6106         (_Impl(const _Impl&, category, size_t)): Remove.
6107
6108         * include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
6109         member functions.
6110         (_M_normalize_category_names): Remove.
6111         (_M_replace_categories): Fix.
6112
6113         * src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
6114         (locale::_Impl::_M_construct_ctype): Remove.
6115         (locale::_Impl::_M_construct_monetary): Remove.
6116         (locale::_Impl::_M_construct_numeric): Remove.
6117         (locale::_Impl::_M_construct_time): Remove.
6118         (locale::_Impl::_M_construct_messages): Remove.
6119
6120         * include/bits/locale_facets.h (_Bad_use_facet): Remove.
6121         (_Use_facet_failure_handle): Remove.
6122         * src/locale.cc: Remove definitions.
6123         * src/locale-inst.cc: And here.
6124
6125         * testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
6126
6127         * src/localename.cc (locale::facet::_S_create_c_locale): Properly
6128         create and error-check underlying locale object.
6129         (locale::facet::_S_destroy_c_locale): Add, take care of properly
6130         tearing down underlying locale object.
6131         * include/bits/localefwd.h (locale::facet): Declare.
6132         * testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
6133         correctness, as glibc apparently has incorrect info in it. Test
6134         with it when it works again.....
6135
6136         * include/bits/localefwd.h (locale::_Impl::__vec_string):
6137         Remove. Number of categories is fixed at six, so just simplify and
6138         make this an array of strings.
6139         (locale::_Impl::_M_has_name): Remove.
6140         (locale::_Impl::_M_name): Remove.
6141         (locale::_Impl::_M_category_names): Turns into...
6142         (locale::_Impl::_M_names): ...this.
6143         (locale::_Impl::_M_has_same_name()): New function.
6144         * src/localename.cc (locale::_Impl::~_Impl()): Remove here.
6145         (locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
6146         signature.
6147         * src/locale.cc (locale::name()): Construct mangled name
6148         accurately reflecting combined locale categories.
6149
6150         * src/locale.cc (locale::classic()): Don't initialize here.
6151         * src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
6152         __refs, bool __has_name, string __str): Do it here.
6153
6154         * include/bits/localefwd.h: _S_categories_num to
6155         _S_num_categories. _S_facets_num to _S_num_facets.
6156         (locale::id::id()): Explicitly set _M_index to zero.
6157         * src/locale.cc: Same.
6158
6159         * src/locale.cc: (locale::locale(const char*)): Construct named
6160         locales uniquely.
6161
6162         * src/locale.cc: Remove numpunct_byname ctors.
6163         * testsuite/22_locale/numpunct_byname.cc: New file.
6164         * testsuite/22_locale/numpunct.cc: New file.
6165
6166         * include/bits/localefwd.h (class locale): Change data members to
6167         protected, from private.
6168         (_Impl::_M_get_c_locale): Add member function.
6169         (locale::facet::_M_get_global_impl()): Add member function.
6170         * include/bits/locale_facets.h (numpunct::_M_init): Change to take
6171         a __c_locale pointer.
6172         (numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
6173         named locales.
6174         * testsuite/22_locale/members.cc: New file, test name and combine.
6175
6176         * include/bits/locale_facets.h (class numpunct): Remove class
6177         _Punct and _Numpunct. Rewrite class numpunct to be correct for
6178         named locales.
6179         * include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
6180         * src/localename.cc (_Impl::~_Impl()): Call __frelocale.
6181         (_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
6182         * src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
6183         * testsuite/22_locale/numpunct_char_members.cc: New file.
6184
6185 2001-01-28  Gabriel Dos Reis  <gdr@codesourcery.com>
6186
6187         * testsuite/README: Add more comment.
6188         * testsuite/lib/libstdc++.exp: Tweak comment.
6189
6190 2001-01-26  Benjamin Kosnik  <bkoz@kredhat.com>
6191
6192         * libsupc++/pure.cc (writestr): Just use cstdio and std::fputs.
6193
6194 2001-01-25  Loren J. Rittle  <ljrittle@acm.org>
6195
6196         * testsuite/21_strings/inserters_extractors.cc: Remove
6197         explicit reference to 'testsuite/'.
6198
6199 2001-01-25  Richard Henderson  <rth@redhat.com>
6200
6201         * config/cpu/alpha/bits/atomicity.h: Remove tricky .subsetion
6202         bits. Fixes Tru64 build issues.
6203
6204 2001-01-25  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
6205
6206         * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug
6207         (use ${MAKE-make}, not ${MAKE:-make}).
6208         * aclocal.m4, configure: Regenerate.
6209
6210 2001-01-25  Mark Mitchell  <mark@codesourcery.com>
6211
6212         * src/ios.cc: Remove accidental inclusion of <stdio.h> in last
6213         checkin.
6214
6215         * src/Makefile.am (sources): Add globals.cc.
6216         * src/Makefile.in: Regenerated.
6217         * src/globals.cc: New file.
6218         * src/ios.cc (cin): Don't define here, just declare extern.
6219         (cout): Likewise.
6220         (cerr): Likewise.
6221         (clog): Likewise.
6222         (wcin): Likewise.
6223         (wcout): Likewise.
6224         (wcerr): Likewise.
6225         (wclog): Likewise.
6226
6227 2001-01-25  Phil Edwards  <pme@sources.redhat.com>
6228
6229         * include/bits/std_iterator.h:  Do not include stl_relops.h.
6230         * include/bits/std_numeric.h:  Ditto.
6231         * include/bits/stl_algobase.h:  Ditto.
6232         * include/bits/stl_relops.h:  Add comment warning about problems.
6233
6234 2001-01-25  Gabriel Dos Reis  <gdr@codesourcery.com>
6235
6236         * testsuite/27_io/*.cc: Remove explicit reference to 'testsuite/'
6237         in testcases.  Prepare for the DejaGnu based framework.
6238         * mkcheck.in: Adjust call to tests_flags.  Don't mmkdir testsuite
6239         directory -- it is now mkcheck working directory.
6240         * tests_flags.in: Remove reference to $(top_srcdir).  Use
6241         ${SRC_DIR} instead.
6242         * Makefile.am (check, check-install): Change mkcheck invocation
6243         logic.
6244         * Makefile.in: Regenerate.
6245
6246 2001-01-24  Mark Mitchell  <mark@codesourcery.com>
6247
6248         * config/os/aix/bits/atomicity.h (__compare_and_swap): Remove.
6249         (__always_swap): Likewise.
6250
6251 2001-01-23  Chris Demetriou  <cgd@broadcom.com>
6252
6253         * libsupc++/exception_support.cc (__terminate_func): Remove
6254         declaration.
6255         (__terminate_func_ptr): New typedef.
6256         (__terminate, __terminate_set_func): New extern function
6257         prototypes.
6258         (std::terminate): Use __terminate function.
6259         (std::set_terminate): Use __terminate_set_func function.
6260
6261 2001-01-23  Benjamin Kosnik  <bkoz@redhat.com>
6262
6263         * configure.target: Just use os_include_dir always.
6264         * configure.in: Remove calls to GLIBCPP_CHECK_CTYPE_SUPPORT.
6265         Link atomicity files and ctype files here.
6266         * configure: Regenerate.
6267         * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Remove.
6268         (GLIBCPP_ENABLE_ATOMICITY): Remove.
6269         * aclocal.m4: Regenerate.
6270
6271 2001-01-23  Chris Demetriou  <cgd@broadcom.com>
6272
6273         * configure.in: Place definition of MULTISUBDIR in
6274         libsupc++/Makefile as is done for src/Makefile.
6275         * configure: Regenerate.
6276
6277 2001-01-23  Phil Edwards  <pme@sources.redhat.com>
6278
6279         * acinclude.m4:  Cosmetic changes only.
6280         * aclocal.m4:  Regenerated.
6281         * configure:  Regenerated.
6282         * configure.target:  Update documented list of changed variables.
6283         * docs/html/install.html:  Fix typo.
6284         * docs/html/20_util/howto.html:  More notes on auto_ptr.
6285         * docs/html/27_io/howto.html:  More notes on streabufs.
6286         * docs/html/faq/index.html:  Add rel_ops problem and mention the
6287           DEC as(1) .subsection difficulty.
6288         * docs/html/faq/index.txt:  Regenerated.
6289
6290 2001-01-23  Mark Mitchell  <mark@codesourcery.com>
6291
6292         * ainclude.m4 (GLIBCPP_CHEC_MATH_DECLS_AND_LINKAGE_1): New macro.
6293         (GLIBCPP_CHECK_MATH_SUPPORT): Use it.
6294         (GLIBCPP_CHECK_TYPE_SUPPORT): Don't autoconf ctype information if
6295         its already provided in config.target.
6296         * aclocal.m4: Regenerated.
6297         * configure: Likewise.
6298         * configure.target: Set ctype_include_dir for lots of systems.
6299         * libsupc++/Makefile.am: Explicitly include --tag disable-shared.
6300         * libsupc++/Makefile.in: Regenerated.
6301
6302 2001-01-23  Gabriel Dos Reis  <gdr@codesourcery.com>
6303
6304         * testsuite/lib/libstdc++.exp: Improve.  Add support for @xxx#
6305         keyword capability.
6306
6307         * testsuite/README: Add comment.
6308
6309 2001-01-21  Phil Edwards  <pme@sources.redhat.com>
6310
6311         * docs/html/configopts.html:  Update for current status.  Fix HTML.
6312         * docs/html/install.html:  Update for current status.
6313
6314 2001-01-20  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6315
6316         * testsuite/libstdc++.tests/tests.exp: New file.
6317         * testsuite/lib/libstdc++.exp: Itou.
6318         * testsuite/README: Itou.
6319
6320 2001-01-20  Gabriel Dos Reis  <gdr@codesourcery.com>
6321
6322         * tests_flags.in: Just output the bare minimum to run tests.
6323         Let's the caller do its own arrangement.
6324
6325         * mkcheck.in: Rename INC_PATH to INCLUDES.  Adjust flags
6326         computations.
6327
6328 2001-01-19  Gabriel Dos Reis  <gdr@codesourcery.com>
6329
6330         * testsuite/17_intro: Prepare testcases for new style DejaGnu
6331         framework.
6332
6333 2001-01-18  Gabriel Dos Reis  <gdr@codesourcery.com>
6334
6335         * testsuite/libstdc++.tests, testsuite/lib: New directories.
6336
6337 2001-01-17  Loren J. Rittle  <ljrittle@acm.org>
6338
6339         * mkcheck.in: Construct file names that match $objdir structure.
6340         * testsuite/27_io/filebuf_members-1.txt: New file.
6341         * testsuite/27_io/ifstream_members-1.txt: New file.
6342         * testsuite/27_io/ostream_inserter_char-1.txt: New file.
6343
6344         * testsuite/27_io/ios_base_members_static.cc (test02): Add test.
6345         * testsuite/27_io/ios_base_members_static-1.tst: Add expected output.
6346
6347 2001-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
6348
6349         * testsuite/27_io/istream_sentry.cc (test02): Fix.
6350
6351 2001-01-17  Benjamin Kosnik  <bkoz@redhat.com>
6352
6353         libstdc++/1605
6354         * include/bits/ios_base.h (ios_base::failure): Tighten up throw specs.
6355         * src/ios.cc (ios_base::failure): Make definitions match.
6356         * libsupc++/typeinfo (class bad_typeid): Add throw specs.
6357         (class bad_cast): Same.
6358         * libsupc++/exception (class exception): Add throw specs.
6359         * libsupc++/exception_support.cc (set_terminate): Add throw specs.
6360         (set_unexpected): Same.
6361         (uncaught_exception): Same.
6362         (what): Same.
6363
6364         * docs/html/17_intro/C++STYLE (classname): Fix.
6365
6366 2001-01-16  Mark Mitchell  <mark@codesourcery.com>
6367
6368         * src/gen-num-limits.cc (INSTANTIATIONS): New macro.
6369         Use it do explicitly instantiate predicate<T> and value<T> for
6370         all the builtin Ts.
6371
6372 2001-01-16  Nathan Sidwell  <nathan@codesourcery.com>
6373
6374         * libsupc++/exception_support.cc (__cp_pop_exception): Fix
6375         uninitialized thinko in last change.
6376
6377 2001-01-16  Mark Mitchell  <mark@codesourcery.com>
6378
6379         * libsupc++/exception_support.cc (__cp_pop_exception): Change
6380         prototype.
6381
6382 2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>
6383
6384         * docs/html/17_intro/C++STYLE (classname): Add more existing
6385         and stylish patterns.
6386
6387         libstdc++/944
6388         * include/bits/istream.tcc (istream::sentry::sentry()): Set
6389         failbit if the state of the stream is not good.
6390         * testsuite/27_io/istream_sentry.cc (test02): Add test.
6391         * testsuite/27_io/istream_manip.cc (test01): Modify.
6392
6393         libstdc++/1019
6394         reported by Paolo Carlini <pcarlini@unitus.it>
6395         * include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
6396         * testsuite/21_strings/inserters_extractors.cc (test08): Add test.
6397
6398         libstdc++/1057
6399         * include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
6400         * include/bits/streambuf.tcc (xsputn): Remove outside if clause.
6401         (xsgetn): Same. Simplify.
6402         * testsuite/27_io/streambuf.cc (test04): Add testcases.
6403
6404         reported by Larry Evans <jcampbell3@prodigy.net>
6405         * include/bits/streambuf.tcc (streambuf::xsputn): Just check for
6406         equality with eof on returned value from overflow.
6407
6408 2001-01-14  Andreas Jaeger  <aj@suse.de>
6409
6410         * libio/libio.h: Add test for glibc 2.0.
6411
6412 2001-01-12  Benjamin Kosnik  <bkoz@redhat.com>
6413
6414         * config/os/djgpp/bits/*: Fix dates.
6415
6416         * include/bits/basic_string.h (_S_find(const _CharT* __beg, const
6417         _CharT* __end, _CharT __c): Remove.
6418         * include/bits/basic_string.tcc: Substitute traits::find for _S_find.
6419         * include/bits/char_traits.h: Tweak.
6420
6421 2001-01-12  Laurynas Biveinis  <lauras@softhome.net>
6422
6423         * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): check for DJGPP <ctype.h>
6424         (LIB_AC_PROG_CXX): replace [/\\] with [\\/] to work around older
6425         bash bug.
6426         * aclocal.m4: regenerated.
6427         * configure.target: set os_include_dir to config/os/djgpp under DJGPP.
6428         * configure: regenerated.
6429         * config/os/djgpp, config/os/djgpp/bits: new directories.
6430         * config/os/djgpp/bits/ctype_base.h,
6431         config/os/djgpp/bits/ctype_inline.h,
6432         config/os/djgpp/bits/ctype_noninline.h,
6433         config/os/djgpp/bits/os_defines.h: new files.
6434
6435 2001-01-11   Joseph S. Myers  <jsm28@cam.ac.uk>
6436
6437         * include/c_std/bits/std_cstdio.h: Undef printf.
6438
6439 2001-01-10  Benjamin Kosnik  <bkoz@redhat.com>
6440
6441         * src/ios.cc: Fix typo: change cout->wcout.
6442
6443         * src/Makefile.am (targetincludep): Fix for version-specific-libs.
6444         * src/Makefile.in: Regenerate.
6445
6446 2001-01-10  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
6447
6448          * include/bits/std_complex.h: Fix a typo.
6449
6450 2001-01-09  Benjamin Kosnik  <bkoz@redhat.com>
6451                              <kainz@ilm.com>
6452
6453         Fixes for libstdc++/1576
6454         * src/stdstreams.cc: Initialize with NULL filebuf. Delete
6455         file, move contents into....
6456         * src/ios.cc: ...Here. Put defines for iostreams objects and
6457         initialization routines into one file to simplify DSO interaction.
6458         * include/bits/std_iostream.h: Touch.
6459         * include/bits/ios_base.h (_S_synched_with_stdio): Make static.
6460         * src/Makefile.am (sources): Remove stdstreams.cc.
6461         * src/Makefile.in: Regenerate.
6462
6463 2001-01-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6464
6465         * tests_flags.in (check_directory): Fix typo.
6466
6467 2001-01-09  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
6468
6469          * include/bits/std_complex.h: Fix a typo.
6470
6471 2001-01-09  Loren J. Rittle  <ljrittle@acm.org>
6472
6473         * config/os/bsd/freebsd/bits/ctype_inline.h (is): (Make right
6474         code path:) Remove magic constants and restructure to handle
6475         ctype.h bit mask layout changes more gracefully.  (Make fast
6476         code path:) Use __maskrune (), if available.
6477         (is): Remove special case for digit and xdigit masks.
6478
6479 2001-01-09  Robert Lipe <robertlipe@usa.net>
6480
6481         * include/c_std/bits/std_ctime.h: Undefine difftime.
6482
6483 2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
6484
6485         * src/gen-num-limits.cc (signal_adapter): New template function.
6486         (signal_handler): Use it, instead of signal.
6487         (traps<T>): Likewise.  Install SIGTRAP handler too.  Don't
6488         require both tests to trap to set trap_flag.
6489
6490 2001-01-08  Benjamin Kosnik  <bkoz@redhat.com>
6491
6492         * include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
6493         initialize mbstate_t member, name offset data members *off, not pos.
6494         * include/bits/fstream.tcc (filebuf::filebuf): Same.
6495
6496 2001-01-08  Benjamin Kosnik  <bkoz@redhat.com>
6497
6498         reported by Chris G. Demetriou <cgd@sibyte.com>
6499         * configure.in: Change -linux-* to -linux*.
6500         * configure: Regenerate.
6501
6502 2001-01-05  Benjamin Kosnik  <bkoz@redhat.com>
6503
6504         Fix 27_io/filebuf_members.cc
6505         * src/localename.cc (locale::_Impl::_Impl(const _Impl& __imp,
6506         const string& __name, category __cat, size_t __refs): Set
6507         _M_has_name with _M_name.
6508         * include/bits/localefwd.h (locale::operator!=): Protect member
6509         function call with this->.
6510         * src/locale.cc (locale::operator==): Make fast checks first.
6511         * include/bits/basic_ios.tcc (basic_ios::init): Simplify.
6512
6513         * include/bits/ios_base.h (_M_synced_with_stdio): Add data member
6514         to ios_base::Init.
6515         * src/ios.cc (ios_base::Init::Init): Initialize here.
6516         (ios_base::sync_with_stdio): Set here.
6517
6518 2001-01-04  Loren J. Rittle  <ljrittle@acm.org>
6519
6520         * config/c_io_stdio.cc (__basic_file<_CharT>::sys_open()): On
6521         systems that support it, call dup() before fdopen().
6522
6523 2001-01-03  Benjamin Kosnik  <bkoz@redhat.com>
6524
6525         * include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t.
6526         * testsuite/17_intro/header_cwctype.cc (main): New file.
6527
6528         * src/Makefile.am (base_headers): Change.
6529         * include/bits/std_string.h: And here.
6530         * include/bits/string.tcc: Tweaks, move to...
6531         * include/bits/basic_string.tcc: ...Here.
6532         * src/string-inst.cc: Simplify, just instantiate the whole class,
6533         not member-by-member.
6534
6535 2001-01-02  Benjamin Kosnik  <bkoz@redhat.com>
6536
6537         * acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
6538         * aclocal.m4: Regenerate.
6539         * configure: Regenerate.
6540
6541         * include/bits/c++config (__GLIBCPP__): Bump version number.
6542
6543         * ChangeLog: Start new log for year 2001
6544         * ChangeLog-2000: New file.
6545
6546         * docs/html/configopts.html: Make sure default values are current,
6547         add commentary.
6548
6549 2001-01-01  Benjamin Kosnik  <bkoz@fillmore.redhat.com>
6550
6551         * include/c_std/bits/std_cwchar.h: Same.
6552         * testsuite/17_intro/header_cwchar.cc: Same.
6553         * include/c_std/bits/std_ctime.h: Same.
6554         * testsuite/17_intro/header_ctime.cc: Same.
6555         * include/c_std/bits/std_cstdlib.h: Same.
6556         Clean up undefs, make consistent with cwchar and cmath, etc.
6557         * testsuite/17_intro/header_cstdlib.cc: Same.
6558         * include/c_std/bits/std_cstdio.h: Same here.
6559         * testsuite/17_intro/header_cstring.cc: Same.
6560         * include/c_std/bits/std_cstring.h: Include std_cstddef.h for size_t.
6561         * testsuite/17_intro/header_cstring.cc: New file. Check for
6562         size_t in namespace std.
6563
6564         * include/c_std/bits/std_cwchar.h: Explicit checks for mbstate_t.
6565         * acconfig.h (HAVE_MBSTATE_T): Add.
6566         * config.h.in: Regenerate.
6567         * acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Always test for
6568         mbstate_t.
6569         * aclocal.m4: Regenerate.
6570         * configure: Regenerate.
6571         * testsuite/17_intro/headers_c++.cc: New file.
6572         * testsuite/17_intro/headers_c.cc: Small changes.
6573
6574 2001-01-01  David Billinghurst <David.Billinghurst@riotinto.com>
6575
6576         * tests_flags.in: Fix typo in usage.
6577
6578         * tests_flags.in: Set target specific LIBS for cygwin.