OSDN Git Service

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