OSDN Git Service

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