1 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
3 * config/locale/generic/messages_members.h (messages::messages):
4 Remove name from unused parameter.
6 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
8 * src/Makefile.am (sources): Add demangle.cc.
11 * src/Makefile.in: Regenerate.
12 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
13 * libsupc++/Makefile.in: Regenerate.
15 * testsuite/testsuite_hooks.h
16 (__gnu_cxx_test::verify_demangle): New.
17 * testsuite/testsuite_hooks.cc: Define.
19 2003-02-27 Carlo Wood <carlo@alinoe.com>
21 * src/demangle.cc: New.
22 * libsupc++/demangle.h: New.
24 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
25 Carlo Wood <carlo@alinoe.com>
27 * testsuite/demangle/abi_examples/01.cc: New.
28 * testsuite/demangle/abi_examples/02.cc: New.
29 * testsuite/demangle/abi_examples/03.cc: New.
30 * testsuite/demangle/abi_examples/04.cc: New.
31 * testsuite/demangle/abi_examples/05.cc: New.
32 * testsuite/demangle/abi_examples/06.cc: New.
33 * testsuite/demangle/abi_examples/07.cc: New.
34 * testsuite/demangle/abi_examples/08.cc: New.
35 * testsuite/demangle/abi_examples/09.cc: New.
36 * testsuite/demangle/abi_examples/10.cc: New.
37 * testsuite/demangle/abi_examples/11.cc: New.
38 * testsuite/demangle/abi_examples/12.cc: New.
39 * testsuite/demangle/abi_examples/13.cc: New.
40 * testsuite/demangle/abi_examples/14.cc: New.
41 * testsuite/demangle/abi_examples/15.cc: New.
42 * testsuite/demangle/abi_examples/16.cc: New.
43 * testsuite/demangle/abi_examples/17.cc: New.
44 * testsuite/demangle/abi_examples/18.cc: New.
45 * testsuite/demangle/abi_examples/19.cc: New.
46 * testsuite/demangle/abi_examples/20.cc: New.
47 * testsuite/demangle/abi_examples/21.cc: New.
48 * testsuite/demangle/abi_examples/22.cc: New.
49 * testsuite/demangle/abi_examples/23.cc: New.
50 * testsuite/demangle/abi_examples/24.cc: New.
51 * testsuite/demangle/abi_examples/25.cc: New.
52 * testsuite/demangle/abi_examples/26.cc: New.
53 * testsuite/demangle/abi_text/01.cc: New.
54 * testsuite/demangle/abi_text/02.cc: New.
55 * testsuite/demangle/abi_text/03.cc: New.
56 * testsuite/demangle/abi_text/04.cc: New.
57 * testsuite/demangle/abi_text/05.cc: New.
58 * testsuite/demangle/abi_text/06.cc: New.
59 * testsuite/demangle/abi_text/07.cc: New.
60 * testsuite/demangle/abi_text/08.cc: New.
61 * testsuite/demangle/abi_text/09.cc: New.
62 * testsuite/demangle/abi_text/10.cc: New.
63 * testsuite/demangle/abi_text/11.cc: New.
64 * testsuite/demangle/abi_text/12.cc: New.
65 * testsuite/demangle/abi_text/13.cc: New.
66 * testsuite/demangle/abi_text/14.cc: New.
67 * testsuite/demangle/regression/3111-1.cc: New.
68 * testsuite/demangle/regression/3111-2.cc: New.
69 * testsuite/demangle/regression/7986-01.cc: New.
70 * testsuite/demangle/regression/7986-02.cc: New.
71 * testsuite/demangle/regression/7986-03.cc: New.
72 * testsuite/demangle/regression/7986-04.cc: New.
73 * testsuite/demangle/regression/7986-05.cc: New.
74 * testsuite/demangle/regression/7986-06.cc: New.
75 * testsuite/demangle/regression/7986-07.cc: New.
76 * testsuite/demangle/regression/7986-08.cc: New.
77 * testsuite/demangle/regression/7986-09.cc: New.
78 * testsuite/demangle/regression/7986-10.cc: New.
79 * testsuite/demangle/regression/7986-11.cc: New.
80 * testsuite/demangle/regression/7986-12.cc: New.
81 * testsuite/demangle/regression/7986.cc: New.
82 * testsuite/demangle/regression/8897.cc: New.
83 * testsuite/demangle/regression/cw-01.cc: New.
84 * testsuite/demangle/regression/cw-02.cc: New.
85 * testsuite/demangle/regression/cw-03.cc: New.
86 * testsuite/demangle/regression/cw-04.cc: New.
87 * testsuite/demangle/regression/cw-05.cc: New.
88 * testsuite/demangle/regression/cw-06.cc: New.
89 * testsuite/demangle/regression/cw-07.cc: New.
90 * testsuite/demangle/regression/cw-08.cc: New.
91 * testsuite/demangle/regression/cw-09.cc: New.
92 * testsuite/demangle/regression/cw-10.cc: New.
93 * testsuite/demangle/regression/cw-11.cc: New.
94 * testsuite/demangle/regression/cw-12.cc: New.
95 * testsuite/demangle/regression/cw-13.cc: New.
96 * testsuite/demangle/regression/cw-14.cc: New.
97 * testsuite/demangle/regression/old.cc: New.
99 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
101 * docs/doxygen/Intro.3: Update with new (proper) names.
102 * docs/doxygen/TODO: Update.
103 * docs/doxygen/run_doxygen: More comments, fix up man pages.
104 Fake entries for standard typedefs.
105 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
106 * docs/html/documentation.html: Top-level man page is now called
108 * include/std/std_limits.h: Doxygenate.
110 2003-02-25 Scott Snyder <snyder@fnal.gov>
113 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
114 Correct documentation.
115 * include/bits/stl_multimap.h (lower_bound, upper_bound,
116 equal_range): Likewise.
118 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
122 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
123 __bump is true (uflow), always increment the read pointer
124 (_M_in_cur) before returning successfully.
125 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
127 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
128 Nathan Myers <ncm@cantrip.org>
130 PR libstdc++/9404, PR libstdc++/9701 (partial)
131 (aka pptr == epptr implies overflow)
132 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
133 Consistently, _M_out_end points to the end of the buffer just
135 (overflow): Tweak to use _M_out_buf_size().
136 (_M_convert_to_external): The role of the old _M_out_end is
137 now played by _M_out_lim.
138 (_M_really_overflow): Likewise.
140 (setbuf): _M_out_end points to the end of the external buffer.
141 * include/bits/sstream.tcc (overflow): Rewrote, taking into
142 account the resolution of DR 169 (TC).
143 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
144 (seekpos): Use _M_string.capacity(); tweak.
145 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
146 * include/std/std_fstream.h (sync): The role of the old
147 _M_out_end is now played by _M_out_lim.
148 (_M_set_indeterminate): Use _M_set_determinate.
149 (_M_set_determinate): _M_out_end is now _M_out_lim.
150 (_M_is_indeterminate): Likewise.
151 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
152 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
153 which have the information readily available as _M_string.capacity();
154 for ate and app modes, pass the string size to _M_really_sync.
155 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
156 point to the end of the buffer (i.e., epptr) and to the string end,
158 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
159 which points to the right limit of the used put area.
160 (_M_out_cur_move): The role of the old _M_out_end is now played
162 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
163 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
165 (basic_streambuf()): Initialize _M_out_lim too.
166 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
167 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
168 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
170 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
172 * testsuite/27_io/ios_base_storage.cc (main): Call
175 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
177 * include/bits/locale_facets.tcc (_M_convert_float): Replace
178 numpunct facet accesses with data from __locale_cache.
180 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
182 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
183 * docs/html/faq/index.txt: Regenerate.
185 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
187 * config/linker-map.gnu: Also export locking symbols needed for the
188 generic atomicity.h case.
190 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
192 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
194 * configure: Rebuilt.
196 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
198 * include/bits/sstream.tcc (overflow): According to
199 27.7.1.3, p5, actual output is performed by sputc(c).
201 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
204 * include/bits/stl_alloc.h: Remove all traces of assert().
206 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
208 * include/std/std_sstream.h (str()): the size of the
209 current string may be different from the initial one
210 whenever _M_out_end > _M_out_beg.
211 * testsuite/27_io/stringbuf_members.cc (test07): Add.
213 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
216 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
218 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
220 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
221 * testsuite/27_io/ios_members.cc (test03): New.
223 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
225 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
226 (basic_ios::_M_cache_facets): Move into above.
227 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
229 (basic_ios::imbue): Force locale cache to be built.
230 (basic_ios::_M_init): Create and initialize locale cache.
231 * include/bits/ios_base.h (__locale_cache_base): Declare.
232 (ios_base::_M_locale_cache): New.
233 (ios_base::_M_cache): Define.
234 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
236 (__locale_cache_base,__locale_cache<_CharT>): New classes.
237 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
238 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
239 cache literal string, grouping flag, thousands separator.
240 (__locale_cache<_CharT>::__locale_cache): New.
241 (__locale_cache<_CharT>::_M_init): New.
242 * src/ios.cc: Clear _M_locale_cache in constructor.
243 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
246 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
248 * src/locale-inst.cc: Do not include <cassert>.
249 * src/locale.cc: Likewise.
251 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
254 * include/std/std_fstream.h: Declare underflow and uflow
255 specializations, change generic definitions to do nothing.
256 * src/fstream.cc: Add underflow and uflow specializations.
258 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
261 * include/bits/fstream.tcc (_M_convert_to_external):
262 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
263 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
265 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
267 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
268 * include/bits/basic_ios.tcc: Guard use of extern template.
269 * include/std/std_iomanip.h: Same.
270 * include/bits/streambuf.tcc: Same.
271 * include/bits/stl_alloc.h: Same.
272 * include/bits/locale_facets.tcc: Same.
273 * include/bits/ostream.tcc: Same.
274 * include/bits/istream.tcc: Same.
275 * include/bits/fstream.tcc: Same.
276 * include/bits/basic_string.tcc: Same.
278 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
280 * include/bits/ostream.tcc (sentry::sentry): Improve
281 performance-wise the fix for libstdc++/9563.
283 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
285 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
286 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
287 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
288 when we don't have static mutex initialization.
289 (__exchange_and_add): Use _Atomic_add_mutex_once.
290 * src/misc-inst.cc: Definitions of all the above.
292 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
295 * include/bits/ostream.tcc (sentry::sentry): Check
296 the state of the stream after the preparation.
297 * testsuite/27_io/ostream_sentry.cc (test02): Add.
299 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
301 * include/Makefile.am (stamp-std-precompile): Add rule.
302 * include/Makefile.in: Regenerated.
304 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
305 Benjamin Kosnik <benjamin@redhat.com>
307 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
308 Add indexes into this array.
309 (__num_base::_S_atoms): To _S_atoms_in.
310 (num_put::_M_insert): Rename to _M_pad.
311 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
312 (num_put::_M_widen_int): Rename to _M_group_int.
313 (num_put::_M_widen_float): Rename to _M_group_float.
314 * include/bits/locale_facets.tcc (__int_to_char): New inline
315 function and adapter functions.
316 (num_put::_M_group_int): Streamline.
317 (num_put::_M_group_float): Streamline.
318 (num_put::_M_convert_int): Remove unused parameter names. Choose
319 large enough buffer for text. Use __int_to_char instead of
320 __convert_from_v. Formatted text is now at the end of the buffer.
321 (num_put::_M_convert_float): Preliminary fixups.
322 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
323 (__int_to_char<unsigned long long>): Same.
324 (__int_to_char<char, unsigned long>): New.
325 (__int_to_char<char, unsigned long long>): New.
326 (__int_to_char<wchar_t, unsigned long>): New.
327 (__int_to_char<wchar_t, unsigned long long>): New.
329 2003-02-11 Scott Snyder <snyder@fnal.gov>
332 * include/bits/fstream.tcc (seekoff): Avoid operator+
335 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
338 * include/ext/stdio_filebuf.h
339 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
340 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
341 Change to take a __size parameter of type size_t, not
342 of type (template parameter dependent) int_type.
343 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
345 * testsuite/ext/stdio_filebuf.cc: Add.
347 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
348 Petur Runolfsson <peturr02@ru.is>
351 * include/bits/streambuf.tcc (__copy_streambufs):
352 Don't conditionalize the copy to __testput.
353 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
355 2002-02-11 DJ Delorie <dj@redhat.com>
357 * acinclude.m4: Check for native targets that can't link at
358 this point in the build.
359 * aclocal.m4: Regenerate.
360 * configure: Regenerate.
362 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
364 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
366 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
369 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
371 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
372 unsigned char platforms.
374 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
377 * include/std/std_istream.h
378 (basic_istream::sentry::operator bool()): Make const.
379 * include/std/std_ostream.h
380 (basic_ostream::sentry::operator bool()): Likewise.
381 * testsuite/27_io/istream_sentry.cc (test03): Add.
382 * testsuite/27_io/ostream_sentry.cc: Add.
384 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
387 Implement resolution of DR 231 (Ready)
388 * include/bits/locale_facets.h (__num_base::_S_format_float):
389 Change declaration: return void, remove __prec parameter.
390 * src/locale.cc (__num_base::_S_format_float): Implement
391 resolution of DR 231.
392 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
393 Tweak uses. Check for negative precision.
394 * testsuite/22_locale/num_put/put/char/6.cc: Add
395 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
397 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
399 * config/io/basic_file_libio.h: Fixups.
400 * config/io/c_io_libio.h: Same.
401 * libio/Makefile.am: Same.
402 * libio/Makefile.in: Regenerated.
404 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
406 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
407 Explicitly use the "C" locale.
408 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
410 2003-02-06 Petur Runolfsson <peturr02@ru.is>
414 PR libstdc++/9028 (partial)
420 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
421 codecvt<wchar_t, char, mbstate_t>::do_length,
422 codecvt<wchar_t, char, mbstate_t>::do_max_length):
424 * config/locale/generic/codecvt_members.cc: ...here.
425 * config/locale/gnu/codecvt_members.cc: ...and here.
427 * config/locale/generic/codecvt_members.cc,
428 * config/locale/gnu/codecvt_members.cc
429 (codecvt<wchar_t, char, mbstate_t>::do_encoding
430 codecvt<wchar_t, char, mbstate_t>::do_in,
431 codecvt<wchar_t, char, mbstate_t>::do_length,
432 codecvt<wchar_t, char, mbstate_t>::do_max_length,
433 codecvt<wchar_t, char, mbstate_t>::do_out):
434 New implementation that handles stateless encodings,
437 * config/locale/generic/codecvt_members.cc,
438 * config/locale/gnu/codecvt_members.cc,
439 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
440 * include/bits/codecvt.h,
442 (codecvt::length, codecvt::do_length):
443 Change type of first argument of length and do_length from
444 'const state_type&' to 'state_type&' according to DR 75.
446 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
447 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
448 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
449 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
450 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
451 Cleanup and check for correct return value from encoding
453 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
454 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
455 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
456 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
457 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
458 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
459 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
460 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
461 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
462 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
463 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
464 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
465 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
466 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
467 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
468 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
469 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
470 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
471 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
472 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
473 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
474 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
475 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
476 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
477 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
478 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
479 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
480 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
481 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
482 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
483 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
484 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
485 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
486 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
487 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
488 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
489 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
491 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
493 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
494 (money_put::do_put): Same.
496 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
498 * include/bits/ios_base.h (ios_base): Document reserved storage.
500 * include/bits/locale_facets.h: (struct __pad): Comment on
502 (__verify_grouping): Same.
503 (__add_grouping): Same.
504 * include/bits/locale_facets.tcc (__verify_grouping): Move
505 comments to declaration.
506 (__add_grouping): Same.
508 * include/bits/locale_facets.tcc:
509 (__write<_CharT, _OutIter>): New function.
510 (__write<_CharT>): New function specialization.
511 (num_put::_M_insert): Remove explicit loop over iterator. Use
513 (num_put::_M_widen_float): Remove __basefield.
514 (num_put::_M_widen_int): Move __basefield to within grouping block.
516 * include/bits/streambuf_iterator.h: Include <streambuf>.
517 (ostreambuf_iterator::_M_put): Add.
519 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
521 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
523 2003-02-04 Nathan Myers <ncm@cantrip.org>
525 * testsuite/25_algorithms/min_max.cc (test02): Add.
527 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
529 PR libstdc++/9439, PR libstdc++/9425
530 * config/io/basic_file_stdio.cc
531 (__basic_file<char>::seekoff, seekpos): Return -1L if
533 * include/bits/fstream.tcc (basic_filebuf::seekoff):
534 Check _M_file.seekoff return value; always return
535 pos_type(off_type(-1)) in case of failure.
536 (basic_filebuf::pbackfail): Check this->seekoff return
537 value and return traits_type::eof() in case of failure.
538 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
540 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
542 * include/std/std_ostream.h (ostream::_M_write): Declare.
543 * ostream.tcc (ostream::_M_write): Define.
544 (basic_ostream::write): Use it.
545 (operator<<(basic_ostream, _CharT)): Ditto.
546 (operator<<(basic_ostream, char)): Ditto.
547 (operator<<(basic_ostream, _CharT*)): Ditto.
548 (operator<<(basic_ostream, char*)): Ditto.
549 (operator<<(basic_ostream, basic_string)): Ditto.
551 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
553 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
555 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
557 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
558 add HTML comment about updating links if numbering changes.
560 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
563 * include/bits/streambuf.tcc (sputbackc): Access
564 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
565 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
567 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
570 * include/bits/fstream.tcc (open): If the 'ate' repositioning
571 operation fails, calls close _and_ returns a null pointer
572 to indicate failure (27.8.1.3,4).
573 * testsuite/27_io/filebuf_members.cc (test_06): Add.
575 2003-02-04 Petur Runolfsson <peturr02@ru.is>
577 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
579 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
581 * docs/html/27_io/howto.html: New section on stdio_filebuf.
582 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
583 * docs/html/documentation.html: Regenerate.
585 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
587 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
588 * docs/html/17_intro/porting.html: Regenerate.
590 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
591 Phil Edwards <pme@gcc.gnu.org>
593 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
594 numeric_limits for bits-per-word values.
595 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
596 Use __builtin_popcountl instead.
597 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
598 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
599 Use __builtin_ctzl instead.
600 (_S_bit_count, _S_first_one): Remove.
601 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
602 * src/Makefile.am (sources): Remove bitset.cc.
603 * src/bitset.cc: Delete file.
604 * src/Makefile.in: Regenerate.
606 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
608 PR libstdc++/9527, PR libstdc++/8713
609 * docs/html/install.html: Mention glibc version requirement.
610 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
611 with 3.2.1+ (formatting bugfixes).
612 * docs/html/faq/index.txt: Regenerate.
614 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
617 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
620 * include/bits/valarray_before.h (__not_equal_to): Use != instead
623 * testsuite/26_numerics/valarray_operators.cc: New test.
625 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
627 * docs/html/faq/index.html: Correct link to libg++ information.
628 * docs/html/faq/index.txt: Regenerated.
630 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
631 Benjamin Kosnik <bkoz@redhat.com>
633 Const correctness issue:
634 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
635 * include/bits/locale_classes.h
636 (locale::_Impl::_M_facets): Change type to const facet**.
637 (locale::_Impl::_M_install_facet): Change declaration to
639 (locale::facet::_M_references): Make mutable.
640 (locale::facet::_M_add_reference): Declare const.
641 (locale::facet::_M_remove_reference): Likewise.
642 * include/bits/locale_facets.tcc
643 (use_facet(const locale&)): Tweak for const facet** _M_facets.
644 (has_facet(const locale&)): Likewise.
646 (locale::facet::_M_add_reference): Adjust definition.
647 (locale::facet::_M_remove_reference): Likewise.
649 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
650 const facet** _M_facets.
651 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
652 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
653 (locale::_Impl::_M_install_facet): Adjust definition to take
654 const facet* and for const facet** _M_facets.
655 * testsuite/22_locale/locale/cons/8.cc: Add.
657 2003-01-29 Mark Mitchell <mark@codesourcery.com>
659 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
660 Use __FLT_HAS_INIFINITY__ to initialize.
661 (numeric_limits<float>::has_quiet_NaN): Likewise.
662 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
664 (numeric_limits<double>::has_quiet_NaN): Likewise.
665 (numeric_limits<long double>::has_infinity): Use
666 __LDBL_HAS_INIFINITY__ to initialize.
667 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
669 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
672 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
673 with bases which are very ambiguous.
675 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
677 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
678 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
679 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
680 * src/Makefile.in: Regenerate.
681 * libsupc++/Makefile.in: Regenerate.
683 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
685 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
686 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
687 version_specific_libs is enabled.
688 * aclocal.m4, configure: Rebuilt.
690 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
692 * include/bits/valarray_meta.h: Remove, split into ...
693 * include/bits/valarray_before.h: ... this, and ...
694 * include/bits/valarray_after.h: ... this.
695 * include/std/std_valarray.h: Adjust.
696 * include/Makefile.am (bits_headers): Adjust.
697 * include/Makefile.in: Regenerate.
699 2003-01-24 Andreas Schwab <schwab@suse.de>
701 * config/linker-map.gnu: Fix for size_t variance.
703 2003-01-23 Petur Runolfsson <peturr02@ru.is>
706 * include/std/std_streambuf.h
707 (basic_streambuf::basic_streambuf,
708 basic_streambuf::~basic_streambuf,
709 basic_streambuf::getloc, basic_streambuf::imbue):
710 Remove _M_buf_locale_init
711 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
712 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
713 * testsuite/27_io/streambuf_members.cc (test08): Add.
714 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
716 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
718 Revert include ordering.
719 * config/locale/generic/c_locale.h: Add include guards.
720 * config/locale/gnu/c_locale.h: Same.
721 * include/bits/locale_classes.h: Remove cctype include.
722 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
723 * include/std/std_fstream.h: Remove streambuf include.
724 * include/std/std_sstream.h: Remove streambuf include.
726 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
728 * configure.in (libtool_VERSION): To 6:0:0.
729 * configure: Regenerated.
730 * config/linker-map.gnu: Clean.
732 * src/misc-inst.cc: Remove instantiations.
734 * include/bits/stl_alloc.h (__malloc_alloc_template):
736 (__default_alloc_template): To __pool_alloc.
737 * src/stl-inst.cc: Same.
738 * include/backward/alloc.h: Update.
739 * testsuite/ext/allocators.cc: Update.
741 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
742 really try to remove these if possible.
743 * src/locale.cc (std): Same.
745 * testsuite/abi_check.cc (check_version): Add.
747 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
748 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
749 Mark Mitchell <mark@codesourcery.com>
752 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
753 (basic_filebuf::underflow): Declare.
756 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
758 * include/bits/locale_facets.h: Move non-facet classes requiring
760 * include/bits/locale_classes.h: New.
761 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
762 * include/bits/Makefile.in: Regenerate.
764 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
765 * config/locale/gnu/c_locale.h: ...here.
766 * config/locale/generic/c_locale.h: Same.
768 * include/bits/locale_facets.tcc: Move declarations to...
769 * include/bits/locale_facets.h: ...here.
770 * include/bits/basic_ios.h: Tweak includes accordingly.
771 * include/std/std_sstream.h: Add streambuf include.
772 * include/std/std_fstream.h: Ditto.
773 * include/std/std_locale.h: Add locale_classes.h include.
774 * include/std/std_iosfwd.h: Tweak.
775 * src/concept-inst.cc: Add iterator include.
777 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
778 bits as unexported in the future.
780 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
782 Reshuffle 22_locale testsuite.
783 * 22_locale/(codecvt.cc money_get.cc
784 codecvt_members_char_char.cc money_get_members_char.cc
785 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
786 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
787 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
788 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
789 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
790 money_put_members_char.cc ctor_copy_dtor.cc
791 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
792 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
793 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
794 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
795 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
796 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
797 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
798 operators.cc ctype_widen_char.cc static_members.cc
799 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
800 global_templates.cc time_get_members_wchar_t.cc, members.cc,
801 time_put.cc, messages_byname.cc, time_put_members_char.cc,
802 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
803 Splint up into individual test cases...
804 * 22_locale/codecvt/1.cc: New.
805 * 22_locale/codecvt/2.cc: New.
806 * 22_locale/codecvt/always_noconv/char/1.cc: New.
807 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
808 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
809 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
810 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
811 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
812 * 22_locale/codecvt/encoding/char/1.cc: New.
813 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
814 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
815 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
816 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
817 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
818 * 22_locale/codecvt/in/char/1.cc: New.
819 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
820 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
821 * 22_locale/codecvt/in/wchar_t/1.cc: New.
822 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
823 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
824 * 22_locale/codecvt/length/char/1.cc: New.
825 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
826 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
827 * 22_locale/codecvt/length/wchar_t/1.cc: New.
828 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
829 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
830 * 22_locale/codecvt/max_length/char/1.cc: New.
831 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
832 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
833 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
834 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
835 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
836 * 22_locale/codecvt/out/char/1.cc: New.
837 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
838 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
839 * 22_locale/codecvt/out/wchar_t/1.cc: New.
840 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
841 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
842 * 22_locale/codecvt/unicode/char.cc: New.
843 * 22_locale/codecvt/unicode/wchar_t.cc: New.
844 * 22_locale/codecvt/unshift/char/1.cc: New.
845 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
846 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
847 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
848 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
849 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
850 * 22_locale/collate/1.cc: New.
851 * 22_locale/collate/2.cc: New.
852 * 22_locale/collate/compare/char/1.cc: New.
853 * 22_locale/collate/compare/char/2.cc: New.
854 * 22_locale/collate/compare/char/wrapped_env.cc: New.
855 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
856 * 22_locale/collate/compare/wchar_t/1.cc: New.
857 * 22_locale/collate/compare/wchar_t/2.cc: New.
858 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
859 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
860 * 22_locale/collate/hash/char/1.cc: New.
861 * 22_locale/collate/hash/char/2.cc: New.
862 * 22_locale/collate/hash/char/wrapped_env.cc: New.
863 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
864 * 22_locale/collate/hash/wchar_t/1.cc: New.
865 * 22_locale/collate/hash/wchar_t/2.cc: New.
866 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
867 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
868 * 22_locale/collate/transform/char/2.cc: New.
869 * 22_locale/collate/transform/char/wrapped_env.cc: New.
870 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
871 * 22_locale/collate/transform/wchar_t/2.cc: New.
872 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
873 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
874 * 22_locale/collate_byname/1.cc: New.
875 * 22_locale/ctype/1.cc: New.
876 * 22_locale/ctype/2.cc: New.
877 * 22_locale/ctype/cons/char/1.cc: New.
878 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
879 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
880 * 22_locale/ctype/is/char/1.cc: New.
881 * 22_locale/ctype/is/char/2.cc: New.
882 * 22_locale/ctype/is/char/3.cc: New.
883 * 22_locale/ctype/is/char/wrapped_env.cc: New.
884 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
885 * 22_locale/ctype/is/wchar_t/1.cc: New.
886 * 22_locale/ctype/is/wchar_t/2.cc: New.
887 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
888 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
889 * 22_locale/ctype/narrow/char/1.cc: New.
890 * 22_locale/ctype/narrow/char/2.cc: New.
891 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
892 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
893 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
894 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
895 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
896 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
897 * 22_locale/ctype/scan/char/1.cc: New.
898 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
899 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
900 * 22_locale/ctype/scan/wchar_t/1.cc: New.
901 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
902 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
903 * 22_locale/ctype/to/char/1.cc: New.
904 * 22_locale/ctype/to/char/wrapped_env.cc: New.
905 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
906 * 22_locale/ctype/to/wchar_t/1.cc: New.
907 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
908 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
909 * 22_locale/ctype/widen/char/1.cc: New.
910 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
911 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
912 * 22_locale/ctype/widen/wchar_t/1.cc: New.
913 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
914 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
915 * 22_locale/facet/1.cc: New.
916 * 22_locale/facet/2.cc: New.
917 * 22_locale/global_templates/1.cc: New.
918 * 22_locale/locale/cons/1.cc: New.
919 * 22_locale/locale/cons/2.cc: New.
920 * 22_locale/locale/cons/3.cc: New.
921 * 22_locale/locale/cons/4.cc: New.
922 * 22_locale/locale/cons/5.cc: New.
923 * 22_locale/locale/cons/6.cc: New.
924 * 22_locale/locale/cons/7.cc: New.
925 * 22_locale/locale/global_locale_objects/1.cc: New.
926 * 22_locale/locale/global_locale_objects/2.cc: New.
927 * 22_locale/locale/global_locale_objects/3.cc: New.
928 * 22_locale/locale/operations/1.cc: New.
929 * 22_locale/locale/operations/2.cc: New.
930 * 22_locale/messages/1.cc: New.
931 * 22_locale/messages/2.cc: New.
932 * 22_locale/messages/members/char/1.cc: New.
933 * 22_locale/messages/members/char/2.cc: New.
934 * 22_locale/messages/members/char/3.cc: New.
935 * 22_locale/messages/members/char/wrapped_env.cc: New.
936 * 22_locale/messages/members/char/wrapped_locale.cc: New.
937 * 22_locale/messages_byname/1.cc: New.
938 * 22_locale/money_get/1.cc: New.
939 * 22_locale/money_get/2.cc: New.
940 * 22_locale/money_get/get/char/1.cc: New.
941 * 22_locale/money_get/get/char/2.cc: New.
942 * 22_locale/money_get/get/char/3.cc: New.
943 * 22_locale/money_get/get/char/4.cc: New.
944 * 22_locale/money_get/get/char/5.cc: New.
945 * 22_locale/money_get/get/char/6.cc: New.
946 * 22_locale/money_get/get/char/7.cc: New.
947 * 22_locale/money_get/get/char/8.cc: New.
948 * 22_locale/money_get/get/char/wrapped_env.cc: New.
949 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
950 * 22_locale/money_get/get/wchar_t/1.cc: New.
951 * 22_locale/money_get/get/wchar_t/2.cc: New.
952 * 22_locale/money_get/get/wchar_t/3.cc: New.
953 * 22_locale/money_get/get/wchar_t/4.cc: New.
954 * 22_locale/money_get/get/wchar_t/5.cc: New.
955 * 22_locale/money_get/get/wchar_t/6.cc: New.
956 * 22_locale/money_get/get/wchar_t/7.cc: New.
957 * 22_locale/money_get/get/wchar_t/8.cc: New.
958 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
959 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
960 * 22_locale/money_put/1.cc: New.
961 * 22_locale/money_put/2.cc: New.
962 * 22_locale/money_put/put/char/1.cc: New.
963 * 22_locale/money_put/put/char/2.cc: New.
964 * 22_locale/money_put/put/char/3.cc: New.
965 * 22_locale/money_put/put/char/4.cc: New.
966 * 22_locale/money_put/put/char/5.cc: New.
967 * 22_locale/money_put/put/char/6.cc: New.
968 * 22_locale/money_put/put/char/wrapped_env.cc: New.
969 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
970 * 22_locale/money_put/put/wchar_t/1.cc: New.
971 * 22_locale/money_put/put/wchar_t/2.cc: New.
972 * 22_locale/money_put/put/wchar_t/3.cc: New.
973 * 22_locale/money_put/put/wchar_t/4.cc: New.
974 * 22_locale/money_put/put/wchar_t/5.cc: New.
975 * 22_locale/money_put/put/wchar_t/6.cc: New.
976 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
977 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
978 * 22_locale/moneypunct/1.cc: New.
979 * 22_locale/moneypunct/2.cc: New.
980 * 22_locale/moneypunct/3.cc: New.
981 * 22_locale/moneypunct/members/char/1.cc: New.
982 * 22_locale/moneypunct/members/char/2.cc: New.
983 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
984 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
985 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
986 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
987 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
988 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
989 * 22_locale/moneypunct_byname/1.cc: New.
990 * 22_locale/num_get/1.cc: New.
991 * 22_locale/num_get/2.cc: New.
992 * 22_locale/num_get/get/char/1.cc: New.
993 * 22_locale/num_get/get/char/2.cc: New.
994 * 22_locale/num_get/get/char/3.cc: New.
995 * 22_locale/num_get/get/char/4.cc: New.
996 * 22_locale/num_get/get/char/5.cc: New.
997 * 22_locale/num_get/get/char/6.cc: New.
998 * 22_locale/num_get/get/char/wrapped_env.cc: New.
999 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
1000 * 22_locale/num_get/get/wchar_t/1.cc: New.
1001 * 22_locale/num_get/get/wchar_t/2.cc: New.
1002 * 22_locale/num_get/get/wchar_t/3.cc: New.
1003 * 22_locale/num_get/get/wchar_t/4.cc: New.
1004 * 22_locale/num_get/get/wchar_t/5.cc: New.
1005 * 22_locale/num_get/get/wchar_t/6.cc: New.
1006 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
1007 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
1008 * 22_locale/num_put/1.cc: New.
1009 * 22_locale/num_put/2.cc: New.
1010 * 22_locale/num_put/put/char/1.cc: New.
1011 * 22_locale/num_put/put/char/2.cc: New.
1012 * 22_locale/num_put/put/char/3.cc: New.
1013 * 22_locale/num_put/put/char/4.cc: New.
1014 * 22_locale/num_put/put/char/5.cc: New.
1015 * 22_locale/num_put/put/char/wrapped_env.cc: New.
1016 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
1017 * 22_locale/num_put/put/wchar_t/1.cc: New.
1018 * 22_locale/num_put/put/wchar_t/2.cc: New.
1019 * 22_locale/num_put/put/wchar_t/3.cc: New.
1020 * 22_locale/num_put/put/wchar_t/4.cc: New.
1021 * 22_locale/num_put/put/wchar_t/5.cc: New.
1022 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
1023 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
1024 * 22_locale/numpunct/1.cc: New.
1025 * 22_locale/numpunct/2.cc: New.
1026 * 22_locale/numpunct/members/char/1.cc: New.
1027 * 22_locale/numpunct/members/char/2.cc: New.
1028 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
1029 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
1030 * 22_locale/numpunct/members/wchar_t/1.cc: New.
1031 * 22_locale/numpunct/members/wchar_t/2.cc: New.
1032 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
1033 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
1034 * 22_locale/numpunct_byname/1.cc: New.
1035 * 22_locale/numpunct_byname/2.cc: New.
1036 * 22_locale/time_get/1.cc: New.
1037 * 22_locale/time_get/2.cc: New.
1038 * 22_locale/time_get/date_order/char/1.cc: New.
1039 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
1040 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
1041 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
1042 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
1043 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
1044 * 22_locale/time_get/get_date/char/1.cc: New.
1045 * 22_locale/time_get/get_date/char/2.cc: New.
1046 * 22_locale/time_get/get_date/char/3.cc: New.
1047 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
1048 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
1049 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
1050 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
1051 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
1052 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
1053 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
1054 * 22_locale/time_get/get_monthname/char/1.cc: New.
1055 * 22_locale/time_get/get_monthname/char/2.cc: New.
1056 * 22_locale/time_get/get_monthname/char/3.cc: New.
1057 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
1058 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
1059 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
1060 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
1061 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
1062 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
1063 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
1064 * 22_locale/time_get/get_time/char/1.cc: New.
1065 * 22_locale/time_get/get_time/char/2.cc: New.
1066 * 22_locale/time_get/get_time/char/3.cc: New.
1067 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
1068 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
1069 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
1070 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
1071 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
1072 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
1073 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
1074 * 22_locale/time_get/get_weekday/char/1.cc: New.
1075 * 22_locale/time_get/get_weekday/char/2.cc: New.
1076 * 22_locale/time_get/get_weekday/char/3.cc: New.
1077 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
1078 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
1079 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
1080 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
1081 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
1082 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
1083 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
1084 * 22_locale/time_get/get_year/char/1.cc: New.
1085 * 22_locale/time_get/get_year/char/3.cc: New.
1086 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
1087 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
1088 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
1089 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
1090 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
1091 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
1092 * 22_locale/time_put/1.cc: New.
1093 * 22_locale/time_put/2.cc: New.
1094 * 22_locale/time_put/put/char/1.cc: New.
1095 * 22_locale/time_put/put/char/10.cc: New.
1096 * 22_locale/time_put/put/char/2.cc: New.
1097 * 22_locale/time_put/put/char/3.cc: New.
1098 * 22_locale/time_put/put/char/4.cc: New.
1099 * 22_locale/time_put/put/char/5.cc: New.
1100 * 22_locale/time_put/put/char/6.cc: New.
1101 * 22_locale/time_put/put/char/7.cc: New.
1102 * 22_locale/time_put/put/char/8.cc: New.
1103 * 22_locale/time_put/put/char/9.cc: New.
1104 * 22_locale/time_put/put/char/wrapped_env.cc: New.
1105 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
1106 * 22_locale/time_put/put/wchar_t/1.cc: New.
1107 * 22_locale/time_put/put/wchar_t/10.cc: New.
1108 * 22_locale/time_put/put/wchar_t/2.cc: New.
1109 * 22_locale/time_put/put/wchar_t/3.cc: New.
1110 * 22_locale/time_put/put/wchar_t/4.cc: New.
1111 * 22_locale/time_put/put/wchar_t/5.cc: New.
1112 * 22_locale/time_put/put/wchar_t/6.cc: New.
1113 * 22_locale/time_put/put/wchar_t/7.cc: New.
1114 * 22_locale/time_put/put/wchar_t/8.cc: New.
1115 * 22_locale/time_put/put/wchar_t/9.cc: New.
1116 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
1117 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
1119 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
1121 * config/locale/generic/messages_members.h
1122 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
1123 unqualified members of base clasess.
1125 2003-01-16 Mark Mitchell <mark@codesourcery.com>
1126 Jeffrey Oldham <oldham@codesourcery.com>
1128 * config/locale/gnu/messages_members.h: Use this-> to refer to
1129 unqualified members of base clasess.
1130 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
1131 * include/bits/codecvt.h: Likewise.
1132 * include/bits/deque.tcc: Likewise.
1133 * include/bits/fstream.tcc: Likewise.
1134 * include/bits/istream.tcc: Likewise.
1135 * include/bits/list.tcc: Likewise.
1136 * include/bits/locale_facets.h: Likewise.
1137 * include/bits/ostream.tcc: Likewise.
1138 * include/bits/sstream.tcc: Likewise.
1139 * include/bits/stl_bvector.h: Likewise.
1140 * include/bits/stl_deque.h: Likewise.
1141 * include/bits/stl_list.h: Likewise.
1142 * include/bits/stl_tree.h: Likewise.
1143 * include/bits/stl_vector.h: Likewise.
1144 * include/bits/vector.tcc: Likewise.
1145 * include/ext/ropeimpl.h: Likewise.
1146 * include/ext/stdio_filebuf.h: Likewise.
1147 * include/ext/stl_rope.h: Likewise.
1148 * include/std/std_fstream.h: Likewise.
1149 * include/std/std_sstream.h: Likewise.
1151 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
1153 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
1155 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
1157 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
1158 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
1159 * aclocal.m4: Regenerate.
1160 * configure: Regenerate.
1161 * testsuite/Makefile.am (all-local): Add conditional rule to
1162 generate testsuite_wchar_t.
1163 * testsuite/Makefile.in: Regenerate.
1164 * testsuite/lib/libstdc++-v3-dg.exp
1165 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
1166 testsuite_wchar_t is not present in the build directory.
1167 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
1168 Remove setulimit bits.
1169 * testsuite/26_numerics/complex_value.cc: Set to noopts.
1170 * testsuite/Makefile.am (CLEANFILES): Add.
1171 * testsuite/Makefile.in: Regenerate.
1173 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1175 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
1178 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
1180 Further conform g++'s __vmi_class_type_info to the C++ ABI
1182 * libsupc++/cxxabi.h
1183 (__vmi_class_type_info::__flags_masks): Remove enumerations not
1184 required by the specification.
1186 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
1188 Renames, namespaces for testsuite utilities.
1189 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
1190 (gnu_allocator_tracker): Rename to allocation_tracker.
1191 (gnu_new_allocator): Rename to tracker_alloc.
1192 (__set_testsuite_memlimit): Rename to set_memory_limits.
1193 (gnu_assignment_operator): Rename to assignment_operator.
1194 (gnu_destructor): Rename to destructor.
1195 (gnu_copy_tracker): Rename to copy_tracker.
1196 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
1197 (run_tests_wrapped_locale): New.
1198 (run_tests_wrapped_env): New.
1199 * testsuite/testsuite_hooks.cc: Same.
1200 (class locale_data): Add.
1201 (class enviornment_variable): Add.
1202 (class not_found): Add.
1203 * testsuite/testsuite_allocator.h: Same.
1204 * testsuite/testsuite_allocator.cc: Same.
1205 * testsuite/23_containers/deque_ctor.cc
1206 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
1208 Change gnu_new_allocator to tracker_alloc.
1209 Change gnu_counting_struct to counter.
1210 Change gnu_copy_tracker to copy_tracker.
1211 Change gnu_copy_constructor to copy_constructor.
1212 Change gnu_assignment_operator to assignment_operator.
1214 * testsuite/23_containers/vector_capacity.cc: Same.
1215 * testsuite/23_containers/vector_ctor.cc (test01): Same.
1216 * testsuite/23_containers/list_modifiers.cc: Change
1217 gnu_copy_tracker to copy_tracker.
1218 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
1219 __set_testsuite_memlimit to set_memory_limits.
1220 * testsuite/21_strings/insert.cc (main): Same.
1221 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
1222 * testsuite/27_io/stringstream.cc: Same.
1223 * testsuite/27_io/stringbuf.cc: Same.
1224 * testsuite/27_io/streambuf.cc: Same.
1225 * testsuite/27_io/ostream.cc: Same.
1226 * testsuite/27_io/istream.cc: Same.
1227 * testsuite/27_io/fstream.cc: Same.
1228 * testsuite/lib/libstdc++-v3-dg.exp
1229 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
1230 three levels deeper in glob patterns.
1232 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
1234 * docs/doxygen/tables.html: Finished now.
1235 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
1236 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
1239 * include/bits/deque.tcc, include/bits/stl_alloc.h,
1240 include/bits/stl_deque.h, include/bits/stl_list.h,
1241 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
1244 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
1246 * configure.in: Revert.
1247 * configure: Regenerate.
1249 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1251 * include/Makefile.am (install-data-local): Prepend
1252 $(DESTDIR) to destination paths in all (un)installation
1253 commands. Use ${c_base_builddir} and ${std_builddir}
1254 as destination subdirectories to achieve consistency with
1255 preceding mkinstalldirs commands. No effect because both
1256 variables contain "." only.
1257 * include/Makefile.in: Regenerate.
1259 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
1261 * include/Makefile.am (stamp-*): Add checks for existing stamps.
1262 * include/Makefile.in: Regenerate.
1264 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
1265 * aclocal.m4: Regenerate.
1267 * configure.in: Don't add new multi-do rules every time the
1268 directory is reconfigured.
1269 * configure: Regenerate.
1271 2003-01-08 Brad Spencer <spencer@infointeractive.com>
1272 Nathan Myers <ncm@cantrip.org>
1274 * src/Makefile.am (stamp-debug): Clean.
1275 * src/Makefile.in: Regenerate.
1277 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
1280 * Makefile.am (distclean-multi): Fix.
1281 * Makefile.in: Regenerate.
1283 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
1285 * include/bits/locale_facets.h (messages): Move ctor, dtor
1287 (__timepunct): Same.
1288 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
1289 definitions. Conditionalize for GNU systems.
1290 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
1292 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
1293 definitions. Conditionalize for GNU systems.
1294 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
1296 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
1297 * src/locale.cc: Define.
1298 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
1300 * config/locale/gnu/time_members.h: Use it.
1301 * config/locale/gnu/messages_members.h: Use it.
1302 * config/linker-map.gnu: Add locale::facets details.
1303 * include/Makefile.am (target_headers_extra): Add time_members.h.
1304 * include/Makefile.in: Regenerate.
1305 * acinclude.m4: Export CTIME_H.
1306 * aclocal.m4: Regenerate.
1307 * configure: Regnerate.
1309 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
1312 (codecvt<char, char, mbstate_t>::do_in, do_out):
1313 Tweak parameters to avoid unused parameter warnings.
1315 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
1318 * include/bits/locale_facets.cc (num_put::_M_convert_float):
1319 Limit __prec to digits10 + 2, not digits10 + 1, taking into
1320 account the possibility of %{g,G} conversion specifiers
1321 inside _S_format_float.
1322 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
1324 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1326 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
1327 libstdc++-v3-list-sourcefiles): Additionally handle files one
1328 level deeper in glob patterns.
1330 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
1331 * testsuite/27_io/istream_extractor_arith/01.cc,
1332 testsuite/27_io/istream_extractor_arith/02.cc,
1333 testsuite/27_io/istream_extractor_arith/03.cc,
1334 testsuite/27_io/istream_extractor_arith/06.cc,
1335 testsuite/27_io/istream_extractor_arith/07.cc,
1336 testsuite/27_io/istream_extractor_arith/08.cc,
1337 testsuite/27_io/istream_extractor_arith/09.cc,
1338 testsuite/27_io/istream_extractor_arith/10.cc,
1339 testsuite/27_io/istream_extractor_arith/11.cc,
1340 testsuite/27_io/istream_extractor_arith/12.cc,
1341 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
1342 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
1345 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
1349 (codecvt<char, char, mbstate_t>::do_in, do_out):
1350 Implement the resolution of DR19 (TC).
1351 * testsuite/22_locale/codecvt_members_char_char.cc
1354 2003-01-02 Jason Merrill <jason@redhat.com>
1356 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
1357 *__mem is also an output.
1358 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.