OSDN Git Service

2002-02-13 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2002-02-13  Benjamin Kosnik  <bkoz@redhat.com>
2
3         * src/localename.cc: Remove stdexcept include.
4         * src/locale-inst.cc: Same.
5         * src/locale.cc: Same.
6         * src/functexcept.cc: Remove string includes.
7         * include/std/std_bitset.h: Remove stdexcept include.
8         * testsuite/23_containers/bitset_members.cc: Add stdexcept.
9         * testsuite/23_containers/bitset_ctor.cc: Same.
10
11 2002-02-11  Benjamin Kosnik  <bkoz@redhat.com>
12
13         * include/bits/stl_algo (__stl_threshold): Declare external.    
14         (__stl_chunk_size): Same.
15         * include/bits/stl_bvector.h (__WORD_BIT): Same.
16         * include/bits/stl_tree.h (_S_rb_tree_red): Same.
17         (_S_rb_tree_black): Same.
18         * src/stl-inst.cc (__stl_threshold): Define.
19         (__stl_chunk_size): Same.
20         (__WORD_BIT): Same.
21         (_S_rb_tree_red): Same.
22         (_S_rb_tree_black): Same.
23         
24         * config/io/basic_file_libio.h (__basic_file): Add declarations.
25         * include/bits/basic_file.h: Remove.
26         * config/io/c_io_stdio.h: Remove _GLIBCPP_BASIC_FILE_ENCAPSULATION
27         Declare generic types, specialization.
28         * config/io/basic_file_stdio.cc: Definitions.   
29         * config/io/c_io_libio.h: Remove _GLIBCPP_BASIC_FILE_INHERITANCE.
30         Declare generic types.
31         * include/Makefile.am (bits_headers): Remove basic_file.h.
32         (extra_target_headers): Change basic_file_model.h to basic_file.h.
33         (stamp-target): Same.
34
35         * include/bits/stl_alloc.h: Tweaks.
36         * include/bits/localefwd.h: Same.       
37
38 2002-02-11  Aaron W LaFramboise  <AWLaFramboise@aol.com>
39
40         * include/bits/locale_facets.tcc (collate::do_hash): Fix.
41         * testsuite/22_locale/collate_members_char.cc (test03): New test.
42         * testsuite/22_locale/collate_members_wchar_t.cc (test03): Same.
43         
44 2002-02-10  Phil Edwards  <pme@gcc.gnu.org>
45
46         * include/bits/stl_algo.h (transform (both signatures), generate_n):
47         Use __typeof__ in concept checks.
48
49 2002-02-10  Jonathan Wakely  <cow@compsoc.man.ac.uk>
50
51         * include/bits/stl_algo.h (__median, for_each, find, find_if,
52         adjacent_find, count, count_if, search, search_n, swap_ranges,
53         transform, replace, replace_if, replace_copy, replace_copy_if,
54         generate, generate_n, remove_copy, remove_copy_if, remove, remove_if,
55         unique, unique_copy, reverse, reverse_copy):  Doxygenate.
56
57 2002-02-08  Benjamin Kosnik  <bkoz@redhat.com>
58
59         * include/bits/locale_facets.h
60         (numpunct<_CharT>::_M_initialize_numpunct): Remove definition.
61         (__timepunct<_CharT>::_M_initialize_timepunct): Same.
62         (__timepunct<_CharT>::_M_put_helper): Same.
63         (moneypunct<_CharT, _Intl>::_M_initialize_moneypunct): Same.
64
65         * include/bits/fstream.tcc (filebuf::underflow): Remove
66         __codecvt_type typedef.
67         (filebuf::_M_convert_to_external): Same.
68         
69 2002-02-08  Phil Edwards  <pme@gcc.gnu.org>
70
71         * docs/doxygen/TODO:  Update.
72         * docs/doxygen/doxygroups.cc:  Tweak __gnu_cxx description.
73         * docs/doxygen/mainpage.html:  Add TODO list link.
74         * docs/doxygen/user.cfg.in:  Add @doctodo hook.
75         * docs/doxygen/tables.html:  New file, emoty structure only.
76
77         * include/bits/stl_iterator.h:  Doxygenate just about everything.
78         * include/bits/stl_iterator_base_funcs.h:  Ditto, clean up spaces.
79         * include/bits/stl_iterator_base_types.h:  Add notes.
80
81 2002-02-07  Stephan Buys  <sbproxy@icon.co.za>
82
83         * include/bits/stl_map.h:  Tweak doxygen markup.
84         * include/bits/stl_multimap.h:  Doxygenate and remove extra spaces.
85         * include/bits/stl_vector.h:  Likewise.
86
87 2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>
88
89         libstdc++/5286
90         libstdc++/3860
91         * include/std/std_fstream.h (filebuf::__file_type): Change to
92         __basic_file<char>.
93         (filebuf::_M_convert_to_external): Declare.
94         * include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
95         codecvt bits for wide streams.
96         (filebuf::_M_really_overflow): Use it.
97         (filebuf::underflow): Use codecvt.
98         * config/locale/codecvt_specializations_ieee_1003.1-200x.h: 
99         (codecvt<__enc_traits>::do_out): Deal with partial.
100         (codecvt<__enc_traits>::do_encoding): Return something useful.
101         * src/codecvt.cc (codecvt<wchar_t>::do_encoding): Return sizeof
102         wchar_t.
103         * testsuite/22_locale/codecvt_members_unicode_char.cc (test01):
104         Change expected encoding output.
105         (test02): Same.
106         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test01): Same.
107         (test02): Same.
108
109 2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>
110             Wolfgang Bangerth  <wolfgang.bangerth@iwr.uni-heidelberg.de>
111         
112         * include/bits/basic_ios.tcc (basic_ios::narrow): Add default value.
113         (basic_ios::widen): Same.
114
115 2002-02-07  Paolo Carlini  <pcarlini@unitus.it>
116
117         * testsuite/22_locale/money_get_members_char.cc:
118         Add comment, tidy up.
119         (test01): more "en_HK" tests (without showbase).
120         * testsuite/22_locale/money_get_members_wchar_t.cc: Ditto.
121
122 2002-02-06  Loren Rittle <ljrittle@acm.org>
123
124         * config/locale/c_locale_generic.cc: Do not trust
125         _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as
126         set by configure.
127
128 2002-02-06  Loren Rittle <ljrittle@acm.org>
129
130         * acinclude.m4: Add C++ linkage check for strtof.
131         * aclocal.m4: Rebuilt.
132         * config.h.in: Rebuilt.
133         * configure: Rebuilt.
134         * config/locale/c_locale_generic.cc: Conditionally include
135         <ieeefp.h>.  Improve handling and error checking of float
136         and long double input for non-C99 configurations.
137
138 2002-02-06  Paolo Carlini  <pcarlini@unitus.it>
139
140         * include/bits/locale_facets.tcc (money_get::do_get(string)):
141         In case money_base::symbol deal properly with multi-char sign
142         for patterns {X,Y,Z,symbol} and {X,Y,symbol,none}.
143         * testsuite/22_locale/money_get_members_char.cc: Add test07.
144         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test07.
145
146 2002-02-05  Paolo Carlini  <pcarlini@unitus.it>
147
148         * include/bits/locale_facets.tcc (money_get::do_get(string)):
149         First construct a tentative returned string, then, only if the
150         parsing succeeds, copy it into the string passed by reference.
151         * testsuite/22_locale/money_get_members_char.cc: Add test06.
152         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test06.
153
154 2002-02-04  Phil Edwards  <pme@gcc.gnu.org>
155
156         * docs/doxygen/TODO:  Impl-defined behavior now documented...
157         * docs/html/17_intro/howto.html:  ...here.
158         * docs/doxygen/mainpage.doxy:  Remove, rename...
159         * docs/doxygen/mainpage.html:  ...to this.  Tweak HTML, add license.
160         * docs/doxygen/style.css:  Add small text.
161         * docs/doxygen/run_doxygen:  Adjust for new mainpage.
162         * docs/doxygen/user.cfg.in:  Likewise.
163
164 2002-02-04  Stephan Buys  <sbproxy@icon.co.za>
165
166         * include/bits/stl_map.h:  Initial doxygen markup.
167         * include/std/std_fstream.h:  Initial doxygen markup.
168
169 2002-02-04  Paolo Carlini  <pcarlini@unitus.it>
170
171         libstdc++/5579
172         * include/bits/locale_facets.tcc (money_get::do_get(string)):
173         Deal correctly with !(__io.flags() & ios_base::showbase)
174         for case money_base::symbol.
175         * testsuite/22_locale/money_get_members_char.cc: Add test05.
176         * testsuite/22_locale/money_get_members_wchar_t.cc: Add test05.
177
178 2002-02-02  Paolo Carlini  <pcarlini@unitus.it>
179
180         * testsuite/22_locale/operators.cc
181         (gnu_collate::do_compare()): Add return statement to
182         suppress "no return statement" warning.
183
184 2002-02-01  Paolo Carlini  <pcarlini@unitus.it>
185
186         * testsuite/27_io/ostream_manip.cc: Enable test02.
187
188 2002-02-01  Phil Edwards  <pme@gcc.gnu.org>
189
190         * docs/html/documentation.html:  Update for 3.0.96.
191         * docs/html/faq/index.html:  Update for 3.0.96.
192         * docs/html/faq/index.txt:  Regenerated.
193         * docs/doxygen/TODO:  Update notes.
194         * docs/html/17_intro/howto.html:  Initial impl-specific listing.
195
196 2002-01-31  Benjamin Kosnik  <bkoz@redhat.com>
197
198         * config/locale/codecvt_specializations_ieee_1003.1-200x.h:
199         Initialize all data members in copy ctor. Make ctors explicit.
200         (__enc_traits::__enc_traits()): Default ctor does nothing.
201         (__enc_traits::_M_init): Guard against multiple iconv_opens.
202         * include/std/std_sstream.h (basic_stringbuf): Make data members
203         protected.
204         * include/std/std_fstream.h (basic_filebuf): Same.
205         * include/std/std_streambuf.h: Tweak.
206         * include/bits/streambuf.tcc: Same.
207         * include/bits/sstream.tcc: Same.
208         * include/bits/fstream.tcc: Same.       
209
210 2002-01-31  Loren Rittle <ljrittle@acm.org>
211
212         * testsuite/22_locale/codecvt_members_char_char.cc: Do not
213         allow NULL argument to be passed to setenv().
214         * testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
215         * testsuite/22_locale/collate_members_char.cc: Likewise.
216         * testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
217         * testsuite/22_locale/ctype_members_char.cc: Likewise.
218         * testsuite/22_locale/ctype_members_wchar_t.cc: Likewise.
219         * testsuite/22_locale/messages_members_char.cc: Likewise.
220         * testsuite/22_locale/money_get_members_char.cc: Likewise.
221         * testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
222         * testsuite/22_locale/money_put_members_char.cc: Likewise.
223         * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
224         * testsuite/22_locale/moneypunct_members_char.cc: Likewise.
225         * testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
226         * testsuite/22_locale/num_get_members_char.cc: Likewise.
227         * testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
228         * testsuite/22_locale/num_put_members_char.cc: Likewise.
229         * testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
230         * testsuite/22_locale/numpunct_members_char.cc: Likewise.
231         * testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
232         * testsuite/22_locale/time_get_members_char.cc: Likewise.
233         * testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
234         * testsuite/22_locale/time_put_members_char.cc: Likewise.
235         * testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
236
237 2002-01-30  Benjamin Kosnik  <bkoz@redhat.com>
238
239         * config/locale/c_locale_gnu.cc: Same errno fixes as generic.
240
241         * ChangeLog-2001: Fix spelling errors...
242         * docs/html/17_intro/RELEASE-NOTES: Update.
243         * docs/html/17_intro/TODO: Update.
244         * README (file): Update.
245         
246 2002-01-30  Loren Rittle <ljrittle@acm.org>
247
248         * config/locale/c_locale_generic.cc: Check errno for ERANGE
249         instead of non-zero to aid portability.
250
251 2002-01-30  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
252
253         * docs/html/22_locale/messages.html: Fix example code.
254
255 2002-01-30  Richard Henderson  <rth@redhat.com>
256
257         * testsuite/27_io/ostream_inserter_arith.cc (test03_check): Break
258         out from test03 and templatize.
259         (test03): Use it.
260
261 2002-01-30  Paolo Carlini  <pcarlini@unitus.it>
262
263         * config/locale/numpunct_members_gnu.cc
264         (numpunct<char, wchar_t>::_M_initialize_numpunct()):
265         Fix initialization of _M_grouping for locales which have
266         _M_thousands_sep == '\0'(L'\0', respectively).
267         * testsuite/22_locale/numpunct_byname.cc (test02): Add test.
268
269 2002-01-30  Paolo Carlini  <pcarlini@unitus.it>
270
271         * testsuite/27_io/ostream_inserter_arith.cc (test03):
272         Better fix for 32/64 bit architectures, avoiding the
273         implicit assumption that CHAR_BIT == 8.
274
275 2002-01-28  Phil Edwards  <pme@gcc.gnu.org>
276
277         * Makefile.am (doxygen, doxygen-maint, doxygen-man):  Tweak targets.
278         * Makefile.in:  Regenerate.
279
280         * docs/doxygen/run_doxygen:  Update, mostly for man pages.
281         * docs/doxygen/Intro.3:  Update.
282         * docs/doxygen/TODO:  Update.
283         * docs/doxygen/doxygroups.cc:  Add namespace hook for __gnu_cxx.
284         * docs/doxygen/mainpage.doxy:  Update.
285         * docs/doxygen/user.cfg.in:  Update for header rename.  Also
286         regenerate comments and variables with 1.2.12.
287         * docs/doxygen/maint.cfg.in:  Remove file.
288
289         * include/bits/stl_relops.h:  Doxygenate.
290         * include/bits/stl_tempbuf.h (std::_Temporary_buffer):  Likewise.
291
292         * include/c_std/std_cassert.h, include/c_std/std_cctype.h,
293         include/c_std/std_cerrno.h, include/c_std/std_cfloat.h,
294         include/c_std/std_ciso646.h, include/c_std/std_climits.h,
295         include/c_std/std_clocale.h, include/c_std/std_cmath.h,
296         include/c_std/std_csetjmp.h, include/c_std/std_csignal.h,
297         include/c_std/std_cstdarg.h, include/c_std/std_cstddef.h,
298         include/c_std/std_cstdio.h, include/c_std/std_cstdlib.h,
299         include/c_std/std_cstring.h, include/c_std/std_ctime.h,
300         include/c_std/std_cwchar.h, include/c_std/std_cwctype.h,
301         include/ext/algorithm, include/ext/functional, include/ext/hash_map,
302         include/ext/hash_set, include/ext/iterator, include/ext/memory,
303         include/ext/numeric, include/ext/rb_tree, include/ext/rope,
304         include/ext/ropeimpl.h, include/ext/slist, include/ext/stl_hash_fun.h,
305         include/ext/stl_hashtable.h, include/ext/stl_rope.h,
306         include/std/std_algorithm.h, include/std/std_bitset.h,
307         include/std/std_complex.h, include/std/std_deque.h,
308         include/std/std_fstream.h, include/std/std_functional.h,
309         include/std/std_iomanip.h, include/std/std_ios.h,
310         include/std/std_iosfwd.h, include/std/std_iostream.h,
311         include/std/std_istream.h, include/std/std_iterator.h,
312         include/std/std_limits.h, include/std/std_list.h,
313         include/std/std_locale.h, include/std/std_map.h,
314         include/std/std_memory.h, include/std/std_numeric.h,
315         include/std/std_ostream.h, include/std/std_queue.h,
316         include/std/std_set.h, include/std/std_sstream.h,
317         include/std/std_stack.h, include/std/std_stdexcept.h,
318         include/std/std_streambuf.h, include/std/std_string.h,
319         include/std/std_utility.h, include/std/std_valarray.h,
320         include/std/std_vector.h:  Add/correct @file doxygen hook.
321
322         * include/ext/memory:  Doxygenate most of rest of file.
323         * libsupc++/exception:  Doxygen output formatting.
324         * libsupc++/new:  Say which header it is.
325
326         * testsuite/lib/libstdc++-v3-dg.exp:  Fix spacing.
327         * docs/html/19_diagnostics/howto.html:  Describe concept-checks switch.
328         * docs/html/23_containers/howto.html:  Describe O(n) list::size().
329         * docs/html/27_io/howto.html:  Also link to Langer and Kreft text.
330
331 2002-01-28  Paolo Carlini  <pcarlini@unitus.it>
332             Charles Leggett <CGLeggett@lbl.gov>
333
334         * testsuite/27_io/filebuf_members.cc (test_05): Add test.
335
336 2002-01-28  Paolo Carlini  <pcarlini@unitus.it>
337
338         * testsuite/27_io/ostream_inserter_arith.cc (test03):
339         Fix to deal correctly with both 32 bit and 64 bit architectures
340
341 2002-01-25  Loren Rittle <ljrittle@acm.org>
342
343         * testsuite/thread/pthread1.cc: Use one condition variable
344         per predicate instead of tricky use of one condition variable.
345
346 2002-01-25  Benjamin Kosnik  <bkoz@redhat.com>
347
348         * include/bits/fstream.tcc (filebuf::close()): Fix close for input
349         streams.
350         (filebuf::_M_really_overflow): Match indeterminate and sync calls.
351         * testsuite/27_io/filebuf.cc: Compile only.
352         * testsuite/27_io/filebuf_members.cc: Move tests to here.
353         * testsuite/27_io/filebuf_virtuals.cc: And here.
354         Revert sungetc, sync changes for expected values.
355         * testsuite/27_io/filebuf-*: Move to...
356         * testsuite/27_io/filebuf_virtuals-*: ...here.
357         * testsuite/27_io/istream.cc: Compile only, activate.
358         * testsuite/27_io/ostream.cc: Same.
359         * testsuite/27_io/iostream.cc: New.
360         * testsuite/27_io/iostream_members.cc: New.
361
362 2002-01-25  David Billinghurst <David.Billinghurst@riotinto.com>
363
364         * testsuite/thread/pthread1.cc: Enable on cygwin.
365         * testsuite/thread/pthread2.cc: Likewise.
366         * testsuite/thread/pthread3.cc: Likewise.
367         * testsuite/thread/pthread4.cc: Likewise.
368         * testsuite/thread/pthread5.cc: Likewise.
369         * testsuite/thread/pthread6.cc: Likewise.
370
371 2002-01-24  Benjamin Kosnik  <bkoz@redhat.com>
372
373         * testsuite/27_io/ostream_inserter_char.cc (test07): New. 
374         
375 2002-01-24  Benjamin Kosnik  <bkoz@redhat.com>
376
377         * include/bits/basic_ios.h (basic_ios::_M_check_facet): Make
378         const, tweak.
379         (basic_ios::fill(char_type)): Use fill().       
380         * include/bits/basic_ios.tcc (basic_ios::widen): Use _M_check_facet.
381         (basic_ios::narrow): Same.
382         (basic_ios::_M_cache_facets): Explicitly set cached facets to zero
383         if they are invalid.
384         (basic_ios::init): Comment.
385         * testsuite/27_io/ios_init.cc (test02): New.
386         
387 2002-01-24  Phil Edwards  <pme@gcc.gnu.org>
388
389         * include/bits/stl_tempbuf.h (_Temporary_buffer):  Add doxygen hook.
390         * include/bits/stl_algo.h:  Include stl_tempbuf.h.
391         * include/ext/memory:  Do not include stl_tempbuf.h.
392         (temporary_buffer):  Add doxygen hook.
393         (__get_temporary_buffer, get_temporary_buffer,
394         return_temporary_buffer):  Move back to std:: header...
395         * include/std/std_memory.h:  ...here.  Do not include stl_tempbuf.h.
396         * include/ext/rope:  Do not include stl_tempbuf.h.
397         * include/ext/stl_hashtable.h:  Likewise.
398         * include/std/std_algorithm.h:  Likewise.
399         * testsuite/20_util/temporary_buffer.cc:  New file.
400
401 2002-01-24  andrew@andypo.net
402             (tweaks, test and commit by Loren J. Rittle  <ljrittle@acm.org>)
403
404         libstdc++/5432
405         * include/bits/ios_base.h: Use _Atomic_word for reference counts.
406         * include/bits/localefwd.h: Likewise.
407         Also use for std::locale::id::_S_highwater.
408         * src/ios.cc (ios_base::xalloc): Use _Atomic_word.
409         * src/locale.cc: Support new usage of _Atomic_word.
410         (std::locale::classic): Guard entire function against reentry.
411         * src/localename.cc: Support new usage of _Atomic_word.
412
413 2002-01-24   Benjamin Kosnik  <bkoz@redhat.com>
414
415         * testsuite/22_locale/num_put_members_wchar_t.cc (test03): Use
416         _GLIBCPP_HAVE_SETENV.
417         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): Same.
418         * testsuite/22_locale/collate_members_char.cc (test02): Same.
419         * testsuite/22_locale/ctype_members_char.cc (test03): Same.
420         * testsuite/22_locale/ctype_members_wchar_t.cc (test03): Same.
421         * testsuite/22_locale/messages_members_char.cc (test02): Same.
422         * testsuite/22_locale/moneypunct_members_char.cc (test02): Same.
423         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): Same.
424         * testsuite/22_locale/money_put_members_char.cc (test04): Same.
425         * testsuite/22_locale/money_put_members_wchar_t.cc (test04): Same.
426         * testsuite/22_locale/num_get_members_char.cc (test03): Same.
427         * testsuite/22_locale/num_get_members_wchar_t.cc (test03): Same.
428         * testsuite/22_locale/numpunct_members_char.cc (test02): Same.
429         * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): Same.
430         * testsuite/22_locale/time_get_members_char.cc (test07): Same.
431         * testsuite/22_locale/time_get_members_wchar_t.cc (test07): Same.
432         * testsuite/22_locale/time_put_members_char.cc (test03): Same.
433         * testsuite/22_locale/time_put_members_wchar_t.cc (test03): Same.
434         * testsuite/22_locale/num_put_members_char.cc (test03): Same.
435         * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Check for setenv.
436         * aclocal.m4: Regenerate.
437         * configure: Regenerate.
438         * config.h.in: Regenerate.
439         
440 2002-01-23  Loren Rittle <ljrittle@acm.org>
441
442         * testsuite/thread/pthread1.cc: New test.
443         * testsuite/thread/pthread2.cc: New test adapted from libstdc++/5347.
444         * testsuite/thread/pthread3.cc: Likewise.
445         * testsuite/thread/pthread4.cc: New test adapted from
446         http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00679.html
447         * testsuite/thread/pthread5.cc: New test adapted from libstdc++/5464.
448         * testsuite/thread/pthread6.cc: New test adapted from libstdc++/5444.
449
450 2002-01-23  Richard Henderson  <rth@redhat.com>
451
452         PR libstdc++/5198
453         * config/cpu/m68k/bits/atomicity.h (__exchange_and_add): Only use
454         CAS on the cpu variants that support it.  Add versions that use
455         TAS and that disable interrupts.
456         (__atomic_add): Use __exchange_and_add to guarantee atomicity.
457
458 2002-01-23  Matt Kraai  <kraai@alumni.cmu.edu>
459
460         * include/bits/locale_facets.tcc: Remove old comments.
461
462 2002-01-23  Andreas Tobler  <toa@pop.agri.ch>
463
464         * include/bits/locale_facets.tcc (__convert_to_v): Change template
465         parameter to _Tv.
466         (__convert_from_v): Same.
467         
468 2002-01-23  Benjamin Kosnik  <bkoz@redhat.com>
469
470         * include/bits/locale_facets.h (num_get::_M_extract_int): Change
471         prototype.
472         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Remove
473         __max_digits checks, adjust arguments.
474         (num_get::do_get(*)): Changeup.
475
476 2002-01-23  Loren Rittle <ljrittle@acm.org>
477
478         * config/locale/c_locale_generic.cc: Fix typename usage.
479
480 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
481
482         * config/locale/c_locale_generic.cc: Fix.
483
484 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
485
486         * docs/html/22_locale/messages.html: Remove angle brackets.
487         * docs/html/17_intro/TODO: Add.
488         
489 2002-01-22  Paolo Carlini  <pcarlini@unitus.it>
490
491         * testsuite/27_io/ios_manip_basefield.cc: Enable test02.
492         * testsuite/27_io/ostream_inserter_arith.cc: Enable test03.
493         * testsuite/27_io/ostream_inserter_char.cc: Enable test01.
494         * testsuite/27_io/ostream_inserter_other.cc: Enable test04.
495
496 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
497
498         Audit for LANG independence.
499         * include/bits/localefwd.h: Tweaks.
500         * include/bits/locale_facets.tcc (money_get::do_get(long double)):
501         Use __convert_to_v.
502         (time_get::do_get_year): Same.
503         (__convert_from_v): Add.
504         (num_put::_M_convert_float): Use.
505         (num_put::_M_convert_int): Same.
506         (money_put::do_put): Same.
507         
508         * src/locale-inst.cc: Add instantiations for __convert_from_v.
509         * config/locale/time_members_gnu.cc: Cleanup setlocale usage.
510         * config/locale/time_members_generic.cc: 
511         * config/locale/messages_members_gnu.cc: Same.
512         * config/locale/messages_members_gnu.h: Same.
513         
514         * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): New.
515         * testsuite/22_locale/codecvt_members_char_char.cc (test02): New.
516         * testsuite/22_locale/collate_members_wchar_t.cc (test02): New.
517         * testsuite/22_locale/collate_members_char.cc (test02): New.
518         * testsuite/22_locale/ctype_members_wchar_t.cc (test03): New.
519         * testsuite/22_locale/ctype_members_char.cc (test03): New.
520         * testsuite/22_locale/messages_members_char.cc (test02): New.
521         * testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): New.
522         * testsuite/22_locale/moneypunct_members_char.cc (test02): New.
523         * testsuite/22_locale/money_get_members_wchar_t.cc (test04): New.
524         * testsuite/22_locale/money_get_members_char.cc (test04): New.
525         * testsuite/22_locale/money_put_members_wchar_t.cc (test04): New.
526         * testsuite/22_locale/money_put_members_char.cc (test04): New.
527         * testsuite/22_locale/numpunct_members_wchar_t.cc (test02): New.
528         * testsuite/22_locale/numpunct_members_char.cc (test02): New.
529         * testsuite/22_locale/time_put_members_wchar_t.cc (test03): New.
530         * testsuite/22_locale/time_put_members_char.cc (test03): New.
531         * testsuite/22_locale/time_get_members_wchar_t.cc (test07): New.
532         * testsuite/22_locale/time_get_members_char.cc (test07): New.
533         * testsuite/22_locale/num_get_members_wchar_t.cc (test03): New.
534         * testsuite/22_locale/num_get_members_char.cc (test03): New.
535         * testsuite/22_locale/num_put_members_wchar_t.cc (test03): New.
536         * testsuite/22_locale/num_put_members_char.cc (test03): New.
537
538         * testsuite/22_locale/time_get_members_char.cc: Fixups for global
539         locale issues.
540         * testsuite/22_locale/time_get_members_char.cc: Same.
541         
542 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
543
544         libstdc++/5280
545         * include/bits/localefwd.h: Tweak comments.
546         * include/bits/locale_facets.h (__convert_to_v): Add.
547         * include/bits/locale_facets.tcc (num_get::do_get(double)): Use it.
548         (num_get::do_get(float)): Same.
549         (num_get::do_get(long double)): Same.
550         (num_get::do_get(bool)): Same.
551         (num_get::do_get(long)): Same.
552         (num_get::do_get(long long)): Same.
553         (num_get::do_get(unsigned int)): Same.
554         (num_get::do_get(unsigned short)): Same.
555         (num_get::do_get(unsigned long)): Same.
556         (num_get::do_get(unsigned long long)): Same.
557         * config/locale/c_locale_gnu.cc (__convert_to_v): Specialize.
558         * config/locale/c_locale_generic.cc: Same.
559         
560 2002-01-22  Loren Rittle <ljrittle@acm.org>
561
562         * include/Makefile.am (c_base_builddir): Remove redundant slash.
563         (std_builddir): Likewise.
564         (std_headers_rename): Fix cut-n-paste typo.
565         (install-data-local): Concat path per element instead of once to
566         first element of list.
567         * include/Makefile.in: Rebuilt.
568
569 2002-01-22  Benjamin Kosnik  <bkoz@redhat.com>
570
571         * config/os/aix/bits/ctype_noninline.h: Fix formatting.
572         * config/os/bsd/netbsd/bits/ctype_noninline.h: Fix typo.
573         * config/os/bsd/freebsd/bits/ctype_noninline.h: Fix formatting.
574
575 2002-01-20  Benjamin Kosnik  <bkoz@redhat.com>
576
577         * include/bits/locale_facets.h (ctype<char>::classic_table):
578         Remove definition.
579         (ctype<char>::_S_ctable): Remove.
580         * config/os/gnu-linux/bits/ctype_noninline.h
581         (ctype<char>::_S_table): Remove definition.
582         (ctype<char>::classic_table): Define.
583         (ctype<char>::ctype): Replace _S_ctable with classic_table().
584         * config/os/aix/bits/ctype_noninline.h: Same.
585         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
586         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
587         * config/os/djgpp/bits/ctype_noninline.h: Same.
588         * config/os/generic/bits/ctype_noninline.h: Same.
589         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
590         * config/os/hpux/bits/ctype_noninline.h: Same.
591         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
592         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
593         * config/os/mingw32/bits/ctype_noninline.h: Same.
594         * config/os/newlib/bits/ctype_noninline.h: Same.
595         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
596         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
597         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
598
599 2002-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
600
601         * config/os/mingw32/bits/ctype_noninline.h: Declare _ctype instead
602         of _pctype. Use to define _S_ctable.  Add definition for alternate
603         ctor.  Initialise _M_ctable to _S_ctable in ctors.
604         (do_toupper, do_tolower): Use inline code appropriate for C-locale
605         rather than ::toupper, ::tolower.
606
607 2002-01-18  Loren Rittle <ljrittle@acm.org>
608
609         * testsuite/18_support/numeric_limits.cc (test_extrema<long double>):
610         Add specialization for FreeBSD systems only to avoid losing test
611         only due to extra precision unmentioned in system headers.
612
613 2002-01-18  David Billinghurst <David.Billinghurst@riotinto.com>
614
615         * config/os/irix/irix6.5/bits/ctype_noninline.h: Fix typo
616
617 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
618
619         * testsuite/testsuite_hooks.h: Fix comment typo.  Memory
620         limiting is only attempted if _GLIBCPP_MEM_LIMIT is defined.
621
622 2002-01-17  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
623         
624         * testsuite/22_locale/ctor_copy_dtor.cc: Remove check.
625
626 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
627
628         * configure.target: Define OPT_LDFLAGS for AIX case.
629
630 2002-01-17  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
631
632         * include/std/std_limits.h (__glibcpp_float_has_quiet_NaN,
633         __glibcpp_double_has_quiet_NaN): Correct mispelling.
634
635 2002-01-17  Andreas Tobler  <toa@pop.agri.ch>
636
637         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Fix.
638
639 2002-01-16  David Edelsohn  <dje@watson.ibm.com>
640
641         * acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Do not clear
642         SECTION_LDFLAGS and OPT_LDFLAGS.  Fix ac_sectionLDflags type.
643         * aclocal.m4: Regenerate.
644         * configure: Regenerate.
645         
646 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
647
648         * include/Makefile.am (c_base_headers_rename): New.
649         (c_base_headers_extra): New.
650         (stamp-c_base): Modify.
651         (install-data-local): Use both.
652         * include/Makefile.in: Regenerate.
653         * include/c/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
654         csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
655         cstdio ctime cwctype]: Move to..
656         * include/c/std_*: Here.
657         * include/c_std/[cctype ciso646 cmath cstdarg cstdlib cerrno climits
658         csetjmp cstddef cstring cwchar cassert cfloat clocale csignal
659         cstdio ctime cwctype]: Move to..
660         * include/c_std/std_*: Here.
661
662         Alexandre Oliva  <aoliva@redhat.com>    
663         * include/Makefile.am (.PRECIOUS): Add rule.
664         * include/Makefile.in: Regenerate.
665         
666 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
667             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
668         
669         * include/bits/stl_iterator.h (reverse_iterator::_M_current):
670         Deuglify, should be current.
671         (back_insert_iterator::_M_container): Deuglify, should be container.
672         (front_insert_iterator::_M_container): Same.    
673         (insert_iterator::_M_container): Same.
674         * testsuite/24_iterators/reverse_iterator.cc: Add check.
675         * testsuite/24_iterators/back_insert_iterator.cc: Add check.    
676         * testsuite/24_iterators/front_insert_iterator.cc: Same.
677         * testsuite/24_iterators/insert_iterator.cc: Same.
678         
679 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
680
681         * include/bits/locale_facets.h (ctype<char>::classic_table): Make
682         static.
683         (ctype<char>::_M_ctable): Make static, change name to _S_ctable.
684         * config/os/gnu-linux/bits/ctype_noninline.h: Define _S_ctable.
685         * config/os/solaris/solaris2.7/bits/ctype_noninline.h: Same.
686         * config/os/solaris/solaris2.6/bits/ctype_noninline.h: Same.
687         * config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
688         * config/os/newlib/bits/ctype_noninline.h: Same.
689         * config/os/irix/irix6.5/bits/ctype_noninline.h: Same.
690         * config/os/irix/irix5.2/bits/ctype_noninline.h: Same.
691         * config/os/hpux/bits/ctype_noninline.h: Same.
692         * config/os/djgpp/bits/ctype_noninline.h: Same.
693         * config/os/bsd/netbsd/bits/ctype_noninline.h: Same.
694         * config/os/bsd/freebsd/bits/ctype_noninline.h: Same.
695         * config/os/aix/bits/ctype_noninline.h: Same.
696         
697         Testcase by Dietmar Kühl via Peter Schmid 
698         * testsuite/22_locale/ctype_members_char.cc (char>): Add test for
699         classic_table().
700
701 2002-01-16  Benjamin Kosnik  <bkoz@redhat.com>
702
703         * libmath/signbitl.c: Copyright years as list, not range.       
704         * libmath/Makefile.am: Same.
705         * libmath/Makefie.in: Regenerate.
706         * libmath/signbit.c: Same.
707         * libmath/nan.c: Same.
708         * libmath/copysignf.c: Same.
709         * libmath/signbitf.c: Same.
710         * testsuite/22_locale/money_get_members_char.cc: Same.
711         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
712         * testsuite/22_locale/money_put_members_char.cc: Same.
713         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
714         * testsuite/22_locale/time_get_members_char.cc: Same.
715         * testsuite/22_locale/time_get_members_wchar_t.cc: Same.
716         * testsuite/22_locale/time_put_members_char.cc: Same.
717         * testsuite/22_locale/time_put_members_wchar_t.cc: Same.
718         * testsuite/21_strings/nonmember.cc: Same.
719         * testsuite/21_strings/compare.cc: Same.
720         * testsuite/27_io/stringstream.cc: Same.
721         * testsuite/27_io/stringbuf.cc: Same.
722         * testsuite/27_io/filebuf.cc: Same.
723         * testsuite/27_io/ios_manip_basefield.cc: Same.
724         * testsuite/27_io/ios_manip_fmtflags.cc: Same.
725         * include/bits/cpp_type_traits.h: Same.
726         * include/bits/generic_shadow.h: Same.
727         * include/bits/gslice_array.h: Same.
728         * include/bits/gslice.h: Same.
729         * include/bits/indirect_array.h: Same.
730         * include/bits/slice_array.h: Same.
731         * include/bits/sstream.tcc: Same.
732         * include/bits/streambuf_iterator.h: Same.
733         * include/bits/valarray_array.tcc: Same.
734         * include/bits/valarray_meta.h: Same.
735         * include/bits/valarray_array.h: Same.
736         * config/os/mingw32/bits/ctype_noninline.h: Same.
737         * config/os/mingw32/bits/ctype_base.h: Same.
738         * config/os/hpux/bits/ctype_noninline.h: Same.
739         * config/os/hpux/bits/ctype_base.h: Same.
740         * config/os/gnu-linux/bits/ctype_noninline.h: Same.
741         * config/os/gnu-linux/bits/ctype_base.h: Same.
742         * config/os/generic/bits/ctype_noninline.h: Same.
743         * config/os/generic/bits/ctype_base.h: Same.
744
745         * libsupc++/tinfo.h: Tweaks.
746
747 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
748
749         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Same.
750         * testsuite/22_locale/num_put_members_char.cc (test01): Tweak.
751         * testsuite/22_locale/ctype_members_char.cc: Tweak.     
752
753 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
754
755         * include/bits/locale_facets.tcc (num_put::do_put(bool): Fix.
756         (num_put::do_put(void*)): Fix.
757         * testsuite/22_locale/num_put_members_char.cc (test02): Add.
758         * testsuite/22_locale/num_put_members_wchar_t.cc (test02): Add.
759         * testsuite/22_locale/num_get_members_char.cc (test02): Add
760         long double, void, bool types.
761         * testsuite/22_locale/num_get_members_wchar_t.cc (test02): Add.
762         
763 2002-01-15  Benjamin Kosnik  <bkoz@redhat.com>
764             Alexandre Oliva  <aoliva@redhat.com>
765
766         * libmath/Makefile.am (LINK): Add --tag CC.
767         * libmath/Makefile.in: Regenerate.
768
769 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
770
771         * config/os/hpux/bits/ctype_noninline.h: Use __SB_masks for address
772         of character to attribute mapping table.
773
774 2002-01-15  David Billinghurst <David.Billinghurst@riotinto.com>
775
776         * testsuite/26_numerics/c99_classification_macros_c.cc
777         Remove dg-error and dg-excess-errors comments.
778
779 2002-01-14  Benjamin Kosnik  <bkoz@redhat.com>
780
781         * include/bits/locale_facets.tcc (time_put::put): Correct output
782         iterator positions.
783         * testsuite/22_locale/time_put_members_char.cc (test02): Add.
784         * testsuite/22_locale/time_put_members_wchar_t.cc (test02): Add.
785         * testsuite/22_locale/time_get_members_wchar_t.cc (test06): Add.
786         * testsuite/22_locale/time_get_members_char.cc (test06): Add.
787
788 2002-01-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
789
790         * docs/html/17_intro/porting-howto.xml: Update filebuf section.
791
792 2002-01-14  Paolo Carlini  <pcarlini@unitus.it>
793             Nathan Myers  <ncm@cantrip.org>
794
795         * include/bits/basic_string.h
796         (replace(__pos, __n1, __s, __n2)): Optimize by avoiding
797         temporaries (i.e., call _M_replace_safe) when possible.
798         (replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
799         (replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
800         (replace(__i1, __i2, __str)): Call replace(__i1, __i2, __s, __n).
801         (replace(__i1, __i2, __s)): Call replace(__i1, __i2, __s, __n).
802         (replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
803         * include/bits/basic_string.tcc
804         (replace(__pos1, __n1, __str, __pos2, __n2)): Call
805         replace(__pos, __n1, __s, __n2).
806         * testsuite/21_strings/replace.cc (test03): New testcases.
807
808         * include/bits/basic_string.h (insert(__pos, __s, __n)):
809         Adjust comparison wrt overflow.
810         
811 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
812
813         * include/Makefile.am (std_headers_rename): New variable.
814         (install-data-local): Use it.
815         * include/Makefile.in: Regenerate.
816         
817 2002-01-12  Benjamin Kosnik  <bkoz@redhat.com>
818
819         * include/bits/locale_facets.tcc (money_put::do_put(string):
820         Correct output iterator value.
821         * testsuite/22_locale/money_put_members_char.cc (test03): Add.
822         * testsuite/22_locale/money_put_members_wchar_t.cc: Same.
823         
824 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
825
826         * include/Makefile.am, include/Makefile.in (stamp-std):  Fix typo from
827         previous commit.
828
829 2002-01-11  Phil Edwards  <pme@gcc.gnu.org>
830
831         * include/Makefile.am (std_headers):  Update list with new names.
832         (stamp-std):  Link to standardized name.
833         * include/Makefile.in:  Regenerate.
834
835         * include/std/algorithm, include/std/bitset, include/std/complex,
836         include/std/deque, include/std/fstream, include/std/functional,
837         include/std/iomanip, include/std/ios, include/std/iosfwd,
838         include/std/iostream, include/std/istream, include/std/iterator,
839         include/std/limits, include/std/list, include/std/locale,
840         include/std/map, include/std/memory, include/std/numeric,
841         include/std/ostream, include/std/queue, include/std/set,
842         include/std/sstream, include/std/stack, include/std/stdexcept,
843         include/std/streambuf, include/std/string, include/std/utility,
844         include/std/valarray, include/std/vector:  Rename to...
845
846         * include/std/std_algorithm.h, include/std/std_bitset.h,
847         include/std/std_complex.h, include/std/std_deque.h,
848         include/std/std_fstream.h, include/std/std_functional.h,
849         include/std/std_iomanip.h, include/std/std_ios.h,
850         include/std/std_iosfwd.h, include/std/std_iostream.h,
851         include/std/std_istream.h, include/std/std_iterator.h,
852         include/std/std_limits.h, include/std/std_list.h,
853         include/std/std_locale.h, include/std/std_map.h,
854         include/std/std_memory.h, include/std/std_numeric.h,
855         include/std/std_ostream.h, include/std/std_queue.h,
856         include/std/std_set.h, include/std/std_sstream.h,
857         include/std/std_stack.h, include/std/std_stdexcept.h,
858         include/std/std_streambuf.h, include/std/std_string.h,
859         include/std/std_utility.h, include/std/std_valarray.h,
860         include/std/std_vector.h:  ...this.
861
862 2002-01-11  Loren Rittle <ljrittle@acm.org>
863
864         * include/Makefile.am (extra_target_headers): New list of all
865         target files built with ad hoc naming rules.
866         (stamp-*): Handle LN_S failure in manner portable across make
867         implementations.
868         (install-data-local): Install header files from human-maintained
869         file lists and directory components instead of non-robust find.
870         * include/Makefile.in: Rebuilt.
871
872 2002-01-11  Benjamin Kosnik  <bkoz@redhat.com>
873
874         * include/bits/locale_facets.tcc (money_get::do_get(string)):
875         Check for zero-length negative sign before adding it to output
876         string.
877         (money_get::do_get(long double)): Return beg.
878         * testsuite/22_locale/money_get_members_char.cc (test02): Add
879         iterator checks.
880         * testsuite/22_locale/money_get_members_wchar_t.cc: Same.
881         
882 2002-01-10  David Seymour  <seymour_dj@yahoo.com>
883
884         libstdc++/5331
885         * include/bits/locale_facets.h (num_get<>): Return advanced iterator
886         for _M_extract_float and _M_extract_int
887         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
888         (num_get<>::_M_extract_int): Likewise, all callers changed
889         * testsuite/22_locale/num_get_members_char.cc: Testcase
890
891 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
892
893         * libsupc++/exception (bad_exception): Add comment.
894         * libsupc++/new (bad_alloc): Same.
895         * libsupc++/typeinfo (bad_cast, bad_typeid): Same.
896
897 2002-01-09  Paolo Carlini <pcarlini@unitus.it>
898
899         libstdc++/3150: revert 2001-11-30 commit. DR266 only means
900         that the destructors should be removed from the descriptions
901         in the standard: writing them explicitly allows the vtable
902         heuristic to work. For additional information see:
903         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00090.html
904         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00110.html
905         http://gcc.gnu.org/ml/libstdc++/2002-01/msg00155.html
906         * libsupc++/exception (bad_exception::~bad_exception()):
907         Reintroduce declaration.
908         * libsupc++/new (bad_alloc::~bad_alloc()): Same.
909         * libsupc++/typeinfo (bad_cast::~bad_cast()): Same.
910         (bad_typeid::~bad_typeid()): Same.
911         * libsupc++/eh_exception.cc (bad_exception::~bad_exception()):
912         Reintroduce definition.
913         * libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
914         * libsupc++/tinfo.cc (bad_cast::~bad_cast()): Same.
915         (bad_typeid::~bad_typeid()): Same.
916
917 2002-01-09  Benjamin Kosnik  <bkoz@redhat.com>
918
919         * include/Makefile.am (c_base_srcdir): Remove duplicate '/'.
920         * include/Makefile.in: Regenerate.
921         
922 2002-01-09  Bo Thorsen  <bo@suse.co.uk>
923
924         * config/cpu/x86-64/bits/cpu_limits.h (__glibcpp_long_bits): Add
925         definition.
926
927 2002-01-08  Benjamin Kosnik  <bkoz@redhat.com>
928
929         libstdc++/2913
930         libstdc++/4879
931         * include/bits/fstream.tcc (filebuf::_M_really_overflow): Test
932         return value of _M_file->sync().
933         (filebuf::showmanyc): Check for is_open.
934         * include/std/fstream (filebuf::sync): Tweak.
935         * testsuite/27_io/filebuf.cc: Tweak.
936
937 2002-01-08  John Fardo  <jfardo@laurelnetworks.com>
938             Brad Garcia  <garsh@attbi.com>
939         
940         * testsuite/27_io/filebuf_members.cc: Add test.
941         
942 2002-01-07  Benjamin Kosnik  <bkoz@redhat.com>
943             Craig Rodrigues  <rodrigc@mediaone.net>
944
945         libstdc++/5174
946         * po/Makefile.am (mkinstalldirs): Add.
947         * po/Makefile.in: Regenerate.
948
949 2002-01-07  David Billinghurst  <David.Billinghurst@riotinto.com>
950
951         * testsuite_flags.in: Add -fmessage-length=0 to CXXFLAGS *
952         testsuite/lib/prune.exp: Delete lines ":In function ..."  from
953         compiler output.
954         * testsuite/23_containers/map_operators.cc: Remove
955         dg-excess-errors comment.
956         * testsuite/23_containers/set_operators.cc: Likewise.
957
958 2002-01-06  Paolo Carlini  <pcarlini@unitus.it>
959
960         * include/bits/stl_function.h:  Remove two lines of comments;
961         adjust copyright years.
962
963 2002-01-04  Benjamin  Kosnik  <bkoz@redhat.com>
964
965         * include/Makefile.am (std_headers): Remove cXXX from list.
966         (c_base_srcdir): No bits subdirectory.
967         (c_base_builddir): Same.
968         (c_base_headers): Adjust names, add ciso646.
969         (bits_headers): Remove std_xxx.h headers.
970         * include/Makefile.in: Regenerate.
971         
972         * include/ext/iterator: Adjust includes.
973         * include/ext/ropeimpl.h: Same.
974         * include/ext/stl_hash_fun.h: Same.
975         * include/ext/algorithm: Same.
976         
977         * include/backward/bvector.h: Adjust includes.
978         * include/backward/vector.h: Same.
979         * include/backward/strstream: Same.
980         * include/backward/streambuf.h: Same.
981         * include/backward/stack.h: Same.
982         * include/backward/set.h: Same.
983         * include/backward/queue.h: Same.
984         * include/backward/multiset.h: Same.
985         * include/backward/multimap.h: Same.
986         * include/backward/map.h: Same.
987         * include/backward/list.h: Same.
988         * include/backward/iterator.h: Same.
989         * include/backward/iostream.h: Same.
990         * include/backward/iomanip.h: Same.
991         * include/backward/fstream.h: Same.
992         * include/backward/deque.h: Same.
993         * include/backward/complex.h: Same.
994
995         * include/bits/std_algorithm.h: Move to...
996         * include/std/algorithm: ...here.
997         * include/bits/std_iosfwd.h, std_locale.h, std_stack.h,
998         std_bitset.h, std_ios.h, std_map.h, std_stdexcept.h,
999         std_complex.h, std_iostream.h, std_memory.h, std_streambuf.h,
1000         std_deque.h, std_istream.h, std_numeric.h, std_string.h,
1001         std_fstream.h, std_ostream.h, std_utility.h, std_iterator.h,
1002         std_queue.h, std_valarray.h, std_functional.h, std_limits.h,
1003         std_set.h, std_vector.h, std_iomanip.h, std_list.h, std_sstream.h:
1004         Same.
1005         
1006         * include/c_std/bits/std_cassert.h: Move to...
1007         * include/c_std/cassert: Here.
1008         * include/c_std/std_cctype.h, std_cerrno.h, std_cfloat.h,
1009         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
1010         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
1011         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
1012         std_cwctype.h: Same.
1013         * include/c_std/cmath: Adjust cmath.tcc include.
1014         * include/c_std/cstdlib: Adjust includes.
1015         * include/c_std/cwchar: Same.
1016         * include/c_std/ctime: Same.
1017         * include/c_std/cstring: Same.
1018         * include/c_std/cstdio: Same.
1019         * include/c_std/bits: Remove directory.
1020         
1021         * include/c/bits/std_cassert.h: Move to...
1022         * include/c/cassert: Here.
1023         * include/c/std_cctype.h, std_cerrno.h, std_cfloat.h,
1024         std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
1025         std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
1026         std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
1027         std_cwctype.h: Same.
1028         * include/c/bits: Remove directory.
1029         
1030         * include/std/cwctype: Remove.
1031         * include/std/cwchar: Remove.
1032         * include/std/ctime: Remove.
1033         * include/std/cstring: Remove.
1034         * include/std/cstdlib: Remove.
1035         * include/std/cstdio: Remove.
1036         * include/std/cstddef: Remove.
1037         * include/std/cstdarg: Remove.
1038         * include/std/csignal: Remove.
1039         * include/std/csetjmp: Remove.
1040         * include/std/cmath: Remove.
1041         * include/std/clocale: Remove.
1042         * include/std/climits: Remove.
1043         * include/std/ciso646: Remove.
1044         * include/std/cfloat: Remove.
1045         * include/std/cerrno: Remove.
1046         * include/std/cctype: Remove.
1047         * include/std/cassert: Remove.
1048
1049         * include/bits/fpos.h: Adjust includes, removing <bits/std_xxx.h>
1050         files and subsituting <xxx>.
1051         * include/bits/valarray_array.h: Same.
1052         * include/bits/stl_uninitialized.h: Same.
1053         * include/bits/stl_alloc.h: Same.
1054         * include/bits/stl_algobase.h: Same.
1055         * include/bits/sstream.tcc: Same.
1056         * include/bits/pthread_allocimpl.h: Same.
1057         * include/bits/ostream.tcc: Same.
1058         * include/bits/localefwd.h: Same.
1059         * include/bits/locale_facets.tcc: Same.
1060         * include/bits/locale_facets.h: Same.
1061         * include/bits/istream.tcc: Same.
1062         * include/bits/char_traits.h: Same.
1063         * include/bits/boost_concept_check.h: Same.
1064         * include/bits/basic_file.h: Same.
1065         * include/std/bitset: Same.
1066         * include/std/complex: Same.
1067         * include/std/fstream: Same.
1068         * include/std/functional: Same.
1069         * include/std/ios: Same.
1070         * include/std/iostream: Same.
1071         * include/std/ostream: Same.
1072         * include/std/sstream: Same.
1073         * include/std/streambuf: Same.
1074         * include/std/string: Same.
1075         * include/std/iterator: Same.
1076         * include/std/valarray: Same.
1077
1078         * src/ios.cc: Adjust includes.
1079         * src/valarray-inst.cc: Same.
1080         * src/string-inst.cc: Same.
1081         * src/stl-inst.cc: Same.
1082         * src/stdexcept.cc: Same.
1083         * src/misc-inst.cc: Same.
1084         * src/localename.cc: Same.
1085         * src/locale-inst.cc: Same.
1086         * src/locale.cc: Same.
1087         * src/limits.cc: Same.
1088         * src/concept-inst.cc: Same.
1089         * src/complex_io.cc: Same.
1090         * src/codecvt.cc: Same.
1091         * src/bitset.cc: Same.
1092         * src/cmath.cc: Same.
1093
1094 2002-01-04  Paolo Carlini  <pcarlini@unitus.it>
1095
1096         * include/bits/stl_tree.h (rb_tree):  Move to...
1097         * include/ext/rb_tree:  ...here, new file.
1098         * include/Makefile.am (ext_headers):  Add new file.
1099         * include/Makefile.in:  Regenerate.
1100         * include/bits/stl_tempbuf.h (get_temporary_buffer + helper,
1101         return_temporary_buffer, struct temporary_buffer):  Move to...
1102         * include/ext/memory:  ...here.
1103         * testsuite/ext/headers.cc:  Include <ext/rb_tree>.
1104         * include/backward/tempbuf.h:  Include <ext/memory>, tweak.
1105         * include/backward/tree.h:  Include <ext/rb_tree), tweak.
1106
1107 2002-01-03  Paolo Carlini  <pcarlini@unitus.it>
1108
1109         * include/bits/stl_numeric.h (power + helpers, iota):  Move to...
1110         * include/ext/numeric:  ...here, new file.
1111         * include/bits/stl_function.h (identity_element, unary_compose,
1112         binary_compose, compose1, compose2, identity, select1st,
1113         select2nd, project1st + helper, project2nd + helper,
1114         constant_void_fun + helper, constant_unary_fun + helper,
1115         costant_binary_fun + helper, constant0, constant1, constant2,
1116         subtractive_rng, mem_fun1, mem_fun1_ref):  Move to...
1117         * include/ext/functional:  ...here, new file.
1118         * include/Makefile.am (ext_headers):  Add new files.
1119         * include/Makefile.in:  Regenerate.
1120         * testsuite/ext/headers.cc:  Include <ext/numeric> and
1121         <ext/functional>.
1122         * include/backward/algo.h:  Include <ext/numeric>, tweak.
1123         * include/backward/function.h:  Include <ext/functional>, tweak.
1124         * include/ext/ropeimpl.h:  Include <ext/numeric>.
1125
1126 2002-01-03  Jeffrey A Law  <law@redhat.com>
1127
1128         * config/os/hpux/bits/os_defines.h: Prefix __strtoll and
1129         __strtoull declarations with __extension__.
1130
1131 2002-01-03  David Billinghurst <David.Billinghurst@riotinto.com>
1132
1133         * testsuite/lib/prune.exp: Correct regular expression for
1134         -ffunction-sections
1135
1136 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
1137
1138         * include/bits/stl_algo.h (upper_bound, equal_range, binary_search):
1139         Change concept checks, as with lower_bound and PR 2054.
1140         * testsuite/ext/concept_checks.cc:  Expand test to include those.
1141
1142 2002-01-02  Phil Edwards  <pme@gcc.gnu.org>
1143
1144         * include/bits/boost_concept_check.h:  Import some changes from
1145         upsteam (Boost) version.
1146
1147 2002-01-02  Paolo Carlini  <pcarlini@unitus.it>
1148
1149         * include/bits/stl_algobase.h (copy_n + helpers,
1150         lexicographical_compare_3way + helpers):  Move to...
1151         * include/ext/algorithm:  ...here.
1152         * include/bits/stl_uninitialized.h (uninitialized_copy_n +
1153         helpers):  Move to...
1154         * include/ext/memory:  ...here, new file.
1155         * include/Makefile.am (ext_headers):  Add new file.
1156         * include/Makefile.in:  Regenerate.
1157         * testsuite/ext/headers.cc:  Include <ext/memory>.
1158         * include/backward/algobase.h:  Include <ext/memory> and
1159         <ext/algorithm>, tweak.
1160         * include/ext/ropeimpl.h:  Include <ext/memory>, tweak.
1161         * include/ext/stl_rope.h:  Include <ext/memory>, tweak.
1162
1163 2002-01-01  Roger Sayle <roger@eyesopen.com>
1164
1165         * libmath/stubs.c (sinf,cosf): Implement stubs to enable the
1166         equivalent ___builtin__ versions.
1167
1168         * include/c_shadow/bits/std_cmath.h: All __builtin math functions
1169         are available in libstdc++ as the necessary stub implementations
1170         are provided by libmath/stubs.c.
1171
1172 2002-01-01  Jason Thorpe  <thorpej@wasabisystems.com>
1173
1174         * configure.in: Add support for NetBSD cross compiles.
1175         * configure: Regenerate.