OSDN Git Service

2003-02-13 Paolo Carlini <pcarlini@unitus.it>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2003-02-13  Paolo Carlini  <pcarlini@unitus.it>
2
3         * include/bits/ostream.tcc (sentry::sentry): Improve
4         performance-wise the fix for libstdc++/9563.
5
6 2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
7
8         * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
9         (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
10         (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
11         when we don't have static mutex initialization.
12         (__exchange_and_add):  Use _Atomic_add_mutex_once.
13         * src/misc-inst.cc:  Definitions of all the above.
14
15 2003-02-12  Paolo Carlini  <pcarlini@unitus.it>
16
17         PR libstdc++/9563
18         * include/bits/ostream.tcc (sentry::sentry): Check
19         the state of the stream after the preparation.
20         * testsuite/27_io/ostream_sentry.cc (test02): Add.
21
22 2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>
23
24         * include/Makefile.am (stamp-std-precompile): Add rule.
25         * include/Makefile.in: Regenerated.
26         
27 2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
28            Benjamin Kosnik  <benjamin@redhat.com>
29         
30         * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
31         Add indexes into this array.
32         (__num_base::_S_atoms): To _S_atoms_in.
33         (num_put::_M_insert): Rename to _M_pad.
34         (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
35         (num_put::_M_widen_int): Rename to _M_group_int.
36         (num_put::_M_widen_float): Rename to _M_group_float.    
37         * include/bits/locale_facets.tcc (__int_to_char): New inline
38         function and adapter functions.
39         (num_put::_M_group_int): Streamline.
40         (num_put::_M_group_float): Streamline.  
41         (num_put::_M_convert_int): Remove unused parameter names. Choose
42         large enough buffer for text.  Use __int_to_char instead of
43         __convert_from_v.  Formatted text is now at the end of the buffer.
44         (num_put::_M_convert_float): Preliminary fixups.
45         * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
46         (__int_to_char<unsigned long long>): Same.
47         (__int_to_char<char, unsigned long>): New.
48         (__int_to_char<char, unsigned long long>): New.
49         (__int_to_char<wchar_t, unsigned long>): New.
50         (__int_to_char<wchar_t, unsigned long long>): New.
51         
52 2003-02-11  Scott Snyder  <snyder@fnal.gov>
53
54         PR libstdc++/9659
55         * include/bits/fstream.tcc (seekoff): Avoid operator+
56         for pos_type.
57
58 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
59
60         PR libstdc++/9320
61         * include/ext/stdio_filebuf.h
62         (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
63         stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
64         Change to take a __size parameter of type size_t, not
65         of type (template parameter dependent) int_type.
66         * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
67         size vars to size_t.
68         * testsuite/ext/stdio_filebuf.cc: Add.
69
70 2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
71             Petur Runolfsson  <peturr02@ru.is>
72
73         PR libstdc++/9318
74         * include/bits/streambuf.tcc (__copy_streambufs):
75         Don't conditionalize the copy to __testput.
76         * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
77
78 2002-02-11  DJ Delorie  <dj@redhat.com>
79
80         * acinclude.m4: Check for native targets that can't link at
81         this point in the build.
82         * aclocal.m4: Regenerate.
83         * configure: Regenerate.
84
85 2003-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
86
87         * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
88         Correct alignment.
89         (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
90         lock.
91
92 2003-02-07  Paolo Carlini  <pcarlini@unitus.it>
93
94         * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
95         unsigned char platforms.
96
97 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
98
99         PR libstdc++/9562
100         * include/std/std_istream.h
101         (basic_istream::sentry::operator bool()): Make const.
102         * include/std/std_ostream.h
103         (basic_ostream::sentry::operator bool()): Likewise.
104         * testsuite/27_io/istream_sentry.cc (test03): Add.
105         * testsuite/27_io/ostream_sentry.cc: Add.
106
107 2003-02-06  Paolo Carlini  <pcarlini@unitus.it>
108
109         PR libstdc++/9548
110         Implement resolution of DR 231 (Ready)
111         * include/bits/locale_facets.h (__num_base::_S_format_float):
112         Change declaration: return void, remove __prec parameter.
113         * src/locale.cc (__num_base::_S_format_float): Implement
114         resolution of DR 231.
115         * include/bits/locale_facets.tcc (num_put::_M_convert_float):
116         Tweak uses. Check for negative precision.
117         * testsuite/22_locale/num_put/put/char/6.cc: Add
118         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
119
120 2003-02-06  Peter Soetens  <peter.soetens@mech.kuleuven.ac.be>
121
122         * config/io/basic_file_libio.h: Fixups.
123         * config/io/c_io_libio.h: Same.
124         * libio/Makefile.am: Same.
125         * libio/Makefile.in: Regenerated.
126         
127 2003-02-06  Benjamin Kosnik  <bkoz@redhat.com>
128
129         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
130         Explicitly use the "C" locale.
131         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
132         
133 2003-02-06  Petur Runolfsson  <peturr02@ru.is>
134
135         DR 75
136         DR 305
137         PR libstdc++/9028 (partial)
138         PR libstdc++/9224
139         PR libstdc++/9246
140         PR libstdc++/9247
141
142         * src/codecvt.cc
143         (codecvt<wchar_t, char, mbstate_t>::do_encoding,
144         codecvt<wchar_t, char, mbstate_t>::do_length,
145         codecvt<wchar_t, char, mbstate_t>::do_max_length):
146         Move...
147         * config/locale/generic/codecvt_members.cc:  ...here.
148         * config/locale/gnu/codecvt_members.cc:  ...and here.
149
150         * config/locale/generic/codecvt_members.cc,
151         * config/locale/gnu/codecvt_members.cc
152         (codecvt<wchar_t, char, mbstate_t>::do_encoding
153         codecvt<wchar_t, char, mbstate_t>::do_in,
154         codecvt<wchar_t, char, mbstate_t>::do_length,
155         codecvt<wchar_t, char, mbstate_t>::do_max_length,
156         codecvt<wchar_t, char, mbstate_t>::do_out):
157         New implementation that handles stateless encodings,
158         including UTF-8.
159
160         * config/locale/generic/codecvt_members.cc,
161         * config/locale/gnu/codecvt_members.cc,
162         * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
163         * include/bits/codecvt.h,
164         * src/codecvt.cc
165         (codecvt::length, codecvt::do_length):
166         Change type of first argument of length and do_length from
167         'const state_type&' to 'state_type&' according to DR 75.
168
169         * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc:  Cleanup.
170         * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc:  New test.
171         * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc:  New test.
172         * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc:  New test.
173         * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
174         Cleanup and check for correct return value from encoding
175         for "C" locale.
176         * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc:  New test.
177         * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc:  New test.
178         * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc:  New test.
179         * testsuite/22_locale/codecvt/in/wchar_t/1.cc:  Cleanup.
180         * testsuite/22_locale/codecvt/in/wchar_t/2.cc:  New test.
181         * testsuite/22_locale/codecvt/in/wchar_t/3.cc:  New test.
182         * testsuite/22_locale/codecvt/in/wchar_t/4.cc:  New test.
183         * testsuite/22_locale/codecvt/in/wchar_t/5.cc:  New test.
184         * testsuite/22_locale/codecvt/in/wchar_t/6.cc:  New test.
185         * testsuite/22_locale/codecvt/in/wchar_t/7.cc:  New test.
186         * testsuite/22_locale/codecvt/in/wchar_t/8.cc:  New test.
187         * testsuite/22_locale/codecvt/in/wchar_t/9.cc:  New test.
188         * testsuite/22_locale/codecvt/length/char/1.cc:  Cleanup.
189         * testsuite/22_locale/codecvt/length/char/2.cc:  New test.
190         * testsuite/22_locale/codecvt/length/wchar_t/1.cc:  Cleanup.
191         * testsuite/22_locale/codecvt/length/wchar_t/2.cc:  New test.
192         * testsuite/22_locale/codecvt/length/wchar_t/3.cc:  New test.
193         * testsuite/22_locale/codecvt/length/wchar_t/4.cc:  New test.
194         * testsuite/22_locale/codecvt/length/wchar_t/5.cc:  New test.
195         * testsuite/22_locale/codecvt/length/wchar_t/6.cc:  New test.
196         * testsuite/22_locale/codecvt/length/wchar_t/7.cc:  New test.
197         * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc:  Cleanup.
198         * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc:  New test.
199         * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc:  New test.
200         * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc:  New test.
201         * testsuite/22_locale/codecvt/out/wchar_t/1.cc:  Cleanup.
202         * testsuite/22_locale/codecvt/out/wchar_t/2.cc:  New test.
203         * testsuite/22_locale/codecvt/out/wchar_t/3.cc:  New test.
204         * testsuite/22_locale/codecvt/out/wchar_t/4.cc:  New test.
205         * testsuite/22_locale/codecvt/out/wchar_t/5.cc:  New test.
206         * testsuite/22_locale/codecvt/out/wchar_t/6.cc:  New test.
207         * testsuite/22_locale/codecvt/out/wchar_t/7.cc:  New test.
208         * testsuite/22_locale/codecvt/unicode/1.cc:  New test.
209         * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc:  Cleanup.
210         * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc:  New test.
211         * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc:  New test.
212         * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc:  New test.
213
214 2003-02-05  Benjamin Kosnik  <bkoz@redhat.com>
215
216         * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
217         (money_put::do_put): Same.
218
219 2003-02-05  Jerry Quinn  <jlquinn@optonline.net>
220
221         * include/bits/ios_base.h (ios_base): Document reserved storage.
222
223         * include/bits/locale_facets.h: (struct __pad): Comment on
224         implementation.
225         (__verify_grouping): Same.
226         (__add_grouping): Same.         
227         * include/bits/locale_facets.tcc (__verify_grouping): Move
228         comments to declaration.
229         (__add_grouping): Same.
230         
231         * include/bits/locale_facets.tcc: 
232         (__write<_CharT, _OutIter>): New function.
233         (__write<_CharT>): New function specialization.
234         (num_put::_M_insert): Remove explicit loop over iterator.  Use
235         __write.
236         (num_put::_M_widen_float): Remove __basefield. 
237         (num_put::_M_widen_int): Move __basefield to within grouping block.
238         
239         * include/bits/streambuf_iterator.h: Include <streambuf>.
240         (ostreambuf_iterator::_M_put): Add.
241
242 2003-02-05  Paolo Carlini  <pcarlini@unitus.it>
243
244         * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
245
246 2003-02-04  Nathan Myers  <ncm@cantrip.org>
247
248         * testsuite/25_algorithms/min_max.cc (test02): Add.
249             
250 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
251         
252         PR libstdc++/9439, PR libstdc++/9425
253         * config/io/basic_file_stdio.cc
254         (__basic_file<char>::seekoff, seekpos): Return -1L if
255         fseek fails.
256         * include/bits/fstream.tcc (basic_filebuf::seekoff):
257         Check _M_file.seekoff return value; always return
258         pos_type(off_type(-1)) in case of failure.
259         (basic_filebuf::pbackfail): Check this->seekoff return
260         value and return traits_type::eof() in case of failure.  
261         * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
262
263 2003-02-04  Jerry Quinn  <jlquinn@optonline.net>
264
265         * include/std/std_ostream.h (ostream::_M_write): Declare.       
266         * ostream.tcc (ostream::_M_write): Define.
267         (basic_ostream::write): Use it.
268         (operator<<(basic_ostream, _CharT)): Ditto.
269         (operator<<(basic_ostream, char)): Ditto.
270         (operator<<(basic_ostream, _CharT*)): Ditto.
271         (operator<<(basic_ostream, char*)): Ditto.
272         (operator<<(basic_ostream, basic_string)): Ditto.
273
274 2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>
275
276         * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
277
278 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
279
280         * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
281         add HTML comment about updating links if numbering changes.
282
283 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
284
285         PR libstdc++/9538
286         * include/bits/streambuf.tcc (sputbackc): Access
287         this->gptr()[-1] only if _M_in_beg < _M_in_cur.
288         * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
289
290 2003-02-04  Paolo Carlini  <pcarlini@unitus.it>
291
292         PR libstdc++/9507
293         * include/bits/fstream.tcc (open): If the 'ate' repositioning
294         operation fails, calls close _and_ returns a null pointer
295         to indicate failure (27.8.1.3,4).
296         * testsuite/27_io/filebuf_members.cc (test_06): Add.
297
298 2003-02-04  Petur Runolfsson  <peturr02@ru.is>
299
300         * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
301
302 2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
303
304         * docs/html/27_io/howto.html: New section on stdio_filebuf.
305         * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
306         * docs/html/documentation.html: Regenerate.
307
308 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
309
310         * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
311         * docs/html/17_intro/porting.html: Regenerate.
312
313 2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
314             Phil Edwards  <pme@gcc.gnu.org>
315
316         * include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
317         numeric_limits for bits-per-word values.
318         (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
319         Use __builtin_popcountl instead.
320         (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
321         _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
322         Use __builtin_ctzl instead.
323         (_S_bit_count, _S_first_one):  Remove.
324         * config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
325         * src/Makefile.am (sources):  Remove bitset.cc.
326         * src/bitset.cc:  Delete file.
327         * src/Makefile.in:  Regenerate.
328
329 2003-02-03  Phil Edwards  <pme@gcc.gnu.org>
330
331         PR libstdc++/9527, PR libstdc++/8713
332         * docs/html/install.html:  Mention glibc version requirement.
333         * docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
334         with 3.2.1+ (formatting bugfixes).
335         * docs/html/faq/index.txt:  Regenerate.
336
337 2003-02-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
338
339         PR libstdc++/9234
340         * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
341         operator.
342
343         * include/bits/valarray_before.h (__not_equal_to): Use != instead
344         of ==.
345
346         * testsuite/26_numerics/valarray_operators.cc: New test.
347
348 2003-02-01  Phil Edwards  <pme@gcc.gnu.org>
349
350         * docs/html/faq/index.html:  Correct link to libg++ information.
351         * docs/html/faq/index.txt:  Regenerated.
352
353 2003-02-01  Paolo Carlini  <pcarlini@unitus.it>
354             Benjamin Kosnik  <bkoz@redhat.com>
355
356         Const correctness issue:
357         http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
358         * include/bits/locale_classes.h
359         (locale::_Impl::_M_facets): Change type to const facet**.
360         (locale::_Impl::_M_install_facet): Change declaration to
361         take const facet*.
362         (locale::facet::_M_references): Make mutable.
363         (locale::facet::_M_add_reference): Declare const.
364         (locale::facet::_M_remove_reference): Likewise.
365         * include/bits/locale_facets.tcc
366         (use_facet(const locale&)): Tweak for const facet** _M_facets.
367         (has_facet(const locale&)): Likewise.
368         * src/locale.cc
369         (locale::facet::_M_add_reference): Adjust definition.
370         (locale::facet::_M_remove_reference): Likewise.
371         * src/localename.cc
372         (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
373         const facet** _M_facets.
374         (locale::_Impl::_Impl(const char*, size_t)): Likewise.
375         (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
376         (locale::_Impl::_M_install_facet): Adjust definition to take
377         const facet* and for const facet** _M_facets.
378         * testsuite/22_locale/locale/cons/8.cc: Add.
379
380 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
381
382         * include/std/std_limits.h (numeric_limits<float>::has_infinity):
383         Use __FLT_HAS_INIFINITY__ to initialize.
384         (numeric_limits<float>::has_quiet_NaN): Likewise.
385         (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
386         to initialize.
387         (numeric_limits<double>::has_quiet_NaN): Likewise.
388         (numeric_limits<long double>::has_infinity): Use
389         __LDBL_HAS_INIFINITY__ to initialize.
390         (numeric_limits<long_double>::has_quiet_NaN): Likewise.
391
392 2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
393
394         PR c++/9433
395         * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
396         with bases which are very ambiguous.
397
398 2003-01-28  Danny Smith  <dannysmith@users.sourceforge.net>
399
400         * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
401         @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
402         * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
403         * src/Makefile.in: Regenerate.
404         * libsupc++/Makefile.in: Regenerate.
405
406 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
407
408         * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
409         $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
410         version_specific_libs is enabled.
411         * aclocal.m4, configure: Rebuilt.
412
413 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
414
415         * include/bits/valarray_meta.h: Remove, split into ...
416         * include/bits/valarray_before.h: ... this, and ...
417         * include/bits/valarray_after.h: ... this.
418         * include/std/std_valarray.h: Adjust.
419         * include/Makefile.am (bits_headers): Adjust.
420         * include/Makefile.in: Regenerate.
421
422 2003-01-24  Andreas Schwab  <schwab@suse.de>
423
424         * config/linker-map.gnu: Fix for size_t variance.
425
426 2003-01-23  Petur Runolfsson  <peturr02@ru.is>
427
428         PR libstdc++/9322
429         * include/std/std_streambuf.h
430         (basic_streambuf::basic_streambuf,
431         basic_streambuf::~basic_streambuf,
432         basic_streambuf::getloc, basic_streambuf::imbue):
433         Remove _M_buf_locale_init
434         * include/bits/fstream.tcc (basic_filebuf::imbue):  Likewise
435         * testsuite/27_io/filebuf_virtuals.cc (test08):  Add.
436         * testsuite/27_io/streambuf_members.cc (test08):  Add.
437         * testsuite/27_io/stringbuf_virtuals.cc (test08):  Add.
438
439 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
440
441         Revert include ordering.
442         * config/locale/generic/c_locale.h: Add include guards.
443         * config/locale/gnu/c_locale.h: Same.
444         * include/bits/locale_classes.h: Remove cctype include.
445         * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
446         * include/std/std_fstream.h: Remove streambuf include.
447         * include/std/std_sstream.h: Remove streambuf include.
448         
449 2003-01-23  Benjamin Kosnik  <bkoz@redhat.com>
450
451         * configure.in (libtool_VERSION): To 6:0:0.
452         * configure: Regenerated.
453         * config/linker-map.gnu: Clean.
454         
455         * src/misc-inst.cc: Remove instantiations.
456
457         * include/bits/stl_alloc.h (__malloc_alloc_template): 
458         To __malloc_alloc.
459         (__default_alloc_template): To __pool_alloc.
460         * src/stl-inst.cc: Same.
461         * include/backward/alloc.h: Update.
462         * testsuite/ext/allocators.cc: Update.
463         
464         * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
465         really try to remove these if possible.
466         * src/locale.cc (std): Same.
467
468         * testsuite/abi_check.cc (check_version): Add.
469
470 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
471             Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>
472             Mark Mitchell  <mark@codesourcery.com>
473         
474         PR libstdc++/9269
475         * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
476         (basic_filebuf::underflow): Declare.
477         Move definitions.
478
479 2003-01-22  Benjamin Kosnik  <bkoz@redhat.com>
480
481         * include/bits/locale_facets.h: Move non-facet classes requiring
482         <string> to...  
483         * include/bits/locale_classes.h: New.  
484         * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
485         * include/bits/Makefile.in: Regenerate.
486
487         * include/bits/locale_facets.tcc (__convert_from_v): Move to...
488         * config/locale/gnu/c_locale.h: ...here.
489         * config/locale/generic/c_locale.h: Same.
490         
491         * include/bits/locale_facets.tcc: Move declarations to...
492         * include/bits/locale_facets.h: ...here.
493         * include/bits/basic_ios.h: Tweak includes accordingly.
494         * include/std/std_sstream.h: Add streambuf include.
495         * include/std/std_fstream.h: Ditto.
496         * include/std/std_locale.h: Add locale_classes.h include.
497         * include/std/std_iosfwd.h: Tweak.
498         * src/concept-inst.cc: Add iterator include.
499
500         * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
501         bits as unexported in the future.
502         
503 2003-01-21  Benjamin Kosnik  <bkoz@redhat.com>
504
505         Reshuffle 22_locale testsuite.
506         * 22_locale/(codecvt.cc money_get.cc
507         codecvt_members_char_char.cc money_get_members_char.cc
508         codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
509         codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
510         codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
511         moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
512         collate_members_char.cc money_put.cc collate_members_wchar_t.cc
513         money_put_members_char.cc ctor_copy_dtor.cc
514         money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
515         num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
516         ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
517         numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
518         ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
519         num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
520         ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
521         operators.cc ctype_widen_char.cc static_members.cc
522         ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
523         global_templates.cc time_get_members_wchar_t.cc, members.cc,
524         time_put.cc, messages_byname.cc, time_put_members_char.cc,
525         messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc): 
526         Splint up into individual test cases... 
527         * 22_locale/codecvt/1.cc: New.
528         * 22_locale/codecvt/2.cc: New.
529         * 22_locale/codecvt/always_noconv/char/1.cc: New.
530         * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
531         * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
532         * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
533         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
534         * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
535         * 22_locale/codecvt/encoding/char/1.cc: New.
536         * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
537         * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
538         * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
539         * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
540         * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
541         * 22_locale/codecvt/in/char/1.cc: New.
542         * 22_locale/codecvt/in/char/wrapped_env.cc: New.
543         * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
544         * 22_locale/codecvt/in/wchar_t/1.cc: New.
545         * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
546         * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
547         * 22_locale/codecvt/length/char/1.cc: New.
548         * 22_locale/codecvt/length/char/wrapped_env.cc: New.
549         * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
550         * 22_locale/codecvt/length/wchar_t/1.cc: New.
551         * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
552         * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
553         * 22_locale/codecvt/max_length/char/1.cc: New.
554         * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
555         * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
556         * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
557         * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
558         * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
559         * 22_locale/codecvt/out/char/1.cc: New.
560         * 22_locale/codecvt/out/char/wrapped_env.cc: New.
561         * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
562         * 22_locale/codecvt/out/wchar_t/1.cc: New.
563         * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
564         * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
565         * 22_locale/codecvt/unicode/char.cc: New.
566         * 22_locale/codecvt/unicode/wchar_t.cc: New.
567         * 22_locale/codecvt/unshift/char/1.cc: New.
568         * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
569         * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
570         * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
571         * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
572         * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
573         * 22_locale/collate/1.cc: New.
574         * 22_locale/collate/2.cc: New.
575         * 22_locale/collate/compare/char/1.cc: New.
576         * 22_locale/collate/compare/char/2.cc: New.
577         * 22_locale/collate/compare/char/wrapped_env.cc: New.
578         * 22_locale/collate/compare/char/wrapped_locale.cc: New.
579         * 22_locale/collate/compare/wchar_t/1.cc: New.
580         * 22_locale/collate/compare/wchar_t/2.cc: New.
581         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
582         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
583         * 22_locale/collate/hash/char/1.cc: New.
584         * 22_locale/collate/hash/char/2.cc: New.
585         * 22_locale/collate/hash/char/wrapped_env.cc: New.
586         * 22_locale/collate/hash/char/wrapped_locale.cc: New.
587         * 22_locale/collate/hash/wchar_t/1.cc: New.
588         * 22_locale/collate/hash/wchar_t/2.cc: New.
589         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
590         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
591         * 22_locale/collate/transform/char/2.cc: New.
592         * 22_locale/collate/transform/char/wrapped_env.cc: New.
593         * 22_locale/collate/transform/char/wrapped_locale.cc: New.
594         * 22_locale/collate/transform/wchar_t/2.cc: New.
595         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
596         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
597         * 22_locale/collate_byname/1.cc: New.
598         * 22_locale/ctype/1.cc: New.
599         * 22_locale/ctype/2.cc: New.
600         * 22_locale/ctype/cons/char/1.cc: New.
601         * 22_locale/ctype/cons/char/wrapped_env.cc: New.
602         * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
603         * 22_locale/ctype/is/char/1.cc: New.
604         * 22_locale/ctype/is/char/2.cc: New.
605         * 22_locale/ctype/is/char/3.cc: New.
606         * 22_locale/ctype/is/char/wrapped_env.cc: New.
607         * 22_locale/ctype/is/char/wrapped_locale.cc: New.
608         * 22_locale/ctype/is/wchar_t/1.cc: New.
609         * 22_locale/ctype/is/wchar_t/2.cc: New.
610         * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
611         * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
612         * 22_locale/ctype/narrow/char/1.cc: New.
613         * 22_locale/ctype/narrow/char/2.cc: New.
614         * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
615         * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
616         * 22_locale/ctype/narrow/wchar_t/1.cc: New.
617         * 22_locale/ctype/narrow/wchar_t/2.cc: New.
618         * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
619         * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
620         * 22_locale/ctype/scan/char/1.cc: New.
621         * 22_locale/ctype/scan/char/wrapped_env.cc: New.
622         * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
623         * 22_locale/ctype/scan/wchar_t/1.cc: New.
624         * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
625         * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
626         * 22_locale/ctype/to/char/1.cc: New.
627         * 22_locale/ctype/to/char/wrapped_env.cc: New.
628         * 22_locale/ctype/to/char/wrapped_locale.cc: New.
629         * 22_locale/ctype/to/wchar_t/1.cc: New.
630         * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
631         * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
632         * 22_locale/ctype/widen/char/1.cc: New.
633         * 22_locale/ctype/widen/char/wrapped_env.cc: New.
634         * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
635         * 22_locale/ctype/widen/wchar_t/1.cc: New.
636         * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
637         * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
638         * 22_locale/facet/1.cc: New.
639         * 22_locale/facet/2.cc: New.
640         * 22_locale/global_templates/1.cc: New.
641         * 22_locale/locale/cons/1.cc: New.
642         * 22_locale/locale/cons/2.cc: New.
643         * 22_locale/locale/cons/3.cc: New.
644         * 22_locale/locale/cons/4.cc: New.
645         * 22_locale/locale/cons/5.cc: New.
646         * 22_locale/locale/cons/6.cc: New.
647         * 22_locale/locale/cons/7.cc: New.
648         * 22_locale/locale/global_locale_objects/1.cc: New.
649         * 22_locale/locale/global_locale_objects/2.cc: New.
650         * 22_locale/locale/global_locale_objects/3.cc: New.
651         * 22_locale/locale/operations/1.cc: New.
652         * 22_locale/locale/operations/2.cc: New.
653         * 22_locale/messages/1.cc: New.
654         * 22_locale/messages/2.cc: New.
655         * 22_locale/messages/members/char/1.cc: New.
656         * 22_locale/messages/members/char/2.cc: New.
657         * 22_locale/messages/members/char/3.cc: New.
658         * 22_locale/messages/members/char/wrapped_env.cc: New.
659         * 22_locale/messages/members/char/wrapped_locale.cc: New.
660         * 22_locale/messages_byname/1.cc: New.
661         * 22_locale/money_get/1.cc: New.
662         * 22_locale/money_get/2.cc: New.
663         * 22_locale/money_get/get/char/1.cc: New.
664         * 22_locale/money_get/get/char/2.cc: New.
665         * 22_locale/money_get/get/char/3.cc: New.
666         * 22_locale/money_get/get/char/4.cc: New.
667         * 22_locale/money_get/get/char/5.cc: New.
668         * 22_locale/money_get/get/char/6.cc: New.
669         * 22_locale/money_get/get/char/7.cc: New.
670         * 22_locale/money_get/get/char/8.cc: New.
671         * 22_locale/money_get/get/char/wrapped_env.cc: New.
672         * 22_locale/money_get/get/char/wrapped_locale.cc: New.
673         * 22_locale/money_get/get/wchar_t/1.cc: New.
674         * 22_locale/money_get/get/wchar_t/2.cc: New.
675         * 22_locale/money_get/get/wchar_t/3.cc: New.
676         * 22_locale/money_get/get/wchar_t/4.cc: New.
677         * 22_locale/money_get/get/wchar_t/5.cc: New.
678         * 22_locale/money_get/get/wchar_t/6.cc: New.
679         * 22_locale/money_get/get/wchar_t/7.cc: New.
680         * 22_locale/money_get/get/wchar_t/8.cc: New.
681         * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
682         * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
683         * 22_locale/money_put/1.cc: New.
684         * 22_locale/money_put/2.cc: New.
685         * 22_locale/money_put/put/char/1.cc: New.
686         * 22_locale/money_put/put/char/2.cc: New.
687         * 22_locale/money_put/put/char/3.cc: New.
688         * 22_locale/money_put/put/char/4.cc: New.
689         * 22_locale/money_put/put/char/5.cc: New.
690         * 22_locale/money_put/put/char/6.cc: New.
691         * 22_locale/money_put/put/char/wrapped_env.cc: New.
692         * 22_locale/money_put/put/char/wrapped_locale.cc: New.
693         * 22_locale/money_put/put/wchar_t/1.cc: New.
694         * 22_locale/money_put/put/wchar_t/2.cc: New.
695         * 22_locale/money_put/put/wchar_t/3.cc: New.
696         * 22_locale/money_put/put/wchar_t/4.cc: New.
697         * 22_locale/money_put/put/wchar_t/5.cc: New.
698         * 22_locale/money_put/put/wchar_t/6.cc: New.
699         * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
700         * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
701         * 22_locale/moneypunct/1.cc: New.
702         * 22_locale/moneypunct/2.cc: New.
703         * 22_locale/moneypunct/3.cc: New.
704         * 22_locale/moneypunct/members/char/1.cc: New.
705         * 22_locale/moneypunct/members/char/2.cc: New.
706         * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
707         * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
708         * 22_locale/moneypunct/members/wchar_t/1.cc: New.
709         * 22_locale/moneypunct/members/wchar_t/2.cc: New.
710         * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
711         * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
712         * 22_locale/moneypunct_byname/1.cc: New.
713         * 22_locale/num_get/1.cc: New.
714         * 22_locale/num_get/2.cc: New.
715         * 22_locale/num_get/get/char/1.cc: New.
716         * 22_locale/num_get/get/char/2.cc: New.
717         * 22_locale/num_get/get/char/3.cc: New.
718         * 22_locale/num_get/get/char/4.cc: New.
719         * 22_locale/num_get/get/char/5.cc: New.
720         * 22_locale/num_get/get/char/6.cc: New.
721         * 22_locale/num_get/get/char/wrapped_env.cc: New.
722         * 22_locale/num_get/get/char/wrapped_locale.cc: New.
723         * 22_locale/num_get/get/wchar_t/1.cc: New.
724         * 22_locale/num_get/get/wchar_t/2.cc: New.
725         * 22_locale/num_get/get/wchar_t/3.cc: New.
726         * 22_locale/num_get/get/wchar_t/4.cc: New.
727         * 22_locale/num_get/get/wchar_t/5.cc: New.
728         * 22_locale/num_get/get/wchar_t/6.cc: New.
729         * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
730         * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
731         * 22_locale/num_put/1.cc: New.
732         * 22_locale/num_put/2.cc: New.
733         * 22_locale/num_put/put/char/1.cc: New.
734         * 22_locale/num_put/put/char/2.cc: New.
735         * 22_locale/num_put/put/char/3.cc: New.
736         * 22_locale/num_put/put/char/4.cc: New.
737         * 22_locale/num_put/put/char/5.cc: New.
738         * 22_locale/num_put/put/char/wrapped_env.cc: New.
739         * 22_locale/num_put/put/char/wrapped_locale.cc: New.
740         * 22_locale/num_put/put/wchar_t/1.cc: New.
741         * 22_locale/num_put/put/wchar_t/2.cc: New.
742         * 22_locale/num_put/put/wchar_t/3.cc: New.
743         * 22_locale/num_put/put/wchar_t/4.cc: New.
744         * 22_locale/num_put/put/wchar_t/5.cc: New.
745         * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
746         * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
747         * 22_locale/numpunct/1.cc: New.
748         * 22_locale/numpunct/2.cc: New.
749         * 22_locale/numpunct/members/char/1.cc: New.
750         * 22_locale/numpunct/members/char/2.cc: New.
751         * 22_locale/numpunct/members/char/wrapped_env.cc: New.
752         * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
753         * 22_locale/numpunct/members/wchar_t/1.cc: New.
754         * 22_locale/numpunct/members/wchar_t/2.cc: New.
755         * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
756         * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
757         * 22_locale/numpunct_byname/1.cc: New.
758         * 22_locale/numpunct_byname/2.cc: New.
759         * 22_locale/time_get/1.cc: New.
760         * 22_locale/time_get/2.cc: New.
761         * 22_locale/time_get/date_order/char/1.cc: New.
762         * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
763         * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
764         * 22_locale/time_get/date_order/wchar_t/1.cc: New.
765         * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
766         * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
767         * 22_locale/time_get/get_date/char/1.cc: New.
768         * 22_locale/time_get/get_date/char/2.cc: New.
769         * 22_locale/time_get/get_date/char/3.cc: New.
770         * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
771         * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
772         * 22_locale/time_get/get_date/wchar_t/1.cc: New.
773         * 22_locale/time_get/get_date/wchar_t/2.cc: New.
774         * 22_locale/time_get/get_date/wchar_t/3.cc: New.
775         * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
776         * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
777         * 22_locale/time_get/get_monthname/char/1.cc: New.
778         * 22_locale/time_get/get_monthname/char/2.cc: New.
779         * 22_locale/time_get/get_monthname/char/3.cc: New.
780         * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
781         * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
782         * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
783         * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
784         * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
785         * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
786         * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
787         * 22_locale/time_get/get_time/char/1.cc: New.
788         * 22_locale/time_get/get_time/char/2.cc: New.
789         * 22_locale/time_get/get_time/char/3.cc: New.
790         * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
791         * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
792         * 22_locale/time_get/get_time/wchar_t/1.cc: New.
793         * 22_locale/time_get/get_time/wchar_t/2.cc: New.
794         * 22_locale/time_get/get_time/wchar_t/3.cc: New.
795         * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
796         * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
797         * 22_locale/time_get/get_weekday/char/1.cc: New.
798         * 22_locale/time_get/get_weekday/char/2.cc: New.
799         * 22_locale/time_get/get_weekday/char/3.cc: New.
800         * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
801         * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
802         * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
803         * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
804         * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
805         * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
806         * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
807         * 22_locale/time_get/get_year/char/1.cc: New.
808         * 22_locale/time_get/get_year/char/3.cc: New.
809         * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
810         * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
811         * 22_locale/time_get/get_year/wchar_t/1.cc: New.
812         * 22_locale/time_get/get_year/wchar_t/3.cc: New.
813         * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
814         * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
815         * 22_locale/time_put/1.cc: New.
816         * 22_locale/time_put/2.cc: New.
817         * 22_locale/time_put/put/char/1.cc: New.
818         * 22_locale/time_put/put/char/10.cc: New.
819         * 22_locale/time_put/put/char/2.cc: New.
820         * 22_locale/time_put/put/char/3.cc: New.
821         * 22_locale/time_put/put/char/4.cc: New.
822         * 22_locale/time_put/put/char/5.cc: New.
823         * 22_locale/time_put/put/char/6.cc: New.
824         * 22_locale/time_put/put/char/7.cc: New.
825         * 22_locale/time_put/put/char/8.cc: New.
826         * 22_locale/time_put/put/char/9.cc: New.
827         * 22_locale/time_put/put/char/wrapped_env.cc: New.
828         * 22_locale/time_put/put/char/wrapped_locale.cc: New.
829         * 22_locale/time_put/put/wchar_t/1.cc: New.
830         * 22_locale/time_put/put/wchar_t/10.cc: New.
831         * 22_locale/time_put/put/wchar_t/2.cc: New.
832         * 22_locale/time_put/put/wchar_t/3.cc: New.
833         * 22_locale/time_put/put/wchar_t/4.cc: New.
834         * 22_locale/time_put/put/wchar_t/5.cc: New.
835         * 22_locale/time_put/put/wchar_t/6.cc: New.
836         * 22_locale/time_put/put/wchar_t/7.cc: New.
837         * 22_locale/time_put/put/wchar_t/8.cc: New.
838         * 22_locale/time_put/put/wchar_t/9.cc: New.
839         * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
840         * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
841
842 2003-01-16  Jeffrey D. Oldham  <oldham@codesourcery.com>
843
844         * config/locale/generic/messages_members.h
845         (messages_byname<_CharT>::messages_byname): Use this-> to refer to
846         unqualified members of base clasess.
847
848 2003-01-16  Mark Mitchell  <mark@codesourcery.com>
849             Jeffrey Oldham <oldham@codesourcery.com>
850         
851         * config/locale/gnu/messages_members.h: Use this-> to refer to
852         unqualified members of base clasess.
853         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
854         * include/bits/codecvt.h: Likewise.
855         * include/bits/deque.tcc: Likewise.
856         * include/bits/fstream.tcc: Likewise.
857         * include/bits/istream.tcc: Likewise.
858         * include/bits/list.tcc: Likewise.
859         * include/bits/locale_facets.h: Likewise.
860         * include/bits/ostream.tcc: Likewise.
861         * include/bits/sstream.tcc: Likewise.
862         * include/bits/stl_bvector.h: Likewise.
863         * include/bits/stl_deque.h: Likewise.
864         * include/bits/stl_list.h: Likewise.
865         * include/bits/stl_tree.h: Likewise.
866         * include/bits/stl_vector.h: Likewise.
867         * include/bits/vector.tcc: Likewise.
868         * include/ext/ropeimpl.h: Likewise.
869         * include/ext/stdio_filebuf.h: Likewise.
870         * include/ext/stl_rope.h: Likewise.
871         * include/std/std_fstream.h: Likewise.
872         * include/std/std_sstream.h: Likewise.
873         
874 2003-01-15  Phil Edwards  <pme@gcc.gnu.org>
875
876         * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
877
878 2003-01-15  Benjamin Kosnik  <bkoz@redhat.com>
879
880         * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
881         GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
882         * aclocal.m4: Regenerate.
883         * configure: Regenerate.
884         * testsuite/Makefile.am (all-local): Add conditional rule to
885         generate testsuite_wchar_t.
886         * testsuite/Makefile.in: Regenerate.
887         * testsuite/lib/libstdc++-v3-dg.exp
888         (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
889         testsuite_wchar_t is not present in the build directory.
890         * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
891         Remove setulimit bits.
892         * testsuite/26_numerics/complex_value.cc: Set to noopts.
893         * testsuite/Makefile.am (CLEANFILES): Add.
894         * testsuite/Makefile.in: Regenerate.    
895         
896 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
897
898         * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
899         __hppa__.
900
901 2003-01-14  Jeffrey D. Oldham  <oldham@codesourcery.com>
902
903         Further conform g++'s __vmi_class_type_info to the C++ ABI
904         specification.
905         * libsupc++/cxxabi.h
906         (__vmi_class_type_info::__flags_masks): Remove enumerations not
907         required by the specification.
908
909 2003-01-12  Benjamin Kosnik  <bkoz@redhat.com>
910
911         Renames, namespaces for testsuite utilities.    
912         * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
913         (gnu_allocator_tracker): Rename to allocation_tracker.
914         (gnu_new_allocator): Rename to tracker_alloc.
915         (__set_testsuite_memlimit): Rename to set_memory_limits.
916         (gnu_assignment_operator): Rename to assignment_operator.
917         (gnu_destructor): Rename to destructor.
918         (gnu_copy_tracker): Rename to copy_tracker.
919         (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
920         (run_tests_wrapped_locale): New.
921         (run_tests_wrapped_env): New.
922         * testsuite/testsuite_hooks.cc: Same.
923         (class locale_data): Add.
924         (class enviornment_variable): Add.
925         (class not_found): Add.
926         * testsuite/testsuite_allocator.h: Same.
927         * testsuite/testsuite_allocator.cc: Same.
928         * testsuite/23_containers/deque_ctor.cc
929         (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
930         allocation_tracker. 
931         Change gnu_new_allocator to tracker_alloc.
932         Change gnu_counting_struct to counter.
933         Change gnu_copy_tracker to copy_tracker.
934         Change gnu_copy_constructor to copy_constructor.
935         Change gnu_assignment_operator to assignment_operator.  
936         Inject.
937         * testsuite/23_containers/vector_capacity.cc: Same.
938         * testsuite/23_containers/vector_ctor.cc (test01): Same.
939         * testsuite/23_containers/list_modifiers.cc: Change
940         gnu_copy_tracker to copy_tracker.
941         * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
942         __set_testsuite_memlimit to set_memory_limits.
943         * testsuite/21_strings/insert.cc (main): Same.
944         * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
945         * testsuite/27_io/stringstream.cc: Same.
946         * testsuite/27_io/stringbuf.cc: Same.
947         * testsuite/27_io/streambuf.cc: Same.
948         * testsuite/27_io/ostream.cc: Same.
949         * testsuite/27_io/istream.cc: Same.
950         * testsuite/27_io/fstream.cc: Same.
951         * testsuite/lib/libstdc++-v3-dg.exp
952         (libstdc++-v3-list-sourcefiles): Additionally handle files two and
953         three levels deeper in glob patterns.
954
955 2003-01-11  Phil Edwards  <pme@gcc.gnu.org>
956
957         * docs/doxygen/tables.html:  Finished now.
958         * docs/doxygen/user.cfg.in:  Update to latest version of Doxygen.
959         * include/bits/basic_ios.h (basic_ios::rdbuf):  Add example to
960         comments.
961
962         * include/bits/deque.tcc, include/bits/stl_alloc.h,
963         include/bits/stl_deque.h, include/bits/stl_list.h,
964         include/bits/stl_vector.h:  Remove _GLIBCPP_DEPRECATED bits scheduled
965         for 3.4 removal.
966
967 2003-01-09  Benjamin Kosnik  <bkoz@redhat.com>
968
969         * configure.in: Revert.
970         * configure: Regenerate.
971
972 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
973
974         * include/Makefile.am (install-data-local): Prepend
975         $(DESTDIR) to destination paths in all (un)installation
976         commands.  Use ${c_base_builddir} and ${std_builddir}
977         as destination subdirectories to achieve consistency with
978         preceding mkinstalldirs commands.  No effect because both
979         variables contain "." only.
980         * include/Makefile.in: Regenerate.
981
982 2003-01-08  Benjamin Kosnik  <bkoz@redhat.com>
983
984         * include/Makefile.am (stamp-*): Add checks for existing stamps.
985         * include/Makefile.in: Regenerate.
986
987         * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
988         * aclocal.m4: Regenerate.
989
990         * configure.in: Don't add new multi-do rules every time the
991         directory is reconfigured.
992         * configure: Regenerate.
993         
994 2003-01-08  Brad Spencer  <spencer@infointeractive.com>
995             Nathan Myers  <ncm@cantrip.org>
996         
997         * src/Makefile.am (stamp-debug): Clean.
998         * src/Makefile.in: Regenerate.
999         
1000 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
1001
1002         PR libstdc++/8707
1003         * Makefile.am (distclean-multi): Fix.
1004         * Makefile.in: Regenerate.
1005         
1006 2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>
1007
1008         * include/bits/locale_facets.h (messages): Move ctor, dtor
1009         definitions to..
1010         (__timepunct): Same.
1011         * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
1012         definitions. Conditionalize for GNU systems.
1013         * config/locale/generic/messages_members.h (messages): Add dtor, ctor
1014         definitions.
1015         * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
1016         definitions. Conditionalize for GNU systems.
1017         * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
1018         definitions.
1019         * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
1020         * src/locale.cc: Define.
1021         * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
1022         Use it.
1023         * config/locale/gnu/time_members.h: Use it.
1024         * config/locale/gnu/messages_members.h: Use it.
1025         * config/linker-map.gnu: Add locale::facets details.    
1026         * include/Makefile.am (target_headers_extra): Add time_members.h.
1027         * include/Makefile.in: Regenerate.
1028         * acinclude.m4: Export CTIME_H.
1029         * aclocal.m4: Regenerate.
1030         * configure: Regnerate.
1031
1032 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
1033
1034         * src/codecvt.cc
1035         (codecvt<char, char, mbstate_t>::do_in, do_out):
1036         Tweak parameters to avoid unused parameter warnings.
1037
1038 2003-01-06  Paolo Carlini  <pcarlini@unitus.it>
1039
1040         PR libstdc++/9151
1041         * include/bits/locale_facets.cc (num_put::_M_convert_float):
1042         Limit __prec to digits10 + 2, not digits10 + 1, taking into
1043         account the possibility of %{g,G} conversion specifiers
1044         inside _S_format_float.
1045         * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
1046
1047 2003-01-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1048
1049         * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
1050         libstdc++-v3-list-sourcefiles): Additionally handle files one
1051         level deeper in glob patterns.
1052         
1053         * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
1054         * testsuite/27_io/istream_extractor_arith/01.cc,
1055         testsuite/27_io/istream_extractor_arith/02.cc,
1056         testsuite/27_io/istream_extractor_arith/03.cc,
1057         testsuite/27_io/istream_extractor_arith/06.cc,
1058         testsuite/27_io/istream_extractor_arith/07.cc,
1059         testsuite/27_io/istream_extractor_arith/08.cc,
1060         testsuite/27_io/istream_extractor_arith/09.cc,
1061         testsuite/27_io/istream_extractor_arith/10.cc,
1062         testsuite/27_io/istream_extractor_arith/11.cc,
1063         testsuite/27_io/istream_extractor_arith/12.cc,
1064         testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
1065         * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
1066         sparc*-*-solaris2*.
1067
1068 2003-01-05  Paolo Carlini <pcarlini@unitus.it>
1069
1070         PR libstdc++/9168
1071         * src/codecvt.cc
1072         (codecvt<char, char, mbstate_t>::do_in, do_out):
1073         Implement the resolution of DR19 (TC).
1074         * testsuite/22_locale/codecvt_members_char_char.cc
1075         (test01): Tweak.
1076
1077 2003-01-02  Jason Merrill  <jason@redhat.com>
1078
1079         * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
1080         *__mem is also an output.
1081         * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.