OSDN Git Service

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