OSDN Git Service

9c0fa212917941e0c5b51771188b101dce15d419
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-03-14  Loren J. Rittle  <ljrittle@acm.org>
2
3         * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
4         missing named locale.
5
6 2003-03-14  Andreas Schwab  <schwab@suse.de>
7
8         * configure.in: Only append to makefiles that are newly created to
9         avoid multiple multi-do/multi-clean rules.
10         * configure: Rebuilt.
11
12 2003-03-13  Jonathan Wakely  <redi@gcc.gnu.org>
13
14         * docs/html/configopts.html, docs/html/documentation.html,
15         docs/html/explanations.html, docs/html/install.html,
16         docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
17         invalid XHTML and make page header style consistent.
18
19 2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>
20
21         * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
22         * docs/html/faq/index.txt: Regenerate.
23         * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
24
25 2003-03-12  Andreas Schwab  <schwab@suse.de>
26
27         * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
28         glibcpp_toolexeclibdir.
29         * aclocal.m4, configure: Rebuilt.
30
31 2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>
32
33         * docs/html/faq/index.html: Update text about location of headers.
34         * docs/html/faq/index.txt: Regenerate.
35
36 2003-03-11  Carlo Wood  <carlo@alinoe.com>
37
38         * include/bits/demangle.h: Prepend accessors of
39         class qualifier with 'get_' in order to fix warnings
40         when compiling with -Wshadow.
41
42 2003-03-11  Loren J. Rittle  <ljrittle@acm.org>
43
44         * config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
45         when so installed.
46         * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
47
48         * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
49         report lack of setenv().
50
51 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
52
53         * config/io/basic_file_stdio.cc: include <unistd.h>.
54
55 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
56             Nathan Myers  <ncm@cantrip.org>
57
58         PR libstdc++/7744
59         * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
60         seekoff, seekpos): Add a boolean parameter __stdio.
61         * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
62         seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
63         fseek/ftell, respectively), otherwise read (write, lseek, lseek,
64         respectively).
65         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
66         _M_really_overflow, seekoff): Use the boolean parameter in the calls.
67         * include/std/std_fstream.h (sync): Likewise.
68         * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
69         * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
70         libstdc++/8399 commit involving isatty(0).
71         * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
72         (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
73         * configure.in: Remove call.
74         * aclocal.m4: Regenerate.
75         * config.h.in: Regenerate.
76         * configure: Regenerate.
77         * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
78
79 2003-03-09  Paolo Carlini  <pcarlini@unitus.it>
80
81         PR libstdc++/9988
82         * include/bits/fstream.tcc (overflow): don't write EOF to file.
83         * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
84
85 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
86
87         PR libstdc++/9561
88         * include/bits/basic_ios.h (_M_setstate): New.
89         * include/bits/ostream.tcc (operator<<): Use it.
90         * include/bits/istream.tcc (operator>>): Use it.
91         * include/std/std_ostream.h (operator<<): Make friends.
92         * include/std/std_istream.h (operator>>): Make friends.
93         * testsuite/27_io/ostream_exception.cc,
94         testsuite/27_io/istream_exception.cc: New tests.
95
96 2003-03-08  Benjamin Kosnik  <bkoz@redhat.com>  
97
98         * include/bits/locale_facets.tcc: Fix typo.
99
100 2003-03-08  Loren J. Rittle  <ljrittle@acm.org>
101
102         * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
103         
104         * config/locale/generic/c_locale.cc
105         (locale::facet::_S_create_c_locale): Throw runtime exception when
106         unsupported language is specified.
107         * testsuite/testsuite_hooks.h
108         (run_test_wrapped_generic_locale_exception_catcher): New function.
109         * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
110         Suppress runtime exception thrown by generic implementation.
111         (run_tests_wrapped_env): Likewise.
112         (run_test_wrapped_generic_locale_exception_catcher): New function.
113         * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
114         * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
115         * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
116         * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
117         * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
118         * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
119         * testsuite/22_locale/collate_byname/1.cc: New test wrap.
120         * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
121         * testsuite/22_locale/facet/2.cc: New test wrap.
122         * testsuite/22_locale/locale/cons/4.cc: New test wrap.
123         * testsuite/22_locale/locale/cons/5.cc: New test wrap.
124         * testsuite/22_locale/locale/cons/7.cc: New test wrap.
125         * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
126         * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
127         * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
128         * testsuite/22_locale/messages_byname/1.cc: New test wrap.
129         * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
130         * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
131         * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
132         * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
133         * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
134         * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
135         * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
136         * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
137         * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
138         * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
139         * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
140         * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
141         * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
142         * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
143         * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
144         * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
145         * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
146         * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
147         * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
148         * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
149         * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
150         * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
151         * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
152         * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
153         * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
154         * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
155         * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
156         * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
157         * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
158         * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
159         * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
160         * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
161         * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
162         * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
163         * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
164         * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
165         * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
166         * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
167         * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
168         * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
169         * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
170         * testsuite/27_io/ios_members.cc: New test wrap.
171         * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
172         New test wrap.
173         * testsuite/27_io/streambuf_members.cc: New test wrap.
174         * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
175
176 2003-03-08  Paolo Carlini <pcarlini@unitus.it>
177             Petur Runolfsson  <peturr02@ru.is>
178
179         PR libstdc++/9424
180         * include/bits/streambuf.tcc (__copy_streambufs): Use
181         sgetn-sputn only when sputn cannot fail, otherwise fall back
182         to safe snextc-sputc.
183         * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
184
185 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
186
187         * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
188         locale cache for truename and falsename.
189
190 2003-03-08  Jerry Quinn  <jlquinn@optonline.net>
191
192         * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
193         _M_word_size initialization.
194
195 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
196
197         * include/bits/fstream.tcc (_M_convert_to_external):
198         Set __elen to zero if codecvt::out eventually fails.
199
200 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
201
202         PR libstdc++/9182
203         * include/bits/fstream.tcc (_M_really_overflow): Check
204         for _M_convert_to_external possible failures.
205         * include/std/std_fstream.h (sync): Check _M_really_overflow
206         return value and return -1 in case of failure.
207         * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
208
209 2003-03-07  Paolo Carlini  <pcarlini@unitus.it>
210
211         PR libstdc++/9826
212         * include/bits/istream.tcc (operator>>(_CharT*),
213         operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
214         * testsuite/27_io/stringstream.cc (test02): Add.
215
216         * include/bits/istream.tcc (operator>>(_CharT*)):
217         Assign a char_type to *__s.
218
219 2003-03-07  Petur Runolfsson  <peturr02@ru.is>
220
221         PR libstdc++/9817
222         * include/bits/locale_facets.tcc
223         (collate::do_compare, collate::do_transform):
224         Handle nul characters in input.
225         * testsuite/22_locale/collate/compare/char/3.cc:  New test.
226         * testsuite/22_locale/collate/compare/wchar_t/3.cc:  New test.
227         * testsuite/22_locale/collate/transform/char/3.cc:  New test.
228         * testsuite/22_locale/collate/transform/wchar_t/3.cc:  New test.
229
230 2003-03-07  Jerry Quinn  <jlquinn@optonline.net>
231
232         * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
233         sputn fails.
234         * testsuite/27_io/ostream_fail.cc: New test.
235
236 2003-03-07  Matthias Klose  <doko@debian.org>
237
238         * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
239         FLAGS_TO_PASS: Set to AM_MAKEFLAGS
240         * Makefile.in: Regenerate.
241         * libsupc++/Makefile.am: Express glibcppinstalldir in terms
242         of gxx_include_dir.
243         AM_MAKEFLAGS: Pass gxx_include_dir.
244         * libsupc++/Makefile.in: Regenerate.
245
246 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
247
248         * testsuite/27_io/ios_base_storage.cc (test02): Set exception
249         mask.  Test setting small-numbered pword and iword slots.  Test
250         behavior at limit of numeric_limits::max.  Check that values are
251         still good after failures.
252
253 2003-03-06  Jerry Quinn  <jlquinn@optonline.net>
254
255         * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
256         (ios_base::ios_base): Set _M_word, _M_word_size.
257         (ios_base::~ios_base): Remove redundant test.
258         * testsuite/27_io/ios_base_storage.cc (test03): New.
259
260 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
261
262         * src/strstream.cc, include/bits/basic_string.tcc: Remove
263         incorrect whitespace added in my previous change.
264
265 2003-03-05  Carlo Wood  <carlo@alinoe.com>
266
267         * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
268         _S_initialized() in order to allow debugging libraries to detect
269         when the std streams are initialized from an overloaded operator
270         new.
271
272 2003-03-05  Benjamin Kosnik  <bkoz@redhat.com>
273
274         * libsupc++/demangle.h: Move to..
275         * include/bits/demangle.h: ...here.
276         * src/demangle.cc: Adjust include.
277         * include/Makefile.am (bits_headers): Add.
278         * include/Makefile.in: Regenerate.
279         
280 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>  
281
282         * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
283
284         * config/linker-map.gnu: Filter typeinfo and vtable info.
285
286 2003-03-04  Jerry Quinn  <jlquinn@optonline.net>
287
288         * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
289         new failure.  Throw exception if badbit and exception mask when ix
290         >= numeric_limits<int>::max().
291
292 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
293
294         * src/strstream.cc (strstreambuf::overflow): Make sure operands of
295         min and max have the same type.
296         * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
297
298 2003-03-04  Benjamin Kosnik  <bkoz@redhat.com>
299
300         * include/Makefile.am (allstamps): Remove stamp-std-precompile.
301         * include/Makefile.in: Regenerate.
302
303 2003-03-03  Benjamin Kosnik  <bkoz@redhat.com>
304
305         * testsuite/abi_check.cc (report_symbol_info): Add version info.
306
307         * config/linker-map.gnu: Hide more stuff.
308         * include/Makefile.am: Cleanups.
309         * include/Makefile.in: Regenerate.
310         
311 2003-02-27  Jerry Quinn  <jlquinn@optonline.net>
312
313         * config/locale/generic/messages_members.h (messages::messages):
314         Remove name from unused parameter.
315
316 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
317
318         * src/Makefile.am (sources): Add demangle.cc.
319         (demangle.o): Add.
320         (demangle.lo): Add.     
321         * src/Makefile.in: Regenerate.
322         * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
323         * libsupc++/Makefile.in: Regenerate.
324
325         * testsuite/testsuite_hooks.h
326         (__gnu_cxx_test::verify_demangle): New.
327         * testsuite/testsuite_hooks.cc: Define.
328         
329 2003-02-27  Carlo Wood  <carlo@alinoe.com>
330
331         * src/demangle.cc: New.
332         * libsupc++/demangle.h: New.
333
334 2003-02-27  Benjamin Kosnik  <bkoz@redhat.com>
335             Carlo Wood  <carlo@alinoe.com>
336
337         * testsuite/demangle/abi_examples/01.cc: New.
338         * testsuite/demangle/abi_examples/02.cc: New.
339         * testsuite/demangle/abi_examples/03.cc: New.
340         * testsuite/demangle/abi_examples/04.cc: New.
341         * testsuite/demangle/abi_examples/05.cc: New.
342         * testsuite/demangle/abi_examples/06.cc: New.
343         * testsuite/demangle/abi_examples/07.cc: New.
344         * testsuite/demangle/abi_examples/08.cc: New.
345         * testsuite/demangle/abi_examples/09.cc: New.
346         * testsuite/demangle/abi_examples/10.cc: New.
347         * testsuite/demangle/abi_examples/11.cc: New.
348         * testsuite/demangle/abi_examples/12.cc: New.
349         * testsuite/demangle/abi_examples/13.cc: New.
350         * testsuite/demangle/abi_examples/14.cc: New.
351         * testsuite/demangle/abi_examples/15.cc: New.
352         * testsuite/demangle/abi_examples/16.cc: New.
353         * testsuite/demangle/abi_examples/17.cc: New.
354         * testsuite/demangle/abi_examples/18.cc: New.
355         * testsuite/demangle/abi_examples/19.cc: New.
356         * testsuite/demangle/abi_examples/20.cc: New.
357         * testsuite/demangle/abi_examples/21.cc: New.
358         * testsuite/demangle/abi_examples/22.cc: New.
359         * testsuite/demangle/abi_examples/23.cc: New.
360         * testsuite/demangle/abi_examples/24.cc: New.
361         * testsuite/demangle/abi_examples/25.cc: New.
362         * testsuite/demangle/abi_examples/26.cc: New.
363         * testsuite/demangle/abi_text/01.cc: New.
364         * testsuite/demangle/abi_text/02.cc: New.
365         * testsuite/demangle/abi_text/03.cc: New.
366         * testsuite/demangle/abi_text/04.cc: New.
367         * testsuite/demangle/abi_text/05.cc: New.
368         * testsuite/demangle/abi_text/06.cc: New.
369         * testsuite/demangle/abi_text/07.cc: New.
370         * testsuite/demangle/abi_text/08.cc: New.
371         * testsuite/demangle/abi_text/09.cc: New.
372         * testsuite/demangle/abi_text/10.cc: New.
373         * testsuite/demangle/abi_text/11.cc: New.
374         * testsuite/demangle/abi_text/12.cc: New.
375         * testsuite/demangle/abi_text/13.cc: New.
376         * testsuite/demangle/abi_text/14.cc: New.
377         * testsuite/demangle/regression/3111-1.cc: New.
378         * testsuite/demangle/regression/3111-2.cc: New.
379         * testsuite/demangle/regression/7986-01.cc: New.
380         * testsuite/demangle/regression/7986-02.cc: New.
381         * testsuite/demangle/regression/7986-03.cc: New.
382         * testsuite/demangle/regression/7986-04.cc: New.
383         * testsuite/demangle/regression/7986-05.cc: New.
384         * testsuite/demangle/regression/7986-06.cc: New.
385         * testsuite/demangle/regression/7986-07.cc: New.
386         * testsuite/demangle/regression/7986-08.cc: New.
387         * testsuite/demangle/regression/7986-09.cc: New.
388         * testsuite/demangle/regression/7986-10.cc: New.
389         * testsuite/demangle/regression/7986-11.cc: New.
390         * testsuite/demangle/regression/7986-12.cc: New.
391         * testsuite/demangle/regression/7986.cc: New.
392         * testsuite/demangle/regression/8897.cc: New.
393         * testsuite/demangle/regression/cw-01.cc: New.
394         * testsuite/demangle/regression/cw-02.cc: New.
395         * testsuite/demangle/regression/cw-03.cc: New.
396         * testsuite/demangle/regression/cw-04.cc: New.
397         * testsuite/demangle/regression/cw-05.cc: New.
398         * testsuite/demangle/regression/cw-06.cc: New.
399         * testsuite/demangle/regression/cw-07.cc: New.
400         * testsuite/demangle/regression/cw-08.cc: New.
401         * testsuite/demangle/regression/cw-09.cc: New.
402         * testsuite/demangle/regression/cw-10.cc: New.
403         * testsuite/demangle/regression/cw-11.cc: New.
404         * testsuite/demangle/regression/cw-12.cc: New.
405         * testsuite/demangle/regression/cw-13.cc: New.
406         * testsuite/demangle/regression/cw-14.cc: New.
407         * testsuite/demangle/regression/old.cc: New.
408
409 2003-02-25  Phil Edwards  <pme@gcc.gnu.org>
410
411         * docs/doxygen/Intro.3:  Update with new (proper) names.
412         * docs/doxygen/TODO:  Update.
413         * docs/doxygen/run_doxygen:  More comments, fix up man pages.
414         Fake entries for standard typedefs.
415         * docs/doxygen/user.cfg.in:  Turn INLINE_INHERITED_MEMB back on.
416         * docs/html/documentation.html:  Top-level man page is now called
417         C++Intro.
418         * include/std/std_limits.h:  Doxygenate.
419
420 2003-02-25  Scott Snyder  <snyder@fnal.gov>
421
422         PR libstdc++/9811
423         * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
424         Correct documentation.
425         * include/bits/stl_multimap.h (lower_bound, upper_bound,
426         equal_range): Likewise.
427
428 2003-02-24  Paolo Carlini  <pcarlini@unitus.it>
429
430         PR libstdc++/9825
431         * src/fstream.cc
432         (basic_filebuf<char/wchar_t>::_M_underflow_common): When
433         __bump is true (uflow), always increment the read pointer
434         (_M_in_cur) before returning successfully.
435         * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
436
437 2003-02-24  Paolo Carlini <pcarlini@unitus.it>
438             Nathan Myers <ncm@cantrip.org>
439
440         PR libstdc++/9404, PR libstdc++/9701 (partial)
441         (aka pptr == epptr implies overflow)
442         * include/bits/fstream.tcc (_M_allocate_internal_buffer):
443         Consistently, _M_out_end points to the end of the buffer just
444         created.
445         (overflow): Tweak to use _M_out_buf_size().
446         (_M_convert_to_external): The role of the old _M_out_end is
447         now played by _M_out_lim.
448         (_M_really_overflow): Likewise.
449         (seekoff): Likewise.
450         (setbuf): _M_out_end points to the end of the external buffer.
451         * include/bits/sstream.tcc (overflow): Rewrote, taking into
452         account the resolution of DR 169 (TC).
453         (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
454         (seekpos): Use _M_string.capacity(); tweak.
455         * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
456         * include/std/std_fstream.h (sync): The role of the old
457         _M_out_end is now played by _M_out_lim.
458         (_M_set_indeterminate): Use _M_set_determinate.
459         (_M_set_determinate): _M_out_end is now _M_out_lim.
460         (_M_is_indeterminate): Likewise.
461         * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
462         (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
463         which have the information readily available as _M_string.capacity();
464         for ate and app modes, pass the string size to _M_really_sync.
465         (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
466         point to the end of the buffer (i.e., epptr) and to the string end,
467         respectively.
468         * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
469         which points to the right limit of the used put area.
470         (_M_out_cur_move): The role of the old _M_out_end is now played
471         by _M_out_lim.
472         (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
473         _M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
474         of the standard.
475         (basic_streambuf()): Initialize _M_out_lim too.
476         * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
477         * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
478         * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
479
480 2003-02-24  Benjamin Kosnik  <bkoz@redhat.com>
481
482         * testsuite/27_io/ios_base_storage.cc (main): Call
483         set_memory_limits.
484
485 2003-02-21  Jerry Quinn  <jlquinn@optonline.net>
486
487         * include/bits/locale_facets.tcc (_M_convert_float): Replace
488         numpunct facet accesses with data from __locale_cache.
489
490 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
491
492         * docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
493         * docs/html/faq/index.txt:  Regenerate.
494
495 2003-02-20  Phil Edwards  <pme@gcc.gnu.org>
496
497         * config/linker-map.gnu:  Also export locking symbols needed for the
498         generic atomicity.h case.
499
500 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
501
502         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
503         config.status.
504         * configure: Rebuilt.
505
506 2003-02-19  Paolo Carlini  <pcarlini@unitus.it>
507
508         * include/bits/sstream.tcc (overflow): According to
509         27.7.1.3, p5, actual output is performed by sputc(c).
510
511 2003-02-19  Phil Edwards  <pme@gcc.gnu.org>
512
513         PR libstdc++/9582
514         * include/bits/stl_alloc.h:  Remove all traces of assert().
515
516 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
517
518         * include/std/std_sstream.h (str()): the size of the
519         current string may be different from the initial one
520         whenever _M_out_end > _M_out_beg.
521         * testsuite/27_io/stringbuf_members.cc (test07): Add.
522
523 2003-02-18  Paolo Carlini  <pcarlini@unitus.it>
524
525         PR libstdc++/9582
526         * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
527
528 2003-02-17  Benjamin Kosnik  <bkoz@redhat.com>
529
530         * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
531         * testsuite/27_io/ios_members.cc (test03): New.
532
533 2003-02-17  Jerry Quinn  <jlquinn@optonline.net>
534
535         * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
536         (basic_ios::_M_cache_facets): Move into above.
537         * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
538         cache.
539         (basic_ios::imbue): Force locale cache to be built.
540         (basic_ios::_M_init): Create and initialize locale cache.
541         * include/bits/ios_base.h (__locale_cache_base): Declare.
542         (ios_base::_M_locale_cache): New.
543         (ios_base::_M_cache): Define.
544         * include/bits/locale_facets.h: (__num_base): Fix comment.  Add
545         _S_end.
546         (__locale_cache_base,__locale_cache<_CharT>):  New classes.
547         (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
548         * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
549         cache literal string, grouping flag, thousands separator.
550         (__locale_cache<_CharT>::__locale_cache): New.
551         (__locale_cache<_CharT>::_M_init): New.
552         * src/ios.cc: Clear _M_locale_cache in constructor.
553         * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
554         New.
555
556 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
557
558         * src/locale-inst.cc: Do not include <cassert>.
559         * src/locale.cc: Likewise.
560
561 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
562
563         PR libstdc++/9580
564         * include/std/std_fstream.h: Declare underflow and uflow
565         specializations, change generic definitions to do nothing.
566         * src/fstream.cc: Add underflow and uflow specializations.
567
568 2003-02-17  Paolo Carlini  <pcarlini@unitus.it>
569
570         PR libstdc++/9169
571         * include/bits/fstream.tcc (_M_convert_to_external):
572         Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
573         * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
574
575 2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>
576
577         * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
578         * include/bits/basic_ios.tcc: Guard use of extern template.
579         * include/std/std_iomanip.h: Same.
580         * include/bits/streambuf.tcc: Same.
581         * include/bits/stl_alloc.h: Same.
582         * include/bits/locale_facets.tcc: Same.
583         * include/bits/ostream.tcc: Same.
584         * include/bits/istream.tcc: Same.
585         * include/bits/fstream.tcc: Same.
586         * include/bits/basic_string.tcc: Same.
587
588 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
589
590         * include/bits/ostream.tcc (sentry::sentry): Improve
591         performance-wise the fix for libstdc++/9563.
592
593 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
594
595         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
596         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
597         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
598         when we don't have static mutex initialization.
599         (__exchange_and_add):  Use _Atomic_add_mutex_once.
600         * src/misc-inst.cc:  Definitions of all the above.
601
602 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
603
604         PR libstdc++/9563
605         * include/bits/ostream.tcc (sentry::sentry): Check
606         the state of the stream after the preparation.
607         * testsuite/27_io/ostream_sentry.cc (test02): Add.
608
609 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
610
611         * include/Makefile.am (stamp-std-precompile): Add rule.
612         * include/Makefile.in: Regenerated.
613         
614 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
615            Benjamin Kosnik  <benjamin@redhat.com>
616         
617         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
618         Add indexes into this array.
619         (__num_base::_S_atoms): To _S_atoms_in.
620         (num_put::_M_insert): Rename to _M_pad.
621         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
622         (num_put::_M_widen_int): Rename to _M_group_int.
623         (num_put::_M_widen_float): Rename to _M_group_float.    
624         * include/bits/locale_facets.tcc (__int_to_char): New inline
625         function and adapter functions.
626         (num_put::_M_group_int): Streamline.
627         (num_put::_M_group_float): Streamline.  
628         (num_put::_M_convert_int): Remove unused parameter names. Choose
629         large enough buffer for text.  Use __int_to_char instead of
630         __convert_from_v.  Formatted text is now at the end of the buffer.
631         (num_put::_M_convert_float): Preliminary fixups.
632         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
633         (__int_to_char<unsigned long long>): Same.
634         (__int_to_char<char, unsigned long>): New.
635         (__int_to_char<char, unsigned long long>): New.
636         (__int_to_char<wchar_t, unsigned long>): New.
637         (__int_to_char<wchar_t, unsigned long long>): New.
638         
639 2003-02-11  Scott Snyder  <snyder@fnal.gov>
640
641         PR libstdc++/9659
642         * include/bits/fstream.tcc (seekoff): Avoid operator+
643         for pos_type.
644
645 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
646
647         PR libstdc++/9320
648         * include/ext/stdio_filebuf.h
649         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
650         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
651         Change to take a __size parameter of type size_t, not
652         of type (template parameter dependent) int_type.
653         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
654         size vars to size_t.
655         * testsuite/ext/stdio_filebuf.cc: Add.
656
657 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
658             Petur Runolfsson  <peturr02@ru.is>
659
660         PR libstdc++/9318
661         * include/bits/streambuf.tcc (__copy_streambufs):
662         Don't conditionalize the copy to __testput.
663         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
664
665 2002-02-11  DJ Delorie  <dj@redhat.com>
666
667         * acinclude.m4: Check for native targets that can't link at
668         this point in the build.
669         * aclocal.m4: Regenerate.
670         * configure: Regenerate.
671
672 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
673
674         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
675         Correct alignment.
676         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
677         lock.
678
679 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
680
681         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
682         unsigned char platforms.
683
684 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
685
686         PR libstdc++/9562
687         * include/std/std_istream.h
688         (basic_istream::sentry::operator bool()): Make const.
689         * include/std/std_ostream.h
690         (basic_ostream::sentry::operator bool()): Likewise.
691         * testsuite/27_io/istream_sentry.cc (test03): Add.
692         * testsuite/27_io/ostream_sentry.cc: Add.
693
694 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
695
696         PR libstdc++/9548
697         Implement resolution of DR 231 (Ready)
698         * include/bits/locale_facets.h (__num_base::_S_format_float):
699         Change declaration: return void, remove __prec parameter.
700         * src/locale.cc (__num_base::_S_format_float): Implement
701         resolution of DR 231.
702         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
703         Tweak uses. Check for negative precision.
704         * testsuite/22_locale/num_put/put/char/6.cc: Add
705         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
706
707 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
708
709         * config/io/basic_file_libio.h: Fixups.
710         * config/io/c_io_libio.h: Same.
711         * libio/Makefile.am: Same.
712         * libio/Makefile.in: Regenerated.
713         
714 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
715
716         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
717         Explicitly use the "C" locale.
718         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
719         
720 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
721
722         DR 75
723         DR 305
724         PR libstdc++/9028 (partial)
725         PR libstdc++/9224
726         PR libstdc++/9246
727         PR libstdc++/9247
728
729         * src/codecvt.cc
730         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
731         codecvt<wchar_t, char, mbstate_t>::do_length,
732         codecvt<wchar_t, char, mbstate_t>::do_max_length):
733         Move...
734         * config/locale/generic/codecvt_members.cc:  ...here.
735         * config/locale/gnu/codecvt_members.cc:  ...and here.
736
737         * config/locale/generic/codecvt_members.cc,
738         * config/locale/gnu/codecvt_members.cc
739         (codecvt<wchar_t, char, mbstate_t>::do_encoding
740         codecvt<wchar_t, char, mbstate_t>::do_in,
741         codecvt<wchar_t, char, mbstate_t>::do_length,
742         codecvt<wchar_t, char, mbstate_t>::do_max_length,
743         codecvt<wchar_t, char, mbstate_t>::do_out):
744         New implementation that handles stateless encodings,
745         including UTF-8.
746
747         * config/locale/generic/codecvt_members.cc,
748         * config/locale/gnu/codecvt_members.cc,
749         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
750         * include/bits/codecvt.h,
751         * src/codecvt.cc
752         (codecvt::length, codecvt::do_length):
753         Change type of first argument of length and do_length from
754         'const state_type&' to 'state_type&' according to DR 75.
755
756         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
757         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
758         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
759         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
760         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
761         Cleanup and check for correct return value from encoding
762         for "C" locale.
763         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
764         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
765         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
766         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
767         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
768         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
769         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
770         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
771         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
772         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
773         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
774         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
775         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
776         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
777         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
778         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
779         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
780         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
781         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
782         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
783         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
784         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
785         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
786         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
787         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
788         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
789         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
790         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
791         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
792         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
793         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
794         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
795         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
796         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
797         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
798         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
799         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
800
801 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
802
803         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
804         (money_put::do_put): Same.
805
806 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
807
808         * include/bits/ios_base.h (ios_base): Document reserved storage.
809
810         * include/bits/locale_facets.h: (struct __pad): Comment on
811         implementation.
812         (__verify_grouping): Same.
813         (__add_grouping): Same.         
814         * include/bits/locale_facets.tcc (__verify_grouping): Move
815         comments to declaration.
816         (__add_grouping): Same.
817         
818         * include/bits/locale_facets.tcc: 
819         (__write<_CharT, _OutIter>): New function.
820         (__write<_CharT>): New function specialization.
821         (num_put::_M_insert): Remove explicit loop over iterator.  Use
822         __write.
823         (num_put::_M_widen_float): Remove __basefield. 
824         (num_put::_M_widen_int): Move __basefield to within grouping block.
825         
826         * include/bits/streambuf_iterator.h: Include <streambuf>.
827         (ostreambuf_iterator::_M_put): Add.
828
829 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
830
831         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
832
833 2003-02-04  Nathan Myers  <ncm@cantrip.org>
834
835         * testsuite/25_algorithms/min_max.cc (test02): Add.
836             
837 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
838         
839         PR libstdc++/9439, PR libstdc++/9425
840         * config/io/basic_file_stdio.cc
841         (__basic_file<char>::seekoff, seekpos): Return -1L if
842         fseek fails.
843         * include/bits/fstream.tcc (basic_filebuf::seekoff):
844         Check _M_file.seekoff return value; always return
845         pos_type(off_type(-1)) in case of failure.
846         (basic_filebuf::pbackfail): Check this->seekoff return
847         value and return traits_type::eof() in case of failure.  
848         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
849
850 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
851
852         * include/std/std_ostream.h (ostream::_M_write): Declare.       
853         * ostream.tcc (ostream::_M_write): Define.
854         (basic_ostream::write): Use it.
855         (operator<<(basic_ostream, _CharT)): Ditto.
856         (operator<<(basic_ostream, char)): Ditto.
857         (operator<<(basic_ostream, _CharT*)): Ditto.
858         (operator<<(basic_ostream, char*)): Ditto.
859         (operator<<(basic_ostream, basic_string)): Ditto.
860
861 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
862
863         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
864
865 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
866
867         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
868         add HTML comment about updating links if numbering changes.
869
870 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
871
872         PR libstdc++/9538
873         * include/bits/streambuf.tcc (sputbackc): Access
874         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
875         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
876
877 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
878
879         PR libstdc++/9507
880         * include/bits/fstream.tcc (open): If the 'ate' repositioning
881         operation fails, calls close _and_ returns a null pointer
882         to indicate failure (27.8.1.3,4).
883         * testsuite/27_io/filebuf_members.cc (test_06): Add.
884
885 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
886
887         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
888
889 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
890
891         * docs/html/27_io/howto.html: New section on stdio_filebuf.
892         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
893         * docs/html/documentation.html: Regenerate.
894
895 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
896
897         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
898         * docs/html/17_intro/porting.html: Regenerate.
899
900 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
901             Phil Edwards  <pme@gcc.gnu.org>
902
903         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
904         numeric_limits for bits-per-word values.
905         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
906         Use __builtin_popcountl instead.
907         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
908         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
909         Use __builtin_ctzl instead.
910         (_S_bit_count, _S_first_one):  Remove.
911         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
912         * src/Makefile.am (sources):  Remove bitset.cc.
913         * src/bitset.cc:  Delete file.
914         * src/Makefile.in:  Regenerate.
915
916 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
917
918         PR libstdc++/9527, PR libstdc++/8713
919         * docs/html/install.html:  Mention glibc version requirement.
920         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
921         with 3.2.1+ (formatting bugfixes).
922         * docs/html/faq/index.txt:  Regenerate.
923
924 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
925
926         PR libstdc++/9234
927         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
928         operator.
929
930         * include/bits/valarray_before.h (__not_equal_to): Use != instead
931         of ==.
932
933         * testsuite/26_numerics/valarray_operators.cc: New test.
934
935 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
936
937         * docs/html/faq/index.html:  Correct link to libg++ information.
938         * docs/html/faq/index.txt:  Regenerated.
939
940 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
941             Benjamin Kosnik  <bkoz@redhat.com>
942
943         Const correctness issue:
944         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
945         * include/bits/locale_classes.h
946         (locale::_Impl::_M_facets): Change type to const facet**.
947         (locale::_Impl::_M_install_facet): Change declaration to
948         take const facet*.
949         (locale::facet::_M_references): Make mutable.
950         (locale::facet::_M_add_reference): Declare const.
951         (locale::facet::_M_remove_reference): Likewise.
952         * include/bits/locale_facets.tcc
953         (use_facet(const locale&)): Tweak for const facet** _M_facets.
954         (has_facet(const locale&)): Likewise.
955         * src/locale.cc
956         (locale::facet::_M_add_reference): Adjust definition.
957         (locale::facet::_M_remove_reference): Likewise.
958         * src/localename.cc
959         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
960         const facet** _M_facets.
961         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
962         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
963         (locale::_Impl::_M_install_facet): Adjust definition to take
964         const facet* and for const facet** _M_facets.
965         * testsuite/22_locale/locale/cons/8.cc: Add.
966
967 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
968
969         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
970         Use __FLT_HAS_INIFINITY__ to initialize.
971         (numeric_limits<float>::has_quiet_NaN): Likewise.
972         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
973         to initialize.
974         (numeric_limits<double>::has_quiet_NaN): Likewise.
975         (numeric_limits<long double>::has_infinity): Use
976         __LDBL_HAS_INIFINITY__ to initialize.
977         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
978
979 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
980
981         PR c++/9433
982         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
983         with bases which are very ambiguous.
984
985 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
986
987         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
988         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
989         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
990         * src/Makefile.in: Regenerate.
991         * libsupc++/Makefile.in: Regenerate.
992
993 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
994
995         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
996         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
997         version_specific_libs is enabled.
998         * aclocal.m4, configure: Rebuilt.
999
1000 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
1001
1002         * include/bits/valarray_meta.h: Remove, split into ...
1003         * include/bits/valarray_before.h: ... this, and ...
1004         * include/bits/valarray_after.h: ... this.
1005         * include/std/std_valarray.h: Adjust.
1006         * include/Makefile.am (bits_headers): Adjust.
1007         * include/Makefile.in: Regenerate.
1008
1009 2003-01-24  Andreas Schwab  <schwab@suse.de>
1010
1011         * config/linker-map.gnu: Fix for size_t variance.
1012
1013 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
1014
1015         PR libstdc++/9322
1016         * include/std/std_streambuf.h
1017         (basic_streambuf::basic_streambuf,
1018         basic_streambuf::~basic_streambuf,
1019         basic_streambuf::getloc, basic_streambuf::imbue):
1020         Remove _M_buf_locale_init
1021         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
1022         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
1023         * testsuite/27_io/streambuf_members.cc (test08):  Add.
1024         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
1025
1026 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1027
1028         Revert include ordering.
1029         * config/locale/generic/c_locale.h: Add include guards.
1030         * config/locale/gnu/c_locale.h: Same.
1031         * include/bits/locale_classes.h: Remove cctype include.
1032         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
1033         * include/std/std_fstream.h: Remove streambuf include.
1034         * include/std/std_sstream.h: Remove streambuf include.
1035         
1036 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
1037
1038         * configure.in (libtool_VERSION): To 6:0:0.
1039         * configure: Regenerated.
1040         * config/linker-map.gnu: Clean.
1041         
1042         * src/misc-inst.cc: Remove instantiations.
1043
1044         * include/bits/stl_alloc.h (__malloc_alloc_template): 
1045         To __malloc_alloc.
1046         (__default_alloc_template): To __pool_alloc.
1047         * src/stl-inst.cc: Same.
1048         * include/backward/alloc.h: Update.
1049         * testsuite/ext/allocators.cc: Update.
1050         
1051         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
1052         really try to remove these if possible.
1053         * src/locale.cc (std): Same.
1054
1055         * testsuite/abi_check.cc (check_version): Add.
1056
1057 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
1058             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
1059             Mark Mitchell  <mark@codesourcery.com>
1060         
1061         PR libstdc++/9269
1062         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
1063         (basic_filebuf::underflow): Declare.
1064         Move definitions.
1065
1066 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
1067
1068         * include/bits/locale_facets.h: Move non-facet classes requiring
1069         <string> to...  
1070         * include/bits/locale_classes.h: New.  
1071         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
1072         * include/bits/Makefile.in: Regenerate.
1073
1074         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
1075         * config/locale/gnu/c_locale.h: ...here.
1076         * config/locale/generic/c_locale.h: Same.
1077         
1078         * include/bits/locale_facets.tcc: Move declarations to...
1079         * include/bits/locale_facets.h: ...here.
1080         * include/bits/basic_ios.h: Tweak includes accordingly.
1081         * include/std/std_sstream.h: Add streambuf include.
1082         * include/std/std_fstream.h: Ditto.
1083         * include/std/std_locale.h: Add locale_classes.h include.
1084         * include/std/std_iosfwd.h: Tweak.
1085         * src/concept-inst.cc: Add iterator include.
1086
1087         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
1088         bits as unexported in the future.
1089         
1090 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
1091
1092         Reshuffle 22_locale testsuite.
1093         * 22_locale/(codecvt.cc money_get.cc
1094         codecvt_members_char_char.cc money_get_members_char.cc
1095         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
1096         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
1097         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
1098         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
1099         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
1100         money_put_members_char.cc ctor_copy_dtor.cc
1101         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
1102         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
1103         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
1104         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
1105         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
1106         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
1107         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
1108         operators.cc ctype_widen_char.cc static_members.cc
1109         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
1110         global_templates.cc time_get_members_wchar_t.cc, members.cc,
1111         time_put.cc, messages_byname.cc, time_put_members_char.cc,
1112         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc): 
1113         Splint up into individual test cases... 
1114         * 22_locale/codecvt/1.cc: New.
1115         * 22_locale/codecvt/2.cc: New.
1116         * 22_locale/codecvt/always_noconv/char/1.cc: New.
1117         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
1118         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
1119         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
1120         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
1121         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
1122         * 22_locale/codecvt/encoding/char/1.cc: New.
1123         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
1124         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
1125         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
1126         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
1127         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
1128         * 22_locale/codecvt/in/char/1.cc: New.
1129         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
1130         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
1131         * 22_locale/codecvt/in/wchar_t/1.cc: New.
1132         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
1133         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
1134         * 22_locale/codecvt/length/char/1.cc: New.
1135         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
1136         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
1137         * 22_locale/codecvt/length/wchar_t/1.cc: New.
1138         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
1139         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
1140         * 22_locale/codecvt/max_length/char/1.cc: New.
1141         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
1142         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
1143         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
1144         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
1145         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
1146         * 22_locale/codecvt/out/char/1.cc: New.
1147         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
1148         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
1149         * 22_locale/codecvt/out/wchar_t/1.cc: New.
1150         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
1151         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
1152         * 22_locale/codecvt/unicode/char.cc: New.
1153         * 22_locale/codecvt/unicode/wchar_t.cc: New.
1154         * 22_locale/codecvt/unshift/char/1.cc: New.
1155         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
1156         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
1157         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
1158         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
1159         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
1160         * 22_locale/collate/1.cc: New.
1161         * 22_locale/collate/2.cc: New.
1162         * 22_locale/collate/compare/char/1.cc: New.
1163         * 22_locale/collate/compare/char/2.cc: New.
1164         * 22_locale/collate/compare/char/wrapped_env.cc: New.
1165         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
1166         * 22_locale/collate/compare/wchar_t/1.cc: New.
1167         * 22_locale/collate/compare/wchar_t/2.cc: New.
1168         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
1169         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
1170         * 22_locale/collate/hash/char/1.cc: New.
1171         * 22_locale/collate/hash/char/2.cc: New.
1172         * 22_locale/collate/hash/char/wrapped_env.cc: New.
1173         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
1174         * 22_locale/collate/hash/wchar_t/1.cc: New.
1175         * 22_locale/collate/hash/wchar_t/2.cc: New.
1176         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
1177         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
1178         * 22_locale/collate/transform/char/2.cc: New.
1179         * 22_locale/collate/transform/char/wrapped_env.cc: New.
1180         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
1181         * 22_locale/collate/transform/wchar_t/2.cc: New.
1182         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
1183         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
1184         * 22_locale/collate_byname/1.cc: New.
1185         * 22_locale/ctype/1.cc: New.
1186         * 22_locale/ctype/2.cc: New.
1187         * 22_locale/ctype/cons/char/1.cc: New.
1188         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
1189         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
1190         * 22_locale/ctype/is/char/1.cc: New.
1191         * 22_locale/ctype/is/char/2.cc: New.
1192         * 22_locale/ctype/is/char/3.cc: New.
1193         * 22_locale/ctype/is/char/wrapped_env.cc: New.
1194         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
1195         * 22_locale/ctype/is/wchar_t/1.cc: New.
1196         * 22_locale/ctype/is/wchar_t/2.cc: New.
1197         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
1198         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
1199         * 22_locale/ctype/narrow/char/1.cc: New.
1200         * 22_locale/ctype/narrow/char/2.cc: New.
1201         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
1202         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
1203         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
1204         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
1205         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
1206         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
1207         * 22_locale/ctype/scan/char/1.cc: New.
1208         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
1209         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
1210         * 22_locale/ctype/scan/wchar_t/1.cc: New.
1211         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
1212         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
1213         * 22_locale/ctype/to/char/1.cc: New.
1214         * 22_locale/ctype/to/char/wrapped_env.cc: New.
1215         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
1216         * 22_locale/ctype/to/wchar_t/1.cc: New.
1217         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
1218         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
1219         * 22_locale/ctype/widen/char/1.cc: New.
1220         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
1221         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
1222         * 22_locale/ctype/widen/wchar_t/1.cc: New.
1223         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
1224         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
1225         * 22_locale/facet/1.cc: New.
1226         * 22_locale/facet/2.cc: New.
1227         * 22_locale/global_templates/1.cc: New.
1228         * 22_locale/locale/cons/1.cc: New.
1229         * 22_locale/locale/cons/2.cc: New.
1230         * 22_locale/locale/cons/3.cc: New.
1231         * 22_locale/locale/cons/4.cc: New.
1232         * 22_locale/locale/cons/5.cc: New.
1233         * 22_locale/locale/cons/6.cc: New.
1234         * 22_locale/locale/cons/7.cc: New.
1235         * 22_locale/locale/global_locale_objects/1.cc: New.
1236         * 22_locale/locale/global_locale_objects/2.cc: New.
1237         * 22_locale/locale/global_locale_objects/3.cc: New.
1238         * 22_locale/locale/operations/1.cc: New.
1239         * 22_locale/locale/operations/2.cc: New.
1240         * 22_locale/messages/1.cc: New.
1241         * 22_locale/messages/2.cc: New.
1242         * 22_locale/messages/members/char/1.cc: New.
1243         * 22_locale/messages/members/char/2.cc: New.
1244         * 22_locale/messages/members/char/3.cc: New.
1245         * 22_locale/messages/members/char/wrapped_env.cc: New.
1246         * 22_locale/messages/members/char/wrapped_locale.cc: New.
1247         * 22_locale/messages_byname/1.cc: New.
1248         * 22_locale/money_get/1.cc: New.
1249         * 22_locale/money_get/2.cc: New.
1250         * 22_locale/money_get/get/char/1.cc: New.
1251         * 22_locale/money_get/get/char/2.cc: New.
1252         * 22_locale/money_get/get/char/3.cc: New.
1253         * 22_locale/money_get/get/char/4.cc: New.
1254         * 22_locale/money_get/get/char/5.cc: New.
1255         * 22_locale/money_get/get/char/6.cc: New.
1256         * 22_locale/money_get/get/char/7.cc: New.
1257         * 22_locale/money_get/get/char/8.cc: New.
1258         * 22_locale/money_get/get/char/wrapped_env.cc: New.
1259         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
1260         * 22_locale/money_get/get/wchar_t/1.cc: New.
1261         * 22_locale/money_get/get/wchar_t/2.cc: New.
1262         * 22_locale/money_get/get/wchar_t/3.cc: New.
1263         * 22_locale/money_get/get/wchar_t/4.cc: New.
1264         * 22_locale/money_get/get/wchar_t/5.cc: New.
1265         * 22_locale/money_get/get/wchar_t/6.cc: New.
1266         * 22_locale/money_get/get/wchar_t/7.cc: New.
1267         * 22_locale/money_get/get/wchar_t/8.cc: New.
1268         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
1269         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
1270         * 22_locale/money_put/1.cc: New.
1271         * 22_locale/money_put/2.cc: New.
1272         * 22_locale/money_put/put/char/1.cc: New.
1273         * 22_locale/money_put/put/char/2.cc: New.
1274         * 22_locale/money_put/put/char/3.cc: New.
1275         * 22_locale/money_put/put/char/4.cc: New.
1276         * 22_locale/money_put/put/char/5.cc: New.
1277         * 22_locale/money_put/put/char/6.cc: New.
1278         * 22_locale/money_put/put/char/wrapped_env.cc: New.
1279         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
1280         * 22_locale/money_put/put/wchar_t/1.cc: New.
1281         * 22_locale/money_put/put/wchar_t/2.cc: New.
1282         * 22_locale/money_put/put/wchar_t/3.cc: New.
1283         * 22_locale/money_put/put/wchar_t/4.cc: New.
1284         * 22_locale/money_put/put/wchar_t/5.cc: New.
1285         * 22_locale/money_put/put/wchar_t/6.cc: New.
1286         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
1287         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
1288         * 22_locale/moneypunct/1.cc: New.
1289         * 22_locale/moneypunct/2.cc: New.
1290         * 22_locale/moneypunct/3.cc: New.
1291         * 22_locale/moneypunct/members/char/1.cc: New.
1292         * 22_locale/moneypunct/members/char/2.cc: New.
1293         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
1294         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
1295         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
1296         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
1297         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
1298         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
1299         * 22_locale/moneypunct_byname/1.cc: New.
1300         * 22_locale/num_get/1.cc: New.
1301         * 22_locale/num_get/2.cc: New.
1302         * 22_locale/num_get/get/char/1.cc: New.
1303         * 22_locale/num_get/get/char/2.cc: New.
1304         * 22_locale/num_get/get/char/3.cc: New.
1305         * 22_locale/num_get/get/char/4.cc: New.
1306         * 22_locale/num_get/get/char/5.cc: New.
1307         * 22_locale/num_get/get/char/6.cc: New.
1308         * 22_locale/num_get/get/char/wrapped_env.cc: New.
1309         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
1310         * 22_locale/num_get/get/wchar_t/1.cc: New.
1311         * 22_locale/num_get/get/wchar_t/2.cc: New.
1312         * 22_locale/num_get/get/wchar_t/3.cc: New.
1313         * 22_locale/num_get/get/wchar_t/4.cc: New.
1314         * 22_locale/num_get/get/wchar_t/5.cc: New.
1315         * 22_locale/num_get/get/wchar_t/6.cc: New.
1316         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
1317         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
1318         * 22_locale/num_put/1.cc: New.
1319         * 22_locale/num_put/2.cc: New.
1320         * 22_locale/num_put/put/char/1.cc: New.
1321         * 22_locale/num_put/put/char/2.cc: New.
1322         * 22_locale/num_put/put/char/3.cc: New.
1323         * 22_locale/num_put/put/char/4.cc: New.
1324         * 22_locale/num_put/put/char/5.cc: New.
1325         * 22_locale/num_put/put/char/wrapped_env.cc: New.
1326         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
1327         * 22_locale/num_put/put/wchar_t/1.cc: New.
1328         * 22_locale/num_put/put/wchar_t/2.cc: New.
1329         * 22_locale/num_put/put/wchar_t/3.cc: New.
1330         * 22_locale/num_put/put/wchar_t/4.cc: New.
1331         * 22_locale/num_put/put/wchar_t/5.cc: New.
1332         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
1333         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
1334         * 22_locale/numpunct/1.cc: New.
1335         * 22_locale/numpunct/2.cc: New.
1336         * 22_locale/numpunct/members/char/1.cc: New.
1337         * 22_locale/numpunct/members/char/2.cc: New.
1338         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
1339         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
1340         * 22_locale/numpunct/members/wchar_t/1.cc: New.
1341         * 22_locale/numpunct/members/wchar_t/2.cc: New.
1342         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
1343         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
1344         * 22_locale/numpunct_byname/1.cc: New.
1345         * 22_locale/numpunct_byname/2.cc: New.
1346         * 22_locale/time_get/1.cc: New.
1347         * 22_locale/time_get/2.cc: New.
1348         * 22_locale/time_get/date_order/char/1.cc: New.
1349         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
1350         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
1351         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
1352         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
1353         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
1354         * 22_locale/time_get/get_date/char/1.cc: New.
1355         * 22_locale/time_get/get_date/char/2.cc: New.
1356         * 22_locale/time_get/get_date/char/3.cc: New.
1357         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
1358         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
1359         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
1360         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
1361         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
1362         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
1363         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
1364         * 22_locale/time_get/get_monthname/char/1.cc: New.
1365         * 22_locale/time_get/get_monthname/char/2.cc: New.
1366         * 22_locale/time_get/get_monthname/char/3.cc: New.
1367         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
1368         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
1369         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
1370         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
1371         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
1372         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
1373         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
1374         * 22_locale/time_get/get_time/char/1.cc: New.
1375         * 22_locale/time_get/get_time/char/2.cc: New.
1376         * 22_locale/time_get/get_time/char/3.cc: New.
1377         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
1378         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
1379         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
1380         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
1381         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
1382         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
1383         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
1384         * 22_locale/time_get/get_weekday/char/1.cc: New.
1385         * 22_locale/time_get/get_weekday/char/2.cc: New.
1386         * 22_locale/time_get/get_weekday/char/3.cc: New.
1387         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
1388         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
1389         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
1390         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
1391         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
1392         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
1393         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
1394         * 22_locale/time_get/get_year/char/1.cc: New.
1395         * 22_locale/time_get/get_year/char/3.cc: New.
1396         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
1397         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
1398         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
1399         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
1400         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
1401         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
1402         * 22_locale/time_put/1.cc: New.
1403         * 22_locale/time_put/2.cc: New.
1404         * 22_locale/time_put/put/char/1.cc: New.
1405         * 22_locale/time_put/put/char/10.cc: New.
1406         * 22_locale/time_put/put/char/2.cc: New.
1407         * 22_locale/time_put/put/char/3.cc: New.
1408         * 22_locale/time_put/put/char/4.cc: New.
1409         * 22_locale/time_put/put/char/5.cc: New.
1410         * 22_locale/time_put/put/char/6.cc: New.
1411         * 22_locale/time_put/put/char/7.cc: New.
1412         * 22_locale/time_put/put/char/8.cc: New.
1413         * 22_locale/time_put/put/char/9.cc: New.
1414         * 22_locale/time_put/put/char/wrapped_env.cc: New.
1415         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
1416         * 22_locale/time_put/put/wchar_t/1.cc: New.
1417         * 22_locale/time_put/put/wchar_t/10.cc: New.
1418         * 22_locale/time_put/put/wchar_t/2.cc: New.
1419         * 22_locale/time_put/put/wchar_t/3.cc: New.
1420         * 22_locale/time_put/put/wchar_t/4.cc: New.
1421         * 22_locale/time_put/put/wchar_t/5.cc: New.
1422         * 22_locale/time_put/put/wchar_t/6.cc: New.
1423         * 22_locale/time_put/put/wchar_t/7.cc: New.
1424         * 22_locale/time_put/put/wchar_t/8.cc: New.
1425         * 22_locale/time_put/put/wchar_t/9.cc: New.
1426         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
1427         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
1428
1429 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
1430
1431         * config/locale/generic/messages_members.h
1432         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
1433         unqualified members of base clasess.
1434
1435 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
1436             Jeffrey Oldham <oldham@codesourcery.com>
1437         
1438         * config/locale/gnu/messages_members.h: Use this-> to refer to
1439         unqualified members of base clasess.
1440         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
1441         * include/bits/codecvt.h: Likewise.
1442         * include/bits/deque.tcc: Likewise.
1443         * include/bits/fstream.tcc: Likewise.
1444         * include/bits/istream.tcc: Likewise.
1445         * include/bits/list.tcc: Likewise.
1446         * include/bits/locale_facets.h: Likewise.
1447         * include/bits/ostream.tcc: Likewise.
1448         * include/bits/sstream.tcc: Likewise.
1449         * include/bits/stl_bvector.h: Likewise.
1450         * include/bits/stl_deque.h: Likewise.
1451         * include/bits/stl_list.h: Likewise.
1452         * include/bits/stl_tree.h: Likewise.
1453         * include/bits/stl_vector.h: Likewise.
1454         * include/bits/vector.tcc: Likewise.
1455         * include/ext/ropeimpl.h: Likewise.
1456         * include/ext/stdio_filebuf.h: Likewise.
1457         * include/ext/stl_rope.h: Likewise.
1458         * include/std/std_fstream.h: Likewise.
1459         * include/std/std_sstream.h: Likewise.
1460         
1461 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
1462
1463         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
1464
1465 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
1466
1467         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
1468         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
1469         * aclocal.m4: Regenerate.
1470         * configure: Regenerate.
1471         * testsuite/Makefile.am (all-local): Add conditional rule to
1472         generate testsuite_wchar_t.
1473         * testsuite/Makefile.in: Regenerate.
1474         * testsuite/lib/libstdc++-v3-dg.exp
1475         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
1476         testsuite_wchar_t is not present in the build directory.
1477         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
1478         Remove setulimit bits.
1479         * testsuite/26_numerics/complex_value.cc: Set to noopts.
1480         * testsuite/Makefile.am (CLEANFILES): Add.
1481         * testsuite/Makefile.in: Regenerate.    
1482         
1483 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1484
1485         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
1486         __hppa__.
1487
1488 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
1489
1490         Further conform g++'s __vmi_class_type_info to the C++ ABI
1491         specification.
1492         * libsupc++/cxxabi.h
1493         (__vmi_class_type_info::__flags_masks): Remove enumerations not
1494         required by the specification.
1495
1496 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
1497
1498         Renames, namespaces for testsuite utilities.    
1499         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
1500         (gnu_allocator_tracker): Rename to allocation_tracker.
1501         (gnu_new_allocator): Rename to tracker_alloc.
1502         (__set_testsuite_memlimit): Rename to set_memory_limits.
1503         (gnu_assignment_operator): Rename to assignment_operator.
1504         (gnu_destructor): Rename to destructor.
1505         (gnu_copy_tracker): Rename to copy_tracker.
1506         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
1507         (run_tests_wrapped_locale): New.
1508         (run_tests_wrapped_env): New.
1509         * testsuite/testsuite_hooks.cc: Same.
1510         (class locale_data): Add.
1511         (class enviornment_variable): Add.
1512         (class not_found): Add.
1513         * testsuite/testsuite_allocator.h: Same.
1514         * testsuite/testsuite_allocator.cc: Same.
1515         * testsuite/23_containers/deque_ctor.cc
1516         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
1517         allocation_tracker. 
1518         Change gnu_new_allocator to tracker_alloc.
1519         Change gnu_counting_struct to counter.
1520         Change gnu_copy_tracker to copy_tracker.
1521         Change gnu_copy_constructor to copy_constructor.
1522         Change gnu_assignment_operator to assignment_operator.  
1523         Inject.
1524         * testsuite/23_containers/vector_capacity.cc: Same.
1525         * testsuite/23_containers/vector_ctor.cc (test01): Same.
1526         * testsuite/23_containers/list_modifiers.cc: Change
1527         gnu_copy_tracker to copy_tracker.
1528         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
1529         __set_testsuite_memlimit to set_memory_limits.
1530         * testsuite/21_strings/insert.cc (main): Same.
1531         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
1532         * testsuite/27_io/stringstream.cc: Same.
1533         * testsuite/27_io/stringbuf.cc: Same.
1534         * testsuite/27_io/streambuf.cc: Same.
1535         * testsuite/27_io/ostream.cc: Same.
1536         * testsuite/27_io/istream.cc: Same.
1537         * testsuite/27_io/fstream.cc: Same.
1538         * testsuite/lib/libstdc++-v3-dg.exp
1539         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
1540         three levels deeper in glob patterns.
1541
1542 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
1543
1544         * docs/doxygen/tables.html:  Finished now.
1545         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
1546         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
1547         comments.
1548
1549         * include/bits/deque.tcc, include/bits/stl_alloc.h,
1550         include/bits/stl_deque.h, include/bits/stl_list.h,
1551         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
1552         for 3.4 removal.
1553
1554 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
1555
1556         * configure.in: Revert.
1557         * configure: Regenerate.
1558
1559 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
1560
1561         * include/Makefile.am (install-data-local): Prepend
1562         $(DESTDIR) to destination paths in all (un)installation
1563         commands.  Use ${c_base_builddir} and ${std_builddir}
1564         as destination subdirectories to achieve consistency with
1565         preceding mkinstalldirs commands.  No effect because both
1566         variables contain "." only.
1567         * include/Makefile.in: Regenerate.
1568
1569 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
1570
1571         * include/Makefile.am (stamp-*): Add checks for existing stamps.
1572         * include/Makefile.in: Regenerate.
1573
1574         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
1575         * aclocal.m4: Regenerate.
1576
1577         * configure.in: Don't add new multi-do rules every time the
1578         directory is reconfigured.
1579         * configure: Regenerate.
1580         
1581 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
1582             Nathan Myers  <ncm@cantrip.org>
1583         
1584         * src/Makefile.am (stamp-debug): Clean.
1585         * src/Makefile.in: Regenerate.
1586         
1587 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
1588
1589         PR libstdc++/8707
1590         * Makefile.am (distclean-multi): Fix.
1591         * Makefile.in: Regenerate.
1592         
1593 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
1594
1595         * include/bits/locale_facets.h (messages): Move ctor, dtor
1596         definitions to..
1597         (__timepunct): Same.
1598         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
1599         definitions. Conditionalize for GNU systems.
1600         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
1601         definitions.
1602         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
1603         definitions. Conditionalize for GNU systems.
1604         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
1605         definitions.
1606         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
1607         * src/locale.cc: Define.
1608         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
1609         Use it.
1610         * config/locale/gnu/time_members.h: Use it.
1611         * config/locale/gnu/messages_members.h: Use it.
1612         * config/linker-map.gnu: Add locale::facets details.    
1613         * include/Makefile.am (target_headers_extra): Add time_members.h.
1614         * include/Makefile.in: Regenerate.
1615         * acinclude.m4: Export CTIME_H.
1616         * aclocal.m4: Regenerate.
1617         * configure: Regnerate.
1618
1619 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
1620
1621         * src/codecvt.cc
1622         (codecvt<char, char, mbstate_t>::do_in, do_out):
1623         Tweak parameters to avoid unused parameter warnings.
1624
1625 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
1626
1627         PR libstdc++/9151
1628         * include/bits/locale_facets.cc (num_put::_M_convert_float):
1629         Limit __prec to digits10 + 2, not digits10 + 1, taking into
1630         account the possibility of %{g,G} conversion specifiers
1631         inside _S_format_float.
1632         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
1633
1634 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1635
1636         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
1637         libstdc++-v3-list-sourcefiles): Additionally handle files one
1638         level deeper in glob patterns.
1639         
1640         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
1641         * testsuite/27_io/istream_extractor_arith/01.cc,
1642         testsuite/27_io/istream_extractor_arith/02.cc,
1643         testsuite/27_io/istream_extractor_arith/03.cc,
1644         testsuite/27_io/istream_extractor_arith/06.cc,
1645         testsuite/27_io/istream_extractor_arith/07.cc,
1646         testsuite/27_io/istream_extractor_arith/08.cc,
1647         testsuite/27_io/istream_extractor_arith/09.cc,
1648         testsuite/27_io/istream_extractor_arith/10.cc,
1649         testsuite/27_io/istream_extractor_arith/11.cc,
1650         testsuite/27_io/istream_extractor_arith/12.cc,
1651         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
1652         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
1653         sparc*-*-solaris2*.
1654
1655 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
1656
1657         PR libstdc++/9168
1658         * src/codecvt.cc
1659         (codecvt<char, char, mbstate_t>::do_in, do_out):
1660         Implement the resolution of DR19 (TC).
1661         * testsuite/22_locale/codecvt_members_char_char.cc
1662         (test01): Tweak.
1663
1664 2003-01-02  Jason Merrill  <jason@redhat.com>
1665
1666         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
1667         *__mem is also an output.
1668         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.