OSDN Git Service

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