OSDN Git Service

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