OSDN Git Service

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