OSDN Git Service

2001-03-12 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2001-03-12  Rodney Brown  <RodneyBrown@mynd.com>
2
3         * src/gen-num-limits.cc (traps) [SPECIALIZE_TRAPPING]: Add fflush
4         prior to trapping signal (UnixWare 7 workaround).
5
6 2001-03-12  Craig Rodrigues  <rodrigc@mediaone.net>
7
8         * include/backward/hashtable.h: Same.
9         * include/backward/rope.h: Fix include.
10
11 2001-03-12  Benjamin Kosnik  <bkoz@redhat.com>
12
13         * include/backward/vector.h: Include std_vector.h.
14
15         * include/bits/istream.tcc (basic_istream<_CharT, _Traits>&
16         operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
17         Fix typo.
18
19 2001-03-11  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
20
21         * include/ext/stl_hashtable.h: Change type of __n to size_t  
22         * include/backward/bvector.h: Include <ext/stl_bvector.h> 
23
24 2001-03-09  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
25
26         * include/bits/istream.tcc ( basic_istream<_CharT, _Traits>&
27         operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)):
28         Use streamsize, not int_type.
29
30 2001-03-08  Benjamin Kosnik  <bkoz@redhat.com>
31
32         * testsuite/27_io/streambuf.cc (test06): New test, disabled at the
33         moment.
34         
35 2001-03-08  Andreas Schwab  <schwab@suse.de>
36
37         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Fix syntax in test
38         command.
39         * aclocal.m4, configure: Regenerated.
40
41 2001-03-07  Benjamin Kosnik  <bkoz@redhat.com>
42
43         * include/bits/std_iosfwd.h: Remove string forward decls here.
44         * include/bits/stringfwd.h: Add forward decls for char_traits
45         specializations.
46         * config/c_io_libio.h (wstreamoff): Delete.
47         * config/c_io_stdio.h (wstreamoff): Same.
48         * include/bits/char_traits.h: Use streamoff not wstreamoff for
49         char_traits<wchar_t>::off_type.
50         Remove duplicate typedefs.
51         * include/bits/fpos.h: Define streampos/wstreampos here.
52         * testsuite/27_io/istream_seeks.cc (test04): Explicitly cast int
53         values to off_type.
54         (test05): Same.
55         Changeup output files.
56         * testsuite/27_io/istream_unformatted.cc: Change output files.  
57         * testsuite/27_io/istream_seeks-1.txt: Add.
58         * testsuite/27_io/istream_seeks-2.tst: Add.
59         * testsuite/27_io/istream_seeks-1.tst: Add.
60         * testsuite/27_io/istream_unformatted-2.tst: Delete.
61         * testsuite/27_io/istream_unformatted-3.tst: Delete.
62         * testsuite/27_io/istream_unformatted-3.txt: Delete.
63
64 2001-03-07  Alexandre Oliva  <aoliva@redhat.com>
65
66         Add Irix 5.2, 6.3 support.
67         * config/os/irix/bits: Renamed to...
68         * config/os/irix/irix6.5/bits: this.
69         * config/os/irix/irix5.2/bits: New, copied from irix6.5/bits.
70         * config/os/irix/irix5.2/bits/ctype_base.h: Use _U, _L, _N,
71         _X, _S, _P, _C and _B instead of IRIX-6.5 _IS* macros.
72         * config/os/irix/irix5.2/bits/ctype_noninline.h
73         (ctype<char>::ctype): Initialize _M_table with __ctype.
74         * configure.target: Adjust.
75     
76 2001-03-06  Benjamin Kosnik  <bkoz@redhat.com>
77
78         libstdc++/2181
79         * include/bits/istream.tcc (basic_istream<_CharT, _Traits>::
80         operator>>(__istream_type& (*__pf)(__istream_type&)): Don't use
81         sentry.
82         (basic_istream<_CharT, _Traits>:: operator>>(__ios_type&
83         (*__pf)(__ios_type&)): Same.
84         (basic_istream<_CharT, _Traits>:: operator>>(ios_base&
85         (*__pf)(ios_base&))): Same.
86         * testsuite/27_io/istream_extractor_other.cc: Add tests.
87         * testsuite/27_io/istream_manip.cc (test01): Fix.
88         
89 2001-03-06  Nathan Myers  <ncm@cantrip.org> 
90             Benjamin Kosnik  <bkoz@redhat.com>
91
92         * include/c_std/bits/std_cerrno.h: Don't define errno in std::.
93         * testsuite/17_intro/header_cerrno.cc (test01): New file.
94         * testsuite/17_intro/header_cassert.cc (test01): New file.
95         * testsuite/17_intro/header_cstddef.cc (test01): New file.
96         * testsuite/17_intro/header_csetjmp.cc (test01): New file.      
97         * testsuite/17_intro/header_cstdarg.cc (test01): New file.      
98
99 2001-03-05  scott snyder  <snyder@fnal.gov>
100
101         libstdc++/2190
102         * include/c_std/bits/std_cmath.h: Move abs(long), div(long,long)
103         from here...
104         * include/c_std/bits/std_cstdlib.h: ... to here.
105         * testsuite/17_intro/header_cstdlib.cc: Add test.
106         
107 2001-03-05  Stephen M. Webb  <stephen.webb@cybersafe.com>
108
109         * libsupc++/vec.cc (__cxxa_vec_new2): Qualify size_t.
110
111 2001-03-05  Laurynas Biveinis  <lauras@softhome.net>
112
113         * config/os/djgpp/ctype_base.h (ctype_base): fix __to_type
114         definition. Replace enum with static const variables.
115                 
116         * config/os/djgpp/ctype_inline.h (ctype<char>::is): remove
117         throw specification, fix typos, use <static_cast>.
118         (ctype<char>::scan_is): remove throw specification.
119         (ctype<char>::scan_not): likewise.
120                                                 
121         * config/os/djgpp/ctype_noninline.h (ctype<char>::ctype): fix typo.
122         (ctype<char>::do_toupper(char)): use <static_cast>.
123         (ctype<char>::do_toupper(char *, const char *)): likewise.
124         (ctype<char>::do_tolower(char)): likewise.
125         (ctype<char>::do_tolower(char *, const char *)): likewise.
126
127 2001-03-04  Phil Edwards  <pme@sources.redhat.com>
128
129         http://gcc.gnu.org/ml/libstdc++/2001-03/msg00015.html
130         * include/backward/algo.h:  Use std not __STD.  Remove unneeded
131         macros and "never happens" code.  Adjust to C++STYLE guidelines.
132         * include/backward/algobase.h:  Likewise.
133         * include/backward/alloc.h:  Likewise.
134         * include/backward/bvector.h:  Likewise.
135         * include/backward/deque.h:  Likewise.
136         * include/backward/function.h:  Likewise.
137         * include/backward/hash_map.h:  Likewise.
138         * include/backward/hash_set.h:  Likewise.
139         * include/backward/hashtable.h:  Likewise.
140         * include/backward/heap.h:  Likewise.
141         * include/backward/iterator.h:  Likewise.
142         * include/backward/list.h:  Likewise.
143         * include/backward/map.h:  Likewise.
144         * include/backward/multimap.h:  Likewise.
145         * include/backward/multiset.h:  Likewise.
146         * include/backward/pair.h:  Likewise.
147         * include/backward/rope.h:  Likewise.
148         * include/backward/set.h:  Likewise.
149         * include/backward/slist.h:  Likewise.
150         * include/backward/stack.h:  Likewise.
151         * include/backward/strstream:  Likewise.
152         * include/backward/tempbuf.h:  Likewise.
153         * include/backward/tree.h:  Likewise.
154         * include/backward/vector.h:  Likewise.
155         * include/bits/basic_ios.h:  Likewise.
156         * include/bits/basic_ios.tcc:  Likewise.
157         * include/bits/basic_string.h:  Likewise.
158         * include/bits/c++config:  Likewise.
159         * include/bits/concept_checks.h:  Likewise.
160         * include/bits/fpos.h:  Likewise.
161         * include/bits/fstream.tcc:  Likewise.
162         * include/bits/functexcept.h:  Likewise.
163         * include/bits/ios_base.h:  Likewise.
164         * include/bits/istream.tcc:  Likewise.
165         * include/bits/mask_array.h:  Likewise.
166         * include/bits/ostream.tcc:  Likewise.
167         * include/bits/pthread_allocimpl.h:  Likewise.
168         * include/bits/sbuf_iter.h:  Likewise.
169         * include/bits/slice.h:  Likewise.
170         * include/bits/slice_array.h:  Likewise.
171         * include/bits/sstream.tcc:  Likewise.
172         * include/bits/std_bitset.h:  Likewise.
173         * include/bits/std_fstream.h:  Likewise.
174         * include/bits/std_iomanip.h:  Likewise.
175         * include/bits/std_ios.h:  Likewise.
176         * include/bits/std_istream.h:  Likewise.
177         * include/bits/std_iterator.h:  Likewise.
178         * include/bits/std_memory.h:  Likewise.
179         * include/bits/std_ostream.h:  Likewise.
180         * include/bits/std_sstream.h:  Likewise.
181         * include/bits/std_streambuf.h:  Likewise.
182         * include/bits/std_string.h:  Likewise.
183         * include/bits/std_valarray.h:  Likewise.
184         * include/bits/stl_algo.h:  Likewise.
185         * include/bits/stl_algobase.h:  Likewise.
186         * include/bits/stl_alloc.h:  Likewise.
187         * include/bits/stl_construct.h:  Likewise.
188         * include/bits/stl_deque.h:  Likewise.
189         * include/bits/stl_function.h:  Likewise.
190         * include/bits/stl_heap.h:  Likewise.
191         * include/bits/stl_iterator.h:  Likewise.
192         * include/bits/stl_iterator_base.h:  Likewise.
193         * include/bits/stl_list.h:  Likewise.
194         * include/bits/stl_map.h:  Likewise.
195         * include/bits/stl_multimap.h:  Likewise.
196         * include/bits/stl_multiset.h:  Likewise.
197         * include/bits/stl_numeric.h:  Likewise.
198         * include/bits/stl_pair.h:  Likewise.
199         * include/bits/stl_pthread_alloc.h:  Likewise.
200         * include/bits/stl_queue.h:  Likewise.
201         * include/bits/stl_raw_storage_iter.h:  Likewise.
202         * include/bits/stl_relops.h:  Likewise.
203         * include/bits/stl_set.h:  Likewise.
204         * include/bits/stl_stack.h:  Likewise.
205         * include/bits/stl_tempbuf.h:  Likewise.
206         * include/bits/stl_threads.h:  Likewise.
207         * include/bits/stl_tree.h:  Likewise.
208         * include/bits/stl_uninitialized.h:  Likewise.
209         * include/bits/stl_vector.h:  Likewise.
210         * include/bits/streambuf.tcc:  Likewise.
211         * include/bits/type_traits.h:  Likewise.
212         * include/bits/valarray_meta.h:  Likewise.
213         * include/ext/bvector:  Likewise.
214         * include/ext/hash_map:  Likewise.
215         * include/ext/hash_set:  Likewise.
216         * include/ext/ropeimpl.h:  Likewise.
217         * include/ext/slist:  Likewise.
218         * include/ext/stl_bvector.h:  Likewise.
219         * include/ext/stl_hash_fun.h:  Likewise.
220         * include/ext/stl_hashtable.h:  Likewise.
221         * include/ext/stl_rope.h:  Likewise.
222         * src/complex_io.cc:  Likewise.
223         * src/ios.cc:  Likewise.
224         * src/locale-inst.cc:  Likewise.
225         * src/locale.cc:  Likewise.
226         * src/localename.cc:  Likewise.
227         * src/misc-inst.cc:  Likewise.
228         * src/stdexcept.cc:  Likewise.
229         * src/stl-inst.cc:  Likewise.
230         * src/strstream.cc:  Likewise.
231         * src/valarray-inst.cc:  Likewise.
232
233 2001-03-03  Benjamin Kosnik  <bkoz@redhat.com>
234
235         * src/misc-inst.cc (__copy_streambufs): Fix typo for alpha.
236
237 2001-03-02  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
238
239         * include/bits/istream.tcc: change type of __extracted to __size_type 
240
241 2001-03-02  Benjamin Kosnik  <bkoz@redhat.com>
242
243         * src/wstring-inst.cc: New file.
244         * src/Makefile.am (EXTRA_LTLIBRARIES): Remove.
245         (libinst_wstring_la_SOURCES): Remove.
246         (libstdc___la_LIBADD): Remove libinst_wstring_la.
247         (sources): Add wstring-inst.cc
248         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Remove
249         libinst_wstring_la.
250
251 2001-03-02  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
252
253         * src/locale.cc: initialise __ret with zero
254         * src/strstream.cc:cast gptr to int_type
255
256 2001-03-01  Phil Edwards  <pme@sources.redhat.com>
257
258         * docs/html/faq/index.html:  Update broken links.
259         * docs/html/faq/index.txt:  Regenerated.
260
261 2001-02-28  Benjamin Kosnik  <bkoz@redhat.com>
262
263         libstdc++/2064
264         * configure.target: Change irix* to irix6.5* in target_os table.
265
266 2001-02-28  Benjamin Kosnik  <bkoz@redhat.com>
267
268         libstdc++/2103
269         * include/bits/c++config (__GLIBCPP__): Bump number in
270         anticipation of 2.92.
271
272         * include/bits/codecvt.h: Fix typo.
273         * include/bits/basic_file.h (__basic_file): Don't use _M_wfile for
274         stdio model.
275         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Enable wchar_t
276         instantiations for stdio model.
277
278 2001-02-28  Phil Edwards  <pme@sources.redhat.com>
279
280         * acinclude.m4 (GLIBCPP_CONFIGURE):  Remove GLIBCPP_CFLAGS
281           and GLIBCPP_CXXFLAGS as unused variables.
282         * configure.host:  Likewise.
283         * configure.target:  Likewise.
284         * aclocal.m4:  Regenerated.
285         * configure:  Regenerated.
286         * Makefile.in:  Regenerated.
287         * libio/Makefile.in:  Regenerated.
288         * libmath/Makefile.in:  Regenerated.
289         * libsupc++/Makefile.in:  Regenerated.
290         * src/Makefile.in:  Regenerated.
291
292 2001-02-27  Benjamin Kosnik  <bkoz@redhat.com>
293
294         libstdc++/1886
295         * include/bits/basic_file.h: Include basic_file_model.h.
296         * config/c_io_libio.cc: Move to...
297         * config/basic_file_libio.cc: Here.
298         * config/basic_file_libio.h: New file.
299         * config/c_io_stdio.cc: Move to...
300         * config/basic_file_stdio.cc: Here.
301         * config/basic_file_stdio.h: New file.
302         * config/c_io_libio.h: Tweak.
303         * config/c_io_stdio.h: Tweak.
304         * src/Makefile.am (build_headers): Add basic_file_model.h.
305         (sources): Add basic_file.cc, remove c++io.cc.
306         * src/Makefile.in: Regenerate.
307         * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add support for
308         basic_file_model.h and basic_file.cc.
309         * aclocal.m4: Regenerate.
310         * configure: Regenerate.
311         * testsuite/27_io/filebuf.cc (test05): Add regression.
312         
313 2001-02-27  Benjamin Kosnik  <bkoz@redhat.com>
314
315         Correct license.
316         * config/cpu/alpha/bits/atomicity.h: Change.
317         * config/cpu/arm/bits/atomicit3y.h
318         * config/cpu/generic/bits/atomicity.h
319         * config/cpu/i386/bits/atomicity.h
320         * config/cpu/i486/bits/atomicity.h
321         * config/cpu/ia64/bits/atomicity.h
322         * config/cpu/powerpc/bits/atomicity.h
323         * config/cpu/sparc/sparc32/bits/atomicity.h
324         * config/cpu/sparc/sparc64/bits/atomicity.h
325         * config/os/aix/bits/atomicity.h
326         * config/os/irix/bits/atomicity.h
327
328 2001-02-27  Benjamin Kosnik  <bkoz@redhat.com>
329
330         * include/bits/std_stdexcept.h (runtime_error): Make string
331         member non-const.
332         (logic_error): Same.
333         * testsuite/19_diagnostics/stdexceptions.cc (test04): Add test.
334         (test03): Fix.
335
336 2001-02-26  Benjamin Kosnik  <bkoz@redhat.com>
337
338         libstdc++/1972
339         libstdc++/2089
340         * include/bits/std_stdexcept.h (logic_error::logic_error): Use
341         string object, not reference.
342         (runtime_error::runtime_error): Same.
343         * testsuite/19_diagnostics/stdexceptions.cc: New file.
344
345 2001-02-26  Phil Edwards  <pme@sources.redhat.com>
346
347         * acinclude.m4 (GLIBCPP_CONFIGURE):  Update required compiler version.
348           (GLIBCPP_CHECK_COMPILER_FEATURES):  Can safely assume new
349           diagnostics.  Remove WFMT_FLAGS.
350         * configure.in:  Replace WFMT_FLAGS with diagnostics options.
351         * libsupc++/Makefile.am:  Likewise.
352         * src/Makefile.am:  Likewise.
353         * aclocal.m4:  Regenerated.
354         * configure:  Regenerated.
355         * Makefile.in:  Regenerated.
356         * libio/Makefile.in:  Regenerated.
357         * libmath/Makefile.in:  Regenerated.
358         * libsupc++/Makefile.in:  Regenerated.
359         * src/Makefile.in:  Regenerated.
360
361 2001-02-26  Phil Edwards  <pme@sources.redhat.com>
362
363         Fixes libstdc++/2079
364         * include/backward/iomanip.h:  Expose <ios> manipulators to global
365           namespace.
366         * include/backward/iostream.h:  Also expose std::ws.
367
368 2001-02-25  Greg Freemyer <freemyer@NorcrossGroup.com>
369
370         * libmath/mathconf.h (GET_LDOUBLE_MSW64): Fix thinko.
371
372 2001-02-23  Benjamin Kosnik  <bkoz@redhat.com>
373
374         * include/bits/codecvt.h: Use __builtin_alloca.
375         * include/bits/ostream.tcc: Same.
376         * include/bits/fstream.tcc: Same.
377
378 2001-02-23  Alexandre Oliva <aoliva@redhat.com>
379
380         * mknumeric_limits (CC): Use VAR=${VAR=...} form.
381
382 2001-02-23  David Edelsohn <dje@watson.ibm.com>
383
384         * mknumeric_limits (CC): Use $BUILD_DIR/../../gcc/xgcc
385
386 2001-02-23  Phil Edwards  <pme@sources.redhat.com>
387
388         c++/2052
389         * include/backward/iostream.h:  Expose std::flush in old headers.
390
391 2001-02-23  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
392
393         * mknumeric_limits: Remove special-casing on target.  Use gcc
394         instead of g++ to build gen-num-limits.cc
395
396 2001-02-22  Benjamin Kosnik  <bkoz@redhat.com>
397
398         * tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.
399
400         * include/bits/codecvt.h: Use alloca instead of __extension__ for
401         the time being.
402         * include/bits/ostream.tcc: Same.
403         * include/bits/std_ostream.h: Same.
404         * include/bits/fstream.tcc: Same.
405         * include/bits/locale_facets.tcc: Add typename.
406         * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS): Enable.
407
408 2001-02-21  Phil Edwards  <pme@sources.redhat.com>
409
410         * tests_flags.in:  Remove -n flag from call to echo.
411
412 2001-02-20  Benjamin Kosnik  <bkoz@redhat.com>
413
414         * config/c_locale_gnu.h: Add clocale include.
415
416 2001-02-20  Phil Edwards  <pme@sources.redhat.com>
417
418         * include/bits/stl_config.h:  Remove file.
419         * src/Makefile.am (base_headers):  Remove from list.
420         * configure:  Regenerate.
421         * Makefile.in:  Ditto.
422         * libio/Makefile.in:  Ditto.
423         * libmath/Makefile.in:  Ditto.
424         * libsupc++/Makefile.in:  Ditto.
425         * src/Makefile.in:  Ditto.
426
427         * include/bits/c++config:  Move relevant macros to here.
428         * include/backward/alloc.h:  Include c++config.h instead.
429         * include/backward/function.h:  Ditto.
430         * include/backward/heap.h:  Ditto.
431         * include/backward/pair.h:  Ditto.
432         * include/bits/pthread_allocimpl.h:  Ditto.
433         * include/bits/std_functional.h:  Ditto.
434         * include/bits/std_iterator.h:  Ditto.
435         * include/bits/std_numeric.h:  Ditto.
436         * include/bits/std_utility.h:  Ditto.
437         * include/bits/stl_algobase.h:  Ditto.
438         * include/bits/type_traits.h:  Ditto.
439         * src/stl-inst.cc:  Ditto.
440
441 2001-02-19  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
442
443         * include/bits/basic_file.h: Add #pragma system_header
444         * include/bits/basic_ios.h: Ditto.
445         * include/bits/basic_string.h: Ditto.
446         * include/bits/char_traits.h: Ditto.
447         * include/bits/codecvt.h: Ditto.
448         * include/bits/cpp_type_traits.h:  Ditto.
449         * include/bits/fpos.h: Ditto.
450         * include/bits/gslice.h: Ditto.
451         * include/bits/gslice_array.h: Ditto.
452         * include/bits/indirect_array.h: Ditto.
453         * include/bits/ios_base.h: Ditto.
454         * include/bits/limits_generic.h: Ditto.
455         * include/bits/locale_facets.h: Ditto.
456         * include/bits/localefwd.h: Ditto.
457         * include/bits/mask_array.h: Ditto.
458         * include/bits/sbuf_iter.h: Ditto.
459         * include/bits/sequence_concepts.h: Ditto.
460         * include/bits/slice.h: Ditto.
461         * include/bits/slice_array.h: Ditto.
462         * include/bits/std_algorithm.h: Likewise.
463         * include/bits/std_bitset.h: Likewise.
464         * include/bits/std_complex.h: Likewise.
465         * include/bits/std_deque.h: Likewise.
466         * include/bits/std_fstream.h: Likewise.
467         * include/bits/std_functional.h: Likewise.
468         * include/bits/std_iomanip.h: Likewise.
469         * include/bits/std_ios.h: Likewise.
470         * include/bits/std_iosfwd.h: Likewise.
471         * include/bits/std_iostream.h: Likewise.
472         * include/bits/std_istream.h: Likewise.
473         * include/bits/std_iterator.h: Likewise.
474         * include/bits/std_list.h: Likewise.
475         * include/bits/std_locale.h: Likewise.
476         * include/bits/std_map.h: Likewise.
477         * include/bits/std_memory.h: Likewise.
478         * include/bits/std_numeric.h: Likewise.
479         * include/bits/std_ostream.h: Likewise.
480         * include/bits/std_queue.h: Likewise.
481         * include/bits/std_set.h: Likewise.
482         * include/bits/std_sstream.h: Likewise.
483         * include/bits/std_stack.h: Likewise.
484         * include/bits/std_stdexcept.h: Likewise.
485         * include/bits/std_streambuf.h: Likewise.
486         * include/bits/std_string.h: Likewise.
487         * include/bits/std_utility.h: Likewise.
488         * include/bits/std_valarray.h: Likewise.
489         * include/bits/std_vector.h: Likewise.
490         * include/bits/stringfwd.h: Likewise.
491         * include/bits/type_traits.h: Likewise.
492         * include/bits/valarray_array.h: Likewise.
493         * include/bits/valarray_meta.h: Likewise.
494
495 2001-02-19  Andreas Jaeger  <aj@suse.de>
496
497         * config/cpu/sparc/sparc64/bits/atomicity.h (__compare_and_swap):
498         Fix typo.
499
500 2001-02-16  Greg Bumgardner <bumgard@roguewave.com>
501
502         libstdc++/1734
503         * include/bits/std_ostream.h: Replaced usage of
504         _Traits::_S_eos() with _CharT() as per section 17.2.2.1.3.  
505         * include/bits/char_traits.h: Removed non-standard
506         methods that cannot be used elsewhere.  
507         
508         libstdc++/1885
509         * include/bits/basic_ios.h: Uncommented #include of
510         bits/basic_ios.tcc 
511         
512         libstdc++/1897
513         * include/bits/codecvt.h: See next...
514         * include/bits/fstream.tcc: See next...
515         * include/bits/ostream.tcc: Add __extension__ 
516         to variable-length arrays.  
517         
518         libstdc++/1967
519         * include/bits/localefwd.h: Changed int counter type to size_t.
520
521         libstdc++/1968
522         * include/bits/std_fstream.h: Added typedef for __ctype_type.
523
524 2001-02-16  Benjamin Kosnik  <bkoz@redhat.com>
525
526         * testsuite/21_strings/char_traits.cc: Move to ...
527         * testsuite/21_strings/char_traits_requirements.cc: ..here.
528         * testsuite/21_strings/char_traits-int_type.cc: Move to ...
529         * testsuite/21_strings/char_traits_typedefs.cc: ..here.
530
531 2001-02-16  Gabriel Dos Reis  <gdr@codesourcery.com>
532
533         * libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
534         definitions. 
535
536 2001-02-15  Benjamin Kosnik  <bkoz@redhat.com>
537
538         * include/bits/c++config: Revert.
539
540 2001-02-15  Mark Mitchell  <mark@codesourcery.com>
541
542         * include/bits/istream.tcc: Use ios_base::iostate in place of
543         iostate throughout.  Insert `typename' keyword where necessary.
544         * include/bits/ostream.tcc: Insert `typename' keyword where
545         necessary.
546         
547 2001-02-15  Jeffrey Oldham  <oldham@codesourcery.com>
548
549         * include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS):
550         Define so library is compliant.
551
552 2001-02-15  Anthony Green  <green@redhat.com>
553
554         * acinclude.m4 (glibcpp_toolexeclibdir): Fix test for cross
555         compilation.
556         * aclocal.m4: Regenerate.
557         * configure: Regenerate.
558
559 2001-02-15  Rodney Brown  <RodneyBrown@mynd.com>
560
561         * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1):
562         Include ieeefp.h for fpclass on UnixWare{2,7}.
563         * aclocal.m4: Regenerate.
564         * configure: Regenerate.
565         * mkcheck.in (size_command): Do without GNU-grep when using
566         size from binutils.
567
568 2001-02-15  Mark Mitchell  <mark@codesourcery.com>
569
570         Remove old ABI support from libsupc++.
571         * libsupc++/cxxabi.h: Remove conditionally compiled code.
572         * libsupc++/exception_support.cc: Likewise.
573         * libsupc++/pure.cc: Likewise.
574         * libsupc++/tinfo.cc: Likewise.
575         * libsupc++/tinfo.h: Likewise.
576         * libsupc++/tinfo2.cc: Likewise.
577         * libsupc++/typeinfo: Likewise.
578         * libsupc++/vec.cc: Likewise.
579
580 2001-02-15  Benjamin Kosnik  <bkoz@redhat.com>
581
582         Add support for -fno-exceptions.
583         * include/bits/exception_support.h: Remove.
584         * include/bits/basic_string.h: Remove exception_support.
585         (string::_M_check): Replace __OUTOFRANGE with __throw_out_of_range.
586         (string::at): Same.
587         (string::substr): Same.
588         * include/bits/basic_string.tcc (string::reserve): Replace
589         __LENGTHERROR with __throw_length_error.
590         (string::_S_create): Same.
591         (string::resize): Same.
592         (string::_M_replace): Same.
593         (string::replace): Same.
594         (string::copy): Replace __OUTOFRANGE with __throw_out_of_range.
595         (string::compare): Same.
596         * include/bits/stl_vector.h: Remove exception_support.
597         * src/Makefile.am (base_headers): Remove here.
598         * src/Makefile.in: Regenerate.
599
600         * include/bits/stl_range_errors.h: Remove.
601         * include/bits/stl_deque.h: Use __throw_range_error.
602         * include/bits/std_deque.h: Include functexcept.h.
603         * include/bits/std_vector.h: Same.
604         * src/Makefile.am (base_headers): Remove here.
605         * src/Makefile.in: Regenerate.
606         * include/ext/stl_bvector.h (class __BVECTOR): Use __throw_range_error.
607         * include/ext/bvector: Remove stl_range_errors.h
608
609         * include/bits/c++config (_GLIBCPP_USE_EXCEPTIONS): Remove.
610
611         * include/bits/functexcept.h: New file.
612         * src/functexcept.cc: New file. Definitions for function-based
613         exception routines.
614         * src/Makefile.am (sources): Add functexcept.cc.
615         * src/Makefile.in: Regenerate.
616
617         * include/bits/stl_config.h (__STL_USE_EXCEPTIONS): Wrap with
618         __EXCEPTIONS.
619
620         * include/bits/localefwd.h: Include functexcept.h.
621         * include/bits/std_iosfwd.h: Same.
622
623         * include/bits/basic_ios.h: Use __throw_ios_failure instead of
624         throw basic_ios::failure.
625         * include/bits/fstream.tcc (filebuf::_M_allocate_buffers):
626         Use __throw_exception_again.
627         (filebuf::_M_filebuf_init): Same.
628         * include/bits/streambuf.tcc (__copy_streambufs): Same.
629         * include/bits/ostream.tcc (ostream::operator<<): Same.
630         * include/bits/istream.tcc (istream::operator>>): Same.
631         * include/bits/basic_string.tcc (string::_M_mutate): Same.
632         (string::_S_construct): Same.
633         (string::_M_clone): Same.
634         * include/bits/locale_facets.tcc (use_facet(const locale&)): Use
635         __throw_bad_cast.
636         (num_put<_CharT, _OutIter>::do_put): Use __throw_exception_again.
637         * src/localename.cc (locale::_Imp::_Imp(const _Impl&, size_t): Use
638         __throw_exception_again.
639         (locale::_Imp::_Imp(string, size_t): Same.
640         (locale::_Imp::_M_replace_facet): Use __throw_runtime_error.
641         * src/locale.cc (locale::_M_coalesce): Use __throw_exception_again.
642         (locale::locale(const char*)): Use __throw_runtime_error.
643         (locale::classic): Use __throw_exception_again.
644         (locale::_S_normalize_category): Use __throw_runtime_error.
645
646         * src/stdexcept.cc: Remove cruft.
647
648         * libsupc++/exception_defines.h: New file.
649         * libsupc++/new_opnt.cc: Include exception_defines.h.
650         * libsupc++/vec.cc: Same.
651         (__cxa_vec_new2): Use __throw_exception_again.
652         (__cxa_vec_new3): Same.
653         (__cxa_vec_ctor): Same.
654         (__cxa_vec_delete3): Same.
655         (__cxa_vec_cctor): Same.
656         (__cxa_vec_delete2): Same.
657         (__cxa_vec_dtor): Same.
658         * libsupc++/exception_support.cc: Include exception_defines.h. Only
659         compile exception-handling bits if __EXCEPTIONS is defined.
660         Remove old ABI support.
661         * libsupc++/new_op.cc (new): Include exception_defines.h. Use
662         std::__throw_bad_alloc() instead of throw bad_alloc.
663         * libsupc++/Makefile.am: Add exception_defines.h.
664         * libsupc++/Makefile.in: Reformat.
665         * libsupc++/*: Format.
666
667 2001-02-15  Phil Edwards  <pme@sources.redhat.com>
668
669         * docs/html/configopts.html:  Minor updates and typo fixes.
670         * docs/html/faq/index.html:  Updates of the "not really bugs" list.
671         * docs/html/faq/index.txt:  Regenerated.
672
673 2001-02-15  Gabriel Dos Reis  <gdr@codesourcery.com>
674
675         * testsuite/lib/libstdc++.exp: Lift, temporarily, out of
676         dejagnu/dg.exp.  Adapt to log options used to run testcases.
677
678 2001-02-13  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
679
680         * testsuite/lib/libstdc++.exp(dg-test): Lift temporarily from
681         dejagnu/dg.exp.
682
683 2001-02-13  Dirk Mueller <dmuell@gmx.net>
684             Phil Edwards  <pme@sources.redhat.com>
685
686         * include/backward/function.h:  Do not use rel_ops for older
687           headers either.
688         * include/backward/pair.h:  Likewise.
689
690 2001-02-12  Mark Mitchell  <mark@codesourcery.com>
691
692         * src/locale.cc: Remove bogus locale::id definitions.
693
694 2001-02-11  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
695
696         * include/bits/std_valarray.h: #undef _DEFINE_LOGICAL_OPERATOR,
697         not _DEFINE_VALARRAY_OPERATOR which is not existent.
698
699         * include/bits/valarray_meta.h (_RefFunClos<>_RefRunClos): Fix
700         thinko in member initialisation.
701
702 2001-02-11  Gabriel Dos Reis  <gdr@codesourcery.com>
703
704         * include/bits/std_valarray.h(valarray<>::shift): Avoid
705         comparaison between signed and unsigned integer types.
706         (valarray<>::cshift): Reformat.
707
708 2001-02-11  Alexandre Oliva  <aoliva@redhat.com>
709
710         * src/gen-num-limits.cc: Use sigsetjmp and siglongjmp if available.
711         * mknumeric_limits: Compile it with -DHAVE_CONFIG_H.
712         * configure.in: Test for sigsetjmp.
713         * configure, config.h.in: Rebuilt.
714
715 2001-02-11  Gabriel Dos Reis  <gdr@codesourcery.com>
716
717         * src/valarray-inst.cc (gslice::_Indexer::_Indexer): Don't flip 
718         lengths and strides.
719         (__gslice_to_index): Document.
720
721 2001-02-11  Gabriel Dos Reis  <gdr@codesourcery.com>
722
723         * include/bits/char_traits.h char_traits<char>::int_type: Change
724         to `int' to match 21.1.3.1/2.
725
726         * testsuite/21_strings/char_traits-int_type.C: New test.
727
728 2001-02-10  Gabriel Dos Reis  <gdr@codesourcery.com>
729
730         * testsuite/Makefile.am: New file.
731
732 2001-02-09  Nathan Sidwell  <nathan@codesourcery.com>
733
734         * include/c_shadow/bits/std_cstdlib.h (lldiv_t): Fix typo.
735
736 2001-02-08  Loren J. Rittle  <ljrittle@acm.org>
737
738         * src/locale-inst.cc (fill_n): Instantiate with size_t arguments.
739
740 2001-02-08  David Edelsohn  <edelsohn@gnu.org>
741
742         * configure.target (aix4*): Remove extra set of brackets.
743
744 2001-02-07  Benjamin Kosnik  <bkoz@redhat.com>
745
746         Clean up stdexcept.
747         * include/bits/stringfwd.h: New file.
748         * include/bits/stl_string_fwd.h: Remove.
749         * include/bits/localefwd.h: Remove declaration for allocator.
750         * include/bits/std_iosfwd: Same.
751         * include/bits/std_string.h: Include it.
752         * include/bits/std_ios.h: Remove include.
753         * include/bits/basic_string.h: Tweak.
754         * libsupc++/new: Format.
755         * src/Makefile.am (base_headers): Add stringfwd.h, remove
756         stl_string_fwd.h
757         * src/Makefile.in: Regenerate.
758         * include/bits/std_stdexcept.h: Rewrite.
759         * src/stdexcept.cc: Same.
760         
761 2001-02-06  Benjamin Kosnik  <bkoz@redhat.com>
762
763         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Deal with library
764         install locations too.
765         * aclocal.m4: Regenerate.
766         * configure.in: Remove USE_LIBDIR.
767         * configure: Regenerate.
768         * src/Makefile.am (toolexecdir): Simplify, use
769         glibcpp_toolexecdir, glibcpp_toolexeclibdir.
770         * src/Makefile.in: Regenerate.
771         * libsupc++/Makefile.am: Same.
772         * libsupc++/Makefile.in: Regenerate.
773
774         * src/Makefile.am: Just remove special rules for locale-inst.cc and
775         misc-inst.cc as no longer necessary.
776
777         Follow C++STYLE for naming non-static functions.
778         * include/bits/ostream.tcc (_S_pad_char): Not static, rename to
779         __pad_char.
780         * include/bits/streambuf.tcc: Same.
781         * include/bits/ostream.tcc: Same.
782         * include/bits/istream.tcc: Same.
783         * include/bits/locale_facets.tcc (_S_pad_numeric): To __pad_numeric.
784         (_S_output_float): To __output_float.
785         * include/bits/std_streambuf.h (_S_copy_streambufs): To
786         __copy_streambufs.
787         * include/bits/locale_facets.tcc (_S_build_float_format): To
788         __build_float_format.
789         (_S_format): To __output_integer.
790         (_S_fill): To __pad.
791         * src/locale.cc: Same.
792         * src/misc-inst.cc: Fix formatting. Fix signature for wchar_t. Correct
793         names.
794         * include/bits/locale_facets.tcc (_S_group_digits): To
795         __group_digits.
796         * src/locale-inst.cc: Fixup names. Add use_facet instantiations
797         for collate, numpunct.
798         
799 2001-02-06  Phil Edwards  <pme@sources.redhat.com>
800
801         * docs/html/configopts.html:  Fix HTML markup.
802         * docs/html/install.html:  Bring up to date.
803         * docs/html/17_intro/C++STYLE:  Add global variable conventions.
804         * docs/html/21_strings/howto.html:  More notes.
805         * docs/html/22_locale/howto.html:  Fix HTML markup.
806         * docs/html/27_io/howto.html:  More notes.
807         * docs/html/27_io/binary_iostreams_kanze.txt:  New file.
808         * docs/html/27_io/binary_iostreams_kuehl.txt:  New file.
809
810 2001-02-06  Jeffrey Oldham  <oldham@codesourcery.com>
811
812         * src/misc-inst.cc (_S_pad_char): Modify declaration's parameters
813         to match header files.
814         (_S_output_float): Likewise.
815         (_S_copy_streambufs): Likewise.
816
817 2001-02-06  Hyman Rosen  <Hyman.Rosen@kbcfp.com>
818             Phil Edwards  <pme@sources.redhat.com>
819
820         * include/bits/std_istream.h (op>> signed,unsigned char):  Must
821           use reinterpret_cast, not static_cast.
822
823 2001-02-06  Benjamin Kosnik  <bkoz@redhat.com>
824
825         * acinclude.m4 (gxx_include_dir): Quote, fix regression.
826         * aclocal.m4: Regenerate.
827         * configure: Regenerate.
828         
829 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
830
831         * include/bits/locale_facets.h (class moneypunct): Fix typos.
832         * libsupc++/pure.cc: Revert.
833
834 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
835
836         * acinclude.m4 (GLIBCPP_CHECK_MATH_DECL_1): New macro.
837         (GLIBCPP_CHECK_MATH_DECL_2): New macro.
838         (GLIBCPP_CHECK_MATH_DECL_3): New macro.
839         (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1): Use it, check for _* too.
840         (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2): Same.
841         (GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3): Same.
842         (GLIBCPP_CHECK_MATH_SUPPORT): Remove explicit checks for _* versions.
843         * aclocal.m4: Regenerate.
844         * configure: Regenerate.
845         
846 2001-02-05  Mark Mitchell  <mark@codesourcery.com>
847
848         * include/bits/locale_facets.tcc: Remove `static' keyword on
849         function definitions.
850         * include/bits/std_streambuf.h: Likewise.
851         * src/Makefile.am: Remove use of -fimplicit-templates.
852         * src/Makefile.in: Regenerated.
853         * src/locale-inst.cc: Explicitly instantiate more functions.
854         * src/misc-inst.cc: Likewise.
855         * src/string-inst.cc: Likewise.
856
857 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
858
859         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): New
860         macro. Consolidate all the bits to do with where includes might be
861         installed.
862         * aclocal.m4: Regenerate.
863         * configure.in: Use it.
864         * configure: Regenerate.        
865         * src/Makefile.am (targetincludep): Use simplified rules.
866         (targetincludep): Rename gxx_target_include_dir.
867         (myincludep): Rename gxx_include_dir.
868         * src/Makefile.in: Regenerate.
869         * libsupc++/Makefile.am: Use simplified rules.
870         * libsupc++/Makefile.in: Regenerate.
871         
872 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
873
874         * include/c_std/bits/std_cerrno.h: Correct date format for copyright.
875         * include/c_std/bits/std_cctype.h: Same.
876         * include/c_std/bits/std_cassert.h: Same.
877         * include/c_std/bits/std_cstdarg.h: Same.
878         * include/c_std/bits/std_cstddef.h: Same.
879         
880         * include/c_std/bits/std_cstdio.h: Undefine all names brought into
881         namespace std.
882         * include/c_std/bits/std_ctime.h: Same.
883         * include/c_std/bits/std_clocale.h: Same.
884         * include/c_std/bits/std_cmath.h: Same.
885         * include/c_std/bits/std_csetjmp.h: Same.
886         * include/c_std/bits/std_csignal.h: Same.
887         * include/c_std/bits/std_cstring.h: Same.
888         * include/c_std/bits/std_cstdlib.h: Same.
889         * include/c_std/bits/std_cwchar.h: Same.
890         
891 2001-02-05  Phil Edwards  <pme@sources.redhat.com>
892
893         * testsuite/27_io/ios_base_members_static.cc:  Swap order of tests.
894
895 2001-02-05  Mark Mitchell  <mark@codesourcery.com>
896
897         * src/string-inst.cc (string::_M_replace): Explicitly instantiate.
898         (string::_S_construct): Likewise.
899
900 2001-02-05  Gabriel Dos Reis  <gdr@codesourcery.com>
901
902         * testsuite/config/default.exp: New file.
903         * testsuite/config: New directory.
904
905 2001-02-04  Mark Mitchell  <mark@codesourcery.com>
906
907         * libsupc++/typeinfo (__GXX_MERGED_TYPEINFO_NAMES): New macro.
908         * libsupc++/tinfo.cc (std::typeinfo::operator==): Use strcmp
909         whenever !__GXX_MERGED_TYPEINFO_NAMES.
910         * libsupc++/tinfo2.cc (std::typeinfo::before): Likewise.
911
912 2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
913             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
914
915         * Makefile.am (mkinstalldirs): Set.
916         * src/Makefile.am (mkinstalldirs): Set.
917         * libmath/Makefile.am (mkinstalldirs): Set.
918         * libsup++/Makefile.am (mkinstalldirs): Set.
919         * libio/Makefile.am (mkinstalldirs): Set.       
920         * */Makefile.in: Regenerate.
921
922 2001-02-03  Benjamin Kosnik  <bkoz@redhat.com>
923
924         * include/bits/stl_threads.h (struct _STL_mutex_lock): Same.
925         * include/bits/localefwd.h: More initialization cleanups.
926
927 2001-02-03  Jeffrey A Law  <law@cygnus.com>
928
929         * include/bits/ios_base.h (_S_ios_fmtflags_end): Initialize
930         correctly targets with 16bit ints.
931         (_S_ios_openmode_end): Similarly.
932         (_S_ios_iostate_end): Similarly.
933         (_S_ios_Seekdir_end): Similarly.
934         
935 2001-02-02  Phil Edwards  <pme@sources.redhat.com>
936
937         * mkcheck.in:  Also limit virtual memory size, for mmap-based mallocs.
938
939 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
940
941         * configure.in (toplevel_srcdir, auxdir): Set.
942         * acinclude.m4 (glibcpp_basedir): Set based on auxdir.
943         * aclocal.m4, configure, Makefile.in: Rebuilt.
944         * libio/Makefile.in, math/Makefile.in, src/Makefile.in: Likewise.
945         * libsupc++-v3/Makefile.am (INCLUDES): Use toplevel_srcdir.
946         * libsupc++-v3/Makefile.in: Rebuilt.
947         * libsupc++-v3/configure.in, libsupc++-v3/configure: Removed.
948         * libsupc++-v3/aclocal.m4, libsupc++-v3/config.h.in: Likewise.
949
950 2001-01-30   Benjamin Kosnik  <bkoz@redhat.com>
951
952         * config/c_locale_generic.cc: Remove langinfo include.
953
954 2001-01-29  Benjamin Kosnik  <bkoz@redhat.com>
955
956         Preliminary named locales.
957         * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
958         * aclocal.m4: Regenerate.
959         * configure.in: Use it.
960         * configure: Regerate.
961         * src/Makefile.am (sources): Add c++locale.cc.
962         (build_headers): Add c++locale.h.
963         * src/Makefile.in: Regenerate.
964         * config/c_locale_gnu.h: New file.      
965         * config/c_locale_gnu.cc: New file. Non-inline member functions
966         for named locales, gnu-specific.
967         * config/c_locale_generic.h: New file.          
968         * config/c_locale_generic.cc: New file. Non-inline member
969         functions for named locales, generic version.
970         * docs/html/configopts.html: Add documentation on new options.
971
972         * include/bits/locale_facets.h (class _Messages): Remove.
973         (class _Moneypunct): Remove.
974         * src/locale-inst.cc: Remove.
975         
976         * include/bits/locale_facets.h (class _Collate): Remove.
977         * src/locale-inst.cc (std): Remove.
978         * src/locale.cc: And here.
979         
980         * include/bits/localefwd.h (locale::_M_coalesce): New
981         function. Correctly put together multi-name locales.
982         (_Impl(const _Impl&, category, size_t)): Remove.
983
984         * include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
985         member functions.
986         (_M_normalize_category_names): Remove.
987         (_M_replace_categories): Fix.
988
989         * src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
990         (locale::_Impl::_M_construct_ctype): Remove.
991         (locale::_Impl::_M_construct_monetary): Remove. 
992         (locale::_Impl::_M_construct_numeric): Remove.  
993         (locale::_Impl::_M_construct_time): Remove.             
994         (locale::_Impl::_M_construct_messages): Remove.         
995
996         * include/bits/locale_facets.h (_Bad_use_facet): Remove.
997         (_Use_facet_failure_handle): Remove.
998         * src/locale.cc: Remove definitions.
999         * src/locale-inst.cc: And here.
1000         
1001         * testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
1002
1003         * src/localename.cc (locale::facet::_S_create_c_locale): Properly
1004         create and error-check underlying locale object.
1005         (locale::facet::_S_destroy_c_locale): Add, take care of properly
1006         tearing down underlying locale object.
1007         * include/bits/localefwd.h (locale::facet): Declare.
1008         * testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
1009         correctness, as glibc apparently has incorrect info in it. Test
1010         with it when it works again.....        
1011
1012         * include/bits/localefwd.h (locale::_Impl::__vec_string):
1013         Remove. Number of categories is fixed at six, so just simplify and
1014         make this an array of strings.
1015         (locale::_Impl::_M_has_name): Remove.
1016         (locale::_Impl::_M_name): Remove.       
1017         (locale::_Impl::_M_category_names): Turns into...       
1018         (locale::_Impl::_M_names): ...this.
1019         (locale::_Impl::_M_has_same_name()): New function.
1020         * src/localename.cc (locale::_Impl::~_Impl()): Remove here.
1021         (locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
1022         signature.
1023         * src/locale.cc (locale::name()): Construct mangled name
1024         accurately reflecting combined locale categories.
1025
1026         * src/locale.cc (locale::classic()): Don't initialize here.
1027         * src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
1028         __refs, bool __has_name, string __str): Do it here.
1029
1030         * include/bits/localefwd.h: _S_categories_num to
1031         _S_num_categories. _S_facets_num to _S_num_facets.
1032         (locale::id::id()): Explicitly set _M_index to zero.
1033         * src/locale.cc: Same.
1034
1035         * src/locale.cc: (locale::locale(const char*)): Construct named
1036         locales uniquely.
1037
1038         * src/locale.cc: Remove numpunct_byname ctors.
1039         * testsuite/22_locale/numpunct_byname.cc: New file.
1040         * testsuite/22_locale/numpunct.cc: New file.    
1041         
1042         * include/bits/localefwd.h (class locale): Change data members to
1043         protected, from private.
1044         (_Impl::_M_get_c_locale): Add member function.
1045         (locale::facet::_M_get_global_impl()): Add member function.
1046         * include/bits/locale_facets.h (numpunct::_M_init): Change to take
1047         a __c_locale pointer.
1048         (numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
1049         named locales.
1050         * testsuite/22_locale/members.cc: New file, test name and combine.
1051         
1052         * include/bits/locale_facets.h (class numpunct): Remove class
1053         _Punct and _Numpunct. Rewrite class numpunct to be correct for
1054         named locales.
1055         * include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
1056         * src/localename.cc (_Impl::~_Impl()): Call __frelocale.
1057         (_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
1058         * src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
1059         * testsuite/22_locale/numpunct_char_members.cc: New file.
1060         
1061 2001-01-28  Gabriel Dos Reis  <gdr@codesourcery.com>
1062
1063         * testsuite/README: Add more comment.
1064         * testsuite/lib/libstdc++.exp: Tweak comment.
1065
1066 2001-01-26  Benjamin Kosnik  <bkoz@kredhat.com>
1067
1068         * libsupc++/pure.cc (writestr): Just use cstdio and std::fputs.
1069
1070 2001-01-25  Loren J. Rittle  <ljrittle@acm.org>
1071
1072         * testsuite/21_strings/inserters_extractors.cc: Remove
1073         explicit reference to 'testsuite/'.
1074
1075 2001-01-25  Richard Henderson  <rth@redhat.com>
1076
1077         * config/cpu/alpha/bits/atomicity.h: Remove tricky .subsetion
1078         bits. Fixes Tru64 build issues.
1079         
1080 2001-01-25  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1081
1082         * acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug
1083         (use ${MAKE-make}, not ${MAKE:-make}).
1084         * aclocal.m4, configure: Regenerate.
1085
1086 2001-01-25  Mark Mitchell  <mark@codesourcery.com>
1087
1088         * src/ios.cc: Remove accidental inclusion of <stdio.h> in last
1089         checkin.
1090
1091         * src/Makefile.am (sources): Add globals.cc.
1092         * src/Makefile.in: Regenerated.
1093         * src/globals.cc: New file.
1094         * src/ios.cc (cin): Don't define here, just declare extern.
1095         (cout): Likewise.
1096         (cerr): Likewise.
1097         (clog): Likewise.
1098         (wcin): Likewise.
1099         (wcout): Likewise.
1100         (wcerr): Likewise.
1101         (wclog): Likewise.
1102
1103 2001-01-25  Phil Edwards  <pme@sources.redhat.com>
1104
1105         * include/bits/std_iterator.h:  Do not include stl_relops.h.
1106         * include/bits/std_numeric.h:  Ditto.
1107         * include/bits/stl_algobase.h:  Ditto.
1108         * include/bits/stl_relops.h:  Add comment warning about problems.
1109
1110 2001-01-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1111
1112         * testsuite/27_io/*.cc: Remove explicit reference to 'testsuite/'
1113         in testcases.  Prepare for the DejaGnu based framework.
1114         * mkcheck.in: Adjust call to tests_flags.  Don't mmkdir testsuite
1115         directory -- it is now mkcheck working directory.
1116         * tests_flags.in: Remove reference to $(top_srcdir).  Use
1117         ${SRC_DIR} instead.
1118         * Makefile.am (check, check-install): Change mkcheck invocation
1119         logic. 
1120         * Makefile.in: Regenerate.
1121
1122 2001-01-24  Mark Mitchell  <mark@codesourcery.com>
1123
1124         * config/os/aix/bits/atomicity.h (__compare_and_swap): Remove.
1125         (__always_swap): Likewise.
1126
1127 2001-01-23  Chris Demetriou  <cgd@broadcom.com>
1128
1129         * libsupc++/exception_support.cc (__terminate_func): Remove
1130         declaration.
1131         (__terminate_func_ptr): New typedef.
1132         (__terminate, __terminate_set_func): New extern function
1133         prototypes.
1134         (std::terminate): Use __terminate function.
1135         (std::set_terminate): Use __terminate_set_func function.
1136
1137 2001-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1138
1139         * configure.target: Just use os_include_dir always.
1140         * configure.in: Remove calls to GLIBCPP_CHECK_CTYPE_SUPPORT.
1141         Link atomicity files and ctype files here.
1142         * configure: Regenerate.
1143         * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Remove.
1144         (GLIBCPP_ENABLE_ATOMICITY): Remove.
1145         * aclocal.m4: Regenerate.
1146         
1147 2001-01-23  Chris Demetriou  <cgd@broadcom.com>
1148
1149         * configure.in: Place definition of MULTISUBDIR in
1150         libsupc++/Makefile as is done for src/Makefile.
1151         * configure: Regenerate.
1152
1153 2001-01-23  Phil Edwards  <pme@sources.redhat.com>
1154
1155         * acinclude.m4:  Cosmetic changes only.
1156         * aclocal.m4:  Regenerated.
1157         * configure:  Regenerated.
1158         * configure.target:  Update documented list of changed variables.
1159         * docs/html/install.html:  Fix typo.
1160         * docs/html/20_util/howto.html:  More notes on auto_ptr.
1161         * docs/html/27_io/howto.html:  More notes on streabufs.
1162         * docs/html/faq/index.html:  Add rel_ops problem and mention the
1163           DEC as(1) .subsection difficulty.
1164         * docs/html/faq/index.txt:  Regenerated.
1165
1166 2001-01-23  Mark Mitchell  <mark@codesourcery.com>
1167
1168         * ainclude.m4 (GLIBCPP_CHEC_MATH_DECLS_AND_LINKAGE_1): New macro.
1169         (GLIBCPP_CHECK_MATH_SUPPORT): Use it.
1170         (GLIBCPP_CHECK_TYPE_SUPPORT): Don't autoconf ctype information if
1171         its already provided in config.target.
1172         * aclocal.m4: Regenerated.
1173         * configure: Likewise.
1174         * configure.target: Set ctype_include_dir for lots of systems.
1175         * libsupc++/Makefile.am: Explicitly include --tag disable-shared.
1176         * libsupc++/Makefile.in: Regenerated.
1177
1178 2001-01-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1179
1180         * testsuite/lib/libstdc++.exp: Improve.  Add support for @xxx#
1181         keyword capability.
1182
1183         * testsuite/README: Add comment.
1184
1185 2001-01-21  Phil Edwards  <pme@sources.redhat.com>
1186
1187         * docs/html/configopts.html:  Update for current status.  Fix HTML.
1188         * docs/html/install.html:  Update for current status.
1189
1190 2001-01-20  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1191
1192         * testsuite/libstdc++.tests/tests.exp: New file.
1193         * testsuite/lib/libstdc++.exp: Itou.
1194         * testsuite/README: Itou.
1195
1196 2001-01-20  Gabriel Dos Reis  <gdr@codesourcery.com>
1197
1198         * tests_flags.in: Just output the bare minimum to run tests.
1199         Let's the caller do its own arrangement.
1200
1201         * mkcheck.in: Rename INC_PATH to INCLUDES.  Adjust flags
1202         computations.
1203
1204 2001-01-19  Gabriel Dos Reis  <gdr@codesourcery.com>
1205
1206         * testsuite/17_intro: Prepare testcases for new style DejaGnu
1207         framework. 
1208
1209 2001-01-18  Gabriel Dos Reis  <gdr@codesourcery.com>
1210
1211         * testsuite/libstdc++.tests, testsuite/lib: New directories.
1212
1213 2001-01-17  Loren J. Rittle  <ljrittle@acm.org>
1214
1215         * mkcheck.in: Construct file names that match $objdir structure.
1216         * testsuite/27_io/filebuf_members-1.txt: New file.
1217         * testsuite/27_io/ifstream_members-1.txt: New file.
1218         * testsuite/27_io/ostream_inserter_char-1.txt: New file.
1219
1220         * testsuite/27_io/ios_base_members_static.cc (test02): Add test.
1221         * testsuite/27_io/ios_base_members_static-1.tst: Add expected output.
1222
1223 2001-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1224
1225         * testsuite/27_io/istream_sentry.cc (test02): Fix.
1226
1227 2001-01-17  Benjamin Kosnik  <bkoz@redhat.com>
1228
1229         libstdc++/1605
1230         * include/bits/ios_base.h (ios_base::failure): Tighten up throw specs.
1231         * src/ios.cc (ios_base::failure): Make definitions match.
1232         * libsupc++/typeinfo (class bad_typeid): Add throw specs.
1233         (class bad_cast): Same.
1234         * libsupc++/exception (class exception): Add throw specs.
1235         * libsupc++/exception_support.cc (set_terminate): Add throw specs.
1236         (set_unexpected): Same.
1237         (uncaught_exception): Same.
1238         (what): Same.
1239
1240         * docs/html/17_intro/C++STYLE (classname): Fix.
1241         
1242 2001-01-16  Mark Mitchell  <mark@codesourcery.com>
1243
1244         * src/gen-num-limits.cc (INSTANTIATIONS): New macro.
1245         Use it do explicitly instantiate predicate<T> and value<T> for
1246         all the builtin Ts.
1247
1248 2001-01-16  Nathan Sidwell  <nathan@codesourcery.com>
1249
1250         * libsupc++/exception_support.cc (__cp_pop_exception): Fix
1251         uninitialized thinko in last change.
1252
1253 2001-01-16  Mark Mitchell  <mark@codesourcery.com>
1254
1255         * libsupc++/exception_support.cc (__cp_pop_exception): Change
1256         prototype.
1257
1258 2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>
1259
1260         * docs/html/17_intro/C++STYLE (classname): Add more existing
1261         and stylish patterns.
1262
1263         libstdc++/944
1264         * include/bits/istream.tcc (istream::sentry::sentry()): Set
1265         failbit if the state of the stream is not good.
1266         * testsuite/27_io/istream_sentry.cc (test02): Add test.
1267         * testsuite/27_io/istream_manip.cc (test01): Modify.
1268
1269         libstdc++/1019
1270         reported by Paolo Carlini <pcarlini@unitus.it>
1271         * include/bits/istream.tcc (operator>>(istream&, string&)): Fix. 
1272         * testsuite/21_strings/inserters_extractors.cc (test08): Add test.
1273
1274         libstdc++/1057
1275         * include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
1276         * include/bits/streambuf.tcc (xsputn): Remove outside if clause.
1277         (xsgetn): Same. Simplify.
1278         * testsuite/27_io/streambuf.cc (test04): Add testcases.
1279
1280         reported by Larry Evans <jcampbell3@prodigy.net> 
1281         * include/bits/streambuf.tcc (streambuf::xsputn): Just check for
1282         equality with eof on returned value from overflow.
1283
1284 2001-01-14  Andreas Jaeger  <aj@suse.de>
1285
1286         * libio/libio.h: Add test for glibc 2.0.
1287
1288 2001-01-12  Benjamin Kosnik  <bkoz@redhat.com>
1289
1290         * config/os/djgpp/bits/*: Fix dates.
1291
1292         * include/bits/basic_string.h (_S_find(const _CharT* __beg, const
1293         _CharT* __end, _CharT __c): Remove.
1294         * include/bits/basic_string.tcc: Substitute traits::find for _S_find.
1295         * include/bits/char_traits.h: Tweak.
1296
1297 2001-01-12  Laurynas Biveinis  <lauras@softhome.net>
1298
1299         * acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): check for DJGPP <ctype.h>
1300         (LIB_AC_PROG_CXX): replace [/\\] with [\\/] to work around older
1301         bash bug.
1302         * aclocal.m4: regenerated.
1303         * configure.target: set os_include_dir to config/os/djgpp under DJGPP.
1304         * configure: regenerated.
1305         * config/os/djgpp, config/os/djgpp/bits: new directories.
1306         * config/os/djgpp/bits/ctype_base.h,
1307         config/os/djgpp/bits/ctype_inline.h,
1308         config/os/djgpp/bits/ctype_noninline.h,
1309         config/os/djgpp/bits/os_defines.h: new files.
1310
1311 2001-01-11   Joseph S. Myers  <jsm28@cam.ac.uk>
1312
1313         * include/c_std/bits/std_cstdio.h: Undef printf.
1314
1315 2001-01-10  Benjamin Kosnik  <bkoz@redhat.com>
1316
1317         * src/ios.cc: Fix typo: change cout->wcout.
1318
1319         * src/Makefile.am (targetincludep): Fix for version-specific-libs.
1320         * src/Makefile.in: Regenerate.
1321
1322 2001-01-10  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1323
1324          * include/bits/std_complex.h: Fix a typo.
1325
1326 2001-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1327                              <kainz@ilm.com>
1328
1329         Fixes for libstdc++/1576
1330         * src/stdstreams.cc: Initialize with NULL filebuf. Delete
1331         file, move contents into....
1332         * src/ios.cc: ...Here. Put defines for iostreams objects and
1333         initialization routines into one file to simplify DSO interaction.
1334         * include/bits/std_iostream.h: Touch.
1335         * include/bits/ios_base.h (_S_synched_with_stdio): Make static.
1336         * src/Makefile.am (sources): Remove stdstreams.cc.
1337         * src/Makefile.in: Regenerate.
1338
1339 2001-01-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1340
1341         * tests_flags.in (check_directory): Fix typo.
1342
1343 2001-01-09  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
1344
1345          * include/bits/std_complex.h: Fix a typo.
1346
1347 2001-01-09  Loren J. Rittle  <ljrittle@acm.org>
1348
1349         * config/os/bsd/freebsd/bits/ctype_inline.h (is): (Make right
1350         code path:) Remove magic constants and restructure to handle
1351         ctype.h bit mask layout changes more gracefully.  (Make fast
1352         code path:) Use __maskrune (), if available.
1353         (is): Remove special case for digit and xdigit masks.
1354
1355 2001-01-09  Robert Lipe <robertlipe@usa.net>
1356
1357         * include/c_std/bits/std_ctime.h: Undefine difftime.
1358
1359 2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
1360
1361         * src/gen-num-limits.cc (signal_adapter): New template function.
1362         (signal_handler): Use it, instead of signal.
1363         (traps<T>): Likewise.  Install SIGTRAP handler too.  Don't
1364         require both tests to trap to set trap_flag.
1365
1366 2001-01-08  Benjamin Kosnik  <bkoz@redhat.com>
1367
1368         * include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
1369         initialize mbstate_t member, name offset data members *off, not pos.
1370         * include/bits/fstream.tcc (filebuf::filebuf): Same.
1371
1372 2001-01-08  Benjamin Kosnik  <bkoz@redhat.com>
1373
1374         reported by Chris G. Demetriou <cgd@sibyte.com>
1375         * configure.in: Change -linux-* to -linux*.
1376         * configure: Regenerate.
1377
1378 2001-01-05  Benjamin Kosnik  <bkoz@redhat.com>
1379
1380         Fix 27_io/filebuf_members.cc
1381         * src/localename.cc (locale::_Impl::_Impl(const _Impl& __imp,
1382         const string& __name, category __cat, size_t __refs): Set
1383         _M_has_name with _M_name.
1384         * include/bits/localefwd.h (locale::operator!=): Protect member
1385         function call with this->.
1386         * src/locale.cc (locale::operator==): Make fast checks first.
1387         * include/bits/basic_ios.tcc (basic_ios::init): Simplify.
1388
1389         * include/bits/ios_base.h (_M_synced_with_stdio): Add data member
1390         to ios_base::Init.
1391         * src/ios.cc (ios_base::Init::Init): Initialize here.
1392         (ios_base::sync_with_stdio): Set here.
1393
1394 2001-01-04  Loren J. Rittle  <ljrittle@acm.org>
1395
1396         * config/c_io_stdio.cc (__basic_file<_CharT>::sys_open()): On
1397         systems that support it, call dup() before fdopen().
1398
1399 2001-01-03  Benjamin Kosnik  <bkoz@redhat.com>
1400
1401         * include/c_std/bits/std_cwctype.h: Include std_cwchar.h for wint_t.
1402         * testsuite/17_intro/header_cwctype.cc (main): New file.
1403
1404         * src/Makefile.am (base_headers): Change.
1405         * include/bits/std_string.h: And here.
1406         * include/bits/string.tcc: Tweaks, move to...
1407         * include/bits/basic_string.tcc: ...Here.
1408         * src/string-inst.cc: Simplify, just instantiate the whole class,
1409         not member-by-member.
1410
1411 2001-01-02  Benjamin Kosnik  <bkoz@redhat.com>
1412
1413         * acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
1414         * aclocal.m4: Regenerate.
1415         * configure: Regenerate.
1416
1417         * include/bits/c++config (__GLIBCPP__): Bump version number.
1418
1419         * ChangeLog: Start new log for year 2001
1420         * ChangeLog-2000: New file.
1421
1422         * docs/html/configopts.html: Make sure default values are current,
1423         add commentary.
1424
1425 2001-01-01  Benjamin Kosnik  <bkoz@fillmore.redhat.com>
1426
1427         * include/c_std/bits/std_cwchar.h: Same.
1428         * testsuite/17_intro/header_cwchar.cc: Same.
1429         * include/c_std/bits/std_ctime.h: Same.
1430         * testsuite/17_intro/header_ctime.cc: Same.
1431         * include/c_std/bits/std_cstdlib.h: Same.
1432         Clean up undefs, make consistent with cwchar and cmath, etc.
1433         * testsuite/17_intro/header_cstdlib.cc: Same.
1434         * include/c_std/bits/std_cstdio.h: Same here.
1435         * testsuite/17_intro/header_cstring.cc: Same.
1436         * include/c_std/bits/std_cstring.h: Include std_cstddef.h for size_t.
1437         * testsuite/17_intro/header_cstring.cc: New file. Check for
1438         size_t in namespace std.
1439
1440         * include/c_std/bits/std_cwchar.h: Explicit checks for mbstate_t.
1441         * acconfig.h (HAVE_MBSTATE_T): Add.
1442         * config.h.in: Regenerate.
1443         * acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Always test for
1444         mbstate_t.
1445         * aclocal.m4: Regenerate.
1446         * configure: Regenerate.
1447         * testsuite/17_intro/headers_c++.cc: New file.
1448         * testsuite/17_intro/headers_c.cc: Small changes.
1449
1450 2001-01-01  David Billinghurst <David.Billinghurst@riotinto.com>
1451
1452         * tests_flags.in: Fix typo in usage.
1453
1454         * tests_flags.in: Set target specific LIBS for cygwin.